JPH09284767A - Picture compression system and picture compression method - Google Patents

Picture compression system and picture compression method

Info

Publication number
JPH09284767A
JPH09284767A JP24655596A JP24655596A JPH09284767A JP H09284767 A JPH09284767 A JP H09284767A JP 24655596 A JP24655596 A JP 24655596A JP 24655596 A JP24655596 A JP 24655596A JP H09284767 A JPH09284767 A JP H09284767A
Authority
JP
Japan
Prior art keywords
block
dct
compression
data
code data
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
JP24655596A
Other languages
Japanese (ja)
Inventor
Masanari Asano
眞成 浅野
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.)
Fujifilm Holdings Corp
Fujifilm Microdevices Co Ltd
Original Assignee
Fujifilm Microdevices Co Ltd
Fuji Photo Film 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 Fujifilm Microdevices Co Ltd, Fuji Photo Film Co Ltd filed Critical Fujifilm Microdevices Co Ltd
Priority to JP24655596A priority Critical patent/JPH09284767A/en
Priority to US08/932,750 priority patent/US6014467A/en
Publication of JPH09284767A publication Critical patent/JPH09284767A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To accelerate a compression processing by parallelly performing the process of preparing code data by the two kinds of compression degrees after generating the DCT coefficient of a block 1 and the process of generating the DCT coefficient of the block 2. SOLUTION: A DCT part 2 performs a DCT processing to the picture data of the block 1 first, and when a controller 8 detects the end, a similar processing is performed to the blocks 2-(n). Then, for the DCT coefficient generated by ending the DCT processing to the block 1, the controller 8 instructs a quantization part 4 to perform quantization in the quantization table 11 of a scale factor SFx and quantized data are generated. When the controller 8 detects generation end, an encoding processing is instructed to an encoding part 5 and the code data of the block 1 are generated. Similarly thereafter, the processing is continued until the last block (n) and the picture data of one frame are compressed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル画像処理
システムに関し、特に、デジタル画像を圧縮してデータ
量を少なくすることができる画像圧縮システムおよび画
像圧縮方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital image processing system, and more particularly to an image compression system and an image compression method capable of compressing a digital image to reduce the amount of data.

【0002】[0002]

【従来の技術】画像圧縮システムを用いるものの一つ
に、デジタルスチルカメラがある。デジタルスチルカメ
ラは、被写体にレンズを向けて、シャッタボタンを押す
ことにより、デジタル静止画像の撮影を行う。レンズを
介して結像される画像は、電気信号に変換され、データ
圧縮されて、取り替え可能なメモリカード等に記憶され
る。データ圧縮は、データ量を減らして、メモリカード
に多くの画像データを記憶させるための処理である。
2. Description of the Related Art One of those that use an image compression system is a digital still camera. A digital still camera shoots a digital still image by pointing a lens at a subject and pressing a shutter button. The image formed via the lens is converted into an electric signal, compressed, and stored in a replaceable memory card or the like. Data compression is a process for reducing the amount of data and storing a large amount of image data in a memory card.

【0003】デジタル画像をデータ圧縮することにより
得られる符号データの量は、デジタル画像が有する空間
的周波数分布等により異なる。例えば、高周波成分を多
く含むデジタル画像については、符号データの量をあま
り少なくすることができない。一方、高周波成分の少な
いデジタル画像については、符号データの量をかなり少
なくすることができる。つまり、データ圧縮の方式によ
り異なるが、一般的にデータ圧縮により生成される符号
データの量は、デジタル画像の種類により異なる。
The amount of coded data obtained by data compression of a digital image differs depending on the spatial frequency distribution of the digital image and the like. For example, for a digital image containing many high-frequency components, the amount of code data cannot be reduced much. On the other hand, with respect to a digital image having few high frequency components, the amount of code data can be considerably reduced. That is, the amount of code data generated by data compression generally differs depending on the type of digital image, although it differs depending on the data compression method.

【0004】データ圧縮された符号データは、メモリカ
ード等の記憶媒体に記憶される。メモリカードは、例え
ば1Mバイトの記憶容量を有するものであり、その場合
1Mバイト以上のデータを記憶させることができない。
[0004] Code data obtained by data compression is stored in a storage medium such as a memory card. The memory card has a storage capacity of, for example, 1 Mbyte, and in that case, data of 1 Mbyte or more cannot be stored.

【0005】メモリカードに1Mバイトを越えて、符号
データを書き込まないようにするため、または撮影者の
便宜のために、記録可能な残り枚数を撮影者に知らせる
必要がある。データ圧縮される符号データがデジタル画
像の種類によらず、各画像当たり全て同じデータ量であ
るならば、メモリカードに記録可能なデジタル画像の枚
数を撮影者に容易に知らせることができる。
It is necessary to inform the photographer of the remaining number of recordable sheets in order to prevent the code data from being written in the memory card exceeding 1 Mbyte or for the convenience of the photographer. If the code data to be data-compressed has the same data amount for each image regardless of the type of digital image, the number of digital images that can be recorded on the memory card can be easily notified to the photographer.

【0006】しかし、符号データ量が可変である場合に
は、残り枚数を撮影者に知らせることができない。これ
から撮影する画像の符号データ量が少なければ、多くの
枚数を記録可能であり、撮影する画像の符号データ量が
多ければ、少ない枚数しか記録することができない。
However, when the amount of code data is variable, it is impossible to notify the photographer of the remaining number. If the code data amount of the image to be captured is small, a large number of images can be recorded, and if the code data amount of the image to be captured is large, only a small number can be recorded.

【0007】そこで、デジタル画像をデータ圧縮する際
には、符号データの固定長化処理を行う必要がある。固
定長化処理を行うことにより、どんな種類のデジタル画
像であってもほぼ一定量の符号データに変換することが
できる。固定長化処理は、1枚(1フレーム)のデジタ
ル画像をデータ圧縮し、固定長の符号データを生成する
ための処理である。符号データが固定長であれば、残り
枚数を撮影者に知らせることができる。
Therefore, when compressing the data of the digital image, it is necessary to perform the fixed length processing of the code data. By performing the fixed length processing, any kind of digital image can be converted into a substantially constant amount of code data. The fixed length process is a process for compressing one digital image (one frame) to generate fixed-length code data. If the code data has a fixed length, the photographer can be notified of the remaining number.

【0008】次に、固定長化処理について説明する。固
定長化処理を行うには、まず前処理として統計処理を行
い、その統計処理の結果に応じて、データ圧縮の圧縮度
を調整し、固定長の符号データを生成する。
Next, the fixed length processing will be described. To perform the fixed length processing, first, statistical processing is performed as preprocessing, and the compression degree of data compression is adjusted according to the result of the statistical processing to generate fixed length code data.

【0009】撮影者がシャッタボタンを押すと、デジタ
ル画像が取り込まれる。次に、取り込まれたデジタル画
像に対して、統計処理を行う。統計処理とは、取り込ま
れたデジタル画像について圧縮を行った場合にどの位の
量の符号データが生成されるのかを推測する処理であ
る。
When the photographer presses the shutter button, a digital image is captured. Next, statistical processing is performed on the captured digital image. The statistical process is a process of estimating how much code data is generated when the captured digital image is compressed.

【0010】統計処理が終了すると、圧縮処理および記
憶処理が行われる。統計処理の結果、符号データが多め
に生成されそうであると推測されれば、圧縮度を高めに
設定して圧縮を行えばよい。符号データが少なめに生成
されそうであると推測されれば、圧縮度を低めに設定し
て圧縮を行えばよい。データ圧縮により生成される符号
データは、常にほぼ一定のデータ量となる。
When the statistical processing is completed, compression processing and storage processing are performed. As a result of the statistical processing, if it is estimated that a large amount of code data is likely to be generated, the compression degree may be set higher and compression may be performed. If it is estimated that the code data is likely to be generated in a small amount, the compression degree may be set to be low and the compression may be performed. Code data generated by data compression always has a substantially constant data amount.

【0011】その後、記憶処理により、データ圧縮され
た符号データは、メモリカードに記録される。以上で、
デジタル画像の取り込みから、メモリカードへの記録ま
での一連の処理は終了する。
[0011] After that, the code data that has been subjected to the data compression by the storage process is recorded on the memory card. Above,
A series of processes from capture of the digital image to recording on the memory card ends.

【0012】[0012]

【発明が解決しようとする課題】画像圧縮処理におい
て、固定長化処理を行う方法として、以下の方法があ
る。まず、統計処理として、基準の圧縮度で圧縮処理を
1回行ってみる。その結果、目標のデータ量より多いデ
ータ量が生成されたときには、基準の圧縮度よりも高い
圧縮度に設定する。一方、目標のデータ量より少ない量
の符号データが生成されたときには、基準の圧縮度より
も低い圧縮度に設定する。その設定された圧縮度で、正
式な圧縮処理を行い、画像の符号データを生成する。
In the image compression processing, there is the following method for performing the fixed length processing. First, as the statistical processing, the compression processing is performed once with the standard compression degree. As a result, when a data amount larger than the target data amount is generated, the compression degree is set higher than the reference compression degree. On the other hand, when code data of a smaller amount than the target data amount is generated, the compression degree is set lower than the reference compression degree. Formal compression processing is performed with the set compression degree to generate coded data of an image.

【0013】しかし、圧縮度と符号データ量の関係は一
定でないため、画像の種類により、目標データ量と生成
される符号データ量の誤差にばらつきが生じる。統計処
理を1回行っただけでは、固定長化の精度は低い。
However, since the relationship between the compression degree and the code data amount is not constant, the error between the target data amount and the generated code data amount varies depending on the type of image. The accuracy of the fixed length is low only by performing the statistical processing once.

【0014】より高精度の固定長化を行うため、統計処
理を2回以上行って、圧縮度を決める方法がある。統計
処理を2回を行う場合を例に説明する。まず、1回目の
統計処理として、第1の基準圧縮度で圧縮処理を行い、
符号データ量を見積もる。次に、2回目の統計処理とし
て、第1の基準圧縮度とは異なる第2の基準圧縮度で圧
縮処理を行い、符号データ量を見積もる。以上の2つの
符号データ量を考慮して、正式な圧縮度を設定する。例
えば、目標データ量が当該2つの符号データ量の間にあ
るときには、第1の基準圧縮度と第2の基準圧縮度の間
に正式な圧縮度を設定すればよい。その設定された圧縮
度で、正式な圧縮処理を行い、画像の符号データを生成
する。
In order to make the fixed length more accurate, there is a method of performing the statistical processing twice or more to determine the compression degree. The case where the statistical processing is performed twice will be described as an example. First, as the first statistical processing, compression processing is performed at the first standard compression degree,
Estimate the amount of code data. Next, as the second statistical processing, compression processing is performed with a second reference compression degree different from the first reference compression degree, and the code data amount is estimated. The formal compression degree is set in consideration of the above two code data amounts. For example, when the target data amount is between the two code data amounts, a formal compression degree may be set between the first reference compression degree and the second reference compression degree. Formal compression processing is performed with the set compression degree to generate coded data of an image.

【0015】しかし、この方法では、統計処理を2回行
い、正式な圧縮処理を1回行うため、合計3回の圧縮処
理を行うことになり、多大な時間を必要とする。
However, in this method, the statistical processing is performed twice and the formal compression processing is performed once, so that the compression processing is performed three times in total, which requires a great deal of time.

【0016】本発明の目的は、高速かつ高精度の固定長
化処理を行う画像圧縮システムを提供することである。
An object of the present invention is to provide an image compression system which performs a high-speed and high-precision fixed length processing.

【0017】本発明の他の目的は、高速かつ高精度の固
定長化処理を行う画像圧縮方法を提供することである。
Another object of the present invention is to provide an image compression method for performing high-speed and high-precision fixed-length processing.

【0018】[0018]

【課題を解決するための手段】本発明の画像圧縮システ
ムは、ブロック単位に分割して画像データを供給する画
像データ供給手段と、前記画像データ供給手段から供給
されるブロック単位の画像データを離散コサイン変換
(DCT)してブロック単位のDCT係数を生成するD
CT手段と、前記DCT手段が1つのブロックのDCT
係数を生成する毎に、そのDCT係数について第1およ
び第2の圧縮度で符号データを連続して生成する符号デ
ータ生成手段と、前記符号データ生成手段が生成する第
1および第2の圧縮度のそれぞれについての符号データ
の量を、供給される全てのブロックについて累算するカ
ウンタと、前記カウンタにより生成される第1および第
2の圧縮度の両者の符号データ量に応じて、目標とする
データ量の符号データを生成するための圧縮度を推定す
る圧縮度推定手段とを有する。
An image compression system according to the present invention separates image data supply means for supplying image data by dividing it in block units, and image data in block units supplied from the image data supply means. D for generating DCT coefficients in block units by cosine transform (DCT)
The CT means and the DCT means are one block of DCT
Each time a coefficient is generated, code data generating means for continuously generating code data with the first and second compression degrees for the DCT coefficient, and first and second compression degrees generated by the code data generating means. The target of the amount of code data for each of the supplied blocks according to the counter for accumulating all the supplied blocks and the amount of code data for both the first and second compression degrees generated by the counter. And a compression degree estimating means for estimating a compression degree for generating coded data of a data amount.

【0019】本発明の画像圧縮方法は、第1のブロック
の画像データを離散コサイン変換(DCT)して第1の
ブロックのDCT係数を生成する工程と、前記第1のブ
ロックのDCT係数の生成が終了すると、第2のブロッ
クの画像データをDCTして第2のブロックのDCT係
数を生成する工程と、前記第1のブロックのDCT係数
の生成が終了すると、前記第2のブロックのDCT係数
の生成が終了するまでの間に、該第1のブロックのDC
T係数について、第1の圧縮度で符号データを生成し続
いて第2の圧縮度で符号データを生成する工程とを含
む。
In the image compression method of the present invention, the step of generating the DCT coefficient of the first block by performing the discrete cosine transform (DCT) on the image data of the first block, and the generation of the DCT coefficient of the first block. Is completed, DCT of the image data of the second block is performed to generate the DCT coefficient of the second block, and when the generation of the DCT coefficient of the first block is finished, the DCT coefficient of the second block is finished. Of the first block by the time the generation of
Generating code data at a first compression degree for the T coefficient and subsequently generating code data at a second compression degree.

【0020】DCT手段が第1のブロックのDCT係数
を生成し終わると、符号データ生成手段は、当該DCT
係数について、第1の圧縮度で符号データを生成し続い
て第2の圧縮度で符号データを生成する。DCT手段
は、第1のブロックのDCT係数を生成した後、第2の
ブロックのDCT係数を生成することができる。DCT
手段が第1のブロックのDCT係数を生成し終われば、
符号データ生成手段が少なくとも2種類の圧縮度で符号
データを生成する工程と、DCT手段が第2のブロック
のDCT係数を生成する工程を並列化させることができ
る。当該工程を並列化させることにより、圧縮処理の高
速化を図ることができる。また、少なくとも2種類の圧
縮度で符号データを生成することにより、高精度の固定
長化処理を行うことができる。
When the DCT means finishes generating the DCT coefficient of the first block, the code data generating means determines that DCT coefficient.
For the coefficient, code data is generated with the first compression degree, and subsequently code data is generated with the second compression degree. After generating the DCT coefficients of the first block, the DCT means can generate the DCT coefficients of the second block. DCT
When the means have finished generating the DCT coefficients for the first block,
It is possible to parallelize the step of the code data generating means generating the code data with at least two kinds of compression degree and the step of the DCT means generating the DCT coefficient of the second block. By performing the steps in parallel, the speed of the compression processing can be increased. Further, by generating the coded data with at least two types of compression degree, it is possible to perform a highly accurate fixed length processing.

【0021】[0021]

【発明の実施の形態】図2は、本発明の実施例による画
像圧縮システムが行う処理手順を示すフローチャートで
ある。
FIG. 2 is a flow chart showing the processing procedure performed by the image compression system according to the embodiment of the present invention.

【0022】ステップS1では、統計処理を行う。この
統計処理は、1回の圧縮時間の間に2種類の圧縮度につ
いての符号データ量を算出する。通常、2種類の圧縮度
についての符号データ量を算出するには、最低でも2回
の圧縮処理の時間が必要になる。ここでの統計処理の特
徴は、2種類の圧縮度についての符号データを効率的に
生成し、短時間で処理することである。符号データを生
成した後、当該2種類の符号データの量を基にして、正
式な圧縮度を決定する。
In step S1, statistical processing is performed. In this statistical process, the coded data amount for two types of compression is calculated during one compression time. Normally, at least two compression processing times are required to calculate the coded data amounts for two types of compression degrees. The feature of the statistical processing here is that code data for two types of compression is efficiently generated and processed in a short time. After the code data is generated, the formal compression degree is determined based on the amounts of the two types of code data.

【0023】ステップS2では、統計処理で決定された
圧縮度で正式な圧縮処理を行う。この圧縮処理により、
画像の符号データが生成される。生成される符号データ
の量は、目標のデータ量に高精度で近づけることができ
る。以上で、固定長圧縮処理は終了する。
In step S2, a formal compression process is performed with the compression degree determined by the statistical process. By this compression process,
Code data of the image is generated. The amount of code data to be generated can approach the target amount of data with high accuracy. Thus, the fixed length compression process is completed.

【0024】図1は、本実施例による画像圧縮システム
の構成を示すブロック図である。この画像圧縮システム
は、デジタル静止画像の標準的な圧縮方式であるJPE
G(joint photographic expert group )方式の符号デ
ータを生成する。従来のJPEG方式のシステムの資源
をそのまま活用することができる。
FIG. 1 is a block diagram showing the arrangement of an image compression system according to this embodiment. This image compression system uses JPE, which is a standard compression method for digital still images.
Code data of G (joint photographic expert group) system is generated. The resources of the conventional JPEG system can be used as they are.

【0025】画像圧縮システムは、画像メモリ1、離散
コサイン変換(以下、DCTという)部2、DCT係数
メモリ3、量子化部4、符号化部5、符号データ量カウ
ント部6、スケールファクタ決定部7、およびコントロ
ーラ8を有する。コントローラ8は、他の全ての処理ブ
ロックとの間でタイミング信号の受け渡しを行い、処理
ブロック間のタイミングを調整する。
The image compression system includes an image memory 1, a discrete cosine transform (hereinafter referred to as DCT) unit 2, a DCT coefficient memory 3, a quantization unit 4, an encoding unit 5, an encoded data amount counting unit 6, and a scale factor determining unit. 7 and a controller 8. The controller 8 exchanges timing signals with all other processing blocks and adjusts timing between the processing blocks.

【0026】次に、各処理ブロックについて説明する。
画像メモリ1は、例えば、DRAMやフラッシュメモリ
であり、1フレームの画像データを記憶する。画像メモ
リ1には、通常ラスタ形式で画像データが記憶されてい
る。画像データは、複数の画素データからなる。
Next, each processing block will be described.
The image memory 1 is, for example, a DRAM or a flash memory and stores one frame of image data. Image data is normally stored in the image memory 1 in a raster format. The image data is composed of a plurality of pixel data.

【0027】ラスタ形式とは、1フレームの画像につい
ての以下の画素データの並びである。まず、画像の左上
隅の画素から始まって右水平方向に向かい順次並ぶ。右
端の画素まで行ったら、続いて、次のラインの左端の画
素から始まり、右水平方向に向かい順次並ぶ。以下、同
様にして、1番下のラインまで行う。右下隅の画素が最
後のデータとなる。
The raster format is an array of the following pixel data for one frame image. First, the images are arranged sequentially starting from the pixel at the upper left corner of the image toward the right horizontal direction. After reaching the rightmost pixel, subsequently, starting from the leftmost pixel of the next line, the pixels are sequentially arranged in the right horizontal direction. Hereinafter, the process is similarly performed up to the bottom line. The pixel at the lower right corner is the last data.

【0028】画像圧縮システムは、基本的に、8×8画
素のブロック毎に処理を行うため、画像メモリ1は、画
像データをラスタ形式からブロック形式に変換し、DC
T部2に供給する。白黒画像は、画像データが1種類で
ある。カラー画像は、輝度データと色データとに別れる
が、それぞれを別の画像データとしてラスタ/ブロック
変換を行う。
Since the image compression system basically performs processing for each block of 8 × 8 pixels, the image memory 1 converts the image data from the raster format to the block format and the DC format is used.
Supply to the T section 2. A monochrome image has one type of image data. A color image is divided into luminance data and color data, but raster / block conversion is performed by using each as separate image data.

【0029】ブロック形式とは、1フレームの画像につ
いての以下の画素データの並びである。1フレームの画
像は、複数のブロックに領域分割される。1ブロック
は、8×8画素である。1フレームにおけるブロックの
順番は、上記のラスタ形式と同様に、左上隅のブロック
から始まり、右水平方向に並ぶ。最後のブロックは、右
下隅のブロックである。ブロック内の画素データの並び
は、やはりラスタ形式と同様であり、ブロック内の左上
隅の画素データから始まり、右水平方向に並ぶ。最後の
画素データは、ブロック内の右下隅の画素データであ
る。
The block format is an array of the following pixel data for one frame image. One frame image is divided into a plurality of blocks. One block is 8 × 8 pixels. The order of the blocks in one frame starts from the block at the upper left corner and is arranged in the right horizontal direction as in the above-mentioned raster format. The last block is the block in the lower right corner. The arrangement of the pixel data in the block is also similar to the raster format, starting from the pixel data at the upper left corner in the block and arranged in the right horizontal direction. The last pixel data is the pixel data at the lower right corner in the block.

【0030】DCT部2には、ブロック形式の画像デー
タIが供給される。以下は、1ブロックの画像データを
1単位として処理が行われる。つまり、JPEG圧縮
は、1枚の画像を8×8画素のブロックに分割し、当該
ブロックを単位に、以下の処理を行う。
The DCT unit 2 is supplied with block-type image data I. In the following, processing is performed with one block of image data as one unit. That is, in JPEG compression, one image is divided into blocks of 8 × 8 pixels, and the following processing is performed for each block.

【0031】DCT部2は、ブロック単位の画像データ
IについてDCT処理を行う。DCT処理は、画像デー
タIを、転置コサイン係数行列Dt とコサイン係数行列
Dとで挟み、行列演算を行うことによって、DCT係数
Fを得る。
The DCT section 2 performs DCT processing on the image data I in block units. In the DCT processing, the image data I is interposed between a transposed cosine coefficient matrix Dt and a cosine coefficient matrix D, and a matrix operation is performed to obtain a DCT coefficient F.

【0032】F=Dt ID ここで、DCT係数Fは、8×8の行列であり、空間周
波数成分を示す。
F = D t ID Here, the DCT coefficient F is an 8 × 8 matrix and indicates a spatial frequency component.

【0033】DCT係数メモリ3は、例えばDRAMや
SRAMであり、DCT部2で生成されるDCT係数F
を記憶する。
The DCT coefficient memory 3 is, for example, a DRAM or an SRAM, and the DCT coefficient F generated by the DCT unit 2
Is stored.

【0034】次に、量子化部4の構成を説明する。メモ
リ11は、基準量子化テーブルQを記憶する。
Next, the structure of the quantizer 4 will be described. The memory 11 stores a reference quantization table Q.

【0035】図3は、基準量子化テーブルQの例を示
す。前述のように、画像圧縮システムは、8×8のブロ
ック単位でデータ圧縮を行うので、それに対応して量子
化テーブルQは、8×8の行列により構成される。
FIG. 3 shows an example of the reference quantization table Q. As described above, the image compression system compresses data in 8 × 8 block units, and accordingly, the quantization table Q is composed of an 8 × 8 matrix.

【0036】基準量子化テーブルQは、標準の圧縮度で
データ圧縮を行うための量子化テーブルである。量子化
処理は、8×8のDCT係数Fに対して、量子化テーブ
ルQ内の対応する係数で除算を行う。DCT係数は、行
列の左上方向ほど空間的周波数成分が低く、右下方向ほ
ど周波数成分が高い。基準量子化テーブルQは、全体と
して低い周波数成分ほど細かく、高い周波数成分ほど粗
く量子化を行うことを示している。一般的に、データ圧
縮は、人間の視覚特性を考慮して、また高周波成分にノ
イズが多いことを考慮して、画像データの高周波成分の
情報を削ることにより行う。
The reference quantization table Q is a quantization table for performing data compression with a standard compression degree. The quantization process divides the 8 × 8 DCT coefficient F by the corresponding coefficient in the quantization table Q. The DCT coefficients have lower spatial frequency components in the upper left direction of the matrix, and higher frequency components in the lower right direction. The reference quantization table Q indicates that the lower frequency component is finer as a whole and the higher frequency component is coarsely quantized as a whole. Generally, data compression is performed by removing information on high-frequency components of image data in consideration of human visual characteristics and high-frequency components having a lot of noise.

【0037】図1において、乗算器12は、基準量子化
テーブルQにスケールファクタSFを乗じる。つまり、
基準量子化テーブルQの行列の全ての要素にスケールフ
ァクタSFを乗じる。乗算器12は、量子化テーブルS
F・Qを出力する。量子化テーブルSF・Qは、メモリ
13またはメモリ14のいずれかに記憶される。
In FIG. 1, the multiplier 12 multiplies the reference quantization table Q by the scale factor SF. That is,
All the elements of the matrix of the reference quantization table Q are multiplied by the scale factor SF. The multiplier 12 uses the quantization table S
Outputs F / Q. The quantization table SF · Q is stored in either the memory 13 or the memory 14.

【0038】メモリ13には、量子化テーブルAが記憶
され、メモリ14には量子化テーブルBが記憶される。
量子化テーブルAと量子化テーブルBとでは、スケール
ファクタSFが異なる。符号データの圧縮度は、スケー
ルファクタSFの値により決まる。つまり、量子化テー
ブルAと量子化テーブルBの違いは、圧縮度の違いを示
す。量子化テーブルAは、Q・SFaで表され、量子化
テーブルBはQ・SFbで表される。
A quantization table A is stored in the memory 13, and a quantization table B is stored in the memory 14.
The quantization table A and the quantization table B have different scale factors SF. The compression degree of the code data is determined by the value of the scale factor SF. That is, the difference between the quantization table A and the quantization table B indicates the difference in compression degree. The quantization table A is represented by Q · SFa, and the quantization table B is represented by Q · SFb.

【0039】除算器15には、量子化テーブルAまたは
量子化テーブルBのいずれかがSF・Qとして供給され
る。統計処理を行う際には、量子化テーブルAが第1の
基準テーブルとして使用され、量子化テーブルBが第2
の基準テーブルとして使用される。
Either the quantization table A or the quantization table B is supplied to the divider 15 as SF · Q. When performing the statistical processing, the quantization table A is used as the first reference table and the quantization table B is used as the second reference table.
Used as a reference table for.

【0040】除算器15は、DCT係数メモリ3に記憶
されているDCT係数Fuvを、量子化テーブルSF・
Quvで割り、量子化係数Ruvを出力する。丸め込み
roundは、最も近い整数への整数化を意味する。
The divider 15 converts the DCT coefficient Fuv stored in the DCT coefficient memory 3 into the quantization table SF ·
Divide by Quv and output the quantized coefficient Ruv. Rounding round means rounding to the nearest integer.

【0041】 Ruv=round〔Fuv/(SF・Quv)〕 符号化部5は、量子化データRuvに対して符号化処理
を行う。符号化処理は、ランレングス符号化およびハフ
マン符号化の処理を含む。ランレングス符号化は、0の
値が連続して続くようなデータに対して、高圧縮を行う
ことができる。量子化データRuvは、行列の右下部分
(高周波成分)に多くの0が集まりやすい。この性質を
利用して、量子化データの行列Ruvをジグザグスキャ
ンでランレングス符号化を行えば、高圧縮を行うことが
できる。ジグザグスキャンとは、低周波成分から高周波
成分へ向けて順次スキャンを行う方法である。
Ruv = round [Fuv / (SF · Quv)] The encoding unit 5 performs an encoding process on the quantized data Ruv. The encoding process includes processes of run-length encoding and Huffman encoding. The run-length encoding can perform high compression on data in which the value of 0 continues continuously. In the quantized data Ruv, many zeros tend to be collected in the lower right part (high-frequency component) of the matrix. By utilizing this property and performing run-length encoding of the matrix Ruv of quantized data by zigzag scanning, high compression can be performed. Zigzag scanning is a method of sequentially scanning from low frequency components to high frequency components.

【0042】符号化部5は、ランレングス符号化を行っ
た後に、ハフマン符号化を行い、符号データを生成す
る。
The coding unit 5 performs Huffman coding after performing run-length coding, and generates coded data.

【0043】符号データ量カウント部6は、カウンタA
とカウンタBを有する。カウンタAは、量子化テーブル
Aで量子化を行い符号データを生成したときの符号デー
タ量NAをカウントする。カウンタBは、量子化テーブ
ルBで量子化を行い符号データを生成したときの符号デ
ータ量NBをカウントする。
The code data amount counting section 6 is provided with a counter A.
And a counter B. The counter A counts the code data amount NA when the quantization is performed by the quantization table A and the code data is generated. The counter B counts the code data amount NB when the quantization is performed by the quantization table B and the code data is generated.

【0044】言い換えれば、統計処理時において、カウ
ンタAは、第1の基準圧縮度(量子化テーブルA)で圧
縮したときの符号データ量NAをカウントする。カウン
タBは、第2の基準圧縮度(量子化テーブルB)で圧縮
したときの符号データ量NBをカウントする。
In other words, during the statistical processing, the counter A counts the code data amount NA when compressed with the first reference compression degree (quantization table A). The counter B counts the code data amount NB when compressed with the second reference compression degree (quantization table B).

【0045】図4は、符号データ量カウント部6が符号
データ量をカウントする方法を示す。1フレームの画像
は、例えば、n個のブロックから構成される。符号デー
タは、ブロック単位で生成される。カウンタAとカウン
タBは、全てのブロック(n個のブロック)の符号デー
タの量を累算し、1フレームの画像の符号データの量を
算出する。
FIG. 4 shows how the coded data amount counting unit 6 counts the coded data amount. One frame image is composed of, for example, n blocks. Code data is generated in block units. The counters A and B accumulate the amount of code data of all blocks (n blocks) and calculate the amount of code data of one frame image.

【0046】カウンタAは、量子化テーブルAを用いて
圧縮を行ったときの符号データ量NAを算出する。カウ
ンタBは、量子化テーブルBを用いて圧縮を行ったとき
の符号データ量NBを算出する。
The counter A calculates the code data amount NA when the compression is performed using the quantization table A. The counter B calculates the code data amount NB when the compression is performed using the quantization table B.

【0047】ここでは、量子化テーブルAについてのス
ケールファクタSFaが、量子化テーブルBについての
スケールファクタSFbよりも大きいときの例を示す。
つまり、量子化テーブルAを使えば、量子化テーブルB
を使ったときよりも高圧縮を行うことができる。
Here, an example is shown in which the scale factor SFa for the quantization table A is larger than the scale factor SFb for the quantization table B.
That is, if the quantization table A is used, the quantization table B
You can achieve higher compression than with.

【0048】同じ画像データについて、量子化テーブル
Aを用いて圧縮を行ったときの符号データ量NAは、量
子化テーブルBを用いて圧縮を行ったときの符号データ
量NBよりも小さくなる。
The code data amount NA when the same image data is compressed using the quantization table A is smaller than the code data amount NB when the quantization table B is used for compression.

【0049】図1において、スケールファクタ決定部7
は、2種類の符号データ量NAとNBを基にして、正式
なスケールファクタSFxを決定する。スケールファク
タSFxは、目標データ量NXの符号データを生成する
ための圧縮度として推定される。スケールファクタSF
xが求まると、統計処理(図2のステップS1)は終了
する。
In FIG. 1, the scale factor determining unit 7
Determines the formal scale factor SFx based on the two types of code data amounts NA and NB. The scale factor SFx is estimated as a compression degree for generating coded data of the target data amount NX. Scale factor SF
When x is obtained, the statistical processing (step S1 in FIG. 2) ends.

【0050】統計処理が終了した後、圧縮処理(図2の
ステップS2)を行う。圧縮処理では、スケールファク
タSFxを、量子化部4にスケールファクタSFとして
入力する。スケールファクタSFxを用いて圧縮を行え
ば、目標データ量NXに近い符号データを生成すること
ができる。
After the statistical processing is completed, compression processing (step S2 in FIG. 2) is performed. In the compression process, the scale factor SFx is input to the quantizer 4 as the scale factor SF. If compression is performed using the scale factor SFx, code data close to the target data amount NX can be generated.

【0051】図5は、スケールファクタ決定部7の処理
を説明するためのグラフである。縦軸はスケールファク
タであり、横軸は符号データ量である。スケールファク
タ決定部7は、スケールファクタを符号データ量の関数
として保持する。一例として、スケールファクタが符号
データ量に比例する場合について説明する。
FIG. 5 is a graph for explaining the processing of the scale factor determining section 7. The vertical axis is the scale factor, and the horizontal axis is the code data amount. The scale factor determination unit 7 holds the scale factor as a function of the amount of code data. As an example, a case where the scale factor is proportional to the code data amount will be described.

【0052】スケールファクタSFaを用いて圧縮を行
ったときには符号データ量NAが得られる。スケールフ
ァクタSFbを用いて圧縮を行ったときには符号データ
量NBが得られる。これらのデータに基づき、図5に示
すような特性(直線で近似)を設定する。
When the compression is performed using the scale factor SFa, the code data amount NA is obtained. When the compression is performed using the scale factor SFb, the code data amount NB is obtained. Based on these data, characteristics (approximate by a straight line) as shown in FIG. 5 are set.

【0053】目標データ量NXは、外部から指示され
る。この目標データ量に対応するスケールファクタを上
述の特性から求める。目標データ量NXを得るために
は、スケールファクタSFxを用いて圧縮を行えばよい
ことが判る。
The target data amount NX is designated from the outside. A scale factor corresponding to the target data amount is obtained from the above-described characteristics. It is understood that the compression may be performed using the scale factor SFx in order to obtain the target data amount NX.

【0054】スケールファクタSFxは、図5より、以
下のようにして求めることができる。 (NB−NA):(NX−NA)=(SFa−SFb):(SFa−SFx) (NB−NA)×(SFa−SFx)=(NX−NA)×(SFa−SFb) (SFa−SFx)=(NX−NA)×(SFa−SFb)/(NB−NA) SFx=SFa−{(NX−NA)×(SFa−SFb)/(NB−NA)}
The scale factor SFx can be obtained from FIG. 5 as follows. (NB-NA) :( NX-NA) = (SFa-SFb) :( SFa-SFx) (NB-NA) * (SFa-SFx) = (NX-NA) * (SFa-SFb) (SFa-SFx) ) = (NX-NA) * (SFa-SFb) / (NB-NA) SFx = SFa-{(NX-NA) * (SFa-SFb) / (NB-NA)}

【0055】なお、上式を用いて、スケールファクタS
Fxを求める他、上式の近似式によりスケールファクタ
SFxを求めてもよい。また、計算式により求める他、
ルックアップテーブルを用いてスケールファクタSFx
を決定してもよい。さらに、スケールファクタと符号デ
ータ量の関係は、比例関係に限らず反比例等、他の関係
に設定することもできる。ただし、短時間かつ簡単な構
成で、スケールファクタSFxを決定できることが望ま
しい。
Note that the scale factor S
In addition to obtaining Fx, the scale factor SFx may be obtained by the above approximate expression. In addition, in addition to the calculation formula,
Scale factor SFx using lookup table
May be determined. Further, the relationship between the scale factor and the code data amount is not limited to the proportional relationship, but may be set to another relationship such as an inverse proportionality. However, it is desirable that the scale factor SFx can be determined with a short and simple configuration.

【0056】また、スケールファクタSFxを用いて圧
縮処理を行い符号データを生成する際、当該符号データ
量が目標データ量を越えないようにするため、上記で求
めたスケールファクタにさらに安全率を掛けるようにし
てもよい。
Further, when compression processing is performed using the scale factor SFx to generate code data, the scale factor obtained above is further multiplied by a safety factor so that the code data amount does not exceed the target data amount. You may do it.

【0057】次に、図1の画像圧縮システムにおいて、
統計処理と圧縮処理とに分けて各処理手順を説明する。
Next, in the image compression system of FIG.
Each processing procedure will be described separately for the statistical processing and the compression processing.

【0058】まず、統計処理について説明する。(1)統計処理 統計処理は、1回の圧縮処理の時間で2種類の符号デー
タ量NAとNBを算出する。これは、圧縮処理の中でD
CT部2における処理時間が圧倒的に長いことの性質を
利用して可能ならしめたものである。
First, the statistical processing will be described. (1) Statistical processing In the statistical processing, two types of code data amounts NA and NB are calculated in one compression processing time. This is D in the compression process.
This is made possible by utilizing the property that the processing time in the CT unit 2 is overwhelmingly long.

【0059】DCT部2における処理時間は、全体の5
〜8割を占めている。1ブロック(8×8画素)の画像
データを、DCT処理(DCT部2)するのに要する時
間と量子化処理(量子化部4)するのに要する時間を比
較してみる。
The processing time in the DCT unit 2 is 5 in total.
It accounts for ~ 80%. The time required for DCT processing (DCT unit 2) and the time required for quantization processing (quantization unit 4) of one block (8 × 8 pixels) of image data will be compared.

【0060】DCT部2では、以下の回数の演算を行
う。ここでは、通常のDCTアルゴリズムを用いる場合
を示す。
The DCT unit 2 performs the following number of calculations. Here, a case where a normal DCT algorithm is used is shown.

【0061】乗算 1024回 加算 896回 量子化部4では、以下の回数の演算を行う。Multiplication 1024 times Addition 896 times The quantizer 4 performs the following number of calculations.

【0062】乗算 64(=8×8)回 以上のように、DCT部2が行う演算回数は、量子化部
4に比べ桁違いに多く、処理時間が圧倒的に長い。
Multiplication 64 (= 8 × 8) times As described above, the number of calculations performed by the DCT unit 2 is orders of magnitude greater than that of the quantization unit 4, and the processing time is overwhelmingly long.

【0063】図6は、図1の画像圧縮システムが統計処
理を行うタイミングを示すタイミングチャートである。
横軸は時間を示す。
FIG. 6 is a timing chart showing the timing at which the image compression system of FIG. 1 performs the statistical processing.
The horizontal axis indicates time.

【0064】DCT部2は、処理α1、処理α2、処理
α3の順番で処理を行う。処理α1は、ブロック1(1
番目のブロック)の画像データについて行うDCT処理
である。処理α2はブロック2(2番目のブロック)の
画像データについて、処理α3はブロック3(3番目の
ブロック)の画像データについて行うDCT処理であ
る。
The DCT section 2 carries out processing in the order of processing α1, processing α2 and processing α3. The processing α1 is performed in block 1 (1
This is a DCT process performed on the image data of the (th block). Process α2 is a DCT process performed on image data of block 2 (second block), and process α3 is performed on image data of block 3 (third block).

【0065】DCT部2は、時刻t0において、ブロッ
ク1の画像データについてのDCT処理α1を開始す
る。コントローラ8は、時刻t10において、DCT処
理α1の終了を検知すると、DCT部2に、ブロック2
の画像データについてのDCT処理α2の開始を指示す
る。続いて、時刻t20において、DCT処理α2の終
了を検知すると、DCT部2に、ブロック3の画像デー
タについてのDCT処理α3の開始を指示する。時刻t
30において、DCT処理α3が終了する。DCT部2
は、画像データをブロック1からブロックn(最終ブロ
ック)まで連続して処理する。
The DCT unit 2 starts the DCT processing α1 for the image data of the block 1 at time t0. When detecting the end of the DCT processing α1 at time t10, the controller 8 sends the block 2 to the DCT unit 2.
To start the DCT process α2 for the image data. Subsequently, when the end of the DCT process α2 is detected at time t20, the DCT unit 2 is instructed to start the DCT process α3 for the image data of the block 3. Time t
At 30, the DCT process α3 ends. DCT section 2
Processes image data continuously from block 1 to block n (final block).

【0066】次に、量子化部4と符号化部5の処理につ
いて説明する。コントローラ8は、時刻t10におい
て、ブロック1の画像データIについてのDCT処理α
1の終了を検知すると、DCT処理α1により生成され
たDCT係数Fについて量子化処理β1Aを開始するこ
とを量子化部4に指示する。量子化部4は、量子化テー
ブルAを用いて量子化処理β1Aを行う。量子化処理β
1Aは、ブロック1のDCT係数Fを量子化テーブルA
で量子化する処理である。
Next, the processing of the quantizer 4 and the encoder 5 will be described. At time t10, the controller 8 performs the DCT processing α on the image data I of the block 1.
When the end of 1 is detected, the quantization unit 4 is instructed to start the quantization process β1A for the DCT coefficient F generated by the DCT process α1. The quantization unit 4 uses the quantization table A to perform the quantization process β1A. Quantization process β
1A is the quantization table A for the DCT coefficient F of block 1.
Is the process of quantization.

【0067】コントローラ8は、時刻t11において、
量子化処理β1Aの終了を検知すると、量子化処理β1
Aにより生成された量子化データRについて符号化処理
γ1Aを開始することを符号化部5に指示する。符号化
処理γ1Aは、ブロック1について量子化テーブルAを
用いたデータについての符号化処理である。
The controller 8 at time t11
When the end of the quantization processing β1A is detected, the quantization processing β1
The encoding unit 5 is instructed to start the encoding process γ1A for the quantized data R generated by A. The encoding process γ1A is an encoding process for data using the quantization table A for the block 1.

【0068】時刻t12において、符号化処理γ1Aが
終了すると、量子化テーブルAを用いたことによる符号
データが生成される。その後、図6には図示しないが、
符号データ量カウント部6(図1)のカウンタAがその
符号データの量をカウントする。
At time t12, when the encoding process γ1A is completed, the code data using the quantization table A is generated. After that, although not shown in FIG. 6,
The counter A of the coded data amount counting unit 6 (FIG. 1) counts the amount of the coded data.

【0069】以上は、量子化テーブルAについて、量子
化処理と符号化処理を行った。次に、量子化テーブルB
について、量子化処理と符号化処理を行う。
As described above, the quantization process and the encoding process are performed on the quantization table A. Next, the quantization table B
For, the quantization processing and the encoding processing are performed.

【0070】コントローラ8は、時刻t12において、
符号化処理γ1Aの終了を検知すると、DCT処理α1
により生成されたDCT係数Fについて量子化処理β1
Bを開始することを量子化部4に指示する。ただし、コ
ントローラ8は、その際、量子化テーブルBを用いて量
子化処理β1Bを行うことを指示する。量子化処理β1
Bは、ブロック1のDCT係数Fを量子化テーブルBで
量子化する処理である。
The controller 8 at time t12
When the end of the encoding process γ1A is detected, the DCT process α1
Quantization process β1 for the DCT coefficient F generated by
Instruct the quantization unit 4 to start B. However, the controller 8 then instructs to perform the quantization process β1B using the quantization table B. Quantization process β1
B is a process of quantizing the DCT coefficient F of the block 1 with the quantization table B.

【0071】コントローラ8は、時刻t13において、
量子化処理β1Bの終了を検知すると、量子化処理β1
Bにより生成された量子化データRについて符号化処理
γ1Bを開始することを符号化部5に指示する。符号化
処理γ1Bは、ブロック1について量子化テーブルBを
用いたデータについての符号化処理である。
The controller 8 at time t13
When the end of the quantization process β1B is detected, the quantization process β1
The encoding unit 5 is instructed to start the encoding process γ1B for the quantized data R generated by B. The encoding process γ1B is an encoding process for data using the quantization table B for the block 1.

【0072】時刻t14において、符号化処理γ1Bが
終了すると、量子化テーブルBを用いたことによる符号
データが生成される。その後、図6には図示しないが、
符号データ量カウント部6(図1)のカウンタBがその
符号データの量をカウントする。
At time t14, when the coding process γ1B is completed, the code data using the quantization table B is generated. After that, although not shown in FIG. 6,
The counter B of the coded data amount counting unit 6 (FIG. 1) counts the amount of the coded data.

【0073】時刻t12において、量子化テーブルAに
よる符号データの生成が終了し、時刻t14において、
量子化テーブルBによる符号データの生成が終了する。
その後、時刻t20において、DCT処理α2が終了す
る。すなわち、DCT処理α2を行っている間に、量子
化処理β1Aとβ1Bおよび符号化処理γ1Aとγ1B
が終了する。
At time t12, the generation of code data by the quantization table A is completed, and at time t14,
The generation of the coded data by the quantization table B is completed.
Then, at time t20, the DCT process α2 ends. That is, during the DCT process α2, the quantization processes β1A and β1B and the encoding processes γ1A and γ1B are performed.
Ends.

【0074】以上は、ブロック1について、量子化処理
と符号化処理を行った。次に、ブロック2について、量
子化処理と符号化処理を行う。
As described above, the quantization processing and the coding processing are performed on the block 1. Next, quantization processing and encoding processing are performed on the block 2.

【0075】コントローラ8は、時刻t20において、
ブロック2の画像データIについてのDCT処理α2の
終了を検知すると、DCT処理α2により生成されたD
CT係数Fについて量子化処理β2Aを開始することを
量子化部4に指示する。コントローラ8は、その際、量
子化テーブルAを用いて量子化処理β2Aを行うことを
指示する。量子化処理β2Aは、ブロック2のDCT係
数Fを量子化テーブルAで量子化する処理である。
The controller 8 at time t20
When the end of the DCT process α2 for the image data I of the block 2 is detected, the DT generated by the DCT process α2 is detected.
The quantization unit 4 is instructed to start the quantization process β2A for the CT coefficient F. At this time, the controller 8 uses the quantization table A to instruct to perform the quantization process β2A. The quantization process β2A is a process of quantizing the DCT coefficient F of the block 2 with the quantization table A.

【0076】コントローラ8は、時刻t21において、
量子化処理β2Aの終了を検知すると、量子化処理β2
Aにより生成された量子化データRについて符号化処理
γ2Aを開始することを符号化部5に指示する。符号化
処理γ2Aは、ブロック2について量子化テーブルAを
用いたデータについての符号化処理である。
The controller 8 at time t21
When the end of the quantization process β2A is detected, the quantization process β2
The encoding unit 5 is instructed to start the encoding process γ2A for the quantized data R generated by A. The encoding process γ2A is an encoding process for data using the quantization table A for the block 2.

【0077】時刻t22において、符号化処理γ2Aが
終了すると、量子化テーブルAを用いたことによる符号
データが生成される。その後、図6には図示しないが、
符号データ量カウント部6(図1)のカウンタAがその
符号データの量をカウントする。
At time t22, when the encoding process γ2A is completed, the code data using the quantization table A is generated. After that, although not shown in FIG. 6,
The counter A of the coded data amount counting unit 6 (FIG. 1) counts the amount of the coded data.

【0078】次に、量子化テーブルBについて、量子化
処理と符号化処理を行う。コントローラ8は、時刻t2
2において、符号化処理γ2Aの終了を検知すると、D
CT処理α2により生成されたDCT係数Fについて量
子化処理β2Bを開始することを量子化部4に指示す
る。ただし、コントローラ8は、その際、量子化テーブ
ルBを用いて量子化処理β2Bを行うことを指示する。
量子化処理β2Bは、ブロック2のDCT係数Fを量子
化テーブルBで量子化する処理である。
Next, the quantization table B is subjected to quantization processing and coding processing. At the controller 8, the time t2
2, when the end of the encoding process γ2A is detected, D
The quantizer 4 is instructed to start the quantization process β2B for the DCT coefficient F generated by the CT process α2. However, the controller 8 then instructs to perform the quantization process β2B using the quantization table B.
The quantization process β2B is a process of quantizing the DCT coefficient F of the block 2 with the quantization table B.

【0079】コントローラ8は、時刻t23において、
量子化処理β2Bの終了を検知すると、量子化処理β2
Bにより生成された量子化データRについて符号化処理
γ2Bを開始することを符号化部5に指示する。符号化
処理γ2Bは、ブロック2について量子化テーブルBを
用いたデータについての符号化処理である。
The controller 8 at time t23
When the end of the quantization process β2B is detected, the quantization process β2B
The encoding unit 5 is instructed to start the encoding process γ2B for the quantized data R generated by B. The encoding process γ2B is an encoding process for data using the quantization table B for the block 2.

【0080】時刻t24において、符号化処理γ2Bが
終了すると、量子化テーブルBを用いたことによる符号
データが生成される。その後、図6には図示しないが、
符号データ量カウント部6(図1)のカウンタBがその
符号データの量をカウントする。
At time t24, when the encoding process γ2B is completed, the code data using the quantization table B is generated. After that, although not shown in FIG. 6,
The counter B of the coded data amount counting unit 6 (FIG. 1) counts the amount of the coded data.

【0081】時刻t22において、量子化テーブルAに
よる符号データの生成が終了し、時刻t24において、
量子化テーブルBによる符号データの生成が終了する。
その後、時刻t30において、DCT処理α3が終了す
る。DCT処理α3を行っている間に、量子化処理β2
Aとβ2Bおよび符号化処理γ2Aとγ2Bが終了す
る。
At time t22, the generation of code data by the quantization table A is completed, and at time t24,
The generation of the coded data by the quantization table B is completed.
Then, at time t30, the DCT process α3 ends. While performing the DCT processing α3, the quantization processing β2
The A and β2B and the encoding processes γ2A and γ2B are completed.

【0082】以下、同様にして、最後のブロックnまで
処理を続ける。この一連の統計処理の時間は、DCT部
2が全てのブロックについてDCT処理する時間、すな
わち通常の1回分の圧縮処理の時間に相当する。
Thereafter, similarly, the processing is continued until the last block n. The time for this series of statistical processing corresponds to the time for the DCT unit 2 to perform DCT processing for all blocks, that is, the time for a normal compression process for one time.

【0083】統計処理の時間は1回分の圧縮処理の時間
でありながら、画像圧縮システムは、量子化テーブルA
と量子化テーブルBについての2種類の符号データを生
成し、符号データ量NAとNBを算出することができ
る。
Although the statistical processing time is the time for one compression processing, the image compression system uses the quantization table A
It is possible to generate two types of coded data for the quantization table B and calculate the coded data amounts NA and NB.

【0084】図6では、各処理部におけるタイミングを
示した。次に、ブロック毎の処理のタイミングを示す。
FIG. 6 shows the timing in each processing section. Next, the processing timing for each block will be described.

【0085】図7は、統計処理を行うブロック単位のタ
イミングを示すタイミングチャートである。横軸は時間
を示し、図6の時間に対応している。
FIG. 7 is a timing chart showing the timing of each block for statistical processing. The horizontal axis indicates time and corresponds to the time in FIG.

【0086】まず、ブロック1の処理について説明す
る。時刻t0において、ブロック1の画像データについ
てのDCT処理α1が開始し、時刻t10において、D
CT処理α1が終了する。DCT処理α1が終了する
と、量子化テーブルAを用いた符号データの生成処理5
1Aを行い、その後、量子化テーブルBを用いた符号デ
ータの生成処理51Bを行う。
First, the processing of block 1 will be described. At time t0, DCT processing α1 for the image data of block 1 starts, and at time t10,
The CT processing α1 ends. When the DCT process α1 is completed, the code data generation process 5 using the quantization table A is performed.
1A is performed, and thereafter, code data generation processing 51B using the quantization table B is performed.

【0087】処理51Aは、量子化テーブルAを用いた
量子化処理β1Aと、当該量子化処理β1Aにより生成
される量子化データの符号化処理γ1Aを含む。処理5
1Bは、量子化テーブルBを用いた量子化処理β1B
と、当該量子化処理β1Bにより生成される量子化デー
タの符号化処理γ1Bを含む。
The process 51A includes a quantization process β1A using the quantization table A and an encoding process γ1A of the quantized data generated by the quantization process β1A. Processing 5
1B is a quantization process β1B using the quantization table B.
And the encoding process γ1B of the quantized data generated by the quantization process β1B.

【0088】次に、ブロック2の処理について説明す
る。時刻t10において、ブロック2の画像データにつ
いてのDCT処理α2が開始し、時刻t20において、
DCT処理α2が終了する。DCT処理α2が終了する
と、量子化テーブルAを用いた符号データの生成処理5
2Aを行い、その後、量子化テーブルBを用いた符号デ
ータの生成処理52Bを行う。処理51Aは、量子化処
理β2Aと符号化処理γ2Aを含む。処理51Bは、量
子化処理β2Bと符号化処理γ2Bを含む。
Next, the processing of block 2 will be described. At time t10, DCT processing α2 for the image data of block 2 starts, and at time t20,
The DCT process α2 ends. When the DCT process α2 ends, the code data generation process 5 using the quantization table A 5
2A is performed, and thereafter, code data generation processing 52B using the quantization table B is performed. The process 51A includes a quantization process β2A and an encoding process γ2A. The process 51B includes a quantization process β2B and an encoding process γ2B.

【0089】以上のように、DCTの処理時間は長いの
で、1ブロックについてのDCT処理(例えばα2)の
間に、2回の量子化処理と符号化処理(例えば51Aと
51B)を行うことができる。これにより、1フレーム
の画像についての1回の圧縮処理の間に、実質的に2回
の統計処理を行うことができる。1つの統計処理は、量
子化テーブルAを用いたものであり、符号データ量NA
が算出される。もう1つの統計処理は、量子化テーブル
Bを用いたものであり、符号データ量NBが算出され
る。
As described above, since the DCT processing time is long, it is possible to perform the quantization processing and the coding processing (for example, 51A and 51B) twice during the DCT processing (for example, α2) for one block. it can. Accordingly, the statistical processing can be performed substantially twice during one compression processing for one frame image. One statistical process uses the quantization table A, and the code data amount NA
Is calculated. The other statistical processing uses the quantization table B, and the code data amount NB is calculated.

【0090】統計処理は、符号データ量NAとNBを算
出した後、正式なスケールファクタSFxを求める。統
計処理が終了すると、続いて、スケールファクタSFx
を用いて、圧縮処理を行う。次に、圧縮処理について説
明する。(2)圧縮処理 図8は、図1の画像圧縮システムが圧縮処理を行うタイ
ミングを示すタイミングチャートである。横軸は時間を
示す。
In the statistical processing, the formal scale factor SFx is obtained after calculating the code data amounts NA and NB. When the statistical processing is completed, the scale factor SFx
Is used to perform compression processing. Next, the compression process will be described. (2) Compression Processing FIG. 8 is a timing chart showing the timing at which the image compression system of FIG. 1 performs compression processing. The horizontal axis indicates time.

【0091】DCT部2は、まず、時刻t50におい
て、ブロック1の画像データについてのDCT処理α1
を開始する。コントローラ8は、時刻t60において、
DCT処理α1の終了を検知すると、DCT部2に、ブ
ロック2の画像データについてのDCT処理α2の開始
を指示する。続いて、時刻t70において、DCT処理
α2の終了を検知すると、DCT部2に、ブロック3の
画像データについてのDCT処理α3の開始を指示す
る。時刻t80において、DCT処理α3が終了する。
DCT部2は、画像データをブロック1からブロックn
まで連続して処理する。
First, at time t50, the DCT unit 2 performs the DCT processing α1 on the image data of the block 1.
To start. At time t60, the controller 8
When the end of the DCT process α1 is detected, the DCT unit 2 is instructed to start the DCT process α2 for the image data of the block 2. Then, when the end of the DCT process α2 is detected at time t70, the DCT unit 2 is instructed to start the DCT process α3 for the image data of the block 3. At time t80, the DCT process α3 ends.
The DCT unit 2 transfers the image data from block 1 to block n.
Process continuously until.

【0092】次に、量子化部4と符号化部5の処理につ
いて説明する。コントローラ8は、時刻t60におい
て、ブロック1の画像データについてのDCT処理α1
の終了を検知すると、DCT処理α1により生成された
DCT係数について量子化処理β1を開始することを量
子化部4に指示する。コントローラ8は、その際、スケ
ールファクタSFxの量子化テーブルを用いて量子化処
理β1を行うことを指示する。
Next, the processing of the quantizer 4 and the encoder 5 will be described. At time t60, the controller 8 performs the DCT process α1 on the image data of block 1
When the end of is detected, the quantization unit 4 is instructed to start the quantization process β1 for the DCT coefficient generated by the DCT process α1. At this time, the controller 8 gives an instruction to perform the quantization process β1 using the quantization table of the scale factor SFx.

【0093】コントローラ8は、時刻t61において、
量子化処理β1の終了を検知すると、量子化処理β1に
より生成された量子化データについて符号化処理γ1を
開始することを符号化部5に指示する。符号化部5は、
ブロック1についての符号データの生成を開始する。時
刻t62に、符号化処理γ1が終了する。
The controller 8 at time t61
When the end of the quantization process β1 is detected, the encoding unit 5 is instructed to start the encoding process γ1 for the quantized data generated by the quantization process β1. The encoding unit 5
The generation of code data for block 1 is started. At time t62, the encoding process γ1 ends.

【0094】以上は、ブロック1について、量子化処理
と符号化処理を行った。次に、ブロック2について、量
子化処理と符号化処理を行う。
In the above, the quantization process and the encoding process have been performed on the block 1. Next, quantization processing and encoding processing are performed on the block 2.

【0095】コントローラ8は、時刻t70において、
ブロック2の画像データについてのDCT処理α2の終
了を検知すると、DCT処理α2により生成されたDC
T係数について量子化処理β2を開始することを量子化
部4に指示する。コントローラ8は、その際、スケール
ファクタSFxの量子化テーブルを用いて量子化処理β
2を行うことを指示する。
The controller 8 at time t70
When the end of the DCT process α2 for the image data of the block 2 is detected, the DC generated by the DCT process α2 is detected.
Instructs the quantizer 4 to start the quantization process β2 for the T coefficient. The controller 8 then uses the quantization table of the scale factor SFx to perform the quantization process β.
Instruct to do 2.

【0096】コントローラ8は、時刻t71において、
量子化処理β2の終了を検知すると、量子化処理β2に
より生成された量子化データについて符号化処理γ2を
開始することを符号化部5に指示する。符号化部5は、
ブロック2についての符号データの生成を開始する。時
刻t72に、符号化処理γ2が終了する。
The controller 8 at time t71
When the end of the quantization process β2 is detected, the encoding unit 5 is instructed to start the encoding process γ2 for the quantized data generated by the quantization process β2. The encoding unit 5
The generation of code data for block 2 is started. At time t72, the encoding process γ2 ends.

【0097】以下、同様にして、最後のブロックnまで
処理を続け、1フレームの画像データの圧縮を行う。以
上で、統計処理と圧縮処理は終了する。
In the same manner, the processing is continued up to the last block n, and the image data of one frame is compressed. With that, the statistical processing and the compression processing are completed.

【0098】図9は、図1の符号データ量カウント部6
の他の例を示す。符号データ量カウント部6は、量子化
テーブルAについての符号データ量NAと、量子化テー
ブルBについての符号データ量NBをカウントする。
FIG. 9 shows the code data amount counting unit 6 of FIG.
Here is another example. The coded data amount counting unit 6 counts the coded data amount NA for the quantization table A and the coded data amount NB for the quantization table B.

【0099】符号データカウント部6は、カウンタ61
とレジスタAとレジスタBを有する。カウンタ61は、
図1のコントローラ8の制御の下、時分割で量子化テー
ブルAについての符号データの量と量子化テーブルBに
ついての符号データの量をカウントする。
The code data counting section 6 includes a counter 61
And a register A and a register B. The counter 61
Under the control of the controller 8 of FIG. 1, the amount of code data for the quantization table A and the amount of code data for the quantization table B are counted in time division.

【0100】レジスタAには、量子化テーブルAについ
てのブロック単位の符号データ量が加算されていく。全
てのブロックについての加算が終了したとき、レジスタ
Aには符号データ量NAが記憶されている。符号データ
量NAは、量子化テーブルAを用いたときの1フレーム
の画像の符号データ量である。
The code data amount in block units for the quantization table A is added to the register A. When the addition for all the blocks is completed, the register A stores the code data amount NA. The coded data amount NA is the coded data amount of one frame image when the quantization table A is used.

【0101】一方、レジスタBには、量子化テーブルB
についてのブロック単位の符号データ量が加算されてい
く。全てのブロックについての加算が終了したとき、レ
ジスタBには符号データ量NBが記憶されている。符号
データ量NBは、量子化テーブルBを用いたときの1フ
レームの画像の符号データ量である。
On the other hand, the quantization table B is stored in the register B.
The code data amount for each block is added. When the addition for all the blocks is completed, the register B stores the code data amount NB. The coded data amount NB is the coded data amount of one frame image when the quantization table B is used.

【0102】図11は、図1の量子化テーブル4の他の
例を示す。画像圧縮システム全体において、量子化テー
ブル4以外の部分は、図1の構成と同じである。
FIG. 11 shows another example of the quantization table 4 of FIG. In the entire image compression system, the parts other than the quantization table 4 are the same as the configuration of FIG.

【0103】量子化テーブル4は、基準量子化テーブル
メモリ11と乗算器12とマルチプレクサ71と除算器
15を有する。メモリ11は、基準量子化テーブルQを
記憶する。マルチプレクサ71は、コントローラ8の制
御の下、第1のスケールファクタSFaまたは第2のス
ケールファクタSFbのいずれかを乗算器12に供給す
る。乗算器12は、基準量子化テーブルQとスケールフ
ァクタSFの乗算を行い、Q・SFaまたはQ・SFb
を出力する。
The quantization table 4 has a reference quantization table memory 11, a multiplier 12, a multiplexer 71 and a divider 15. The memory 11 stores a reference quantization table Q. The multiplexer 71 supplies either the first scale factor SFa or the second scale factor SFb to the multiplier 12 under the control of the controller 8. The multiplier 12 multiplies the reference quantization table Q and the scale factor SF to obtain Q · SFa or Q · SFb.
Is output.

【0104】マルチプレクサ71がスケールファクタS
Faを乗算器12に供給すると、除算器15は、以下の
演算を行い、量子化データRuvを出力する。丸め込み
roundは、最も近い整数への整数化を意味し、DC
T係数FuvはDCT係数メモリ3に記憶されている係
数である。
The multiplexer 71 uses the scale factor S
When Fa is supplied to the multiplier 12, the divider 15 performs the following calculation and outputs the quantized data Ruv. Rounding round means rounding to the nearest integer, and DC
The T coefficient Fuv is a coefficient stored in the DCT coefficient memory 3.

【0105】 Ruv=round〔Fuv/(SFa・Quv)〕 量子化データRuvは、符号化部5で符号化され、その
後、符号データ量カウント部6のカウンタAで符号デー
タ量NAがカウントされる。符号データ量NAは、第1
のスケールファクタSFaを用いて圧縮したときの符号
データ量である。
Ruv = round [Fuv / (SFa · Quv)] The quantized data Ruv is encoded by the encoding unit 5, and then the code data amount NA is counted by the counter A of the code data amount counting unit 6. . The code data amount NA is the first
It is the amount of code data when compressed using the scale factor SFa.

【0106】マルチプレクサ71がスケールファクタS
Fbを乗算器12に供給すると、除算器15は、以下の
演算を行い、量子化データRuvを出力する。
The multiplexer 71 uses the scale factor S
When Fb is supplied to the multiplier 12, the divider 15 performs the following operation and outputs quantized data Ruv.

【0107】 Ruv=round〔Fuv/(SFb・Quv)〕 量子化データRuvは、符号化部5で符号化され、その
後、符号データ量カウント部6のカウンタBで符号デー
タ量NBがカウントされる。符号データ量NBは、第2
のスケールファクタSFbを用いて圧縮したときの符号
データ量である。
Ruv = round [Fuv / (SFb · Quv)] The quantized data Ruv is encoded by the encoding unit 5, and then the code data amount NB is counted by the counter B of the code data amount counting unit 6. . The code data amount NB is the second
It is the code data amount when compressed using the scale factor SFb of.

【0108】量子化部4は、図1の量子化部と異なり、
基準量子化テーブルQを記憶するためのメモリ11のみ
を有し、量子化テーブルQとスケールファクタSFを乗
じた値を記憶するためのメモリを有さない。図11の画
像圧縮システムは、図1の画像圧縮システムに比べ、メ
モリ容量を削減することができるので、システムの小型
化およびコストの低減を図ることができる。
The quantizer 4 differs from the quantizer of FIG. 1 in that
It has only the memory 11 for storing the reference quantization table Q, and does not have the memory for storing the value obtained by multiplying the quantization table Q and the scale factor SF. Since the image compression system of FIG. 11 can reduce the memory capacity as compared with the image compression system of FIG. 1, the system can be downsized and the cost can be reduced.

【0109】ただし、マルチプレクサ71が乗算器12
にスケールファクタSFを供給した後、乗算器12で演
算を行ってから、Q・SFaまたはQ・SFbが除算器
15に供給される。つまり、乗算器12の演算で1クッ
ションだけタイミングが遅れる。そのタイミングの遅れ
を調整する必要がある。
However, the multiplexer 71 is the multiplier 12
After the scale factor SF is supplied to, the multiplier 12 performs an operation, and then Q · SFa or Q · SFb is supplied to the divider 15. That is, the calculation of the multiplier 12 delays the timing by one cushion. It is necessary to adjust the timing delay.

【0110】それに対し、図1の画像圧縮システムは、
量子化テーブルメモリ13または量子化テーブルメモリ
14から読み出したデータが直接除算器15に供給され
るので、タイミングの調整が容易であり、演算の遅れは
生じない。
On the other hand, the image compression system of FIG.
Since the data read from the quantization table memory 13 or the quantization table memory 14 is directly supplied to the divider 15, it is easy to adjust the timing and there is no delay in calculation.

【0111】次に、サンプルブロックについてのみ統計
処理を行う例を説明する。上記の統計処理では、1フレ
ームの画像の全てのブロックについて処理を行った。し
かし、統計処理は、あくまでも符号データ量を見積もる
ためのものであるので、必ずしも全てのブロックについ
て処理を行う必要はない。そこで、全てのブロックにつ
いて処理を行うのではなく、サンプルブロックについて
のみ処理を行い、処理時間の短縮を図ることができる。
Next, an example in which statistical processing is performed only on sample blocks will be described. In the above-described statistical processing, processing was performed on all blocks of the image of one frame. However, since the statistical processing is only for estimating the amount of code data, it is not always necessary to perform the processing for all blocks. Therefore, processing is not performed for all blocks, but is performed only for sample blocks, so that processing time can be reduced.

【0112】図10(A)〜(C)は、サンプルブロッ
クのサンプル例を示す。図は2次元のブロックの集まり
を示す。斜線を施したブロックがサンプルブロックであ
る。
FIGS. 10A to 10C show sample examples of sample blocks. The figure shows a collection of two-dimensional blocks. The hatched blocks are sample blocks.

【0113】図10(A)は、市松模様状のサンプルブ
ロックを示す。図10(B)は、縦ストライプ状のサン
プルブロックを示す。図10(C)は、横ストライプ状
のサンプルブロックを示す。例えば、図10(A)の場
合、ブロック1、ブロック3、ブロック5、・・・の順
番で1つおきに統計処理を行う。
FIG. 10A shows a checkerboard sample block. FIG. 10B shows a sample block in the form of a vertical stripe. FIG. 10C shows a horizontal stripe-shaped sample block. For example, in the case of FIG. 10A, statistical processing is performed on every other block in the order of block 1, block 3, block 5,.

【0114】これらのサンプルブロックは、全ブロック
の半分の数である。これらのサンプルブロックについて
のみ統計処理を行えば、統計処理の時間を約半分にする
ことができる。ただし、統計処理により算出される符号
データの量は、1フレームの画像の符号データの量の半
分である。符号データ量が半分であることを考慮して、
スケールファクタSFxを決定する必要がある。
These sample blocks are half the number of all blocks. If the statistical processing is performed only on these sample blocks, the time required for the statistical processing can be reduced to about half. However, the amount of code data calculated by the statistical processing is half of the amount of code data of one frame image. Considering that the code data amount is half,
It is necessary to determine the scale factor SFx.

【0115】本実施例によれば、1フレームの画像につ
いての1回の圧縮処理の時間内で、実質的に2回の統計
処理を行うことができる。統計処理は、高速かつ精度よ
く最適なスケールファクタを求めることができる。画像
圧縮システムは、高速かつ精度よく目標とするデータ量
の符号データを生成することができる。
According to this embodiment, the statistical processing can be performed substantially twice within the time of one compression processing for one frame image. The statistical processing can obtain an optimum scale factor with high speed and accuracy. The image compression system can generate coded data of a target data amount at high speed and with high accuracy.

【0116】なお、統計処理において、2種類の量子化
テーブルを用いる場合について説明したが、3種類以上
の量子化テーブルを用いてもよい。ただし、1ブロック
についてのDCT処理時間の間に、量子化処理と符号化
処理が完了する範囲内であることが望ましい。通常、2
種類の量子化テーブルを用いる場合であれば、DCT処
理の時間内に納まる。使用する量子化テーブルの種類を
増やせば、高精度の統計処理、すなわち、より最適なス
ケールファクタSFxを求めることができる。
Although the case where two kinds of quantization tables are used in the statistical processing has been described, three or more kinds of quantization tables may be used. However, it is desirable that the quantization process and the encoding process be completed within the DCT processing time for one block. Usually 2
If a quantization table of a type is used, the DCT processing can be completed within the time. By increasing the types of quantization tables used, highly accurate statistical processing, that is, a more optimal scale factor SFx can be obtained.

【0117】また、圧縮度を調整する方法として、スケ
ールファクタを変える方法について説明したが、スケー
ルファクタによらず量子化テーブルそのものを変える方
法でもよいし、その他の方法でもよい。
Also, as a method of adjusting the compression degree, a method of changing the scale factor has been described, but a method of changing the quantization table itself regardless of the scale factor or another method may be used.

【0118】以上実施例に沿って本発明を説明したが、
本発明はこれらに制限されるものではない。例えば、種
々の変更、改良、組み合わせ等が可能なことは当業者に
自明であろう。
The present invention has been described above with reference to the embodiments.
The present invention is not limited to these. For example, it will be apparent to those skilled in the art that various modifications, improvements, combinations, and the like can be made.

【0119】[0119]

【発明の効果】以上説明したように、本発明によれば、
DCT手段が第1のブロックのDCT係数を生成し終え
た後、符号データ生成手段が2種類の圧縮度で符号デー
タを生成する工程と、DCT手段が第2のブロックのD
CT係数を生成する工程を並列させることができる。当
該工程を並列化させることにより、圧縮処理の高速化を
図ることができる。また、少なくとも2種類の圧縮度で
符号データを生成することにより、高精度の固定長化処
理を行うことができる。
As described above, according to the present invention,
After the DCT means finishes generating the DCT coefficient of the first block, the code data generating means generates the code data with two kinds of compression degrees, and the DCT means uses the D of the second block.
The steps of generating CT coefficients can be parallel. By performing the steps in parallel, the speed of the compression processing can be increased. Further, by generating the coded data with at least two types of compression degree, it is possible to perform a highly accurate fixed length processing.

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

【図1】本発明の実施例による画像圧縮システムの構成
を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an image compression system according to an embodiment of the present invention.

【図2】本実施例による画像圧縮システムが行う処理手
順を示すフローチャートである。
FIG. 2 is a flowchart showing a processing procedure performed by the image compression system according to the present embodiment.

【図3】図1の基準量子化テーブルの例を示す図であ
る。
FIG. 3 is a diagram illustrating an example of a reference quantization table of FIG. 1;

【図4】図1の符号データ量カウント部が符号データ量
をカウントする方法を示す図である。
FIG. 4 is a diagram illustrating a method in which the code data amount counting unit of FIG. 1 counts the code data amount.

【図5】図1のスケールファクタ決定部の処理を説明す
るためのグラフである。
FIG. 5 is a graph for explaining processing of a scale factor determination unit in FIG. 1;

【図6】画像圧縮システムが統計処理を行う処理部単位
のタイミングを示すタイミングチャートである。
FIG. 6 is a timing chart showing the timing of each processing unit in which the image compression system performs statistical processing.

【図7】画像圧縮システムが統計処理を行うブロック単
位のタイミングを示すタイミングチャートである。
FIG. 7 is a timing chart showing timing in block units in which the image compression system performs statistical processing.

【図8】画像圧縮システムが圧縮処理を行うタイミング
を示すタイミングチャートである。
FIG. 8 is a timing chart showing a timing at which an image compression system performs a compression process.

【図9】図1の符号データ量カウント部の他の例を示す
図である。
FIG. 9 is a diagram showing another example of the coded data amount counting unit of FIG. 1.

【図10】サンプルブロックのサンプル例を示す。図1
0(A)は市松模様状のサンプルブロック、図10
(B)は縦ストライプ状のサンプルブロック、図10
(C)は横ストライプ状のサンプルブロックを示す図で
ある。
FIG. 10 shows a sample example of a sample block. FIG.
0 (A) is a checkered sample block, FIG.
(B) is a vertical striped sample block, FIG.
(C) is a diagram showing a sample block in the form of a horizontal stripe.

【図11】図1の量子化部の他の例を示す図である。FIG. 11 is a diagram showing another example of the quantization unit in FIG. 1.

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

1 画像メモリ 2 離散コサイン変換(DCT)部 3 DCT係数メモリ 4 量子化部 5 符号化部 6 符号データ量カウント部 7 スケールファクタ決定部 8 コントローラ 11 基準量子化テーブルメモリ 12 乗算器 13 量子化テーブルAメモリ 14 量子化テーブルBメモリ 15 除算器 61 カウンタ 71 マルチプレクサ 1 Image Memory 2 Discrete Cosine Transform (DCT) Section 3 DCT Coefficient Memory 4 Quantization Section 5 Encoding Section 6 Code Data Amount Count Section 7 Scale Factor Determining Section 8 Controller 11 Reference Quantization Table Memory 12 Multiplier 13 Quantization Table A Memory 14 Quantization Table B Memory 15 Divider 61 Counter 71 Multiplexer

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 ブロック単位に分割して画像データを供
給する画像データ供給手段(1)と、 前記画像データ供給手段から供給されるブロック単位の
画像データを離散コサイン変換(DCT)してブロック
単位のDCT係数を生成するDCT手段(2)と、 前記DCT手段が1つのブロックのDCT係数を生成す
る毎に、そのDCT係数について第1および第2の圧縮
度で符号データを連続して生成する符号データ生成手段
(4,5)と、 前記符号データ生成手段が生成する第1および第2の圧
縮度のそれぞれについての符号データの量を、供給され
る全てのブロックについて累算するカウンタ(6)と、 前記カウンタにより生成される第1および第2の圧縮度
の両者の符号データ量に応じて、目標とするデータ量の
符号データを生成するための圧縮度を推定する圧縮度推
定手段(7)とを有する画像圧縮システム。
1. An image data supply means (1) for dividing and supplying image data in block units, and a block unit for performing discrete cosine transform (DCT) on image data in block units supplied from the image data supply means. DCT means (2) for generating the DCT coefficient of each block, and each time the DCT means generates the DCT coefficient of one block, the code data is continuously generated at the first and second compression degrees for the DCT coefficient. A code data generation means (4, 5) and a counter (6) for accumulating the amount of code data for each of the first and second compression degrees generated by the code data generation means for all supplied blocks. ) And the encoded data amount of both the first and second compression degrees generated by the counter, the encoded data of the target data amount is generated. Image compression system having a compression degree estimation means (7) for estimating the degree of compression of fit.
【請求項2】 さらに、前記圧縮度推定手段が推定する
圧縮度で符号データを生成することを前記符号データ生
成手段に指示する手段を有する請求項1記載の画像圧縮
システム。
2. The image compression system according to claim 1, further comprising means for instructing the code data generation means to generate code data at the compression degree estimated by the compression degree estimation means.
【請求項3】 前記符号データ生成手段は、DCT係数
を量子化するための量子化手段を含み、第1および第2
の圧縮度の符号データは、それぞれ第1および第2の量
子化テーブルを用いて量子化を行うことにより生成され
る請求項1または2記載の画像圧縮システム。
3. The code data generating means includes a quantizing means for quantizing DCT coefficients, and includes first and second code data.
3. The image compression system according to claim 1, wherein the coded data of the compression degree is generated by performing quantization using the first and second quantization tables, respectively.
【請求項4】 前記符号データ生成手段は、基準量子化
テーブルに第1および第2のスケールファクタを乗じる
ことにより第1および第2の量子化テーブルを生成する
手段を含む請求項3記載の画像圧縮システム。
4. The image according to claim 3, wherein the code data generating means includes means for generating the first and second quantization tables by multiplying the reference quantization table by the first and second scale factors. Compression system.
【請求項5】 前記符号データ生成手段は、DCT係数
を量子化した後にハフマン符号化を行う符号化手段を含
む請求項3または4記載の画像圧縮システム。
5. The image compression system according to claim 3, wherein the code data generation unit includes a coding unit that performs Huffman coding after quantizing the DCT coefficient.
【請求項6】 前記DCT手段は、画像データをブロッ
ク単位で連続的にDCTする手段であって、 前記符号データ生成手段は、前記DCT手段があるブロ
ックについての画像データのDCTを完了する前に、1
つ前のブロックについての第1および第2の圧縮度の両
者の符号データの生成を完了する請求項1〜5のいずれ
かに記載の画像圧縮システム。
6. The DCT means is means for continuously DCTing image data in block units, and the code data generating means before completing DCT of image data for a block in which the DCT means is present. 1
The image compression system according to any one of claims 1 to 5, wherein the generation of code data of both the first and second compression degrees for the immediately preceding block is completed.
【請求項7】 前記画像データ供給手段は、1フレーム
の画像のうちのサンプルブロックについての画像データ
を供給する請求項1〜6のいずれかに記載の画像圧縮シ
ステム。
7. The image compression system according to claim 1, wherein the image data supply means supplies image data for a sample block in an image of one frame.
【請求項8】 第1のブロックの画像データを離散コサ
イン変換(DCT)して第1のブロックのDCT係数を
生成する工程と、 前記第1のブロックのDCT係数の生成が終了すると、
第2のブロックの画像データをDCTして第2のブロッ
クのDCT係数を生成する工程と、 前記第1のブロックのDCT係数の生成が終了すると、
前記第2のブロックのDCT係数の生成が終了するまで
の間に、該第1のブロックのDCT係数について、第1
の圧縮度で符号データを生成し続いて第2の圧縮度で符
号データを生成する工程とを含む画像圧縮方法。
8. A step of generating a DCT coefficient of the first block by performing a discrete cosine transform (DCT) on the image data of the first block, and when the generation of the DCT coefficient of the first block is completed,
DCT the image data of the second block to generate the DCT coefficient of the second block, and when the generation of the DCT coefficient of the first block is completed,
By the time the generation of the DCT coefficient of the second block is completed, the first DCT coefficient of the first block
Generating the code data with the second compression degree and subsequently generating the code data with the second compression degree.
JP24655596A 1996-02-13 1996-09-18 Picture compression system and picture compression method Pending JPH09284767A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP24655596A JPH09284767A (en) 1996-02-13 1996-09-18 Picture compression system and picture compression method
US08/932,750 US6014467A (en) 1996-09-18 1997-09-17 High speed, high precision image compression

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP8-25202 1996-02-13
JP2520296 1996-02-13
JP24655596A JPH09284767A (en) 1996-02-13 1996-09-18 Picture compression system and picture compression method

Publications (1)

Publication Number Publication Date
JPH09284767A true JPH09284767A (en) 1997-10-31

Family

ID=26362796

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24655596A Pending JPH09284767A (en) 1996-02-13 1996-09-18 Picture compression system and picture compression method

Country Status (1)

Country Link
JP (1) JPH09284767A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11252509A (en) * 1998-03-05 1999-09-17 Kdd Corp Detector for cut point of moving image
WO2001013627A1 (en) * 1999-08-17 2001-02-22 Nikon Corporation Electronic camera and image processing program
US6643402B1 (en) 1999-03-23 2003-11-04 Sanyo Electric Co., Ltd Image compression device allowing rapid and highly precise encoding while suppressing code amount of image data after compression
JP2009055440A (en) * 2007-08-28 2009-03-12 Mitsubishi Electric Corp Image coding device and image coding program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11252509A (en) * 1998-03-05 1999-09-17 Kdd Corp Detector for cut point of moving image
US6643402B1 (en) 1999-03-23 2003-11-04 Sanyo Electric Co., Ltd Image compression device allowing rapid and highly precise encoding while suppressing code amount of image data after compression
WO2001013627A1 (en) * 1999-08-17 2001-02-22 Nikon Corporation Electronic camera and image processing program
US6990243B1 (en) 1999-08-17 2006-01-24 Nikon Corporation Electronic camera and image processing program
JP2009055440A (en) * 2007-08-28 2009-03-12 Mitsubishi Electric Corp Image coding device and image coding program

Similar Documents

Publication Publication Date Title
JP3085465B2 (en) Image data encoding apparatus and encoding method
KR960000688B1 (en) Video image-display apparatus
JPH09130802A (en) Image compressing method
JPH053550A (en) Device and method for encoding image data
JPH10271530A (en) Image data compression coder, method therefor and digital camera
US6014467A (en) High speed, high precision image compression
JPH0832037B2 (en) Image data compression device
JP4407055B2 (en) Electronic camera
JPH09247675A (en) Image compression method and image compression system
JP2000261805A (en) Picture compression system
JPH09284767A (en) Picture compression system and picture compression method
US6671411B1 (en) Image encoding apparatus, method and memory medium therefor
JPH10136360A (en) Image data compression system
JP2959831B2 (en) Image data encoding device
JPH10257431A (en) Image compressing method
JP2003069951A (en) Imaging apparatus
JP3037961B2 (en) Electronic camera device and image data encoding device
JP6775339B2 (en) Image coding device and its control method
JP2941913B2 (en) Image signal recording device
JPH0537901A (en) Image recorder
JP3151244B2 (en) Image recording device
JP3450357B2 (en) Image processing apparatus and method
JP2000354246A (en) Image compression controller and image pickup system using it
JP3076081B2 (en) Image signal processing device
JPH02104180A (en) Compression processing method for image data compressor

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030805