Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3092124B2 - Method and apparatus for adaptive transform coding - Google Patents
[go: Go Back, main page]

JP3092124B2 - Method and apparatus for adaptive transform coding - Google Patents

Method and apparatus for adaptive transform coding

Info

Publication number
JP3092124B2
JP3092124B2 JP01174636A JP17463689A JP3092124B2 JP 3092124 B2 JP3092124 B2 JP 3092124B2 JP 01174636 A JP01174636 A JP 01174636A JP 17463689 A JP17463689 A JP 17463689A JP 3092124 B2 JP3092124 B2 JP 3092124B2
Authority
JP
Japan
Prior art keywords
block length
circuit
signal
encoding
error
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 - Lifetime
Application number
JP01174636A
Other languages
Japanese (ja)
Other versions
JPH0338700A (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.)
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 JP01174636A priority Critical patent/JP3092124B2/en
Publication of JPH0338700A publication Critical patent/JPH0338700A/en
Application granted granted Critical
Publication of JP3092124B2 publication Critical patent/JP3092124B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To enable both application wherein importance is attached to encoding delay and application wherein importance is attached to an encoding/decoding error mode by providing a changeover switch, and encoding a signal on a variable block length basis when importance is attached to the error in encoding and decoding or on a short block length basis when importance is attached to an encoding delay time. CONSTITUTION:An input signal sample obtained from an input terminal 1 is supplied to (n) encoders 1001, 1002... 100n at the same time. The respective encoders encodes the sample by using mutually different block lengths N1, N2... Nn and encoding outputs and auxiliary information on bit distribution, etc., are supplied and stored in a storage device 101 independently of one another. The encoding outputs are supplied to (n) decoders 1021, 1022... 102n at the same time and their decoding outputs are transmitted to an error calculating circuit 103. When, however, a specification signal is supplied to an input terminal 108, signals which are encoded with specified block lengths are sent and stored instead of the signals which are encoded with the best block lengths.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、音声/音楽等の信号の帯域圧縮技術、特に
時間領域で得られる入力信号を他の領域に線形変換して
から行なう帯域圧縮技術に関する。
Description: FIELD OF THE INVENTION The present invention relates to a band compression technique for a signal such as voice / music, and more particularly to a band compression performed after linearly converting an input signal obtained in a time domain into another domain. About technology.

(従来の技術) 限られた伝送容量の回線を使用して、音声/音楽等の
信号に含まれる情報を効率良く伝送するために、その情
報量を減少させることを帯域圧縮といい、主として適応
差分パルス符号変調[ADPCM](ディジタル・コーディ
ング・オブ・ウェーブフォームズ、(Digital Coding o
f Waveforms)、プレンティス・ホール社(Prentice−H
all)、1984年、308ページ参照;以下、「文献1」)と
適応変換符号化[ATC](アイイーイーイー・トランザ
クションズ・オン・エイエスエスピー(IEEE TRANSACTI
ONS ON ASSP)27巻1号、1979年、89−95ページ参照;
以下、「文献2」)が知られている。以下に、ATCの概
要を文献2に従って簡単に説明する。
(Prior Art) To efficiently transmit information included in a signal such as voice / music using a line having a limited transmission capacity, reducing the amount of information is called band compression, and is mainly adapted. Differential Pulse Code Modulation [ADPCM] (Digital Coding of Waveforms, (Digital Coding
f Waveforms, Prentice-H
all), 1984, pp. 308; hereinafter, "Document 1") and adaptive transform coding [ATC] (IEEE TRANSACTI).
ONS ON ASSP) Vol. 27, No. 1, 1979, pp. 89-95;
Hereinafter, “Reference 2”) is known. The outline of ATC will be briefly described below according to Document 2.

第6図は、ATCの一構成例を示したブロック図であ
る。符号化器では、入力信号が入力端子1を経て線形変
換回路3に供給される。入力端子1には一般に離散的な
値が供給され、線形変換回路3で予め定められた整数N
に等しい入力サンプルを単位としたN点離散線形変換が
施される。Nはブロック長と呼ばれる。このN点離散線
形変換としては、ウォルシュ−アダマール変換(WA
T)、離散フーリエ変換(DFT)、離散コサイン変換(DC
T)、KL変換(KLT)等が用いられる。線形変換回路3の
出力である総数Nの変換係数は後述するビット配分に従
って量子化器4でそれぞれ量子化され、多重化回路5へ
供給される。量子化器4内にはブロック長Nに等しい数
の量子化器が含まれており、各変換係数はそれぞれ専用
の量子化器で量子化される。ビット配分回路6では、変
換係数の振幅に対応した量子化ビット割当てを計算し、
量子化器4へ供給する。多重化回路5では、量子化器4
から供給される量子化された変換係数とビット配分回路
6から供給されるビット配分に用いた情報を多重化し、
伝送路12に送出される。
FIG. 6 is a block diagram showing one configuration example of the ATC. In the encoder, an input signal is supplied to a linear conversion circuit 3 via an input terminal 1. Generally, a discrete value is supplied to the input terminal 1, and an integer N predetermined by the linear conversion circuit 3.
N-point discrete linear transformation is performed in units of input samples equal to N is called the block length. As the N-point discrete linear transformation, Walsh-Hadamard transformation (WA
T), discrete Fourier transform (DFT), discrete cosine transform (DC
T), KL transformation (KLT) and the like are used. The total number N of transform coefficients output from the linear transform circuit 3 are quantized by the quantizer 4 in accordance with bit allocation described later, and supplied to the multiplexing circuit 5. The quantizer 4 includes a number of quantizers equal to the block length N, and each transform coefficient is quantized by a dedicated quantizer. The bit allocation circuit 6 calculates a quantization bit allocation corresponding to the amplitude of the transform coefficient,
It is supplied to the quantizer 4. In the multiplexing circuit 5, the quantizer 4
Is multiplexed with the quantized transform coefficient supplied from and the information used for the bit allocation supplied from the bit allocation circuit 6,
The data is transmitted to the transmission path 12.

復号化器では、伝送路12からの多重化信号が分離回路
13で分離され、量子化器4からの信号は逆量子化器14
に、ビット配分回路6からの信号は、ビット配分回路15
へ供給される。ビット配分回路15では符号化器のビット
配分回路6と全く同様な方法で、各変換係数に対するビ
ット配分が決定される。逆量子化器14で、ビット配分回
路15で決定されたビット配分に従って逆量子化された変
換係数は、線形逆変換回路16で再び総数Nの時間領域の
信号サンプルに変換され、出力端子18に供給される。
In the decoder, the multiplexed signal from the transmission line 12 is
The signal from the quantizer 4 is separated by an inverse quantizer 14
The signal from the bit distribution circuit 6 is
Supplied to The bit allocation circuit 15 determines the bit allocation for each transform coefficient in exactly the same way as the bit allocation circuit 6 of the encoder. The transform coefficient inversely quantized by the inverse quantizer 14 in accordance with the bit allocation determined by the bit allocation circuit 15 is again converted into a total number N of time-domain signal samples by the linear inverse conversion circuit 16, and is output to the output terminal 18. Supplied.

ビット配分回路における配分方法には、いくつかの種
類があるが、ここでは文献2に述べられている方法を第
6図を参照して説明する。この方法は、復号化器におい
て逆量子化したときの量子化二乗誤差が最小になるよう
するもので、補助情報量を削減するために変換係数を1
度間引き、続いて補間した値を用いてビット数の最適化
を行なう。第5図に示されるビット配分回路Iは、第6
図(a)の通りに構成される。線形変換器3で得られた
変換係数は、第6図(a)の入力端子41を経て、間引き
回路42に供給される。間引き回路42では、N個の変換係
数の二乗を計算し、整数値M毎(MはNの約数)の平均
値を代表値として1/Mの間引きを行なう。得られたL=N
/Mのサンプル値は量子化器43でそれぞれ量子化され、出
力端子44と補間回路45へ供給される。量子化器43は省略
される場合もある。補間回路45においては、2を底とす
る対数をとった後、対数領域でM倍の補間が行なわれ
る。補間された信号を用いて前記量子化器4におけるビ
ット配分が、次式によりビット数最適化回路46で行なわ
れ、その結果が出力端子47へ伝達され、量子化器4に供
給される。
There are several types of allocation methods in the bit allocation circuit. Here, the method described in Reference 2 will be described with reference to FIG. This method is to minimize the quantization square error at the time of inverse quantization in a decoder, and to reduce the amount of auxiliary information by one in order to reduce the amount of auxiliary information.
The number of bits is optimized by using the interpolated value after the thinning. The bit distribution circuit I shown in FIG.
It is configured as shown in FIG. The conversion coefficient obtained by the linear converter 3 is supplied to the thinning circuit 42 via the input terminal 41 shown in FIG. The thinning circuit 42 calculates the square of the N conversion coefficients, and thins out 1 / M with the average value for each integer M (M is a divisor of N) as a representative value. L = N obtained
The sample value of / M is quantized by a quantizer 43 and supplied to an output terminal 44 and an interpolation circuit 45. The quantizer 43 may be omitted in some cases. In the interpolation circuit 45, after taking a logarithm with 2 as a base, interpolation of M times is performed in a logarithmic domain. The bit distribution in the quantizer 4 is performed by the bit number optimizing circuit 46 by the following equation using the interpolated signal, and the result is transmitted to the output terminal 47 and supplied to the quantizer 4.

ここに、Riはi番目の変換係数に対する割当てビット
数、は1変換係数当りの平均割当てビット数、σi 2
補間回路46における補間で近似的に復元されたi番目変
換係数の二乗値である。式(1)を用いてビット配分を
行なうことにより、量子化二乗誤差を最小にできること
がアイイーイーイー・トランザクションズ・オン・エイ
エスエスピー(IEEE TRANSACTIONS ON ASSP)25巻4
号、1977年、299−309ページ参照;(以下、「文献
3」)に示されている。出力端子44で得られた間引かれ
た信号は、多重化回路5を経て補助情報として送出され
る。一方、ビット配分回路15は第6図(b)に示すよう
に構成される。分離回路13からの信号は入力端子48を経
て補間回路45に供給される。符号化器内のビット配分回
路6が量子化器43を有する場合には、復号化器内のビッ
ト配分回路15も対応して逆量子化器49を有する。補間回
路45、ビット数最適化回路46では、既に説明した符号化
器内の前記補間回路45、ビット数最適化回路46と全く同
様な補間及びビット数最適化が行なわれる。従って、第
6図(a)の出力端子47と第6図(b)の出力端子50に
は、全く等しいビット配分のための信号が得られ、符号
化器側と復号化器側で対応のとれた量子化/逆量子化が
行なわれる。
Here, R i is the number of bits allocated to the i-th transform coefficient, is the average allocated bit number per transform coefficient, and σ i 2 is the square value of the i-th transform coefficient approximately restored by interpolation in the interpolation circuit 46. It is. By performing bit allocation using equation (1), the quantization square error can be minimized. IEEE Transactions on ASSP Vol. 25, No. 4
No. 1977, pp. 299-309; (hereinafter referred to as “Reference 3”). The decimated signal obtained at the output terminal 44 is sent out as auxiliary information via the multiplexing circuit 5. On the other hand, the bit distribution circuit 15 is configured as shown in FIG. The signal from the separation circuit 13 is supplied to the interpolation circuit 45 via the input terminal 48. When the bit allocation circuit 6 in the encoder has a quantizer 43, the bit allocation circuit 15 in the decoder also has an inverse quantizer 49 correspondingly. The interpolation circuit 45 and the bit number optimization circuit 46 perform the same interpolation and bit number optimization as the interpolation circuit 45 and the bit number optimization circuit 46 in the encoder described above. Therefore, signals for exactly the same bit allocation are obtained at the output terminal 47 in FIG. 6 (a) and the output terminal 50 in FIG. 6 (b), and the corresponding signals are obtained on the encoder side and the decoder side. The quantization / inverse quantization performed is performed.

これまでの説明では、ビット配分回路6から多重化回
路5へ補助情報として供給される信号は第6図(a)の
出力端子44で得られる間引かれた変換係数の二乗値とし
てきた。しかし、この信号を復号化器へ伝送する目的
は、ビット配分に利用される変換係数の概略値を符号化
器と復号化器で共有することである。従って、間引かれ
た変換係数の二乗値以外にも、PARCOR係数、ADPCM及び
ベクトル量子化による方法等が知られている。
In the description so far, the signal supplied as auxiliary information from the bit distribution circuit 6 to the multiplexing circuit 5 has been the square value of the thinned-out transform coefficient obtained at the output terminal 44 in FIG. 6 (a). However, the purpose of transmitting this signal to the decoder is to share the approximate value of the transform coefficient used for bit allocation between the encoder and the decoder. Therefore, in addition to the square value of the decimated transform coefficient, a method based on the PARCOR coefficient, ADPCM, vector quantization, and the like are known.

符号化器において線形変換回路3の出力に、振幅が入
力信号のパワーに依存しない変換係数を求める目的で、
入力信号を正規化することもできる。この場合は、第7
図に示すように入力信号は正規化回路2を経て正規化さ
れた後、線形変換回路3へ供給される。復号化器では、
線形逆変換回路16の出力は逆正規化回路17で正規化回路
2と反対の処理を施されてから、出力端子18へ伝達され
る。第8図(a)、(b)に、正規化回路2及び逆正規
化回路17の構成をそれぞれ示す。第8図(a)の入力端
子61には、第7図の入力端子1から入力信号サンプルが
供給される。入力信号サンプルはバッファ62に一時蓄積
された後、Nサンプル毎にまとめて乗算器63でスケーリ
ングを施され、出力端子65を経て線形変換回路3へ供給
される。乗算器63の乗数は、入力サンプルの電力の1ブ
ロック分の平均値である。この値は、平均零の入力信号
に対しては分散となり、分散計算回路64にて求められ
る。分散計算回路64にて求められた分散値は乗算器63で
入力サンプルの正規化に使用されると同時に、出力端子
66を経て第7図の多重化回路5へ供給され、多重化の
後、補助情報として復号化器へ伝達される。一方、第8
図(b)の逆正規化回路では、第7図の線形逆変換回路
16からの信号が入力端子67を経て乗算器68に供給され
る。乗算器68では入力端子69を経て得られた分散値の逆
数を用いて出力信号を逆正規化し、バッファ70に蓄積す
る。入力端子69に得られる分散値は、第7図の多重化回
路5、伝送路12及び分離回路13を経て、符号化器から伝
達される。バッファ70はN個の復号化サンプル値を順
に、出力端子71を経て第7図の出力端子18に伝達する。
In order to obtain a transform coefficient whose amplitude does not depend on the power of the input signal, at the output of the linear transform circuit 3 in the encoder,
The input signal can also be normalized. In this case, the seventh
As shown in the figure, the input signal is supplied to a linear conversion circuit 3 after being normalized through a normalization circuit 2. In the decoder,
The output of the linear inverse transform circuit 16 is subjected to processing opposite to that of the normalization circuit 2 by the inverse normalization circuit 17 and then transmitted to the output terminal 18. FIGS. 8A and 8B show the configurations of the normalization circuit 2 and the denormalization circuit 17, respectively. An input signal sample is supplied to the input terminal 61 in FIG. 8A from the input terminal 1 in FIG. After the input signal samples are temporarily stored in the buffer 62, they are collectively scaled by the multiplier 63 every N samples, and supplied to the linear conversion circuit 3 via the output terminal 65. The multiplier of the multiplier 63 is an average value of one block of the power of the input sample. This value becomes a variance for an input signal having an average of zero, and is obtained by the variance calculation circuit 64. The variance value obtained by the variance calculation circuit 64 is used for normalization of the input sample by the multiplier 63, and at the same time, the output terminal
It is supplied to the multiplexing circuit 5 of FIG. 7 via 66, and after multiplexing, is transmitted to the decoder as auxiliary information. On the other hand, the eighth
In the inverse normalization circuit of FIG. 7B, the linear inverse transformation circuit of FIG.
The signal from 16 is supplied to the multiplier 68 via the input terminal 67. The multiplier 68 denormalizes the output signal using the reciprocal of the variance value obtained via the input terminal 69, and accumulates the output signal in the buffer 70. The variance obtained at the input terminal 69 is transmitted from the encoder via the multiplexing circuit 5, the transmission path 12, and the demultiplexing circuit 13 in FIG. The buffer 70 sequentially transmits the N decoded sample values via the output terminal 71 to the output terminal 18 of FIG.

(発明が解決しようとする課題) ブロック数Nは線形変換回路3及び線形逆変換回路16
で行なわれる演算の分解能に影響し、Nが大きいほど分
解能が高くなり符号化復号化による誤差が減少する。一
方、非定常信号に対しては、必ずしも大きなNが少ない
誤差を与えるとは限らない。同一ブロック内の入力サン
プルに対しては同一の処理がなされるが、ブロックが長
いと非定常信号は同一ブロック内でその特性が変化して
しまう可能性が有るからである。従って、非定常性の強
い信号に対しては、小さいブロック長Nで入力信号の性
質の変化に追随するような符号化を行なった方が良い。
一方、ブロック長Nが大きいほど符号化遅延時間が増
し、通信等のように符号化復号化による誤差よりも即時
性が重要となる応用には短いブロック長が望ましい。従
来のATCでは、ブロック長Nが固定されていたために、
前記の分解能と入力信号の性質の変化への追従という相
反する要求に答えることができなかった。さらに、符号
化遅延を重視する応用と、符号化復号化誤差を重視する
応用の両方に対応することはできなかった。
(Problems to be Solved by the Invention) The number of blocks N is determined by the linear conversion circuit 3 and the linear inverse conversion circuit 16.
The larger the N, the higher the resolution and the smaller the error due to encoding / decoding. On the other hand, a large N does not always give a small error to an unsteady signal. This is because the same processing is performed on input samples in the same block, but if the block is long, the characteristics of the non-stationary signal may change in the same block. Therefore, it is better to perform encoding that follows a change in the properties of the input signal with a small block length N for a signal having a strong non-stationary property.
On the other hand, as the block length N increases, the encoding delay time increases, and a short block length is desirable for applications where immediacy is more important than error due to encoding and decoding, such as communication. In the conventional ATC, since the block length N was fixed,
The conflicting demands of following the resolution and the change of the properties of the input signal could not be met. Furthermore, it was not possible to cope with both the application that emphasizes the encoding delay and the application that emphasizes the encoding / decoding error.

本発明の目的は、遅延時間より符号化復号化による誤
差が重要な場合には、分解能と入力信号の性質の変化へ
の追従という相反する要求を満足させ、符号化遅延時間
が重要となる場合には、短いブロック長で符号化し、符
号化遅延を最小にできる、適応変換符号化の方法及び装
置を提供することにある。
An object of the present invention is to satisfy the conflicting requirements of resolution and tracking of changes in the properties of an input signal when an error due to encoding / decoding is more important than the delay time, and when the encoding delay time is important. An object of the present invention is to provide a method and apparatus for adaptive transform coding, which can perform coding with a short block length and minimize coding delay.

(課題を解決するための手段) 本発明は、ブロック長が指定されている場合には該指
定されたブロック長で符号化を行ない、それ以外の場合
には、複数のブロック長で独立に符号化し、符号化され
た信号及び付随する情報をそれぞれ独立に記憶すると同
時に符号化された信号を前記符号化に対応したブロック
長で独立に復号化し、該復号化された信号と前記入力信
号を用いてそれぞれのブロック長に対応した複数の誤差
を求め、該複数の誤差を比較して最小の誤差を与える最
適ブロック長を決定し、該最適ブロック長に対応した前
記記憶された符号化信号及び付随する情報を選択し、前
記最適ブロック長と共に伝送/蓄積することを特徴とす
る。
(Means for Solving the Problems) According to the present invention, when a block length is designated, encoding is performed with the designated block length, otherwise, encoding is performed independently with a plurality of block lengths. And independently store the encoded signal and the accompanying information, respectively, and simultaneously decode the encoded signal independently with a block length corresponding to the encoding, using the decoded signal and the input signal. A plurality of errors corresponding to the respective block lengths, and comparing the plurality of errors to determine an optimal block length that gives a minimum error, and determining the stored encoded signal corresponding to the optimal block length and the associated And transmitting / accumulating the information together with the optimum block length.

また本発明は、ブロック長が指定されている場合には
該指定されたブロック長で符号化を行ない、それ以外の
場合には、入力信号サンプルをバッファに蓄積し、一組
の予め定められた数のうちの最小の数をブロック長とし
た符号化を行ない、さらに符号化出力に対して復号化を
行ない、得られた復号化出力と前記入力信号サンプルと
を用いて誤差を求めて記憶装置に格納し、以上の操作を
前記符号化器と復号化器を時分割多重使用して前記1組
の予め定められた数全部に対して小さい数から順に行な
い、前記記憶装置に格納された値を比較し、前記一組の
予め定められた数のうちで最小の前記誤差を与える最適
ブロック長を決定し、該最適ブロック長に対応した前記
符号化信号及び付随する情報を選択し、前記最適ブロッ
ク長と共に伝送/蓄積することを特徴とする。
Also, the present invention performs encoding with the specified block length when the block length is specified, and otherwise stores the input signal samples in the buffer, and sets a set of predetermined predetermined lengths. The encoding device performs encoding with the minimum number of the blocks as the block length, further performs decoding on the encoded output, and obtains an error using the obtained decoded output and the input signal sample to obtain a storage device. And the above operation is performed in order from the smallest number for all of the set of predetermined numbers using time division multiplexing of the encoder and the decoder, and the value stored in the storage device is stored. And determining an optimal block length that gives the minimum error among the set of predetermined numbers, selecting the coded signal corresponding to the optimal block length and associated information, Transmission / storage with block length Characterized in that it.

また本発明は、ブロック長が指定されている場合には
該指定されたブロック長で符号化を行ない、それ以外の
場合には、入力信号サンプルをバッファに蓄積し、一組
の予め定められた数のうちの最小の数をブロック長とし
て線形変換と量子化を少なくとも含む符号化を行ない、
さらに前記線形変換出力に対して線形逆変換を行ない、
該線形逆変換で得られた出力と前記入力信号サンプルと
を用いて誤差を求めて記憶装置に格納し、以上の操作を
前記符号化器と復号化器を時分割多重使用して前記1組
の予め定められた数全部に対して小さい数から順に行な
い、前記記憶装置に格納された値を比較し、前記一組の
予め定められた数のうちで最小の前記誤差を与える最適
ブロック長を決定し、該最適ブロック長に対応した前記
符号化信号及び付随する情報を選択し、前記最適ブロッ
ク長と共に伝送/蓄積することを特徴とする。
Also, the present invention performs encoding with the specified block length when the block length is specified, and otherwise stores the input signal samples in the buffer, and sets a set of predetermined predetermined lengths. Perform encoding including at least linear transformation and quantization with the minimum number of numbers as the block length,
Further, performing a linear inverse transformation on the linear transformation output,
An error is obtained by using the output obtained by the linear inverse transformation and the input signal sample and stored in a storage device, and the above operation is performed by using the encoder and the decoder in a time-division multiplex manner. Are performed in ascending order from the smallest number to all of the predetermined numbers, comparing the values stored in the storage device, and determining the optimum block length that gives the minimum error among the set of predetermined numbers. Is determined, the coded signal corresponding to the optimal block length and associated information are selected, and transmitted / stored together with the optimal block length.

また本発明は、複数のブロック長で独立に符号化する
ための複数の符号化器と、符号化された信号及び付随す
る情報をそれぞれ独立に格納する記憶装置と、同時に前
記符号化器で符号化された信号を符号化に対応したブロ
ック長で独立に復号化する複数の復号化器と、該復号化
器で復号化された信号と前記入力信号を用いてそれぞれ
のブロック長に対応した複数の誤差を求める誤差計算回
路と、該複数の誤差を比較して最小の誤差を与える最適
ブロック長を決定する誤差比較回路と、該最適ブロック
長に対応した前記符号化信号及び付随する情報を前記記
憶装置から選択する第1のセレクタと、該選択された符
号化信号及び付随する情報と前記最適ブロック長を多重
化する第1の多重化回路と、前記複数の符号化器の出力
を入力とし、ブロック長を指定する指定信号で制御され
る第2のセレクタと、該第2のセレクタの出力と前記指
定信号を多重化する第2の多重化回路と、前記第1と第
2の多重化回路出力を前記指定信号で切換えて伝送/蓄
積するための第3のセレクタを少なくとも具備すること
を特徴とする。
The present invention also provides a plurality of encoders for independently encoding with a plurality of block lengths, a storage device for independently storing encoded signals and associated information, and a method for simultaneously encoding with the encoder. A plurality of decoders for independently decoding the coded signal with a block length corresponding to the encoding, and a plurality of decoders corresponding to the respective block lengths using the signal decoded by the decoder and the input signal. An error calculation circuit that determines the error of the error, an error comparison circuit that determines the optimal block length that gives the minimum error by comparing the plurality of errors, and the encoded signal corresponding to the optimal block length and the accompanying information A first selector for selecting from the storage device, a first multiplexing circuit for multiplexing the selected coded signal and accompanying information and the optimal block length, and outputs of the plurality of encoders as inputs , Block A second selector controlled by a designation signal designating a length, a second multiplexing circuit for multiplexing the output of the second selector and the designation signal, and an output of the first and second multiplexing circuits , And at least a third selector for transmitting / accumulating the data by switching with the designation signal.

また本発明は、入力サンプルを蓄積するバッファと、
該バッファの読み出しタイミングを制御するための複数
のクロックを発生するクロック発生器と、該クロック発
生器から供給される複数のクロックをブロック長を指定
する指定信号に応じて選択して前記バッファに供給する
第4のセレクタと、1組の予め定められた数のうちの最
小の数をブロック長とした符号化を行なう符号化器と、
符号化出力を復号化する復号化器と、該復号化器の出力
と前記入力信号サンプルとを用いて誤差を求める誤差計
算回路と、該誤差を格納する記憶装置と、該記憶装置に
格納された値を比較して前記1組の予め定められた数の
うちで最小の前記誤差を与える数を最適ブロック長とし
て出力する誤差比較回路と、前記1組の予め定められた
数全てに対応する符号化信号及び付随する情報を順に受
けて記憶し、最適ブロック長に従って選択・多重化して
伝送/蓄積する選択・多重化回路とを具備することを特
徴とする。
The present invention also provides a buffer for storing input samples,
A clock generator for generating a plurality of clocks for controlling the read timing of the buffer; and a plurality of clocks supplied from the clock generator are selected and supplied to the buffer according to a designation signal designating a block length. A fourth selector to perform encoding, and an encoder that performs encoding using a minimum number of a set of predetermined numbers as a block length;
A decoder that decodes an encoded output, an error calculation circuit that obtains an error by using an output of the decoder and the input signal sample, a storage device that stores the error, and a storage device that stores the error. An error comparison circuit that compares the calculated values and outputs a number that gives the smallest error among the set of predetermined numbers as an optimum block length, and corresponds to all of the set of predetermined numbers. A selection and multiplexing circuit for receiving and storing the coded signal and the accompanying information in order, selecting and multiplexing according to the optimal block length, and transmitting / accumulating the signal is provided.

また本発明は、入力サンプルを蓄積するバッファと、
該バッファの読み出しタイミングを制御するための複数
のクロックを発生するクロック発生器と、該クロック発
生器から供給される複数のクロックをブロック長を指定
する指定信号に応じて選択して前記バッファに供給する
第4のセレクタと、1組の予め定められた数のうちの最
小の数をブロック長として少なくとも線形変換と量子化
を含む符号化を行なう符号化器と、線形変換出力を線形
逆変換する線形逆変換回路と、該線形逆変換回路の出力
と前記入力信号サンプルとを用いて誤差を求める誤差計
算回路と、該誤差を格納する記憶装置と、該記憶装置に
格納された値を比較して前記1組の予め定められた数の
うちで最小の前記誤差を与える数を最適ブロック長とし
て出力する誤差比較回路と、前記1組の予め定められた
数全てに対応する符号化信号及び付随する情報を順に受
けて記憶し、最適ブロック長に従って選択・多重化して
伝送/蓄積する選択・多重化回路とを具備することを特
徴とする。
The present invention also provides a buffer for storing input samples,
A clock generator for generating a plurality of clocks for controlling the read timing of the buffer; and a plurality of clocks supplied from the clock generator are selected and supplied to the buffer according to a designation signal designating a block length. A fourth selector for performing encoding including at least linear transformation and quantization using a minimum number of a set of predetermined numbers as a block length, and performing a linear inverse transformation on the linear transformation output A linear inverse transform circuit, an error calculating circuit for obtaining an error using the output of the linear inverse transform circuit and the input signal sample, a storage device for storing the error, and comparing the values stored in the storage device. An error comparison circuit that outputs a number that gives the smallest error among the set of predetermined numbers as an optimal block length, and that corresponds to all of the set of predetermined numbers. Storing Goka signal and associated information received in order, characterized by comprising a selection and multiplexing circuit for transmitting / storing select and multiplexing according to the optimum block length.

(作用) 本発明の適応変換符号化の方法及び装置は、切替スイ
ッチを設け、遅延時間より符号化復号化による誤差が重
要な場合には、ブロック長Nを可変として分解能と入力
信号の性質の変化への追従という相反する要求を満足さ
せ、符号化遅延時間が重要となる場合には、スイッチを
切替えて指定した短いブロック長で符号化し、符号化遅
延を最小にする。
(Operation) The method and apparatus for adaptive transform coding according to the present invention are provided with a changeover switch, and when the error due to coding and decoding is more important than the delay time, the block length N is made variable and the resolution and the characteristics of the input signal are changed When the conflicting requirement of following changes is satisfied and the encoding delay time is important, the switch is switched to perform encoding with a specified short block length to minimize the encoding delay.

(実施例) 次に図面を参照して本発明について詳細に説明する。
第1図は、本発明の一実施例を示すブロック図である。
入力端子1で得られた入力信号サンプルは、n個の符号
化器1001、1002……100n(nは整数)に同時に供給され
る。それぞれの符号化器では互に異なったブロック長
N1、N2、……Nnを用いて符号化が行なわれ、符号化出力
及びビット配分関連等の補助情報は記憶装置101に供給
され、それぞれ独立に記憶される。一方、符号化出力
は、n個の復号化器1021、1022……102nにも同時に供給
される。それぞれの復号化器では符号化で用いたブロッ
ク長N1、N2、……Nnを用いて復号化が行なわれ、復号化
出力は誤差計算回路103に伝達される。誤差計算回路103
では、n個の復号化器1021、1022……102nから供給され
た復号化信号と入力端子1から供給された入力信号を用
いてブロック長N1、N2、……Nnに対応した符号化復号化
による誤差sd(N1)、sd(N2)……sd(Nn)が計算され
る。誤差sdの計算は、例えば、符号化前の信号siと復号
化後の信号sqを用いて、次式に従って行なうことができ
る。
Embodiment Next, the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram showing one embodiment of the present invention.
The input signal samples obtained at the input terminal 1 are simultaneously supplied to n encoders 100 1 , 100 2 ... 100 n (n is an integer). Different encoders have different block lengths
Encoding is performed using N 1 , N 2 ,... N n , and auxiliary information such as encoding output and bit allocation is supplied to the storage device 101 and stored independently. On the other hand, the encoded output is simultaneously supplied to n decoders 102 1 , 102 2 ... 102 n . Each decoder performs decoding using the block lengths N 1 , N 2 ,..., N n used in the encoding, and the decoded output is transmitted to the error calculation circuit 103. Error calculation circuit 103
At the block length N 1, N 2 using an input signal supplied from the n decoder 102 1, 102 2 ...... decoded signal supplied from 102 n and the input terminal 1, the ...... N n The errors s d (N 1 ), s d (N 2 )... S d (N n ) due to the corresponding encoding / decoding are calculated. The calculation of the error s d can be performed, for example, using the signal s i before encoding and the signal s q after decoding, according to the following equation.

sd=sq 2/(si 2−sq 2) ……(2) 但し、N1<N2……<Nnで、通常2Ni=Ni+1(1≦i<
n)とする。ブロック長N1、N2、……Nnに対する誤差の
計算が全て終了したとき、sd(N1)、sd(N2)、……sd
(Nn)は同時に誤差比較回路104へ供給され、最小の誤
差sdminを与える最適ブロック長Nmが検出され、セレク
タ105と多重化回路106へ供給される。Nmは、量子化され
てから多重化回路106に伝達される場合もある。セレク
タ105では、誤差比較回路104から伝達された最適ブロッ
ク長Nmを用いて、これに対応した符号化出力及びビット
配分関連等の補助情報を記憶装置101から選択し、多重
化回路106に供給する。多重化回路106では最適ブロック
長Nm、これに対応した符号化出力及びビット配分関連等
の補助情報を多重化し、セレクタ111に供給する。
s d = s q 2 / (s i 2 −s q 2 ) (2) where N 1 <N 2 ... <N n and usually 2N i = N i + 1 (1 ≦ i <
n). When the calculation of the errors for the block lengths N 1 , N 2 ,..., N n has all been completed, s d (N 1 ), s d (N 2 ) ,.
(N n ) is supplied to the error comparison circuit 104 at the same time, the optimum block length N m giving the minimum error s d min is detected, and supplied to the selector 105 and the multiplexing circuit 106. N m may be transmitted to the multiplexing circuit 106 after being quantized. The selector 105, using the optimal block length N m transmitted from the error comparison circuit 104, which corresponds to the encoded output and the bit auxiliary information allocation related such as selected from the memory device 101, supplied to the multiplexing circuit 106 I do. The multiplexing circuit 106 multiplexes the optimum block length N m , the coded output corresponding thereto and auxiliary information such as bit allocation related information, and supplies the multiplexed information to the selector 111.

一方、n個の符号化器1001、1002……100nの出力はさ
らに、セレクタ109にも同時に供給される。セレクタ109
は入力端子108に供給されるブロック長を指定する指定
信号に対応して符号化器1001、1002……100nのいずれか
の出力を選択し、多重化回路110に伝達する。多重化回
路110には前記指定信号も供給されており、セレクタ109
の出力と指定信号が多重化されて、セレクタ111に供給
される。セレクタ111は、指定信号によって多重化回路1
10の出力と多重化回路106のいずれかを選択し、出力端
子107を経て伝送/蓄積のために送出する。入力端子108
に指定信号が供給されているときには、常にセレクタ11
1は多重化回路110の出力を、入力端子108に指定信号が
供給されていないときには多重化回路106の出力を選択
する。すなわち、入力端子108に指定信号が供給されて
いるときには、最適ブロック長で符号化された信号の代
りに指定されたブロック長で符号化された信号が伝送/
蓄積されることになる。
On the other hand, the outputs of the n encoders 100 1 , 100 2 ... 100 n are also supplied to the selector 109 at the same time. Selector 109
Selects one of the encoders 100 1 , 100 2, ..., 100 n in response to a designation signal for designating the block length supplied to the input terminal 108, and transmits it to the multiplexing circuit 110. The designation signal is also supplied to the multiplexing circuit 110, and the selector 109
Are multiplexed with the designation signal and supplied to the selector 111. The selector 111 controls the multiplexing circuit 1 according to the designated signal.
One of the output 10 and the multiplexing circuit 106 is selected and sent out via the output terminal 107 for transmission / storage. Input terminal 108
When the designated signal is supplied to the selector 11
1 selects the output of the multiplexing circuit 110 and the output of the multiplexing circuit 106 when the designation signal is not supplied to the input terminal 108. That is, when the designated signal is supplied to the input terminal 108, a signal encoded with the designated block length is transmitted / received instead of the signal encoded with the optimal block length.
Will be accumulated.

第1図に示されたn個の符号化器1001、1002……100n
及びn個の復号化器1021、1022……102nの構成に制限は
なく、いかなる構成の符号化器/復号化器でも使用する
ことができる。例えば、第6図及び第8図に示した従来
例の符号化器/復号化器を使用することができる。
The n encoders 100 1 , 100 2 ... 100 n shown in FIG.
There is no limitation on the configuration of the n decoders 102 1 , 102 2 ... 102 n , and any configuration of encoder / decoder can be used. For example, the conventional encoder / decoder shown in FIGS. 6 and 8 can be used.

次に本発明の他の実施例について詳細に説明する。第
2図は、本発明の一実施例を示すブロック図である。同
図において、第2図においては、符号化器201を時分割
多重使用して複数通りのブロック長に対して符号化を行
ない、それぞれの符号化信号に対する符号化復号化誤差
を計算して、最小の誤差を与える符号化信号を選択して
伝送路に送出する点にある。これに伴って、符号化器内
に復号化器203、誤差計算回路205、複数のブロック長に
対する誤差を記憶するための記憶装置206、最小の誤差
を与える最適ブロック長を決定するための誤差比較回路
207が付加され、各ブロック長に対応する符号化信号及
びビット配分に関する付随情報を記憶し、その中から最
適ブロック長に対応した値を選択し、最適ブロック長と
多重化する選択・多重化回路202で多重化回路5が置き
換えられている。
Next, another embodiment of the present invention will be described in detail. FIG. 2 is a block diagram showing one embodiment of the present invention. In FIG. 2, in FIG. 2, encoding is performed for a plurality of block lengths using the encoder 201 by time division multiplexing, and the encoding / decoding error for each encoded signal is calculated. The point is that an encoded signal giving the minimum error is selected and transmitted to the transmission path. Along with this, the decoder 203, the error calculation circuit 205, the storage device 206 for storing errors for a plurality of block lengths in the encoder, and the error comparison for determining the optimal block length that gives the minimum error circuit
207 is added, a coded signal corresponding to each block length and associated information on bit allocation are stored, and a value corresponding to the optimum block length is selected therefrom and multiplexed with the optimum block length. At 202, the multiplexing circuit 5 has been replaced.

次に、第2図の実施例の動作について説明する。符号
化器では、入力端子1に供給された信号はバッファ200
に一時蓄積され、符号化器201で符号化が行なわれる。
符号化器201の出力は、復号化器203に供給されて復号化
が行なわれる。復号化器203の出力は、誤差計算回路205
へ供給される。すなわち、符号化器201と復号化器203で
は符号化された信号に対して復号化を行ない、受信/再
生側の復号化器で得られる信号を符号化器で再現してい
る。一方、誤差計算回路203へはバッファ200の出力、す
なわち符号化前の信号も供給されている。誤差計算回路
203では、これらの符号化前と復号化後の信号を用いて
誤差を計算する。誤差sdの計算は、例えば、符号化前の
信号siと復号化後の信号sqを用いて、次式に従って行な
うことができる。
Next, the operation of the embodiment shown in FIG. 2 will be described. In the encoder, the signal supplied to the input terminal 1 is stored in a buffer 200.
, And is encoded by the encoder 201.
The output of the encoder 201 is supplied to a decoder 203 for decoding. The output of the decoder 203 is
Supplied to That is, the encoder 201 and the decoder 203 decode the encoded signal, and reproduce the signal obtained by the decoder on the receiving / reproducing side by the encoder. On the other hand, the output of the buffer 200, that is, the signal before encoding is also supplied to the error calculation circuit 203. Error calculation circuit
In 203, an error is calculated using the signal before encoding and the signal after decoding. The calculation of the error s d can be performed, for example, using the signal s i before encoding and the signal s q after decoding, according to the following equation.

sd=sq 2/(si 2−sq 2) ……(2) 以上の処理で、ブロック長N1に対する誤差sd(N1)の
計算が終了して、sd(N1)は、記憶装置206に記憶され
る。次にバッファ200に蓄積された第2のブロック長N2
(N1<N2)に等しいサンプルが、符号化器201で符号化
される。以下、N1の場合と同様にしてsd(N2)が計算さ
れる。sd(N2)は、記憶装置206に記憶される。以上説
明したN1、N2の場合と同様にして、複数のブロック長
N3、N4、……Nnの場合についての誤差sd(N3)、
(N4)……sd(Nn)を計算し、記憶装置206に記憶す
る。但し、N1<N2<N3<N4……<Nnで、通常2Ni=Ni+1
とする。
s d = s q 2 / (s i 2 −s q 2 ) (2) With the above processing, the calculation of the error s d (N 1 ) for the block length N 1 is completed, and s d (N 1 ) Are stored in the storage device 206. Next, the second block length N 2 stored in the buffer 200
Samples equal to (N 1 <N 2 ) are encoded by encoder 201. Thereafter, s d (N 2 ) is calculated in the same manner as in the case of N 1 . s d (N 2 ) is stored in the storage device 206. In the same manner as in the case of N 1 and N 2 described above,
N 3, N 4, for the case of ...... N n of error s d (N 3),
d (N 4 )... s d (N n ) is calculated and stored in the storage device 206. However, N 1 <N 2 <N 3 <N 4 ... <N n , usually 2N i = N i + 1
And

ブロック長N1、N2、N3、N4、……Nnに対する誤差の計
算が全て終了したとき、sd(N1)、sd(N2)、s
d(N3)、sd(N4)……sd(Nn)は同時に誤差比較回路2
07へ供給され、最小の誤差sdminを与える最適ブロック
長Nmが検出され、選択・多重化回路202へ供給される。N
mは、量子化されてから選択・多重化回路202に伝達され
る場合もある。一方、選択・多重化回路202にはそれぞ
れのブロック長に対応した符号化器201の出力及びビッ
ト配分の情報の出力が蓄積されており、後に供給される
最適ブロック長に対応した値が選択され、最適ブロック
長と多重化され、伝送路12に送出される。
When the calculation of the errors for the block lengths N 1 , N 2 , N 3 , N 4 ,..., N n has all been completed, s d (N 1 ), s d (N 2 ), s
d (N 3 ), s d (N 4 ) ... s d (N n ) are the error comparison circuit 2
Is supplied to the 07, the optimum block length N m giving the minimum error s d min is detected, is supplied to the selected and multiplexing circuit 202. N
m may be transmitted to the selection / multiplexing circuit 202 after being quantized. On the other hand, the output of the encoder 201 and the output of bit allocation information corresponding to each block length are accumulated in the selection / multiplexing circuit 202, and a value corresponding to the optimum block length supplied later is selected. Are multiplexed with the optimum block length and transmitted to the transmission path 12.

最適ブロック長の代りに指定した1つのブロック長で
符号化するために、入力端子210、クロック発生回路20
8、セレクタ209が用意されている。クロック発生回路20
8は、複数のブロック長に対応してバッファ200を制御す
るためのクロックを発生する。セレクタ209はこれらの
クロックから入力端子210にて指定されたブロック長に
対応するものを選択して、バッファ200と選択・多重化
回路202に供給する。複数のブロック長に対して時分割
多重で符号化を行ない、最適ブロック長を決定する場合
には、セレクタ209はブロック長に対応したクロックを
順に切替えてバッファ200に供給する。
The input terminal 210 and the clock generation circuit 20 are used to perform encoding with one designated block length instead of the optimum block length.
8. A selector 209 is provided. Clock generation circuit 20
8 generates a clock for controlling the buffer 200 corresponding to a plurality of block lengths. The selector 209 selects a clock corresponding to the block length specified at the input terminal 210 from these clocks, and supplies it to the buffer 200 and the selection / multiplexing circuit 202. When performing encoding on a plurality of block lengths by time division multiplexing and determining the optimal block length, the selector 209 sequentially switches clocks corresponding to the block lengths and supplies the clocks to the buffer 200.

第3図(a)、(b)は選択・多重化回路202の構成
例を示す。第3図(a)の例では、入力端子21に最適ブ
ロック長が、入力端子22に各ブロック長に対応した第8
図の量子化器4の出力が、入力端子23に各ブロック長に
対応したビット配分回路6の出力が、入力端子24に各ブ
ロック長に対応した入力サンプルの分散値が供給され
る。各ブロック長に対応した3種の入力信号、すなわち
量子化器4の出力、ビット配分回路6の出力及び入力サ
ンプルの分散値は多重化回路25で多重化された後、スイ
ッチ37と記憶装置26に記憶される。入力端子21に供給さ
れた最適ブロック長に対応する量子化器4の出力、ビッ
ト配分回路6の出力及び入力サンプルの分散値がセレク
タ27において選択され、セレクタ38を経て多重化回路28
に伝達される。多重化回路28では、セレクタ27から供給
された多重化信号にさらに最適ブロック長が多重化さ
れ、出力端子29を経て、第2図の伝送路12に送出され
る。
FIGS. 3A and 3B show examples of the configuration of the selection / multiplexing circuit 202. FIG. In the example of FIG. 3A, the input terminal 21 has an optimum block length, and the input terminal 22 has an eighth block length corresponding to each block length.
The output of the quantizer 4 is supplied to the input terminal 23, the output of the bit distribution circuit 6 corresponding to each block length is supplied to the input terminal 23, and the variance value of the input sample corresponding to each block length is supplied to the input terminal 24. The multiplexing circuit 25 multiplexes the three types of input signals corresponding to each block length, that is, the output of the quantizer 4, the output of the bit allocation circuit 6, and the variance of the input samples, and then switches the switch 37 and the storage device 26 Is stored. The output of the quantizer 4 corresponding to the optimum block length supplied to the input terminal 21, the output of the bit allocation circuit 6, and the variance value of the input sample are selected by the selector 27, and are passed through the selector 38 to the multiplexing circuit 28.
Is transmitted to In the multiplexing circuit 28, the multiplexed signal supplied from the selector 27 is further multiplexed with the optimum block length, and the multiplexed signal is transmitted to the transmission line 12 in FIG.

一方、符号化遅延が重視される応用の場合には、入力
端子39に指定信号が供給される。この指定信号により、
スイッチ37とセレクタ38が制御され、多重化回路25の出
力は記憶装置26とセレクタ27を経由せずに直接多重化回
路28へ供給される。従って、入力端子39に指定信号が供
給されているときには、入力端子22、23、24へ供給され
る信号が多重化されて直接セレクタ38に供給される。入
力端子39の指定信号としては、第2図のセレクタ209か
らのクロック、すなわち入力端子210で指定したブロッ
ク長に対応したクロックが供給される。このクロックは
バッファ200の制御クロックと同一なので、バッファ200
で用いられたブロック長に対応してスイッチ37とセレク
タ38が制御される。
On the other hand, in an application in which encoding delay is emphasized, a designation signal is supplied to the input terminal 39. By this designation signal,
The switch 37 and the selector 38 are controlled, and the output of the multiplexing circuit 25 is directly supplied to the multiplexing circuit 28 without passing through the storage device 26 and the selector 27. Therefore, when the designation signal is supplied to the input terminal 39, the signals supplied to the input terminals 22, 23 and 24 are multiplexed and supplied directly to the selector 38. As the designation signal of the input terminal 39, a clock from the selector 209 in FIG. 2, that is, a clock corresponding to the block length designated by the input terminal 210 is supplied. Since this clock is the same as the control clock of the buffer 200, the buffer 200
The switch 37 and the selector 38 are controlled in accordance with the block length used in.

第3図(b)の例では、各ブロック長に対応した3種
の入力信号、すなわち量子化器4の出力、ビット配分回
路6の出力及び入力サンプルの分散値が、多重化されず
に独立した記憶装置30、31、32とスイッチ50、51、52に
供給される。これら3種の入力信号は、セレクタ33、3
4、35においてそれぞれ入力端子21に供給された最適ブ
ロック長に対応した値が選択され、セレクタ53、54、55
を経て最適ブロック長と共に多重化回路36で多重化され
る。多重化信号は、出力端子29を経て、第2図の伝送路
12に送出される。符号化遅延が重視される応用の場合に
は、入力端子39に指定信号が供給される。以下の動作は
第3図(a)を用いて説明した通りである。スイッチ37
がスイッチ50、51、52に、セレクタ38がセレクタ53、5
4、55にそれぞれ対応する。次に、第4図を参照して第
2図のバッファ200の動作について、複数のブロック長
から最適ブロック長を決定する場合を例にとって説明す
る。
In the example of FIG. 3B, three types of input signals corresponding to each block length, that is, the output of the quantizer 4, the output of the bit allocation circuit 6, and the variance of the input samples are independent without being multiplexed. The storage devices 30, 31, and 32 and the switches 50, 51, and 52 are supplied. These three types of input signals are supplied to selectors 33 and 3
In steps 4 and 35, a value corresponding to the optimum block length supplied to the input terminal 21 is selected, and selectors 53, 54 and 55 are selected.
After that, the data is multiplexed by the multiplexing circuit 36 together with the optimum block length. The multiplexed signal is transmitted through an output terminal 29 to the transmission line shown in FIG.
Sent to 12. In the case of an application in which encoding delay is emphasized, a designation signal is supplied to the input terminal 39. The following operation is as described with reference to FIG. Switch 37
Are switches 50, 51, 52, and selector 38 is selectors 53, 5
4 and 55 respectively. Next, the operation of the buffer 200 in FIG. 2 will be described with reference to FIG. 4 by taking as an example a case where the optimum block length is determined from a plurality of block lengths.

符号化器が動作を開始した時点の時刻t=0とする。
時刻N1T(Tはサンプリング周期)においては、バッフ
ァ200にN1個の入力信号サンプルが蓄積される。この様
子を第4図(a)に示す。ブロック長N1に対する符号化
及び誤差sd(N1)の計算を行ない、sd(N1)は、記憶装
置に記憶される。時刻N2Tには、バッファ200に第2のブ
ロック長N2(N1<N2)に等しいサンプルが蓄積される。
この様子を第4図(b)に示す。以下、符号化が行なわ
れて、N1の場合と同様にしてsd(N2)が計算され、記憶
装置に記憶される。バッファ200は時刻N3Tに第4図
(c)にで示したようになり、N1、N2の場合と同様にし
て、誤差sd(N3)が計算される。今、第4図に示したよ
うにn=3(3通りのブロック長から最適ブロック長を
選択する。)の場合を仮定すると、誤差sd(N3)の計算
が終了した時点で、最適ブロック長が決定される。最適
ブロック長がN1であった場合には、バッファ200に蓄積
されたサンプル値のうち古い物からN1個のサンプルが廃
棄され、第4図(d)に示すように(N3−N1)個のサン
プルがバッファ内に残る。引続きバッファ200内の最初
のN1サンプル(第4図(d)中Iで示される部分)を用
いて、次の最適ブロック長を選択するための誤差計算が
開始される。N1についての誤差計算が終了した時点で
は、誤差計算にΔNT秒要すると仮定すれば、バッファ20
0内に蓄積されたサンプルは第4図(e)に示す通りと
なる。次にバッファ200内の最初のN2サンプル(第4図
(e)中IとIIで示される部分)を用いて、N2に対応す
る誤差計算が行なわれる。以下同様にN3に対応する誤差
が計算され、2番目の最適ブロック長が決定される。一
方、1番目の最適ブロック長がN2であった場合には、バ
ッファ200に蓄積されたサンプル値のうち古い物からN2
個のサンプルが廃棄され、第4図(f)に示すように
(N3−N2)個のサンプルがバッファ内に残る。引続きバ
ッファ200内の最初のN1サンプル(第4図(f)中Iで
示される部分)を用いて、次の最適ブロック長を選択す
るための誤差計算が開始される。N1についての誤差計算
が終了した時点では、誤差計算にΔNT秒要すると仮定す
れば、バッファ200内に蓄積されたサンプルは第4図
(g)に示す通りとなる。次にバッファ200内の最初のN
2サンプル(第4図(g)中IとIIで示される部分)を
用いて、N2に対応する誤差計算が行なわれる。以下同様
にN3に対応する誤差が計算され、2番目の最適ブロック
長が決定される。以上の処理により、入力信号サンプル
に対して各ブロック毎に異なったブロック長を適用した
ことになる。第4図(h)に選択された最適ブロック長
の一例を示す。
It is assumed that time t = 0 when the encoder starts operating.
At time N 1 T (T is a sampling period), N 1 input signal samples are accumulated in the buffer 200. This situation is shown in FIG. Performs calculation of coding and error s d (N 1) for the block length N 1, s d (N 1 ) is stored in the storage device. At time N 2 T, samples equal to the second block length N 2 (N 1 <N 2 ) are accumulated in the buffer 200.
This is shown in FIG. 4 (b). Thereafter, encoding is performed, and s d (N 2 ) is calculated in the same manner as in the case of N 1 and stored in the storage device. The buffer 200 becomes as shown in FIG. 4C at the time N 3 T, and the error s d (N 3 ) is calculated in the same manner as in the case of N 1 and N 2 . Now, assuming that n = 3 (the optimal block length is selected from three types of block lengths) as shown in FIG. 4, when the calculation of the error s d (N 3 ) is completed, The block length is determined. Ideal if the block length was N 1 is, N 1 samples from old among the stored sample values in the buffer 200 are discarded, as shown in FIG. 4 (d) (N 3 -N 1 ) Samples remain in the buffer. Subsequently using the first N 1 samples in the buffer 200 (the portion indicated by FIG. 4 (d) Medium I), the error calculation to select the next best block length is initiated. At the time the error calculation has been completed for N 1, assuming that required ΔNT seconds error calculation, the buffer 20
The sample stored in 0 is as shown in FIG. 4 (e). Then using the first N 2 samples in the buffer 200 (FIG. 4 (e) moieties represented by the medium I and II), error calculation corresponding to N 2 takes place. Hereinafter similarly calculates the error corresponding to N 3, 2-th optimum block length is determined. On the other hand, if the first optimal block length is N 2 , the oldest one of the sample values stored in the buffer 200 becomes N 2
Samples are discarded, as shown in FIG. 4 (f) (N 3 -N 2 ) samples remain in the buffer. Subsequently using the first N 1 samples in the buffer 200 (the portion indicated by FIG. 4 (f) Medium I), the error calculation to select the next best block length is initiated. At the time the error calculation has been completed for N 1, assuming that required ΔNT seconds error calculation, samples stored in the buffer 200 is as shown in FIG. 4 (g). Then the first N in buffer 200
An error calculation corresponding to N 2 is performed using two samples (portions indicated by I and II in FIG. 4 (g)). Hereinafter similarly calculates the error corresponding to N 3, 2-th optimum block length is determined. By the above processing, different block lengths are applied to the input signal samples for each block. FIG. 4H shows an example of the selected optimum block length.

第5図に本発明のもう1つの実施例を示す。第5図と
第2図の違いは、第2図の符号化器と復号化器の代りに
符号化器と線形逆変換回路204が用いられていることで
ある。これにより、符号化信号を復号化してから入力信
号と比較して誤差を求める代りに、符号化器で線形変換
された直後の信号を取り出して線形逆変換し、入力信号
に対する誤差を求めている。誤差計算の目的は、ブロッ
ク長による影響を調べるためで、ブロック長による誤差
の影響は符号化器中で線形変換に対するものが支配的で
ある。従って、第5図に示した実施例でも、第2図と同
等な効果が得られ、回路は第2図に比べて簡単になる。
FIG. 5 shows another embodiment of the present invention. The difference between FIG. 5 and FIG. 2 is that an encoder and a linear inverse transform circuit 204 are used instead of the encoder and decoder of FIG. As a result, instead of decoding the encoded signal and comparing it with the input signal to obtain an error, instead of taking out the signal immediately after the linear conversion by the encoder and performing linear inverse conversion, the error with respect to the input signal is obtained. . The purpose of the error calculation is to investigate the effect of the block length, and the effect of the error due to the block length is dominant on the linear transformation in the encoder. Therefore, in the embodiment shown in FIG. 5, the same effect as that of FIG. 2 is obtained, and the circuit is simpler than that of FIG.

第2図及び第5図の実施例における符号化器及び復号
化器の構成に制限はなく、いかなる構成の符号化器/復
号化器でも使用することができる。例えば、第1図の場
合と同様に、第6図及び第8図に示した従来例の符号化
器/復号化器を使用することができる。
The configurations of the encoder and the decoder in the embodiment of FIGS. 2 and 5 are not limited, and any configuration of the encoder / decoder can be used. For example, as in the case of FIG. 1, the conventional encoder / decoder shown in FIGS. 6 and 8 can be used.

(発明の効果) 以上詳細に述べたように、本発明によれば、遅延時間
より符号化復号化による誤差が重要な場合には、異なる
ブロック長に対する符号化復号化を行なって誤差を比較
し、受信側で復号化した際に最小の誤差を得られるよう
な最適ブロック長を選択し、最適ブロック長を用いて符
号化を行なって情報を伝送するために、分解能と入力信
号の性質の変化への追従という相反する要求を満足さ
せ、符号化遅延時間が重要となる場合には、指定した短
いブロック長で符号化し、符号化遅延を最小にすること
ができる。
(Effects of the Invention) As described in detail above, according to the present invention, when an error due to encoding / decoding is more important than a delay time, encoding / decoding for different block lengths is performed to compare the errors. In order to transmit the information by selecting the optimal block length to obtain the minimum error when decoding on the receiving side, and performing encoding using the optimal block length, changes in the resolution and properties of the input signal In the case where the conflicting requirement of following is satisfied and the encoding delay time is important, encoding can be performed with a specified short block length to minimize the encoding delay.

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

第1図は本発明の1実施例を示すブロック図、第2図は
本発明の他の実施例を示すブロック図、第3図は第2図
中の選択・多重化回路の詳細を示すブロック図、第4図
は入力サンプルを格納するバッファの状態の一例を示す
図、第5図は本発明の別の実施例を示すブロック図、第
6図は従来例を示すブロック図、第7図は第6図のビッ
ト配分回路I及びビット配分回路IIの詳細を示す図、第
8図は他の従来例を示す図、第9図は第8図における正
規化回路及び逆正規化回路の詳細を示す図である。 図において、1、108、210は入力端子、1001、1002……
100nは符号化器、101、205は記憶装置、1021、1022……
102nは復号化器、103、205は誤差計算回路、104、207は
誤差比較回路、105、109、111、209はセレクタ、106、1
10は多重化回路、107は出力端子、200はバッファ、201
は符号化器、202は選択・多重化回路、203は復号化器、
204は線形逆変換回路、208はクロック発生回路、12は伝
送路をそれぞれ示す。
FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a block diagram showing another embodiment of the present invention, and FIG. 3 is a block diagram showing details of a selecting / multiplexing circuit in FIG. FIG. 4, FIG. 4 is a diagram showing an example of the state of a buffer for storing input samples, FIG. 5 is a block diagram showing another embodiment of the present invention, FIG. 6 is a block diagram showing a conventional example, FIG. Is a diagram showing details of the bit distribution circuit I and the bit distribution circuit II in FIG. 6, FIG. 8 is a diagram showing another conventional example, and FIG. 9 is a detail of the normalization circuit and the denormalization circuit in FIG. FIG. In the figure, 1, 108 and 210 are input terminals, 100 1 , 100 2 ...
100 n is an encoder, 101 and 205 are storage devices, 102 1 , 102 2 ......
102 n is a decoder, 103 and 205 are error calculation circuits, 104 and 207 are error comparison circuits, 105, 109, 111 and 209 are selectors, 106 and 1
10 is a multiplexing circuit, 107 is an output terminal, 200 is a buffer, 201
Is an encoder, 202 is a selection / multiplexing circuit, 203 is a decoder,
204 denotes a linear inverse conversion circuit, 208 denotes a clock generation circuit, and 12 denotes a transmission path.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭55−57900(JP,A) 特開 昭59−94797(JP,A) 特開 昭61−112433(JP,A) 特開 昭62−224122(JP,A) (58)調査した分野(Int.Cl.7,DB名) G10L 19/00 - 19/14 H03M 3/00 - 11/00 H04B 14/00 - 14/08 JICSTファイル(JOIS)──────────────────────────────────────────────────続 き Continuation of front page (56) References JP-A-55-57900 (JP, A) JP-A-59-94797 (JP, A) JP-A-61-112433 (JP, A) JP-A-62 224122 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G10L 19/00-19/14 H03M 3/00-11/00 H04B 14/00-14/08 JICST file (JOIS )

Claims (28)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力信号の情報量を圧縮して伝送/蓄積す
るために該入力信号を適応変換符号化する際に、 ブロック長が指定されている場合には該指定されたブロ
ック長で符号化を行い、それ以外の場合には、複数のブ
ロック長で独立に符号化し、符号化された信号及び付随
する情報をそれぞれ独立に記憶すると同時に符号化され
た信号を前記符号化に対応したブロック長で独立に復号
化し、該復号化された信号と前記入力信号を用いてそれ
ぞれのブロック長に対応した複数の誤差を求め、該複数
の誤差を比較して最少の誤差を与える最適ブロック長を
決定し、該最適ブロック長に対応した前記記憶された符
号化信号及び付随する情報を選択し、前記最適ブロック
長と共に伝送/蓄積することを特徴とする適応変換符号
化の方法。
When an input signal is adaptively transformed and encoded in order to compress and transmit / store the information amount of the input signal, if the block length is designated, the code is encoded by the designated block length. Is performed, otherwise, independently coded with a plurality of block lengths, the coded signal and the accompanying information are stored independently, and the coded signal is simultaneously stored in the block corresponding to the coding. Independently decoding with a length, a plurality of errors corresponding to each block length are obtained using the decoded signal and the input signal, and the plurality of errors are compared to determine an optimal block length that gives a minimum error. Deciding, selecting the stored coded signal and associated information corresponding to the optimal block length, and transmitting / accumulating the signal together with the optimal block length.
【請求項2】入力信号の情報量を圧縮して伝送/蓄積す
るために該入力信号を適応変換符号化する際に、 ブロック長が指定されている場合には該指定されたブロ
ック長で符号化を行い、それ以外の場合には、入力信号
サンプルをバッファに蓄積し、一組の予め定められた数
のうちの最少の数をブロック長として符号化を行い、さ
らに符号化出力に対して復号化を行い、得られた復号化
出力と前記入力信号サンプルとを用いて誤差を求めて記
憶装置に格納し、以上の操作を符号化器と復号化器とを
時分割使用して前記1組の予め定められた数全部に対し
て小さい数から順に行い、前記記憶装置に格納された値
を比較し、前記1組の予め定められた数のうちで最少の
前記誤差を与える最適ブロック長を決定し、該最適ブロ
ック長に対応した前記符号化信号及び付随する情報を選
択し、前記最適ブロック長と共に伝送/蓄積することを
特徴とする適応変換符号化の方法。
2. An adaptive transform coding of an input signal for compressing and transmitting / accumulating an information amount of the input signal, and when a block length is designated, the code is encoded by the designated block length. Otherwise, the input signal samples are stored in a buffer, the minimum number of a set of predetermined numbers is encoded as a block length, and the encoded output is further encoded. Decoding is performed, an error is obtained by using the obtained decoded output and the input signal sample, and an error is obtained and stored in a storage device. The above operation is performed by time-division using an encoder and a decoder. Performing in order from the smallest number to all of the predetermined number of sets, comparing the values stored in the storage device, and selecting the optimal block length that gives the minimum error among the predetermined number of sets. Is determined, and the code corresponding to the optimum block length is determined. A method of adaptive transform coding, characterized in that a coded signal and associated information are selected and transmitted / stored together with the optimal block length.
【請求項3】入力信号の情報量を圧縮して伝送/蓄積す
るために該入力信号を適応変換符号化する際に、 ブロック長が指定されている場合には該指定されたブロ
ック長で符号化を行い、それ以外の場合には、入力信号
サンプルをバッファに蓄積し、一組の予め定められた数
のうちの最少の数をブロック長として線形変換と量子化
を少なくとも含む符号化を行い、さらに前記線形変換出
力に対して線形逆変換を行い、該線形逆変換で得られた
出力と前記入力信号サンプルとを用いて誤差を求めて記
憶装置に格納し、以上の操作を符号化器と復号化器とを
時分割使用して前記1組の予め定められた数全部に対し
て小さい数から順に行い、前記記憶装置に格納された値
を比較し、前記1組の予め定められた数のうちで最少の
前記誤差を与える最適ブロック長を決定し、該最適ブロ
ック長に対応した前記符号化信号及び付随する情報を選
択し、前記最適ブロック長と共に伝送/蓄積することを
特徴とする適応変換符号化の方法。
3. An adaptive transform coding of an input signal for compressing and transmitting / accumulating an information amount of the input signal, if a block length is designated, the code is encoded by the designated block length. Otherwise, store the input signal samples in a buffer and perform encoding including at least linear transformation and quantization with the minimum number of the set of predetermined numbers as the block length. Further, a linear inverse transform is performed on the linear transform output, an error is obtained using the output obtained by the linear inverse transform and the input signal sample, and the obtained error is stored in a storage device. And a decoder are used in a time-division manner in order from the smallest number to all of the set of predetermined numbers, comparing the values stored in the storage device, and comparing the set of predetermined numbers. The optimal block that gives the least error among the numbers A method for adaptive transform coding, comprising determining a lock length, selecting the coded signal corresponding to the optimum block length and accompanying information, and transmitting / storing the coded signal and the optimum information together with the optimum block length.
【請求項4】符号化の際に、入力信号に線形変換を施し
て変換係数を得、該変換係数を用いてビット配分を決定
し、該ビット配分に従って前記変換係数の量子化を行
い、該量子化された変換係数と前記ビット配分に用いた
変換係数を多重化して伝送/蓄積することを特徴とする
請求項1,2または3に記載の適応変換符号化の方法。
4. When encoding, an input signal is subjected to a linear transformation to obtain a transform coefficient, a bit allocation is determined using the transform coefficient, and the transform coefficient is quantized according to the bit allocation. 4. The adaptive transform coding method according to claim 1, wherein the quantized transform coefficient and the transform coefficient used for the bit allocation are multiplexed and transmitted / stored.
【請求項5】符号化の際に、入力信号をバッファに一時
蓄積した後に線形変換する、請求項4に記載の適応変換
符号化の方法。
5. The method according to claim 4, wherein the input signal is temporarily stored in a buffer and then subjected to linear conversion.
【請求項6】符号化の際に、バッファ内のサンプルの分
散を計算し、該分散を計算したサンプルを前記分散値で
正規化し、最適ブロック長に対応した前期分散値を選択
・多重化して伝送/蓄積する、請求項4に記載の適応変
換符号化の方法。
6. A method for calculating the variance of a sample in a buffer during encoding, normalizing the sample for which the variance has been calculated with the variance value, and selecting and multiplexing the variance value corresponding to the optimal block length. 5. The method of adaptive transform coding according to claim 4, wherein the method comprises transmitting / accumulating.
【請求項7】符号化の際に、変換係数の二乗値を複数の
グループに分割し、該グループ毎の前記二乗値の平均値
をもって代表値とする間引きを行い、補間して前記間引
き前と同数のサンプル値を近似的に再現し、該補間され
た値を用いてビット配分を決定し、最適ブロック長に対
応した前記間引かれた値を選択・多重化して伝送/蓄積
する、請求項4,5または6に記載の適応変換符号化の方
法。
7. At the time of encoding, a square value of a transform coefficient is divided into a plurality of groups, thinning is performed by setting an average value of the square values of each group as a representative value, and interpolation is performed to perform interpolation. The method according to claim 1, wherein the same number of sample values are approximately reproduced, bit allocation is determined using the interpolated values, and the thinned values corresponding to an optimum block length are selected / multiplexed and transmitted / stored. 7. The method for adaptive transform coding according to 4, 5, or 6.
【請求項8】符号化の際に、変換係数を量子化したとき
の二乗誤差が最少になるようにビット配分を決定する、
請求項4,5、6または7に記載の適応変換符号化の方
法。
8. A bit allocation is determined so as to minimize a square error when a transform coefficient is quantized during encoding.
A method for adaptive transform coding according to claim 4, 5, 6, or 7.
【請求項9】符号化の際に、付随する情報を量子化した
後、多重化して伝送/蓄積する、請求項4,5、6、7ま
たは8に記載の適応変換符号化の方法。
9. The adaptive transform encoding method according to claim 4, wherein, at the time of encoding, the associated information is quantized, multiplexed, and transmitted / stored.
【請求項10】復号化の際に、符号化信号を量子化され
た変換係数とビット配分に用いた変換係数に分離し、該
ビット配分に用いた変換係数を用いてビット配分を決定
し、該ビット配分に従って前記量子化された変換係数の
逆量子化を行い、該逆量子化された結果に線形逆変換を
施すことを特徴とする請求項8または9に記載の適応変
換符号化の方法。
10. At the time of decoding, an encoded signal is separated into quantized transform coefficients and transform coefficients used for bit allocation, and bit allocation is determined using the transform coefficients used for the bit allocation. 10. The adaptive transform coding method according to claim 8, wherein the quantized transform coefficient is inversely quantized according to the bit allocation, and the inversely quantized result is subjected to a linear inverse transform. .
【請求項11】復号化の際に、線形逆変換を施した後バ
ッファに格納し、1サンプルずつ出力する請求項10記載
の適応変換符号化の方法。
11. The adaptive transform coding method according to claim 10, wherein upon decoding, the data is subjected to a linear inverse transform, stored in a buffer, and output one sample at a time.
【請求項12】復号化の際に、符号化信号から変換係数
の分散値を分離し、該分散値で出力サンプルを逆正規化
することを特徴とする請求項11記載の適応変換符号化の
方法。
12. The adaptive transform coding according to claim 11, wherein at the time of decoding, a variance value of a transform coefficient is separated from the coded signal, and an output sample is denormalized with the variance value. Method.
【請求項13】復号化の際に、間引かれた変換係数の二
乗値を用いてビット配分を決定し、該ビット配分に従っ
て前記量子化された変換係数の逆量子化を行うことを特
徴とする請求項10、11または12に記載の適応変換符号化
の方法。
13. A decoding method, wherein bit allocation is determined using a square value of a thinned-out transform coefficient, and inverse quantization of the quantized transform coefficient is performed according to the bit allocation. 13. The method of adaptive transform coding according to claim 10, 11 or 12, which performs the adaptive transform coding.
【請求項14】復号化の際に、変換係数の量子化二乗誤
差を最小化するようなビット配分を用いて量子化された
変換係数の逆量子化を行うことを特徴とする請求項10、
11、12または13に記載の適応変換符号化の方法。
14. The decoding method according to claim 10, wherein, at the time of decoding, inverse quantization of the quantized transform coefficient is performed by using a bit allocation that minimizes a quantization square error of the transform coefficient.
14. The method for adaptive transform coding according to 11, 12, or 13.
【請求項15】復号化の際に、符号化信号から付随する
情報を分離し、逆量子化してから使用することを特徴と
する請求項10、11、12、13または14に記載の適応変換符
号化の方法。
15. The adaptive transform according to claim 10, wherein, at the time of decoding, the accompanying information is separated from the coded signal and dequantized before use. The encoding method.
【請求項16】入力信号を適応変換符号化する際に、複
数のブロック長で独立に符号化するための複数の符号化
器と、符号化された信号及び付随する情報をそれぞれ独
立に格納する記憶装置と、同時に前記符号化器で符号化
された信号を対応したブロック長で独立に復号化する複
数の復号化器と、該復号化器で復号された信号と前記入
力信号を用いてそれぞれのブロック長に対応した複数の
誤差を求める誤差計算回路と、該複数の誤差を比較して
最小の誤差を与える最適ブロック長を決定する誤差比較
回路と、該最適ブロック長に対応した前記符号化信号及
び付随する情報を前記記憶手段から選択する第1のセレ
クタと、該選択された符号化信号及び付随する情報と前
記最適ブロック長を多重化する第1の多重化回路と、前
記複数の符号化器の出力を入力とし、ブロック長を指定
する指定信号で制御される第2のセレクタと、該第2の
セレクタの出力と前記指定信号を多重化する第2の多重
化回路と、前記第1と第2の多重化回路出力を前記指定
信号で切換えて伝送/蓄積するための第3のセレクタを
少なくとも具備することを特徴とする適応変換符号化装
置。
16. An adaptive transform encoding method for an input signal, wherein a plurality of encoders for independently encoding with a plurality of block lengths, and an encoded signal and associated information are stored independently. A storage device, and a plurality of decoders for simultaneously decoding the signals coded by the coder independently with a corresponding block length, respectively using the signal decoded by the decoder and the input signal An error calculation circuit for obtaining a plurality of errors corresponding to the block lengths of the above, an error comparison circuit for comparing the plurality of errors to determine an optimum block length that gives a minimum error, and the encoding corresponding to the optimum block length A first selector for selecting a signal and accompanying information from the storage means, a first multiplexing circuit for multiplexing the selected coded signal and accompanying information and the optimum block length, and the plurality of codes; Chemist A second selector that receives an output as an input and is controlled by a designation signal that designates a block length, a second multiplexing circuit that multiplexes the output of the second selector and the designation signal, An adaptive transform coding apparatus comprising at least a third selector for transmitting / accumulating the output of the multiplexing circuit by switching the output of the multiplexing circuit with the designated signal.
【請求項17】入力信号を適応変換符号化する際に、入
力サンプルを蓄積するバッファと、該バッファの読み出
しタイミングを制御するための複数のクロックを発生す
るクロック発生器と、該クロック発生器から供給される
複数のクロックをブロック長を指定する指定信号に応じ
て選択して前記バッファに供給する第4のセレクタと、
1組の予め定められた数のうちの最小の数から順にブロ
ック長として与えられ入力信号の符号化を行う符号化器
と、符号化出力を復号化する復号化器と、該符号化器の
出力と前記入力信号サンプルとを用いて誤差を求める誤
差計算回路と、該誤差を格納する記憶装置と、該記憶装
置に格納された値を比較して前記1組の与えられた数を
最適ブロック長として出力する誤差比較回路と、前記1
組の与えられた数全てに対応する符号化信号及び付随す
る情報を順に受けて記憶し、最適ブロック長に従って選
択・多重化して伝送/蓄積する選択・多重化回路とを具
備することを特徴とする適応変換符号化装置。
17. A buffer for accumulating input samples when adaptively transforming and encoding an input signal, a clock generator for generating a plurality of clocks for controlling read timing of the buffer, and A fourth selector for selecting a plurality of clocks to be supplied according to a designation signal designating a block length and supplying the selected clock to the buffer;
An encoder for encoding an input signal given as a block length in order from the smallest number of a set of predetermined numbers, a decoder for decoding an encoded output, An error calculation circuit for obtaining an error by using an output and the input signal sample; a storage device for storing the error; and comparing the values stored in the storage device with the given number of the set to obtain an optimal block. An error comparison circuit for outputting as a length;
A selection / multiplexing circuit for sequentially receiving and storing the coded signals corresponding to all the given numbers of the set and the associated information, and selecting / multiplexing and transmitting / accumulating them according to the optimum block length. Adaptive transform coding device.
【請求項18】入力信号を適応変換符号化する際に、入
力サンプルを蓄積するバッファと、該バッファの読み出
しタイミングを制御するための複数のクロックを発生す
るクロック発生器と、該クロック発生器から供給される
複数のクロックをブロック長を指定する指定信号に応じ
て選択して前記バッファに供給する第4のセレクタと、
1組の予め定められた数のうちの最小の数から順にブロ
ック長として与えられ入力信号に対し少なくとも線形変
換と量子化を含む符号化を行う符号化器と、線形変換出
力を線形逆変換する線形逆変換回路と、該線形逆変換回
路の出力と前記入力信号サンプルとを用いて誤差を求め
る誤差計算回路と、該誤差を格納する記憶装置と、該記
憶装置に格納された値を比較して前記1組の与えられた
数を最適ブロック長として出力する誤差比較回路と、前
記1組の与えられた数全てに対応する符号化信号及び付
随する情報を順に受けて記憶し、最適ブロック長に従っ
て選択・多重化して伝送/蓄積する選択・多重化回路と
を具備することを特徴とする適応変換符号化装置。
18. A buffer for accumulating input samples when adaptively transforming and encoding an input signal, a clock generator for generating a plurality of clocks for controlling read timing of the buffer, and A fourth selector for selecting a plurality of clocks to be supplied according to a designation signal designating a block length and supplying the selected clock to the buffer;
An encoder that performs encoding including at least linear transformation and quantization on an input signal given as a block length in order from the smallest number of a set of predetermined numbers, and performs linear inverse transformation on the linear transformation output A linear inverse transform circuit, an error calculating circuit for obtaining an error using the output of the linear inverse transform circuit and the input signal sample, a storage device for storing the error, and comparing the values stored in the storage device. An error comparison circuit that outputs the set of given numbers as an optimal block length, and sequentially receives and stores encoded signals and associated information corresponding to all the set of given numbers, and stores the optimal block length. And a selecting / multiplexing circuit for selecting / multiplexing and transmitting / accumulating according to the following.
【請求項19】符号化器は、入力信号に線形変換を施し
て変換係数を得る線形変換回路と、該変換係数を用いて
ビット配分を決定するビット配分回路と、該ビット配分
に従って前記変換係数の量子化を行う量子化器とを有
し、多重化回路では最小の誤差を与える最適ブロック長
と量子化された変換係数とビット配分に用いた変換係数
を多重化して伝送/蓄積する請求項16,17または18記載
の適応変換符号化装置。
19. An encoder includes: a linear conversion circuit that performs a linear conversion on an input signal to obtain a conversion coefficient; a bit allocation circuit that determines a bit allocation using the conversion coefficient; And a multiplexing circuit for multiplexing and transmitting / accumulating an optimum block length giving a minimum error, a quantized transform coefficient, and a transform coefficient used for bit allocation. 16. The adaptive conversion encoding device according to 16, 17, or 18.
【請求項20】符号化器は、入力信号をバッファに一時
蓄積してから線形変換するするためのバッファを有す
る、請求項19に記載の適応変換符号化装置。
20. The adaptive transform coding apparatus according to claim 19, wherein the encoder has a buffer for temporarily storing the input signal in the buffer and then performing a linear conversion.
【請求項21】符号化器は、バッファ内のサンプルの分
散を計算し、該サンプルを前記分散値で正規化するため
の正規化回路を有し、該正規化回路からの信号も記憶・
選択・多重化して伝送/蓄積する、請求項20記載の適応
変換符号化装置。
21. An encoder has a normalization circuit for calculating a variance of a sample in a buffer, and normalizing the sample with the variance value, and also stores a signal from the normalization circuit.
21. The adaptive transform coding apparatus according to claim 20, wherein the adaptive transform coding apparatus selects / multiplexes and transmits / stores.
【請求項22】符号化器は、変換係数を二乗した後複数
のグループに分割し、該グループ毎の前記二乗値の平均
値をもって代表値とする間引きを行う間引き回路と、該
間引き回路の出力を補間して前記間引き前と同数のサン
プル値を近似的に再現する補間回路と、該補間された値
を用いてビット配分を決定するビット数最適化回路から
なるビット配分回路を有し、該間引き回路の出力も記憶
・選択・多重化して伝送/蓄積する、請求項19,20また
は21に記載の適応変換符号化装置。
22. An encoder for decimating a transform coefficient, dividing the group into a plurality of groups after squaring the transform coefficients, and decimating the average of the square values of each group as a representative value, and an output of the decimator. And a bit allocation circuit including a bit number optimization circuit that determines the bit allocation by using the interpolated value, and an interpolation circuit that approximately reproduces the same number of sample values as before the thinning by interpolating. 22. The adaptive transform coding apparatus according to claim 19, wherein the output of the thinning circuit is stored / selected / multiplexed and transmitted / stored.
【請求項23】符号化器は、最適ブロック長を量子化す
る第2の量子化器と、ビット配分に用いた情報を量子化
する第3の量子化器と、正規化回路の出力を量子化する
第4の量子化器とを有する、請求項19,20、21または22
に記載の適応変換符号化装置。
23. An encoder includes a second quantizer for quantizing an optimum block length, a third quantizer for quantizing information used for bit allocation, and a quantizer for quantizing an output of a normalizing circuit. And a fourth quantizer for transforming.
5. The adaptive transform coding apparatus according to claim 1.
【請求項24】復号化器は、符号化信号を受けて、量子
化された変換係数、最適ブロック長及びビット配分に用
いた変換係数を分離する分離回路と、該ビット配分に用
いた変換係数を用いてビット配分を決定する第2のビッ
ト配分回路と、該第2のビット配分回路の出力に従って
前記分離回路出力の量子化された変換係数を逆量子化す
る第1の逆量子化器と、前記最適ブロック長を用いて該
第1の逆量子化器出力に線形逆変換を施す第2の線形逆
変換回路とを少なくとも具備することを特徴とする請求
項22または23に記載の適応変換符号化装置。
24. A decoder which receives a coded signal, separates a quantized transform coefficient, an optimum block length and a transform coefficient used for bit allocation, and a transform coefficient used for the bit allocation. A second bit allocation circuit that determines a bit allocation by using the first and second bit allocation circuits, and a first inverse quantizer that inversely quantizes the quantized transform coefficient output from the separation circuit according to the output of the second bit allocation circuit. 24. An adaptive transform according to claim 22, further comprising at least a second linear inverse transform circuit for performing a linear inverse transform on the output of the first inverse quantizer using the optimal block length. Encoding device.
【請求項25】復号化器は、出力信号を格納するバッフ
ァを有し、該バッファに格納された値を1サンプルずつ
出力することを特徴とする請求項24に記載の適応変換符
号化装置。
25. The adaptive transform coding apparatus according to claim 24, wherein the decoder has a buffer for storing the output signal, and outputs the value stored in the buffer one sample at a time.
【請求項26】復号化器は、符号化信号から変換係数の
分散値を分離し、該分離された分散値で出力信号を逆正
規化する逆正規化回路を有することを特徴とする請求項
24または25に記載の適応変換符号化装置。
26. The decoder according to claim 17, further comprising a denormalization circuit for separating a variance value of a transform coefficient from the coded signal and denormalizing the output signal with the separated variance value.
26. The adaptive conversion encoding device according to 24 or 25.
【請求項27】復号化器は、間引かれた信号を補間する
第2の補間回路と、該第2の補間回路において補間され
た値を用いてビット数の最適化を行うビット数最適化回
路よりなる第2のビット配分回路を有し、該ビット配分
に従って前記量子化された変換係数の逆量子化を行うこ
とを特徴とする請求項24,25または26に記載の適応変換
符号化装置。
27. A decoder, comprising: a second interpolator for interpolating a thinned signal; and a bit number optimizer for optimizing the number of bits using a value interpolated in the second interpolator. 27. The adaptive transform coding apparatus according to claim 24, further comprising a second bit allocation circuit comprising a circuit, and performing inverse quantization of the quantized transform coefficient according to the bit allocation. .
【請求項28】復号化器は、最適ブロック長を逆量子化
する第2の逆量子化器と、ビット配分に用いた変換係数
を逆量子化する第3の逆量子化器と、逆正規化に用いる
分散値を逆量子化する第4の逆量子化器とを有すること
を特徴とする請求項24,25,26または27に記載の適応変換
符号化装置。
28. A decoder, comprising: a second inverse quantizer for inversely quantizing an optimal block length; a third inverse quantizer for inversely quantizing transform coefficients used for bit allocation; 28. The adaptive transform coding apparatus according to claim 24, further comprising: a fourth inverse quantizer for inversely quantizing a variance value used for quantization.
JP01174636A 1989-07-05 1989-07-05 Method and apparatus for adaptive transform coding Expired - Lifetime JP3092124B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01174636A JP3092124B2 (en) 1989-07-05 1989-07-05 Method and apparatus for adaptive transform coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01174636A JP3092124B2 (en) 1989-07-05 1989-07-05 Method and apparatus for adaptive transform coding

Publications (2)

Publication Number Publication Date
JPH0338700A JPH0338700A (en) 1991-02-19
JP3092124B2 true JP3092124B2 (en) 2000-09-25

Family

ID=15982058

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01174636A Expired - Lifetime JP3092124B2 (en) 1989-07-05 1989-07-05 Method and apparatus for adaptive transform coding

Country Status (1)

Country Link
JP (1) JP3092124B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5227261A (en) * 1991-10-15 1993-07-13 Eveready Battery Company, Inc. Cylindrical electrochemical cells with a diaphragm seal
US7024355B2 (en) 1997-01-27 2006-04-04 Nec Corporation Speech coder/decoder

Also Published As

Publication number Publication date
JPH0338700A (en) 1991-02-19

Similar Documents

Publication Publication Date Title
US5235623A (en) Adaptive transform coding by selecting optimum block lengths according to variatons between successive blocks
TW533405B (en) Perceptual audio signal compression system and method
EP2267698B1 (en) Entropy coding by adapting coding between level and run-length/level modes.
EP0884850A2 (en) Scalable audio coding/decoding method and apparatus
US5263088A (en) Adaptive bit assignment transform coding according to power distribution of transform coefficients
KR940023044A (en) Apparatus for recording and / or playing or transmitting and / or receiving compressed data
JP3344944B2 (en) Audio signal encoding device, audio signal decoding device, audio signal encoding method, and audio signal decoding method
JP2005524300A (en) Adaptive method and system for mapping parameter values to codeword indexes
JP3811110B2 (en) Digital signal encoding method, decoding method, apparatus, program and recording medium
JP3092124B2 (en) Method and apparatus for adaptive transform coding
JPH0969781A (en) Audio data encoder
JP2523286B2 (en) Speech encoding and decoding method
JP2890523B2 (en) Method and apparatus for adaptive transform coding
JP2890522B2 (en) Method and apparatus for adaptive transform coding
JP2778128B2 (en) Method and apparatus for adaptive transform coding
JP2638208B2 (en) Method and apparatus for adaptive transform coding / decoding
JP2638209B2 (en) Method and apparatus for adaptive transform coding
JP2569842B2 (en) Method and apparatus for adaptive transform coding
JP4351684B2 (en) Digital signal decoding method, apparatus, program, and recording medium
JP3010651B2 (en) Method and apparatus for adaptive transform coding
JP2569850B2 (en) Method and apparatus for adaptive transform coding
JP2923996B2 (en) Method and apparatus for adaptive transform coding
JP2778166B2 (en) Method and apparatus for adaptive transform coding
CA2105387A1 (en) Variable bit rate speech encoder
JP3010652B2 (en) Method and apparatus for adaptive transform coding

Legal Events

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

Free format text: PAYMENT UNTIL: 20070728

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20080728

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090728

Year of fee payment: 9

EXPY Cancellation because of completion of term