[go: up one dir, main page]

JP2002297194A - Compressing method and restoring method of data, and program used for the same - Google Patents

Compressing method and restoring method of data, and program used for the same

Info

Publication number
JP2002297194A
JP2002297194A JP2001098784A JP2001098784A JP2002297194A JP 2002297194 A JP2002297194 A JP 2002297194A JP 2001098784 A JP2001098784 A JP 2001098784A JP 2001098784 A JP2001098784 A JP 2001098784A JP 2002297194 A JP2002297194 A JP 2002297194A
Authority
JP
Japan
Prior art keywords
prediction difference
difference values
value
values
block
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.)
Pending
Application number
JP2001098784A
Other languages
Japanese (ja)
Inventor
Kazunori Hideya
和則 秀谷
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.)
Konami Group Corp
Original Assignee
Konami 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 Konami Corp filed Critical Konami Corp
Priority to JP2001098784A priority Critical patent/JP2002297194A/en
Publication of JP2002297194A publication Critical patent/JP2002297194A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To enhance the compressibility by improving the procedure for encoding a predictive difference value. SOLUTION: Predictive difference values (A, B, C, etc.), for every sample included in a block of a prescribed length compressed by using an ADPCM method are divided into groups each consisting of a prescribed number of samples. A table(TB) wherein all combinations obtained by selecting arbitrary predictive difference values which are as many as the samples from all the predictive difference values included in the block of the prescribed length are made to correspond to mutually different representative values is generated and combinations of predictive difference values in the respective groups are represented by being replaced with the representative values made to correspond to the table.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ADPCM法を用
いて高効率で音声等のデータを圧縮する方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a method for compressing data such as voice with high efficiency using an ADPCM method.

【0002】[0002]

【従来の技術】音声の圧縮技術として、ADPCM(適
応差分PCM、Adaptive Differential Pulse Code Mod
ulationの略)法が知られている。この圧縮方法は、圧
縮対象の波形を適当な周波数でサンプリングし、サンプ
ル(標本)毎の信号値を適当なビット数で量子化してサ
ンプル間の差分値を算出し、得られた複数の差分値間の
相関性に基づいて、サンプル毎の差分値をその従前のサ
ンプルに関する差分値から予測し、その予測差分値を信
号値に応じて設定された量子化ステップ幅で量子化し、
さらに量子化された値を符号化するものである。こうし
たADPCM方法は、サンプル毎の振幅そのものを量子
化、符号化するPCM法と比較して大幅に情報量を圧縮
できることからCDやファックス等におけるデータの圧
縮に利用されている。
2. Description of the Related Art ADPCM (Adaptive Differential Pulse Code Modulation) is used as a speech compression technique.
ulation). In this compression method, a waveform to be compressed is sampled at an appropriate frequency, a signal value for each sample (sample) is quantized with an appropriate number of bits, and a difference value between the samples is calculated. Based on the correlation between, predict the difference value for each sample from the difference value for the previous sample, quantize the predicted difference value with a quantization step width set according to the signal value,
Further, the quantized value is encoded. The ADPCM method is used for compressing data in a CD, a facsimile, and the like, because the information amount can be significantly reduced as compared with the PCM method in which the amplitude itself for each sample is quantized and encoded.

【0003】[0003]

【発明が解決しようとする課題】ADPCM法において
予測差分値を符号化する場合、予測差分値のばらつきに
よっては、符号化時に必要なビット数に無駄が生じ、圧
縮率が低くなることがある。例えば、予測差分値として
10個の値が一つのデータに含まれている場合、それら
の10個の予測差分値をサンプル毎に符号化するために
は、一サンプル当たり4ビットを割り当てなければなら
ない。この場合、4ビットでは最大で16個の予測差分
値を指定できるにも関わらず、実際には10個の予測差
分値からいずれか一つを指定することになるので、6個
分だけ無駄が生じている。
When the prediction difference value is coded in the ADPCM method, the number of bits required at the time of coding may be wasted depending on the variation of the prediction difference value, and the compression ratio may be reduced. For example, when ten values are included in one data as prediction difference values, in order to encode those 10 prediction difference values for each sample, 4 bits must be allocated per sample. . In this case, although 16 prediction difference values can be specified at the maximum with 4 bits, any one of 10 prediction difference values is actually specified. Has occurred.

【0004】そこで、本発明は予測差分値を符号化する
手順を改良して圧縮率を高めることが可能なデータの圧
縮方法、及びその圧縮されたデータを復元する方法、並
びにそれらの方法を実現するためのコンピュータプログ
ラムを提供することを目的とする。
Therefore, the present invention realizes a data compression method capable of improving a compression ratio by improving a procedure for encoding a prediction difference value, a method of restoring the compressed data, and a method thereof. It is intended to provide a computer program for performing the above.

【0005】[0005]

【課題を解決するための手段】本発明は、次に述べる圧
縮方法、復元方法又はプログラムによって上述した課題
を解決するものである。
The present invention solves the above-mentioned problems by a compression method, a decompression method, or a program described below.

【0006】本発明の圧縮方法は、ADPCM法を用い
て圧縮された所定長のブロックに含まれるサンプル毎の
予測差分値を所定のサンプル数毎にグループ化し、前記
所定長のブロックに含まれている全ての予測差分値から
任意の予測差分値を前記サンプル数と同数だけ選択して
得られる全ての組み合わせを、互いに異なる代表値にそ
れぞれ対応付けたテーブルを生成し、各グループにおけ
る予測差分値の組み合わせを前記テーブル上で対応付け
られている代表値に置き換えて表現するものである。
According to the compression method of the present invention, a prediction difference value for each sample included in a block of a predetermined length compressed using the ADPCM method is grouped by a predetermined number of samples, and the prediction difference value is included in the block of the predetermined length. Generate a table in which all combinations obtained by selecting the same number of prediction difference values as the number of samples from all the prediction difference values are associated with different representative values. The combination is expressed by replacing it with the representative value associated on the table.

【0007】この発明によれば、複数のサンプルの予測
差分値を一つのグループにまとめて符号化しているの
で、サンプル毎に一定のビット数を割り当てて符号化す
る従来方法においてサンプル毎に生じていた無駄が、グ
ループ単位にまとめられるようになり、ブロックの全体
で生じる無駄が相対的に減少して圧縮率が高まる。
According to the present invention, since the prediction difference values of a plurality of samples are grouped into one group and coded, it occurs for each sample in the conventional method in which a fixed number of bits are allocated to each sample and coded. Wasted data is grouped into groups, and the waste generated in the entire block is relatively reduced, and the compression ratio is increased.

【0008】例えば一つのブロックに10個の予測差分
値が含まれ、二つのサンプルで一つのグループを構成す
る場合を例にとると、全ての予測差分値から任意の予測
差分値をサンプル数と同数だけ選択して得られる組み合
わせの数は各サンプルについて10個の予測差分値がそ
れぞれ選択できるから10×10で合計100個の組み
合わせが考えられる。つまり、これらの組み合わせを表
現するためには100個の代表値を用意すればよい。1
0進数の100を表現できる最小のビット数は7(2の
7乗=128)であるから、100個の代表値は7ビッ
トで表現できる。全てのグループの予測差分値の組み合
わせを表現するためには、グループ毎のビット数とグル
ープの数との積に相当するだけのビット数が必要になる
から、仮に全体のサンプル数がmであれば、グループ数
はその1/2であるから、全体で3.5mビットのデー
タが作成されることになる。一方、サンプル毎に別々に
予測差分値を符号化する場合には、一サンプルに対して
10よりも大きなビット数、つまりは4ビットを符号化
用に割り当てる必要があるから、全体のデータのビット
数はサンプル数m×4ビットで4mビットが必要とな
る。この試算結果から分かるように、本発明によれば符
号化する際に発生する無駄容量を削減して、圧縮率を高
めることができる。
For example, in a case where one block contains 10 prediction difference values and two samples form one group, an arbitrary prediction difference value is calculated from all the prediction difference values as the number of samples. As for the number of combinations obtained by selecting the same number, 10 prediction difference values can be selected for each sample, so that 10 × 10, that is, a total of 100 combinations can be considered. That is, in order to express these combinations, 100 representative values may be prepared. 1
Since the minimum number of bits that can represent 0 in the decimal system is 7 (2 7 = 128), 100 representative values can be represented by 7 bits. In order to represent the combination of the prediction difference values of all the groups, it is necessary to have the number of bits corresponding to the product of the number of bits for each group and the number of groups, so if the total number of samples is m, For example, since the number of groups is 1/2, 3.5 m-bit data is created as a whole. On the other hand, when the prediction difference value is separately encoded for each sample, it is necessary to allocate more bits than 10 to one sample, that is, 4 bits for encoding. The number of samples is m × 4 bits, and 4 m bits are required. As can be seen from the results of this trial calculation, according to the present invention, it is possible to reduce the wasted capacity that occurs during encoding and increase the compression ratio.

【0009】本発明の圧縮方法においては、ADPCM
法を用いて圧縮されたデータを所定長毎の複数のブロッ
クに分割し、分割されたブロック毎に別々に前記テーブ
ルの生成と前記代表値への置換とを行うようにしてもよ
い。このようにすれば、データの全体を通じては多数の
予測差分値が出現する場合でも、そのデータを複数のブ
ロックに区分することにより、各ブロックに含まれる予
測差分値の個数(ここでは予測差分値の種類を意味す
る。)を減らして圧縮率をさらに高めることができる。
In the compression method of the present invention, the ADPCM
The data compressed using the method may be divided into a plurality of blocks each having a predetermined length, and the generation of the table and the replacement with the representative value may be separately performed for each of the divided blocks. In this way, even when a large number of prediction difference values appear throughout the data, by dividing the data into a plurality of blocks, the number of prediction difference values included in each block (here, the prediction difference value ), And the compression ratio can be further increased.

【0010】前記所定長のブロックに含まれている予測
差分値から、所定数の予測差分値を有効な予測差分値と
して選択する一方で、前記有効とされなかった予測差分
値を、有効とされた予測差分値で置き換えて当該ブロッ
クに含まれている予測差分値の個数を減少させ、その後
に前記テーブルの生成と前記代表値への置換とを行うよ
うにしてもよい。この場合には、一つのブロックに含ま
れる予測差分値の個数(種類)を減らすことができるの
で、用意すべき代表値の個数が減少して圧縮率が高ま
る。特に、予測差分値の個数が、代表値を表現するため
に必要なビット数が変化する境界を僅かに超えていると
きにこうした置換を行うことで、圧縮率を効果的に高め
ることができる。
[0010] While a predetermined number of prediction difference values are selected as valid prediction difference values from the prediction difference values included in the block of the predetermined length, the prediction difference values which are not made valid are selected as valid. The number of predicted difference values included in the block may be reduced by replacing the predicted difference value with the predicted difference value, and then the generation of the table and the replacement with the representative value may be performed. In this case, since the number (type) of prediction difference values included in one block can be reduced, the number of representative values to be prepared decreases, and the compression ratio increases. In particular, by performing such replacement when the number of prediction difference values slightly exceeds the boundary where the number of bits required to represent the representative value changes, the compression ratio can be effectively increased.

【0011】前記所定長のブロックに含まれている予測
差分値に関して値毎に出現数を計数し、その出現数に基
づいて前記有効な予測差分値を選択してもよい。このよ
うに出現数を調べることにより、例えば頻繁に出現する
予測差分値を優先して有効な値として採用して、予測差
分値の置換に伴う誤差を相対的に目立たないようにする
ことができる。
The number of occurrences may be counted for each value of the prediction difference value included in the block of the predetermined length, and the effective prediction difference value may be selected based on the number of occurrences. By examining the number of appearances in this way, for example, a prediction difference value that frequently appears is preferentially adopted as an effective value, and errors due to replacement of the prediction difference value can be made relatively inconspicuous. .

【0012】さらに、前記出現数が多い順に所定数の予
測差分値を有効な予測差分値として選択してもよい。こ
れにより、出現頻度が低い予測差分値から置き換えられ
ていくので、置換に伴う誤差が目立たない。
Further, a predetermined number of prediction difference values may be selected as effective prediction difference values in descending order of the number of appearances. As a result, since the prediction difference value having a low appearance frequency is replaced, the error due to the replacement is not conspicuous.

【0013】前記所定長のブロックに含まれている予測
差分値の個数を前記サンプル数と同数だけ累乗して得ら
れる値(上記の例では10×10=100)を2進数で
表現するために必要な最小のビット数をN(同例では7
に相当)としたとき、全ての代表値を、そのNビットで
表現できる範囲内から選ぶことが望ましい。これによ
り、代表値を必要最小限のビット数で表現でき、圧縮率
の向上を図ることができる。この場合、代表値を0から
始まる連続した整数に設定することができるが、上記N
ビットの範囲であれば必ずしも連続した整数を代表値と
して選ばなくてもよい。
In order to express a value (10 × 10 = 100 in the above example) obtained by raising the number of prediction difference values included in the block of the predetermined length by the same number as the number of samples in a binary number, The required minimum number of bits is set to N (7 in this example).
), It is desirable to select all representative values from a range that can be represented by the N bits. As a result, the representative value can be represented by the minimum necessary number of bits, and the compression ratio can be improved. In this case, the representative value can be set to a continuous integer starting from 0.
A continuous integer need not always be selected as a representative value within the range of bits.

【0014】また、全ての代表値を互いに区別して表現
するために必要な最小限のビット数で各グループにおけ
る予測差分値の組み合わせに対応する代表値を表現する
ことが望ましい。この場合、圧縮後のデータにおける代
表値に対応した部分が冗長なビットを含まないようにな
り、無駄なビットの発生を防止して圧縮率の低下を防ぐ
ことができる。
It is desirable that the representative value corresponding to the combination of the predicted difference values in each group be expressed with the minimum number of bits necessary to express all the representative values separately from each other. In this case, the portion corresponding to the representative value in the compressed data does not include redundant bits, so that unnecessary bits can be prevented from occurring and the compression rate can be prevented from lowering.

【0015】また、上述した圧縮方法を実現するための
本発明のプログラムは、ADPCM法を用いて圧縮され
た所定長のブロックに含まれている全ての予測差分値か
ら任意の予測差分値を所定数だけ選択して得られる全て
の組み合わせを、互いに異なる代表値にそれぞれ対応付
けたテーブルを生成する処理と、前記所定長のブロック
に含まれるサンプル毎の予測差分値を前記所定数と同数
のサンプル数毎にグループ化したと仮定し、各グループ
における予測差分値の組み合わせを前記テーブル上で対
応付けられている代表値に置き換えて表現する処理と、
をコンピュータに実行させるように構成されたものであ
る。
A program according to the present invention for realizing the above-described compression method includes a method for determining an arbitrary prediction difference value from all prediction difference values included in a block of a predetermined length compressed by using the ADPCM method. A process of generating a table in which all combinations obtained by selecting a number are respectively associated with different representative values, and a prediction difference value for each sample included in the block of the predetermined length is equal to the predetermined number of samples. Assuming that the numbers are grouped, a process of expressing the combination of the predicted difference values in each group by replacing them with the representative values associated on the table,
Is executed by a computer.

【0016】このプログラムをコンピュータで読み取っ
て実行することにより、本発明の圧縮方法を実施するこ
とができる。
By reading and executing this program by a computer, the compression method of the present invention can be implemented.

【0017】なお、本発明のプログラムは、上述した描
画方法の好ましい態様を備えることができる。すなわ
ち、圧縮用のプログラムは、ADPCM法を用いて圧縮
されたデータを所定長毎の複数のブロックに分割し、分
割されたブロック毎に別々に前記テーブルの生成と前記
代表値への置換とを行うように構成されてもよい。前記
所定長のブロックに含まれている予測差分値から、所定
数の予測差分値を有効な予測差分値として選択する一方
で、前記有効とされなかった予測差分値を、有効とされ
た予測差分値で置き換えて当該ブロックに含まれている
予測差分値の個数を減少させ、その後に前記テーブルの
生成と前記代表値への置換とを行うように構成されても
よい。前記所定長のブロックに含まれている予測差分値
に関して値毎に出現数を計数し、その出現数に基づいて
前記有効な予測差分値を選択するように構成されてもよ
い。前記出現数が多い順に所定数の予測差分値を有効な
予測差分値として選択するように構成されてもよい。前
記所定長のブロックに含まれている予測差分値の個数を
前記サンプル数と同数だけ累乗して得られる値を2進数
で表現するために必要な最小のビット数をNとしたと
き、全ての代表値が、そのNビットで表現できる範囲内
で選ばれるように構成されてもよい。各グループにおけ
る予測差分値の組み合わせに対応する代表値を、全ての
代表値を互いに区別して表現するために必要な最小限の
ビット数で表現するように構成されてもよい。
Note that the program of the present invention can have a preferable mode of the above-described drawing method. That is, the compression program divides the data compressed using the ADPCM method into a plurality of blocks each having a predetermined length, and separately generates the table and replaces the table with the representative value for each of the divided blocks. It may be configured to do so. While a predetermined number of prediction difference values are selected as valid prediction difference values from the prediction difference values included in the block of the predetermined length, the prediction difference values that are not validated are replaced with the prediction prediction values that are validated. It may be configured to reduce the number of prediction difference values included in the block by replacing with a value, and then generate the table and replace with the representative value. It may be configured such that the number of appearances is counted for each value with respect to the prediction difference value included in the block of the predetermined length, and the valid prediction difference value is selected based on the number of occurrences. A configuration may be adopted in which a predetermined number of prediction difference values are selected as valid prediction difference values in descending order of the number of appearances. Assuming that the minimum number of bits necessary to express a value obtained by raising the number of prediction difference values included in the block of the predetermined length by the same number as the number of samples in a binary number is N, The representative value may be configured to be selected within a range that can be represented by the N bits. The representative value corresponding to the combination of the prediction difference values in each group may be configured to be represented by the minimum number of bits necessary to represent all the representative values separately from each other.

【0018】さらに、本発明は、上記のいずれかの方法
にて圧縮されたデータに含まれているグループ毎の代表
値を、前記テーブルを参照してグループ毎の予測差分値
の組み合わせに変換し、その変換された予測差分値の組
み合わせに従って各サンプルの予測差分値を特定するデ
ータの復元方法、及び上記のいずれかの方法にて圧縮さ
れたデータに含まれているグループ毎の代表値を、前記
テーブルを参照してグループ毎の予測差分値の組み合わ
せに変換する処理と、その変換された予測差分値の組み
合わせに従って各サンプルの予測差分値を特定する処理
と、をコンピュータに実行させるように構成されたデー
タ復元用のプログラムを含む。
Further, according to the present invention, a representative value for each group included in data compressed by any one of the above methods is converted into a combination of prediction difference values for each group with reference to the table. A method of restoring data that specifies the predicted difference value of each sample according to the combination of the converted predicted difference values, and a representative value for each group included in the data compressed by any of the above methods, A configuration in which a computer is configured to execute a process of referring to the table to convert to a combination of prediction difference values for each group, and a process of specifying a prediction difference value of each sample according to the combination of the converted prediction difference values. Data recovery program.

【0019】これらの復元方法又はプログラムによれ
ば、上記の圧縮方法で圧縮されたデータを正しく復元で
きる。
According to these decompression methods or programs, data compressed by the above-described compression method can be correctly decompressed.

【0020】上述した本発明の各プログラムは記憶媒体
に記録されて使用者に提供されてもよいし、有線又は無
線の伝送媒体に乗せて使用者に提供されてもよい。
Each of the above-described programs of the present invention may be recorded on a storage medium and provided to the user, or may be provided on the wired or wireless transmission medium to the user.

【0021】[0021]

【発明の実施の形態】図1により本発明の圧縮方法の一
例を説明する。図1(a)は本発明により圧縮される対
象の信号波形の一例と、その信号波形からADPCM法
を用いて得られた予測差分値との関係を示している。図
示の例では、まず、圧縮前の信号波形を適当なサンプリ
ング周波数に従ってADPCM法で圧縮して、サンプル
毎に量子化された予測差分値を得る。図1(a)では予
測差分値をアルファベットにて示しているが、実際の予
測差分値は任意の数値で示される。但し、各予測差分値
が10進法の1桁に相当する値とは限らず、2桁の場合
もあり得る。また、予測差分値A〜Jは必ずしも連続し
た整数とは限らず、適当に離散した値を取ることもあ
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An example of a compression method according to the present invention will be described with reference to FIG. FIG. 1A shows a relationship between an example of a signal waveform to be compressed according to the present invention and a predicted difference value obtained from the signal waveform by using the ADPCM method. In the illustrated example, first, a signal waveform before compression is compressed by an ADPCM method in accordance with an appropriate sampling frequency to obtain a predicted difference value quantized for each sample. In FIG. 1A, the predicted difference value is indicated by an alphabet, but the actual predicted difference value is indicated by an arbitrary numerical value. However, each prediction difference value is not limited to a value corresponding to one digit in the decimal system, and may be two digits. Further, the prediction difference values A to J are not necessarily continuous integers, and may take appropriate discrete values.

【0022】ADPCM法により量子化された予測差分
値を取得した後は、その圧縮されたデータを所定のサン
プル数(図ではm)毎にブロックに分割する。このブロ
ックを単位として以下の処理を行う。なお、信号波形を
ADPCM法にて量子化する際に、所定長毎にブロック
分割を並行して行ってもよい。
After obtaining the prediction difference value quantized by the ADPCM method, the compressed data is divided into blocks every predetermined number of samples (m in the figure). The following processing is performed for each block. When the signal waveform is quantized by the ADPCM method, block division may be performed in parallel for every predetermined length.

【0023】まず、一つのブロックに含まれている予測
差分値を適当なサンプル数毎(ここでは2サンプル毎)
にグループ化する。次に、各グループ毎にまとめて予測
差分値を符号化する。図1(b)はこうして得られる符
号化されたデータの要部を示している。この図から明ら
かなように、圧縮データは、テーブルと、各グループ毎
に符号化された値L(1)〜L(n)とを含んでいる。
その他にも、一つのグループを構成するサンプル数を指
定する情報等を圧縮データに含めてもよい。
First, the prediction difference value included in one block is calculated for each appropriate number of samples (here, every two samples).
Group into. Next, the prediction difference value is encoded for each group. FIG. 1B shows a main part of the encoded data thus obtained. As is clear from this figure, the compressed data includes a table and values L (1) to L (n) encoded for each group.
In addition, information specifying the number of samples forming one group may be included in the compressed data.

【0024】テーブルは、図1(c)に示すように、一
つのブロックに含まれている全ての予測差分値から、任
意の予測差分値をサンプル数2と同数だけ選択して得ら
れる全ての組み合わせを、互いに異なる代表値にそれぞ
れ対応付けたものである。
As shown in FIG. 1 (c), the table contains all the prediction difference values included in one block and selects all the prediction difference values by the same number as the number of samples 2. The combinations are respectively associated with different representative values.

【0025】例えば、一つのブロックにA〜Jまでの1
0個の予測差分値が含まれていると仮定した場合、各サ
ンプルで予測差分値が重複する場合があるから、想定さ
れる予測差分値の組み合わせは10×10で合計100
通り存在する。100通りの組み合わせを00〜99ま
での連続した100個の代表値(但し整数)と対応付け
てテーブルを生成する。
For example, one block from A to J is stored in one block.
When it is assumed that 0 prediction difference values are included, the prediction difference values may overlap in each sample.
Exists. A table is generated by associating 100 combinations with 100 continuous representative values (note that integers) from 00 to 99.

【0026】こうして得られたテーブルを参照して、グ
ループ毎の予測差分値の組み合わせを代表値に置き換え
て符号化する。例えば図1(b)の最初のグループの予
測差分値の組み合わせは「AC」であるため、これに対
応する代表値はテーブルを参照して「02」となる。決
定された代表値は、所定のビット数で符号化される。こ
こで使用されるビット数は、全ての代表値00〜99を
互いに区別して表現するために必要な最小限のビット数
に設定される。つまり、00〜99までを区別して表現
するために必要な最小限のビット数は7ビット(2の7
乗=128)であるから、各グループの代表値は7ビッ
トで符号化される。最初のグループの場合は「0000
010」となる。以下、同様にして各グループの予測差
分値の組み合わせをテーブルに従って代表値に置換し、
その置換された代表値を7ビットの2進数で表現する。
With reference to the table thus obtained, encoding is performed by replacing a combination of prediction difference values for each group with a representative value. For example, since the combination of the predicted difference values of the first group in FIG. 1B is “AC”, the representative value corresponding to this is “02” with reference to the table. The determined representative value is encoded with a predetermined number of bits. The number of bits used here is set to the minimum number of bits necessary to represent all the representative values 00 to 99 in a distinguishable manner. In other words, the minimum number of bits necessary to express 00 to 99 separately is 7 bits (7 of 2).
Since the power is 128, the representative value of each group is encoded with 7 bits. "0000" for the first group
010 ". Hereinafter, similarly, the combination of the predicted difference values of each group is replaced with a representative value according to the table,
The replaced representative value is represented by a 7-bit binary number.

【0027】m個のサンプルを含んだブロックを2サン
プルずつグループ化した場合、グループ数nはm/2で
あるから、符号データ部分(L(1)〜L(n))のビ
ット数は7×m/2で3.5mビットとなる。これに対
して、各サンプルを別々に符号化した場合、前述のよう
に一つのブロックに10個の予測差分値が含まれてお
り、それらを区別するには各サンプルについて予測差分
値を4ビットで表現しなければならないから、得られる
データのビット数はサンプル数mの4倍(4m)とな
る。これにより、データ部分を比較すれば本発明の圧縮
方法が高効率であることが理解できる。しかも、その優
位性はサンプル数mが大きいほど顕著となる。例えばサ
ンプル数を256個とすると、本発明によれば7×25
6/2=896ビットのデータとなるのに対して、サン
プル毎の符号化では4×256=1024ビットのデー
タとなる。従って、テーブルの符号化に要するデータ量
を考慮しても本発明の方法によれば圧縮率を高くできる
ことが期待できる。
When a block including m samples is grouped by two samples, the number n of groups is m / 2, so that the number of bits of the code data portion (L (1) to L (n)) is 7 Xm / 2 results in 3.5 m bits. On the other hand, when each sample is separately coded, as described above, one block contains 10 prediction difference values, and to distinguish them, the prediction difference value is 4 bits for each sample. Therefore, the number of bits of the obtained data is four times (4m) the number of samples m. From this, it can be understood that the compression method of the present invention is highly efficient by comparing the data portions. Moreover, the superiority becomes more remarkable as the number m of samples increases. For example, if the number of samples is 256, according to the present invention, 7 × 25
While 6/2 = 896 bits of data, 4 × 256 = 1024 bits of data for each sample encoding. Therefore, it can be expected that the compression ratio can be increased according to the method of the present invention even when the amount of data required for encoding the table is considered.

【0028】上述した方法では、一つのブロックに含ま
れる全ての量子化された予測差分値の組み合わせを代表
値で表現できるようにしたが、一部の予測差分値を有効
なものとして扱い、他の予測差分値をその有効とされた
予測差分値で近似することにより代表値の数を減らして
もよい。
In the method described above, all the combinations of the quantized prediction difference values included in one block can be represented by the representative value. However, some of the prediction difference values are treated as valid, and other prediction difference values are treated as valid. The number of representative values may be reduced by approximating the prediction difference value of the above with the effective prediction difference value.

【0029】次に、図2〜図4を参照して本発明の実施
形態をより詳しく説明する。図2(a)及び(b)は本
発明の圧縮方法及び復元方法をそれぞれ実現するための
制御装置の構成を示している。図2(a)に示すよう
に、圧縮装置(符号化装置)1では、入力信号X(n)
と適応予測部2からの予測値との差分D(n)が適応量
子化部3に導かれて量子化される。量子化された予測差
分値は逆適応量子化部5に導かれて差分信号へと変換さ
れ、その逆適応量子化部5から出力される差分信号は適
応予測部2に導かれて次のサンプルのデータを量子化す
る際に使用される。こうした回路構成はADPCM法を
用いる周知の圧縮回路と同一である。本実施形態の特徴
は、適応量子化部3で量子化された予測差分値を符号変
換部4に導き、そこで上述した方法により符号化を行う
点に特徴を有している。符号変換部4からは符号化され
たデータL(n)とブロック毎に生成されるテーブルT
Bとが出力される。
Next, an embodiment of the present invention will be described in more detail with reference to FIGS. FIGS. 2A and 2B show the configuration of a control device for realizing the compression method and the decompression method of the present invention, respectively. As shown in FIG. 2A, in the compression device (encoding device) 1, the input signal X (n)
The difference D (n) between the data and the prediction value from the adaptive prediction unit 2 is guided to the adaptive quantization unit 3 and is quantized. The quantized prediction difference value is guided to the inverse adaptive quantization unit 5 and converted into a difference signal, and the difference signal output from the inverse adaptive quantization unit 5 is guided to the adaptive prediction unit 2 and Is used when quantizing the data of. Such a circuit configuration is the same as a known compression circuit using the ADPCM method. The feature of the present embodiment is that the prediction difference value quantized by the adaptive quantization unit 3 is guided to the code conversion unit 4, where the coding is performed by the above-described method. The encoded data L (n) and a table T generated for each block
B is output.

【0030】一方、図2(b)に示すように、復元装置
6では、本発明に従って生成された圧縮データL(n)
がテーブルTBとともに符号逆変換部7へ導かれる。そ
の符号逆変換部7では、上述した符号化と逆の手順でサ
ンプル毎の予測差分値が求められる。予測差分値への変
換後は復号化部8にて予測差分値から差分信号が復元さ
れ、その差分信号と適応予測部9からの予測値とが加算
されて元の入力信号が復元される。復号化部8以降の回
路構成はADPCM法を用いる周知の復元回路と同一で
ある。
On the other hand, as shown in FIG. 2B, in the decompression device 6, the compressed data L (n) generated according to the present invention is
Is guided to the sign reverse conversion unit 7 together with the table TB. In the code inverse transform unit 7, a prediction difference value for each sample is obtained in a procedure reverse to the above-described encoding. After the conversion to the prediction difference value, the decoding unit 8 restores the difference signal from the prediction difference value, adds the difference signal to the prediction value from the adaptive prediction unit 9, and restores the original input signal. The circuit configuration after the decoding unit 8 is the same as a well-known restoration circuit using the ADPCM method.

【0031】なお、図2に示した符号変換部4及び符号
逆変換部7は、論理回路を組み合わせたハードウエア装
置として構成されてもよいし、マイクロプロセッサと所
定のソフトウエアとを組み合わせて構成されてもよい。
The code conversion unit 4 and the code inverse conversion unit 7 shown in FIG. 2 may be configured as a hardware device combining logic circuits, or may be configured by combining a microprocessor and predetermined software. May be done.

【0032】図3は符号変換部4にて実行される符号化
処理の流れを示すフローチャートである。この図から明
らかなように、符号変換部4では、処理対象のデータが
与えられると、そのデータをまず所定のサンプル数毎の
ブロックに分割する(ステップS1)。続いて、符号化
処理が未だ行われていないブロックを選択し(ステップ
S2)、そのブロックに含まれている予測差分値の出現
数を値毎にカウントする(ステップS3)。
FIG. 3 is a flowchart showing the flow of the encoding process executed by the code conversion section 4. As is apparent from this figure, when the data to be processed is given, the code conversion unit 4 first divides the data into blocks each having a predetermined number of samples (step S1). Subsequently, a block that has not been subjected to the encoding process is selected (step S2), and the number of appearances of the prediction difference value included in the block is counted for each value (step S3).

【0033】次に、処理対象のブロックに含まれている
予測差分値を出現数の多いものから順に所定数だけ有効
値として選定し(ステップS4)、有効値に選ばれなか
った予測差分値を最も近い有効値に置換する(ステップ
S5)。例えば予測差分値が4及び7が有効値として選
択され、予測差分値5、6が有効値に選ばれなかった場
合、予測差分値5は予測差分値4で近似し、予測差分値
6は予測差分値7で近似する。その後、有効値に選択さ
れた予測差分値を代表値に変換するためのテーブルを作
成する(ステップS6)。テーブルは図1(c)に例示
した通りである。
Next, a predetermined number of predictive difference values included in the block to be processed are selected as valid values in descending order of appearance number (step S4), and the predictive difference values not selected as valid values are determined. Replace with the closest valid value (step S5). For example, when the prediction difference values 4 and 7 are selected as valid values and the prediction difference values 5 and 6 are not selected as valid values, the prediction difference value 5 is approximated by the prediction difference value 4, and the prediction difference value 6 is Approximate by the difference value 7. Thereafter, a table for converting the prediction difference value selected as the effective value into the representative value is created (step S6). The table is as illustrated in FIG.

【0034】テーブルの作成後は、処理対象のブロック
に含まれている所定のサンプル数毎に予測差分値の組み
合わせを変換テーブルに従って代表値に置き換え、その
置き換えられた代表値を符号化する(ステップS7)。
このときの代表値の選び方、及び符号化ビット数の選び
方は上述した通りである。
After the creation of the table, the combination of the predicted difference values is replaced with a representative value in accordance with the conversion table for each predetermined number of samples included in the block to be processed, and the replaced representative value is encoded (step). S7).
The method of selecting the representative value and the method of selecting the number of coded bits at this time are as described above.

【0035】その後、処理対象のブロックに含まれてい
る全ての予測差分値を処理したか否か判断し(ステップ
S8)、未処理の予測差分値があればステップS7へ戻
る。全ての予測差分値を処理した場合には全てのブロッ
クを処理したか否か判断し(ステップS9)、未処理の
ブロックがあればステップS1へ戻る。全てのブロック
を処理したならば図3の処理を終える。
Thereafter, it is determined whether or not all the predicted difference values included in the block to be processed have been processed (step S8), and if there are unprocessed predicted difference values, the process returns to step S7. If all the predicted difference values have been processed, it is determined whether all blocks have been processed (step S9), and if there are unprocessed blocks, the process returns to step S1. When all the blocks have been processed, the processing in FIG. 3 ends.

【0036】一方、図4は、図2(b)の符号逆変換部
7にて実行される逆符号化処理の流れを示すフローチャ
ートである。この図から明らかなように、符号逆変換部
7では、復号すべき処理対象の圧縮データが与えられる
と、そのデータに含まれている復号化前の未処理のブロ
ックを選択し(ステップS11)、そのブロックに対応
付けて用意されているテーブルを読み込む(ステップS
12)。続いて、読み込んだテーブルを参照して、2進
数で符号化されている代表値をグループ毎の予測差分値
の組み合わせに変換する(ステップS13)。次に、そ
の予測差分値の組み合わせをサンプル毎の予測差分値へ
と分割する(ステップS14)。その後、一つのブロッ
クに含まれている全てのグループのデータを処理したか
否か判断し(ステップS15)、未処理のグループがあ
ればステップS14へ戻る。
On the other hand, FIG. 4 is a flowchart showing the flow of the inverse encoding process executed by the inverse code converter 7 in FIG. 2B. As is apparent from this figure, when the compressed data to be decoded is given, the code inverse transform unit 7 selects an unprocessed block before decoding included in the data (step S11). , Read a table prepared in association with the block (step S
12). Subsequently, referring to the read table, the representative value encoded in the binary number is converted into a combination of the predicted difference values for each group (step S13). Next, the combination of the prediction difference values is divided into prediction difference values for each sample (step S14). Thereafter, it is determined whether or not data of all groups included in one block has been processed (step S15), and if there is an unprocessed group, the process returns to step S14.

【0037】全てのグループを処理したときは全てのブ
ロックの復号を終了したか否か判断し(ステップS1
6)、未処理のブロックがあればステップS11へ戻
る。全てのブロックを処理したならば図4の処理を終え
る。
When all groups have been processed, it is determined whether or not decoding of all blocks has been completed (step S1).
6) If there is an unprocessed block, the process returns to step S11. When all the blocks have been processed, the processing in FIG. 4 ends.

【0038】以上の実施形態はあくまで本発明の一例で
あり、本発明は種々の形態で実施してよい。例えば、一
つのグループに含まれるサンプル数は2に限らず、3又
はそれ以上の値でもよい。図3の処理においてステップ
S3からステップS5を省略し、一つのブロックに含ま
れている全ての予測差分値の組み合わせに対応してテー
ブルを作成してもよい。予測差分値を有効値とそうでな
いものとに分ける場合、有効値の個数は、その有効値の
置換によって、代表値を表現するために必要なビット数
が減少する範囲の最大値に設定するとよい。予測差分値
の有効値の選択は、必ずしも出現数のみに基づいて選ば
なくてもよい。例えば、置換による誤差が目立たない領
域では、出現数が多くても一部の予測差分値を有効値か
ら外してもよい。
The above embodiment is merely an example of the present invention, and the present invention may be embodied in various forms. For example, the number of samples included in one group is not limited to two, and may be three or more. In the processing of FIG. 3, steps S3 to S5 may be omitted, and a table may be created corresponding to all combinations of prediction difference values included in one block. When the prediction difference value is divided into a valid value and a non-valid value, the number of valid values may be set to a maximum value in a range in which the number of bits required to represent a representative value is reduced by replacing the valid value. . The selection of the effective value of the prediction difference value does not necessarily have to be made based only on the number of appearances. For example, in a region where errors due to replacement are not conspicuous, even if the number of occurrences is large, some predicted difference values may be excluded from the effective values.

【0039】一つのブロックに含まれている予測差分値
の個数(種類)が所定数を超える場合の処理としては、
符号化を進める過程で予測差分値の個数が所定数を越え
た場合、それまでに選択されている予測差分値のうち適
当な値を別の予測差分値に置換し、最終的に選択される
予測差分値が最小の予測差分値から最大の予測差分値ま
での範囲内でほぼ均等に割り付けられるように調整する
ものでもよい。
When the number (type) of prediction difference values included in one block exceeds a predetermined number, processing is as follows.
If the number of prediction difference values exceeds a predetermined number in the process of proceeding with encoding, an appropriate value among the prediction difference values selected so far is replaced with another prediction difference value and finally selected. Adjustment may be made so that the prediction difference values are almost equally allocated within the range from the minimum prediction difference value to the maximum prediction difference value.

【0040】[0040]

【発明の効果】以上に説明したように、本発明の圧縮方
法によれば、複数のサンプルの予測差分値を一つのグル
ープにまとめて符号化しているので、サンプル毎に一定
のビット数を割り当てて符号化する従来方法の場合にサ
ンプル毎に生じていた無駄が、グループ単位にまとめら
れるようになり、ブロックの全体で生じる無駄が相対的
に減少して圧縮率が高まる。また、本発明の復元方法に
よれば、本発明の圧縮方法で圧縮されたデータを好適に
復元することができ、本発明のプログラムによれば、コ
ンピュータを用いて本発明の圧縮方法又は復元方法を実
施することができる。
As described above, according to the compression method of the present invention, since the prediction difference values of a plurality of samples are grouped and coded, a fixed number of bits are assigned to each sample. The waste generated for each sample in the case of the conventional encoding method is now grouped into groups, the waste generated for the entire block is relatively reduced, and the compression ratio is increased. Further, according to the decompression method of the present invention, the data compressed by the compression method of the present invention can be suitably decompressed. According to the program of the present invention, the compression method or the decompression method of the present invention can be performed by using a computer. Can be implemented.

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

【図1】本発明の圧縮方法の概略を示す図。FIG. 1 is a diagram schematically showing a compression method according to the present invention.

【図2】本発明の圧縮方法及び復元方法をそれぞれ実現
するための制御装置の構成の一例を示す図。
FIG. 2 is a diagram showing an example of a configuration of a control device for realizing a compression method and a decompression method of the present invention.

【図3】図2の符号変換部にて行われる符号化処理の手
順を示すフローチャート。
FIG. 3 is a flowchart showing a procedure of an encoding process performed by a code conversion unit in FIG. 2;

【図4】図2の符号逆変換部にて行われる逆符号化処理
の手順を示すフローチャート。
FIG. 4 is a flowchart showing a procedure of an inverse encoding process performed by the inverse code converter of FIG. 2;

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

1 圧縮装置 2 適応予測部 3 適応量子化部 4 符号変換部 5 逆適応量子化部 6 復元装置 7 符号逆変換部 9 適応予測部 DESCRIPTION OF SYMBOLS 1 Compressor 2 Adaptive prediction part 3 Adaptive quantization part 4 Code conversion part 5 Inverse adaptive quantization part 6 Decompression device 7 Code inverse transformation part 9 Adaptive prediction part

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5D045 DA07 5J064 AA02 BA05 BB03 BB12 BC06 BC08 BD01  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5D045 DA07 5J064 AA02 BA05 BB03 BB12 BC06 BC08 BD01

Claims (16)

【特許請求の範囲】[Claims] 【請求項1】 ADPCM法を用いて圧縮された所定長
のブロックに含まれるサンプル毎の予測差分値を所定の
サンプル数毎にグループ化し、 前記所定長のブロックに含まれている全ての予測差分値
から任意の予測差分値を前記サンプル数と同数だけ選択
して得られる全ての組み合わせを、互いに異なる代表値
にそれぞれ対応付けたテーブルを生成し、 各グループにおける予測差分値の組み合わせを前記テー
ブル上で対応付けられている代表値に置き換えて表現す
ることを特徴とするデータの圧縮方法。
1. A prediction difference value for each sample included in a block of a predetermined length compressed using the ADPCM method is grouped by a predetermined number of samples, and all prediction differences included in the block of the predetermined length are included. A table is generated in which all combinations obtained by selecting an arbitrary number of prediction difference values from the values by the same number as the number of samples are respectively associated with different representative values. A data compression method characterized in that the data is represented by being replaced with a representative value associated with.
【請求項2】 ADPCM法を用いて圧縮されたデータ
を所定長毎の複数のブロックに分割し、分割されたブロ
ック毎に別々に前記テーブルの生成と前記代表値への置
換とを行うことを特徴とする請求項1に記載のデータの
圧縮方法。
2. The method according to claim 1, wherein the data compressed using the ADPCM method is divided into a plurality of blocks each having a predetermined length, and the table is generated and replaced with the representative value separately for each divided block. 2. The data compression method according to claim 1, wherein:
【請求項3】 前記所定長のブロックに含まれている予
測差分値から、所定数の予測差分値を有効な予測差分値
として選択する一方で、前記有効とされなかった予測差
分値を、有効とされた予測差分値で置き換えて当該ブロ
ックに含まれている予測差分値の個数を減少させ、その
後に前記テーブルの生成と前記代表値への置換とを行う
ことを特徴とする請求項1又は2に記載のデータの圧縮
方法。
3. While selecting a predetermined number of prediction difference values as valid prediction difference values from prediction difference values included in the block of the predetermined length, the prediction difference values that are not validated are selected as valid prediction difference values. The number of predicted difference values included in the block is reduced by replacing the predicted difference value with the predicted difference value, and after that, the generation of the table and the replacement with the representative value are performed. 3. The data compression method according to 2.
【請求項4】 前記所定長のブロックに含まれている予
測差分値に関して値毎に出現数を計数し、その出現数に
基づいて前記有効な予測差分値を選択することを特徴と
する請求項3に記載のデータの圧縮方法。
4. The method according to claim 1, wherein the number of appearances is counted for each value of the prediction difference value included in the block of the predetermined length, and the effective prediction difference value is selected based on the number of occurrences. 3. The data compression method according to 3.
【請求項5】 前記出現数が多い順に所定数の予測差分
値を有効な予測差分値として選択することを特徴とする
請求項4に記載のデータの圧縮方法。
5. The data compression method according to claim 4, wherein a predetermined number of prediction difference values are selected as effective prediction difference values in descending order of the number of appearances.
【請求項6】 前記所定長のブロックに含まれている予
測差分値の個数を前記サンプル数と同数だけ累乗して得
られる値を2進数で表現するために必要な最小のビット
数をNとしたとき、全ての代表値が、そのNビットで表
現できる範囲内から選ばれていることを特徴とする請求
項1〜5のいずれかに記載のデータの圧縮方法。
6. The minimum number of bits required to represent a value obtained by raising the number of prediction difference values included in the block of the predetermined length by the same number as the number of samples to a binary number is represented by N. 6. The data compression method according to claim 1, wherein all representative values are selected from a range that can be represented by the N bits.
【請求項7】 全ての代表値を互いに区別して表現する
ために必要な最小限のビット数で各グループにおける予
測差分値の組み合わせに対応する代表値を表現すること
を特徴とする請求項1〜6のいずれかに記載のデータの
圧縮方法。
7. A representative value corresponding to a combination of predicted difference values in each group is represented by a minimum number of bits necessary for distinguishing all representative values from each other. 6. The data compression method according to any one of 6.
【請求項8】 ADPCM法を用いて圧縮された所定長
のブロックに含まれている全ての予測差分値から任意の
予測差分値を所定数だけ選択して得られる全ての組み合
わせを、互いに異なる代表値にそれぞれ対応付けたテー
ブルを生成する処理と、 前記所定長のブロックに含まれるサンプル毎の予測差分
値を前記所定数と同数のサンプル数毎にグループ化した
と仮定し、各グループにおける予測差分値の組み合わせ
を前記テーブル上で対応付けられている代表値に置き換
えて表現する処理と、をコンピュータに実行させるよう
に構成されたことを特徴とするデータ圧縮用のプログラ
ム。
8. All combinations obtained by selecting a predetermined number of arbitrary prediction difference values from all prediction difference values included in a block of a predetermined length compressed using the ADPCM method are represented by different representatives. Processing for generating a table corresponding to each value, and assuming that prediction difference values for each sample included in the block of the predetermined length are grouped for each of the same number of samples as the predetermined number, A data compression program configured to cause a computer to execute a process of replacing a combination of values with a representative value associated on the table.
【請求項9】 ADPCM法を用いて圧縮されたデータ
を所定長毎の複数のブロックに分割し、分割されたブロ
ック毎に別々に前記テーブルの生成と前記代表値への置
換とを行うように構成されたことを特徴とする請求項8
に記載のプログラム。
9. The data compressed using the ADPCM method is divided into a plurality of blocks each having a predetermined length, and the table is generated and replaced with the representative value separately for each of the divided blocks. 9. The structure according to claim 8, wherein
The program described in.
【請求項10】 前記所定長のブロックに含まれている
予測差分値から、所定数の予測差分値を有効な予測差分
値として選択する一方で、前記有効とされなかった予測
差分値を、有効とされた予測差分値で置き換えて当該ブ
ロックに含まれている予測差分値の個数を減少させ、そ
の後に前記テーブルの生成と前記代表値への置換とを行
うように構成されたことを特徴とする請求項8又は9に
記載のプログラム。
10. While selecting a predetermined number of prediction difference values as valid prediction difference values from prediction difference values included in the block of the predetermined length, the prediction difference values which are not validated are selected as valid prediction difference values. Characterized in that the number of prediction difference values included in the block is reduced by replacing the prediction difference value with the calculated prediction difference value, and then the generation of the table and the replacement with the representative value are performed. The program according to claim 8, which performs the program.
【請求項11】 前記所定長のブロックに含まれている
予測差分値に関して値毎に出現数を計数し、その出現数
に基づいて前記有効な予測差分値を選択するように構成
されたことを特徴とする請求項10に記載のプログラ
ム。
11. A method for counting the number of appearances for each value of a prediction difference value included in a block of the predetermined length, and selecting the valid prediction difference value based on the number of occurrences. The program according to claim 10, wherein:
【請求項12】 前記出現数が多い順に所定数の予測差
分値を有効な予測差分値として選択するように構成され
たことを特徴とする請求項11に記載のプログラム。
12. The program according to claim 11, wherein a predetermined number of prediction difference values are selected as effective prediction difference values in descending order of the number of appearances.
【請求項13】 前記所定長のブロックに含まれている
予測差分値の個数を前記サンプル数と同数だけ累乗して
得られる値を2進数で表現するために必要な最小のビッ
ト数をNとしたとき、全ての代表値が、そのNビットで
表現できる範囲内で選ばれるように構成されていること
を特徴とする請求項8〜12のいずれかに記載のプログ
ラム。
13. The minimum number of bits necessary for expressing a value obtained by raising the number of prediction difference values included in the block of the predetermined length by the same number as the number of samples in a binary number is represented by N. The program according to any one of claims 8 to 12, wherein all the representative values are selected within a range that can be represented by the N bits.
【請求項14】 全ての代表値を互いに区別して表現す
るために必要な最小限のビット数で各グループにおける
予測差分値の組み合わせに対応する代表値を表現するよ
うに構成されたことを特徴とする請求項8〜13のいず
れかに記載のプログラム。
14. A method for representing a representative value corresponding to a combination of prediction difference values in each group with a minimum number of bits necessary to represent all the representative values in a distinguishable manner. The program according to any one of claims 8 to 13.
【請求項15】 請求項1〜7のいずれかの方法にて圧
縮されたデータに含まれているグループ毎の代表値を、
前記テーブルを参照してグループ毎の予測差分値の組み
合わせに変換し、その変換された予測差分値の組み合わ
せに従って各サンプルの予測差分値を特定することを特
徴とするデータの復元方法。
15. A representative value for each group included in data compressed by the method according to any one of claims 1 to 7,
A data restoration method comprising: converting a prediction difference value for each group into a combination of prediction difference values for each group with reference to the table; and specifying a prediction difference value for each sample according to the converted combination of prediction difference values.
【請求項16】 請求項8〜14のいずれかの方法にて
圧縮されたデータに含まれているグループ毎の代表値
を、前記テーブルを参照してグループ毎の予測差分値の
組み合わせに変換する処理と、その変換された予測差分
値の組み合わせに従って各サンプルの予測差分値を特定
する処理と、をコンピュータに実行させるように構成さ
れたことを特徴とするデータ復元用のプログラム。
16. A method for converting a representative value for each group included in data compressed by the method according to any one of claims 8 to 14 into a combination of prediction difference values for each group with reference to the table. A data restoration program configured to cause a computer to execute a process and a process of specifying a predicted difference value of each sample according to a combination of the converted predicted difference values.
JP2001098784A 2001-03-30 2001-03-30 Compressing method and restoring method of data, and program used for the same Pending JP2002297194A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001098784A JP2002297194A (en) 2001-03-30 2001-03-30 Compressing method and restoring method of data, and program used for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001098784A JP2002297194A (en) 2001-03-30 2001-03-30 Compressing method and restoring method of data, and program used for the same

Publications (1)

Publication Number Publication Date
JP2002297194A true JP2002297194A (en) 2002-10-11

Family

ID=18952402

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001098784A Pending JP2002297194A (en) 2001-03-30 2001-03-30 Compressing method and restoring method of data, and program used for the same

Country Status (1)

Country Link
JP (1) JP2002297194A (en)

Similar Documents

Publication Publication Date Title
KR100750165B1 (en) CAC encoding method and apparatus using improved context model selection for improving compression rate, and CA decoding method and apparatus
US5045852A (en) Dynamic model selection during data compression
US5884269A (en) Lossless compression/decompression of digital audio data
US8712783B2 (en) Entropy encoding and decoding using direct level and run-length/level context-adaptive arithmetic coding/decoding modes
KR100894002B1 (en) Device and data method for selective compression and decompression and data format for compressed data
EP1258997B1 (en) Lossless encoding and decoding system
KR100889750B1 (en) Lossless encoding / decoding apparatus of audio signal and method thereof
JPH10173541A (en) Compressed encoding and decoding system
CN115882866A (en) Data compression method based on data difference characteristic
JP2003524983A (en) Method and apparatus for optimized lossless compression using multiple coders
JP2004258603A (en) Entropy encoding adapting encoding between level mode and run length/level mode
EP2251981A1 (en) Method and apparatus for coding and decoding
JP2002297194A (en) Compressing method and restoring method of data, and program used for the same
JP2002091497A (en) Audio signal encoding method and decoding methods, and storage medium stored with program to execute these methods
JP2005521324A (en) Method and apparatus for lossless data compression and decompression
JPS5875341A (en) Data compression device using finite difference
JPH06343168A (en) Encoding method for digital signal, method for generating table for encoding, encoding device and encoding method
JP3617804B2 (en) PCM signal encoding apparatus and decoding apparatus
JPWO2019021552A1 (en) Encoding device, decoding device, data structure of code string, encoding method, decoding method, encoding program, decoding program
JPH09172379A (en) Variable length en-coding device/method
JP2543345B2 (en) Speech coding system
US7936290B2 (en) Dynamic selection of suitable codes for variable length coding and decoding
JP2025024868A (en) Decoder, Encoder, Decoding Method, and Encoding Method
JPH0629861A (en) Data compression method
JPS6276931A (en) Data compressor

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040629

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20060427

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20060523