JPH0426231A - Adpcm encoding system - Google Patents

Adpcm encoding system

Info

Publication number
JPH0426231A
JPH0426231A JP13180590A JP13180590A JPH0426231A JP H0426231 A JPH0426231 A JP H0426231A JP 13180590 A JP13180590 A JP 13180590A JP 13180590 A JP13180590 A JP 13180590A JP H0426231 A JPH0426231 A JP H0426231A
Authority
JP
Japan
Prior art keywords
signal
circuit
adpcm
bits
threshold value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP13180590A
Other languages
Japanese (ja)
Other versions
JP3013391B2 (en
Inventor
Tadaharu Kato
忠晴 加藤
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2131805A priority Critical patent/JP3013391B2/en
Publication of JPH0426231A publication Critical patent/JPH0426231A/en
Application granted granted Critical
Publication of JP3013391B2 publication Critical patent/JP3013391B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To enable bit selection at a real time by deciding the number of bits in ADPCM algorithm by using a differential signal, quantization differential signal from a bit decision circuit, or linear signals from an adaptive predicting device and a code conversion circuit. CONSTITUTION:In a code conversion circuit 2, code conversion is executed from an inputted PCM signal 1a to a linear signal 2a for a signal processing and the signal is outputted to a difference calculation circuit 3 and a bit number decision circuit 8. The difference calculation circuit 3 calculates difference between the linear signal 2a and apredict signal 7a to be outputted from an adaptive predicting device 7 and outputs a differential signal 3a to a quantizing circuit 4 and the bit number decision circuit 8. In the quantizing circuit 4, code conversion is executed from the differential signal 3a to an ADPCM 4a, and the signal is transmitted to an inverse quantizing circuit 6 and simultaneously outputted from an ADPCM signal output terminal 5 to the outside. Then, according to the integral value of the differential signal and a threshold value to be calculated from the input PCM signal, the number of bits is decided for the ADPCM encoding algorithm. Thus, the number of bits for ADPCM encoding can be selected in real time corresponding to an error signal.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はADPCM符号化方式に関し、特に、PCM信
号をADPCM信号に符号変換するADPCM符号化方
式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an ADPCM encoding system, and particularly to an ADPCM encoding system for code-converting a PCM signal into an ADPCM signal.

〔従来の技術〕[Conventional technology]

従来のADPCM符号化方式において、PCM信号をA
 D (adaptive differential
)P CM信号に変換するADPCM符号化回路は符号
化アルゴリズムのビット数を一定にするが、または外ぎ
より予め指定すことにより実施していた。
In the conventional ADPCM encoding system, the PCM signal is
D (adaptive differential
) The ADPCM encoding circuit for converting into a PCM signal has been implemented by keeping the number of bits of the encoding algorithm constant or by specifying it in advance from the outside.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のADPCM符号化方式では、ADPCM
符号化回路にビット数を予め設定するので、実時間でビ
ット数の変更ができず、または外部に信号判別用の回路
を特別に付加し変更する場合にはハード規模の増加とい
う問題点がある。
In the conventional ADPCM encoding method described above, ADPCM
Since the number of bits is set in advance in the encoding circuit, it is not possible to change the number of bits in real time, or there is a problem in that the hardware size increases if a special external circuit for signal discrimination is added and changed. .

〔課題を解決するための手段〕[Means to solve the problem]

本発明のADPCM符号化方式では、入力PCM信号と
適応予測器から出力される推定信号との差分信号をAD
PCM信号に量子化するとともにこのADPCM信号を
逆量子化することにより適応予測器入力を生成するAD
PCM符号化方式において、前記差分信号の積分値と前
記入力PCM信号から計算される閾値とによりADPC
M符号化アルゴリズムのビット数を決定することを特徴
とするADPCM符号化方式、 2.前記入力PCM信
号と前記適応予測器から出力される再生信号とからAD
PCM符号化アルゴリズムのビット数を決定することを
特徴とする。
In the ADPCM encoding method of the present invention, the difference signal between the input PCM signal and the estimated signal output from the adaptive predictor is
An AD that generates an adaptive predictor input by quantizing into a PCM signal and dequantizing this ADPCM signal.
In the PCM encoding method, ADPC is
An ADPCM encoding method characterized by determining the number of bits of the M encoding algorithm; 2. AD from the input PCM signal and the reproduced signal output from the adaptive predictor.
The feature is that the number of bits of the PCM encoding algorithm is determined.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明のADPCM符号化方式の一実施例を示
すブロック図であり、1はPCM信号入力端子、2は符
号変換回路、3は差分計算回路。
FIG. 1 is a block diagram showing an embodiment of the ADPCM encoding method of the present invention, in which 1 is a PCM signal input terminal, 2 is a code conversion circuit, and 3 is a difference calculation circuit.

4は量子化回路、5はADPCM信号出力端子、6は逆
量子化回路、7は適応予測器、8はビット数決定回路示
す。
4 is a quantization circuit, 5 is an ADPCM signal output terminal, 6 is an inverse quantization circuit, 7 is an adaptive predictor, and 8 is a bit number determining circuit.

次に、本実施例の動作について説明する。符号変換回路
2では、入力端子1から入力したPCM信号1aを信号
処理ための線形信号2aに符号変換し、差分計算回路3
及びビット数決定回路8に出力する。差分計算回路3で
は、符号変換された線形信号2aと適応予測器7から出
力される推定信号7aとの差分を計算し差分信号3aを
量子化回路4及びビット数決定回路8に出力する。量子
化回路4ではビット数決定回路8により出力されるAD
PC,M符号化アルゴリズムの符号化ビット数要求の要
求信号8aに従ったビット数を用いて、差分信号3aを
ADPCM信号4aに符号変換して逆量子化回路6に送
出すると同時にADPCM信号出力端子5から外部に出
力する。
Next, the operation of this embodiment will be explained. The code conversion circuit 2 converts the PCM signal 1a inputted from the input terminal 1 into a linear signal 2a for signal processing, and converts the PCM signal 1a input from the input terminal 1 into a linear signal 2a for signal processing.
and output to the bit number determining circuit 8. The difference calculation circuit 3 calculates the difference between the code-converted linear signal 2a and the estimated signal 7a output from the adaptive predictor 7, and outputs the difference signal 3a to the quantization circuit 4 and the bit number determination circuit 8. In the quantization circuit 4, the AD outputted by the bit number determination circuit 8
The difference signal 3a is code-converted into an ADPCM signal 4a using the bit number according to the request signal 8a for requesting the number of encoding bits of the PC, M encoding algorithm, and sent to the inverse quantization circuit 6. At the same time, the ADPCM signal output terminal Output from 5 to the outside.

逆量子化回路6では、ビット数決定回路8がら出力され
る要求信号8aのADPCM符号化アルゴリズムの符号
化ビット数要求に従ったビット数を用いて、量子化回路
4から出力されるADPCM信号4aを線形信号に復号
し量子化差分信号6aを生成する。適応予測器7では、
量子化差分信号6aにより推定信号7aと再生信号7b
とを生成し、推定信号7aを差分計算回路3に出力する
The inverse quantization circuit 6 uses the bit number according to the encoding bit number request of the ADPCM encoding algorithm of the request signal 8a output from the bit number determination circuit 8 to convert the ADPCM signal 4a output from the quantization circuit 4. is decoded into a linear signal to generate a quantized difference signal 6a. In the adaptive predictor 7,
The estimated signal 7a and the reproduced signal 7b are generated by the quantized difference signal 6a.
and outputs the estimated signal 7a to the difference calculation circuit 3.

ビット数決定回路8では、差分信号3aまたは量子化差
分信号6aと線形信号2aとを入力し、量子化回路4及
び逆量子化回路6で使用されるADPCM符号化アルゴ
リズムのビット数を決定する要求信号8aを出力する。
The bit number determination circuit 8 inputs the difference signal 3a or the quantized difference signal 6a and the linear signal 2a, and requests to determine the number of bits of the ADPCM encoding algorithm used in the quantization circuit 4 and the inverse quantization circuit 6. A signal 8a is output.

ビット数決定回路8で線形信号2aと差分信号3aを入
力しなときは、例えばADPCM符号化アルゴリズムと
して国際電信電話路間委員会(CCITT)からの勧告
案G、723を使用すれば、本実施例の推定信号として
は5IGNAL ESTIMATEが、差分信号として
はDIFFERENCE 5IGNALが適用でき、訛
な、ビット数決定回路8としては第2図の回路が適用で
きる。
When the linear signal 2a and the differential signal 3a are not input to the bit number determination circuit 8, this implementation can be achieved by using, for example, Recommendation G, 723 from the Commission International Telegraph and Telephone Telecommunications (CCITT) as the ADPCM encoding algorithm. For example, 5IGNAL ESTIMATE can be applied as the estimated signal, DIFFERENCE 5IGNAL can be applied as the difference signal, and the circuit shown in FIG. 2 can be applied as the bit number determining circuit 8.

第2図は本実施例のビット数決定回路の詳細ブロック図
であり、自乗積分回路82では、第1の入力端子81か
ら入力する差分信号を自乗積分し差分信号電力を求め第
1の閾値判定回路84及び第2の閾値判定回路85に出
力する。一方、閾値計算回路83では、第2の入力端子
9oがら入力する線形信号となった入力信号から第1の
閾値88及び第2の閾値89を生成し、第1の閾値判定
回路84及び第2の閾値判定回路85にそれぞれ出力す
る。第1の閾値判定回路84では、自乗積分回路82か
らの出力と第1の閾値88とを比較しその結果をビット
数判定回路86に出力する。同様に、第2の閾値判定回
路85では、自乗積分回路82からの出力と第2の閾値
89とを比較しその結果をビット数判定回路86に出力
する。
FIG. 2 is a detailed block diagram of the bit number determination circuit of this embodiment. In the square integration circuit 82, the difference signal inputted from the first input terminal 81 is squared and integrated to obtain the difference signal power, and the first threshold value judgment is performed. It is output to the circuit 84 and the second threshold determination circuit 85. On the other hand, the threshold value calculation circuit 83 generates a first threshold value 88 and a second threshold value 89 from the input signal that is a linear signal inputted from the second input terminal 9o, and generates a first threshold value 88 and a second threshold value 89, and are output to the threshold value determination circuit 85, respectively. The first threshold value determination circuit 84 compares the output from the square integration circuit 82 and the first threshold value 88 and outputs the result to the bit number determination circuit 86 . Similarly, the second threshold value determination circuit 85 compares the output from the square integration circuit 82 and the second threshold value 89 and outputs the result to the bit number determination circuit 86 .

ビット数判定回路86では、第1の閾値判定回路84及
び第2の閾値判定回路85がらの出力を入力し、差分信
号電力と第1の閾値88及び第2の閾値89との大小関
係からADPCM符号化アルゴリズムのビット数を決定
する0例えば、2つの閾値をTHI、TH2(THI、
TH2:TH1 >TH2)とし、差分信号電力との大
小関係にそり下記の様にビット数を割り振れば、差分信
号電力に対応してADPCM符号化のビット数が実時間
で選択できる。
The bit number determination circuit 86 inputs the outputs from the first threshold determination circuit 84 and the second threshold determination circuit 85, and determines the ADPCM based on the magnitude relationship between the differential signal power and the first threshold 88 and second threshold 89. Determine the number of bits of the encoding algorithm. For example, two thresholds THI, TH2 (THI,
TH2:TH1 >TH2) and allocating the number of bits as shown below depending on the magnitude relationship with the differential signal power, the number of bits for ADPCM encoding can be selected in real time in accordance with the differential signal power.

5ビット:差分信号電力≧THI 4ビット:TH1≧差分信号電力≧TH23ビット:T
H2≧差分信号電力 ところで、雑音等により差分信号電力が闇値の上下を行
き来する場合にはADPCM符号化アルゴリズムのビッ
ト数が必要以上に変更され、実用上の問題となる。そこ
で、本実施例では、第3図で示すように闇値にヒステリ
シス特性をもたせ実用上の問題を解決している1次に、
この閾値のヒステリシス特性について第3図を用いて説
明する0例えば、第3図に示す入力信号とTHIと大小
関係の比較を考える。この場合は、先ず、大きい方の閾
値THIUとの比較を行いその結果を閾値判定結果とし
て出力する。そして入力信号が大きい方の閾値THIU
以下の時にはこの大きい方の閾値THIUを用い、入力
信号が大きい方の閾値7810以上になって始めて小さ
い方の閾値THILを用いる。そして、入力信号が小さ
い方の閾値THIL以上の間は小さい方の閾値THIL
を用い比較判定を実施し、入力信号が小さい方の閾値T
HIL以下になって始めて大きい方の閾値THIUを用
い比較判定を実施する。また、TH2についても同様と
する。こうする異によりTHIUからTUILまで区間
が緩衝領域として存在することにやり必要以上のビット
数変更が削減される。
5 bits: differential signal power≧THI 4 bits: TH1≧differential signal power≧TH23 bits: T
H2≧Differential signal power By the way, if the differential signal power fluctuates above and below the dark value due to noise or the like, the number of bits of the ADPCM encoding algorithm is changed more than necessary, which causes a practical problem. Therefore, in this example, as shown in FIG.
The hysteresis characteristic of this threshold value will be explained using FIG. 3. For example, consider a comparison of the magnitude relationship between the input signal and THI shown in FIG. In this case, first, a comparison is made with the larger threshold value THIU, and the result is output as a threshold value determination result. And the threshold value THIU for the one with larger input signal
In the following cases, the larger threshold THIU is used, and the smaller threshold THIL is used only when the input signal exceeds the larger threshold 7810. Then, while the input signal is greater than or equal to the smaller threshold THIL, the smaller threshold THIL
A comparison judgment is carried out using the threshold value T for which the input signal is smaller.
Comparative determination is performed using the larger threshold THIU only after the threshold value THIU is equal to or lower than HIL. The same applies to TH2. This difference allows the section from THIU to TUIL to exist as a buffer area, thereby reducing unnecessary changes in the number of bits.

また、ビット数決定回路8において、再生信号7bと符
号変換回路からの線形信号2aとを入力し、量子化回路
4及び逆量子化回路6で使用されるADPCM符号化ア
ルゴリズムのビット数を決定する場合は、例えばADP
CM符号化アルゴリズムとして国際電信電話諮問委員会
(CCITT)からの勧告案0.723を使用すれば、
本発明の推定信号としては5IGNAL ESTIMA
TEが、また再生信号と入力信号との誤差信号を積分し
た積分値と予め定めた大小2つの閾値(THI、TH2
:THI>T)12)と比較し、その両者の大小関係に
より下記の様にビット数を割り振れば、誤差信号に対応
してADPCM符号化のビット数が実時間で次のように
選択できる。
Further, the bit number determination circuit 8 inputs the reproduced signal 7b and the linear signal 2a from the code conversion circuit, and determines the number of bits of the ADPCM encoding algorithm used in the quantization circuit 4 and the inverse quantization circuit 6. For example, ADP
If recommendation 0.723 from the Consultative Committee on International Telegraph and Telephone (CCITT) is used as the CM encoding algorithm,
The estimated signal of the present invention is 5IGNAL ESTIMA.
TE also uses an integral value obtained by integrating the error signal between the reproduced signal and the input signal and two predetermined large and small thresholds (THI, TH2).
:THI>T)12), and by allocating the number of bits as shown below according to the magnitude relationship between the two, the number of bits for ADPCM encoding can be selected in real time in response to the error signal as follows: .

5ビット二種分値≧THI 4ビット:TH1≧積分値≧TH2 3ビット:TH2≧積分値 なお、本実施例はADPCM符号化器の説明をしてきた
が、ADPCM復号化器にお止器は入力がADPCM信
号、出力がPCM信号となるとともにビット数決定回路
8の片方の入力が出力PCM信号となるだけであり同様
に実施することができる。また、本実施例では量子化差
分信号(QtjANTIZED DIFFERENCE
 5IGNAL)と推定信号(SIGNAL ESTI
MATE)トカら再生信号(RECONSTRUCTE
D 5IGNAL)を生成するブロックも適応予測器に
含めている。
5-bit binary value ≧ THI 4-bit: TH1 ≧ integral value ≧ TH2 3-bit: TH2 ≧ integral value Note that this embodiment has explained the ADPCM encoder, but the ADPCM decoder does not have a stopper. The input is the ADPCM signal, the output is the PCM signal, and one input of the bit number determining circuit 8 is the output PCM signal, and the same implementation is possible. Furthermore, in this embodiment, the quantized difference signal (QtjANTIZED DIFFERENCE
5IGNAL) and estimated signal (SIGNAL ESTI)
MATE) Playback signal from Toka (RECONSTRUCTE)
A block that generates D5IGNAL) is also included in the adaptive predictor.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、ビット決定回路が差分信
号、量子化差分信号または適応予測器と符号変換回路か
らの線形信号とによりADPCM符号化アルゴリズムの
ビット数を決めているので、実時間でビット選択が可能
であり、かつ、ADPCM符号化アルゴリズムの一部の
ブロックを共用出来るので簡単な回路の追加により自動
的にビットが可変できるADPCM符号化器を実現でき
る。
As explained above, in the present invention, the bit determination circuit determines the number of bits of the ADPCM encoding algorithm based on the difference signal, quantized difference signal, or linear signal from the adaptive predictor and code conversion circuit, so that it can be performed in real time. Since bit selection is possible and some blocks of the ADPCM encoding algorithm can be shared, an ADPCM encoder that can automatically vary bits can be realized by adding a simple circuit.

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

第1図は本発明の一実施例を示すブロック図、第2図は
本実施例のビット数決定回路の詳細ブロック図、第3図
は本実施例の閾値判定回路の動作説明のための図である
。 1・・・PCM入力端子、2・・・符号変換回路、3・
・・差分計算回路、4・・・量子化器、5・・・ADP
CM出力端子、6・・・逆量子化器、7・・・適応予測
器、8・・・ビット数決定回路、81・・・第1の入力
端子、82・・・自乗積分回路、83・・・閾値計算回
路、84・・・第1の闇値判定回路、85・・・第2の
閾値判定回路、86・・・ビット数判定回路、87・・
・判定出力、88・・・第1の閾値出力、89・・・第
2の闇値出力、9゜・・・第2の入力端子・
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a detailed block diagram of the bit number determination circuit of this embodiment, and FIG. 3 is a diagram for explaining the operation of the threshold value determination circuit of this embodiment. It is. 1... PCM input terminal, 2... code conversion circuit, 3.
...Difference calculation circuit, 4...Quantizer, 5...ADP
CM output terminal, 6... Inverse quantizer, 7... Adaptive predictor, 8... Bit number determination circuit, 81... First input terminal, 82... Square integration circuit, 83. ...Threshold value calculation circuit, 84...First dark value judgment circuit, 85...Second threshold value judgment circuit, 86...Bit number judgment circuit, 87...
・Judgment output, 88...first threshold value output, 89...second dark value output, 9°...second input terminal・

Claims (1)

【特許請求の範囲】 1、入力PCM信号と適応予測器から出力される推定信
号との差分信号をADPCM信号に量子化するとともに
このADPCM信号を逆量子化することにより適応予測
器入力を生成するADPCM符号化方式において、前記
差分信号の積分値と前記入力PCM信号から計算される
閾値とによりADPCM符号化アルゴリズムのビット数
を決定することを特徴とするADPCM符号化方式。 2、前記入力PCM信号と前記適応予測器から出力され
る再生信号とからADPCM符号化アルゴリズムのビッ
ト数を決定することを特徴とする請求項1記載のADP
CM符号化方式。 3、前記適応予測器から入力の積分値と前記入力PCM
信号から計算される閾値とからADPCM符号化アルゴ
リズムのビット数を決定することを特徴とする請求項1
記載のADPCM符号化方式。
[Claims] 1. Quantizing the difference signal between the input PCM signal and the estimated signal output from the adaptive predictor into an ADPCM signal and inversely quantizing the ADPCM signal to generate the adaptive predictor input. An ADPCM encoding method, characterized in that the number of bits of an ADPCM encoding algorithm is determined based on an integral value of the difference signal and a threshold value calculated from the input PCM signal. 2. The ADP according to claim 1, wherein the number of bits of the ADPCM encoding algorithm is determined from the input PCM signal and the reproduced signal output from the adaptive predictor.
CM encoding method. 3. The integral value of the input from the adaptive predictor and the input PCM
Claim 1, characterized in that the number of bits of the ADPCM encoding algorithm is determined from a threshold value calculated from the signal.
ADPCM encoding method described.
JP2131805A 1990-05-22 1990-05-22 ADPCM coding method Expired - Fee Related JP3013391B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2131805A JP3013391B2 (en) 1990-05-22 1990-05-22 ADPCM coding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2131805A JP3013391B2 (en) 1990-05-22 1990-05-22 ADPCM coding method

Publications (2)

Publication Number Publication Date
JPH0426231A true JPH0426231A (en) 1992-01-29
JP3013391B2 JP3013391B2 (en) 2000-02-28

Family

ID=15066524

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2131805A Expired - Fee Related JP3013391B2 (en) 1990-05-22 1990-05-22 ADPCM coding method

Country Status (1)

Country Link
JP (1) JP3013391B2 (en)

Also Published As

Publication number Publication date
JP3013391B2 (en) 2000-02-28

Similar Documents

Publication Publication Date Title
KR940005516B1 (en) Adaptable quantize corder
EP0249086B1 (en) Method and apparatus for encoding/transmitting image
US4574383A (en) Decoder of adaptive differential pulse code modulation
US5506623A (en) Data compression methods and systems with quantization distortion measurement means
JPS6342988B2 (en)
JP2809524B2 (en) Digital transmission system synchronization
JPH01256278A (en) Prediction coding system
JPH0426231A (en) Adpcm encoding system
JP2797411B2 (en) Encoding device
JPH0786955A (en) Encoder
JP2809307B2 (en) Encoding device
JPS62214740A (en) Predictive coding transmission equipment
JPS62216425A (en) Forecasting encoder
JPH05153067A (en) Compensation method for transmission line error
JPS62104223A (en) Adpcm coding and recoding device
JPS63318818A (en) Difference coding device
KR100195698B1 (en) Dpcm encoding method
JPH04134988A (en) Encoder for picture
JPH0356022B2 (en)
JPS63209236A (en) Adaptive quantizer
JPH0414528B2 (en)
JPH01135281A (en) High-efficiency encoder
JPH0374536B2 (en)
JPH1020893A (en) Coder and decoder
JPH082025B2 (en) Adaptive quantizer

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees