JP3308955B2 - Data compression encoder - Google Patents

Data compression encoder

Info

Publication number
JP3308955B2
JP3308955B2 JP37447199A JP37447199A JP3308955B2 JP 3308955 B2 JP3308955 B2 JP 3308955B2 JP 37447199 A JP37447199 A JP 37447199A JP 37447199 A JP37447199 A JP 37447199A JP 3308955 B2 JP3308955 B2 JP 3308955B2
Authority
JP
Japan
Prior art keywords
block
data
weighting
supplied
filter
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
JP37447199A
Other languages
Japanese (ja)
Other versions
JP2000156638A (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 Interactive Entertainment Inc
Original Assignee
Sony Computer Entertainment Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Computer Entertainment Inc filed Critical Sony Computer Entertainment Inc
Priority to JP37447199A priority Critical patent/JP3308955B2/en
Publication of JP2000156638A publication Critical patent/JP2000156638A/en
Application granted granted Critical
Publication of JP3308955B2 publication Critical patent/JP3308955B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えばDSP(デ
ジタル信号プロセッサ)等を用いて構成されるデータ圧
縮符号化装置に関するものである。
[0001] 1. Field of the Invention [0002] The present invention relates to a data compression encoding apparatus constituted by using, for example, a DSP (Digital Signal Processor).

【0002】[0002]

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

【0003】このようなフィルタ選択型のビット圧縮符
号化のシステムには、例えば16サンプルを1ブロック
とした入力信号が該ブロック毎に供給される。このブロ
ック毎の入力信号は、上記複数のフィルタである、例え
ばストレートPCMを出力する0次フィルタ,1次差分
を出力する1次差分フィルタ及び2次差分を出力する2
次差分フィルタの3つのフィルタにそれぞれ供給され
る。そして、各フィルタ毎にブロック内の最大絶対値が
検出され、このブロック内最大絶対値が最小となるフィ
ルタを介したブロックデータが選択され、例えば16ビ
ットから4ビットに再量子化され出力される。なお、上
記再量子化の際に、量子化器の入力と出力との差分(量
子化誤差)を該量子化器の入力側に帰還して新たに量子
化器に供給されるデータと加算するいわゆるノイズシェ
ーピング処理が行われている。そして、上記出力の際に
は該記録されるブロックのデータが介したフィルタを示
すフィルタ情報、また、該データのレンジを示すレンジ
情報等も上記データと共に出力され、デコーダ側ではこ
れらの情報に応じてデータの再生が行われる。
[0003] In such a filter selection type bit compression encoding system, for example, an input signal having 16 blocks as one block is supplied to each block. The input signal for each block is a plurality of filters, for example, a zero-order filter that outputs straight PCM, a first-order difference filter that outputs a first-order difference, and a second output that outputs a second-order difference.
It is supplied to each of the three filters of the next difference filter. Then, the maximum absolute value in the block is detected for each filter, the block data that has passed through the filter that minimizes the maximum absolute value in the block is selected, and re-quantized from, for example, 16 bits to 4 bits and output. . At the time of the requantization, the difference (quantization error) between the input and the output of the quantizer is fed back to the input side of the quantizer and added to the data newly supplied to the quantizer. A so-called noise shaping process is performed. 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.

【0004】[0004]

【発明が解決しようとする課題】ところで、上記ノイズ
シェーピング処理により上記量子化誤差が量子化器への
新たな入力データと加算されてけた上がりが生じた場合
には、再量子化のためのビット取り出し範囲よりも大き
い値が量子化器に入力されるようないわゆるオーバーフ
ローを生ずることがある。このオーバーフローを生ずる
と、再生の際に直流誤差成分が生じ良好な再生ができな
い等の問題があるため、通常、上記1次差分フィルタ及
び2次差分フィルタからのそれぞれのブロック内最大絶
対値に対して重み付け係数(例えば1.5) を掛けて重
み付けを行い、この重み付けされた最大絶対値に基づい
て上記レンジ情報を得るようにしている。
When the quantization error is added to new input data to the quantizer due to the noise shaping process and a carry occurs, a bit for requantization is generated. A so-called overflow may occur such that a value larger than the extraction range is input to the quantizer. When this overflow occurs, there is a problem that a direct current error component occurs at the time of reproduction, and good reproduction cannot be performed. Therefore, usually, the maximum absolute value in each block from the first-order differential filter and the second-order differential filter is used. The weight information is multiplied by a weighting coefficient (for example, 1.5), and the range information is obtained based on the weighted maximum absolute value.

【0005】しかしながら、このような重み付けを行っ
てもオーバーフローが生じる場合があり、オーバーフロ
ーの生じたデータが出力されると、デコード側での再生
時におけるSN比の劣化等の問題が生ずる虞れがある。
[0005] However, even if such weighting is performed, an overflow may occur, and if data with the overflow is output, a problem such as deterioration of the SN ratio during reproduction on the decoding side may occur. is there.

【0006】また、上述のようにフィルタ選択型のビッ
ト圧縮符号化システムは、例えばブロック内の先頭デー
タに基づいて前のデータとの1次または2次差分値を出
力するため、例えば任意の点からデータの再生を行う場
合に、該任意の点で再生されるデータが1次または2次
フィルタを介したデータであると再生データにエラーが
生じる。このように一度エラーが生じると、後のデータ
に該エラー分が伝播し直流誤差成分が発生し良好な再生
音声を得ることができない。このため、エラーのマージ
ンを考慮すると予測利得の高いフィルタの使用には問題
が多いこととなる。
As described above, the filter selection type bit compression encoding system outputs a primary or secondary difference value with respect to previous data based on, for example, the leading data in a block. When data is reproduced from the data, an error occurs in the reproduced data if the data reproduced at the arbitrary point is data that has passed through a primary or secondary filter. As described above, once an error occurs, the error propagates to the subsequent data, and a DC error component occurs, so that it is impossible to obtain a good reproduced sound. Therefore, there are many problems in using a filter having a high prediction gain in consideration of an error margin.

【0007】本発明は、上述のような問題点に鑑みてな
されたものであって、ノイズシェーピングの際のオーバ
ーフローを有効に防止でき、また、上記エラーの伝播が
原因で発生する直流誤差成分を解消し得るようなデータ
圧縮符号化装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problems, and can effectively prevent overflow during noise shaping. In addition, the present invention reduces a DC error component generated due to the propagation of the error. It is an object of the present invention to provide a data compression encoding device that can be eliminated.

【0008】[0008]

【課題を解決するための手段】上述の課題を解決するた
めに、本発明は、入力信号を一定サンプル毎にブロック
化し、各ブロック毎に、入力信号を直接出力するモード
を含む複数のフィルタを介して出力する複数のモードの
うち、最も高い圧縮率を有する出力信号が得られるモー
ドを選択するようにしたデータ圧縮符号化装置におい
て、上記複数のモードのいずれかを上記ブロック毎に選
択するために比較される各モード毎の値の少なくとも一
部に対して重み付けを行う重み付け手段と、上記選択さ
れたモードのフィルタ出力データを量子化する量子化手
段と、上記量子化手段における量子化誤差を上記量子化
手段に帰還するノイズシェーピング手段とを有し、上記
ノイズシェーピング手段においてオーバーフローが検出
された時点でデータ圧縮符号化の入力及び出力を停止
し、上記重み付け手段の重み付け係数値を変更して再度
上記オーバーフローが検出されたブロックのデータを処
理するリトライを行うことを特徴としている。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention provides a plurality of filters including a mode for dividing an input signal into fixed samples and, for each block, directly outputting the input signal. A plurality of modes to be output through the data compression encoding apparatus, wherein a mode that provides an output signal having the highest compression ratio is selected. Weighting means for weighting at least a part of the value for each mode compared with the above, a quantization means for quantizing the filter output data of the selected mode, and a quantization error in the quantization means. Noise shaping means for returning to the quantizing means, and when the overflow is detected by the noise shaping means, Stop the input and output of the condensation coding changes to again the overflow weighting coefficients of the weighting means is characterized by performing a retry of processing data detected block.

【0009】ここで、上記ブロック数をカウントし、カ
ウント数が所定値に達したときに、上記重み付け手段に
カウント到達信号を供給するカウンタを設け、上記重み
付け手段は、上記カウント到達信号の供給に応じて、上
記入力信号を直接出力するモードが強制的に選択される
ように重み付け係数を変更することが挙げられる。
Here, a counter is provided for counting the number of blocks and supplying a count reaching signal to the weighting means when the counted number reaches a predetermined value. The weighting means supplies the count reaching signal to the counter. Accordingly, the weighting coefficient may be changed so that the mode for directly outputting the input signal is forcibly selected.

【0010】[0010]

【発明の実施の形態】以下、本発明にかかるデータ圧縮
符号化装置の実施の形態について、図面を参照しながら
説明する。図1は、本発明の実施の形態となるデータ圧
縮符号化装置の各機能をブロック的に示した機能ブロッ
ク図である。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of a data compression encoding apparatus according to the present invention. FIG. 1 is a functional block diagram showing in block form each function of a data compression encoding apparatus according to an embodiment of the present invention.

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

【0012】このオーディオデータ発生ブロック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に供給される。
From the audio data generating block 1, reading is controlled by a control signal from a reading control circuit 22. For example, an audio PCM signal in which one sample is made into 16 bits (one word) and 16 samples are made into one block is generated. The audio PCM signal is stored in a buffer 3 via a switch 2 described later, and is also supplied to a zero-order filter 5, a first-order filter 6, a second-order filter 7, and a counter 8 in the predictor 4. . The encode filter has a configuration of a so-called difference filter. The audio PCM signal of the one block supplied to the zero-order filter 5 is used as a so-called straight PCM signal without any difference, and is used as a range detector 9. Supplied to

【0013】このレンジディテクタ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, and the maximum absolute value in the block is compared to a comparison (minimum value detection) block 14 and to the entire block. The data is supplied to the selector 15.

【0014】次に、上記1次フィルタ6に供給された1
ブロックのオーディオPCM信号は、該ブロック内の1
次差分がとられ、この1次差分データがレンジディテク
タ10に供給される。レンジディテクタ10では、1ブ
ロックの1次差分データの中から、ブロック内最大絶対
値が検出される。この1次差分データのブロック内最大
絶対値は、重み付け器12に供給され、上記1ブロック
の1次差分データはセレクタ15に供給される。そし
て、上記重み付け器12に供給された1次差分データの
ブロック内最大絶対値は、所定の係数(例えば1.5)
が掛けられる、いわゆる重み付けがなされ比較ブロック
14に供給される。
Next, the primary filter 6 supplied to the primary filter 6
The audio PCM signal of a block is
The next difference is obtained, and the first 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 of the primary difference data supplied to the weighting unit 12 in the block is determined by a predetermined coefficient (for example, 1.5).
Is multiplied, that is, weighted and supplied to the comparison block 14.

【0015】次に、上記2次フィルタ7に供給された1
ブロックのオーディオPCM信号は、該ブロック内の2
次差分がとられレンジディテクタ11に供給される。レ
ンジディテクタ11では、供給された1ブロックの2次
差分データの中からブロック内最大絶対値が検出され
る。この2次差分データのブロック内最大絶対値は重み
付け器13に供給され、上記1ブロックの2次差分デー
タはセレクタ15に供給される。そして、重み付け器1
3に供給された2次差分データのブロック内最大絶対値
は、所定の係数(例えば1.5) が掛けられる、いわゆ
る重み付けがなされ比較ブロック14に供給される。
Next, the first filter supplied to the secondary filter 7 is
The audio PCM signal of the block is 2
The next difference is obtained and supplied to the range detector 11. The range detector 11 detects the maximum absolute value in the block 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. And weighting device 1
The maximum absolute value in the block of the secondary difference data supplied to the block 3 is multiplied by a predetermined coefficient (for example, 1.5).

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

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

【0018】上記セレクタ15は、比較ブロック14か
らのフィルタ情報により指定されたフィルタを介したオ
ーディオPCM信号を、例えばスイッチを切り換える等
して選択し、この選択した1ブロックのオーディオPC
M信号を量子化器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 selects the selected audio PCM signal of one block.
The M signal is supplied to the quantizer 18.

【0019】このように、セレクタ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 above three filters and supplies it to the quantizer 18, while the counter 8 outputs the supplied audio PCM signal. The number of blocks is counted, and when a predetermined count number (for example, several blocks to several tens of blocks) is reached, each of the weighters 12,
13 is supplied with a count reaching signal.

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

【0021】ここで、上記一定の間隔(一定ブロック数
カウント)を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] となり数十ブロック毎にストレートPC
M信号を配置したとしても20〜30[msec]程度の間隔
で配置することができる。この間隔は人間の聴覚上認識
できるものではないため問題とはならない。
Here, assuming that the above-mentioned fixed interval (constant number of blocks) is N and the number of samples in one block is n (for example, n = 28 for CDI and n = 16 for APU), every nN samples must be obtained. 0-order filter 9 is guaranteed to be selected, in the case of reproducing the data BRR encoding from any point, even the longest nNt s [sec]
It is possible to obtain a complete reproduced sound after (t s = sampling interval [sec]). Specifically, when f s = 32 kHz and one block is 16 samples, the time required for one block is about 0.5 [msec], and the straight PC is output every several tens of blocks.
Even if M signals are arranged, they can be arranged at intervals of about 20 to 30 [msec]. This interval is not a problem because it is not recognizable by human hearing.

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

【0023】このように選択され上記量子化器18に供
給された16ビットのオーディオPCM信号は、上記比
較ブロック14から供給されるレンジ情報に応じて、上
位ビットからみて16ビット中最初に“1”がたったビ
ットから数えて例えば4ビットが取り出される、いわゆ
る再量子化が施されノイズシェーピング回路19を介し
てマルチプレクサ17に供給される。上記ノイズシェー
ピング回路19は、量子化器18の入力と出力との誤差
分である、いわゆる量子化誤差を上記比較ブロック14
からのフィルタ情報に応じて量子化器18の入力に帰還
している。すなわち、上記再量子化の際に取り出された
4ビット以降の下位ビットのデータは、量子化器18の
入力に帰還され、新たに該量子化器18に供給されるデ
ータと加算される。
According to the range information supplied from the comparison block 14, the 16-bit audio PCM signal thus selected and supplied to the quantizer 18 is initially "1" in the 16 bits as viewed from the upper bits. For example, 4 bits are taken out from the bits immediately after "", that is, so-called requantization is performed and supplied to the multiplexer 17 via the noise shaping circuit 19. The noise shaping circuit 19 converts the so-called quantization error, which is the error between the input and the output of the quantizer 18, into the comparison block 14.
Is fed back to the input of the quantizer 18 in accordance with the filter information from. 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.

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

【0025】このオーバーフローを生ずると、再生の際
に直流誤差成分が生じ良好な再生ができない等の問題が
あるため、通常、これを防止するために上記重み付け器
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.
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 by, for example, 1.5 , and data is extracted from, for example, one bit higher than the bit to be originally extracted. I have. However, even if the above weighting is performed, an overflow may occur.

【0026】そこで、本実施の形態においては、該オー
バーフローが生じた時点でノイズシェーピング回路19
はスイッチ2,バッファ3,マスク回路21及び読み出
し制御回路22にオーバーフロー量及び現在のフィルタ
番号(0次,1次または2次フィルタ)であるオーバー
フロー情報を供給すると共に、該オーバーフローの生じ
たオーディオPCM信号の出力を一旦停止する。
Therefore, in the present embodiment, when the overflow occurs, the noise shaping circuit 19
Supplies the switch 2, the buffer 3, the mask circuit 21 and the read control circuit 22 with overflow information indicating the amount of overflow and the current filter number (0th, 1st or 2nd filter), and the audio PCM in which the overflow has occurred. Stop the signal output once.

【0027】このオーバーフロー情報が供給されるとマ
ルチプレクサ17はデータの出力を停止し、読み出し制
御回路22はオーディオデータ発生ブロック1からのデ
ータの読み出しを停止し、スイッチ2は選択端子2cを
被選択端子2aから被選択端子2bに切り換え、一旦オ
ーディオデータ発生ブロック1からのデータの取り入れ
を停止する。上述のようにバッファ3には、数ブロック
分のオーディオデータが記憶されており、該バッファ3
は上記オーバーフロー情報により、該オーバーフローの
生じたブロックのオーディオPCM信号を再度予測器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 block 1, and the switch 2 sets the selection terminal 2c to the selected terminal. Switching from the terminal 2a to the selected terminal 2b temporarily stops taking in data from the audio data generation block 1. As described above, the buffer 3 stores audio data for several blocks.
The predictor 4 calculates again the audio PCM signal of the block in which the overflow has occurred, based on the overflow information.
A so-called retry is supplied to the power supply.

【0028】このリトライが開始されるとマスク回路2
1は、上記供給されたオーバーフロー情報から現在のフ
ィルタ番号を知り、このフィルタに接続されている重み
付け器に係数インクリメント信号を供給する。この係数
インクリメント信号が供給された重み付け器は、今まで
係数値が1.5 であったものを、例えば1.6 にする等
のように係数値をインクリメントする。上記再度供給さ
れたオーバーフローを生じたブロックのオーディオPC
M信号は、上述のように各フィルタを介し各レンジディ
テクタ9,10,11に供給され、それぞれブロック内
最大絶対値が検出され、また、各データはセレクタ15
に供給される。この検出されたブロック内最大絶対値の
うち、レンジディテクタ9を介したストレートPCM信
号のブロック内最大絶対値は、そのまま比較ブロック1
4に供給されるが、レンジディテクタ10を介した1次
差分データのブロック内最大絶対値は重み付け器12
に、レンジディテクタ11を介した2次差分データのブ
ロック内最大絶対値は重み付け器13に供給される。上
述のように上記オーバーフローを生じる原因となった上
記どちらかの重み付け器の係数値はインクリメントされ
ており、上記各ブロック内最大絶対値はそれぞれ係数値
が乗じられ重み付けされ比較ブロック14に供給され
る。比較ブロック14は、このインクリメントされた係
数により再度重み付けのされたブロック内最大絶対値を
含む各ブロック内最大絶対値をそれぞれ比較して値が最
小のものを検出し、この検出結果に基づいて再度量子化
器18にレンジ情報を供給する。このレンジ情報に基づ
いて量子化器18は、上述のように再量子化を行う。そ
して、この再量子化を行いオーバーフローが解消された
場合、該再量子化によりオーバーフローが解消されたデ
ータの出力が行われると共に、マスク回路21は上記イ
ンクリメントした重み付け器の係数値を基の係数値に戻
し、スイッチ2は選択端子2cを被選択端子2aに切り
換え新たなデータの取り込みを再開する。
When this retry is started, the mask circuit 2
1 knows the current filter number from the supplied overflow information, and supplies a coefficient increment signal to a weighter connected to this filter. The weighter to which the coefficient increment signal is supplied increments the coefficient value so that the coefficient value is 1.5, for example, to 1.6, for example. The re-supplied audio PC of the overflowed block
The M signal is supplied to each of the range detectors 9, 10, and 11 via each filter as described above, and the maximum absolute value in each block is detected.
Supplied to Of 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 used as it is in the comparison block 1.
4, the maximum absolute value of the primary difference data in the block via the range detector 10 is
The maximum absolute value of the secondary difference data in the block via the range detector 11 is supplied to the weighter 13. 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 having the minimum 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, data from which the overflow has been eliminated by the requantization is output, and the mask circuit 21 calculates a 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 resumes capturing of new data.

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

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

【0031】マルチプレクサ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.

【0032】上記出力端子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 the output data taken out from the output terminal 20, for example, one block is as shown in FIG. 2, and 1-byte header information (compression parameter information or auxiliary information, etc.) RF and 8-byte Of data D A0 to D B3 . The header information RF includes 4-bit range information, 2-bit mode selection information or filter selection information, two 1-bit flag information, information LI indicating the presence or absence of a loop, and an end block (end) of a waveform. Block) or information EI indicating whether or not the block is a block. As described above, one sample of data is, for example, 16 bits to 4 bits.
The data D A0 to D B3 include 4-bit data D A0H to D B3L for 16 samples.

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

【0034】以上の説明から明らかなように本実施の形
態のデータ圧縮符号化装置は、入力信号を例えば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 of, for example, every 16 samples, and forms 0-order filters 5, primary filters 6, and secondary filters 7 The counter 8 counts the number of blocks input when a filter that provides the highest compression ratio is selected and re-quantized to transmit an output signal. By setting the coefficients of the weighters 12 and 13 provided in the secondary filter 6 and the secondary filter 7 to predetermined large values,
Since the 0th-order filter can be forcibly selected and the straight PCM signal can be arranged, it is possible to reproduce data from an arbitrary point. This can be solved by arranging a straight PCM signal in the filter, so that a filter having a high prediction gain can be used.

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

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

【0037】なお、上記重み付け器の係数値はほんの一
例であり、例えば基の係数を1.4にしリトライ時のイ
ンクリメントで1.6 にする等種々の変更が可能であ
り、上記の値には限定されないこと等は勿論である。
It should be noted that the coefficient value of the above-mentioned weighting device is merely 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. Of course, it is not limited.

【0038】[0038]

【発明の効果】本発明にかかるデータ圧縮符号化装置に
よれば、入力信号を一定サンプル毎にブロック化し、各
ブロック毎に、入力信号を直接出力するモードを含む複
数のフィルタを介して出力する複数のモードのうち、最
も高い圧縮率を有する出力信号が得られるモードを選択
するようにしたデータ圧縮符号化装置において、上記複
数のモードのいずれかを上記ブロック毎に選択するため
に比較される各モード毎の値の少なくとも一部に対して
重み付けを行う重み付け手段と、上記選択されたモード
のフィルタ出力データを量子化する量子化手段と、上記
量子化手段における量子化誤差を上記量子化手段に帰還
するノイズシェーピング手段とを有し、上記ノイズシェ
ーピング手段においてオーバーフローが検出された時点
でデータ圧縮符号化の入力及び出力を停止し、上記重み
付け手段の重み付け係数値を変更して再度上記オーバー
フローが検出されたブロックのデータを処理するリトラ
イを行うことにより、オーバーフローの生じたデータを
供給することがないため、再生時におけるSN比の悪化
を防止することができる。
According to the data compression encoding apparatus of the present invention, an input signal is divided into blocks for each fixed sample, and each block is output through a plurality of filters including a mode for directly outputting the input signal. In a data compression encoding device that selects a mode that provides an output signal having the highest compression rate among a plurality of modes, a comparison is performed to select any of the plurality of modes for each of the blocks. Weighting means for weighting at least a part of the value for each mode, quantization means for quantizing the filter output data of the selected mode, and quantization error in the quantization means And a noise shaping means for returning to the data compression code when overflow is detected by the noise shaping means. Input and output are stopped, the weighting coefficient value of the weighting means is changed, and the data of the block in which the overflow is detected is retried, so that the data having the overflow is not supplied. In addition, it is possible to prevent the SN ratio from deteriorating during reproduction.

【0039】また、一定ブロック数の間隔でモード選択
のための重み付けの値を所定の値として強制的に上記入
力信号を直接出力するモードが選択されるようにするこ
とにより、簡単な構成で、エンコード−デコード系で生
じたエラーの累積が原因で発生する直流誤差成分をクリ
アし、略々任意の点からの再生を可能とすることができ
る。
Further, the mode in which the input signal is directly output is forcibly selected by setting the weighting value for mode selection to a predetermined value at intervals of a fixed number of blocks, thereby achieving a simple configuration. It is possible to clear a DC error component generated due to accumulation of errors generated in the encoding / decoding system, and to enable reproduction from substantially any point.

【図面の簡単な説明】[Brief description of 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 form.

【図2】本発明にかかるデータ圧縮符号化装置に実施の
形態の出力データのフォーマットを示す模式図である。
FIG. 2 is a schematic diagram showing a format of output data of the data compression encoding apparatus according to the embodiment of the present invention;

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

1 オーディオデータ発生ブロック、 2 スイッチ、
3 バッファ、 4予測器、 5 0次フィルタ、
6 1次フィルタ、 7 2次フィルタ、8 カウン
タ、 9,10,11 レンジディテクタ、 12,1
3 重み付け器、 14 比較(最小値検出)ブロッ
ク、 15 セレクタ、 17 マルチプレクサ、 1
8 量子化器、 19 ノイズシェーピング回路、 2
0 出力端子、 21 マスク回路、 22 読み出し
制御回路
1 audio data generation block, 2 switches,
3 buffers, 4 predictors, 5 0th-order filters,
6 primary filter, 7 secondary filter, 8 counter, 9, 10, 11 range detector, 12, 1
3 weighter, 14 comparison (minimum value detection) block, 15 selector, 17 multiplexer, 1
8 Quantizer, 19 Noise shaping circuit, 2
0 output terminal, 21 mask circuit, 22 read control circuit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H03M 1/00 - 11/00 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int. Cl. 7 , DB name) H03M 1/00-11/00

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力信号を一定サンプル毎にブロック化
し、各ブロック毎に、入力信号を直接出力するモードを
含む複数のフィルタを介して出力する複数のモードのう
ち、最も高い圧縮率を有する出力信号が得られるモード
を選択するようにしたデータ圧縮符号化装置において、上記複数のモードのうち少なくとも一部のモードのブロ
ック内最大絶対値に対して重み付け計数値を用いて重み
付けを行う 重み付け手段と、上記重み付け手段において重み付けを行わなかったモー
ドのブロック内最大絶対値と上記重み付け手段からの値
とを比較し最小のものを検出し、検出された最小値のレ
ンジをレンジ情報として出力すると共に、当該最小値を
供給したモードを選択する比較手段と 、 上記選択されたモードのフィルタ出力データを上記レン
ジ情報に基づいて量子化する量子化手段と、 上記量子化手段における量子化誤差を上記量子化手段に
帰還するノイズシェーピング手段とを有し、 上記ノイズシェーピング手段においてオーバーフローが
検出された時点でデータ圧縮符号化の入力及び出力を停
止し、上記重み付け係数値を変更して再度上記オーバー
フローが検出されたブロックのデータを処理するリトラ
イを行うことを特徴とするデータ圧縮符号化装置。
An output having the highest compression ratio among a plurality of modes for outputting an input signal through a plurality of filters including a mode for directly outputting an input signal for each block, and for each block. In a data compression encoding apparatus that selects a mode in which a signal is obtained, a block of at least some of the plurality of modes is used.
Weight the maximum absolute value in the
Weighting means for performing weighting, and a mode in which weighting is not performed by the weighting means.
Maximum absolute value in the block and the value from the above weighting means
And the smallest one is detected.
Output the range as range information, and
Comparing means for selecting the supplied mode, the lens filter output data of the selected mode
And a noise shaping means for feeding back a quantization error in the quantization means to the quantization means, wherein the data is obtained when the overflow is detected in the noise shaping means. stop the input and output of the compression coding, data compression coding apparatus and performs a retry again the overflow by changing the weighting coefficient values processes the data of the detected block.
【請求項2】上記ブロック数をカウントし、カウント数
が所定値に達したときに、上記重み付け手段にカウント
到達信号を供給するカウンタを有し、 上記重み付け手段は、上記カウント到達信号の供給に応
じて、上記入力信号を直接出力するモードが強制的に選
択されるように上記重み付け係数を変更することを特徴
とする請求項1記載のデータ圧縮符号化装置。
2. A counter for counting the number of blocks and supplying a count reaching signal to the weighting means when the count reaches a predetermined value, wherein the weighting means supplies the count reaching signal. in response, data compression coding apparatus according to claim 1, wherein changing the weighting coefficients such mode for outputting the input signal directly is forcibly selected.
JP37447199A 1990-03-15 1999-12-28 Data compression encoder Expired - Lifetime JP3308955B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP37447199A JP3308955B2 (en) 1990-03-15 1999-12-28 Data compression encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP37447199A JP3308955B2 (en) 1990-03-15 1999-12-28 Data compression encoder

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2062718A Division JP3047420B2 (en) 1990-03-15 1990-03-15 Data compression encoder

Publications (2)

Publication Number Publication Date
JP2000156638A JP2000156638A (en) 2000-06-06
JP3308955B2 true JP3308955B2 (en) 2002-07-29

Family

ID=18503908

Family Applications (1)

Application Number Title Priority Date Filing Date
JP37447199A Expired - Lifetime JP3308955B2 (en) 1990-03-15 1999-12-28 Data compression encoder

Country Status (1)

Country Link
JP (1) JP3308955B2 (en)

Also Published As

Publication number Publication date
JP2000156638A (en) 2000-06-06

Similar Documents

Publication Publication Date Title
US5493296A (en) Noise shaping circuit and noise shaping method
US5483619A (en) Method and apparatus for editing an audio signal
JP3047420B2 (en) Data compression encoder
JP3308955B2 (en) Data compression encoder
JP3021520B2 (en) Data compression encoder
US20050147004A1 (en) Audio data recording/reproduction system and audio data recording medium therefor
JP3013380B2 (en) Data compression encoder
US20020041547A1 (en) Reproduction apparatus and reproduction method
US20020027845A1 (en) Reproduction apparatus, reproduction method, program, and recording medium
JPH0363259B2 (en)
US5539587A (en) Digital signal recording apparatus having sampling rate converter
KR0141237B1 (en) Audio signal recording/reproducing method
JPH02143735A (en) Voice multi-stage coding transmission system
JP2670398B2 (en) Coded signal duplication device
JP2000347697A (en) Voice record regenerating device and record medium
JP3821384B2 (en) Optical recording medium and audio decoding device
JP3387084B2 (en) Recording medium, audio decoding device
JP2557829B2 (en) Automatic cue signal recording device
JP3875746B2 (en) Digital recording device
JP2004139102A (en) Optical recording medium and voice decoding device
JP2992994B2 (en) How to encode digital audio data
JP2677054B2 (en) Coded signal duplication device
JP3821382B2 (en) Optical recording medium and audio decoding device
JP3346404B2 (en) Audio coding device
JP3821386B2 (en) Optical recording medium and audio decoding device

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 (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090517

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090517

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100517

Year of fee payment: 8

EXPY Cancellation because of completion of term