JP3001758B2 - Huffman encoding device and Huffman encoding method - Google Patents

Huffman encoding device and Huffman encoding method

Info

Publication number
JP3001758B2
JP3001758B2 JP34137993A JP34137993A JP3001758B2 JP 3001758 B2 JP3001758 B2 JP 3001758B2 JP 34137993 A JP34137993 A JP 34137993A JP 34137993 A JP34137993 A JP 34137993A JP 3001758 B2 JP3001758 B2 JP 3001758B2
Authority
JP
Japan
Prior art keywords
data
encoding
huffman
block
reference 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.)
Expired - Fee Related
Application number
JP34137993A
Other languages
Japanese (ja)
Other versions
JPH07162860A (en
Inventor
秀樹 別所
Original Assignee
鐘紡株式会社
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 鐘紡株式会社 filed Critical 鐘紡株式会社
Priority to JP34137993A priority Critical patent/JP3001758B2/en
Publication of JPH07162860A publication Critical patent/JPH07162860A/en
Application granted granted Critical
Publication of JP3001758B2 publication Critical patent/JP3001758B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、離散コサイン変換さ
れたデータをハフマン符号に符号化するハフマン符号化
装置およびハフマン符号化方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a Huffman coding apparatus and a Huffman coding method for coding data subjected to discrete cosine transform into a Huffman code.

【0002】[0002]

【従来の技術】画像データは非常に多くの情報量を含ん
でいる。そのため、画像データをそのままの形で処理す
るのは、メモリ容量および通信速度の点で実用的ではな
い。そこで、画像データ圧縮技術が重要となる。
2. Description of the Related Art Image data contains a very large amount of information. Therefore, it is not practical to process the image data as it is in terms of memory capacity and communication speed. Therefore, image data compression technology becomes important.

【0003】画像データ圧縮の国際標準の1つとしてJ
PEG(Joint Photographic Ex
pert Group)がある。非可逆符号化を行なう
DCT(離散コサイン変換)方式と、二次元空間でDP
CM(Differential PCM)を行なう可
逆符号化方式が採用されている。以下、DCT方式の画
像データ圧縮を説明する。
[0003] J is one of the international standards for image data compression.
PEG (Joint Photographic Ex)
part group). DCT (Discrete Cosine Transform) for lossy coding and DP in two-dimensional space
A lossless encoding system that performs CM (Differential PCM) is employed. Hereinafter, DCT image data compression will be described.

【0004】図5は、DCT方式の画像データ圧縮を実
行するシステムの基本構成を示すブロック図である。
FIG. 5 is a block diagram showing a basic configuration of a system for executing image data compression of the DCT system.

【0005】DCT変換器10は、入力される原画像デ
ータを離散コサイン変換(以下、DCT変換と呼ぶ)
し、DCT係数を出力する。このDCT変換では、ま
ず、図6に示すように、画像データを複数の8×8画素
ブロックに分割する。図7に示すように、1つの8×8
画素ブロック内には、64個の画素データPXY(X,Y
=0,…,7)が含まれる。分割された各8×8画素ブ
ロックに対して二次元DCT変換を行うと、64個のD
CT係数SUV(U,V=0,…,7)が得られる。
[0005] The DCT converter 10 converts the input original image data into a discrete cosine transform (hereinafter referred to as a DCT transform).
Then, a DCT coefficient is output. In this DCT transform, first, as shown in FIG. 6, image data is divided into a plurality of 8 × 8 pixel blocks. As shown in FIG. 7, one 8 × 8
In the pixel block, 64 pieces of pixel data P XY (X, Y
= 0,..., 7). When two-dimensional DCT transform is performed on each of the divided 8 × 8 pixel blocks, 64 D
The CT coefficient S UV (U, V = 0,..., 7) is obtained.

【0006】DCT係数S00はDC係数と呼ばれ、残り
の63個のDCT係数はAC係数と呼ばれる。図7に示
すように、DCT変換されたブロックの左から右に進む
につれて高周波の水平周波数成分を多く含み、上から下
へ進むにつれて高周波の垂直周波数成分を多く含むこと
になる。
[0006] The DCT coefficient S00 is called a DC coefficient, and the remaining 63 DCT coefficients are called AC coefficients. As shown in FIG. 7, the higher the frequency, the higher the horizontal frequency component of the DCT-transformed block from left to right, and the higher the vertical frequency component of the DCT-transformed block.

【0007】図5の量子化器20は、DCT変換器10
から出力されたDCT係数を量子化し、量子化されたD
CT係数を出力する。この量子化により画質および符号
化情報量が制御される。図8に量子化器20から出力さ
れるDCT係数の一例を示す。図8において、“A”,
“B”,“C”,“D”,“E”,“F”は“0”以外
の値を表している。
[0007] The quantizer 20 of FIG.
, Quantizes the DCT coefficients output from
Output CT coefficients. The image quality and the amount of encoded information are controlled by the quantization. FIG. 8 shows an example of the DCT coefficient output from the quantizer 20. In FIG. 8, "A",
“B”, “C”, “D”, “E”, and “F” represent values other than “0”.

【0008】図5の符号化器30は、量子化器20から
出力されたDCT係数をハフマン符号に符号化し、符号
化データを出力する。DC係数の符号化では、1つ前の
ブロックのDC係数と現在のブロックのDC係数との差
分値を求め、その差分値に対してハフマン符号が割り当
てられる。
[0008] The encoder 30 in FIG. 5 encodes the DCT coefficients output from the quantizer 20 into Huffman codes, and outputs encoded data. In the coding of the DC coefficient, a difference value between the DC coefficient of the immediately preceding block and the DC coefficient of the current block is obtained, and a Huffman code is assigned to the difference value.

【0009】AC係数の符号化では、図9に示すよう
に、AC係数が、まず、ジグザグスキャンによって一次
元に配列される。この一次元に配列されたAC係数は、
連続する“0 ”の係数(無効係数)の長さを示すラン長
と、“0 ”以外の係数(有効係数)の値とを用いて符号
化される。有効係数はグループ分けされ、各有効係数に
グループ番号が割り当てられる。AC符号の符号化で
は、ラン長とグループ番号との組み合わせに対してハフ
マン符号が割り当てられる。上記のようにして、原画像
データが符号化データに符号化される。
In the coding of AC coefficients, as shown in FIG. 9, first, AC coefficients are arranged one-dimensionally by zigzag scanning. This one-dimensionally arranged AC coefficient is
Encoding is performed using a run length indicating the length of successive “0” coefficients (ineffective coefficients) and values of coefficients (effective coefficients) other than “0”. Effective coefficients are grouped, and a group number is assigned to each effective coefficient. In the coding of an AC code, a Huffman code is assigned to a combination of a run length and a group number. As described above, the original image data is encoded into encoded data.

【0010】[0010]

【発明が解決しようとする課題】DCT変換されたデー
タ(DCT係数)において、低周波成分はそのブロック
に均一に存在する色または明るさを表わし、高周波成分
は色または明るさの変化の度合いを表わしている。人間
の視覚は、一般に、高周波成分に鈍感である。したがっ
て、ハフマン符号化処理において原画像データに対する
符号化データの圧縮比を向上させるために、一定周波数
以上のDCT係数を切り捨てる方法が用いられていた。
In the DCT-transformed data (DCT coefficients), the low-frequency component represents the color or brightness uniformly existing in the block, and the high-frequency component represents the degree of change in the color or brightness. It represents. Human vision is generally insensitive to high frequency components. Therefore, in the Huffman encoding process, a method of truncating DCT coefficients of a certain frequency or higher has been used in order to improve the compression ratio of encoded data to original image data.

【0011】しかし、上記の方法を用いると、圧縮比の
向上に従ってブロック間で色または明るさが急激に変化
するブロック歪み等が発生し、画質の劣化が顕著に現れ
るという問題があった。このような画質の劣化は、文字
画像、コンピュータグラフィクス画像のように高周波成
分が多い画像で特に著しくなる。
However, when the above method is used, there is a problem that block distortion or the like in which the color or brightness changes abruptly between blocks according to the improvement of the compression ratio, and the image quality is significantly deteriorated. Such deterioration in image quality is particularly remarkable in an image having many high frequency components such as a character image and a computer graphics image.

【0012】それゆえに、この発明の目的は、画質を維
持しつつ圧縮比を高めることができるハフマン符号化装
置およびハフマン符号化方法を提供することである。
SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a Huffman coding apparatus and a Huffman coding method capable of increasing a compression ratio while maintaining image quality.

【0013】[0013]

【課題を解決するための手段】(1)第1の発明 第1の発明に係るハフマン符号化装置は、離散コサイン
変換されたデータをブロック単位でハフマン符号に符号
化するためのハフマン符号化装置であって、符号化手
段、計数手段、記憶手段および指令手段を備える。
Means for Solving the Problems (1) First invention A Huffman coding apparatus according to a first invention is a Huffman coding apparatus for coding discrete cosine transformed data into Huffman codes in block units. And an encoding unit, a counting unit, a storage unit, and a command unit.

【0014】符号化手段は、離散コサイン変換された
ブロックのデータをハフマン符号に符号化する。計数手
段は、離散コサイン変換された各ブロックのデータにお
いて連続する0の数を計数する。記憶手段は、データの
切捨ての基準となる連続する0の数を基準値として予め
記憶する。指令手段は、計数手段により得られた連続す
る0の数が記憶手段に記憶された基準値以上になったと
きに符号化手段に当該ブロックにおける符号化処理の終
了を指令する。
The encoding means includes a discrete cosine transform for each
Encode the block data into Huffman code. The counting means counts the number of consecutive zeros in the data of each block subjected to the discrete cosine transform. The storage means stores in advance the number of consecutive zeros that serves as a reference for data truncation as a reference value. The command means instructs the coding means to end the coding process in the block when the number of consecutive zeros obtained by the counting means becomes equal to or larger than the reference value stored in the storage means.

【0015】(2)第2の発明 第2の発明に係るハフマン符号化方法は、離散コサイン
変換されたデータをブロック単位でハフマン符号に符号
化するためのハフマン符号化方法であって次のステップ
を含む。離散コサイン変換された各ブロックのデータを
ハフマン符号に符号化するとともに、離散コサイン変換
された各ブロックのデータにおいて連続する0の数を計
数する。データの切捨ての基準となる連続する0の数を
基準値として予め設定する。計数された連続する0の数
が設定された基準値以上になったときに当該ブロックに
おける符号化の処理を終了する。
(2) Second invention A Huffman coding method according to a second invention is a Huffman coding method for coding discrete cosine transformed data into a Huffman code in block units. including. The data of each block subjected to the discrete cosine transform is encoded into a Huffman code, and the number of consecutive 0s in the data of each block subjected to the discrete cosine transform is counted. The number of consecutive 0s, which is a reference for data truncation, is set in advance as a reference value. When the counted number of consecutive 0s is equal to or greater than the set reference value ,
The encoding process is terminated.

【0016】[0016]

【作用】本発明者は、離散コサイン変換されたデータを
数多く分析した結果、0がある程度の数以上連続する場
合、それ以上の高周波成分のデータを切り捨てても画質
にほとんど影響がないという知見を得た。これは、離散
コサイン変換されたデータにおいて、0がある程度の数
以上連続する場合には、それよりも高周波側にはほとん
ど画質に影響を与えるデータが存在しないことを意味し
ている。そこで、本発明者は、このような連続する0の
数と高周波成分との関係に着目して本発明を創作した。
The present inventor has analyzed a large number of discrete cosine transformed data. As a result, it has been found that when 0s continue for a certain number or more, even if data of higher frequency components is cut off, there is almost no effect on image quality. Obtained. This means that in the data subjected to the discrete cosine transform, if 0 continues more than a certain number, there is almost no data that affects the image quality on the higher frequency side. Therefore, the present inventor has created the present invention paying attention to such a relationship between the number of continuous 0s and the high-frequency component.

【0017】第1の発明に係るハフマン符号化装置およ
び第2の発明に係るハフマン符号化方法においては、離
散コサイン変換されたデータにおいて連続する0の数を
計数し、連続する0の数が予め設定された基準値以上に
なったときにハフマン符号化の処理を終了する。
In the Huffman coding apparatus according to the first invention and the Huffman coding method according to the second invention, the number of consecutive zeros in the data subjected to the discrete cosine transform is counted, and the number of consecutive zeros is determined in advance. When the value becomes equal to or larger than the set reference value, the Huffman encoding process is terminated.

【0018】それにより、連続する0の数が基準値以上
になった場合に、それ以降、高周波成分のデータは処理
されず、符号化されるハフマン符号の数が減少する。こ
の場合、高周波側のデータは画質にはほとんど影響を与
えないので、ブロック歪みが生じず、画質を維持しつつ
圧縮比を向上させることができる。
As a result, when the number of consecutive zeros exceeds the reference value, the data of the high-frequency component is not processed thereafter, and the number of Huffman codes to be encoded decreases. In this case, since the data on the high frequency side hardly affects the image quality, block distortion does not occur, and the compression ratio can be improved while maintaining the image quality.

【0019】また、画像の特性に応じてブロックごとに
処理されない高周波成分のデータの量が変化するので、
均一な画質が得られる。さらに、画像の種類に応じて基
準値を変えることにより、画像の種類に応じた適切な画
質および圧縮比が得られる。
Also, since the amount of high-frequency component data that is not processed for each block changes according to the characteristics of the image,
Uniform image quality can be obtained. Further, by changing the reference value according to the type of the image, an appropriate image quality and compression ratio according to the type of the image can be obtained.

【0020】[0020]

【実施例】図1は、この実施例のハフマン符号化装置の
構成を示すブロック図である。このハフマン符号化装置
は、ゼロデータ検出部1、ゼロ計数部2、符号化部3、
ゼロラン長設定部4およびブロック完了検出部5を含
む。これらの各部は、ハードウエアのみまたはソフトウ
エアのみで構成することもでき、あるいは、ハードウエ
アとソフトウエアの両方で構成することもできる。
FIG. 1 is a block diagram showing the configuration of a Huffman coding apparatus according to this embodiment. This Huffman encoding device includes a zero data detecting unit 1, a zero counting unit 2, an encoding unit 3,
It includes a zero run length setting section 4 and a block completion detecting section 5. Each of these units can be configured only with hardware or only software, or can be configured with both hardware and software.

【0021】ゼロデータ検出部1には、例えば図8に示
した量子化されたDCT係数がジグザグスキャンにより
順次入力データとして与えられる。ゼロデータ検出部1
は、その入力データから“0 ”のデータ(無効係数)を
検出し、検出した“0 ”のデータをゼロ計数部2に与え
るとともに、“0 ”以外のデータ(有効係数)を符号化
部3に与える。
The quantized DCT coefficients shown in FIG. 8, for example, are sequentially supplied to the zero data detecting section 1 by zigzag scanning as input data. Zero data detector 1
Detects "0" data (invalid coefficient) from the input data, supplies the detected "0" data to the zero counting unit 2, and outputs data (effective coefficient) other than "0" to the encoding unit 3. Give to.

【0022】ゼロ計数部2は、ゼロデータ検出部1から
与えられた“0 ”のデータの数をカウントし、カウント
結果をゼロラン長として符号化部3およびブロック完了
検出部5に与える。符号化部3は、ゼロデータ検出部1
から与えられる有効係数およびゼロ計数部2から与えら
れるゼロラン長に基づいて従来と同様の方法でハフマン
符号化処理を行い、符号化データを出力する。
The zero counting section 2 counts the number of "0" data supplied from the zero data detecting section 1 and supplies the count result to the encoding section 3 and the block completion detecting section 5 as a zero run length. The encoding unit 3 includes a zero data detection unit 1
The Huffman encoding process is performed in the same manner as in the related art based on the effective coefficient given from the above and the zero run length given from the zero counting unit 2 to output encoded data.

【0023】一方、ゼロラン長設定部4には、予めデー
タの切捨ての基準となるゼロラン長が基準値として設定
されている。この基準値が大きいほど画質は向上する
が、圧縮比は小さくなる。ブロック完了検出部5はゼロ
計数部2から与えられるゼロラン長をゼロラン長設定部
4に設定された基準値と比較し、ゼロラン長が基準値以
上になると符号化部3にブロック完了信号を与える。符
号化部3は、ブロック完了信号に応答して、現在処理中
のブロックについてのハフマン符号化処理を終了する。
On the other hand, in the zero run length setting section 4, a zero run length which is a reference for data truncation is set in advance as a reference value. The image quality improves as the reference value increases, but the compression ratio decreases. The block completion detecting unit 5 compares the zero run length given from the zero counting unit 2 with the reference value set in the zero run length setting unit 4, and sends a block completion signal to the encoding unit 3 when the zero run length becomes equal to or longer than the reference value. The encoding unit 3 ends the Huffman encoding process for the block currently being processed in response to the block completion signal.

【0024】次に、図2、図3および図4に示す3つの
タイプのDCT係数のブロックを参照しながら上記実施
例の方式の有効性を説明する。
Next, the effectiveness of the system of the above embodiment will be described with reference to three types of DCT coefficient blocks shown in FIGS.

【0025】図2の(a),(b)は高周波領域に
“0”以外のデータが存在しないブロックの例を示す。
このタイプのブロックでは、中間周波領域に長いゼロラ
ン長が現れ、高周波領域には“0 ”以外のデータが存在
しない。したがって、高周波成分は画質に影響を与えな
い。
FIGS. 2A and 2B show examples of blocks in which no data other than "0" exists in the high-frequency region.
In this type of block, a long zero run length appears in the intermediate frequency region, and no data other than "0" exists in the high frequency region. Therefore, the high frequency component does not affect the image quality.

【0026】図3の(a),(b)は低周波領域から高
周波領域まで“0”以外のデータが分布するブロックの
例を示す。このタイプのブロックでは、中間周波領域に
おいて長いゼロラン長が存在せず、高周波領域にも
“0”以外のデータが多く存在する。したがって、高周
波成分は画質に影響を与え、高周波成分を切り捨てる
と、画質が劣化する。
FIGS. 3A and 3B show examples of blocks in which data other than "0" is distributed from the low frequency region to the high frequency region. In this type of block, a long zero run length does not exist in the intermediate frequency region, and many data other than “0” also exist in the high frequency region. Therefore, the high-frequency component affects the image quality, and if the high-frequency component is cut off, the image quality deteriorates.

【0027】図4の(a),(b)は中間周波領域に
“0”以外のデータが存在しないブロックの例を示す。
このタイプのブロックでは、中間周波領域に長いゼロラ
ン長が現れ、高周波領域に僅かに“0”以外のデータが
存在する。この場合、高周波成分は、画質にほとんど影
響を与えない。
FIGS. 4A and 4B show examples of blocks in which no data other than "0" exists in the intermediate frequency region.
In this type of block, a long zero run length appears in the intermediate frequency region, and data other than "0" slightly exists in the high frequency region. In this case, the high frequency component hardly affects the image quality.

【0028】上記の例からも、高周波成分の画質に与え
る影響がゼロラン長に依存していることがわかる。
The above example also shows that the effect of the high frequency component on the image quality depends on the zero run length.

【0029】図2のタイプのブロックでは、本実施例の
方式を用いても従来の方式を用いても高周波成分が切り
捨てられ、データ量が少なくなる。この場合、高周波領
域には“0 ”以外のデータが存在しないので、高周波成
分を切り捨てても画質に影響はない。
In the block of the type shown in FIG. 2, the high-frequency component is cut off by using the method of this embodiment or the conventional method, and the data amount is reduced. In this case, since there is no data other than "0" in the high frequency region, the image quality is not affected even if the high frequency component is cut off.

【0030】図3のタイプのブロックに対して従来の方
式を用いると、高周波成分が強制的に切り捨てられ、画
質の劣化を招く。一方、本実施例の方式を用いると、中
間周波領域においてゼロラン長が短いので、高周波成分
が切り捨てられない。したがって、データ量は減少しな
いが、画質は維持される。
When a conventional method is used for a block of the type shown in FIG. 3, high-frequency components are forcibly cut off, resulting in deterioration of image quality. On the other hand, when the method of this embodiment is used, the zero-run length is short in the intermediate frequency region, so that the high-frequency component is not cut off. Therefore, although the data amount does not decrease, the image quality is maintained.

【0031】図4のタイプのブロックに対して従来の方
式を用いると、高周波成分が切り捨てられ、データ量が
少なくなる。また、本実施例の方式を用いても、中間周
波領域でゼロラン長が長くなるので、高周波成分が切り
捨てられ、データ量が少なくなる。この場合には、高周
波成分が画質にほとんど影響を与えないので、高周波成
分を切り捨てても画質が維持される。
When a conventional method is used for a block of the type shown in FIG. 4, high-frequency components are cut off, and the amount of data is reduced. Further, even when the method of the present embodiment is used, the zero-run length becomes longer in the intermediate frequency region, so that the high-frequency component is truncated and the data amount is reduced. In this case, since the high-frequency component hardly affects the image quality, the image quality is maintained even if the high-frequency component is cut off.

【0032】このように、本実施例の方式は、図3のタ
イプのブロックに対して非常に有効であり、従来の方式
に比べて高画質が維持される。
As described above, the method of this embodiment is very effective for the block of the type shown in FIG. 3, and maintains high image quality as compared with the conventional method.

【0033】なお、ゼロラン長設定部4に設定される基
準値は、画像の種類に応じて任意に選択することができ
る。例えば、自然画の場合には、基準値を大きく設定す
ることにより高画質が得られる。一方、高周波成分の大
きい文字画像やコンピュータグラフィクス画像の場合に
は、基準値を小さく設定しても画質は維持される。この
場合には、圧縮比が大きくなり、処理速度が向上する。
The reference value set in the zero run length setting section 4 can be arbitrarily selected according to the type of image. For example, in the case of a natural image, high image quality can be obtained by setting a large reference value. On the other hand, in the case of a character image or a computer graphics image having a large high-frequency component, the image quality is maintained even if the reference value is set small. In this case, the compression ratio increases and the processing speed improves.

【0034】このように、上記実施例のハフマン符号化
装置は、高周波成分の大きい文字画像やコンピュータグ
ラフィクス画像に有効である。したがって、画像の種類
に応じてゼロラン長設定部4に設定する基準値を選択的
に変更することにより、画像の種類に応じた適切な画質
および圧縮比が得られる。
As described above, the Huffman encoding apparatus of the above embodiment is effective for character images and computer graphics images having large high frequency components. Therefore, by selectively changing the reference value set in the zero run length setting unit 4 according to the type of image, an appropriate image quality and compression ratio according to the type of image can be obtained.

【0035】なお、この発明は、JPEG方式だけでな
く、例えばMPEG(Moving Picture Image Coding Ex
pert Group)方式等のハフマン符号化を用いる他の方式
にも適用可能である。
It should be noted that the present invention is not limited to the JPEG system, but includes, for example, MPEG (Moving Picture Image Coding Ex
The present invention is also applicable to other systems using Huffman coding such as a pert group system.

【0036】[0036]

【発明の効果】以上のように、この発明によれば、連続
する0の数が設定された基準値以上になったときにハフ
マン符号化の処理を終了するので、画質を維持しつつ、
原画像データに対するハフマン符号化データの圧縮比を
向上させることができる。また、画像の特性に応じてブ
ロックごとに処理されない高周波成分のデータの量が変
化するので、均一な画質が得られる。さらに、画像の種
類に応じて基準値を選択することにより、画像の種類に
応じた適切な画質および圧縮率が得られる。
As described above, according to the present invention, the Huffman coding process is terminated when the number of consecutive 0s becomes equal to or more than the set reference value, so that the image quality is maintained.
It is possible to improve the compression ratio of Huffman encoded data to original image data. Further, since the amount of high-frequency component data that is not processed for each block changes according to the characteristics of the image, uniform image quality can be obtained. Furthermore, by selecting a reference value according to the type of image, an appropriate image quality and compression ratio according to the type of image can be obtained.

【0037】したがって、ハフマン符号化処理およびハ
フマン復号化処理の両方において、処理データが減少
し、画質を維持しつつ処理速度を高速化することが可能
となる。
Therefore, in both the Huffman encoding process and the Huffman decoding process, the processing data is reduced, and the processing speed can be increased while maintaining the image quality.

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

【図1】この発明の一実施例のハフマン符号化装置の構
成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a Huffman encoding device according to an embodiment of the present invention.

【図2】高周波領域に“0”以外のデータが存在しない
DCT係数のブロックの例を示す図である。
FIG. 2 is a diagram illustrating an example of a block of DCT coefficients in which data other than “0” does not exist in a high frequency region.

【図3】低周波領域から高周波領域まで“0”以外のデ
ータが分布するDCT係数のブロックの例を示す図であ
る。
FIG. 3 is a diagram illustrating an example of a block of DCT coefficients in which data other than “0” is distributed from a low frequency region to a high frequency region.

【図4】中間周波領域に“0”以外のデータが存在しな
いDCT係数のブロックの例を示す図である。
FIG. 4 is a diagram illustrating an example of a block of DCT coefficients in which data other than “0” does not exist in an intermediate frequency region.

【図5】DCT方式による画像データ圧縮システムを示
すブロック図である。
FIG. 5 is a block diagram showing an image data compression system based on the DCT method.

【図6】画像データのブロック化を示す図である。FIG. 6 is a diagram showing blocking of image data.

【図7】8×8画素ブロックおよびDCT変換されたブ
ロックを示す図である。
FIG. 7 is a diagram illustrating an 8 × 8 pixel block and a block subjected to DCT conversion.

【図8】量子化されたDCT係数の一例を示す図であ
る。
FIG. 8 is a diagram illustrating an example of quantized DCT coefficients.

【図9】ジグザグスキャンを説明するための図である。FIG. 9 is a diagram for explaining zigzag scanning.

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

1 ゼロデータ検出部 2 ゼロ計数部 3 符号化部 4 ゼロラン長設定部 5 ブロック完了検出部 なお、各図中同一符号は同一または相当部分を示す。 DESCRIPTION OF SYMBOLS 1 Zero data detection part 2 Zero counting part 3 Encoding part 4 Zero run length setting part 5 Block completion detection part The same code in each figure shows the same or equivalent part.

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

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 離散コサイン変換されたデータをブロッ
ク単位でハフマン符号に符号化するためのハフマン符号
化装置であって、 前記離散コサイン変換された各ブロックのデータをハフ
マン符号に符号化する符号化手段と、 前記離散コサイン変換された各ブロックのデータにおい
て連続する0の数を計数する計数手段と、 データの切捨ての基準となる連続する0の数を基準値と
して予め記憶する記憶手段と、 前記計数手段により得られた連続する0の数が前記記憶
手段に記憶された基準値以上になったときに前記符号化
手段に当該ブロックにおける符号化処理の終了を指令す
る指令手段とを備えた、ハフマン符号化装置。
1. A block of discrete cosine transformed data
A Huffman encoder for encoding the Huffman code using the clock unit, the data of the discrete cosine transformed blocks and encoding means for encoding the Huffman code, the discrete cosine transformed in blocks Counting means for counting the number of consecutive zeros in the data; storage means for previously storing the number of consecutive zeros as a reference for data truncation as a reference value; and the number of consecutive zeros obtained by the counting means A Huffman encoding apparatus comprising: a command unit that instructs the encoding unit to end the encoding process in the block when the reference value stored in the storage unit is equal to or more than the reference value.
【請求項2】 離散コサイン変換されたデータをブロッ
ク単位でハフマン符号に符号化するためのハフマン符号
化方法であって、 前記離散コサイン変換された各ブロックのデータをハフ
マン符号に符号化するとともに、前記離散コサイン変換
された各ブロックのデータにおいて連続する0の数を計
数し、 データの切捨ての基準となる連続する0の数を基準値と
して予め設定し、 前記計数された連続する0の数が前記設定された基準値
以上になったときに当該ブロックにおける前記符号化の
処理を終了する、ハフマン符号化方法。
2. A method for dividing discrete cosine transformed data into blocks.
A Huffman coding method for encoding the Huffman code using the clock unit continuously, while encoding the data of the discrete cosine transformed blocks to the Huffman code, the data of the discrete cosine transformed blocks The number of consecutive zeros to be counted as a reference value is set in advance as a reference value, and when the counted number of consecutive zeros becomes equal to or greater than the set reference value, A Huffman encoding method for ending the encoding process in the block .
JP34137993A 1993-12-10 1993-12-10 Huffman encoding device and Huffman encoding method Expired - Fee Related JP3001758B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34137993A JP3001758B2 (en) 1993-12-10 1993-12-10 Huffman encoding device and Huffman encoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34137993A JP3001758B2 (en) 1993-12-10 1993-12-10 Huffman encoding device and Huffman encoding method

Publications (2)

Publication Number Publication Date
JPH07162860A JPH07162860A (en) 1995-06-23
JP3001758B2 true JP3001758B2 (en) 2000-01-24

Family

ID=18345611

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34137993A Expired - Fee Related JP3001758B2 (en) 1993-12-10 1993-12-10 Huffman encoding device and Huffman encoding method

Country Status (1)

Country Link
JP (1) JP3001758B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073069B (en) * 2020-09-07 2024-03-26 中电科思仪科技股份有限公司 Test vector lossless compression method suitable for integrated circuit test

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60261254A (en) * 1984-06-08 1985-12-24 Sanyo Electric Co Ltd Encoding circuit
JPH03213059A (en) * 1990-01-18 1991-09-18 Ricoh Co Ltd Picture data compressing method

Also Published As

Publication number Publication date
JPH07162860A (en) 1995-06-23

Similar Documents

Publication Publication Date Title
EP0519962B1 (en) Digital image coding using a random scanning of image frames
CN100518295C (en) DCT compression using Golomb-Rice coding
US5719961A (en) Adaptive technique for encoder and decoder signal transformation
US9077960B2 (en) Non-zero coefficient block pattern coding
US20040196903A1 (en) Fixed bit rate, intraframe compression and decompression of video
US6298087B1 (en) System and method for decoding a variable length code digital signal
JPH07123269A (en) Corder for picture signal
JPH0832037B2 (en) Image data compression device
EP0519995B1 (en) Digital image processing including block edges filtering
US6606039B2 (en) Huffman encoder, Huffman encoding method and recording medium having program for Huffman encoding process recorded thereon
US7551788B2 (en) Digital image coding device and method for noise removal using wavelet transforms
JPH06292019A (en) Picture data compressor and picture code compressor
JP3001758B2 (en) Huffman encoding device and Huffman encoding method
US6084913A (en) Method for compressing dynamic image information and system and device therefor
EP1629675B1 (en) Fixed bit rate, intraframe compression and decompression of video
JP3235761B2 (en) High efficiency coding device
EP1892965A2 (en) Fixed bit rate, intraframe compression and decompression of video
JP3211989B2 (en) Orthogonal transform encoding device and decoding device
JPH09172636A (en) Coder
JP3230336B2 (en) Recompression device and recompression system
JP3191462B2 (en) High efficiency coding device
JP2000333175A (en) Image coder
JP3199786B2 (en) Image processing device
JP2639842B2 (en) Discrete cosine transform coding method
JP3200073B2 (en) Image processing device

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20071112

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20081112

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20081112

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20091112

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20091112

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20101112

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20111112

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20111112

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20121112

Year of fee payment: 13

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

Free format text: PAYMENT UNTIL: 20121112

Year of fee payment: 13

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20121112

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20131112

Year of fee payment: 14

LAPS Cancellation because of no payment of annual fees