JP3231263B2 - Code converter, variable-length code decoding device and decoding method - Google Patents

Code converter, variable-length code decoding device and decoding method

Info

Publication number
JP3231263B2
JP3231263B2 JP15981997A JP15981997A JP3231263B2 JP 3231263 B2 JP3231263 B2 JP 3231263B2 JP 15981997 A JP15981997 A JP 15981997A JP 15981997 A JP15981997 A JP 15981997A JP 3231263 B2 JP3231263 B2 JP 3231263B2
Authority
JP
Japan
Prior art keywords
code
bit string
variable
converted
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP15981997A
Other languages
Japanese (ja)
Other versions
JPH1084288A (en
Inventor
浩 今西
真木 豊蔵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP15981997A priority Critical patent/JP3231263B2/en
Publication of JPH1084288A publication Critical patent/JPH1084288A/en
Application granted granted Critical
Publication of JP3231263B2 publication Critical patent/JP3231263B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、所定の符号体系に
基づいて符号を符号データに変換する符号変換器及び連
続した可変長符号からなるビット列を符号データに復号
する可変長符号復号装置及び復号方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a code converter for converting a code into code data based on a predetermined coding system, a variable length code decoding device for decoding a bit string composed of continuous variable length codes into code data, and a decoding device. About the method.

【0002】[0002]

【従来の技術】近年、記録媒体や通信路のディジタル化
に伴い、エントロピー符号化を用いた情報量の圧縮は必
要不可欠なものとなった。エントロピー符号化では、確
率的に出現頻度の高いシンボルに短い符号を割り当てる
ことによって、平均的な符号長の短縮を実現している。
特に、画像処理の分野では、その圧縮伸長の国際標準で
あるMPEGにおいて、所定の符号体系に基づく可変長
符号を用いることが規格で定められている。
2. Description of the Related Art In recent years, with the digitization of recording media and communication paths, compression of an information amount using entropy coding has become indispensable. In the entropy coding, the average code length is shortened by assigning a short code to a symbol having a high probability of appearance.
In particular, in the field of image processing, the MPEG standard, which is an international standard for compression and decompression, specifies the use of variable length codes based on a predetermined coding system.

【0003】[0003]

【発明が解決しようとする課題】例えばDVD装置にお
いてMPEGに従った復号処理を行う場合には、複数の
符号体系のうち外部から指示されたものに基づいて可変
長符号変換を行うことができる可変長符号変換器が必要
になる。ところが、このような可変長符号変換器を実現
するためには、各符号体系に対応する複数の回路を設け
ておくとともに、指示された符号体系に対応する回路を
選択的に動作させる構成を設けることが必要になり、こ
のため、装置全体の回路規模が大きくなってしまうとい
う問題があった。
For example, in the case of performing a decoding process according to MPEG in a DVD device, a variable length code conversion that can perform variable length code conversion based on one of a plurality of code systems externally specified is performed. A long code converter is required. However, in order to realize such a variable-length code converter, a plurality of circuits corresponding to each coding system are provided, and a configuration for selectively operating a circuit corresponding to the specified coding system is provided. Therefore, there is a problem that the circuit scale of the entire device becomes large.

【0004】また、可変長符号を復号する場合、通常
は、可変長符号に対応する符号データを求めるとともに
復号のための情報としてこの可変長符号の符号長も求
め、この符号長を用いて次に復号を行う可変長符号の先
頭ビット位置を得るという処理を繰り返す。このため、
可変長符号のビット中に誤りが生じたときには、これに
対応する符号データが得られないだけでなく、この可変
長符号の符号長も求めることができないために次に復号
を行う可変長符号の先頭ビット位置が分からないことに
なる。この結果、以降の可変長符号については、ビット
の区切り位置が全く分からないため、復号できないか、
または復号されてもその符号データは全くでたらめなも
のになってしまう。
[0004] When decoding a variable-length code, usually, code data corresponding to the variable-length code is obtained, and the code length of the variable-length code is also obtained as information for decoding. The process of obtaining the first bit position of the variable length code to be decoded is repeated. For this reason,
When an error occurs in the bit of the variable length code, not only the code data corresponding to the error cannot be obtained, but also the code length of the variable length code cannot be obtained. The first bit position will not be known. As a result, the subsequent variable-length code cannot be decoded because the bit separation position is not known at all.
Alternatively, even if decoded, the code data becomes completely random.

【0005】すなわち、可変長符号復号の場合には、何
らかの原因によりビット列中に“0”/“1”の反転等
の誤りが生じると、それ以降の復号は不可能になるかま
たはでたらめな復号が行われることになる。
That is, in the case of variable-length code decoding, if an error such as "0" / "1" inversion occurs in a bit string for some reason, subsequent decoding becomes impossible or random decoding. Will be performed.

【0006】この問題に対処するため、従来では、時間
的な割り込みによって、ビット列中の誤りによる復号処
理の誤動作を検出する等の対応をしている。ところがこ
の場合には、時間的な割り込みが行われるまでは復号処
理は正常に戻らないので、復号処理の復旧をきめ細かに
行うことができない。
In order to cope with this problem, conventionally, for example, a malfunction in decoding processing due to an error in a bit string is detected by a temporal interruption. However, in this case, since the decoding process does not return to normal until a temporal interruption is performed, the decoding process cannot be recovered in a detailed manner.

【0007】また前記の問題に対処するため、従来の可
変長符号復号方式として、切り出されたビット列が予め
記憶するビットパターン(可変長符号)に該当せず符号
長が検出できなかったとき、ビット列の切り出し位置を
制御するビットシフト情報を増減させて、ビットパター
ン検出不能を起こさないビット列切り出し位置を検索
し、この位置から復号を継続するものがある(特開平6
−350458号公報参照)。
In order to cope with the above problem, a conventional variable-length code decoding system employs a bit-length-sequence method in which a cut-out bit sequence does not correspond to a previously stored bit pattern (variable-length code) and the code length cannot be detected. There is a method in which the bit shift information for controlling the cut-out position is increased / decreased to search for a bit string cut-out position at which no bit pattern detection becomes impossible, and decoding is continued from this position (Japanese Patent Laid-Open No.
-350458).

【0008】しかしながら前記の従来例では、検索した
ビット列切り出し位置が必ずしも適切なものとは限ら
ず、復旧直後にまたビットパターン検出不能が生じるお
それがあり、復号処理の復旧後の符号データの信頼性が
低いという問題があった。また、復号処理の復旧のため
に、新たなビット列切り出し位置をいわば試行錯誤的な
手法によって検索するので、リアルタイムな復号処理に
おいて時間的に間に合わないおそれがある。
However, in the above-described conventional example, the searched bit string cutout position is not always appropriate, and there is a possibility that the bit pattern cannot be detected immediately after the restoration, and the reliability of the code data after the restoration of the decoding process may occur. Was low. Further, in order to recover the decoding process, a new bit string cutout position is searched by a so-called trial and error method, so that there is a possibility that time is not enough for real-time decoding processing.

【0009】前記の問題に鑑み、本発明は、複数の符号
体系に基づいて符号変換を行う符号変換器として、従来
よりも回路規模を小さくすることを目的とする。
In view of the above problems, it is an object of the present invention to provide a code converter for performing code conversion based on a plurality of code systems, and to reduce the circuit scale as compared with the related art.

【0010】また、本発明は、可変長符号復号におい
て、従来よりも復号処理の復旧をきめ細かに行うことが
でき、かつ、復旧後の符号データの信頼性を高めるとと
もに、リアルタイムな復号処理にも適用できるようにす
ることを目的とする。
Further, the present invention can recover the decoding process more finely than before in the variable-length code decoding, improves the reliability of the coded data after the recovery, and realizes the real-time decoding process. It is intended to be applicable.

【0011】[0011]

【課題を解決するための手段】前記の課題を解決するた
めに、請求項1の発明が講じた解決手段は、符号化され
た変換対象のビット列を、複数の符号体系のうち指示さ
れた1つの符号体系に基づいて符号データに変換する符
号変換器として、一の符号体系と他の符号体系とにおい
て共通する部分に含まれる符号と符号データとの対応関
係を記憶しており、前記変換対象のビット列を、記憶し
ている対応関係に基づいて符号データに変換する共用変
換手段を備え、前記一の符号体系に基づいた符号変換を
行うとき、前記一の符号体系のうち前記他の符号体系と
共通する部分について、前記共用変換手段によって符号
変換を行い、かつ、前記他の符号体系に基づいた符号変
換を行うとき、前記他の符号体系のうち前記一の符号体
系と共通する部分について、前記共用変換手段によって
符号変換を行うものである。
Means for Solving the Problems In order to solve the above-mentioned problem, a solution taken by the invention of claim 1 is to provide a method for converting an encoded bit string to be converted into a designated one of a plurality of code systems. As a code converter for converting into code data based on one coding system, the correspondence between codes and code data included in a common part in one coding system and another coding system is stored, and the conversion target Is provided with common conversion means for converting the bit string into code data based on the stored correspondence, and performing code conversion based on the one code system.
When performing, with the other coding system of the one coding system
For the common part, the code is
Performs conversion and performs code conversion based on the other coding system.
When performing the conversion, the one code body of the other code systems
For the parts common to the system,
It performs code conversion .

【0012】請求項1の発明によると、一の符号体系に
基づいた符号変換を行うときは、前記一の符号体系のう
ち他の符号体系と共通する部分について、共用変換手段
によって符号変換が行われる一方、前記他の符号体系に
基づいた符号変換を行うときは、前記他の符号体系のう
ち前記一の符号体系と共通する部分について、前記共用
変換手段によって符号変換が行われるので、一の符号体
系と他の符号体系とにおいて共通する部分に対応する回
路を削減することができる。したがって、従来よりも回
路規模を小さくすることができる。
According to the first aspect of the present invention, when performing code conversion based on one code system, code conversion is performed by a common conversion unit on a portion of the one code system that is common to another code system. On the other hand, when performing code conversion based on the other code system, code conversion is performed by the shared conversion unit on a portion of the other code system common to the one code system. It is possible to reduce the number of circuits corresponding to parts common to the coding system and another coding system. Therefore, the circuit scale can be made smaller than before.

【0013】そして、請求項2の発明では、前記請求項
1の符号変換器における共用変換手段は、記憶している
対応関係に属するいずれの符号にも前記変換対象のビッ
ト列が該当しないとき、非検出信号を出力するものと
し、当該符号変換器は、前記一の符号体系または他の符
号体系に基づいた符号変換を行う場合に、前記共用変換
手段から非検出信号が出力されないとき前記共用変換手
段によって変換された符号データを当該符号変換器の出
力データとして選択出力する選択手段を備えているもの
とする。
[0013] In the invention of claim 2, the common conversion means in the code converter of claim 1 outputs the non-conversion code when the bit string to be converted does not correspond to any of the stored codes. The code converter outputs a detection signal, and the code converter performs the code conversion based on the one coding system or another coding system, and when the non-detection signal is not output from the common conversion unit, the common conversion unit. And a selection unit for selectively outputting the code data converted by the code converter as output data of the code converter.

【0014】また、請求項3の発明では、前記請求項2
の符号変換器において、前記一の符号体系のうち前記共
用変換手段に記憶されたもの以外の符号と符号データと
の対応関係を記憶しており、前記変換対象のビット列
を、記憶している対応関係に基づいて符号データに変換
出力する一方、記憶している対応関係に属するいずれの
符号にも前記変換対象のビット列が該当しないとき、非
検出信号を出力する専用変換手段と、前記一の符号体系
に基づいた符号変換を行う場合に、前記共用変換手段及
び専用変換手段の両方から非検出信号が出力されたと
き、前記変換対象のビット列に誤りがあることを示す不
正符号検出信号を出力する不正符号検出手段とを備えて
いるものとする。
According to the third aspect of the present invention, the second aspect is provided.
In the code converter, the correspondence between codes other than those stored in the common conversion means and the code data in the one coding system is stored, and the bit string to be converted is stored. Dedicated conversion means for outputting a non-detection signal when the bit string to be converted does not correspond to any code belonging to the stored correspondence while converting and outputting the code data based on the relationship; When performing a code conversion based on the system, when a non-detection signal is output from both the common conversion unit and the dedicated conversion unit, an invalid code detection signal indicating that there is an error in the bit string to be converted is output. It is assumed that an illegal code detecting means is provided.

【0015】また、請求項4の発明では、前記請求項1
の符号変換器における共用変換手段は、記憶している対
応関係に属するいずれの符号にも前記変換対象のビット
列が該当しないとき、非検出信号を出力するものとし、
当該符号変換器は、前記一の符号体系のうち前記共用変
換手段に記憶されたもの以外の符号と符号データとの対
応関係を記憶しており、前記変換対象のビット列を、記
憶している対応関係に基づいて符号データに変換出力す
る一方、記憶している対応関係に属するいずれの符号に
も前記変換対象のビット列が該当しないとき、非検出信
号を出力する第1の専用変換手段と、前記他の符号体系
のうち前記共用変換手段に記憶されたもの以外の符号と
符号データとの対応関係を記憶しており、前記変換対象
のビット列を、記憶している対応関係に基づいて符号デ
ータに変換出力する一方、記憶している対応関係に属す
るいずれの符号にも前記変換対象のビット列が該当しな
いとき、非検出信号を出力する第2の専用変換手段と、
前記一の符号体系に基づいた符号変換を行う場合は、前
記共用変換手段及び第1の専用変換手段のうち非検出信
号を出力しなかった方によって変換された符号データを
当該符号変換器の出力データとして選択出力する一方、
前記他の符号体系に基づいた符号変換を行う場合は、前
記共用変換手段及び第2の専用変換手段のうち非検出信
号を出力しなかった方によって変換された符号データを
前記出力データとして選択出力する選択手段と、前記一
の符号体系に基づいた符号変換を行う場合は、前記共用
変換手段及び第1の専用変換手段の両方から非検出信号
が出力されたとき、前記変換対象のビット列に誤りがあ
ることを示す不正符号検出信号を出力する一方、前記他
の符号体系に基づいた符号変換を行う場合は、前記共用
変換手段及び第2の専用変換手段の両方から非検出信号
が出力されたとき、前記不正符号検出信号を出力する不
正符号検出手段とを備えているものとする。
[0015] In the invention of claim 4, according to claim 1 of the present invention.
The common conversion means in the code converter of the above, when the bit string to be converted does not correspond to any code belonging to the stored correspondence, shall output a non-detection signal,
The code converter stores a correspondence relationship between codes and code data other than those stored in the common conversion means in the one code system, and stores the bit string to be converted. A first dedicated conversion unit that outputs a non-detection signal when the bit string to be converted does not correspond to any code belonging to the stored correspondence while converting and outputting the code data based on the relationship; It stores the correspondence between codes and code data other than those stored in the common conversion means among other code systems, and converts the bit string to be converted into code data based on the stored correspondence. A second dedicated conversion unit that outputs a non-detection signal when the conversion target and the conversion target bit string do not correspond to any of the codes belonging to the stored correspondence relationship;
When performing code conversion based on the one coding system, the code data converted by the common conversion unit and the first dedicated conversion unit that did not output a non-detection signal is output by the code converter. While selectively outputting as data,
When performing code conversion based on the other code system, the code data converted by one of the common conversion means and the second dedicated conversion means that did not output a non-detection signal is selectively output as the output data. When performing the code conversion based on the one code system, when the non-detection signal is output from both the common conversion means and the first dedicated conversion means, an error occurs in the bit string to be converted. While performing the code conversion based on the other code system while outputting the unauthorized code detection signal indicating that there is a non-detection signal from both the common conversion means and the second dedicated conversion means At this time, it is assumed that the apparatus comprises an unauthorized code detection means for outputting the unauthorized code detection signal.

【0016】また、請求項5の発明が講じた解決手段
は、連続した可変長符号からなるビット列を符号データ
に復号する可変長符号復号装置として、前記ビット列か
ら切り出された変換対象のビット列を入力とし、この変
換対象のビット列が所定の符号体系に属する可変長符号
のいずれかに該当するか否かを判定し、該当するとき
は、前記変換対象のビット列を前記所定の符号体系に基
づいて符号データに変換出力する一方、いずれにも該当
しないときは、前記変換対象のビット列に誤りがあるこ
とを示す不正符号検出信号を出力する可変長符号変換器
と、前記可変長符号変換器から不正符号検出信号が出力
されたとき、前記ビット列において、データの区切りを
示すヘッダを前記変換対象のビット列から後方検索する
ヘッダ検索手段とを備え、当該可変長符号復号装置は、
前記可変長符号変換器から不正符号検出信号が出力され
たとき、前記ビット列の復号を中断し、前記ヘッダ検索
手段によって検出されたヘッダの直後から前記ビット列
の復号を再開するものである。
According to a fifth aspect of the present invention, there is provided a variable length code decoding apparatus for decoding a bit string composed of a continuous variable length code into code data, wherein a bit string to be converted cut out from the bit string is input. It is determined whether or not this bit string to be converted corresponds to any of the variable length codes belonging to a predetermined coding system, and if so, the bit string to be converted is coded based on the predetermined coding system. While converting and outputting data, if none of the above applies, a variable-length code converter that outputs an invalid code detection signal indicating that the bit string to be converted has an error, and an invalid code from the variable-length code converter. When a detection signal is output, header search means is provided for searching backward from the bit string to be converted a header indicating a data delimiter in the bit string. , The variable-length code decoding device,
When an invalid code detection signal is output from the variable length code converter, decoding of the bit string is interrupted, and decoding of the bit string is restarted immediately after the header detected by the header search means.

【0017】請求項5の発明によると、変換対象のビッ
ト列が所定の符号体系に属する可変長符号のいずれにも
該当しないときは、可変長符号変換器から不正符号検出
信号が出力される。すなわち、入力されたビット列に誤
りがある場合には即座に検出される。またこのとき、復
号処理が中断され、ヘッダ検索手段によってデータの区
切りを示すヘッダが変換対象のビット列から後方検索さ
れる。検出されたヘッダの直後の位置は変換対象のビッ
ト列の切り出し位置として必ず適切であるので、復号の
再開直後に、再び、変換対象のビット列が所定の符号体
系に属する可変長符号のいずれにも該当しないという検
出エラーが生じるおそれがない。また、新たなビット列
切り出し位置を検出するために従来のような試行錯誤的
な手法を用いないので、瞬時に復号を再開することがで
きる。したがって、従来よりも復号処理の復旧をきめ細
かに行うことができ、かつ、復旧後の符号データの信頼
性が高く、リアルタイムな復号処理にも適用可能であ
る。
According to the fifth aspect of the present invention, when the bit string to be converted does not correspond to any of the variable length codes belonging to a predetermined coding system, an invalid code detection signal is output from the variable length code converter. That is, if there is an error in the input bit string, it is immediately detected. At this time, the decoding process is interrupted, and the header indicating the data delimiter is searched backward from the bit string to be converted by the header search means. Since the position immediately after the detected header is always appropriate as the extraction position of the bit string to be converted, immediately after decoding is resumed, the bit string to be converted again corresponds to any of the variable length codes belonging to the predetermined coding system. There is no possibility that a detection error of not performing will occur. Further, since a trial and error method as in the related art is not used to detect a new bit string cutout position, decoding can be restarted instantaneously. Therefore, the restoration of the decoding process can be performed more finely than before, and the reliability of the coded data after the restoration is high, and the decoding process can be applied to the real-time decoding process.

【0018】そして、請求項6の発明では、前記請求項
5の可変長符号復号装置における可変長符号変換器は、
単一の符号体系に基づいて、変換対象のビット列を符号
データに変換するものであり、変換対象のビット列が前
記単一の符号体系に属する可変長符号のいずれにも該当
しなかったとき、前記不正符号検出信号を出力するもの
とする。
According to a sixth aspect of the present invention, in the variable length code decoding apparatus according to the fifth aspect, the variable length code converter comprises:
Based on a single coding system, to convert the bit string to be converted into code data, when the bit string to be converted does not correspond to any of the variable length code belonging to the single coding system, An illegal code detection signal is output.

【0019】また、請求項7の発明では、前記請求項5
の可変長符号復号装置における可変長符号変換器は、複
数の符号体系のうち指示された1つの符号体系に基づい
て、変換対象のビット列を符号データに変換するもので
あり、一の符号体系と他の符号体系とにおいて共通する
部分に含まれる,可変長符号と符号データとの対応関係
を記憶しており、記憶している対応関係に基づいて前記
変換対象のビット列を符号データに変換するとともに、
前記変換対象のビット列が、記憶している対応関係に属
するいずれの可変長符号にも該当しないとき、非検出信
号を出力する共用変換手段と、前記一の符号体系のうち
前記共用変換手段に記憶されたもの以外の,可変長符号
と符号データとの対応関係を記憶しており、記憶してい
る対応関係に基づいて前記変換対象のビット列を符号デ
ータに変換するとともに、前記変換対象のビット列が、
記憶している対応関係に属するいずれの可変長符号にも
該当しないとき、非検出信号を出力する専用変換手段
と、前記一の符号体系に基づいた可変長符号変換を行う
とき、前記共用変換手段及び専用変換手段のうち非検出
信号が出力されなかった方から変換出力された符号デー
タを当該可変長符号変換器の出力データとして選択出力
する選択手段と、前記一の符号体系に基づいた可変長符
号変換を行う場合、前記共用変換手段及び専用変換手段
の両方から非検出信号が出力されたとき、前記不正符号
検出信号を出力する不正符号検出手段とを備えているも
のとする。
According to the seventh aspect of the present invention, the fifth aspect of the present invention is provided.
The variable-length code converter in the variable-length code decoding device of the present invention converts a bit string to be converted into code data based on a designated one of a plurality of code systems. It stores the correspondence between the variable-length code and the code data, which is included in a part common to other code systems, and converts the bit string to be converted into code data based on the stored correspondence. ,
When the bit string to be converted does not correspond to any of the variable-length codes belonging to the stored correspondence, a common conversion unit that outputs a non-detection signal, and the common conversion unit of the one code system stores the common conversion unit. And stores the correspondence between the variable-length code and the code data other than the converted one. Based on the stored correspondence, the bit string to be converted is converted into code data. ,
A dedicated conversion unit that outputs a non-detection signal when the variable length code does not correspond to any of the stored variable length codes, and a shared conversion unit that performs variable length code conversion based on the one code system. Selecting means for selecting and outputting, as output data of the variable-length code converter, code data converted and output from the non-detection signal not output of the dedicated conversion means, and a variable length based on the one code system. In the case of performing code conversion, it is assumed that the code conversion device includes an unauthorized code detection unit that outputs the unauthorized code detection signal when a non-detection signal is output from both the common conversion unit and the dedicated conversion unit.

【0020】また、請求項8の発明が講じた解決手段
は、連続した可変長符号からなるビット列を符号データ
に復号する可変長符号復号方法として、前記ビット列か
ら切り出された変換対象のビット列が、所定の符号体系
に属する可変長符号のいずれかに該当するか否かを判定
し、該当するときは、前記変換対象のビット列を前記所
定の符号体系に基づいて符号データに変換する一方、い
ずれにも該当しないときは、前記変換対象のビット列に
不正符号が含まれると判定する可変長符号変換工程と、
前記可変長符号変換工程において不正符号が含まれると
判定されたとき、前記ビット列において、データの区切
りを示すヘッダを前記変換対象のビット列から後方検索
するヘッダ検索工程とを備え、前記可変長符号変換工程
において不正符号が含まれると判定されたとき、前記ビ
ット列の復号を中断し、前記ヘッダ検索工程において検
されたヘッダの直後から、前記ビット列の復号を再開
するものである。
According to another aspect of the present invention, there is provided a variable-length code decoding method for decoding a bit string composed of continuous variable-length codes into code data, wherein a bit string to be converted cut out from the bit string is Judge whether the code belongs to any of the variable length codes belonging to the specified code system
When applicable, the conversion target bit string is
While converting to coded data based on a fixed coding system,
If it does not correspond to the deviation, the conversion target bit string
A variable length code conversion step of determining that an illegal code is included;
When an illegal code is included in the variable length code conversion step
When it is determined, in the bit string, and a header search process of searching backwards a header indicating the data delimiter bit string of the conversion target, the variable length code conversion step
When it is determined that an illegal code is included in
The decoding of the bit string is interrupted, and the decoding of the bit string is resumed immediately after the header detected in the header search step.

【0021】[0021]

【0022】[0022]

【発明の実施の形態】図1は本発明の一実施形態に係る
符号変換器としての可変長符号変換器の構成を示すブロ
ック図である。図1に示す本実施形態に係る可変長符号
変換器は、2種類の符号体系T1,T2に基づいた可変
長符号変換を実現するものである。
FIG. 1 is a block diagram showing the configuration of a variable length code converter as a code converter according to an embodiment of the present invention. The variable-length code converter according to the present embodiment shown in FIG. 1 realizes variable-length code conversion based on two types of code systems T1 and T2.

【0023】本実施形態では、2種類の符号体系T1,
T2に含まれる可変長符号と符号データとの対応関係を
次のような3つのグループに分類している。 (グループ1)符号体系T1に含まれるが符号体系T2
には含まれないもの (グループ2)符号体系T1,T2の両方に含まれるも
の (グループ3)符号体系T1には含まれないが符号体系
T2に含まれるもの そして分類した各グループに対して、それぞれ変換手段
を設けている。
In this embodiment, two types of coding systems T1,
The correspondence between the variable length code included in T2 and the code data is classified into the following three groups. (Group 1) Code system T2 included in code system T1
(Group 2) Included in both coding systems T1 and T2 (Group 3) Not included in coding system T1 but included in coding system T2 Each is provided with a conversion means.

【0024】図1において、11はグループ1に対応す
る第1の専用変換手段としての第1の変換手段、12は
グループ2に対応する共用変換手段としての第2の変換
手段、13はグループ3に対応する第2の専用変換手段
としての第3の変換手段であり、第1〜第3の変換手段
11,12,13はそれぞれ、記憶している可変長符号
と符号データとの対応関係に基づいて変換対象のビット
列BINを符号データDT1,DT2,DT3に変換す
る。また第1〜第3の変換手段11,12,13はそれ
ぞれ、記憶している可変長符号と符号データとの対応関
係に属する可変長符号のいずれにも変換対象のビット列
BINが該当しないとき、非検出信号NS1,NS2,
NS3を出力する。
In FIG. 1, reference numeral 11 denotes first conversion means as first dedicated conversion means corresponding to group 1, 12 denotes second conversion means as shared conversion means corresponding to group 2, and 13 denotes group 3 Is a third conversion means as a second dedicated conversion means, and the first to third conversion means 11, 12, and 13 respectively determine the correspondence between the stored variable-length code and the code data. Based on this, the bit string BIN to be converted is converted into code data DT1, DT2, DT3. When the conversion target bit string BIN does not correspond to any of the stored variable-length codes and the variable-length codes belonging to the correspondence between the code data and the first to third conversion units 11, 12, and 13, respectively. Non-detection signals NS1, NS2,
NS3 is output.

【0025】20は符号体系T1の選択を指示する選択
信号T1及び符号体系T2の選択を指示する選択信号T
2に従って、第1〜第3の変換手段11,12,13の
出力符号データDT1,DT2,DT3のうちの1つを
当該可変長符号変換器の出力データDOUTとして選択
出力する選択手段である。選択手段20は、制御入力が
“1”のとき入力信号をそのまま出力する一方制御入力
が“0”のとき出力端子がハイインピーダンスになる第
1〜第3のトライステートバッファ21,22,23、
各トライステートバッファ21,22,23を制御する
ANDゲート24,25,26、及び選択信号T1,T
2の論理和信号を生成するORゲート27によって構成
されている。第1のトライステートバッファ21は、A
NDゲート24によって生成された,第1の変換手段1
1の非検出信号NS1の反転信号と選択信号T1との論
理積信号を制御入力とし、第2のトライステートバッフ
ァ22は、ANDゲート25によって生成された、第2
の変換手段12の非検出信号NS2の反転信号とORゲ
ート27によって生成された選択信号T1,T2の論理
和信号との論理積信号を制御入力とし、第3のトライス
テートバッファ23は、ANDゲート26によって生成
された,第3の変換手段13の非検出信号NS3の反転
信号と選択信号T2との論理積信号を制御入力とする。
Reference numeral 20 denotes a selection signal T1 for instructing selection of the coding system T1 and a selection signal T for instructing selection of the coding system T2.
2 is a selection means for selectively outputting one of the output code data DT1, DT2, DT3 of the first to third conversion means 11, 12, 13 as output data DOUT of the variable length code converter. When the control input is "1", the selection means 20 outputs the input signal as it is, while when the control input is "0", the output terminals become high impedance when the first to third tri-state buffers 21, 22, 23,
AND gates 24, 25, 26 for controlling tri-state buffers 21, 22, 23, and selection signals T1, T
It comprises an OR gate 27 that generates a logical sum signal of two. The first tri-state buffer 21
First conversion means 1 generated by ND gate 24
The AND signal of the inverted signal of the non-detection signal NS1 and the selection signal T1 is used as a control input, and the second tri-state buffer 22 outputs the second tri-state buffer 22 generated by the AND gate 25.
The AND signal of the inverted signal of the non-detection signal NS2 of the conversion means 12 and the OR signal of the selection signals T1 and T2 generated by the OR gate 27 is used as a control input, and the third tristate buffer 23 The logical product signal of the inverted signal of the non-detection signal NS3 of the third conversion means 13 and the selection signal T2 generated by the control unit 26 is used as a control input.

【0026】30は当該可変長符号変換器に入力された
ビット列に誤りがあることを示す不正符号検出信号NG
を出力する不正符号検出手段である。不正符号検出手段
30は、第1及び第2の変換手段11,12の非検出信
号NS1,NS2と選択信号T1とを入力とするAND
ゲート31,第2及び第3の変換手段12,13の非検
出信号NS2,NS3と選択信号T2とを入力とするA
NDゲート32、及びANDゲート31,32の出力信
号の論理和信号を不正符号検出信号NGの出力線に出力
するORゲート33によって構成されている。
Numeral 30 denotes an incorrect code detection signal NG indicating that there is an error in the bit string input to the variable length code converter.
Is an illegal code detection unit that outputs The illegal code detection means 30 receives the non-detection signals NS1 and NS2 of the first and second conversion means 11 and 12 and the selection signal T1 as inputs.
A which receives the non-detection signals NS2 and NS3 of the gate 31, the second and third conversion means 12 and 13, and the selection signal T2 as inputs.
An ND gate 32 and an OR gate 33 that outputs a logical sum signal of the output signals of the AND gates 31 and 32 to an output line of the illegal code detection signal NG.

【0027】表1は本実施形態に係る2種類の符号体系
T1,T2を示す表である。また表2は、表1に示す符
号体系T1,T2を前記の3つのグループに分類したも
のについての、可変長符号を入力とし符号データを出力
とする2進数表記の真理値表である。
Table 1 is a table showing two types of coding systems T1 and T2 according to the present embodiment. Table 2 is a truth table in binary notation in which the variable length codes are input and the code data is output for the code systems T1 and T2 shown in Table 1 classified into the above three groups.

【0028】[0028]

【表1】 [Table 1]

【0029】[0029]

【表2】 [Table 2]

【0030】図1に示す本実施形態に係る可変長符号変
換器において、第1の変換手段11は表2に示すグルー
プ1の真理値表に従って動作し、第2の変換手段12は
グループ2の真理値表に従って動作し、第3の変換手段
13はグループ3の真理値表に従って動作する。すなわ
ち各変換手段11,12,13は表2に示すような可変
長符号と符号データとの対応関係を記憶しており、記憶
している対応関係に基づいて、4ビットの変換対象のビ
ット列BINを3ビットの符号データDT1,DT2,
DT3に変換出力する。
In the variable length code converter according to the present embodiment shown in FIG. 1, the first conversion means 11 operates according to the truth table of group 1 shown in Table 2, and the second conversion means 12 operates in accordance with the truth table of group 2. The third conversion means 13 operates according to the truth table of group 3, and operates according to the truth table. That is, each of the conversion means 11, 12, and 13 stores the correspondence between the variable-length code and the code data as shown in Table 2, and based on the stored correspondence, a 4-bit conversion target bit string BIN. Are converted to 3-bit code data DT1, DT2,
Convert and output to DT3.

【0031】また第1〜第3の変換手段11,12,1
3は、変換対象のビット列BINに対応する符号データ
がないときは、非検出信号NS1,NS2,NS3の出
力線に“1”を出力する一方、変換対象のビット列BI
Nに対応する符号データがあるときは、非検出信号NS
1,NS2,NS3の出力線に“0”を出力する。すな
わち、第1〜第3の変換手段11,12,13はそれぞ
れ、記憶している可変長符号と符号データとの対応関係
に属する可変長符号のいずれにも変換対象のビット列B
INが該当しないとき、非検出信号NS1,NS2,N
S3として“1”を出力する。
The first to third conversion means 11, 12, 1
3 outputs “1” to the output lines of the non-detection signals NS1, NS2, and NS3 when there is no code data corresponding to the bit string BIN to be converted, and outputs the bit string BI to be converted.
When there is code data corresponding to N, the non-detection signal NS
"0" is output to the output lines of 1, NS2 and NS3. That is, each of the first to third conversion units 11, 12, and 13 converts the bit string B to be converted into any of the stored variable-length codes and the variable-length codes belonging to the correspondence relationship between the code data and the variable-length codes.
When IN does not apply, the non-detection signals NS1, NS2, N
"1" is output as S3.

【0032】本実施形態では、第1〜第3の変換手段1
1,12,13を表2に示す真理値表に基づいて、積和
標準形を用いて構成する。すなわち、ANDゲート
(積)を用いて各可変長符号の検出を行い、ORゲート
(和)を用いて前記ANDゲートの出力信号から各可変
長符号に対応する符号データを生成する。
In this embodiment, the first to third conversion means 1
Based on the truth table shown in Table 2, 1, 12, and 13 are configured using the product-sum standard form. That is, each variable length code is detected using an AND gate (product), and code data corresponding to each variable length code is generated from an output signal of the AND gate using an OR gate (sum).

【0033】図2は第1の変換手段11の構成を示す回
路図である。図2において、11aは符号検出部であ
り、変換対象のビット列BINを入力とし各可変長符号
の検出を行い検出結果を出力する。11bは符号データ
生成部であり、符号検出部11aの検出結果に基づい
て、検出された可変長符号に対応する符号データを生成
出力するとともに、可変長符号が検出されなかったとき
に非検出信号NS1を生成出力する。符号検出部11a
は、変換対象のビット列BINの各ビットを入力とし正
転及び反転信号を出力する相補バッファ111〜11
4、及びANDゲート115,116を備え、符号デー
タ生成部11bはNORゲート117を備えている。
FIG. 2 is a circuit diagram showing the structure of the first conversion means 11. In FIG. 2, reference numeral 11a denotes a code detection unit which receives a bit string BIN to be converted, detects each variable length code, and outputs a detection result. A code data generator 11b generates and outputs code data corresponding to the detected variable-length code based on the detection result of the code detector 11a, and outputs a non-detection signal when no variable-length code is detected. NS1 is generated and output. Code detector 11a
Are complementary buffers 111 to 11 which receive each bit of the bit string BIN to be converted as an input and output normal and inverted signals.
4 and AND gates 115 and 116, and the code data generator 11b includes a NOR gate 117.

【0034】符号検出部11aにおいて、変換対象のビ
ット列BINの各ビット(ビット3〜ビット0)の正転
及び反転信号が相補バッファ111〜114によって生
成される。ANDゲート115,116はそれぞれ検出
対象の可変長符号に対応しており、対応している可変長
符号と変換対象のビット列BINとが合致するか否か
を、相補バッファ111〜114により生成された信号
に基づいて検出する。ANDゲート115は表2に示す
グループ1の可変長符号“101x”に対応しており、
相補バッファ111の正転出力信号(変換対象のビット
列BINのビット3の正転信号)、相補バッファ112
の反転出力信号(変換対象のビット列BINのビット2
の反転信号)及び相補バッファ113の正転出力信号
(変換対象のビット列BINのビット1の正転信号)を
入力とし、入力信号が全て“1”のときのみすなわち変
換対象のビット列BINが“101x”のときのみ
“1”を出力する。一方、ANDゲート116は表2に
示すグループ1の可変長符号“1111”に対応してお
り、相補バッファ111の正転出力信号、相補バッファ
112の正転出力信号、相補バッファ113の正転出力
信号、及び相補バッファ114の正転出力信号を入力と
し、入力信号が全て“1”のときのみすなわち変換対象
のビット列BINが“1111”のときのみ“1”を出
力する。
In the code detection section 11a, the complementary buffers 111 to 114 generate the normal and inverted signals of each bit (bit 3 to bit 0) of the bit string BIN to be converted. The AND gates 115 and 116 respectively correspond to the variable length codes to be detected, and the complementary buffers 111 to 114 determine whether or not the corresponding variable length code matches the bit string BIN to be converted. Detect based on signal. The AND gate 115 corresponds to the variable length code “101x” of Group 1 shown in Table 2.
The non-inverted output signal of the complementary buffer 111 (the non-inverted signal of bit 3 of the bit string BIN to be converted) and the complementary buffer 112
Output signal (bit 2 of the bit string BIN to be converted)
) And the non-inverted output signal of the complementary buffer 113 (the non-inverted signal of the bit 1 of the bit string BIN to be converted) are input. Only when all the input signals are “1”, that is, when the bit string BIN to be converted is “101x” "1" is output only when "1". On the other hand, the AND gate 116 corresponds to the variable length code “1111” of group 1 shown in Table 2, and outputs the normal output signal of the complementary buffer 111, the normal output signal of the complementary buffer 112, and the normal output signal of the complementary buffer 113. The signal and the non-inverted output signal of the complementary buffer 114 are input, and "1" is output only when all the input signals are "1", that is, only when the bit string BIN to be converted is "1111".

【0035】符号データ生成部11bは、符号検出部1
1aのANDゲート115の出力信号を下位2ビットと
するとともにANDゲート116の出力信号を上位1ビ
ットとする3ビットの符号データDT1を生成出力す
る。これによって、ANDゲート115の出力信号が
“1”でありかつANDゲート116の出力信号が
“0”のとき(すなわち変換対象のビット列BINが
“101x”のとき)は符号データDT1として“01
1”が出力される一方、ANDゲート115の出力信号
が“0”でありかつANDゲート116の出力信号が
“1”のとき(すなわち変換対象のビット列BINが
“1111”のとき)は符号データDT1として“10
0”が出力される。またANDゲート115,116の
出力信号がともに“0”のとき(すなわち変換対象のビ
ット列BINが“101x”でも1111”でもないと
き)、符号データとして“000”が出力される一方、
NORゲート117から非検出信号NS1として“1”
が出力される。
The code data generation section 11b includes a code detection section 1
1a is generated and output as 3-bit code data DT1 in which the output signal of the AND gate 115 is the lower 2 bits and the output signal of the AND gate 116 is the upper 1 bit. Thus, when the output signal of the AND gate 115 is “1” and the output signal of the AND gate 116 is “0” (that is, when the bit string BIN to be converted is “101x”), “01” is used as the code data DT1.
When the output signal of the AND gate 115 is "0" and the output signal of the AND gate 116 is "1" (that is, when the bit string BIN to be converted is "1111"), the code data is output. "10" as DT1
When the output signals of the AND gates 115 and 116 are both "0" (that is, when the conversion target bit string BIN is neither "101x" nor 1111 ")," 000 "is output as code data. While
"1" is output from the NOR gate 117 as the non-detection signal NS1.
Is output.

【0036】第2及び第3の変換手段12,13も図2
に示す第1の変換手段11と同様の構成からなる。
The second and third conversion means 12, 13 are also shown in FIG.
Has the same configuration as the first conversion means 11 shown in FIG.

【0037】図3は第2の変換手段12の構成を示す回
路図である。図3において、12aは符号検出部、12
bは符号データ生成部であり、符号検出部12aは相補
バッファ121〜124及びANDゲート125,12
6を備え、符号データ生成部12bはNORゲート12
7を備えている。
FIG. 3 is a circuit diagram showing the structure of the second conversion means 12. In FIG. 3, reference numeral 12a denotes a code detection unit;
b is a code data generation unit, and the code detection unit 12a is composed of complementary buffers 121 to 124 and AND gates 125 and 12
6, and the sign data generation unit 12b includes a NOR gate 12
7 is provided.

【0038】表2から分かるように、グループ2に属す
る可変長符号の符号長は2ビットであるので、第2の変
換手段12は4ビットの変換対象のビット列BINの上
位2ビットのみを可変長符号変換に用いる。符号検出部
12aにおいて、ANDゲート125は相補バッファ1
21の反転出力信号及び相補バッファ122の反転出力
信号を入力とし、入力信号が全て“1”のときのみすな
わち変換対象のビット列BINが表2に示すグループ2
の可変長符号“00xx”のときのみ“1”を出力す
る。一方、ANDゲート126は相補バッファ121の
反転出力信号及び相補バッファ122の正転出力信号を
入力とし、入力信号が全て“1”のときのみすなわち変
換対象のビット列BINが表2に示すグループ2の可変
長符号“01xx”のときのみ“1”を出力する。
As can be seen from Table 2, since the code length of the variable-length code belonging to group 2 is 2 bits, the second conversion means 12 can change only the upper 2 bits of the 4-bit conversion target bit string BIN. Used for code conversion. In the sign detection unit 12a, the AND gate 125 is connected to the complementary buffer 1
21 and the inverted output signal of the complementary buffer 122 are input, and only when all the input signals are "1", that is, the bit string BIN to be converted is group 2 shown in Table 2.
"1" is output only when the variable length code is "00xx". On the other hand, the AND gate 126 receives the inverted output signal of the complementary buffer 121 and the non-inverted output signal of the complementary buffer 122 as inputs, and only when the input signals are all “1”, that is, when the bit string BIN to be converted corresponds to the group 2 "1" is output only when the variable length code is "01xx".

【0039】符号データ生成部12bは、符号検出部1
2aのANDゲート125の出力信号を最下位ビットと
するとともにANDゲート126の出力信号を最下位か
ら2番目のビットとし、かつ“1”を最上位ビットとす
る3ビットの符号データDT2を生成出力する。これに
よって、ANDゲート125の出力信号が“1”であり
かつANDゲート126の出力信号が“0”のとき(す
なわち変換対象のビット列BINが“00xx”のと
き)は符号データDT2として“001”が出力される
一方、ANDゲート125の出力信号が“0”でありか
つANDゲート126の出力信号が“1”のとき(すな
わち変換対象のビット列BINが“01xx”のとき)
は符号データDT2として“010”が出力される。ま
た、ANDゲート125,126の出力信号がともに
“0”のとき(すなわち変換対象のビット列BINが
“00xx”でも“01xx”でもないとき)、符号デ
ータDT2として“000”が出力される一方、NOR
ゲート127から非検出信号NS1として“1”が出力
される。
The code data generation unit 12b includes the code detection unit 1
2a, the output signal of the AND gate 125 is the least significant bit, the output signal of the AND gate 126 is the second least significant bit, and 3-bit code data DT2 having "1" as the most significant bit is generated and output. I do. Thus, when the output signal of the AND gate 125 is “1” and the output signal of the AND gate 126 is “0” (that is, when the bit string BIN to be converted is “00xx”), “001” is used as the code data DT2. Is output while the output signal of the AND gate 125 is "0" and the output signal of the AND gate 126 is "1" (that is, when the bit string BIN to be converted is "01xx").
Outputs "010" as code data DT2. When the output signals of the AND gates 125 and 126 are both “0” (that is, when the conversion target bit string BIN is neither “00xx” nor “01xx”), “000” is output as the code data DT2, NOR
“1” is output from the gate 127 as the non-detection signal NS1.

【0040】図4は第3の変換手段13の構成を示す回
路図である。図4において、13aは符号検出部、13
bは符号データ生成部であり、符号検出部13aは相補
バッファ131〜134及びANDゲート135,13
6を備え、符号データ生成部13bはNORゲート13
7を備えている。符号検出部13aにおいて、ANDゲ
ート135は相補バッファ131の正転出力信号、相補
バッファ132の反転出力信号及び相補バッファ133
の反転出力信号を入力とし、入力信号が全て“1”のと
きのみすなわち変換対象のビット列BINが表2に示す
グループ3の可変長符号“100x”のときのみ“1”
を出力する。一方、ANDゲート136は相補バッファ
131の正転出力信号、相補バッファ132の正転出力
信号、相補バッファ133の正転出力信号及び相補バッ
ファ134の反転出力信号を入力とし、入力信号が全て
“1”のときのみすなわち変換対象のビット列BINが
表2に示すグループ3の可変長符号“111x”のとき
のみ“1”を出力する。
FIG. 4 is a circuit diagram showing the configuration of the third conversion means 13. In FIG. 4, reference numeral 13a denotes a code detection unit;
b denotes a code data generation unit, and the code detection unit 13a includes complementary buffers 131 to 134 and AND gates 135, 13
6 and the code data generation unit 13b includes a NOR gate 13
7 is provided. In the sign detection unit 13a, the AND gate 135 outputs the non-inverted output signal of the complementary buffer 131, the inverted output signal of the complementary buffer 132, and the complementary buffer 133.
And "1" only when the input signals are all "1", that is, only when the bit string BIN to be converted is the variable length code "100x" of group 3 shown in Table 2.
Is output. On the other hand, the AND gate 136 receives the non-inverted output signal of the complementary buffer 131, the non-inverted output signal of the complementary buffer 132, the non-inverted output signal of the complementary buffer 133, and the inverted output signal of the complementary buffer 134, and all the input signals are "1". "1" is output only when the bit string BIN to be converted is the variable length code "111x" of group 3 shown in Table 2.

【0041】符号データ生成部13bは、符号検出部1
3aのANDゲート135の出力信号を下位2ビットと
するとともにANDゲート136の出力信号を最上位ビ
ットとする3ビットの符号データDT3を出力する。こ
れによって、ANDゲート135の出力信号が“1”で
ありかつANDゲート136の出力信号が“0”のとき
(すなわち変換対象のビット列BINが“100x”の
とき)は符号データDT3として“011”が出力され
る一方、ANDゲート135の出力信号が“0”であり
かつANDゲート136の出力信号が“1”のとき(す
なわち変換対象のビット列BINが“1110”のと
き)は符号データDT3として“100”が出力され
る。またANDゲート135,136の出力信号がとも
に“0”のとき(すなわち変換対象のビット列BINが
“100x”でも“1110”でもないとき)、符号デ
ータDT3として“000”が出力される一方、NOR
ゲート137から非検出信号NS3として“1”が出力
される。
The code data generation unit 13b includes the code detection unit 1
It outputs 3-bit code data DT3 with the output signal of the AND gate 135 of 3a being the lower 2 bits and the output signal of the AND gate 136 being the most significant bit. Thus, when the output signal of the AND gate 135 is “1” and the output signal of the AND gate 136 is “0” (that is, when the bit string BIN to be converted is “100x”), “011” is used as the code data DT3. Is output, and when the output signal of the AND gate 135 is "0" and the output signal of the AND gate 136 is "1" (that is, when the bit string BIN to be converted is "1110"), the code data DT3 is output. “100” is output. When the output signals of AND gates 135 and 136 are both “0” (that is, when bit string BIN to be converted is neither “100x” nor “1110”), “000” is output as sign data DT3, and NOR is output.
“1” is output from the gate 137 as the non-detection signal NS3.

【0042】図1に示す本実施形態に係る可変長符号変
換器の動作について説明する。
The operation of the variable length code converter according to this embodiment shown in FIG. 1 will be described.

【0043】選択信号T1によって符号体系T1が選択
されたときは第1及び第2の変換手段11,12が選択
される一方、選択信号T2によって符号体系T2が選択
されたときは第2及び第3の変換手段12,13が選択
される。そして、選択された2つの変換手段のうち、非
検出信号が出力されていない方の変換手段から出力され
た符号データを、当該可変長符号変換器の出力データD
OUTとする。
When the coding system T1 is selected by the selection signal T1, the first and second conversion means 11 and 12 are selected, while when the coding system T2 is selected by the selection signal T2, the second and second conversion means are selected. 3 conversion means 12 and 13 are selected. Then, of the two selected conversion means, the code data output from the conversion means to which the non-detection signal is not output is converted to the output data D of the variable length code converter.
OUT.

【0044】例えば選択信号T1が“1”でありかつ選
択信号T2が“0”のときすなわち符号体系T1が選択
されたとき、ANDゲート26の出力信号は、一方の入
力である選択信号T2が“0”であるため“0”にな
り、このため第3のトライステートバッファ23の出力
はハイインピーダンス状態になり、第3の変換手段13
の符号データDT3が出力データDOUTとして出力さ
れることはなくなる。
For example, when the selection signal T1 is "1" and the selection signal T2 is "0", that is, when the coding system T1 is selected, the output signal of the AND gate 26 is such that the selection signal T2 which is one input is Since it is "0", it becomes "0", so that the output of the third tristate buffer 23 enters a high impedance state, and the third conversion means 13
Will not be output as output data DOUT.

【0045】一方、ANDゲート24の出力信号は、一
方の入力である選択信号T1が“1”であるため、他方
の入力である第1の変換手段11の非検出信号NS1の
反転信号と同値になり、ANDゲート25の出力信号
は、一方の入力であるORゲート27の出力信号すなわ
ち選択信号T1,T2の論理和信号が“1”であるた
め、他方の入力である第2の変換手段12の非検出信号
NS2の反転信号と同値になる。
On the other hand, the output signal of the AND gate 24 has the same value as the inverted signal of the non-detection signal NS1 of the first conversion means 11 which is the other input because the selection signal T1 as one input is "1". Since the output signal of the OR gate 27, which is one input, that is, the logical sum signal of the selection signals T1 and T2 is "1", the output signal of the AND gate 25 is the second conversion means which is the other input. It has the same value as the inverted signal of the twelve non-detection signals NS2.

【0046】このとき変換対象のビット列BINとして
“00xx”が入力されたとすると、表2において可変
長符号“00xx”はグループ1にはないがグループ2
にはあるので、第1の変換手段11の非検出信号NS1
は“1”になる一方、第2の変換手段12の非検出信号
NS2は“0”になる。このため、ANDゲート24の
出力信号は“0”になる一方、ANDゲート25の出力
信号は“1”になり、これにより第1のトライステート
バッファ21の出力はハイインピーダンス状態になる一
方、第2のトライステートバッファ22は第2の変換手
段12の符号データDT2をそのまま出力する。第2の
変換手段12は符号データDT2として“001”を出
力するので、当該可変長符号変換器から出力データDO
UTとして“001”が出力される。
At this time, assuming that “00xx” is input as the bit string BIN to be converted, the variable length code “00xx” in Table 2 is not in Group 1 but in Group 2
, The non-detection signal NS1 of the first conversion means 11
Becomes "1", while the non-detection signal NS2 of the second conversion means 12 becomes "0". Therefore, the output signal of the AND gate 24 becomes "0", while the output signal of the AND gate 25 becomes "1", whereby the output of the first tri-state buffer 21 becomes a high impedance state, and The second tri-state buffer 22 outputs the code data DT2 of the second conversion means 12 as it is. Since the second conversion means 12 outputs "001" as the code data DT2, the output data DO from the variable-length code converter is output.
“001” is output as the UT.

【0047】またこのとき、不正符号検出手段30にお
いて、ANDゲート31,32の出力信号は、一の入力
である第2の変換手段12の非検出信号NS2が“0”
なのでともに“0”になり、ORゲート33はANDゲ
ート31,32の出力信号の論理和信号すなわち“0”
を不正符号検出信号NGの出力線に出力する。
At this time, in the illegal code detecting means 30, the output signal of the AND gates 31, 32 is such that the non-detection signal NS2 of the second converting means 12, which is one input, is "0".
Therefore, both become "0", and the OR gate 33 outputs the logical sum signal of the output signals of the AND gates 31, 32, that is, "0".
Is output to the output line of the illegal code detection signal NG.

【0048】一方、このとき変換対象のビット列BIN
として、グループ1,2のいずれにも属さない可変長符
号例えば“100x”が入力されたとすると、第1及び
第2の変換手段11,12は共に非検出信号NS1,N
S2として“1”を出力するので、不正符号検出手段3
0において、ANDゲート31の出力信号は入力信号が
全て“1”であるため“1”になり、したがってORゲ
ート33から不正符号検出信号NGとして“1”が出力
される。
On the other hand, at this time, the bit string BIN to be converted is
Assuming that a variable length code that does not belong to any of the groups 1 and 2, for example, “100x” is input, the first and second conversion units 11 and 12 both output the non-detection signals NS1 and N2.
Since "1" is output as S2, the illegal code detecting means 3
At "0", the output signal of the AND gate 31 becomes "1" because the input signals are all "1". Therefore, "1" is output from the OR gate 33 as the illegal code detection signal NG.

【0049】また、選択信号T1が“0”でありかつ選
択信号T2が“1”のときすなわち符号体系T2が選択
されたときも、同様に動作する。
The same operation is performed when the selection signal T1 is "0" and the selection signal T2 is "1", that is, when the coding system T2 is selected.

【0050】以上説明したように、本実施形態に係る可
変長符号変換器によると、符号体系T1と他の符号体系
T2とにおいて共通する部分については第2の変換手段
12を共用するので、その分、回路を削減することがで
き、従来よりも回路規模を小さくすることができる。ま
た本実施形態に係る可変長符号変換器は、入力された変
換対象のビット列BINに誤りがあることを示す不正符
号検出信号NGを出力することができる。
As described above, according to the variable-length code converter according to the present embodiment, the second conversion means 12 is shared for the common part between the coding system T1 and the other coding system T2. Accordingly, the number of circuits can be reduced, and the circuit scale can be made smaller than before. Further, the variable-length code converter according to the present embodiment can output an incorrect code detection signal NG indicating that the input bit string BIN to be converted has an error.

【0051】なお本実施形態では、符号体系T1と符号
体系T2とにおいて共通する部分の全てについて、第2
の変換手段12を用いるものとしたが、符号体系T1と
符号体系T2とにおいて共通する部分の一部について変
換手段を共用する構成としてもよい。
In this embodiment, all of the parts common to the coding system T1 and the coding system T2 are
Although the conversion means 12 is used, a configuration may be adopted in which the conversion means is shared for a part of a portion common to the coding system T1 and the coding system T2.

【0052】また、符号体系の数は2に限られるもので
なく、3以上であっても、本実施形態と同様にして、変
換手段を共用する構成を実現することができる。
Further, the number of coding systems is not limited to two, and even if it is three or more, it is possible to realize a configuration sharing the conversion means in the same manner as in the present embodiment.

【0053】またここでは可変長符号変換器としたが、
固定長符号変換器においても本実施形態と同様にして、
変換手段を共用する構成を実現することができる。
Although the variable length code converter is used here,
In the fixed-length code converter, similarly to the present embodiment,
A configuration that shares the conversion means can be realized.

【0054】図5は本発明の一実施形態に係る可変長符
号復号装置の構成を示すブロック図である。図5に示す
可変長符号復号装置は、図1に示すような不正符号検出
信号NGを出力する機能を有する可変長符号変換器を備
えたものであり、例えばDVD装置における可変長符号
復号に用いられるものである。
FIG. 5 is a block diagram showing a configuration of a variable length code decoding apparatus according to one embodiment of the present invention. The variable-length code decoding device shown in FIG. 5 includes a variable-length code converter having a function of outputting an illegal code detection signal NG as shown in FIG. 1, and is used for variable-length code decoding in a DVD device, for example. It is something that can be done.

【0055】図5において、41はFIFOから構成さ
れ、復号されるべきビット列を格納するメモリ、42は
メモリ41から読み出されたビット列を格納する第1の
レジスタ、43は第1のレジスタ42から出力されたビ
ット列を格納する第2のレジスタ、44は第1及び第2
のレジスタ42,43に格納されているビット列をシフ
タ入力SINとして入力し、シフタ入力SINをシフト
量SVだけ上位ビット側にシフトして出力するシフタ、
45はシフタ44から出力されたビット列の上位ビット
を変換対象のビット列BINとし、符号データDOUT
及び符号長DLに変換出力する可変長符号変換器、46
は可変長符号変換器45から出力された符号長DLを累
算し、累算値をシフタ44にシフト量SVとして入力す
る累算器、47は可変長符号復号が正常に行われなかっ
たときの制御を行うコントローラ、48は累算器46の
桁あふれ信号CR及び信号“1”のいずれか一方を読み
出し信号ROとしてメモリ41に選択入力するセレクタ
である。
In FIG. 5, reference numeral 41 denotes a memory which stores a bit string to be decoded, 42 denotes a first register which stores a bit string read from the memory 41, and 43 denotes a first register which stores a bit string to be decoded. A second register for storing the output bit string, 44 is a first register and a second register.
A shifter that inputs the bit strings stored in the registers 42 and 43 as shifter inputs SIN, shifts the shifter input SIN by the shift amount SV toward the upper bits, and outputs
Numeral 45 designates the upper bit of the bit string output from the shifter 44 as a bit string BIN to be converted, and sign data DOUT
And a variable-length code converter for converting and outputting to a code length DL, 46
Is an accumulator that accumulates the code length DL output from the variable length code converter 45 and inputs the accumulated value to the shifter 44 as the shift amount SV. 47 indicates a case where variable length code decoding is not performed normally. Is a selector for selectively inputting either the overflow signal CR of the accumulator 46 or the signal "1" to the memory 41 as a read signal RO.

【0056】メモリ41は復号されるべきビット列を8
ビット毎にアラインして格納しており、読み出し信号R
Oとして“1”が与えられたとき8ビット単位でビット
列を出力する。第1及び第2のレジスタ42,43はシ
フトレジスタを構成しており、第1のレジスタ42はメ
モリ41から出力された8ビットのビット列を格納する
と共に、格納していたビット列を第2のレジスタ43に
入力し、第2のレジスタ43は第1のレジスタ42から
ビット列が入力される度に格納しているビット列を更新
する。シフタ44は第1のレジスタ42の格納ビット列
を下位ビットとし第2のレジスタ43の格納ビット列を
上位ビットとする16ビットのビット列をシフタ入力S
INとして入力し、シフト量SVすなわち累算器46に
よる符号長DLの累算値に相当するビット数だけ、入力
した16ビットのビット列を上位側にシフトし、シフト
結果のビット列の上位8ビットを出力する。
The memory 41 stores a bit string to be decoded in 8 bits.
Aligned and stored for each bit, and the read signal R
When "1" is given as O, a bit string is output in units of 8 bits. The first and second registers 42 and 43 constitute a shift register. The first register 42 stores an 8-bit bit string output from the memory 41 and stores the stored bit string in a second register. 43, and the second register 43 updates the stored bit string every time the bit string is input from the first register 42. The shifter 44 inputs a 16-bit bit string having the bit sequence stored in the first register 42 as the lower bit and the bit sequence stored in the second register 43 as the upper bit.
IN, the input 16-bit bit string is shifted to the upper side by the shift amount SV, that is, the number of bits corresponding to the accumulated value of the code length DL by the accumulator 46, and the upper 8 bits of the bit string of the shift result are shifted. Output.

【0057】シフタ44から出力された8ビットのビッ
ト列のうち上位4ビットは変換対象のビット列BINと
して可変長符号変換器45に入力される。可変長符号変
換器45は図1に示すような構成からなるものとし、変
換対象のビット列BINが、表1に示す符号体系T1,
T2のうち選択信号T1,T2によって指定された方に
属する可変長符号のいずれかに該当する否かを判定し、
該当するときは、対応する3ビットの符号データを出力
データDOUTとして出力する一方、いずれにも該当し
ないときは、不正符号検出信号NGとして“1”を出力
する。可変長符号変換器45から出力された出力データ
DOUTは当該可変長符号復号装置から復号データとし
て出力され、可変長符号変換器45から出力された不正
符号検出信号NGは当該可変長符号復号装置から誤り検
出信号として出力される。
The upper 4 bits of the 8-bit bit string output from the shifter 44 are input to the variable-length code converter 45 as a bit string BIN to be converted. The variable-length code converter 45 has a configuration as shown in FIG. 1, and the bit string BIN to be converted is a code system T1, T1 shown in Table 1.
It is determined whether or not any of the variable length codes belonging to the one designated by the selection signals T1 and T2 among T2 is applicable,
If so, the corresponding 3-bit code data is output as the output data DOUT. If none of the above applies, “1” is output as the incorrect code detection signal NG. The output data DOUT output from the variable length code converter 45 is output as decoded data from the variable length code decoder, and the illegal code detection signal NG output from the variable length code converter 45 is output from the variable length code decoder. Output as an error detection signal.

【0058】また本実施形態では、可変長符号変換器4
5は、次に復号を行う可変長符号の先頭ビット位置を求
めるための情報として、可変長符号の符号長DLも生成
出力する。表3は符号体系T1における可変長符号と符
号データ及び符号長との関係を示す表、表4は表3に対
応する2進数表記の真理値表である。
In this embodiment, the variable-length code converter 4
5 also generates and outputs the code length DL of the variable length code as information for obtaining the head bit position of the variable length code to be decoded next. Table 3 is a table showing the relationship between variable length codes, code data, and code lengths in the coding system T1, and Table 4 is a truth table in binary notation corresponding to Table 3.

【0059】[0059]

【表3】 [Table 3]

【0060】[0060]

【表4】 [Table 4]

【0061】なお、可変長符号変換器45において、符
号長を生成出力するための構成は、例えば図2に示す符
号データ生成部11bと同様に符号検出部11aの出力
信号を用いることによって、表4に示す真理値表に基づ
いて容易に実現することができる。累算器46は可変長
符号変換器45から出力された3ビットの符号長DLを
“7”(10進数)を上限として累算し、累算値をシフ
タ44にシフト量SVとして入力するとともに、累算値
が上限を越えたとき、桁あふれ信号CRを“1”にす
る。セレクタ47は、通常(コントローラ47から異常
信号ERが出力されていないとき)は、累算器46から
出力された桁あふれ信号CRをメモリ41に読み出し信
号ROとして選択出力する。
The configuration for generating and outputting the code length in the variable-length code converter 45 is, for example, by using the output signal of the code detection unit 11a as in the case of the code data generation unit 11b shown in FIG. 4 can be easily realized based on the truth table shown in FIG. The accumulator 46 accumulates the 3-bit code length DL output from the variable-length code converter 45 up to “7” (decimal number), and inputs the accumulated value to the shifter 44 as the shift amount SV. When the accumulated value exceeds the upper limit, the overflow signal CR is set to "1". Normally (when the abnormal signal ER is not output from the controller 47), the selector 47 selects and outputs the overflow signal CR output from the accumulator 46 to the memory 41 as a read signal RO.

【0062】コントローラ48は可変長符号変換器45
から不正符号検出信号NGが出力されたとき、異常信号
ERを出力する。コントローラ48から異常信号ERが
出力されると、累算器46は累算値を“0”にリセット
し、セレクタ47は信号“1”を読み出し信号ROとし
てメモリ41に選択入力する。これによりメモリ41
は、格納しているビット列を8ビット単位で連続出力す
る。
The controller 48 includes a variable length code converter 45
Outputs an abnormal signal ER when an invalid code detection signal NG is output from the controller. When the abnormal signal ER is output from the controller 48, the accumulator 46 resets the accumulated value to "0", and the selector 47 selectively inputs the signal "1" to the memory 41 as a read signal RO. Thereby, the memory 41
Outputs the stored bit string continuously in units of 8 bits.

【0063】図5に示す本実施形態に係る可変長符号復
号装置について、まず通常の動作を説明する。通常の動
作において、コントローラ48は異常信号ERを出力せ
ず、セレクタ47は常に累算器46の桁あふれ信号CR
を読み出し信号ROとしてメモリ41に入力する。
The normal operation of the variable length code decoding apparatus according to this embodiment shown in FIG. 5 will be described first. In a normal operation, the controller 48 does not output the abnormal signal ER, and the selector 47 always outputs the overflow signal CR of the accumulator 46.
Is input to the memory 41 as a read signal RO.

【0064】図6は図5に示す本実施形態に係る可変長
符号復号装置の通常の動作を示すフローチャートであ
る。ここでは、符号体系T1に基づいた可変長符号変換
が行われるものとする。
FIG. 6 is a flowchart showing a normal operation of the variable length code decoding apparatus according to the present embodiment shown in FIG. Here, it is assumed that variable length code conversion based on the coding system T1 is performed.

【0065】いまサイクル1において、第1及び第2の
レジスタ42,43に格納されたビット列がそれぞれ
“111xxxxx”,“00011011”であり、
累算器46の累算値が“0”であるものとする。このと
き、シフタ44に入力されるビット列(シフタ入力SI
N)は“00011011111xxxxx”であり、
シフト量SVは“0”であるので、シフタ44から出力
されるビット列(図6のシフタ入力SINにおいて破線
で囲んだもの)は“00011011”となる。可変長
符号変換器45にはシフタ44の出力ビット列の上位4
ビットが変換対象のビット列BINとして入力されるの
で、ここでは“0001”が変換対象のビット列BIN
として入力され、表4の真理値表に基づいてデータDO
UTとして“001”が、符号長DLとして“010”
(10進数の“2”)がそれぞれ出力される。累算器4
6は可変長符号変換器45から出力された符号長DLを
累算するので、その累算値は“2”になる。
Now, in cycle 1, the bit strings stored in the first and second registers 42 and 43 are "111xxxxxx" and "00011011", respectively.
It is assumed that the accumulated value of the accumulator 46 is “0”. At this time, the bit string input to the shifter 44 (shifter input SI
N) is “00011011111xxxxxx”,
Since the shift amount SV is “0”, the bit string output from the shifter 44 (enclosed by a broken line in the shifter input SIN in FIG. 6) is “00011011”. The variable length code converter 45 has the upper 4 bits of the output bit string of the shifter 44.
Since the bits are input as the bit string BIN to be converted, here, “0001” is the bit string BIN to be converted.
And based on the truth table of Table 4, the data DO
“001” as the UT and “010” as the code length DL
(Decimal "2") is output. Accumulator 4
6 accumulates the code length DL output from the variable length code converter 45, so that the accumulated value becomes "2".

【0066】次にサイクル2において、シフタ44は、
シフト量SVが“2”であるのでビット列として“01
101111”を出力する。このため変換対象のビット
列BINは“0110”になり、可変長符号変換器45
は表4の真理値表に基づいて、データDOUTとして
“010”を、符号長DLとして“010”(10進数
の“2”)をそれぞれ出力する。この結果、累算器46
の累算値は“4”になる。
Next, in cycle 2, the shifter 44
Since the shift amount SV is “2”, “01” is
101111 ". Therefore, the bit string BIN to be converted becomes" 0110 "and the variable-length code converter 45
Outputs “010” as data DOUT and “010” (decimal “2”) as code length DL based on the truth table of Table 4. As a result, the accumulator 46
Is "4".

【0067】サイクル3においても同様に動作する。シ
フタ44はシフト量SVが“4”であるのでビット列と
して“10111111”を出力する。このため変換対
象のビット列BINは“1011”になり、可変長符号
変換器45は表4の真理値表に基づいて、データDOU
Tとして“011”を、符号長DLとして“011”
(10進数の“3”)をそれぞれ出力する。この結果、
累算器46の累算値は“7”になる。
The same operation is performed in cycle 3. The shifter 44 outputs “10111111” as a bit string because the shift amount SV is “4”. Therefore, the conversion target bit string BIN becomes “1011”, and the variable-length code converter 45 outputs the data DOU based on the truth table of Table 4.
“011” as T and “011” as code length DL
(Decimal "3") is output. As a result,
The accumulated value of the accumulator 46 becomes "7".

【0068】サイクル4においても同様に動作する。シ
フタ44はシフト量SVが“7”であるのでビット列と
して“1111xxxx”を出力する。このため変換対
象のビット列BINは“1111”になり、可変長符号
変換器45は表4の真理値表に基づいて、データDOU
Tとして“100”を、符号長DLとして“100”
(10進数の“4”)をそれぞれ出力する。
The same operation is performed in cycle 4. The shifter 44 outputs “1111xxxx” as a bit string because the shift amount SV is “7”. Therefore, the conversion target bit string BIN becomes “1111”, and the variable-length code converter 45 outputs the data DOU based on the truth table of Table 4.
“100” as T and “100” as code length DL
(Decimal "4") is output.

【0069】このとき、累算器46は累算値“7”に符
号長“4”を加算するが累算値の上限が“7”なので桁
あふれが生じ、累算値を“3”にするとともに桁あふれ
信号CRとして“1”を出力する。桁あふれ信号CRは
セレクタ47を介してメモリ41に読み出し信号ROと
して入力されるので、この結果、サイクル5において、
メモリ41から新たな8ビットのビット列“xxxxx
xxx”が読み出され、また第2のレジスタ43には第
1のレジスタ42に格納されていたビット列“111x
xxxx”が格納される。このとき、シフタ入力SIN
は“111xxxxxxxxxxxxx”になり、シフ
ト量SVは“3”であるので、シフタ44から出力され
るビット列は“xxxxxxxx”となる。
At this time, the accumulator 46 adds the code length "4" to the accumulated value "7". However, since the upper limit of the accumulated value is "7", overflow occurs, and the accumulated value becomes "3". And outputs “1” as the overflow signal CR. Since the overflow signal CR is input to the memory 41 via the selector 47 as a read signal RO, as a result, in the cycle 5,
From the memory 41, a new 8-bit bit string “xxxx
xxx "is read out, and the bit string" 111x "stored in the first register 42 is stored in the second register 43.
xxxx "is stored. At this time, the shifter input SIN
Becomes “111xxxxxxxxxxxx” and the shift amount SV is “3”, so that the bit string output from the shifter 44 becomes “xxxxxxxxx”.

【0070】次に、ビット列に誤りが生じたときの動作
について説明する。
Next, the operation when an error occurs in the bit string will be described.

【0071】何らかの原因でビット列に“0”/“1”
の反転等の誤りが生じたとき、可変長符号の場合には、
符号長が正しく求められないために、誤り発生以降の復
号がでたらめ又は不可能になる。図5に示す本実施形態
に係る可変長符号復号装置では、ビット列中の誤り発生
を可変長符号変換器45によって検出し、このとき、ビ
ット列中のヘッダを探索する動作を行う。
For some reason, "0" / "1" is added to the bit string.
When an error such as inversion of
Since the code length cannot be determined correctly, decoding after the occurrence of an error is random or impossible. In the variable length code decoding apparatus according to the present embodiment shown in FIG. 5, the occurrence of an error in a bit string is detected by the variable length code converter 45, and at this time, an operation of searching for a header in the bit string is performed.

【0072】図7はDVD装置におけるビット列の概略
構成を示す図である。図7に示すように、DVD装置に
おけるビット列はスライス、ピクチャ及びシーケンスと
いう階層構造を有しており、ビット列全体に相当するシ
ーケンスはいくつかのピクチャからなり、ピクチャはい
くつかのスライスからなり、スライスはマクロブロック
と呼ばれるデータのかたまりからなる。またスライス、
ピクチャ及びシーケンスはそれぞれ、データの先頭位置
を示すヘッダを有している。画像圧縮の国際標準である
MPEGでは、ヘッダの始まりを示すスタートコードプ
レフィクスとして、23個もしくはこれ以上の“0”の
後に“1”が続くビット列を規定している。なお、ヘッ
ダはスタートコードプレフィクスに加えて、ヘッダの種
類(スライス、ピクチャ又はシーケンスの別)を表す8
ビットのスタートコードバリューを有している。
FIG. 7 is a diagram showing a schematic configuration of a bit string in a DVD device. As shown in FIG. 7, a bit sequence in a DVD device has a hierarchical structure of slices, pictures, and sequences. A sequence corresponding to the entire bit sequence includes several pictures, a picture includes several slices, and a slice. Consists of a block of data called a macroblock. Also slice,
Each of the picture and the sequence has a header indicating the head position of the data. MPEG, which is an international standard for image compression, defines a bit string in which 23 or more “0” s are followed by “1” as a start code prefix indicating the beginning of a header. The header indicates the type of the header (slice, picture or sequence) in addition to the start code prefix.
It has a start code value of bits.

【0073】図5に示す可変長符号復号装置において、
可変長符号変換器45は、入力された変換対象のビット
列BINがいずれの可変長符号にも該当しなかったと
き、不正符号検出信号NGを出力する。コントローラ4
8は、可変長符号変換器45から不正符号検出信号NG
が出力されたとき、復号動作を中断してビット列中のヘ
ッダを変換対象のビット列BINから後方検索するよ
う、可変長符号復号装置を制御する。
In the variable length code decoding apparatus shown in FIG.
The variable length code converter 45 outputs an invalid code detection signal NG when the input bit string BIN to be converted does not correspond to any variable length code. Controller 4
8 is an illegal code detection signal NG from the variable length code converter 45.
Is output, the decoding operation is interrupted and the variable-length code decoding device is controlled so that the header in the bit string is searched backward from the bit string BIN to be converted.

【0074】すなわち、可変長符号変換器45から不正
符号検出信号NGが出力されたとき、コントローラ48
は異常信号ERを出力し、この異常信号ERに従い、累
算器46は累算値を“0”にリセットし、セレクタ47
は信号“1”をメモリ41に読み出し信号ROとして選
択出力する。これにより、メモリ41からビット列が8
ビット単位で読み出され、かつシフタ44のシフト量S
Vは“0”であるので、メモり41に記憶されたビット
列がシフタ44から8ビットずつ出力される。コントロ
ーラ48はシフタ44から出力される8ビットのビット
列を監視し、ヘッダの始まりを示すスタートコードプレ
フィクスと同一のビット列がシフタ44から出力された
とき、ヘッダを検出したと認識して異常信号ERを解除
する。これによって、検出されたヘッダの直後から通常
の可変長符号復号が再開される。
That is, when the illegal code detection signal NG is output from the variable length code converter 45, the controller 48
Outputs an abnormal signal ER, and in accordance with the abnormal signal ER, the accumulator 46 resets the accumulated value to “0”, and the selector 47
Selectively outputs a signal "1" to the memory 41 as a read signal RO. As a result, the bit string of 8
The shift amount S of the shifter 44 is read out in bit units.
Since V is “0”, the bit string stored in the memory 41 is output from the shifter 44 in units of 8 bits. The controller 48 monitors the 8-bit bit string output from the shifter 44. When the same bit string as the start code prefix indicating the start of the header is output from the shifter 44, the controller 48 recognizes that the header has been detected and recognizes the abnormal signal ER. Cancel. As a result, normal variable-length code decoding is restarted immediately after the detected header.

【0075】例えばMPEGの場合には、シフタ44か
ら“00000000”“00000000”“000
00001”と連続して出力された場合に、ヘッダを検
出したと認識すればよい。これによってスライスのヘッ
ダが(場合によってはピクチャ、シーケンスのヘッダ
が)検出されることになる。
For example, in the case of MPEG, “00000000”, “00000000”, “000”
It is sufficient to recognize that the header has been detected when the data is continuously output as "00001". In this case, the header of the slice (in some cases, the header of the picture or the sequence) is detected.

【0076】このような動作によって、ビット列に誤り
が生じた場合でも、短時間で確実に正常な可変長符号復
号動作を復旧することができる。また、正常な可変長符
号復号動作を次のスライスから再開することができるの
で、ビット列の誤りがデータに及ぼす影響はほとんどな
い。
By such an operation, even when an error occurs in the bit string, a normal variable length code decoding operation can be reliably restored in a short time. Further, since the normal variable-length code decoding operation can be restarted from the next slice, the error of the bit string hardly affects the data.

【0077】本実施形態では、コントローラ47及びセ
レクタ48、並びに通常の動作において用いられるメモ
リ41、第1及び第2のレジスタ42,43、シフタ4
4及び累算器46によって、ヘッダ検索手段が構成され
ている。すなわち本実施形態に係る可変長符号復号装置
は、通常の可変長符号復号装置の構成にコントローラ4
7及びセレクタ48を付加することによって実現されて
おり、極めて簡易な構成によってヘッダ検索手段が実現
されている。
In this embodiment, the controller 47, the selector 48, the memory 41, the first and second registers 42, 43, and the shifter 4 used in the normal operation are used.
4 and the accumulator 46 constitute a header search means. That is, the variable-length code decoding device according to the present embodiment has a
7 and a selector 48, and a header search means is realized by an extremely simple configuration.

【0078】なお、図5に示す本実施形態に係る可変長
符号復号装置は、DVD装置における可変長符号復号に
対してのみ用いられるものでなく、データの区切りを示
すヘッダを有するビット列に対する可変長符号復号であ
れば、他の用途においても適用可能である。
The variable-length code decoding apparatus according to the present embodiment shown in FIG. 5 is not only used for variable-length code decoding in a DVD device, but is not limited to variable-length code decoding for a bit string having a header indicating data delimiter. If it is code decoding, it can be applied to other uses.

【0079】なお、図5に示す可変長符号変換器45の
構成は図1に示すものに限られるものでなく、例えば複
数の変換手段を有しない図8に示すような構成でもかま
わない。図8に示す可変長符号変換器は図2に示す第1
の変換手段11とほぼ同様の構成からなり、変換対象の
ビット列BINを入力とし各可変長符号の検出を行う符
号検出部51と、符号検出部51の検出結果に基づい
て、検出された可変長符号に対応する出力データDOU
T及び不正符号検出信号NGを生成出力する符号データ
生成部52とを備えている。符号検出部51は、変換対
象のビット列BINの各ビットを入力とし正転及び反転
信号を出力する相補バッファ群53及び各可変長符号に
対応するANDゲート群54を備え、符号データ生成部
52はANDゲート群54の出力信号から出力データD
OUTを生成出力するORゲート55、及びANDゲー
ト群54の出力信号から不正符号検出信号NGを生成出
力するNORゲート56を備えている。
The configuration of the variable-length code converter 45 shown in FIG. 5 is not limited to that shown in FIG. 1, but may be, for example, a configuration shown in FIG. 8, which does not have a plurality of conversion means. The variable length code converter shown in FIG.
And a code detecting section 51 which receives a bit string BIN to be converted and detects each variable length code, and detects a variable length detected based on the detection result of the code detecting section 51. Output data DOU corresponding to code
And a code data generator 52 for generating and outputting T and an invalid code detection signal NG. The code detection unit 51 includes a complementary buffer group 53 that receives each bit of the bit string BIN to be converted and outputs a non-inverted signal and an inverted signal, and an AND gate group 54 corresponding to each variable-length code. From output signals of AND gate group 54, output data D
An OR gate 55 for generating and outputting OUT, and a NOR gate 56 for generating and outputting an incorrect code detection signal NG from the output signal of the AND gate group 54 are provided.

【0080】なお、本実施形態において可変長符号復号
装置としたが、本発明は、不正符号検出工程とヘッダ検
出工程とを備えた可変長符号復号ソフトウェアのアルゴ
リズムとしてもよい。
Although the variable-length code decoding apparatus is used in the present embodiment, the present invention may be applied to an algorithm of variable-length code decoding software including an illegal code detection step and a header detection step.

【0081】[0081]

【発明の効果】以上のように、本発明に係る符号変換器
によると、一の符号体系と他の符号体系とにおいて共通
する部分に対応する回路を削減することができるので、
従来よりも回路規模を小さくすることができる。
As described above, according to the code converter of the present invention, it is possible to reduce the number of circuits corresponding to parts common to one code system and another code system.
The circuit scale can be made smaller than before.

【0082】また、本発明の可変長符号復号装置及び方
法によると、ビット列に誤りがある場合には即座に検出
され、また、データの区切りを示すヘッダの直後から復
号が再開されるので、従来よりも復号処理の復旧をきめ
細かに行うことができ、かつ、復旧後の符号データの信
頼性が高くリアルタイムな復号処理にも適用可能であ
る。
Further, according to the variable length code decoding apparatus and method of the present invention, if an error is found in a bit string, it is immediately detected, and decoding is restarted immediately after a header indicating a data delimiter. Recovery of the decoding process can be performed more finely than before, and the code data after the recovery has high reliability and can be applied to a real-time decoding process.

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

【図1】本発明の一実施形態に係る符号変換器の回路構
成を示す図である。
FIG. 1 is a diagram illustrating a circuit configuration of a code converter according to an embodiment of the present invention.

【図2】図1に示す本発明の一実施形態に係る符号変換
器における第1の変換手段11の構成を示す図である。
FIG. 2 is a diagram showing a configuration of a first converter 11 in the code converter according to the embodiment of the present invention shown in FIG.

【図3】図1に示す本発明の一実施形態に係る符号変換
器における第2の変換手段12の構成を示す図である。
FIG. 3 is a diagram showing a configuration of a second conversion unit 12 in the code converter according to the embodiment of the present invention shown in FIG. 1;

【図4】図1に示す本発明の一実施形態に係る符号変換
器における第3の変換手段13の構成を示す図である。
FIG. 4 is a diagram showing a configuration of a third conversion unit 13 in the code converter according to the embodiment of the present invention shown in FIG. 1;

【図5】本発明の一実施形態に係る可変長符号復号装置
の構成を示す図である。
FIG. 5 is a diagram showing a configuration of a variable-length code decoding device according to one embodiment of the present invention.

【図6】図5に示す本発明の一実施形態に係る可変長符
号復号装置の動作を示すタイミングチャートである。
FIG. 6 is a timing chart showing the operation of the variable length code decoding device according to the embodiment of the present invention shown in FIG.

【図7】DVD装置におけるビット列の概略構成を示す
図である。
FIG. 7 is a diagram showing a schematic configuration of a bit string in a DVD device.

【図8】本発明の一実施形態に係る可変長符号復号装置
において用いられる可変長符号変換器の他の構成例を示
す図である。
FIG. 8 is a diagram illustrating another configuration example of the variable-length code converter used in the variable-length code decoding device according to the embodiment of the present invention.

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

11 第1の変換手段(第1の専用変換手段) 12 第2の変換手段(共用変換手段) 13 第3の変換手段(第2の専用変換手段) 20 選択手段 30 不正符号検出手段 41 メモリ 42 第1のレジスタ 43 第2のレジスタ 44 シフタ 45 可変長符号変換器 46 累算器 47 コントローラ 48 セレクタ BIN 変換対象のビット列 CR 桁あふれ信号 DT1,DT2,DT3 符号データ DOUT 出力データ DL 符号長 ER 異常信号 NS1,NS2,NS3 非検出信号 NG 不正符号検出信号 RO 読み出し信号 SIN シフタ入力 SV シフト量 11 first conversion means (first dedicated conversion means) 12 second conversion means (shared conversion means) 13 third conversion means (second dedicated conversion means) 20 selection means 30 illegal code detection means 41 memory 42 First register 43 Second register 44 Shifter 45 Variable length code converter 46 Accumulator 47 Controller 48 Selector BIN Bit string to be converted CR Overflow signal DT1, DT2, DT3 Code data DOUT Output data DL Code length ER Abnormal signal NS1, NS2, NS3 Non-detection signal NG Invalid code detection signal RO Readout signal SIN Shifter input SV Shift amount

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平6−164417(JP,A) 特開 平7−273661(JP,A) 特開 平6−205384(JP,A) 特開 平2−10574(JP,A) (58)調査した分野(Int.Cl.7,DB名) H03M 7/40 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-6-164417 (JP, A) JP-A-7-273661 (JP, A) JP-A-6-205384 (JP, A) JP-A-2- 10574 (JP, A) (58) Field surveyed (Int. Cl. 7 , DB name) H03M 7/40

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 符号化された変換対象のビット列を、複
数の符号体系のうち指示された1つの符号体系に基づい
て符号データに変換する符号変換器であって、 一の符号体系と他の符号体系とにおいて共通する部分に
含まれる,符号と符号データとの対応関係を記憶してお
り、前記変換対象のビット列を、記憶している対応関係
に基づいて符号データに変換する共用変換手段を備え、前記一の符号体系に基づいた符号変換を行うとき、前記
一の符号体系のうち前記他の符号体系と共通する部分に
ついて、前記共用変換手段によって符号変換を行い、か
つ、 前記他の符号体系に基づいた符号変換を行うとき、前記
他の符号体系のうち前記一の符号体系と共通する部分に
ついて、前記共用変換手段によって符号変換を行う こと
を特徴とする符号変換器。
1. A code converter for converting a coded bit string to be converted into code data based on a designated one of a plurality of coding systems, comprising: one coding system and another coding system. A common conversion means for storing the correspondence between codes and code data included in a common part with the coding system, and for converting the bit string to be converted into code data based on the stored correspondence. Comprising, when performing code conversion based on the one coding system,
The part of one coding system that is common to the other coding systems
Code conversion by the common conversion means,
One, when performing code conversion based on the other coding scheme, wherein
Of the other coding systems, the parts common to the one coding system
A code converter for performing code conversion by the common conversion means .
【請求項2】 請求項1記載の符号変換器において、 前記共用変換手段は、記憶している対応関係に属するい
ずれの符号にも前記変換対象のビット列が該当しないと
き、非検出信号を出力するものであり、 当該符号変換器は、 前記一の符号体系または他の符号体系に基づいた符号変
換を行う場合に、前記共用変換手段から非検出信号が出
力されないとき、前記共用変換手段によって変換された
符号データを当該符号変換器の出力データとして選択出
力する選択手段を備えていることを特徴とする符号変換
器。
2. The code converter according to claim 1, wherein the shared conversion unit outputs a non-detection signal when the bit string to be converted does not correspond to any of the stored codes. When the code converter performs code conversion based on the one coding system or another coding system, when a non-detection signal is not output from the common conversion unit, the code conversion is performed by the common conversion unit. And a selecting means for selecting and outputting the encoded data as output data of the code converter.
【請求項3】 請求項2記載の符号変換器において、 前記一の符号体系のうち前記共用変換手段に記憶された
もの以外の符号と符号データとの対応関係を記憶してお
り、前記変換対象のビット列を、記憶している対応関係
に基づいて符号データに変換する一方、記憶している対
応関係に属するいずれの符号にも前記変換対象のビット
列が該当しないとき、非検出信号を出力する専用変換手
段と、 前記一の符号体系に基づいた符号変換を行う場合に、前
記共用変換手段及び専用変換手段の両方から非検出信号
が出力されたとき、前記変換対象のビット列に誤りがあ
ることを示す不正符号検出信号を出力する不正符号検出
手段とを備えていることを特徴とする符号変換器。
3. The code converter according to claim 2, wherein a correspondence relationship between codes other than those stored in said common conversion means and code data in said one coding system is stored, and Is converted into code data based on the stored correspondence relationship, and when the bit string to be converted does not correspond to any of the codes belonging to the stored correspondence relationship, a dedicated non-detection signal is output. Conversion means, when performing code conversion based on the one coding system, when a non-detection signal is output from both the common conversion means and dedicated conversion means, that there is an error in the bit string to be converted. And a malicious code detection means for outputting a malicious code detection signal shown in the figure.
【請求項4】 請求項1記載の符号変換器において、 前記共用変換手段は、記憶している対応関係に属するい
ずれの符号にも前記変換対象のビット列が該当しないと
き、非検出信号を出力するものであり、 当該符号変換器は、 前記一の符号体系のうち前記共用変換手段に記憶された
もの以外の符号と符号データとの対応関係を記憶してお
り、前記変換対象のビット列を、記憶している対応関係
に基づいて符号データに変換する一方、記憶している対
応関係に属するいずれの符号にも前記変換対象のビット
列が該当しないとき、非検出信号を出力する第1の専用
変換手段と、 前記他の符号体系のうち前記共用変換手段に記憶された
もの以外の符号と符号データとの対応関係を記憶してお
り、前記変換対象のビット列を、記憶している対応関係
に基づいて符号データに変換する一方、記憶している対
応関係に属するいずれの符号にも前記変換対象のビット
列が該当しないとき、非検出信号を出力する第2の専用
変換手段と、 前記一の符号体系に基づいた符号変換を行う場合は、前
記共用変換手段及び第1の専用変換手段のうち非検出信
号を出力しなかった方によって変換された符号データを
当該符号変換器の出力データとして選択出力する一方、
前記他の符号体系に基づいた符号変換を行う場合は、前
記共用変換手段及び第2の専用変換手段のうち非検出信
号を出力しなかった方によって変換された符号データを
当該符号変換器の出力データとして選択出力する選択手
段と、 前記一の符号体系に基づいた符号変換を行う場合は、前
記共用変換手段及び第1の専用変換手段の両方から非検
出信号が出力されたとき、前記変換対象のビット列に誤
りがあることを示す不正符号検出信号を出力する一方、
前記他の符号体系に基づいた符号変換を行う場合は、前
記共用変換手段及び第2の専用変換手段の両方から非検
出信号が出力されたとき、前記不正符号検出信号を出力
する不正符号検出手段とを備えていることを特徴とする
符号変換器。
4. The code converter according to claim 1, wherein the common conversion means outputs a non-detection signal when the bit string to be converted does not correspond to any of the stored codes. The code converter stores the correspondence between codes and code data other than those stored in the common conversion unit in the one coding system, and stores the bit string to be converted. First dedicated conversion means for outputting a non-detection signal when the bit string to be converted does not correspond to any code belonging to the stored correspondence while converting the code data into code data based on the corresponding correspondence And a correspondence relationship in which the correspondence between codes other than those stored in the shared conversion means and the code data in the other code systems is stored, and the bit string to be converted is stored. A second dedicated conversion unit that outputs a non-detection signal when the bit string to be converted does not correspond to any code belonging to the stored correspondence, When performing code conversion based on the system, code data converted by one of the common conversion means and the first dedicated conversion means that did not output a non-detection signal is selectively output as output data of the code converter. While
When performing code conversion based on the other code system, the code data converted by one of the common conversion means and the second dedicated conversion means that did not output a non-detection signal is output from the code converter. Selecting means for selecting and outputting as data; and performing code conversion based on the one coding system, when a non-detection signal is output from both the common conversion means and the first dedicated conversion means, the conversion target While outputting an invalid code detection signal indicating that there is an error in the bit string of
When performing code conversion based on the other code system, when a non-detection signal is output from both the common conversion means and the second dedicated conversion means, an unauthorized code detection means that outputs the unauthorized code detection signal And a transcoder.
【請求項5】 連続した可変長符号からなるビット列を
符号データに復号する可変長符号復号装置であって、 前記ビット列から切り出された変換対象のビット列を入
力とし、この変換対象のビット列が所定の符号体系に属
する可変長符号のいずれかに該当するか否かを判定し、
該当するときは、前記変換対象のビット列を前記所定の
符号体系に基づいて符号データに変換出力する一方、い
ずれにも該当しないときは、前記変換対象のビット列に
誤りがあることを示す不正符号検出信号を出力する可変
長符号変換器と、 前記可変長符号変換器から不正符号検出信号が出力され
たとき、前記ビット列において、データの区切りを示す
ヘッダを前記変換対象のビット列から後方検索するヘッ
ダ検索手段とを備え、 当該可変長符号復号装置は、前記可変長符号変換器から
不正符号検出信号が出力されたとき、前記ビット列の復
号を中断し、前記ヘッダ検索手段によって検出されたヘ
ッダの直後から前記ビット列の復号を再開することを特
徴とする可変長符号復号装置。
5. A variable-length code decoding apparatus for decoding a bit string consisting of continuous variable-length codes into code data, comprising: a conversion target bit string cut out from the bit string as an input; Determine whether it corresponds to any of the variable length codes belonging to the coding system,
When applicable, the conversion target bit string is converted and output into code data based on the predetermined coding system, and when none of the above applies, an invalid code detection indicating that there is an error in the conversion target bit string is performed. A variable-length code converter that outputs a signal, and a header search that searches backward from the bit string to be converted from the bit string to be converted, when an invalid code detection signal is output from the variable-length code converter. Means, the variable-length code decoding device, when an illegal code detection signal is output from the variable-length code converter, interrupts the decoding of the bit string, from immediately after the header detected by the header search means A variable length code decoding apparatus, wherein decoding of the bit string is restarted.
【請求項6】 請求項5記載の可変長符号復号装置にお
いて、 前記可変長符号変換器は、 単一の符号体系に基づいて、変換対象のビット列を符号
データに変換するものであり、変換対象のビット列が前
記単一の符号体系に属する可変長符号のいずれにも該当
しなかったとき、前記不正符号検出信号を出力するもの
であることを特徴とする可変長符号復号装置。
6. The variable-length code decoding device according to claim 5, wherein the variable-length code converter converts a bit string to be converted into code data based on a single coding system. A variable-length code decoding device that outputs the illegal code detection signal when the bit sequence does not correspond to any of the variable-length codes belonging to the single coding system.
【請求項7】 請求項5記載の可変長符号復号装置にお
いて、 前記可変長符号変換器は、 複数の符号体系のうち指示された1つの符号体系に基づ
いて、変換対象のビット列を符号データに変換するもの
であり、 一の符号体系と他の符号体系とにおいて共通する部分に
含まれる,可変長符号と符号データとの対応関係を記憶
しており、記憶している対応関係に基づいて前記変換対
象のビット列を符号データに変換するとともに、前記変
換対象のビット列が、記憶している対応関係に属するい
ずれの可変長符号にも該当しないとき、非検出信号を出
力する共用変換手段と、 前記一の符号体系のうち前記共用変換手段に記憶された
もの以外の,可変長符号と符号データとの対応関係を記
憶しており、記憶している対応関係に基づいて前記変換
対象のビット列を符号データに変換するとともに、前記
変換対象のビット列が、記憶している対応関係に属する
いずれの可変長符号にも該当しないとき、非検出信号を
出力する専用変換手段と、 前記一の符号体系に基づいた可変長符号変換を行うと
き、前記共用変換手段及び専用変換手段のうち非検出信
号が出力されなかった方から変換出力された符号データ
を当該可変長符号変換器の出力データとして選択出力す
る選択手段と、 前記一の符号体系に基づいた可変長符号変換を行う場
合、前記共用変換手段及び専用変換手段の両方から非検
出信号が出力されたとき、前記不正符号検出信号を出力
する不正符号検出手段とを備えていることを特徴とする
可変長符号復号装置。
7. The variable-length code decoding device according to claim 5, wherein the variable-length code converter converts a bit string to be converted into code data based on a designated one of a plurality of code systems. It stores the correspondence between the variable-length code and the code data, which is included in a common part between one coding system and another coding system, based on the stored correspondence. A common conversion unit that converts a bit string to be converted into code data, and outputs a non-detection signal when the bit string to be converted does not correspond to any variable length code belonging to the stored correspondence relationship. The correspondence between variable-length codes and code data other than those stored in the common conversion means in one coding system is stored, and the conversion target is stored based on the stored correspondence. A dedicated conversion unit that converts a bit string into code data and outputs a non-detection signal when the bit string to be converted does not correspond to any variable length code belonging to the stored correspondence; When performing variable-length code conversion based on the system, code data converted and output from the common conversion means and the dedicated conversion means from which the non-detection signal is not output is selected as output data of the variable-length code converter. Selecting means for outputting, and when performing variable length code conversion based on the one coding system, outputting the illegal code detection signal when a non-detection signal is output from both the common conversion means and the dedicated conversion means. A variable-length code decoding device comprising: an unauthorized code detection unit.
【請求項8】 連続した可変長符号からなるビット列を
符号データに復号する可変長符号復号方法であって、 前記ビット列から切り出された変換対象のビット列が、
所定の符号体系に属する可変長符号のいずれかに該当す
るか否かを判定し、該当するときは、前記変換対象のビ
ット列を前記所定の符号体系に基づいて符号データに変
換する一方、いずれにも該当しないときは、前記変換対
象のビット列に不正符号が含まれると判定する可変長符
号変換工程と、 前記可変長符号変換工程において不正符号が含まれると
判定されたとき、前記ビット列において、データの区切
りを示すヘッダを前記変換対象のビット列から後方検索
するヘッダ検索工程とを備え、前記可変長符号変換工程において不正符号が含まれると
判定されたとき、前記ビット列の復号を中断し、 前記ヘ
ッダ検索工程において検出されたヘッダの直後から、前
記ビット列の復号を再開することを特徴とする可変長符
号復号方法。
8. A variable-length code decoding method for decoding a bit string composed of continuous variable-length codes into code data, wherein a bit string to be converted cut out from the bit string is
Determines whether to any of the variable length codes belonging to a predetermined coding scheme, appropriate time, the converted-bi
The bit string into coded data based on the predetermined coding system.
On the other hand, if none of the above applies,
Variable-length code that determines that an illegible bit string contains an illegal code
And No. converting step, the contain incorrect code in the variable length code conversion step
When it is determined, the bit string includes a header search step of searching backward from the conversion target bit string for a header indicating a data delimiter, and the variable length code conversion step includes an illegal code.
When it is determined, decoding of the bit string is interrupted, and decoding of the bit string is restarted immediately after the header detected in the header search step.
JP15981997A 1996-06-19 1997-06-17 Code converter, variable-length code decoding device and decoding method Expired - Fee Related JP3231263B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15981997A JP3231263B2 (en) 1996-06-19 1997-06-17 Code converter, variable-length code decoding device and decoding method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP8-157842 1996-06-19
JP15784296 1996-06-19
JP15981997A JP3231263B2 (en) 1996-06-19 1997-06-17 Code converter, variable-length code decoding device and decoding method

Publications (2)

Publication Number Publication Date
JPH1084288A JPH1084288A (en) 1998-03-31
JP3231263B2 true JP3231263B2 (en) 2001-11-19

Family

ID=26485150

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15981997A Expired - Fee Related JP3231263B2 (en) 1996-06-19 1997-06-17 Code converter, variable-length code decoding device and decoding method

Country Status (1)

Country Link
JP (1) JP3231263B2 (en)

Also Published As

Publication number Publication date
JPH1084288A (en) 1998-03-31

Similar Documents

Publication Publication Date Title
US4800441A (en) Binary data compression and expansion processing apparatus
US5162795A (en) Coding and decoding apparatus of variable length data
KR100748485B1 (en) A variable length codeword decoder and a variable length codeword decoding method
US5032838A (en) Variable length code parallel decoding apparatus and method
JP3227292B2 (en) Encoding device, encoding method, decoding device, decoding method, encoding / decoding device, and encoding / decoding method
US5177622A (en) Method and apparatus for detecting run length of two successive pixels and subjecting run length to universal coding
JPH08162970A (en) Decoder and method therefor
EP0510627B1 (en) Encoding and decoding devices
KR970003024B1 (en) Fast re-synchronizing method using parallel-processing pattern matching in variable length codes
JP3684128B2 (en) Arithmetic encoding / decoding method and arithmetic encoding / decoding device
JP3274284B2 (en) Encoding device and method
KR100466455B1 (en) Code converter, variable length code decoder and method of decoding variable length code
JP2954438B2 (en) Encoding device
JP3231263B2 (en) Code converter, variable-length code decoding device and decoding method
US5784497A (en) Arithmetic encoding with carry over processing
KR19990075942A (en) Adaptive Arithmetic Coding and Its Decoding Method
US6567019B2 (en) Data processing apparatus and method
US20060007026A1 (en) Data transmitting circuit and method based on differential value data encoding
JP3193140B2 (en) Image and code data compression
KR0152035B1 (en) Method and apparatus of variable length decode
JP2785823B2 (en) High-efficiency television signal encoding apparatus and method, and decoding apparatus and method
JP2934603B2 (en) Method and apparatus for decoding variable length code
JP3221252B2 (en) Huffman decoder
JP2621582B2 (en) Successive decoding device
JPH0883347A (en) Picture processor

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010828

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

Free format text: PAYMENT UNTIL: 20080914

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20080914

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090914

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090914

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100914

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees