JP3021520B2 - Data compression encoder - Google Patents

Data compression encoder

Info

Publication number
JP3021520B2
JP3021520B2 JP2062717A JP6271790A JP3021520B2 JP 3021520 B2 JP3021520 B2 JP 3021520B2 JP 2062717 A JP2062717 A JP 2062717A JP 6271790 A JP6271790 A JP 6271790A JP 3021520 B2 JP3021520 B2 JP 3021520B2
Authority
JP
Japan
Prior art keywords
block
data
supplied
filter
overflow
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
JP2062717A
Other languages
Japanese (ja)
Other versions
JPH03265308A (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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2062717A priority Critical patent/JP3021520B2/en
Publication of JPH03265308A publication Critical patent/JPH03265308A/en
Application granted granted Critical
Publication of JP3021520B2 publication Critical patent/JP3021520B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、例えばDSP(デジタル信号プロセッサ)等
に用いて好適な、PCM信号のデータ圧縮符号化装置に関
するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a PCM signal data compression encoding apparatus suitable for use in, for example, a DSP (Digital Signal Processor).

〔発明の概要〕[Summary of the Invention]

本発明は、入力信号を一定サンプル毎にブロック化し
各ブロック毎の最大値に応じたレンジ情報に基づき再量
子化を施すと共にノイズシェーピング処理を施すように
したデータ圧縮符号化装置において、上記ノイズシェー
ピング処理によりオーバーフローが生じた場合に上記レ
ンジ情報を制御することにより、オーバーフローを解消
することができ、再生時等におけるSN比の劣化を防止す
ることができるようなデータ圧縮符号化装置であり、ま
た上記レンジ情報として上記ブロック内最大値に対して
所定の重み付けをした値を用い、上記オーバーフロー時
に上記重み付けの紙を増加させることにより上述と同様
の効果を得るようなデータ圧縮符号化装置である。
The present invention is directed to a data compression encoding apparatus which blocks an input signal for each fixed sample, performs requantization based on range information corresponding to the maximum value of each block, and performs noise shaping processing. By controlling the range information when an overflow occurs due to processing, it is possible to eliminate the overflow and to prevent the S / N ratio from deteriorating during reproduction or the like. This is a data compression encoding device that uses a value obtained by weighting the maximum value in the block as the range information in a predetermined manner and increases the weight of the paper at the time of the overflow to obtain the same effect as described above.

〔従来の技術〕[Conventional technology]

一般に、供給されるPCM信号のビット数を圧縮して伝
送ビットレートを低減する方法として、例えば複数サン
プル毎のブロック単位で最も高い圧縮率の得られるフィ
ルタを予め準備された複数のフィルタのうちから選択す
るようないわゆるフィルタ選択型のビット圧縮符号化の
システムが知られている。
In general, as a method of reducing the transmission bit rate by compressing the number of bits of the supplied PCM signal, for example, a filter that can obtain the highest compression ratio in block units of a plurality of samples is selected from among a plurality of filters prepared in advance. There is known a so-called filter-selection type bit compression encoding system for selection.

このようなフィルタ選択型のビット圧縮符号化のシス
テムには、例えば16サンプルを1ブロックとした入力信
号が該ブロック毎に供給される。このブロック毎の入力
信号は、上記複数のフィルタである、例えばストレート
PCMを出力する0次フィルタ,1次差分を出力する1次差
分フィルタ及び2次差分を出力する2次差分フィルタの
3つのフィルタにそれぞれ供給される。そして、各フィ
ルタ毎にブロック内の最大絶対値が検出され、このブロ
ック内最大絶対値が最小となるフィルタを介した16ビッ
トのブロックデータが選択され量子化器に供給される。
この量子化器には、上記ブロック内最大絶対値に基づき
検出されたレンジ情報が供給されており、該量子化器は
このレンジ情報に基づき上記供給された16ビットのブロ
ックデータの上位ビットからみて、最初に“1"がたった
ビットから例えば4ビットを取り出す、いわゆる再量子
化を行い出力する。
To such a filter selection type bit compression encoding system, for example, an input signal having 16 blocks as one block is supplied for each block. The input signal for each block is a plurality of filters, for example, a straight
The signals are supplied to three filters: a zero-order filter that outputs PCM, a first-order difference filter that outputs a first-order difference, and a second-order difference filter that outputs a second-order difference. Then, the maximum absolute value in the block is detected for each filter, and the 16-bit block data that has passed through the filter that minimizes the maximum absolute value in the block is selected and supplied to the quantizer.
The quantizer is supplied with range information detected based on the maximum absolute value in the block, and the quantizer sees from the upper bits of the supplied 16-bit block data based on this range information. First, for example, 4 bits are extracted from the bits for which “1” has just been set, that is, so-called requantization is performed and output.

なお、上記再量子化の際に量子化器の入力と出力との
差分を該量子化器の入力側に帰還して新たに量子化器に
供給されるデータと加算するいわゆるノイズシェーピン
グ処理が行われている。そして、上記出力の際には該記
録されるブロックのデータが介したフィルタを示すフィ
ルタ情報、また、該データのレンジを示すレンジ情報等
も上記データと共に出力され、デコーダ側ではこれらの
情報に応じてデータの再生が行われる。
At the time of the requantization, a so-called noise shaping process is performed in which the difference between the input and output of the quantizer is fed back to the input side of the quantizer and added to data newly supplied to the quantizer. Have been done. At the time of the output, filter information indicating a filter through which the data of the recorded block has passed, range information indicating a range of the data, and the like are output together with the data, and the decoder side responds to the information. Data is reproduced.

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

しかし、上述の従来のデータ圧縮符号化装置は、上記
ノイズシェーピングにより帰還されたデータを量子化器
の入力側において新たなデータと加算することによって
該加算されたデータがレンジ以上のデータとなってしま
う、いわゆるオーバーフローを生じた場合に、該オーバ
ーフローの生じたデータをそのまま出力してしまうた
め、再生側におけるSN比の悪化につながる。
However, the above-described conventional data compression encoding apparatus adds the data fed back by the noise shaping to new data on the input side of the quantizer, so that the added data becomes data beyond the range. When an overflow occurs, the data in which the overflow occurs is output as it is, which leads to a deterioration in the SN ratio on the reproducing side.

このオーバーフローを防止するため、上記ブロック内
最大値に所定の係数を乗じるいわゆる重み付けを行い、
例えば本来取り出すべきビットよりも1ビット上位のビ
ットからデータの取り出しを行うようにしているが、こ
の重み付けは常に行われているため、エンコードされる
データの値が常に小さめとなり、やはり再生時のSN比を
悪くしている。
In order to prevent this overflow, a so-called weighting is performed by multiplying the maximum value in the block by a predetermined coefficient,
For example, data is taken out from the bit one bit higher than the bit that should be taken out. However, since this weighting is always performed, the value of the encoded data is always smaller, and the SN at the time of reproduction is also The ratio is worse.

また、上記重み付けを行うとノイズシェーピングによ
り帰還されるデータの値が多少大きくなり、オーバーフ
ローを生じやすい。なお、これは正弦波等のように入力
のスペクトル分布が一様でない入力信号程影響が大き
い。
Further, when the weighting is performed, the value of the data fed back by the noise shaping is slightly increased, and the overflow is likely to occur. Note that this has a greater effect on an input signal whose input spectrum distribution is not uniform, such as a sine wave.

本発明は、上述のような課題に鑑みて成されたもので
あり、オーバーフローを解消し該オーバーフローの生じ
たデータを出力することがなく、デコード時におけるSN
比の劣化を防止することができるようなデータ圧縮符号
化装置の提供を目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problem, and eliminates an overflow and does not output data in which the overflow has occurred.
It is an object of the present invention to provide a data compression encoding device capable of preventing the deterioration of the ratio.

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

本発明は入力信号を一定サンプル毎にブロック化し各
ブロック毎の最大値に応じたレンジ情報に基づき再量子
化を施すと共にノイズシェーピング処理を施すようにし
たデータ圧縮符号化装置において、上記ノイズシェーピ
ング処理によりオーバーフローが生じた場合に上記レン
ジ情報を制御することを特徴として上述の課題を解決
し、また、上記レンジ情報として上記ブロック内最大値
に対して所定の重み付けをした値を用い、上記オーバー
フロー時に上記重み付けの値を増加させることを特徴と
して上述の課題を解決する。
The present invention relates to a data compression encoding apparatus which blocks an input signal for each fixed sample, performs requantization based on range information corresponding to the maximum value of each block, and performs noise shaping processing. Solves the above-mentioned problem by controlling the range information when an overflow occurs, and also uses a value obtained by weighting the maximum value in the block as a predetermined value as the range information. The above problem is solved by increasing the value of the weight.

〔作用〕[Action]

本発明にかかるデータ圧縮符号化装置は、上記ノイズ
シェーピングでオーバーフローが生じた場合にレンジ情
報を制御することができ、これは、上記ブロック内最大
値に対して所定の重み付けをした値を用い、上記オーバ
ーフロー時に上記重み付けの値を増加させることにより
簡単にできる。
The data compression encoding device according to the present invention can control range information when an overflow occurs in the noise shaping, and this uses a value obtained by weighting the maximum value in the block with a predetermined weight. This can be simplified by increasing the value of the weight at the time of the overflow.

〔実施例〕〔Example〕

以下、本発明にかかるデータ圧縮符号化装置の実施例
について図面を参照しながら説明する。
Hereinafter, an embodiment of a data compression encoding apparatus according to the present invention will be described with reference to the drawings.

第1図は本発明にかかるデータ圧縮符号化装置の実施
例の各機能をブロック的に示した機能ブロック図であ
る。
FIG. 1 is a functional block diagram showing functions of an embodiment of a data compression encoding apparatus according to the present invention in a block manner.

この第1図において、オーディオデータ発生ブロック
1は、任意の点で読み出しを停止でき、また、該停止し
た点から瞬時に再生が行えるようなものであり、例えば
CD(コンパクトディスク)プレーヤやDAT(デジタルオ
ーディオテープレコーダ)等のデジタルデータを発生す
る機器及びメモリ等を用いて構成できる。
In FIG. 1, the audio data generation block 1 is such that reading can be stopped at an arbitrary point and reproduction can be instantaneously performed from the stopped point.
It can be configured using a device that generates digital data such as a CD (compact disk) player or a DAT (digital audio tape recorder), a memory, and the like.

このオーディオデータ発生ブロック1からは、読み出
し制御回路22からの制御信号により読み出しが制御さ
れ、例えば1サンプルを16ビット(1ワード)とし、16
サンプルで1ブロックとしたオーディオPCM信号が発生
されており、該オーディオPCM信号は後に説明するスイ
ッチ2を介してバッファ3に記憶されると共に予測器4
内の0次フィルタ5,1次フィルタ6,2次フィルタ7及びカ
ウンタ8に供給される。上記エンコードフィルタは、い
わゆる差分フィルタの構成を有しており、上記0次フィ
ルタ5に供給された上記1ブロックのオーディオPCM信
号は、差分をとられることなくそのまま、いわゆるスト
レートPCM信号としてレンジディテクタ9に供給され
る。
Reading from the audio data generating block 1 is controlled by a control signal from a reading control circuit 22. For example, one sample is converted into 16 bits (1 word),
An audio PCM signal is generated as one block in the sample. The audio PCM signal is stored in a buffer 3 via a switch 2 described later, and is also stored in a predictor 4.
Are supplied to the zero-order filter 5, primary filter 6, secondary filter 7, and counter 8. The encode filter has a configuration of a so-called difference filter. The audio PCM signal of one block supplied to the zero-order filter 5 is used as a so-called straight PCM signal as it is without any difference. Supplied to

このレンジディテクタ9において、供給されたストレ
ートPCM信号の1ブロック内のブロック内最大絶対値が
検出され、該ブロック内最大絶対値は比較(最小値検
出)ブロック14に、またブロックの全データはセレクタ
15に供給される。
In the range detector 9, the maximum absolute value in one block of the supplied straight PCM signal is detected, the maximum absolute value in the block is compared to a comparison (minimum value detection) block 14, and all data of the block is selected by a selector.
Supplied to 15.

次に、上記1次フィルタ6に供給された1ブロックの
オーディオPCM信号は、該ブロック内の1次差分がとら
れ、この1次差分データがレンジディテクタ10に供給さ
れる。レンジディテクタ10では、1ブロックの1次差分
データの中から、ブロック内最大絶対値が検出される。
この1次差分データのブロック内最大絶対値は、重み付
け器12に供給され、上記1ブロックの1次差分データは
セレクタ15に供給される。そして、上記重み付け器12に
供給された1次差分データのブロック内最大絶対値は、
所定の係数(例えば1.5)が掛けられる、いわゆる重み
付けがなされ比較ブロック14に供給される。
Next, the audio PCM signal of one block supplied to the primary filter 6 has a primary difference in the block, and the primary difference data is supplied to the range detector 10. The range detector 10 detects the maximum absolute value in the block from the primary difference data of one block.
The maximum absolute value of the primary difference data in the block is supplied to the weighting unit 12, and the primary difference data of the one block is supplied to the selector 15. The maximum absolute value in the block of the primary difference data supplied to the weighter 12 is
So-called weighting, which is multiplied by a predetermined coefficient (for example, 1.5), is supplied to the comparison block 14.

次に、上記2次フィルタ7に供給された1ブロックの
オーディオPCM信号は、該ブロック内の2次差分がとら
れレンジディテクタ11に供給される。レンジディテクタ
11では、供給された1ブロックの2次差分データの中か
らブロック内最大絶対値が検出される。この2次差分デ
ータのブロック内最大絶対値は重み付け器13に供給さ
れ、上記1ブロックの2次差分データはセレクタ15に供
給される。そして、重み付け器13に供給された2次差分
データのブロック内最大絶対値は、所定の係数(例えば
1.5)が掛けられる、いわゆる重み付けがなされ比較ブ
ロック14に供給される。
Next, the audio PCM signal of one block supplied to the secondary filter 7 is subjected to a second-order difference in the block and supplied to the range detector 11. Range detector
In step 11, the maximum absolute value in the block is detected from the supplied secondary difference data of one block. The maximum absolute value of the secondary difference data in the block is supplied to the weighting unit 13, and the secondary difference data of the one block is supplied to the selector 15. Then, the maximum absolute value in the block of the secondary difference data supplied to the weighting unit 13 is determined by a predetermined coefficient (for example,
The weight is multiplied by 1.5), and is supplied to the comparison block 14.

比較ブロック14は、上記供給されたストレートPCMの
データのブロック内最大絶対値、重み付けのなされた1
次差分データのブロック内最大絶対値及び重み付けのな
された2次差分データのブロック内最大絶対値を比較し
て値が最小のものを検出し、この検出された最小値のレ
ンジをレンジ情報として出力すると共に、該最小値が上
記3つのフィルタのうち、どのフィルタを介したかを検
出してこれをフィルタ情報として出力する。
The comparison block 14 has a maximum absolute value in the block of the supplied straight PCM data,
The maximum absolute value in the block of the next difference data and the maximum absolute value in the block of the weighted secondary difference data are compared to detect the one with the smallest value, and the range of the detected minimum value is output as range information. At the same time, it detects which of the three filters the minimum value has passed, and outputs this as filter information.

上記レンジ情報は量子化器18に供給されると共にマル
チプレクサ17に供給され、フィルタ情報はセレクタ15及
びノイズシェーピング回路19に供給されると共にマルチ
プレクサ17に供給される。
The range information is supplied to the quantizer 18 and the multiplexer 17, and the filter information is supplied to the selector 15 and the noise shaping circuit 19 and to the multiplexer 17.

上記セレクタ15は、比較ブロック14からのフィルタ情
報により指定されたフィルタを介したオーディオPCM信
号を、例えばスイッチを切り換える等して選択し、この
選択した1ブロックのオーディオPCM信号を量子化器18
に供給する。
The selector 15 selects an audio PCM signal through a filter specified by the filter information from the comparison block 14 by, for example, switching a switch, and converts the selected one block of audio PCM signal into a quantizer 18.
To supply.

このように、セレクタ15は上記3つのフィルタを介し
たオーディオPCM信号の中から最適なものを選択して量
子化器18に供給するが、上記カウンタ8は供給されたオ
ーディオPCM信号のブロック数をカウントしており、所
定のカウント数(例えば数ブロック〜数十ブロック)に
達した時に上記各重み付け器12,13にカウント到達信号
を供給する。
As described above, the selector 15 selects an optimum one from the audio PCM signals passed through the three filters and supplies the selected signal to the quantizer 18. The counter 8 determines the number of blocks of the supplied audio PCM signal. Counting is performed, and when a predetermined count number (for example, several blocks to several tens of blocks) is reached, a count reaching signal is supplied to each of the weighters 12 and 13.

各重み付け器12,13は上記カウント到達信号が供給さ
れると、例えば1.5であった重み付け係数を十分大きく
(例えば100等)する。上述のように、セレクタ15は上
記供給された3つのオーディオPCM信号の中から最小の
ブロック内最大絶対値を有するブロックを選択するた
め、必然的に0次フィルタ5を介したストレートPCM信
号のブロックが選択されることになり、最悪の場合でも
上記一定ブロック数カウント数には強制的に該ストレー
トPCM信号のブロックを配置することができる。
When the count arrival signal is supplied, each of the weighters 12 and 13 increases the weighting coefficient, which was 1.5, for example, to a sufficiently large value (for example, 100). As described above, since the selector 15 selects the block having the largest absolute value in the minimum block from the three supplied audio PCM signals, the selector 15 necessarily blocks the straight PCM signal through the zero-order filter 5. Is selected, and even in the worst case, the block of the straight PCM signal can be forcibly arranged in the fixed block number count.

ここで、上記一定の間隔(一定ブロック数カウント)
をNとし、1ブロックのサンプル数をnサンプル(例え
ばCDIではn=28,APUではn=16)とすると、必ずnNサ
ンプル毎に0次フィルタ9が選択されることが保証さ
れ、BRRエンコードされたデータを任意の点から再生す
る場合には、最長でもnNts[sec](ts=サンプリング
間隔[sec])後には完全な再生音を得ることができ
る。具体的には、fs=32kHz,1ブロックを16サンプルと
すると1ブロックに要する時間は約0.5[msec]とな
り、数十ブロック毎にストレートPCM信号を配置したと
しても20〜30s [msec]程度の間隔で配置することがで
きる。この間隔は人間の聴覚上認識できるものではない
ため問題とはならない。
Here, the constant interval (constant block count)
Is N, and the number of samples in one block is n (for example, n = 28 in CDI and n = 16 in APU), it is guaranteed that the 0th-order filter 9 is always selected for every nN samples, and BRR encoding is performed. and when reproducing data from an arbitrary point, after nNt s [sec] at the longest (t s = sampling interval [sec]) can obtain a complete reproduced sound. Specifically, f s = 32 kHz, 1 when the block is referred to as 16 samples the time required for one block of about 0.5 [msec], and the 20 to 30 even if arranged straight PCM signal every several tens blocks s [msec] They can be arranged at intervals of the order. This interval is not a problem because it is not recognizable by human hearing.

なお、上記ストレートPCM信号のブロックが配置され
るまでの間は多少のエラーを生じることとなるが、スタ
ート時から上記nNts [sec]の間データをマスクをして
おいてもよい。
The above until the block of the straight PCM signal is disposed is so that the resulting some errors may be allowed to mask data during the nNt s [sec] from the start.

このように選択され上記量子化器18に供給された16ビ
ットのオーディオPCM信号は、上記予測レンジ適応回路1
4から供給されるレンジ情報に応じて、上位ビットから
みて16ビット中最初に“1"がたったビットから数えて例
えば4ビットが取り出される、いわゆる再量子化が施さ
れノイズシェーピング回路19を介してマルチプレクサ17
に供給される。上記ノイズシェーピング路19は、量子化
器18の入力と出力との誤差分である、いわゆる量子化誤
差を上記予測レンジ適応回路14からのフィルタ情報に応
じて量子化器18の入力に帰還している。すなわち、上記
再量子化の際に取り出された4ビット以降の下位ビット
のデータは、量子化器18の入力に帰還され、新たに該量
子化器18に供給されるデータと加算される。
The 16-bit audio PCM signal thus selected and supplied to the quantizer 18 is used for the prediction range adaptive circuit 1
According to the range information supplied from 4, for example, 4 bits are taken out from the first 16 bits of the 16 bits as viewed from the upper bits, for example, 4 bits are extracted. Multiplexer 17
Supplied to The noise shaping path 19 feeds back a so-called quantization error, which is an error between an input and an output of the quantizer 18, to the input of the quantizer 18 according to the filter information from the prediction range adaptation circuit 14. I have. That is, the data of the lower 4 bits extracted at the time of the requantization is fed back to the input of the quantizer 18 and added to the data newly supplied to the quantizer 18.

ここで、上述のように上記量子化器18はレンジ情報に
より、上位ビットからみて16ビット中最初に“1"がたっ
たビットから数えて例えば4ビットを出力するが、ノイ
ズシェーピングにより帰還された量子化誤差と新たなデ
ータが加算されることによりけた上がりが生じ、レンジ
情報により指定された取り出しビットよりも上位のビッ
トに“1"が移行してしまう、いわゆるオーバーフローを
生ずる場合がある。
Here, as described above, the quantizer 18 outputs, for example, 4 bits counting from the first bit of “1” in the 16 bits as viewed from the upper bits, based on the range information. The addition of the conversion error and the new data causes a carry, which may cause a so-called overflow in which "1" shifts to a bit higher than the extracted bit specified by the range information.

このオーバーフローを生ずると、再生の際に直流誤差
成分が生じ良好な再生ができない等の問題があるため、
通常、これを防止するために上記重み付け器12,13にお
いて、1次フィルタ及び2次フィルタを介したブロック
内最大絶対値に例えば1.5の係数をかけ重み付けを行
い、本来取り出すべきビットよりも例えば1ビット上位
のビットからデータの取り出しを行っている。
When this overflow occurs, there is a problem that a DC error component occurs during reproduction and good reproduction cannot be performed.
Usually, in order to prevent this, in the weighters 12 and 13, the maximum absolute value in the block through the primary filter and the secondary filter is weighted by multiplying the maximum absolute value in the block by, for example, 1.5, for example, by one bit rather than the bit to be originally extracted Data is extracted from the higher bit.

しかし、上記重み付けを行ってもオーバーフローを生
じる場合がある。
However, even if the above weighting is performed, an overflow may occur.

そこで、該オーバーフローが生じた時点でノイズシェ
ーピング回路19はスイッチ2,バッファ3,マスク回路21及
び読み出し制御回路22にオーバーフロー量及び現在のフ
ィルタ番号(0次,1次または2次フィルタ)であるオー
バーフロー情報を供給すると共に、該オーバーフローの
生じたオーディオPCM信号の出力を一旦停止する。
Therefore, when the overflow occurs, the noise shaping circuit 19 sends the switch 2, the buffer 3, the mask circuit 21 and the read control circuit 22 to the overflow amount and the current filter number (0-order, primary or secondary filter). The information is supplied, and the output of the audio PCM signal in which the overflow has occurred is temporarily stopped.

このオーバーフロー情報が供給されるとマルチプレク
サ17はデータの出力を停止し、読み出し制御回路22はオ
ーディオデータ発生回路1からのデータの読み出しを停
止し、スイッチ2は選択端子2cを被選択端子2aから被選
択端子2bに切り換え、一旦オーディオデータ発生回路1
からのデータの取り入れを停止する。上述のようにバッ
ファ3には、数ブロック分のオーディオデータが記憶さ
れており、該バッファ3は上記オーバーフロー情報によ
り、該オーバーフローの生じたブロックのオーディオPC
M信号を再度予測器4に供給するいわゆるリトライが行
われる。
When the overflow information is supplied, the multiplexer 17 stops outputting data, the read control circuit 22 stops reading data from the audio data generation circuit 1, and the switch 2 switches the selection terminal 2c from the selection terminal 2a to the selection terminal 2a. Switch to the selection terminal 2b and temporarily switch to the audio data generation circuit 1
Stop taking data from. As described above, several blocks of audio data are stored in the buffer 3, and the buffer 3 stores the audio PC of the block in which the overflow has occurred according to the overflow information.
A so-called retry of supplying the M signal to the predictor 4 again is performed.

このリトライが開始されるとマスク回路21は、上記供
給されたオーバーフロー情報から現在のフィルタ番号を
知り、このフィルタに接続されている重み付け器に係数
インクリメント信号を供給する。この係数インクリメン
ト信号が供給された重み付け器は、今まで係数値が1.5
であったものを、例えば1.6にする等のように係数値を
インクリメントする。上記再度供給されたオーバーフロ
ーを生じたブロックのオーディオPCM信号は、上述のよ
うに各フィルタを介し各レンジディテクタ9,10,11に供
給され、それぞれブロック内最大絶対値が検出され、ま
た、各データはセレクタ15に供給される。この検出され
たブロック内最大絶対値のうち、レンジディテクタ9を
介したストレートPCM信号のブロック内最大絶対値は、
そのまま比較ブロック14に供給されるが、レンジディテ
クタ10を介した1次差分データのブロック内最大絶対値
は重み付け器12に、レンジディテクタ11を介した2次差
分データのブロック内最大絶対値は重み付け器14に供給
される。上述のように上記オーバーフローを生じる原因
となった上記どちらかの重み付け器の係数値はインクリ
メントされており、上記各ブロック内最大絶対値はそれ
ぞれ係数値が乗じられ重み付けされ比較ブロック14に供
給される。比較ブロック14は、このインクリメントされ
た係数により再度重み付けのされたブロック内最大絶対
値を含む各ブロック内最大絶対値をそれぞれ比較して値
が最小のものを検出し、この検出結果に基づいて再度量
子化器18にレンジ情報を供給する。このレンジ情報に基
づいて量子化器18は、上述のように再量子化を行う。そ
して、この再量子化を行いオーバーフローが解消された
場合、該再量子化によりオーバーフローが解消されたデ
ータの出力が行われると共に、マスク回路21は上記イン
クリメントした重み付け器の係数値を基の係数値に戻
し、スイッチ2は選択端子2cを被選択端子2aに切り換え
新たなデータの取り込みを再開する。
When the retry is started, the mask circuit 21 knows the current filter number from the supplied overflow information, and supplies a coefficient increment signal to a weighter connected to the filter. The weighter supplied with the coefficient increment signal has a coefficient value of 1.5
Is increased, for example, to 1.6. The re-supplied audio PCM signal of the block in which overflow has occurred is supplied to each of the range detectors 9, 10, and 11 through the respective filters as described above, and the maximum absolute value in the block is detected. Is supplied to the selector 15. Among the detected maximum absolute values in the block, the maximum absolute value in the block of the straight PCM signal via the range detector 9 is:
The maximum absolute value in the block of the primary difference data via the range detector 10 is weighted by the weighter 12 and the maximum absolute value in the block of the secondary difference data via the range detector 11 is weighted. Is supplied to the vessel 14. As described above, the coefficient value of one of the weighters that caused the overflow is incremented, and the maximum absolute value in each of the blocks is multiplied by the coefficient value and weighted and supplied to the comparison block 14. . The comparison block 14 compares the maximum absolute value in each block including the maximum absolute value in the block re-weighted by the incremented coefficient to detect the one with the smallest value, and based on the detection result, The range information is supplied to the quantizer 18. Based on this range information, the quantizer 18 performs requantization as described above. When the overflow is eliminated by performing the requantization, the data in which the overflow has been eliminated by the requantization is output, and the mask circuit 21 calculates the coefficient value based on the incremented coefficient value of the weighting device. And the switch 2 switches the selection terminal 2c to the selected terminal 2a and restarts the fetching of new data.

なお、このリトライはオーバーフローが解消されるま
で行われ、該リトライが行われたにもかかわらずオーバ
ーフローが生じてしまった場合は、再度上記重み付けの
係数値のインクリメントを行う。
Note that this retry is performed until the overflow is eliminated, and if an overflow occurs despite the retry, the weighting coefficient value is incremented again.

このように、再量子化された4ビットのデータは、マ
ルチプレクサ17に供給される。
The 4-bit data thus requantized is supplied to the multiplexer 17.

マルチプレクサ17は、上記供給されたデータ及び上述
のレンジ情報,フィルタ情報を出力する。これらのデー
タ及び情報は出力端子20を介して取り出される。
The multiplexer 17 outputs the supplied data and the above-described range information and filter information. These data and information are taken out via the output terminal 20.

上記出力端子20から取り出される出力データとして
は、例えば1ブロック分が第2図に示すようになってお
り、1バイトのヘッダ情報(圧縮に関するパラメータ情
報あるいは付属情報等)RFと、8バイトのサンプル用デ
ータDA0〜DB3で構成されている。上記ヘッダ情報RFは4
ビットのレンジ情報と、2ビットの上記モード選択情報
あるいはフィルタ選択情報と、それぞれ1ビットの2つ
のフラグ情報と、例えばループの有無を示す情報LI及び
波形の終端ブロック(エンドブロック)か否かを示す情
報EIとで構成されている。上述のように1サンプルのデ
ータは、例えば16ビットから4ビットに圧縮されてお
り、上記データDA0〜DB3中には16サンプル分の4ビット
データDA0H〜DB3Lが含まれている。
As output data taken out from the output terminal 20, one block, for example, is as shown in FIG. 2. One byte of header information (parameter information related to compression or attached information) RF and eight bytes of sample data Data D A0 to D B3 . The header information RF is 4
Bit range information, 2-bit mode selection information or filter selection information, 1-bit two flag information, for example, information LI indicating the presence or absence of a loop, and whether or not the end block (end block) of the waveform. And the information EI shown. As described above, the data of one sample is compressed from, for example, 16 bits to 4 bits, and the data D A0 to D B3 include the 4-bit data D A0H to D B3L for 16 samples.

そして、このようなデータ及び各情報は、例えば記録
媒体等に記録されたり、あるいは直接デコード側に伝送
され再生が行われる。
Then, such data and each information are recorded on a recording medium or the like, or transmitted directly to a decoding side to be reproduced.

以上の説明から明らかなように本実施例のデータ圧縮
符号化装置は、入力信号を例えば16サンプル毎にブロッ
ク化して、0次フィルタ5,1次フィルタ6,2次フィルタ7
のうちから最も高い圧縮率が得られるフィルタを選択し
て再量子化を行い出力信号を伝送する際に、カウンタ8
で入力されたブロック数をカウントし、所定のカウント
値に達したときに上記1次フィルタ6及び2次フィルタ
7に設けられている重み付け器12,13の係数を所定の大
きな値とすることにより、強制的に0次フィルタが選択
されストレートPCM信号を配置することができるため、
任意の点からのデータの再生を可能とすることができる
うえ、再生時に生じたエラーを、上記一定間隔で強制的
にストレートPCM信号を配置することにより解消するこ
とができるため、予測利得の高いフィルタを使用するこ
とが可能となる。
As is clear from the above description, the data compression encoding apparatus according to the present embodiment divides an input signal into blocks, for example, every 16 samples to form a zero-order filter 5, a primary filter 6, and a secondary filter 7.
When the filter which can obtain the highest compression rate is selected from the above and re-quantized and the output signal is transmitted, the counter 8
By counting the number of blocks input in step (1), when a predetermined count value is reached, the coefficients of the weighting units 12, 13 provided in the primary filter 6 and the secondary filter 7 are set to predetermined large values. Since the 0th order filter is forcibly selected and the straight PCM signal can be arranged,
In addition to being able to reproduce data from any point, errors occurring during reproduction can be eliminated by arranging the straight PCM signals at the above-mentioned fixed intervals forcibly. Filters can be used.

また、一定のブロック毎に重み付けパラメータを変更
し間接的にフィルタ選択を制御するデータ圧縮符号化装
置においては、このようなシステムに対して若干の変更
を加えるのみで本発明にかかるデータ圧縮符号化装置に
変更することができる。
Further, in a data compression encoding apparatus that changes the weighting parameter for each fixed block and indirectly controls the filter selection, the data compression encoding according to the present invention can be performed by only slightly changing such a system. Can be changed to device.

また、本実施例のデータ圧縮符号化装置は、ノイズシ
ェーピング回路19において、オーバーフローが検出され
た時点で出力及び入力を停止し、重み付け器12,13の係
数値をインクリメントし、再度オーバーフローが検出さ
れたブロックのデータを処理するリトライを行うことに
より、オーバーフローの生じたデータを供給することが
ないため、再生時におけるSN比の悪化を防止することが
できる。
Further, the data compression encoding apparatus according to the present embodiment stops the output and the input when the overflow is detected in the noise shaping circuit 19, increments the coefficient values of the weighters 12 and 13, and detects the overflow again. By performing the retry for processing the data of the block which has been processed, data in which an overflow has occurred is not supplied, so that it is possible to prevent the SN ratio from deteriorating during reproduction.

なお、上記重み付け器の係数値は、ほんの一例であ
り、例えば基の係数を1.4にしリトライ時のインクリメ
ントで1.6にする等種々の変更が可能であり、上記の値
には限定されないこと等は勿論である。
Note that the coefficient value of the weighting device is only an example, and various changes are possible, for example, the base coefficient is set to 1.4 and the increment at the time of retry is set to 1.6, and it is needless to say that the value is not limited to the above value. It is.

〔発明の効果〕〔The invention's effect〕

本発明にかかるデータ圧縮符号化装置は、入力信号を
一定サンプル毎にブロック化し各ブロック毎の最大値に
応じたレンジ情報に基づき再量子化を施すと共にノイズ
シェーピング処理を施すようにしたデータ圧縮符号化装
置において、上記ノイズシェーピング処理によりオーバ
ーフローが生じた場合に上記レンジ情報を制御すること
により、オーバーフローを解消することができ、該オー
バーフローの生じたデータをデコード側に供給すること
がないため再生時におけるSN比の劣化を防止することが
でき、また、上記レンジ情報として上記ブロック内最大
値に対して所定の重み付けをした値を用い、上記オーバ
ーフロー時に上記重み付けの値を増加させることにより
上述と同様の効果を得ることができる。
A data compression encoding device according to the present invention is a data compression encoding device that blocks an input signal into fixed samples, performs requantization based on range information corresponding to the maximum value of each block, and performs noise shaping processing. By controlling the range information when an overflow occurs due to the noise shaping processing in the decoding device, the overflow can be eliminated, and the data in which the overflow has occurred is not supplied to the decoding side. In addition, it is possible to prevent the deterioration of the S / N ratio in the same manner as described above by using a value obtained by weighting the maximum value in the block as the range information with a predetermined weight, and increasing the weight value at the time of the overflow. The effect of can be obtained.

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

第1図は本発明にかかるデータ圧縮符号化装置の各機能
をブロック的に示した機能ブロック図、第2図は本発明
にかかるデータ圧縮符号化装置の出力データのフォーマ
ットを示す模式図である。 1……オーディオデータ発生ブロック 2……スイッチ 3……バッファ 4……予測器 5……0次フィルタ 6……1次フィルタ 7……2次フィルタ 8……カウンタ 9,10,11……レンジディテクタ 12,13……重み付け器 14……比較(最小値検出)ブロック 155……セレクタ 16,17……出力端 18……量子化器 19……ノイズシェーピング回路 20……出力端子 21……マスク回路 22……読み出し制御回路
FIG. 1 is a functional block diagram showing functions of a data compression encoding apparatus according to the present invention in a block diagram, and FIG. 2 is a schematic diagram showing a format of output data of the data compression encoding apparatus according to the present invention. . 1 ... audio data generation block 2 ... switch 3 ... buffer 4 ... predictor 5 ... 0th order filter 6 ... primary filter 7 ... secondary filter 8 ... counter 9, 10, 11 ... range Detector 12, 13 Weighting device 14 Comparison (minimum value detection) block 155 Selector 16, 17 Output terminal 18 Quantizer 19 Noise shaping circuit 20 Output terminal 21 Mask Circuit 22 …… Readout control circuit

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H03M 7/32 Continuation of front page (58) Field surveyed (Int.Cl. 7 , DB name) H03M 7/32

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力信号を一定サンプル毎にブロック化
し、各ブロック毎の最大値に応じたレンジ情報に基づき
量子化を施すと共にノイズシェーピング処理を施すよう
にしたデータ圧縮符号化装置において、 上記ノイズシェーピング処理によりオーバーフローが生
じた場合に上記レンジ情報を制御することを特徴とする
データ圧縮符号化装置。
1. A data compression encoding apparatus wherein an input signal is divided into blocks at a fixed number of samples, and quantization and noise shaping are performed based on range information corresponding to the maximum value of each block. A data compression encoding device for controlling the range information when an overflow occurs due to a shaping process.
【請求項2】上記レンジ情報として上記ブロック内最大
値に対して所定の重み付けをした値を用い、上記オーバ
ーフロー時に上記重み付けの値を増加させることを特徴
とする請求項(1)記載のデータ圧縮符号化装置。
2. The data compression according to claim 1, wherein a value obtained by weighting the maximum value in the block with a predetermined weight is used as the range information, and the value of the weight is increased at the time of the overflow. Encoding device.
JP2062717A 1990-03-15 1990-03-15 Data compression encoder Expired - Lifetime JP3021520B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2062717A JP3021520B2 (en) 1990-03-15 1990-03-15 Data compression encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2062717A JP3021520B2 (en) 1990-03-15 1990-03-15 Data compression encoder

Publications (2)

Publication Number Publication Date
JPH03265308A JPH03265308A (en) 1991-11-26
JP3021520B2 true JP3021520B2 (en) 2000-03-15

Family

ID=13208373

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2062717A Expired - Lifetime JP3021520B2 (en) 1990-03-15 1990-03-15 Data compression encoder

Country Status (1)

Country Link
JP (1) JP3021520B2 (en)

Also Published As

Publication number Publication date
JPH03265308A (en) 1991-11-26

Similar Documents

Publication Publication Date Title
US5161210A (en) Coder for incorporating an auxiliary information signal in a digital audio signal, decoder for recovering such signals from the combined signal, and record carrier having such combined signal recorded thereon
KR100289022B1 (en) Apparatus, method and system for compressing digital input signals in one or more compression modes
US5388209A (en) Apparatus for high-speed recording compressed digital data with increased compression
US5404315A (en) Automatic sound gain control device and a sound recording/reproducing device including arithmetic processor conducting a non-linear conversion
US5493296A (en) Noise shaping circuit and noise shaping method
US5483619A (en) Method and apparatus for editing an audio signal
KR20020002241A (en) Digital audio system
JPS6044837A (en) Waveform regenerating device
JP2001134295A (en) Encoder and encoding method, recorder and recording method, transmitter and transmission method, decoder and decoding method, reproducing device and reproducing method, and recording medium
JP3047420B2 (en) Data compression encoder
JP3021520B2 (en) Data compression encoder
JP3308955B2 (en) Data compression encoder
JP3013380B2 (en) Data compression encoder
JP3089476B2 (en) Audio signal quantization error reduction device
JPH02146599A (en) Sound source data compressing and encoding method
JP2670398B2 (en) Coded signal duplication device
JPH0363259B2 (en)
JP3033150B2 (en) Audio signal quantization error reduction device
JP3875746B2 (en) Digital recording device
JP3084815B2 (en) Data recording method and device
JPS6366765A (en) Digital information signal recording and reproducing system
JP3013383B2 (en) Data compression encoder
JPH07105630A (en) Speech signal processor
JPH08167243A (en) Digital audio system and reproducing device as well as recording device and digital copying method
JPH02119431A (en) Digital signal processor

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20080114

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090114

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090114

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100114

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110114

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110114

Year of fee payment: 11