[go: up one dir, main page]

JP2003198379A - Signal encoding device, signal encoding method, program, and recording medium - Google Patents

Signal encoding device, signal encoding method, program, and recording medium

Info

Publication number
JP2003198379A
JP2003198379A JP2001398869A JP2001398869A JP2003198379A JP 2003198379 A JP2003198379 A JP 2003198379A JP 2001398869 A JP2001398869 A JP 2001398869A JP 2001398869 A JP2001398869 A JP 2001398869A JP 2003198379 A JP2003198379 A JP 2003198379A
Authority
JP
Japan
Prior art keywords
list
data
symbol
packing data
packing
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
JP2001398869A
Other languages
Japanese (ja)
Inventor
Junichi Hara
潤一 原
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2001398869A priority Critical patent/JP2003198379A/en
Publication of JP2003198379A publication Critical patent/JP2003198379A/en
Pending 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)

Abstract

(57)【要約】 【課題】 コンピュータや組込み装置等で処理する音声
信号や画像処理された画像に対してデータを圧縮すると
きに、発生する確率が偏っているデータに対し、起こり
うるデータ値を保持するリスト総数を少なくする信号符
号化装置を提供する。 【解決手段】 この信号符号化装置は、格納されるデー
タ量の大きさが2のN乗より小さいリスト記憶手段を有
し、入力されたデジタルデータをNビット毎に分割した
パッキングデータと前記リスト記憶手段に記憶されたリ
スト中のデータとを比較し、この比較結果からシンボル
の生成と前記リストの再構成を行って、この生成された
シンボル列を圧縮し符号語を形成する。
(57) [Summary] [Problem] When compressing data for an audio signal processed by a computer, an embedded device, or the like or an image that has been subjected to image processing, a possible data value is generated for data having a biased probability of occurrence. And a signal encoding apparatus that reduces the total number of lists that hold. SOLUTION: This signal encoding device has a list storage means in which the amount of stored data is smaller than 2 to the Nth power, wherein packing data obtained by dividing input digital data by N bits and The data in the list stored in the storage means is compared, and a symbol is generated from the comparison result and the list is reconstructed. The generated symbol sequence is compressed to form a code word.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、信号符号化装置、
信号符号化方法、プログラムおよび記録媒体に関し、特
に、コンピュータや組込み装置等で処理する音声信号や
画像処理された画像に対してデータを圧縮する技術に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a signal coding device,
The present invention relates to a signal encoding method, a program, and a recording medium, and more particularly to a technique of compressing data for an audio signal processed by a computer, an embedded device, or the like, or an image subjected to image processing.

【0002】[0002]

【従来の技術】近年の情報化社会において、インターネ
ット、マルチメディア、分散ソフトウェアをはじめとす
るコンピュータ技術の劇的な発展と普及により、情報処
理システム間の通信情報量は増大の一途をたどってい
る。このため情報処理システム間における通信効率の改
善、記憶装置の有効利用を行うためにデータ圧縮技術が
重要な基礎技術となっている。即ち、ネットワークに接
続した情報処理システム間における通信データ量を減ら
すことによってネットワークの負荷を軽減したり、同じ
サイズでより多くの情報を詰め込むことができるように
なる。
2. Description of the Related Art In recent information-oriented society, the amount of communication information between information processing systems has been increasing due to the dramatic development and spread of computer technologies such as the Internet, multimedia, and distributed software. . For this reason, data compression technology is an important basic technology for improving communication efficiency between information processing systems and effectively using storage devices. That is, it becomes possible to reduce the load on the network by reducing the amount of communication data between the information processing systems connected to the network, and to pack more information in the same size.

【0003】データ圧縮技術の代表的な例として、18
世紀頃から用いられていているモールス符号(モールス
信号に使う符号語)があり、現在、モデム、ルーターを
はじめとするインターネット分野での利用のみではな
く、FAX、TV、ラジオ、CD、衛星通信、ビデオ、
電話等の様々な分野で利用されている。
As a typical example of the data compression technique, 18
There is Morse code (code word used for Morse code) that has been used since around the century, and is currently used not only in the Internet field such as modems and routers, but also in FAX, TV, radio, CD, satellite communication, video,
It is used in various fields such as telephones.

【0004】このような圧縮技術にあって、単純なアル
ゴリズムであるが、圧縮限界のエントロピー(理論的限
界圧縮率)付近までデータを圧縮できるBWT(Burrows
-Wheeler Transform)に基づく圧縮処理系が近年注目さ
れている。このBWTによる圧縮アルゴリズムは、1994
年にM.BurrowsとD.J.Wheelerによって発表された論文(A
Block-sorting Lossless Data Compression Algorithm
/SRC Research Report 124,Systems Research Center-D
igital Equipment Corporation)がもとになっている。
このBWTを用いた圧縮処理系は、テキストデータのみ
ならず、色数が多いフルカラーの画像の可逆圧縮にも極
めて有効に作用するといわれている。
In such a compression technique, although it is a simple algorithm, BWT (Burrows) which can compress the data up to near the entropy (theoretical limit compression rate) of the compression limit.
-A compression processing system based on Wheeler Transform) has attracted attention in recent years. This BWT compression algorithm is 1994
Paper published by M. Burrows and DJ Wheeler in
Block-sorting Lossless Data Compression Algorithm
/ SRC Research Report 124, Systems Research Center-D
igital Equipment Corporation).
It is said that the compression processing system using the BWT is extremely effective not only for text data but also for reversible compression of full-color images having a large number of colors.

【0005】BWT単体では如何なる圧縮も行わないた
め、実際には他の圧縮アルゴリズムを用いて、例えば、
「BWT→Move to Front法による符号化
→エントロピー圧縮」という処理順序で行っている。こ
のMove to Front(以下、MTFと略す)
による符号化は、既出の文字の中で前回出現した文字
が、今回出現する確率が最も高いと見なす符号化方法で
あり、ブロックソーティングと同様に同じ文字が繰り返
されるような長い連(ラン)を生みだすための符号化で
ある。このMTF符号化法は、ブロックソーティングに
より得られた「同一バイトデータが近接して局在する」
ような冗長性の高いデータにおいては、特に高い効果が
望めることが知られている。
Since the BWT alone does not perform any compression, in practice another compression algorithm is used, for example:
The processing sequence is “BWT → Move to Front encoding → entropy compression”. This Move to Front (hereinafter abbreviated as MTF)
The encoding by is a coding method that considers that the previously appearing character has the highest probability of appearing this time among the already-existing characters, and a long string (run) in which the same character is repeated as in block sorting is used. It is an encoding for creating. In this MTF encoding method, "the same byte data is localized close to each other" obtained by block sorting.
It is known that particularly high effects can be expected for such highly redundant data.

【0006】このMTF符号化方式は、次のように動作
する。入力される値が取り得る全ての値を保持するリス
トを持っており、入力された値とそのリスト中の値を比
較し、同じ値を持つリスト中の位置をシンボルとして符
号を生成する。次いで、この比較対象となった値をリス
ト中から削減し、その入力値をリストの先頭へもってく
る。
This MTF encoding system operates as follows. It has a list that holds all possible input values, compares the input value with the values in the list, and generates a code with the position in the list having the same value as the symbol. Next, the value to be compared is reduced from the list and the input value is brought to the top of the list.

【0007】例えば、5つの文字('a', 'b', 'd', '
o', 'Y')から作られている文字系列について説明す
る。先ず、この5つの文字に対するリストR = {'a', '
b', 'd','o', 'Y'}を作成し、その1つずつにシンボル
0,1,2,3,4を与える。次に、入力文字系列{Ydbbaaaado
o}を1文字ずつ調べ、対応するリストのシンボルを出力
し、その文字をリストの先頭へ移動する作業を、入力系
列全ての文字を出力するまで繰り返し、最終的に、出力
系列{4,3,3,0,3,0,0,0,2,4,0}が得られる。
For example, five characters ('a', 'b', 'd', '
O ',' Y ') character sequences are explained. First, the list R = {'a', 'for these five characters
b ',' d ',' o ',' Y '} are created, and each one is a symbol
Give 0,1,2,3,4. Next, input character sequence {Ydbbaaaado
o} character by character, output the symbol of the corresponding list, and move that character to the beginning of the list, repeating until all the characters in the input sequence are output, and finally output sequence {4,3 , 3,0,3,0,0,0,2,4,0} is obtained.

【0008】[0008]

【発明が解決しようとする課題】このMTF符号化方式
を利用する場合、上述したように取り得る可能性の個数
だけ入力値をリスト中に保存しておかなければならな
い。そのため、入力値が10ビットで表される値の時に
は、リスト中に保存しなければならない数は1024で
あり、12ビットの場合には4096となってしまう。
すなわち、入力値を構成するビット数が多くなればなる
ほど、大量にメモリを使用することとなり、このMTF
符号化方式を組み込む装置やLSIの単価や実装面積が
指数関数的に膨れ上がってしまう。
When using this MTF coding method, it is necessary to store as many input values as possible in the list as described above. Therefore, when the input value is a value represented by 10 bits, the number that must be stored in the list is 1024, and when it is 12 bits, it is 4096.
That is, as the number of bits forming the input value increases, a large amount of memory is used, and this MTF is increased.
The unit price and mounting area of the device or the LSI incorporating the encoding system swells exponentially.

【0009】一方、10ビットやそれ以上のビット幅で
表される入力値が発生する確率は偏っており、データ値
として発生しない場合もある。このような発生しないデ
ータ値が多い、即ち、発生するデータ値が極わずかしか
ない場合には、全ての起こりうるデータ値のためにリス
トを保持することは、コスト上無駄である。
On the other hand, the probability of occurrence of an input value represented by a bit width of 10 bits or more is biased and may not occur as a data value. If many such non-occurring data values occur, i.e., very few data values occur, maintaining a list for all possible data values is costly.

【0010】本発明は、上記の実情に鑑みてなされたも
のであって、発生する確率が偏っているデータに対し、
起こりうるデータ値を保持するリスト総数を少なくする
信号符号化装置、信号符号化方法、その信号符号化装置
の機能を実行するためのプログラムおよびそのプログラ
ムを記録するコンピュータ読み取り可能な記録媒体を提
供することを目的とする。
The present invention has been made in view of the above-mentioned circumstances, and for data whose occurrence probability is biased,
Provided are a signal coding device, a signal coding method, a program for executing the function of the signal coding device, and a computer-readable recording medium for recording the program, which reduce the total number of lists holding possible data values. The purpose is to

【0011】[0011]

【課題を解決するための手段】上述の課題を解決するた
めに、本発明の請求項1の信号符号化装置は、入力され
たデジタルデータをNビット毎に分割するビットパッキ
ング手段と、データを重複のないリストとして記憶する
リスト記憶手段と、前記パッキングデータと前記リスト
中のデータとを比較する比較手段と、前記比較結果から
シンボルを生成するシンボル生成手段と、前記比較結果
から前記リストを再構成するリスト再構成手段と、前記
生成されたシンボル列を圧縮し符号語を形成する圧縮手
段とを備え、前記リスト記憶手段の大きさとして、2の
N乗より小さい値を用いることを特徴とする。また、本
発明の請求項2は、請求項1に記載の信号符号化装置に
おいて、前記リスト再構成手段は、前記比較手段で前記
パッキングデータが前記リスト中にないと判断された場
合はそのリストの最後の次に格納されていると仮定し、
前記リストに登録されているパッキングデータを削除
し、前記リストの先頭へ挿入してリストを再構成するこ
とを特徴とする。また、本発明の請求項3は、請求項1
または請求項2に記載の信号符号化装置において、前記
シンボル生成手段は、前記比較手段で前記パッキングデ
ータが前記リスト中にあると判断された場合、前記リス
ト中の位置をシンボルとし、前記比較手段で前記パッキ
ングデータが前記リスト中にないと判断された場合、前
記リスト中のデータ値が前記パッキングデータ値より小
さい個数をカウントし、この個数と前記パッキングデー
タ値を加えてシンボルとすることを特徴とする。
In order to solve the above-mentioned problems, a signal coding apparatus according to claim 1 of the present invention comprises a bit packing means for dividing input digital data into N bits and data. List storing means for storing as a list without duplication, comparing means for comparing the packing data with data in the list, symbol generating means for generating a symbol from the comparison result, and the list for re-creating the list from the comparison result. A list reconstructing means for configuring the compression means, a compression means for compressing the generated symbol sequence to form a code word, and using a value smaller than the Nth power of 2 as the size of the list storage means. To do. According to a second aspect of the present invention, in the signal coding apparatus according to the first aspect, the list reconstructing means, if the comparing means determines that the packing data is not in the list, the list is rewritten. Suppose it is stored next to the end of
The packing data registered in the list is deleted, and the packing data is inserted at the head of the list to reconstruct the list. The claim 3 of the present invention is the claim 1.
Alternatively, in the signal coding apparatus according to claim 2, when the comparison unit determines that the packing data is in the list, the symbol generation unit sets the position in the list as a symbol, and the comparison unit. When it is determined that the packing data is not in the list, the number of data values in the list smaller than the packing data value is counted, and the number and the packing data value are added to form a symbol. And

【0012】また、本発明の請求項4の信号符号化方法
は、格納されるデータ量の大きさが2のN乗より小さい
リスト記憶手段を有し、入力されたデジタルデータをN
ビット毎に分割したパッキングデータと前記リスト記憶
手段に記憶されたリスト中のデータとを比較し、この比
較結果からシンボルの生成と前記リストの再構成を行っ
て、この生成されたシンボル列を圧縮し符号語を形成す
ることを特徴とする。また、本発明の請求項5は、請求
項4に記載の信号符号化方法において、前記リストの再
構成は、前記パッキングデータが前記リスト中にないと
判断された場合はそのリストの最後の次に格納されてい
ると仮定し、前記リストに登録されているパッキングデ
ータを削除して、前記リストの先頭へ挿入することを特
徴とする。また、本発明の請求項6は、請求項4または
請求項5に記載の信号符号化方法において、前記シンボ
ルの生成は、前記パッキングデータが前記リスト中にあ
ると判断された場合、前記リスト中の位置をシンボルと
し、前記パッキングデータが前記リスト中にないと判断
された場合、前記リスト中のデータ値が前記パッキング
データ値より小さい個数をカウントし、この個数と前記
パッキングデータ値を加えてシンボルとすることを特徴
とする。
According to a fourth aspect of the present invention, there is provided a signal encoding method having a list storage means in which the amount of stored data is smaller than the Nth power of 2, and the input digital data is stored in N
The packing data divided for each bit is compared with the data in the list stored in the list storage means, symbols are generated and the list is reconstructed from the comparison result, and the generated symbol string is compressed. And forming a code word. According to a fifth aspect of the present invention, in the signal coding method according to the fourth aspect, when the list is reconstructed, if it is determined that the packing data is not included in the list, the last next It is assumed that the packing data stored in the list is deleted and the packing data registered in the list is deleted and inserted into the head of the list. According to claim 6 of the present invention, in the signal coding method according to claim 4 or 5, when the packing data is judged to be in the list, the symbol is generated in the list. When it is determined that the packing data is not in the list, the number of data values in the list smaller than the packing data value is counted, and the number is added to the packing data value to determine the symbol. It is characterized by

【0013】また、本発明の請求項7のプログラムは、
コンピュータを、請求項1、2または3に記載の信号符
号化装置として実行させるためのプログラムである。ま
た、本発明の請求項8の記録媒体は、請求項7に記載の
信号符号化プログラムを記録したコンピュータ読み取り
可能な記録媒体である。
The program according to claim 7 of the present invention is
A program for causing a computer to execute as the signal encoding device according to claim 1. A recording medium according to claim 8 of the present invention is a computer-readable recording medium recording the signal encoding program according to claim 7.

【0014】以上のような構成とすることによって、M
TF符号化方式を利用してデータを圧縮する場合に、こ
のデータの発生する確率が偏っているとき、起こりうる
データ値を保持するリスト総数を少なくすることができ
るので、メモリの使用量を節減することができ、このM
TF符号化方式を組み込む装置やLSIの単価や実装面
積を減らすことができる。
With the above configuration, M
When compressing data using the TF encoding method, when the probability of occurrence of this data is biased, the total number of lists holding possible data values can be reduced, thus saving memory usage. Can this M
It is possible to reduce the unit price and the mounting area of a device or LSI incorporating the TF encoding system.

【0015】[0015]

【発明の実施の形態】以下、図面を参照して本発明に係
る信号符号化装置の一実施形態を説明する。図1は、本
実施形態の機能構成を示すブロック図である。図1にお
いて、信号符号化装置は、ビットパッキング手段10、
比較手段20、リスト記憶手段30、シンボル生成手段
40、リスト再構成手段50、圧縮手段60からなって
いる。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of a signal coding apparatus according to the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a functional configuration of this embodiment. In FIG. 1, the signal coding apparatus includes a bit packing unit 10,
The comparison unit 20, the list storage unit 30, the symbol generation unit 40, the list reconstruction unit 50, and the compression unit 60 are included.

【0016】ビットパッキング手段10は、圧縮対象の
ビットデータをN(4≦N≦32)ビット毎に分割す
る。この分割されたパッキングデータをそれぞれリスト
記憶手段30に記憶されたデータと比較することによっ
てシンボルを生成し、この生成されたシンボル列を圧縮
手段60によって圧縮する。また、分割するときに圧縮
対象のビットデータのデータ長がNの倍数にならないと
きには、足りない部分に値0のビットを詰めることによ
りNの倍数にする。
The bit packing means 10 divides the bit data to be compressed into N (4≤N≤32) bits. A symbol is generated by comparing the divided packing data with the data stored in the list storage means 30, and the generated symbol string is compressed by the compression means 60. Further, when the data length of the bit data to be compressed is not a multiple of N when dividing, the bit having the value 0 is padded in the insufficient portion to make it a multiple of N.

【0017】リスト記憶手段30は、圧縮対象のビット
データを分割してできるパッキングデータとして出現す
るデータ値をリスト形式で記憶する。このリストの総数
はNビットからなるパッキングデータの取り得る最大デ
ータ値である2のN乗より小さく取る。この記憶された
データは、リスト再構成手段50によって既出のデータ
の中で前回出現したデータが、出現する確率が最も高い
と見なすように順序付けられていく。
The list storage means 30 stores, in a list format, data values that appear as packing data obtained by dividing the bit data to be compressed. The total number of this list is set to be smaller than the Nth power of 2 which is the maximum data value that the packing data of N bits can take. The stored data is ordered by the list reconstructing means 50 so that the data that appeared last time among the existing data is considered to have the highest probability of appearing.

【0018】比較手段20は、1つのパッキングデータ
がリスト記憶手段30に記憶されているかどうか比較
し、記憶されている場合にはその発見された位置を出力
する(例えば、図2(A)の上図参照)。一方、記憶さ
れていない場合には、リスト記憶手段30に記憶されて
いる最後のデータ位置の次の位置を出力する(例えば、
図2(B)の上図参照)。
The comparison means 20 compares whether or not one packing data is stored in the list storage means 30, and if it is stored, outputs the found position (for example, in FIG. 2A). (See above). On the other hand, if not stored, the position next to the last data position stored in the list storage means 30 is output (for example,
(See the upper diagram of FIG. 2B).

【0019】シンボル生成手段40は、パッキングデー
タとリスト記憶手段30中のデータとを比較した後、次
のようにしてシンボルを生成し、一時的にシンボル列と
して記憶する。 (1)パッキングデータがリスト記憶手段30中に発見
された場合、そのリスト中の位置をシンボルとする。 (2)パッキングデータがリスト記憶手段30中に発見
できない場合、リスト記憶手段30中のデータ値がパッ
キングデータより小さい個数をカウントし、このカウン
トされた値とパッキングデータを加えた値をシンボルと
する。
The symbol generation means 40 compares the packing data with the data in the list storage means 30, and then generates a symbol as follows and temporarily stores it as a symbol string. (1) When the packing data is found in the list storage means 30, the position in the list is used as a symbol. (2) If the packing data cannot be found in the list storage means 30, the number of data values in the list storage means 30 smaller than the packing data is counted, and the value obtained by adding the counted value and the packing data is used as a symbol. .

【0020】リスト再構成手段50は、パッキングデー
タをリスト記憶手段30の先頭へ挿入し、先頭にあった
データから比較手段20で見つけた位置の1つ前のデー
タまでを順次一つずつ後ろにずらすようにして、既出の
データの中で前回出現したデータが、出現する確率が最
も高いと見なすようにリストの順番を再構成する。例え
ば、図2(A)のように、リスト記憶手段30のk番目
にパッキングデータと同じデータが登録されていた場合
には、この「データk」をリスト記憶手段30の1番目
に挿入し、元の最初にあった「データ1」以降から(k
−1)番目の「データk−1」までを順次1つずつ後ろ
へ繰り下げ、その結果図2(A)の下図のように再構成
される。
The list reconstructing means 50 inserts the packing data into the head of the list storing means 30, and sequentially transfers the data from the head to the data immediately before the position found by the comparing means 20 one by one. By shifting the list, the order of the list is reconfigured so that the data that appeared last time among the existing data is considered to have the highest probability of appearing. For example, as shown in FIG. 2A, when the same data as the packing data is registered in the list storage unit 30 at the kth position, this “data k” is inserted into the list storage unit 30 at the first position, From "data 1" which was originally at the beginning, (k
The -1) th "data k-1" is sequentially moved backward one by one, and as a result, the data is reconstructed as shown in the lower diagram of FIG.

【0021】また、リスト記憶手段30にパッキングデ
ータが登録されていない場合には、このパッキングデー
タをリスト記憶手段30の先頭へ挿入し、先頭にあった
データから最終の位置までのデータを順次一つずつ後ろ
にずらすようにして、既出のデータの中で前回出現した
データが、出現する確率が最も高いと見なすようにリス
トの順番を再構成する。例えば、図2(B)のように、
リスト記憶手段30中にパッキングデータが登録されて
いない場合には、このパッキングデータをリスト記憶手
段30の1番目に挿入し、元の最初にあった「データ
1」以降から最終のデータまでを順次1つずつ後ろへ繰
り下げ、その結果図2(B)の下図のように再構成され
る。ここで、パッキングデータを挿入することによって
リスト記憶手段30の保存可能な最大数を超える場合に
は、最終のデータを削除してずらすようにする。
If the packing data is not registered in the list storage means 30, this packing data is inserted into the head of the list storage means 30 and the data from the head data to the last position is sequentially copied. The order of the list is reconfigured so that the data that appeared last time among the already-existing data are considered to have the highest probability of appearing by shifting them one by one. For example, as shown in FIG.
If the packing data is not registered in the list storage means 30, this packing data is inserted into the first of the list storage means 30, and the data from "data 1" which is the original first to the final data are sequentially. They are moved backward one by one, and as a result, they are reconstructed as shown in the lower diagram of FIG. Here, if the maximum number that can be stored in the list storage means 30 is exceeded by inserting the packing data, the final data is deleted and shifted.

【0022】圧縮手段60は、シンボル生成手段40で
生成され一時的に記憶されたシンボル列を圧縮し符号化
する。このときに用いられる圧縮方法としては、エント
ロピー符号化、ランレングス符号化や算術符号化等およ
びそれらの組み合せ等の既知の方式を用いる。
The compression means 60 compresses and encodes the symbol sequence generated by the symbol generation means 40 and temporarily stored. As the compression method used at this time, known methods such as entropy coding, run length coding, arithmetic coding, and combinations thereof are used.

【0023】図3は、本実施形態の信号符号化装置の処
理手順を説明するためのフローチャートである。圧縮対
象のビットデータをN(4≦N≦32)ビット毎に分割
する(ステップS10)。分割するときに圧縮対象のビ
ットデータのデータ長がNの倍数にならないときには、
足りない部分に値0のビットを詰めることによりNの倍
数にする。
FIG. 3 is a flow chart for explaining the processing procedure of the signal coding apparatus of this embodiment. The bit data to be compressed is divided into N (4 ≦ N ≦ 32) bits (step S10). When the data length of the bit data to be compressed is not a multiple of N when dividing,
It is a multiple of N by padding the missing part with bits of value 0.

【0024】この圧縮対象のビットデータを分割してで
きたパッキングデータを1つずつ取り出し(ステップS
12)、既にパッキングデータを全て処理してシンボル
列を生成し終わった場合には、生成され一時的に記憶さ
れたシンボル列を圧縮し符号化する(ステップS14,
S30)。このときに用いられる圧縮方法としては、エ
ントロピー符号化、ランレングス符号化や算術符号化等
およびそれらの組み合せ等の既知の方式を用いる。
The packing data obtained by dividing the bit data to be compressed is taken out one by one (step S
12) If all the packing data has already been processed to generate the symbol string, the generated and temporarily stored symbol string is compressed and encoded (step S14,
S30). As the compression method used at this time, known methods such as entropy coding, run length coding, arithmetic coding, and combinations thereof are used.

【0025】ステップS14で、シンボル生成の対象と
なるパッキングデータが存在する場合、このパッキング
データに対して以下のような処理をする。このパッキン
グデータがリスト記憶手段30に記憶されているかどう
か調べる(ステップS16)。登録されていた場合、そ
の発見された位置をシンボルとして一時的に記憶する
(ステップS18,S20)。一方、登録されていなか
った場合、リスト記憶手段30中のデータ値がパッキン
グデータより小さい個数をカウントし、このカウントさ
れた値とパッキングデータを加えた値をシンボルとして
一時的に記憶し(ステップS18,S22)、パッキン
グデータの登録位置をリスト記憶手段30に記憶されて
いる最後のデータ位置の次の位置と仮定する(ステップ
S24)。
In step S14, if there is packing data to be symbol-generated, the packing data is processed as follows. It is checked whether or not this packing data is stored in the list storage means 30 (step S16). If it has been registered, the found position is temporarily stored as a symbol (steps S18 and S20). On the other hand, if it is not registered, the number of data values in the list storage means 30 smaller than the packing data is counted, and the value obtained by adding the counted value and the packing data is temporarily stored as a symbol (step S18). , S22), and the registration position of the packing data is assumed to be the position next to the last data position stored in the list storage means 30 (step S24).

【0026】リスト記憶手段30の先頭のデータからパ
ッキングデータの登録位置のひとつ前までのデータを順
次一つずつ後ろにずらす(ステップS26)。ここで、
後ろへずらす際、リスト記憶手段30の保存可能な最大
数を超える場合には、最終のデータを削除する。パッキ
ングデータをリスト記憶手段30の先頭へ挿入し(ステ
ップS28)、既出のデータの中で前回出現したデータ
が、出現する確率が最も高いと見なすようにリストの順
番を再構成する。次の圧縮対象のパッキングデータを処
理するためにステップS12へ戻る。
The data from the head data of the list storage means 30 to the data immediately before the registration position of the packing data is sequentially shifted backward one by one (step S26). here,
When moving backward, if the maximum number that can be stored in the list storage means 30 is exceeded, the final data is deleted. The packing data is inserted into the head of the list storage unit 30 (step S28), and the order of the list is reconfigured so that the data that appeared last time has the highest probability of appearing. The process returns to step S12 to process the next packing data to be compressed.

【0027】さらに、本発明は上記の実施形態のみに限
定されたものではない。上述した実施形態を構成する各
機能をそれぞれプログラム化し、予めCD−ROM等の
記録媒体に書き込んでおき、このCD−ROMを各サイ
トのCD−ROMドライブのような媒体駆動装置を搭載
したコンピュータ装置に装着して、プログラムをメモリ
あるいは記憶装置に格納し、コンピュータ装置のCPU
が記録媒体に格納されたプログラムを読出し実行するこ
とによっても、本発明の目的が達成されることは言うま
でもない。また、上述のプログラムがROM(Read Onl
y Memory)に記憶されている場合には、このROMから
プログラムを読み込むので媒体駆動装置を備えていなく
てもよい。
Further, the present invention is not limited to the above embodiment. A computer device in which each function configuring the above-described embodiment is programmed and written in advance in a recording medium such as a CD-ROM, and this CD-ROM is mounted with a medium driving device such as a CD-ROM drive at each site. Installed on the computer, stores the program in the memory or storage device, and stores it in the CPU of the computer device.
Needless to say, the object of the present invention can be achieved by reading and executing the program stored in the recording medium. In addition, the above program is a ROM (Read Onl
If it is stored in the y memory), the program is read from this ROM, and thus the medium driving device may not be provided.

【0028】この場合、記録媒体から読出されたプログ
ラム自体が上述した実施形態の機能を実現することにな
り、そのプログラムおよびそのプログラムを記録した記
録媒体も本発明を構成することになる。
In this case, the program itself read from the recording medium realizes the functions of the above-described embodiment, and the program and the recording medium recording the program also constitute the present invention.

【0029】尚、記録媒体としては半導体媒体(例え
ば、ROM、不揮発性メモリカード等)、光媒体(例え
ば、DVD、MO、MD、CD−R等)、磁気媒体(例
えば、磁気テープ、フレキシブルディスク等)のいずれ
であってもよい。
As recording media, semiconductor media (eg, ROM, non-volatile memory card, etc.), optical media (eg, DVD, MO, MD, CD-R, etc.), magnetic media (eg, magnetic tape, flexible disk). Etc.).

【0030】また、ロードしたプログラムを実行するこ
とにより上述した実施形態の機能が実現されるだけでな
く、そのプログラムの指示に基づき、オペレーティング
システム等が実際の処理の一部または全部を行い、その
処理によって上述した実施形態の機能が実現される場合
も含まれる。
Further, not only the functions of the above-described embodiment are realized by executing the loaded program, but the operating system or the like performs a part or all of the actual processing based on the instruction of the program, and It also includes the case where the functions of the above-described embodiments are realized by the processing.

【0031】また、上述したプログラムをサーバコンピ
ュータの磁気ディスク等の記憶装置に格納しておき、イ
ンターネット等の通信網で接続されたユーザのコンピュ
ータからダウンロード等の形式で頒布する場合、このサ
ーバコンピュータの記憶装置も本発明の記録媒体に含ま
れる。
When the above-mentioned program is stored in a storage device such as a magnetic disk of a server computer and distributed in a format such as download from a user's computer connected by a communication network such as the Internet, the server computer A storage device is also included in the recording medium of the present invention.

【0032】[0032]

【発明の効果】以上説明したように本発明によれば、M
TF符号化方式を利用してデータを圧縮する場合に、こ
のデータの発生する確率が偏っているときに、起こりう
るデータ値を保持する総数を少なくすることができるの
で、メモリの使用量を節減することができ、このMTF
符号化方式を組み込む装置やLSIの単価や実装面積を
減らすことができる。
As described above, according to the present invention, M
When compressing data using the TF encoding method, when the probability of occurrence of this data is biased, it is possible to reduce the total number of data values that can occur, thus saving memory usage. Can this MTF
It is possible to reduce the unit price and mounting area of a device or an LSI that incorporates the encoding method.

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

【図1】 本実施形態の機能構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a functional configuration of this embodiment.

【図2】 リスト記憶手段の再構成を説明するための図
である。
FIG. 2 is a diagram for explaining reconfiguration of list storage means.

【図3】 本実施形態の処理手順を説明するフローチャ
ートである。
FIG. 3 is a flowchart illustrating a processing procedure of this embodiment.

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

10…ビットパッキング手段、20…比較手段、30…
リスト記憶手段、40…シンボル生成手段、50…リス
ト再構成手段、60…圧縮手段。
10 ... Bit packing means, 20 ... Comparison means, 30 ...
List storage means, 40 ... Symbol generation means, 50 ... List reconstruction means, 60 ... Compression means.

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C059 KK08 MA45 MC38 ME01 ME05 ME11 PP14 SS06 SS11 UA02 UA38 5C078 AA04 BA33 BA43 CA27 DA01 DA11 5D045 DA20 5J064 AA02 BA09 BC01 BC14 BC22 BC23 BC28 BC29 BD03 BD04   ─────────────────────────────────────────────────── ─── Continued front page    F-term (reference) 5C059 KK08 MA45 MC38 ME01 ME05                       ME11 PP14 SS06 SS11 UA02                       UA38                 5C078 AA04 BA33 BA43 CA27 DA01                       DA11                 5D045 DA20                 5J064 AA02 BA09 BC01 BC14 BC22                       BC23 BC28 BC29 BD03 BD04

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 入力されたデジタルデータをNビット毎
に分割するビットパッキング手段と、データを重複のな
いリストとして記憶するリスト記憶手段と、前記パッキ
ングデータと前記リスト中のデータとを比較する比較手
段と、前記比較結果からシンボルを生成するシンボル生
成手段と、前記比較結果から前記リストを再構成するリ
スト再構成手段と、前記生成されたシンボル列を圧縮し
符号語を形成する圧縮手段とを備え、前記リスト記憶手
段の大きさとして、2のN乗より小さい値を用いること
を特徴とする信号符号化装置。
1. A bit packing means for dividing the input digital data into N bits, a list storage means for storing the data as a non-overlapping list, and a comparison for comparing the packing data with the data in the list. Means, symbol generation means for generating a symbol from the comparison result, list reconstruction means for reconstructing the list from the comparison result, and compression means for compressing the generated symbol sequence to form a code word. A signal encoding device, comprising: a value smaller than the Nth power of 2 as the size of the list storage means.
【請求項2】 請求項1に記載の信号符号化装置におい
て、前記リスト再構成手段は、前記比較手段で前記パッ
キングデータが前記リスト中にないと判断された場合は
そのリストの最後の次に格納されていると仮定し、前記
リストに登録されているパッキングデータを削除し、前
記リストの先頭へ挿入してリストを再構成することを特
徴とする信号符号化装置。
2. The signal coding apparatus according to claim 1, wherein said list reconstructing means, if said comparing means judges that said packing data is not included in said list, moves to the end of the list. A signal encoding apparatus, which is assumed to be stored, deletes packing data registered in the list and inserts the packing data at the head of the list to reconstruct the list.
【請求項3】 請求項1または請求項2に記載の信号符
号化装置において、前記シンボル生成手段は、前記比較
手段で前記パッキングデータが前記リスト中にあると判
断された場合、前記リスト中の位置をシンボルとし、前
記比較手段で前記パッキングデータが前記リスト中にな
いと判断された場合、前記リスト中のデータ値が前記パ
ッキングデータ値より小さい個数をカウントし、この個
数と前記パッキングデータ値を加えてシンボルとするこ
とを特徴とする信号符号化装置。
3. The signal encoding device according to claim 1, wherein the symbol generating means selects a symbol in the list when the comparing means determines that the packing data is in the list. When the position of the symbol is used as a symbol and the comparison means determines that the packing data is not in the list, the number of data values in the list smaller than the packing data value is counted, and the number and the packing data value are counted. In addition, the signal encoding device is characterized by using a symbol.
【請求項4】 格納されるデータ量の大きさが2のN乗
より小さいリスト記憶手段を有し、入力されたデジタル
データをNビット毎に分割したパッキングデータと前記
リスト記憶手段に記憶されたリスト中のデータとを比較
し、この比較結果からシンボルの生成と前記リストの再
構成を行って、この生成されたシンボル列を圧縮し符号
語を形成することを特徴とする信号符号化方法。
4. A list storage means having a size of stored data smaller than the Nth power of 2 is provided, and packing data obtained by dividing input digital data into N bits and stored in said list storage means. A signal encoding method characterized by comparing data in a list, generating symbols from the comparison result and reconstructing the list, and compressing the generated symbol sequence to form a code word.
【請求項5】 請求項4に記載の信号符号化方法におい
て、前記リストの再構成は、前記パッキングデータが前
記リスト中にないと判断された場合はそのリストの最後
の次に格納されていると仮定し、前記リストに登録され
ているパッキングデータを削除して、前記リストの先頭
へ挿入することを特徴とする信号符号化方法。
5. The signal coding method according to claim 4, wherein the reconstruction of the list is stored next to the end of the list when it is determined that the packing data is not in the list. It is assumed that the packing data registered in the list is deleted and the packing data is inserted at the head of the list.
【請求項6】 請求項4または請求項5に記載の信号符
号化方法において、前記シンボルの生成は、前記パッキ
ングデータが前記リスト中にあると判断された場合、前
記リスト中の位置をシンボルとし、前記パッキングデー
タが前記リスト中にないと判断された場合、前記リスト
中のデータ値が前記パッキングデータ値より小さい個数
をカウントし、この個数と前記パッキングデータ値を加
えてシンボルとすることを特徴とする信号符号化方法。
6. The signal coding method according to claim 4 or 5, wherein when the packing data is determined to be in the list, the symbol is generated in the signal generation method. When it is determined that the packing data is not in the list, the number of data values in the list smaller than the packing data value is counted, and the number and the packing data value are added to form a symbol. And a signal encoding method.
【請求項7】 コンピュータを、請求項1、2または3
に記載の信号符号化装置として実行させるためのプログ
ラム。
7. The computer according to claim 1, 2 or 3
A program to be executed as the signal encoding device according to.
【請求項8】 請求項7に記載の信号符号化プログラム
を記録したコンピュータ読み取り可能な記録媒体。
8. A computer-readable recording medium recording the signal encoding program according to claim 7.
JP2001398869A 2001-12-28 2001-12-28 Signal encoding device, signal encoding method, program, and recording medium Pending JP2003198379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001398869A JP2003198379A (en) 2001-12-28 2001-12-28 Signal encoding device, signal encoding method, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001398869A JP2003198379A (en) 2001-12-28 2001-12-28 Signal encoding device, signal encoding method, program, and recording medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2005379908A Division JP4155991B2 (en) 2005-12-28 2005-12-28 Signal encoding apparatus, signal encoding method, program, and recording medium

Publications (1)

Publication Number Publication Date
JP2003198379A true JP2003198379A (en) 2003-07-11

Family

ID=27604132

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001398869A Pending JP2003198379A (en) 2001-12-28 2001-12-28 Signal encoding device, signal encoding method, program, and recording medium

Country Status (1)

Country Link
JP (1) JP2003198379A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008123254A1 (en) * 2007-03-29 2008-10-16 Kabushiki Kaisha Toshiba Image encoding method, device, image decoding method, and device
JP4855417B2 (en) * 2005-11-30 2012-01-18 シャープ株式会社 Video encoding device, video decoding device
US8150152B2 (en) 2007-08-31 2012-04-03 Ricoh Company, Ltd. Device and method for encoding image data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4855417B2 (en) * 2005-11-30 2012-01-18 シャープ株式会社 Video encoding device, video decoding device
WO2008123254A1 (en) * 2007-03-29 2008-10-16 Kabushiki Kaisha Toshiba Image encoding method, device, image decoding method, and device
US8150152B2 (en) 2007-08-31 2012-04-03 Ricoh Company, Ltd. Device and method for encoding image data

Similar Documents

Publication Publication Date Title
JP3378257B2 (en) System and method for nested split coding of sparse datasets
JP3653183B2 (en) Wavelet coefficient reconstruction processing method and apparatus, and recording medium
US6031940A (en) System and method for efficiently encoding video frame sequences
US5272478A (en) Method and apparatus for entropy coding
JP4364790B2 (en) Byte-level file difference detection and update algorithm
US7102552B1 (en) Data compression with edit-in-place capability for compressed data
JP3573012B2 (en) Data management device and data management method
US20020172398A1 (en) Image processing apparatus and method, program code and storage medium
JP3778087B2 (en) Data encoding apparatus and data decoding apparatus
JP2011004406A (en) Method and apparatus for coding positions of coefficients
US20020031182A1 (en) Coding device, coding method and storage medium
US8340443B2 (en) System and method for compressing compressed data
US7925643B2 (en) Encoding and decoding of XML document using statistical tree representing XSD defining XML document
WO2004051863A1 (en) Automated method for lossless data compression and decompression of a binary string
US20100321218A1 (en) Lossless content encoding
Kim et al. Multiresolution random accessible mesh compression
JP2003198379A (en) Signal encoding device, signal encoding method, program, and recording medium
US5893100A (en) System and method for tree ordered coding of sparse data sets
JP4155991B2 (en) Signal encoding apparatus, signal encoding method, program, and recording medium
US6373989B1 (en) Iterated image transformation and decoding apparatus and method, and recording medium
JP2006065424A (en) Data storage system, data storage device, similar file recording method to be used for the same and program therefor
US7047410B1 (en) Digital image watermarking method
US6339659B1 (en) Fractal coding/decoding of picture data using memory capacity information
JPH02131671A (en) Image data compression method
JP2000350002A (en) Method of embedding watermark information in data and program recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040902

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20040909

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051027

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051101

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060228

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060427

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060627