JPH05308328A - Data compression and demodulation system - Google Patents

Data compression and demodulation system

Info

Publication number
JPH05308328A
JPH05308328A JP11181192A JP11181192A JPH05308328A JP H05308328 A JPH05308328 A JP H05308328A JP 11181192 A JP11181192 A JP 11181192A JP 11181192 A JP11181192 A JP 11181192A JP H05308328 A JPH05308328 A JP H05308328A
Authority
JP
Japan
Prior art keywords
data
prediction
register
compressed
value
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.)
Withdrawn
Application number
JP11181192A
Other languages
Japanese (ja)
Inventor
Motoo Azuma
基雄 東
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.)
Olympus Corp
Original Assignee
Olympus Optical Co Ltd
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 Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP11181192A priority Critical patent/JPH05308328A/en
Publication of JPH05308328A publication Critical patent/JPH05308328A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)

Abstract

PURPOSE:To make intermediate compressed data not exceed actual data bit length and obtain large compression effect by comparing prediction data from a predictor with current data and obtaining the frequency of prediction up to the coincidence between both data in the form of compressed data. CONSTITUTION:In a register 1, 1st input data is inputted and stored. The predictor 5 sends a 1st predicted value in a prediction data group 7 to a comparator 6. The comparator 6 compares the predicted value with the 1st input data stored in the register 1. When they do not match each other, a counter 8 counts up by one and the 1st predicted value is removed from the prediction data group 7. Then the predictor 5 predicts and outputs a new predicted value from the data group in the updated prediction data group 7 and a comparator 6 makes a 2nd comparison. Then this comparing operation is repeated until the new predicted value matches the input data value in the register 1. When a coincidence is obtained, a gate 9 is opened and the counted value of the counter 8, i.e., intermediate data is sent to a Huffman encoder 10 and transmitted as encoded compressed data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、データを圧縮して圧縮
データとして伝送または記録を行い、該圧縮データを復
調して再生するデータ圧縮・復調方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data compression / demodulation system in which data is compressed and transmitted or recorded as compressed data, and the compressed data is demodulated and reproduced.

【0002】[0002]

【従来の技術】現在、画像データの圧縮方法として知ら
れているDPCM方式は、対象となる画素データよりも
以前の画素データから該対象となる画素データを予測
し、その予測データ値と実際のデータ値との差分を新た
なデータとしてハフマン符号等を用いて圧縮した後、伝
送または記録を行い、再生時にはこの圧縮されたデータ
を復調する方式である。
2. Description of the Related Art The DPCM method, which is currently known as a method for compressing image data, predicts target pixel data from pixel data prior to the target pixel data, and predicts the predicted data value and the actual pixel data. This is a method in which the difference from the data value is compressed as new data using a Huffman code or the like, and then transmitted or recorded, and at the time of reproduction, the compressed data is demodulated.

【0003】[0003]

【発明が解決しようとする課題】ところで、上記DPC
M方式は、上述したように過去のデータに基づいて現在
のデータを予測するため該予測器の性能が圧縮率を左右
することは言うまでもないが、予測データ値と実際のデ
ータ値との大小関係から、これらデータ値の差分データ
値が正負両方の値をとる可能性があり、この正負の状態
をも管理しなくてはならず圧縮率の低下を招いている。
By the way, the above DPC
The M method predicts the current data based on the past data as described above, and it goes without saying that the performance of the predictor influences the compression rate, but the magnitude relationship between the predicted data value and the actual data value is large or small. Therefore, there is a possibility that the difference data value of these data values may take both positive and negative values, and it is necessary to manage the positive and negative states, which causes a reduction in the compression rate.

【0004】また、予測器の予測データ値が実際のデー
タ値と極端に異なった場合を考えると、これらの差分デ
ータのビット長は本来の源データの2倍の長さを有する
ことになりデータ量の増大を招いている。
Further, considering the case where the predicted data value of the predictor is extremely different from the actual data value, the bit length of these difference data will be twice as long as the original source data. This leads to an increase in quantity.

【0005】本発明はかかる問題点に鑑みてなされたも
のであり、上述した問題点を解消し、予測器の予測デー
タ値が実際のデータ値と極端に異なっても中間圧縮デー
タは該実際のデータのビット長を越えることなく、高効
率で圧縮効果の大きいデータ圧縮・復調方式を提供する
ことを目的とする。
The present invention has been made in view of the above problems, and solves the above problems, and even if the predicted data value of the predictor is extremely different from the actual data value, the intermediate compressed data is An object of the present invention is to provide a data compression / demodulation method that is highly efficient and has a large compression effect without exceeding the data bit length.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成するた
めに本発明によるデータ圧縮・復調方式は、データを圧
縮して圧縮データとして伝送または記録を行い、該圧縮
データを復調して再生するデータ圧縮・復調方式におい
て、過去のデータを蓄えるレジスタ手段と、現在のデー
タを予測するための予測データ群を蓄える記憶手段と、
上記レジスタ手段に蓄えている過去のデータに基づいて
上記予測データ群の中から現在のデータを予測してこれ
を選択し、該選択したデータを予測データとして出力す
る予測手段と、この予測手段が出力した上記予測データ
が現在のデータと一致するまで該予測データを上記予測
データ群から削除すると共に予測を繰り返し、該予測デ
ータが現在のデータと一致するまでの該予測の回数に基
づく回数情報を圧縮データとするデータ圧縮手段とを具
備し、および/または、データを圧縮して圧縮データと
して伝送または記録を行い、該圧縮データを復調して再
生するデータ圧縮・復調方式において、過去のデータを
蓄えるレジスタ手段と、現在のデータを予測するための
予測データ群を蓄える記憶手段と、上記レジスタ手段に
蓄えている過去のデータに基づいて上記予測データ群の
中から現在のデータを予測してこれを選択し、該選択し
たデータを予測データとして出力する予測手段と、上記
圧縮データの回数情報に基づき、上記予測手段による予
測データを上記予測データ群から削除すると共に予測を
繰り返し、この予測により得られた予測データを出力デ
ータとして出力するデータ復調手段とを具備する。
In order to achieve the above object, a data compression / demodulation system according to the present invention compresses data and transmits or records it as compressed data, and demodulates and reproduces the compressed data. In the data compression / demodulation method, register means for storing past data, storage means for storing a prediction data group for predicting current data,
Prediction means for predicting current data from the prediction data group based on past data stored in the register means, selecting this, and outputting the selected data as prediction data, and this prediction means The prediction data is deleted from the prediction data group and the prediction is repeated until the output prediction data matches the current data, and the number-of-times information based on the number of times of the prediction until the prediction data matches the current data is displayed. In a data compression / demodulation system that comprises a data compression unit for converting compressed data, and / or compresses the data, transmits or records the compressed data, and demodulates and reproduces the compressed data. Register means for storing, storage means for storing a predicted data group for predicting the present data, and past memory stored in the register means. A prediction unit that predicts current data from the prediction data group based on the data, selects the selected data, and outputs the selected data as prediction data; and the prediction unit based on the number-of-times information of the compressed data. The data demodulation means for deleting the prediction data according to the above from the prediction data group, repeating the prediction, and outputting the prediction data obtained by this prediction as output data.

【0007】[0007]

【作用】本発明では、データ圧縮時には、上記データ圧
縮手段において、上記予測手段が出力した上記予測デー
タが現在のデータと一致するまで該予測データを上記予
測データ群から削除すると共に予測を繰り返し、該予測
データが現在のデータと一致するまでの該予測の回数に
基づく回数情報を圧縮データとして伝送または記録を行
い、また、データ復調時には、上記データ復調手段にお
いて、上記圧縮データの回数情報に基づき、上記予測手
段による予測データを上記予測データ群から削除すると
共に予測を繰り返し、この予測により得られた予測デー
タを出力データとして出力する。
According to the present invention, at the time of data compression, the data compression means deletes the prediction data from the prediction data group and repeats the prediction until the prediction data output by the prediction means matches the current data. Number of times based on the number of times of the prediction until the predicted data matches the current data is transmitted or recorded as compressed data, and at the time of data demodulation, the data demodulating means is based on the number of times of the compressed data. The prediction data by the prediction means is deleted from the prediction data group and the prediction is repeated, and the prediction data obtained by this prediction is output as output data.

【0008】[0008]

【実施例】以下、図面を参照して本発明の実施例を説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0009】図1および図2は、本発明の1実施例を示
すデータ圧縮・復調方式を採用したデータ圧縮・復調装
置の構成ブロック図であり、同図1は上記データ圧縮・
復調装置におけるデータ圧縮部を、また、同図2はデー
タ復調部をそれぞれ示している。
FIGS. 1 and 2 are block diagrams showing the configuration of a data compression / demodulation apparatus adopting a data compression / demodulation system according to an embodiment of the present invention.
FIG. 2 shows a data compression unit in the demodulation device, and FIG. 2 shows a data demodulation unit.

【0010】まず、上記データ圧縮部を図1を参照して
説明する。
First, the data compression section will be described with reference to FIG.

【0011】レジスタ1は、外部装置等(図示せず)か
らの画素等の入力データを入力し、蓄積するレジスタで
ある。該レジスタ1に蓄積された入力データは、後述す
る比較器6からの信号に基づいてレジスタ2に入力され
るようになっている。
The register 1 is a register for inputting and storing input data such as pixels from an external device or the like (not shown). The input data accumulated in the register 1 is input to the register 2 based on a signal from a comparator 6 described later.

【0012】上記レジスタ2は後述する予測器5におけ
る予測に必要な分だけの入力データを蓄えることが可能
なレジスタであり、該レジスタ2に蓄積された入力デー
タの数に応じてセレクタ4の切り替えタイミングや初期
値3が変更されるようになっている。すなわち、たとえ
ば、過去10個の入力データから現在の値を予測する場
合、該入力データが10個以下のときは予測をすること
ができないため、該入力データが10個以下のときは予
測値として初期値3を用い、入力データが10個以上に
達すると上記セレクタ4によって上記レジスタ2が選択
されることになる。ただし、ここでは簡略化のため、予
め該レジスタ2には連続したN個(予測可能な個数)の
過去のデータが蓄積されているものとして説明を進め
る。
The register 2 is a register capable of storing as much input data as is necessary for prediction in the predictor 5 described later, and the selector 4 is switched according to the number of input data stored in the register 2. The timing and the initial value 3 are changed. That is, for example, when predicting the current value from the past 10 pieces of input data, it is impossible to make a prediction when the number of the input data is 10 or less. Using the initial value 3, when the input data reaches 10 or more, the register 2 is selected by the selector 4. However, for the sake of simplification, the description will proceed here on the assumption that consecutive N (predictable number) past data are accumulated in the register 2 in advance.

【0013】予測器5は、上記セレクタ4によって選択
された、上記レジスタ2に蓄積されている連続したN個
の過去のデータあるいは初期値3に基づいて予測データ
群7に蓄積されているデータ群より予測値を選択して比
較器6に送出するようになっている。なお、上述したよ
うに上記セレクタ4は最初は初期値3を選択しており、
したがって上記予測器5はまず該初期値3に基づいて予
測を行うようになっている。そして、上記レジスタ2に
おける入力データの個数が所定の個数に達した後は上記
セレクタ4は該レジスタ2を選択し、上記予測器5も該
レジスタ2に入力されている連続したN個(予測可能な
個数)の過去のデータに基づいて予測を行うようになっ
ている。
The predictor 5 is a data group stored in the prediction data group 7 based on the consecutive N past data stored in the register 2 selected by the selector 4 or the initial value 3. A more predicted value is selected and sent to the comparator 6. As described above, the selector 4 initially selects the initial value 3,
Therefore, the predictor 5 first makes a prediction based on the initial value 3. Then, after the number of input data in the register 2 reaches a predetermined number, the selector 4 selects the register 2, and the predictor 5 also inputs the continuous N pieces (predictable) input to the register 2. It is designed to make predictions based on a large number of past data.

【0014】上記比較器6は、上記予測器5によって予
測された上記予測値と上記レジスタ1に蓄積されている
入力データとを比較する機能を有している。そして、こ
の比較において一致が見られなかったときには、カウン
タ8を“1つ”インクリメントすると共に、該予測値を
予測データ群7の中から除くように同予測データ群7を
制御するようになっている。
The comparator 6 has a function of comparing the predicted value predicted by the predictor 5 with the input data stored in the register 1. When no match is found in this comparison, the counter 8 is incremented by "1" and the prediction data group 7 is controlled so as to remove the prediction value from the prediction data group 7. There is.

【0015】また、上記比較器6において上記一致が見
られたときは、ゲート9を開き、上記カウンタ8におけ
るカウント値をハフマン符号化器10に送出するように
なっている。さらに、上記カウンタ8におけるカウント
値と上記予測データ群7におけるデータ群が初期化され
ると共に、上記レジスタ1には新たな入力データが蓄積
され、上記レジスタ2には該レジスタ1に蓄えられてい
た最初の入力データが蓄積されるようになっている。
When the above-mentioned coincidence is found in the comparator 6, the gate 9 is opened and the count value in the counter 8 is sent to the Huffman encoder 10. Further, the count value in the counter 8 and the data group in the predicted data group 7 are initialized, new input data is stored in the register 1, and the register 2 is stored in the register 1. The first input data is stored.

【0016】上記ハフマン符号化器10は、ハフマン符
号を用いて可変長符号化を行う符号化器であり、上記カ
ウント8より入力された該カウント8のカウント値を可
変長符号化して圧縮データとして伝送路(図示せず)に
伝送するようになっている。
The Huffman encoder 10 is an encoder for performing variable length coding using a Huffman code. The count value of the count 8 input from the count 8 is variable length coded as compressed data. It is adapted to transmit to a transmission line (not shown).

【0017】次に、上記データ圧縮部の作用について説
明する。
Next, the operation of the data compression section will be described.

【0018】上記レジスタ1に最初の画素等の入力デー
タ(第1の入力データ)が入力されると、該レジスタ1
はこの入力データを蓄積する。このときセレクタ4は初
期値3側を選択しており、予測器5はこれを基にして予
測データ群7の中から最初の画素等の予測値を比較器6
に送出する。
When the input data (first input data) of the first pixel or the like is input to the register 1, the register 1
Stores this input data. At this time, the selector 4 selects the initial value 3 side, and the predictor 5 uses the prediction value of the first pixel or the like from the prediction data group 7 based on this to make a comparison with the comparator 6.
To send to.

【0019】該比較器6は、上記予測器5による上記予
測値と上記レジスタ1に蓄積されている上記第1の入力
データとを比較して、一致していなかった場合にはカウ
ンタ8が“1つ”インクリメントされると共に、予測デ
ータ群7の中から上記予測値が除かれる。この後、予測
器5が、更新された上記予測データ群7内のデータ群よ
り新たな予測値を予測・出力し、上記比較器6によって
2回目の比較が行われる。そして、上記比較器6による
比較動作は、該比較器6において新たな予測値と上記レ
ジスタ1内の入力データ値とが一致した結果をもたらす
まで繰り返される。
The comparator 6 compares the predicted value obtained by the predictor 5 with the first input data stored in the register 1, and if they do not match, the counter 8 outputs "". The value is incremented by "1" and the predicted value is removed from the predicted data group 7. Thereafter, the predictor 5 predicts and outputs a new predicted value from the updated data group in the predicted data group 7, and the comparator 6 performs the second comparison. Then, the comparison operation by the comparator 6 is repeated until a new predicted value and the input data value in the register 1 coincide with each other in the comparator 6.

【0020】上記比較器6において上記一致が見られた
後は、ゲート9が開かれ、上記カウンタ8におけるカウ
ント値がハフマン符号化器10に送らてハフマン符号化
され、圧縮データとして伝送路(図示せず)に伝送され
る。
After the above-mentioned coincidence is found in the comparator 6, the gate 9 is opened, the count value in the counter 8 is sent to the Huffman encoder 10 and is Huffman-encoded, and the compressed data is transmitted through the transmission line (see FIG. (Not shown).

【0021】この後、上記カウンタ8におけるカウント
値と上記予測データ群7におけるデータ群は初期化さ
れ、また、上記レジスタ1には第2の入力データが蓄積
され、加えて上記レジスタ2には該レジスタ1に蓄えら
れていた第1の入力データが入力される。
Thereafter, the count value in the counter 8 and the data group in the predicted data group 7 are initialized, the second input data is stored in the register 1, and the register 2 is further stored in the register 2. The first input data stored in the register 1 is input.

【0022】以上の動作をまとめると、上述した予測動
作をN+1回繰り返すことで、上記レジスタ2には1〜
N個目のデータが蓄えられ、上記レジスタ1にはN+1
個目のデータが蓄えられることになる。このとき、セレ
クタ4は該レジスタ2側に切り替わっており、この後、
予測器5は、該N個のデータより予測値を予測・出力
し、そして、上述した動作を繰り返して順次予測的中ま
でにかかった回数に相当する中間データ、すなわち上記
カウント8のカウント値を上記ハフマン符号化器10で
ハフマン符号化して圧縮データとして送出する。
In summary, the above operation is repeated N + 1 times so that the register 2 has 1
Nth data is stored and N + 1 is stored in the register 1.
The data of item th will be stored. At this time, the selector 4 is switched to the register 2 side, and thereafter,
The predictor 5 predicts and outputs a predicted value from the N pieces of data, and repeats the above-described operation to output intermediate data corresponding to the number of times it takes to sequentially predict the hit, that is, the count value of the count 8. The Huffman encoder 10 performs Huffman coding and sends the compressed data.

【0023】次に、上記データ復調部を図2を参照して
説明する。なお、上記データ圧縮部の説明ときと同様
に、図2におけるレジスタ20はN個の連続した過去の
データを蓄え、また、予測器17は、該レジスタ20内
のデータに基づいて予測を行うものとして説明する。
Next, the data demodulation section will be described with reference to FIG. As in the case of the description of the data compression unit, the register 20 in FIG. 2 stores N consecutive past data, and the predictor 17 makes a prediction based on the data in the register 20. As described below.

【0024】レジスタ11は、上記データ圧縮部から出
力された圧縮データを入力し、蓄積するレジスタであ
る。
The register 11 is a register for inputting and storing the compressed data output from the data compression section.

【0025】ハフマン復号器12は、上記ハフマン符号
化器10と同じ符号化機能を有する復号器であり、上記
レジスタ11に蓄積された上記圧縮データをハフマン符
号を用いて復調し、この復調したデータを中間データと
してカウンタ13にプリセットするようになっている。
The Huffman decoder 12 is a decoder having the same coding function as that of the Huffman encoder 10, and demodulates the compressed data stored in the register 11 using a Huffman code, and the demodulated data. Is set as intermediate data in the counter 13.

【0026】予測器17は、セレクタ16によって選択
された、上記レジスタ20に蓄積されている連続したN
個の過去のデータあるいは初期値15に基づいて予測デ
ータ群19に蓄積されているデータ群より予測値を選択
してゲート18に送出するようになっている。なお、上
記セレクタ16は、上記データ圧縮部におけるセレクタ
4と同様に、最初は初期値15を選択して、この初期値
15を上記予測器17に導くようになっていて、2回目
の予測以降は、レジスタ20を選択し、該レジスタ20
に入力されている連続したN個の過去のデータを上記予
測器17に導くようになっている。
The predictor 17 selects the consecutive N stored in the register 20 selected by the selector 16.
A predicted value is selected from the data group accumulated in the predicted data group 19 based on the past data or the initial value 15 and is transmitted to the gate 18. Like the selector 4 in the data compression unit, the selector 16 first selects the initial value 15 and guides the initial value 15 to the predictor 17, and after the second prediction. Selects the register 20 and the register 20
The continuous N past data input to the above are led to the predictor 17.

【0027】比較器14は、上記予測器17における予
測値の出力時に、上記カウンタ13の出力値を検出し、
この出力値によりゲート18の開閉を制御する機能を有
している。そして、上記カウンタ13の出力値が“0”
のとき、すなわち、上記プリセット値が“0”のとき
は、ゲート18を開き上記予測器17からの予測値を完
全に復調した出力データとして外部装置等(図示せず)
に送出させると共に、該予測値をレジスタ20に蓄積さ
せるようになっている。なお、このとき、上記予測デー
タ群19が初期化されるようになっている。
The comparator 14 detects the output value of the counter 13 when the predictor 17 outputs the predicted value,
It has a function of controlling opening / closing of the gate 18 by this output value. Then, the output value of the counter 13 is "0".
When the preset value is “0”, the gate 18 is opened and the predicted value from the predictor 17 is completely demodulated as an output data to an external device (not shown).
And the predicted value is stored in the register 20. At this time, the predicted data group 19 is initialized.

【0028】一方、上記カウンタ13の出力値が“0”
でないときには、上記比較器14が、ゲート18を閉じ
ると共に、該カウンタ13は1つデクリメントされ、さ
らに、上記予測データ群19からは上記予測値が削除さ
れるようになっている。
On the other hand, the output value of the counter 13 is "0".
If not, the comparator 14 closes the gate 18, the counter 13 is decremented by 1, and the predicted value is deleted from the predicted data group 19.

【0029】次に、上記データ復調部の作用について説
明する。
Next, the operation of the data demodulation section will be described.

【0030】レジスタ11に上記データ圧縮部から最初
の圧縮データ(第1の圧縮データ)が入力すると、該レ
ジスタ11は該第1の圧縮データを蓄積すると共に、ハ
フマン復号器12に送出する。該ハフマン復号器12
は、上記第1の圧縮データを復調して中間データとして
カウンタ13に送出する。そして、該カウンタ13に
は、該中間データがプリセットされることになる。
When the first compressed data (first compressed data) is input to the register 11 from the data compression unit, the register 11 stores the first compressed data and sends it to the Huffman decoder 12. The Huffman decoder 12
, Demodulates the first compressed data and sends it to the counter 13 as intermediate data. Then, the intermediate data is preset in the counter 13.

【0031】このとき、セレクタ16は初期値15を選
択しており、これにより予測器17該初期値15に基づ
いて予測データ群19の中から予測値を選んで出力す
る。そして、この出力の際、上記カウンタ13の出力値
が“0”ならば、上記予測値はゲート18を通過して、
完全に復調した出力データとして外部装置等に送出され
ると共にレジスタ20に蓄積される。また、これと同時
に、上記予測データ群19が初期化される。
At this time, the selector 16 selects the initial value 15, and the predictor 17 selects and outputs the predicted value from the predicted data group 19 based on the initial value 15. At the time of this output, if the output value of the counter 13 is "0", the predicted value passes through the gate 18,
The completely demodulated output data is sent to an external device or the like and is stored in the register 20. At the same time, the prediction data group 19 is initialized.

【0032】一方、上記予測器17が予測データ群19
の中から予測値を選んで出力する際に、上記カウンタ1
3の出力が“0”でないときには、該カウンタ13はデ
クリメントされ、また、上記予測データ群19からは上
記予測値が削除される。この後、上記予測器17は次の
予測を行い、この予測は、上記カウンタ13の出力が
“0”になるまで繰り返され、完全に復調したデータが
送出される。
On the other hand, the predictor 17 uses the prediction data group 19
When selecting and outputting the predicted value from the
When the output of 3 is not "0", the counter 13 is decremented and the predicted value is deleted from the predicted data group 19. After that, the predictor 17 makes the next prediction, and this prediction is repeated until the output of the counter 13 becomes "0", and the completely demodulated data is transmitted.

【0033】こうして1つのデータを復調し終えるとレ
ジスタ11には、次の圧縮データ(第2の圧縮データ)
が入力され、上述した予測・復調動作がN回繰り返され
る。そして、上記レジスタ20にN個の完全に復調され
たデータが蓄えられ、N+1個目のデータが入力された
とき、上記セレクタ16はレジスタ20側に切り替わ
り、これ以降の予測はこのデータを用いて行われるよう
になる。
After demodulating one data in this way, the register 11 stores the next compressed data (second compressed data).
Is input, and the above-described prediction / demodulation operation is repeated N times. Then, when N pieces of completely demodulated data are stored in the register 20 and the N + 1th piece of data is input, the selector 16 is switched to the register 20 side and this data is used for subsequent prediction. Will be done.

【0034】すなわち、上記データ復調部は、上記デー
タ圧縮部におけるハフマン符号化器と同じ符号化機能を
有する復号器を具備しており、入力した圧縮データをハ
フマン復調し、予測に繰り返し数に相当する中間データ
の値を得る。そして既に完全に復調した源データを基に
して予測を行い、上記中間データに相当する繰り返し数
より“1”程少ない数に達するまではその予測値を予測
対象の源データ群から除いてさらに予測を繰り返す。そ
して上記中間データが示す回数に達したとき、その予測
値を完全に復調できた源データとして以後のデータ復調
に利用するようになっている。
That is, the data demodulation unit includes a decoder having the same coding function as the Huffman encoder in the data compression unit, performs Huffman demodulation on the input compressed data, and corresponds to the number of repetitions for prediction. Get the value of the intermediate data. Prediction is performed based on the source data that has already been completely demodulated, and the predicted value is excluded from the source data group to be predicted until the number of repetitions corresponding to the intermediate data reaches about 1 less repeat. Then, when the number of times indicated by the intermediate data is reached, the predicted value is used as source data that can be completely demodulated for subsequent data demodulation.

【0035】なお、本実施例におけるデータ圧縮・復調
方式は、圧縮部と復調部との双方で初期値を設定してお
き、該初期値から最初のデータを予測するようになって
いるが、該初期値の設定を行わず、第1の入力データの
みをそのままの形で中間データあるいは第1の圧縮デー
タとして利用することも可能である。
In the data compression / demodulation method of this embodiment, initial values are set in both the compression section and the demodulation section, and the first data is predicted from the initial values. It is also possible to use only the first input data as it is as intermediate data or first compressed data without setting the initial value.

【0036】[0036]

【発明の効果】以上説明したように本発明によれば、予
測器の予測データ値が現在のデータ値と極端に異なって
も、圧縮データは該現在のデータのビット長を越えるこ
となく、高効率で圧縮効果の大きいデータ圧縮・復調方
式を提供できる。
As described above, according to the present invention, even if the predicted data value of the predictor is extremely different from the current data value, the compressed data does not exceed the bit length of the current data and has a high value. It is possible to provide a data compression / demodulation method that is efficient and has a large compression effect.

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

【図1】本発明の1実施例であるデータ圧縮・復調方式
を採用したデータ圧縮・復調装置におけるデータ圧縮部
の構成を示すブロック図。
FIG. 1 is a block diagram showing the configuration of a data compression unit in a data compression / demodulation apparatus that employs a data compression / demodulation system that is an embodiment of the present invention.

【図2】上記実施例のデータ圧縮・復調方式を採用した
データ圧縮・復調装置におけるデータ復調部の構成を示
すブロック図。
FIG. 2 is a block diagram showing a configuration of a data demodulation unit in a data compression / demodulation apparatus that employs the data compression / demodulation method of the above embodiment.

【符号の説明】 1,2…レジスタ 3…初期値 4…セレクタ 5…予測器 6…比較器 7…予測データ群 8…カウンタ 9…ゲート 10…ハフマン符号化器[Description of Codes] 1, 2 ... Register 3 ... Initial value 4 ... Selector 5 ... Predictor 6 ... Comparator 7 ... Predicted data group 8 ... Counter 9 ... Gate 10 ... Huffman encoder

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】データを圧縮して圧縮データとして伝送ま
たは記録を行い、該圧縮データを復調して再生するデー
タ圧縮・復調方式において、 過去のデータを蓄えるレジスタ手段と、 現在のデータを予測するための予測データ群を蓄える記
憶手段と、 上記レジスタ手段に蓄えている過去のデータに基づいて
上記予測データ群の中から現在のデータを予測してこれ
を選択し、該選択したデータを予測データとして出力す
る予測手段と、 この予測手段が出力した上記予測データが現在のデータ
と一致するまで該予測データを上記予測データ群から削
除すると共に予測を繰り返し、該予測データが現在のデ
ータと一致するまでの該予測の回数に基づく回数情報を
圧縮データとするデータ圧縮手段と、 を具備したことを特徴とするデータ圧縮・復調方式。
1. A data compression / demodulation system in which data is compressed and transmitted or recorded as compressed data, and the compressed data is demodulated and reproduced, and register means for storing past data and current data are predicted. For predicting the present data from the above-mentioned prediction data group based on the past data stored in the register means and the storage means for storing the prediction data group, and selecting the selected data as the prediction data. And a prediction unit that outputs the prediction data and the prediction data output from the prediction unit matches the current data, deletes the prediction data from the prediction data group and repeats the prediction, and the prediction data matches the current data. Data compression / demodulation, which comprises: Formula.
【請求項2】データを圧縮して圧縮データとして伝送ま
たは記録を行い、該圧縮データを復調して再生するデー
タ圧縮・復調方式において、 過去のデータを蓄えるレジスタ手段と、 現在のデータを予測するための予測データ群を蓄える記
憶手段と、 上記レジスタ手段に蓄えている過去のデータに基づいて
上記予測データ群の中から現在のデータを予測してこれ
を選択し、該選択したデータを予測データとして出力す
る予測手段と、 上記圧縮データの回数情報に基づき、上記予測手段によ
る予測データを上記予測データ群から削除すると共に予
測を繰り返し、この予測により得られた予測データを出
力データとして出力するデータ復調手段と、 を具備したことを特徴とするデータ圧縮・復調方式。
2. A data compression / demodulation system in which data is compressed and transmitted or recorded as compressed data, and the compressed data is demodulated and reproduced, and register means for storing past data and current data are predicted. For predicting the present data from the above-mentioned prediction data group based on the past data stored in the register means and the storage means for storing the prediction data group, and selecting the selected data as the prediction data. And a prediction unit that outputs the prediction data obtained by this prediction based on the number information of the compressed data and deleting the prediction data by the prediction unit from the prediction data group and repeating the prediction. A data compression / demodulation system characterized by comprising demodulation means.
【請求項3】上記圧縮データは上記予測データが現在の
データと一致するまでの該予測の回数に基づく情報を可
変長符号化したデータであることを特徴とする請求項1
記載のデータ圧縮・復調方式。
3. The compressed data is variable length coded information based on the number of predictions until the prediction data matches the current data.
Data compression / demodulation method described.
JP11181192A 1992-04-30 1992-04-30 Data compression and demodulation system Withdrawn JPH05308328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11181192A JPH05308328A (en) 1992-04-30 1992-04-30 Data compression and demodulation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11181192A JPH05308328A (en) 1992-04-30 1992-04-30 Data compression and demodulation system

Publications (1)

Publication Number Publication Date
JPH05308328A true JPH05308328A (en) 1993-11-19

Family

ID=14570758

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11181192A Withdrawn JPH05308328A (en) 1992-04-30 1992-04-30 Data compression and demodulation system

Country Status (1)

Country Link
JP (1) JPH05308328A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000021199A1 (en) * 1998-10-06 2000-04-13 Matsushita Electric Industrial Co., Ltd. Lossless compression encoding method and device, and lossless compression decoding method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000021199A1 (en) * 1998-10-06 2000-04-13 Matsushita Electric Industrial Co., Ltd. Lossless compression encoding method and device, and lossless compression decoding method and device
US6420980B1 (en) 1998-10-06 2002-07-16 Matsushita Electric Industrial Co., Ltd. Lossless compression encoding method and device, and lossless compression decoding method and device

Similar Documents

Publication Publication Date Title
US6741648B2 (en) Apparatus, and associated method, for selecting an encoding rate by which to encode video frames of a video sequence
US8155973B2 (en) Recording and reproducing apparatus for use with optical recording medium having real-time, losslessly encoded data
US5528628A (en) Apparatus for variable-length coding and variable-length-decoding using a plurality of Huffman coding tables
US5418658A (en) Digital video signal recording/reproducing apparatus for longer playing time
JPH06153180A (en) Picture data coding method and device
US20050226327A1 (en) MPEG coding method, moving picture transmitting system and method using the same
JP2836467B2 (en) Binary symbol encoding / decoding circuit
CN100426867C (en) Image processing apparatus and method, program, and recording medium
JP2001298746A (en) Data compressor for digital recording system and its control method
US6256344B1 (en) Variable bit rate encoder
JPH05308328A (en) Data compression and demodulation system
KR101063094B1 (en) Methods for Compressing Data
JPS5857836A (en) Forecasting encoder
US7269341B2 (en) Adaptive digital video recorder and method of controlling the same
JPH07282594A (en) Shifter step device of variable-length digital-cord decoder
JPH04316294A (en) Variable-length coding circuit
EP0474444B1 (en) Image processing method and apparatus
JPH06245200A (en) Method and device for scanning two-dimensional data by energy distribution
JPH1051771A (en) Image compression method and image compressor
JP3750217B2 (en) Video encoding transmission device
KR19990019528A (en) Data transmission device and method of security system using MPEG encoder
JP3209259B2 (en) Image signal encoding / decoding method and apparatus
JPH02205173A (en) Orthogonal transformation coding method for picture data
JPS6343024B2 (en)
JPH08322050A (en) Lossless moving image coding and decoding method and device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990706