JP3013380B2 - Data compression encoder - Google Patents

Data compression encoder

Info

Publication number
JP3013380B2
JP3013380B2 JP2068117A JP6811790A JP3013380B2 JP 3013380 B2 JP3013380 B2 JP 3013380B2 JP 2068117 A JP2068117 A JP 2068117A JP 6811790 A JP6811790 A JP 6811790A JP 3013380 B2 JP3013380 B2 JP 3013380B2
Authority
JP
Japan
Prior art keywords
filter
output
block
data
supplied
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
JP2068117A
Other languages
Japanese (ja)
Other versions
JPH03270415A (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 JP2068117A priority Critical patent/JP3013380B2/en
Publication of JPH03270415A publication Critical patent/JPH03270415A/en
Application granted granted Critical
Publication of JP3013380B2 publication Critical patent/JP3013380B2/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]

本発明は、入力信号を一定サンプル毎にブロックし、
各ブロック毎に、複数のフィルタを有する第1のフィル
タ群に供給し、この第1のフィルタ群のうち最も高い圧
縮率が得られるフィルタを選択し、該選択されたフィル
タからの出力を圧縮符号化して出力する系と、入力信号
を一定サンプル毎にブロック化し、各ブロック毎に、複
数のフィルタを有する第2のフィルタ群に供給し、この
第2のフィルタ群のうち最も高い圧縮率が得られるフィ
ルタを選択し、該選択されたフィルタからの出力を圧縮
符号化して出力する系と、上記第1のフィルタ群を有す
る系からの出力と上記第2のフィルタ群を有する系から
の出力とのいずれか一方を切り換え選択して出力する切
り換え手段とを有し、上記第1のフィルタ群を有する系
でエンコード不能が生じたときに、上記切り換え手段に
より第2のフィルタ群を有する系からの出力を切り換え
選択することにより、エンコード不能を未然に防止し、
リアルタイムエンコードを可能とすることができ、ま
た、上記第1のフィルタ群は出力信号の品質は良好であ
るがエンコード不能となる確立の高いフィルタを含み、
上記第2のフィルタ群はエンコード不能となる確立の低
いフィルタを含むことにより、通常は出力信号の品質の
良好な該第1のフィルタ群を有する系でエンコードを行
いこの出力を取り出し、エンコード不能が生じたときに
はエンコード不能となる確立の低い該第2のフィルタ群
を有する系を介してエンコードした出力を取り出すこと
により、品質良好でエンコード不能が生じていない出力
を供給することができるデータ圧縮符号化装置である。
The present invention blocks the input signal every fixed sample,
For each block, a filter is supplied to a first filter group having a plurality of filters, and a filter that provides the highest compression ratio is selected from the first filter group, and an output from the selected filter is compressed by a compression code. And an input signal, which is divided into blocks for each fixed sample, and supplied to a second filter group having a plurality of filters for each block to obtain the highest compression ratio among the second filter groups. And a system that selects a filter to be output, compresses and encodes an output from the selected filter, and outputs an output from the system having the first filter group and an output from the system having the second filter group. Switching means for switching and selecting any one of the first and second filters, and when encoding becomes impossible in the system having the first filter group, the switching means selects the second filter. By selecting switches the output from the system with the group to prevent the encoding impossible in advance,
Real-time encoding can be enabled, and the first group of filters includes a high-establishment filter that has good output signal quality but cannot encode.
The second filter group includes a low-probability filter that cannot be encoded, so that the encoding is normally performed by a system having the first filter group having good output signal quality, and the output is taken out. Data compression encoding that can provide an output of good quality and no encoding failure by extracting the encoded output through a system having the second set of filters that is less likely to be encoded when it occurs. Device.

〔従来の技術〕[Conventional technology]

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

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

また近年において、上記2次差分フィルタ(以下、第
1の2次差分フィルタと言う。)より音質の良い2次差
分フィルタ(以下、第2の2次差分フィルタと言う。)
が開発され、フィルタ選択型のデータ圧縮符号化装置に
は、上記0次フィルタ,1次差分フィルタ及び第1の2次
差分フィルタの3つのフィルタに加え上記第2の2次差
分フィルタが設けられるようになった。
In recent years, a secondary differential filter (hereinafter, referred to as a second secondary differential filter) having better sound quality than the secondary differential filter (hereinafter, referred to as a first secondary differential filter).
Has been developed, and the data compression encoding apparatus of the filter selection type is provided with the second secondary differential filter in addition to the three filters of the zero-order filter, the primary differential filter, and the first secondary differential filter. It became so.

この4つのフィルタが設けられているデータ圧縮符号
化装置も上述のように、ブロック毎に供給される入力信
号を各4つのフィルタに供給し、この4つのフィルタを
介したブロック毎にブロック内最大絶対値を検出し、こ
のブロック内最大絶対値に基づいてデータを選択し、再
量子化を施して出力していた。
As described above, the data compression encoding apparatus provided with the four filters also supplies the input signal supplied to each block to each of the four filters, and the maximum number of blocks within the block is determined for each block passing through the four filters. An absolute value is detected, data is selected based on the maximum absolute value in the block, re-quantized, and output.

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

しかし、上述のデータ圧縮符号化装置に設けられてい
る4つのフィルタのうち、第2の2次差分フィルタは音
質的に優れているのはよいが、時々エンコード不能が起
こる。このエンコード不能は、例えばオーバーフロー等
が原因となって生ずるものであり、入力信号をリアルタ
イムでエンコードする場合や、長い音源(ソース)をエ
ンコードする場合に上記エンコード不能が起こるとダメ
ージが大きい。
However, among the four filters provided in the above-described data compression encoding apparatus, the second secondary difference filter preferably has excellent sound quality, but sometimes cannot perform encoding. This inability to encode is caused, for example, by overflow or the like. When the input signal is encoded in real time or when a long sound source (source) is encoded, the inability to encode causes serious damage.

本発明は上述のような課題に鑑みて成されたものであ
り、上記エンコード不能を防止し、良音質でのエンコー
ドを可能とするようなデータ圧縮符号化装置の提供を目
的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problem, and has as its object to provide a data compression encoding device that prevents the above-described inability to encode and enables encoding with good sound quality.

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

本発明は、入力信号を一定サンプル毎にブロック化
し、各ブロック毎に、複数のフィルタを有する第1のフ
ィルタ群に供給し、この第1のフィルタ群のうち最も高
い圧縮率が得られるフィルタを選択し、該選択されたフ
ィルタからの出力を量子化器及びノイズシェーピング回
路により圧縮符号化して出力する第1の系と、入力信号
を一定サンプル毎にブロック化し、各ブロック毎に、複
数のフィルタを有する第2のフィルタ群に供給し、この
第2のフィルタ群のうち最も高い圧縮率が得られるフィ
ルタを選択し、該選択されたフィルタからの出力を量子
化器及びノイズシェーピング回路により圧縮符号化して
出力する第2の系と、上記第1の系からの出力と上記第
2の系からの出力とのいずれか一方を切り換え選択して
出力する切り換え手段とを有し、上記切り換え手段は、
上記第1の系または第2の系のノイズシェーピング回路
により帰還された量子化誤差と入力信号の加算時のオー
バーフローが生じたことを示すオーバーフロー信号に応
じて切り換えるようにしたことを特徴とし、また、上記
第1のフィルタ群は出力信号の品質は良好であるがエン
コード不能となる確立の高いフィルタを含み、上記第2
のフィルタ群はエンコード不能となる確立の低いフィル
タを含むことを特徴として上述の課題を解決する。
According to the present invention, an input signal is divided into blocks by a predetermined number of samples and supplied to a first filter group having a plurality of filters for each block, and a filter capable of obtaining the highest compression rate among the first filter groups is provided. A first system for selecting and outputting an output from the selected filter by compression-encoding by a quantizer and a noise shaping circuit, and blocking the input signal for each fixed sample; , A filter that provides the highest compression rate is selected from the second filter group, and the output from the selected filter is compressed by a quantizer and a noise shaping circuit. Switching means for switching and selecting one of the output from the first system and the output from the second system for outputting the second system by converting and outputting the second system It has said switching means,
The switching is performed in response to a quantization error fed back by the noise shaping circuit of the first system or the second system and an overflow signal indicating that an overflow has occurred at the time of addition of the input signal. , The first filter group includes a filter which has a high probability that the quality of the output signal is good but cannot be encoded.
The above group of filters is characterized by including a filter with a low probability of being incapable of encoding, thereby solving the above-mentioned problem.

〔作用〕[Action]

本発明にかかるデータ圧縮符号化装置は、第1のフィ
ルタ群を有する系及び第2のフィルタ群を有する系の2
つの系で並列的に入力信号を処理しており、該第1のフ
ィルタ群を有する系でエンコード不能が生じたときには
これを出力することなく、切り換え手段により第2のフ
ィルタ群を有する系からの出力信号を選択することがで
きるため、再エンコードをすることなく、リアルタイム
エンコードを可能とすることができる。
The data compression encoding apparatus according to the present invention includes a system having a first filter group and a system having a second filter group.
The input signals are processed in parallel by the two systems, and when the encoding failure occurs in the system having the first filter group, this is not output and the switching means outputs the signal from the system having the second filter group. Since the output signal can be selected, real-time encoding can be performed without re-encoding.

また、通常は出力信号の品質の良好な上記第1のフィ
ルタ群を有する系でエンコードを行いこの出力を取り出
し、エンコード不能が生じたときにはエンコード不能と
なる確立の低い上記第2のフィルタ群を有する系を介し
てエンコードした出力を取り出すことにより、品質良好
でエンコード不能が生じていない出力を供給することが
できる。
Normally, encoding is performed by a system having the first filter group having good output signal quality, the output is taken out, and when the encoding is impossible, the second filter group having a low probability of being incapable of encoding is provided. By taking out the encoded output through the system, it is possible to supply an output with good quality and no encoding failure.

〔実施例〕〔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サンプルを16ビット
(1ワード)とし、16サンプルを1ブロックとしたオー
ディオPCM信号が供給されている。
From this input terminal 1, for example, an audio PCM signal in which one sample is 16 bits (one word) and 16 samples are one block is supplied.

このオーディオPCM信号としては、例えばCD(コンパ
クトディスク)プレーヤやDAT(デジタルオーディオテ
ープレコーダ)等の機器や音源データのメモリ等からの
デジタルデータの他、マイクロホン等で収音した音声信
号をA−D(アナログ−デジタル)変換したデジタルデ
ータ等である。
As the audio PCM signal, for example, in addition to digital data from a device such as a CD (compact disk) player or a DAT (digital audio tape recorder) or a memory of sound source data, an audio signal picked up by a microphone or the like is A-D (Analog-digital) converted digital data and the like.

この入力端子1介したオーディオPCM信号は、第1の
フィルタ群2及び第2のフィルタ群3にそれぞれ供給さ
れる。
The audio PCM signal via the input terminal 1 is supplied to a first filter group 2 and a second filter group 3, respectively.

上記第1のフィルタ群2は、例えば0次差分フィルタ
4,1次差分フィルタ5及び第1の2次差分フィルタ6で
構成されており、また上記第2のフィルタ群は、0次差
分フィルタ7,1次差分フィルタ8及び第2の2次差分フ
ィルタ9で構成されている。
The first filter group 2 is, for example, a zero-order difference filter
4, a first-order difference filter 5 and a first second-order difference filter 6. The second filter group includes a zero-order difference filter 7, a first-order difference filter 8, and a second-order difference filter. 9.

なお、上記0次差分フィルタ4と0次差分フィルタ7
及び1次差分フィルタ5と1次差分フィルタ8とはそれ
ぞれ共通の特性を有しているが、第1の2次差分フィル
タ6と第2の2次差分フィルタ9とはそれぞれ異なる特
性を有しいる。
The zero-order difference filter 4 and the zero-order difference filter 7
And the first-order difference filter 5 and the first-order difference filter 8 have common characteristics, respectively, but the first-secondary difference filter 6 and the second-order difference filter 9 have different characteristics. I have.

すなわち、上記第1の2次差分フィルタ6は、第2の
2次差分フィルタ9を介してエンコードされた上記オー
ディオPCM信号よりも再生の際の音質が優れているとい
う利点を有しているが、時々エンコード不能を生ずる欠
点を有している。これに対して、上記第2の2次差分フ
ィルタ9は、音質の点では上記第1の2次差分フィルタ
に劣るがエンコード不能となることが殆ど無いという利
点を有しており、例えばいわゆるCD−I規格のレベルB
のフィルタ群を用いている。
That is, the first secondary difference filter 6 has an advantage that the sound quality at the time of reproduction is superior to the audio PCM signal encoded via the second secondary difference filter 9. Has the drawback that sometimes encoding is impossible. On the other hand, the second secondary difference filter 9 is inferior to the first secondary difference filter in terms of sound quality, but has an advantage that encoding is almost impossible, and for example, a so-called CD. -Level B of I standard
Are used.

上述のように、例えばリアルタイムエンコードを行う
場合に、オーバーフロー等のエンコード不能を生ずると
ダメージが大きいため、当該データ圧縮符号化装置は、
上記それぞれ異なる特性を有するフィルタを設けた第1
のフィルタ群及び第2のフィルタ群を備え、通常は音質
の良いフィルタを有する第1のフィルタ群を用い、この
第1のフィルタ群を介したデータがオーバーフローを生
じた場合に、第2のフィルタ群を介したデータを用いる
ようにした。
As described above, for example, in the case of performing real-time encoding, if the encoding failure such as overflow occurs, the damage is large.
A first filter provided with filters having different characteristics.
And a second filter group. Usually, a first filter group having a filter having good sound quality is used. When data overflows through the first filter group, a second filter group is used. Data from groups were used.

すなわち、上記第1のフィルタ群2に供給されたオー
ディオPCM信号は、0次差分フィルタ4,1次差分フィルタ
5及び第1の2次差分フィルタ6にそれぞれ供給され、
また第2のフィルタ群3に供給されたオーディオPCM信
号は0次差分フィルタ7,1次差分フィルタ8及び第2の
2次差分フィルタ9にそれぞれ供給される。
That is, the audio PCM signal supplied to the first filter group 2 is supplied to a zero-order difference filter 4, a first-order difference filter 5, and a first second-order difference filter 6, respectively.
The audio PCM signal supplied to the second filter group 3 is supplied to a zero-order difference filter 7, a first-order difference filter 8, and a second second-order difference filter 9, respectively.

上記0次差分フィルタ4に供給された上記1ブロック
のオーディオPCM信号は、0次の差分がとられ、いわゆ
るストレートPCM信号としてレンジディテクタ10に供給
される。
The audio PCM signal of one block supplied to the zero-order difference filter 4 has a zero-order difference, and is supplied to the range detector 10 as a so-called straight PCM signal.

このレンジディテクタ10は上記ストレートPCM信号の
ブロック内の全データをセレクタ18に供給すると共に、
該ブロック内の最大絶対値を検出しこれを比較(最小値
検出)ブロック16に供給する。
This range detector 10 supplies all data in the block of the straight PCM signal to the selector 18,
The maximum absolute value in the block is detected and supplied to a comparison (minimum value detection) block 16.

上記1次差分フィルタ5に供給された1ブロックのオ
ーディオPCM信号は、該ブロック内の1次差分がとら
れ、1次差分データとしてレンジディテクタ11に供給さ
れる。
The audio PCM signal of one block supplied to the primary difference filter 5 has a primary difference in the block, and is supplied to the range detector 11 as primary difference data.

レンジディテクタ11は、1ブロックの全1次差分フィ
ルタをセレクタ18に供給すると共に、該ブロック内の最
大絶対値を検出しこれを比較ブロック16に供給する。
The range detector 11 supplies all the first-order difference filters of one block to the selector 18, detects the maximum absolute value in the block, and supplies it to the comparison block 16.

上記第1の2次差分フィルタ6に供給された1ブロッ
クのオーディオPCM信号は、該ブロック内の2次差分が
とられレンジディテクタ12に供給される。
The audio PCM signal of one block supplied to the first secondary difference filter 6 has a secondary difference in the block and is supplied to the range detector 12.

レンジディテクタ12は、1ブロックの全2次差分デー
タをセレクタ18に供給すると共に、該ブロック内の最大
絶対値を検出しこれを比較ブロック16に供給する。
The range detector 12 supplies all the secondary differential data of one block to the selector 18, detects the maximum absolute value in the block, and supplies it to the comparison block 16.

比較ブロック16は、上記供給されたストレートPCMの
データのブロック内最大絶対値、1次差分データのブロ
ック内最大絶対値及び2次差分データのブロック内最大
絶対値を比較して値が最小のものを検出し、この検出さ
れた最小値のレンジをレンジ情報として量子化器20及び
マルチプレクサ25に供給すると共に、該最小値が上記3
つのフィルタのうち、どのフィルタを介したかを検出し
てこれをフィルタ情報としてセレクタ18,ノイズシェー
ピング回路22及びマルチプレクサ25に供給する。
The comparison block 16 compares the maximum absolute value in the block of the supplied straight PCM data, the maximum absolute value in the block of the primary difference data, and the maximum absolute value in the block of the secondary difference data and has a minimum value. And supplies the range of the detected minimum value as range information to the quantizer 20 and the multiplexer 25.
Of the two filters, which filter has passed is detected, and this is supplied as filter information to the selector 18, the noise shaping circuit 22, and the multiplexer 25.

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

量子化器20は供給された16ビットのオーディオPCM信
号を例えば4ビットに再量子化し、この4ビットのオー
ディオPCM信号をノイズシェーピング回路22を介してマ
ルチプレクサ25に供給する。
The quantizer 20 re-quantizes the supplied 16-bit audio PCM signal to, for example, 4 bits, and supplies the 4-bit audio PCM signal to the multiplexer 25 via the noise shaping circuit 22.

この再量子化は上記比較ブロック16から供給されるレ
ンジ情報に応じて行われ、例えば上位ビットからみて16
ビット中最初に“1"がたったビットから数えて4ビット
を取り出している。
This requantization is performed in accordance with the range information supplied from the comparison block 16.
Four bits are extracted from the bit where "1" is first set in the bits.

上記マルチプレクサ25に供給されたデータ及び各情報
等は、スイッチ24の被選択端子24aを介して取り出され
る。
The data, information, and the like supplied to the multiplexer 25 are extracted via the selected terminal 24a of the switch 24.

次に、上記第2のフィルタ群3の0次差分フィルタ7
に供給された上記1ブロックのオーディオPCM信号は、
0次の差分がとられ、いわゆるストレートPCM信号とし
てレンジディテクタ13に供給される。
Next, the zero-order difference filter 7 of the second filter group 3
The one-block audio PCM signal supplied to
A zero-order difference is calculated and supplied to the range detector 13 as a so-called straight PCM signal.

このレンジディテクタ13は上記ストレートPCM信号の
ブロック内の全データをセレクタ19に供給すると共に、
該ブロック内の最大絶対値を検出しこれを比較(最小値
検出)ブロック17に供給する。
This range detector 13 supplies all data in the block of the straight PCM signal to the selector 19,
The maximum absolute value in the block is detected and supplied to a comparison (minimum value detection) block 17.

上記1次差分フィルタ8に供給された1ブロックのオ
ーディオPCM信号は、該ブロック内の1次差分がとら
れ、1次差分データとしてレンジディテクタ14に供給さ
れる。
The audio PCM signal of one block supplied to the primary difference filter 8 has a primary difference in the block, and is supplied to the range detector 14 as primary difference data.

レンジディテクタ14は、1ブロックの全1次差分デー
タをセレクタ19に供給すると共に、該ブロック内の最大
絶対値を検出しこれを比較ブロック17に供給する。
The range detector 14 supplies all the primary difference data of one block to the selector 19, detects the maximum absolute value in the block, and supplies it to the comparison block 17.

上記第2の2次差分フィルタ9に供給された1ブロッ
クのオーディオPCM信号は、該ブロック内の2次差分が
とられレンジディテクタ15に供給される。
The audio PCM signal of one block supplied to the second secondary difference filter 9 has a secondary difference in the block and is supplied to the range detector 15.

レンジディテクタ15は、1ブロックの全2次差分デー
タをセレクタ19に供給すると共に、該ブロック内の最大
絶対値を検出しこれを比較ブロック17に供給する。
The range detector 15 supplies all the secondary difference data of one block to the selector 19, detects the maximum absolute value in the block, and supplies it to the comparison block 17.

比較ブロック17は、上記供給されたストレートPCMの
データのブロック内最大絶対値、1次差分データのブロ
ック内最大絶対値及び2次差分データのブロック内最大
絶対値を比較して値が最小のものを検出し、この検出さ
れた最小値のレンジをレンジ情報として量子化器21及び
マルチプレクサ26に供給すると共に、該最小値が上記3
つのフィルタのうち、どのフィルタを介したかを検出し
てこれをフィルタ情報としてセレクタ19,ノイズシェー
ピング回路23及びマルチプレクサ26に供給する。
The comparison block 17 compares the maximum absolute value in the block of the supplied straight PCM data, the maximum absolute value in the block of the primary difference data, and the maximum absolute value in the block of the secondary difference data and has the smallest value. Is supplied to the quantizer 21 and the multiplexer 26 as range information as the range information, and the minimum value
Of the two filters, which filter has passed is detected, and this is supplied to the selector 19, the noise shaping circuit 23, and the multiplexer 26 as filter information.

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

量子化器21は上記量子化器20と同様にして供給された
16ビットのオーディオPCM信号を例えば4ビットに再量
子化し、この4ビットのオーディオデータをノイズシェ
ーピング回路23を介してマルチプレクサ26に供給する。
The quantizer 21 was supplied in the same manner as the quantizer 20 described above.
The 16-bit audio PCM signal is requantized to, for example, 4 bits, and the 4-bit audio data is supplied to the multiplexer 26 via the noise shaping circuit 23.

マルチプレクサ26に供給されたデータ及び各情報等
は、スイッチ24の被選択端子24bを介して取り出され
る。
The data, information, and the like supplied to the multiplexer 26 are extracted via the selected terminal 24b of the switch 24.

ここで、ノイズシェーピング回路22及び23は、量子化
器20または量子化器21の入力と出力との誤差分である、
いわゆる量子化誤差を上記比較ブロック16または比較ブ
ロック17からのフィルタ情報に応じて該量子化器20また
は量子化器21の入力に帰還している。すなわち、上記再
量子化の際に取り出された4ビット以降の下位ビットの
データは、量子化器20または量子化器21の入力に帰還さ
れ、新たに該量子化器20または量子化器21に供給される
データと加算される。
Here, the noise shaping circuits 22 and 23 are an error between the input and the output of the quantizer 20 or the quantizer 21.
The so-called quantization error is fed back to the input of the quantizer 20 or the quantizer 21 according to the filter information from the comparison block 16 or 17. That is, the data of the lower 4 bits after the 4th bit extracted at the time of the requantization is fed back to the input of the quantizer 20 or the quantizer 21 and newly transmitted to the quantizer 20 or the quantizer 21. It is added to the supplied data.

しかし、このノイズシェーピングにより帰還された量
子化誤差と新たなデータが加算されることによりけた上
がりを生じ、レンジ情報により指定された取り出しビッ
トよりも上位のビットに“1"が移行してしまう、上記エ
ンコード不能の1つであるいわゆるオーバーフローを生
ずる場合がある。
However, the quantization error returned by the noise shaping and the new data are added to generate a carry, and “1” shifts to a bit higher than the extracted bit specified by the range information. There is a case where a so-called overflow which is one of the non-encodings may occur.

このオーバーフローを生ずると、再生の際に直流誤差
成分が生じ良好な再生ができない等の不具合を生ずる。
これは、上記入力信号が例えば上記マイクロホンで収音
した音声信号をすぐに再生するときのように、リアルタ
イムのエンコードを必要とするときには特に顕著とな
る。
When this overflow occurs, a direct current error component occurs during reproduction, which causes problems such as failure in good reproduction.
This is particularly noticeable when real-time encoding is required, such as when the input signal immediately reproduces an audio signal picked up by the microphone.

上述のように第2のフィルタ群3の系では、このオー
バーフローが生じ難いが、通常、データの取り出しが行
われている第1のフィルタ群2の系では時々オーバーフ
ローを生ずる。
As described above, the overflow is unlikely to occur in the system of the second filter group 3, but usually, the overflow sometimes occurs in the system of the first filter group 2 from which data is extracted.

このため、第1のフィルタ群を有する系のノイズシェ
ーピング回路22は、オーバーフローを生じた時点で、オ
ーバーフローが生じたことを示すオーバーフロー信号を
スイッチ24に供給する。
For this reason, the noise shaping circuit 22 of the system having the first filter group supplies an overflow signal indicating that the overflow has occurred to the switch 24 when the overflow has occurred.

このオーバーフロー信号が供給されるとスイッチ24
は、被選択端子24aから被選択端子24bにスイッチを切り
換える。
When this overflow signal is supplied, switch 24
Switches the switch from the selected terminal 24a to the selected terminal 24b.

上述のように、被選択端子24bに供給されるオーディ
オデータは、エンコード不能の生じにくい第2のフィル
タ群を介したデータであり、このようにオーバーフロー
が生じた際に上記スイッチを切り換えることにより、該
オーバーフローの生じたデータを回避して該オーバーフ
ローの生じていないデータを選択することができる。
As described above, the audio data supplied to the selected terminal 24b is data that passes through the second filter group that is unlikely to be encoded. By thus switching the switch when an overflow occurs, The data in which the overflow has occurred can be selected by avoiding the data in which the overflow has occurred.

このようなスイッチ24を介したオーディオデータは、
該選択されたオーディオ出力端子27を介して取り出され
る。
Audio data via such a switch 24 is
The audio is extracted via the selected audio output terminal 27.

この出力端子27から取り出される出力データとして
は、例えば1ブロック分が第2図に示すようになってお
り、1バイトのヘッダ情報(圧縮に関するパラメータ情
報あるいは付属情報等)RFと、8バイトのサンプル用デ
ータDA0〜DB3で構成されている。上記ヘッダ情報RFは4
ビットのレンジ情報と、2ビットの上記モード選択情報
あるいはフィルタ選択情報と、それぞれ1ビットの2つ
のフラグ情報と、将来何らかの情報を付加するために未
定義とされているエリアとで構成されている。上述のよ
うに1サンプルのデータは、例えば16ビットから4ビッ
トに圧縮されており、上記データDA0〜DB3中には16サン
プル分の4ビットデータDA0H〜DB3Lが含まれている。
As output data taken out from the output terminal 27, for example, one block is as shown in FIG. 2. One byte of header information (compression parameter information or auxiliary information, etc.) RF and eight bytes of sample data Data D A0 to D B3 . The header information RF is 4
It consists of bit range information, 2-bit mode selection information or filter selection information, two 1-bit flag information items, and an undefined area for adding some information in the future. . 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.

なお、上述の実施例ではマルチプレクサ25またはマル
チプレクサ26からの出力をノイズシェーピング回路22か
らのオーバーフロー信号に応じて切り換え選択したが、
該マルチプレクサ25及びマルチプレクサ26を単一化する
と共にセレクタ機能を持たせ、上記オーバーフロー信号
に応じて上記第1のフィルタ群を有する系を介したオー
ディオデータまたは第2のフィルタ群を有する系を介し
たオーディオデータを選択するようにしてもよい。
In the above embodiment, the output from the multiplexer 25 or the multiplexer 26 is switched and selected according to the overflow signal from the noise shaping circuit 22.
The multiplexer 25 and the multiplexer 26 are united and provided with a selector function, and the audio data via the system having the first filter group or the system having the second filter group are provided in response to the overflow signal. Audio data may be selected.

以上の説明から明らかなように本実施例のデータ圧縮
符号化装置は、音質の良い第1のフィルタ群2を有する
系と、音質は多少劣るがエンコード不能を生ずることが
殆ど無い第2のフィルタ群3を有する系との2つの系を
設け、この2つの系に同時に同ブロックの入力信号を供
給し、通常は上記音質の良い第1のフィルタ群を有する
系を介したデータを出力し、該第1のフィルタ群を有す
る系でエンコード不能が生じた場合に、上記エンコード
不能を生ずることが殆ど無い第2のフィルタ群3を有す
る系を介したデータを出力することにより、エンコード
不能を未然に防止することができるため、例えばオーバ
ーフロー等が生じたデータをそのまま出力することがな
い。また、上記2つのフィルタ群を有する系で並列的に
同ブロック毎の信号を処理しているため、再エンコード
が不要となり、リアルタイムエンコードを可能とするこ
とができる。
As is apparent from the above description, the data compression encoding apparatus according to the present embodiment includes a system having the first filter group 2 having good sound quality, and a second filter having a slightly inferior sound quality but hardly causing encoding failure. Two systems including a system having a group 3 are provided, input signals of the same block are simultaneously supplied to the two systems, and data is output through a system having the first filter group having good sound quality. When the encoding failure occurs in the system having the first filter group, by outputting the data through the system having the second filter group 3 which hardly causes the encoding failure, the encoding inability is detected beforehand. Therefore, for example, data having an overflow or the like is not output as it is. In addition, since the signal for each block is processed in parallel by the system having the two filter groups, re-encoding becomes unnecessary, and real-time encoding can be performed.

なお、上述の実施例では、エンコード不能が生じた場
合に自動的にスイッチを切り換えて第1のフィルタ群の
系または第2のフィルタ群の系を選択したが、例えばDS
Pを使用しているが小さなメモリしか有していないよう
な小システムやエンコードデータをすぐに再生する必要
があるリアルタイムシステムの場合等には、上記2つの
系のうち、必要に応じて片側の系(例えば上記第2のフ
ィルタ群を有する系等)のみを使用するようにしてもよ
いし、この他、他必要に応じて上記スイッチを手動で切
り換えるようにしてもよいこと等は勿論である。
In the above-described embodiment, when the encoding becomes impossible, the switch is automatically switched to select the system of the first filter group or the system of the second filter group.
In the case of a small system that uses P but has only a small memory or a real-time system that needs to reproduce encoded data immediately, one of the above two systems can be used as needed. Of course, only the system (for example, the system having the second filter group, etc.) may be used, or the switch may be manually switched if necessary. .

〔発明の効果〕 本発明にかかるデータ圧縮符号化装置は、入力信号を
一定サンプル毎にブロックし、各ブロック毎に、複数の
フィルタを有する第1のフィルタ群に供給し、この第1
のフィルタ群のうち最も高い圧縮率が得られるフィルタ
を選択し、該選択されたフィルタからの出力を量子化器
及びノイズシェーピング回路により圧縮符号化して出力
する第1の系と、入力信号を一定サンプル毎にブロック
化し、各ブロック毎に、複数のフィルタを有する第2の
フィルタ群に供給し、この第2のフィルタ群のうち最も
高い圧縮率が得られるフィルタを選択し、該選択された
フィルタからの出力を量子化器及びノイズシェーピング
回路により圧縮符号化して出力する第2の系と、上記第
1の系からの出力と上記第2の系からの出力とのいずれ
か一方を切り換え選択して出力する切り換え手段とを有
し、上記切り換え手段は、上記第1の系または第2の系
のノイズシェーピング回路により帰還された量子化誤差
と入力信号の加算時のオーバーフローが生じたことを示
すオーバーフロー信号に応じて切り換えることにより、
オーバーフロー発生時でも、再エンコードをする必要が
なく、オーバーフローの生じていない出力にリアルタイ
ムで切り換えることができ、エンコード不能を未然に防
止しながらリアルタイムエンコードを可能とすることが
できる。
[Effects of the Invention] The data compression encoding apparatus according to the present invention blocks an input signal for each fixed sample, and supplies the input signal to a first filter group having a plurality of filters for each block.
A first system that selects a filter that can obtain the highest compression rate from among the filter groups of the above, compresses and encodes an output from the selected filter by a quantizer and a noise shaping circuit, and outputs the first system. Each sample is divided into blocks, and each block is supplied to a second filter group having a plurality of filters, and a filter capable of obtaining the highest compression ratio is selected from the second filter group. And a second system for compressing and encoding the output from the second system by a quantizer and a noise shaping circuit and outputting one of the output from the first system and the output from the second system. And a switching unit for adding the input signal to the quantization error fed back by the noise shaping circuit of the first system or the second system. By switching in response to the overflow signal indicating that the overflow occurs,
Even when an overflow occurs, it is not necessary to re-encode, and it is possible to switch to an output in which an overflow does not occur in real time, and it is possible to perform real-time encoding while preventing non-encoding from occurring.

また、本発明にかかるデータ圧縮符号化装置は、上記
第1のフィルタ群は出力信号の品質は良好であるがエン
コード不能となる確立の高いフィルタを含み、上記第2
のフィルタ群はエンコード不能となる確立の低いフィル
タを含むことにより、通常は出力信号の品質の良好な該
第1のフィルタ群を有する系でエンコードを行いこの出
力を取り出し、エンコード不能が生じたときにはエンコ
ード不能となる確立の低い該第2のフィルタ群を有する
系を介してエンコードした出力を取り出すことにより、
品質良好でエンコード不能が生じていない出力を供給す
ることができる。
Further, in the data compression encoding apparatus according to the present invention, the first filter group includes a filter having a high probability that output signal quality is good but encoding cannot be performed.
Includes a low probability of becoming unencodable, so that the encoding is normally performed by a system having the first filter group having good output signal quality, and the output is taken out. By taking the encoded output through a system with a low probability of the second set of filters becoming unencodable,
It is possible to supply an output with good quality and no occurrence of encoding failure.

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

第1図は本発明にかかるデータ圧縮符号化装置の各機能
をブロック的に示した機能ブロック図、第2図は本発明
にかかるデータ圧縮符号化装置の出力データのフォーマ
ットを示す模式図である。 1……入力端子 2……第1のフィルタ群 3……第2のフィルタ群 4,7……0次差分フィルタ 5,8……1次差分フィルタ 6……第1の2次差分フィルタ 9……第2の2次差分フィルタ 10,11,12……レンジディテクタ 13,14,15……レンジディテクタ 16,17……比較ブロック 18,19……セレクタ 20,21……量子化器 22,23……ノイズシェーピング回路 24……スイッチ 25,26……マルチプレクサ 27……出力端子
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. . DESCRIPTION OF SYMBOLS 1 ... Input terminal 2 ... 1st filter group 3 ... 2nd filter group 4, 7 ... 0th-order difference filter 5, 8 ... 1st-order difference filter 6 ... 1st-secondary difference filter 9 ...... Second second-order difference filters 10, 11, 12 ... Range detectors 13, 14, 15 ... Range detectors 16, 17 ... Comparison blocks 18, 19 ... Selectors 20, 21 ... Quantizers 22, 23 Noise shaping circuit 24 Switch 25, 26 Multiplexer 27 Output terminal

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力信号を一定サンプル毎にブロック化
し、各ブロック毎に、複数のフィルタを有する第1のフ
ィルタ群に供給し、この第1のフィルタ群のうち最も高
い圧縮率が得られるフィルタを選択し、該選択されたフ
ィルタからの出力を量子化器及びノイズシェーピング回
路により圧縮符号化して出力する第1の系と、 入力信号を一定サンプル毎にブロック化し、各ブロック
毎に、複数のフィルタを有する第2のフィルタ群に供給
し、この第2のフィルタ群のうち最も高い圧縮率が得ら
れるフィルタを選択し、該選択されたフィルタからの出
力を量子化器及びノイズシェーピング回路により圧縮符
号化して出力する第2の系と、 上記第1の系からの出力と上記第2の系からの出力との
いずれか一方を切り換え選択して出力する切り換え手段
とを有し、 上記切り換え手段は、上記第1の系または第2の系のノ
イズシェーピング回路により帰還された量子化誤差と入
力信号の加算時のオーバーフローが生じたことを示すオ
ーバーフロー信号に応じて切り換えるようにしたことを
特徴とするデータ圧縮符号化装置。
An input signal is divided into blocks by a predetermined number of samples and supplied to a first filter group having a plurality of filters for each block, and a filter capable of obtaining the highest compression ratio among the first filter groups. And a first system that compresses and encodes an output from the selected filter by a quantizer and a noise shaping circuit and outputs the result. The filter is supplied to a second filter group having a filter, and a filter that provides the highest compression ratio is selected from the second filter group, and an output from the selected filter is compressed by a quantizer and a noise shaping circuit. A second system for encoding and outputting; and a switch for selecting and outputting one of the output from the first system and the output from the second system. A switching stage, wherein the switching means responds to a quantization error fed back by the noise shaping circuit of the first system or the second system and an overflow signal indicating that an overflow at the time of addition of the input signal has occurred. A data compression encoding device characterized in that the data compression encoding device is switched.
【請求項2】上記第1のフィルタ群は出力信号の品質は
良好であるがエンコード不能となる確率の高いフィルタ
を含み、上記第2のフィルタ群はエンコード不能となる
確率の低いフィルタを含むことを特徴とする請求項
(1)記載のデータ圧縮符号化装置。
2. The first filter group includes a filter having a good output signal quality but a high probability of being unable to encode, and the second filter group includes a filter having a low probability of being unable to encode. The data compression encoding apparatus according to claim 1, wherein:
JP2068117A 1990-03-20 1990-03-20 Data compression encoder Expired - Lifetime JP3013380B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2068117A JP3013380B2 (en) 1990-03-20 1990-03-20 Data compression encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2068117A JP3013380B2 (en) 1990-03-20 1990-03-20 Data compression encoder

Publications (2)

Publication Number Publication Date
JPH03270415A JPH03270415A (en) 1991-12-02
JP3013380B2 true JP3013380B2 (en) 2000-02-28

Family

ID=13364481

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2068117A Expired - Lifetime JP3013380B2 (en) 1990-03-20 1990-03-20 Data compression encoder

Country Status (1)

Country Link
JP (1) JP3013380B2 (en)

Also Published As

Publication number Publication date
JPH03270415A (en) 1991-12-02

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
JP3336617B2 (en) Signal encoding or decoding apparatus, signal encoding or decoding method, and recording medium
US6041302A (en) Data compression/expansion using a rice encoder/decoder
EP0542196A2 (en) Digital video signal recording and reproducing apparatus
EP0299711B1 (en) An audio signal recording and reproducing apparatus
EP0425034B1 (en) Method of transmitting a digital video signal and a receiver for use in the method
US4783792A (en) Apparatus for transmitting digital signal
JP3013380B2 (en) Data compression encoder
CN1551191B (en) Method and device used for recoding and reproducing digital information signal
JP3047420B2 (en) Data compression encoder
JPH0583206A (en) Transmission system and receiver used in transmission system
JP3308955B2 (en) Data compression encoder
JP3021520B2 (en) Data compression encoder
JP3465697B2 (en) Signal recording medium
JPH02143735A (en) Voice multi-stage coding transmission system
KR100200627B1 (en) Video signal compression encoding device
JP3233295B2 (en) PCM data compression and decompression method
JP3341448B2 (en) Efficient encoding method for multi-channel audio data
JPH0661958A (en) Multi-channel multiplexing device
JPH0974358A (en) Method and device for compressing/expanding digital signal
JPS58162142A (en) Transmitting system of digital signal
JP2653069B2 (en) Digital signal transmission equipment
US6239728B1 (en) Dual rate encoding scheme and apparatus using the same
JP2993064B2 (en) Apparatus and method for encoding audio signal
JP2992994B2 (en) How to encode digital audio data

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: 20071217

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20081217

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20081217

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20091217

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20101217

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: 20101217

Year of fee payment: 11