JP2995750B2 - Decryption device - Google Patents

Decryption device

Info

Publication number
JP2995750B2
JP2995750B2 JP14453189A JP14453189A JP2995750B2 JP 2995750 B2 JP2995750 B2 JP 2995750B2 JP 14453189 A JP14453189 A JP 14453189A JP 14453189 A JP14453189 A JP 14453189A JP 2995750 B2 JP2995750 B2 JP 2995750B2
Authority
JP
Japan
Prior art keywords
value
sample
decoded
error
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
JP14453189A
Other languages
Japanese (ja)
Other versions
JPH0310487A (en
Inventor
伸宏 星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP14453189A priority Critical patent/JP2995750B2/en
Priority to DE69026143T priority patent/DE69026143T2/en
Priority to EP90305991A priority patent/EP0402058B1/en
Publication of JPH0310487A publication Critical patent/JPH0310487A/en
Priority to US08/148,523 priority patent/US5325374A/en
Application granted granted Critical
Publication of JP2995750B2 publication Critical patent/JP2995750B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、予測差分符号化された符号化コードを復号
する復号化装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a decoding device that decodes an encoded code subjected to predictive difference encoding.

[従来の技術] 画像情報をディジタル伝送する場合に、1標本当たり
の伝送ビット数を削減する方法として、隣接する標本値
が互いに大きな相関性を具備するという性質を利用して
圧縮する差分符号化法(以下、DPCMと略す。)が知られ
ている。
[Prior Art] When digitally transmitting image information, as a method of reducing the number of transmission bits per sample, differential encoding is performed by using the property that adjacent sample values have a large correlation with each other. The law (hereinafter abbreviated as DPCM) is known.

第4図は、最も一般的な前値予測DPCM符号化装置の構
成ブロック図を示す。10は標本値の入力端子、12は入力
の標本値から予測値を減算する減算器、14は量子化器、
16は逆量子化器、18は加算器、20は予測値を出力するた
めのDフリップフロップ、22は誤り訂正符号化回路、24
は符号化コードの出力端子である。
FIG. 4 is a block diagram showing a configuration of the most general DPCM coding apparatus for predicting a prior value. 10 is a sample value input terminal, 12 is a subtractor for subtracting the predicted value from the input sample value, 14 is a quantizer,
16 is an inverse quantizer, 18 is an adder, 20 is a D flip-flop for outputting a predicted value, 22 is an error correction coding circuit, 24
Is an output terminal of the encoded code.

減算器12は、入力端子10の標本値(8ビット)から、
Dフリップフロップ20の出力の前値予測値(8ビット)
を減算し、量子化器14は、減算器12の出力の差分値を量
子化し、DPCM符号(4ビット)を出力する。誤り訂正符
号化回路22は量子化器14の出力に誤り訂正用パリティを
付加して、出力端子24に出力する。また、逆量子化器16
は量子化器14の出力のDPCM符号(4ビット)を逆量子化
し、差分代表値(8ビット)を出力する。加算器18は逆
量子化器16の出力に前値予測値を加算し、Dフリップフ
ロップ20はこれを1標本間隔分遅延し、前値予測値とし
て減算器12及び加算器18に印加する。
The subtractor 12 calculates the sample value (8 bits) of the input terminal 10 from
Predicted value of output of D flip-flop 20 (8 bits)
, The quantizer 14 quantizes the difference value of the output of the subtractor 12, and outputs a DPCM code (4 bits). The error correction encoding circuit 22 adds an error correction parity to the output of the quantizer 14 and outputs the result to an output terminal 24. In addition, the inverse quantizer 16
Dequantizes the DPCM code (4 bits) output from the quantizer 14 and outputs a representative difference value (8 bits). The adder 18 adds the previous value prediction value to the output of the inverse quantizer 16, and the D flip-flop 20 delays this by one sample interval and applies the result to the subtracter 12 and the adder 18 as the previous value prediction value.

一般に前値予測値との差分値は非常に小さな値となる
ので、差分値を符号化して伝送することにより、大きな
圧縮が可能になる。
In general, the difference value from the previous predicted value is a very small value. Therefore, by encoding and transmitting the difference value, large compression is possible.

第5図は第4図に対応する復号化装置の構成ブロック
図を示す。26は伝送されたDPCM符号の入力端子、28は誤
り検出訂正回路、30は逆量子化器、32は加算器、34はD
フリップフロップ、36はスイッチ、38は1ライン遅延
器、40は復号値の出力端子である。
FIG. 5 is a block diagram showing the configuration of a decoding apparatus corresponding to FIG. 26 is an input terminal of the transmitted DPCM code, 28 is an error detection and correction circuit, 30 is an inverse quantizer, 32 is an adder, and 34 is D
A flip-flop, 36 is a switch, 38 is a one-line delay unit, and 40 is a decoded value output terminal.

入力端子26の入力データは誤り検出訂正回路28によ
り、データ伝送中に発生した誤りを検出・訂正される。
誤り検出訂正回路28は、DPCM符号を逆量子化器30に印加
すると共に、訂正できなかった場合には、スイッチ36を
制御するエラー・フラグ(第6図参照)を出力する。逆
量子化器30はDPCM符号を逆量子化して、差分代表値を出
力し、加算器32は逆量子化器30の出力に前値復号値を加
算する。加算器32の出力が復号値となる。加算器32の出
力はDフリップフロップ34で1標本間隔だけ遅延され、
前値復号値として加算器32に帰還される。
The input data at the input terminal 26 is detected and corrected by an error detection and correction circuit 28 during the data transmission.
The error detection and correction circuit 28 applies the DPCM code to the inverse quantizer 30 and outputs an error flag (see FIG. 6) for controlling the switch 36 when the error cannot be corrected. The inverse quantizer 30 inversely quantizes the DPCM code and outputs a representative difference value, and the adder 32 adds the decoded previous value to the output of the inverse quantizer 30. The output of the adder 32 becomes the decoded value. The output of the adder 32 is delayed by one sample interval by the D flip-flop 34,
The value is fed back to the adder 32 as the previous value decoded value.

加算器32の出力は直接、スイッチ36の接点aに印加さ
れ、1ライン遅延器38を介してスイッチ36の接点bに印
加される。一般に、DPCM符号化方式では、伝送路で誤り
が発生すると、次に標本値そのものを量子化したPCM符
号の復号値が得られるまで、誤りが後続の復号値に伝搬
することが知られている。そこで、誤り検出訂正回路28
で符号化コードに訂正不能な誤りが検出された場合に
は、第6図に示すように、当該訂正不能の誤り検出以
後、エラー・フラグを立てる。当該エラー・フラグが立
っている間はスイッチ36を接点b側に切り換えて、前ラ
インの標本値で代替、即ち修整する。第6図はこの修整
による復号値の、1サンプル点おきの変化を示す。
The output of the adder 32 is directly applied to the contact a of the switch 36, and is applied to the contact b of the switch 36 via the one-line delay unit 38. In general, it is known that in the DPCM encoding method, when an error occurs in a transmission path, the error propagates to subsequent decoded values until a decoded value of a PCM code obtained by quantizing the sample value itself is obtained next. . Therefore, the error detection and correction circuit 28
If an uncorrectable error is detected in the coded code, an error flag is set after the detection of the uncorrectable error, as shown in FIG. While the error flag is set, the switch 36 is switched to the contact b side to substitute, that is, correct, the sample value of the previous line. FIG. 6 shows the change of the decoded value at every other sample point due to this modification.

[発明が解決しようとする課題] しかし上記従来例では、1ライン前の標本値で代替す
るので、1ライン遅延器が必要になり、ハードウェアの
増加を招くという欠点がある。また、訂正不能な符号化
コードが検出された後の全ての復号値を代替するので、
現在のラインの標本値とその1ライン前の標本値との間
に相関が無い場合には、大きな画質劣化になるという欠
点がある。このような場合、第6図に示すように、前ラ
インの標本値と、伝送路誤りが無い場合の標本値との差
が大きくなっており、画質劣化が顕著になる。
[Problems to be Solved by the Invention] However, in the above-described conventional example, since the sample value of one line before is substituted, a one-line delay unit is required, and there is a disadvantage that hardware is increased. Also, since all the decoded values after the uncorrectable encoded code is detected are substituted,
If there is no correlation between the sample value of the current line and the sample value one line before, there is a disadvantage that the image quality is greatly deteriorated. In such a case, as shown in FIG. 6, the difference between the sample value of the previous line and the sample value when there is no transmission path error is large, and the image quality is significantly deteriorated.

本発明はこのような欠点のない復号化装置を提示する
ことを目的とする。
It is an object of the present invention to provide a decoding device free from such disadvantages.

[課題を解決するための手段] 本発明に係る復号化装置は、伝送路の状態に係りなく
夫々符号化対象サンプルと当該符号化対象サンプルに対
して所定期間先行するサンプルとの間の差分値を符号化
して得た符号化コード列を復号する装置であって、復号
しようとしている符号化コードに対応する差分値に、当
該所定期間先行するサンプルの復号値を加算することに
よって新たな復号値を得る復号手段と、誤り訂正不能な
符号化コードに対応する復号値を当該所定期間先行する
サンプルの復号値で代替する代替手段とを具備し、前記
代替手段の出力する復号値を用いて、前記復号手段によ
って前記代替手段を用いることなく後続するサンプルを
復号可能としたことを特徴とする。
[Means for Solving the Problems] A decoding apparatus according to the present invention provides a decoding apparatus which calculates a difference value between a sample to be coded and a sample preceding the sample to be coded by a predetermined period regardless of a state of a transmission path. Is a device that decodes an encoded code sequence obtained by encoding a decoded value of a sample preceding a predetermined period to a difference value corresponding to the encoded code to be decoded. Decoding means, and a substitute means for replacing the decoded value corresponding to the error-correctable encoded code with the decoded value of the sample preceding the predetermined period, using the decoded value output from the substitute means, The subsequent sample can be decoded by the decoding means without using the alternative means.

[作用] 上記手段により、誤った符号化コードに対応する復号
値に対して、最も相関性の高い直前の復号値で代替する
ので、修整誤差は極めて小さく、且つ、この代替復号値
で後続サンプルの復号を行なうので、この修整誤差は時
間の経過によって大きくならない。また、1ライン遅延
器を用いないで済み、回路構成が簡略化し、安価にな
る。
[Operation] By the above means, the decoded value corresponding to the erroneous encoded code is replaced with the immediately preceding decoded value having the highest correlation, so that the retouching error is extremely small, and the replacement decoded value , The correction error does not increase over time. Further, it is not necessary to use a one-line delay device, so that the circuit configuration is simplified and the cost is reduced.

[実施例] 以下、図面を参照して本発明の実施例を説明する。Embodiment An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例の構成ブロック図を示す。
42は伝送データの入力端子、44は誤り検出訂正回路、46
は逆量子化器、48は加算器、50は訂正不能のエラー・コ
ードにより切り換えられるスイッチ、52は1標本間隔の
遅延器として機能するDフリップフロップ、54は復号値
の出力端子である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.
42 is a transmission data input terminal, 44 is an error detection and correction circuit, 46
Is an inverse quantizer, 48 is an adder, 50 is a switch which can be switched by an uncorrectable error code, 52 is a D flip-flop functioning as a delay unit of one sample interval, and 54 is an output terminal of a decoded value.

誤り検出訂正回路44は入力端子42の伝送データを受
け、伝送途中の誤りを検出・訂正し、DPCM符号を逆量子
化器30に供給する。誤り検出訂正回路44はまた、訂正不
能の伝送誤りに対しては、第2図に示すように、スイッ
チ50の制御するエラー・フラグを1サンプル期間立て
る。
The error detection and correction circuit 44 receives the transmission data at the input terminal 42, detects and corrects an error during transmission, and supplies a DPCM code to the inverse quantizer 30. The error detection and correction circuit 44 also sets an error flag controlled by the switch 50 for one sample period for an uncorrectable transmission error, as shown in FIG.

加算器48は逆量子化器46の出力(差分代表値)にDフ
リップフロップ52の出力(前値復号値)を加算する。加
算器48の出力はスイッチ50の接点aに接続し、スイッチ
50の接点bにはDフリップフロップ52の出力が接続す
る。スイッチ50で選択された信号は、復号値として出力
端子54に供給されると共に、Dフリップフロップ52に印
加される。即ち、スイッチ50は、通常は接点aに接続し
て加算器48の出力を選択するが、訂正不能な誤りに対し
ては誤り検出訂正回路44からのエラー・フラグに従い1
サンプル期間だけ接点bに接続し、前値復号値を選択す
る。
The adder 48 adds the output (previous decoded value) of the D flip-flop 52 to the output of the inverse quantizer 46 (representative difference value). The output of the adder 48 is connected to the contact a of the switch 50.
The output of the D flip-flop 52 is connected to the contact b of 50. The signal selected by the switch 50 is supplied to the output terminal 54 as a decoded value and is also applied to the D flip-flop 52. That is, the switch 50 is normally connected to the contact a to select the output of the adder 48, but for an uncorrectable error, the switch 50 is set to 1 according to the error flag from the error detection and correction circuit 44.
It connects to the contact b only for the sample period and selects the previous decoded value.

第2図は第1図の動作例を示す。第5サンプル時点で
訂正不能な伝送誤りが発生しており、その時点の誤って
復号された標本値を1サンプル前の復号値で置換してい
る。1サンプル前の標本値は現在の標本値と極めて相関
が高いので、復号値での修整誤差も極めて小さい。以
後、伝送されてきたDPCM符号で復号するので、修整誤差
は一定値内に収まり、大きくならない。特に、1サンプ
ル前の標本値と同じ標本値のサンプルで訂正不能の伝送
誤りが発生した場合には、修整誤差はゼロである。
FIG. 2 shows an operation example of FIG. An uncorrectable transmission error has occurred at the time of the fifth sample, and the incorrectly decoded sample value at that time is replaced with the decoded value of one sample before. Since the sample value one sample before has a very high correlation with the current sample value, the modification error in the decoded value is also very small. Thereafter, decoding is performed using the transmitted DPCM code, so that the retouching error falls within a certain value and does not increase. In particular, when an uncorrectable transmission error occurs in a sample having the same sample value as the sample value one sample before, the correction error is zero.

第1図の、逆量子化器46、加算器48及びスイッチ50の
部分は、ROMテーブルにより形成できる。第3図はその
構成ブロック図を示す。56がその復号化テーブルとして
のROMである。ROM56は、入力として、DPCM符号に4ビッ
ト、予測値に8ビット、誤り検出訂正回路44の出力する
エラ・フラグに1ビットを割り当ててあり、また、8ビ
ット出力を持つ。ROM56には、エラー・フラグが立って
いるときには、前値復号値、即ちDフリップフロップの
出力と同一の符号を出力するように書いておき、エラー
・フラグが立っていないときには、4ビットのDPCM符号
による差分代表値にDフリップフロップからの前値復号
値を加算した値を出力するように書いておけばよい。
The portions of the inverse quantizer 46, the adder 48 and the switch 50 in FIG. 1 can be formed by a ROM table. FIG. 3 shows a block diagram of the configuration. 56 is a ROM as the decoding table. The ROM 56 has, as inputs, 4 bits for the DPCM code, 8 bits for the predicted value, 1 bit for the error flag output from the error detection and correction circuit 44, and has an 8-bit output. The ROM 56 is written so as to output the decoded value of the previous value, that is, the same sign as the output of the D flip-flop when the error flag is set. What is necessary is just to write so as to output a value obtained by adding the previous decoded value from the D flip-flop to the difference representative value by the sign.

上記実施例では前値予測符号化法を例に説明したが、
フレーム間予測符号化法やライン間予測符号化法でも同
様に適用できることはいうまでもない。
In the above embodiment, the preceding value predictive encoding method has been described as an example.
It goes without saying that the present invention can be similarly applied to the inter-frame prediction coding method or the inter-line prediction coding method.

[発明の効果] 以上の説明から容易に理解できるように、本発明によ
れば、1ライン遅延器を用いないので、回路構成が簡略
化し、安価になる。また、訂正不能時には、相関性の高
い先行する復号値で代替するので、修整誤差は極めて小
さく、且つ、この代替復号値により以後の復号を行なう
ので、この修整誤差は時間の経過によって大きくならな
い。
[Effects of the Invention] As can be easily understood from the above description, according to the present invention, since a one-line delay device is not used, the circuit configuration is simplified and the cost is reduced. Further, when correction is impossible, the preceding decoded value having a high correlation is substituted, so that the retouching error is extremely small. Further, since the subsequent decoding is performed by using the substitute recoding value, the retouching error does not increase with the passage of time.

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

第1図は本発明の一実施例の構成ブロック図、第2図は
第1図の動作説明図、第3図は第1図の一部をROM化し
た構成例、第4図は従来の符号化装置の構成ブロック
図、第5図は従来の復号化装置の構成ブロック図、第6
図は第5図の動作説明図である。 42:入力端子、44:誤り検出訂正回路、46:逆量子化器、4
8:加算器、50:スイッチ、52:Dフリップフロップ、54:出
力端子
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is an explanatory diagram of the operation of FIG. 1, FIG. 3 is a configuration example in which a part of FIG. FIG. 5 is a block diagram showing a configuration of a conventional decoding device, and FIG.
The figure is an operation explanatory view of FIG. 42: input terminal, 44: error detection and correction circuit, 46: inverse quantizer, 4
8: adder, 50: switch, 52: D flip-flop, 54: output terminal

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】伝送路の状態に係りなく夫々符号化対象サ
ンプルと当該符号化対象サンプルに対して所定期間先行
するサンプルとの間の差分値を符号化して得た符号化コ
ード列を復号する装置であって、 復号しようとしている符号化コードに対応する差分値
に、当該所定期間先行するサンプルの復号値を加算する
ことによって新たな復号値を得る復号手段と、 誤り訂正不能な符号化コードに対応する復号値を当該所
定期間先行するサンプルの復号値で代替する代替手段 とを具備し、前記代替手段の出力する復号値を用いて、
前記復号手段によって前記代替手段を用いることなく後
続するサンプルを復号可能としたことを特徴とする復号
化装置。
An encoded code sequence obtained by encoding a difference value between a sample to be coded and a sample preceding the sample to be coded for a predetermined period, regardless of the state of the transmission path, is decoded. A decoding means for obtaining a new decoded value by adding a decoded value of a sample preceding the predetermined period to a difference value corresponding to an encoded code to be decoded; and an error-correctable encoded code. Substitute means for substituting the decoded value corresponding to the above with the decoded value of the sample preceding the predetermined period, and using the decoded value output from the substitute means,
A decoding apparatus, wherein a succeeding sample can be decoded by the decoding means without using the alternative means.
JP14453189A 1989-06-07 1989-06-07 Decryption device Expired - Fee Related JP2995750B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP14453189A JP2995750B2 (en) 1989-06-07 1989-06-07 Decryption device
DE69026143T DE69026143T2 (en) 1989-06-07 1990-06-01 Prediction decoding device correcting code error
EP90305991A EP0402058B1 (en) 1989-06-07 1990-06-01 Predictive decoding device correcting code errors
US08/148,523 US5325374A (en) 1989-06-07 1993-11-04 Predictive decoding device for correcting code errors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14453189A JP2995750B2 (en) 1989-06-07 1989-06-07 Decryption device

Publications (2)

Publication Number Publication Date
JPH0310487A JPH0310487A (en) 1991-01-18
JP2995750B2 true JP2995750B2 (en) 1999-12-27

Family

ID=15364486

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14453189A Expired - Fee Related JP2995750B2 (en) 1989-06-07 1989-06-07 Decryption device

Country Status (1)

Country Link
JP (1) JP2995750B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0799582A (en) * 1993-06-18 1995-04-11 Kawasaki Steel Corp Picture compressor
JP3164971B2 (en) * 1994-07-15 2001-05-14 日本電気株式会社 Image playback device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62241436A (en) * 1986-04-14 1987-10-22 Canon Inc Predictive coding and decoding system for image signal
JPH0198323A (en) * 1987-10-12 1989-04-17 Nec Corp Error correction device

Also Published As

Publication number Publication date
JPH0310487A (en) 1991-01-18

Similar Documents

Publication Publication Date Title
EP0214235B1 (en) Error detection and concealment using predicted signal values
US5150210A (en) Image signal restoring apparatus
JPH0226898B2 (en)
US20090097555A1 (en) Video encoding method and device
JP3428697B2 (en) Image decoding method
CA2090382C (en) Moving picture receiving method and apparatus
US5325374A (en) Predictive decoding device for correcting code errors
JP2995750B2 (en) Decryption device
US4807032A (en) Method of correcting image errors
JPH05130420A (en) Decoder
JP2797411B2 (en) Encoding device
JPH0133993B2 (en)
JPH03292083A (en) Prediction decoding device
JP2582072B2 (en) Encoding / decoding method
JPH0324864A (en) Decoder
JPH07193514A (en) Transmission line code selecting data transmission system
JP3257156B2 (en) Image signal decoding device
JPS62241436A (en) Predictive coding and decoding system for image signal
JPH07264585A (en) Moving image processor
JPH01205667A (en) Moving picture signal encoder
JPS6247025B2 (en)
JPH05122528A (en) Decoder
JP2624520B2 (en) Error propagation compensation method
JPH04233375A (en) Decoding device
JPS6338336A (en) Predictive decoder

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071029

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20081029

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees