JP2919990B2 - Image data compression method - Google Patents

Image data compression method

Info

Publication number
JP2919990B2
JP2919990B2 JP7531091A JP7531091A JP2919990B2 JP 2919990 B2 JP2919990 B2 JP 2919990B2 JP 7531091 A JP7531091 A JP 7531091A JP 7531091 A JP7531091 A JP 7531091A JP 2919990 B2 JP2919990 B2 JP 2919990B2
Authority
JP
Japan
Prior art keywords
image
order
encoding
slice
importance
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 - Lifetime
Application number
JP7531091A
Other languages
Japanese (ja)
Other versions
JPH05260456A (en
Inventor
佐々木  寛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Olympus Corp
Original Assignee
Olympus Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Corp filed Critical Olympus Corp
Priority to JP7531091A priority Critical patent/JP2919990B2/en
Publication of JPH05260456A publication Critical patent/JPH05260456A/en
Application granted granted Critical
Publication of JP2919990B2 publication Critical patent/JP2919990B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、静止画像あるいは動画
像の圧縮符号化の符号量制御に係わる画像データ圧縮方
式に係り、特に、符号化効率の向上に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data compression system for controlling the amount of code for compression coding of a still image or a moving image, and more particularly to improvement of coding efficiency.

【0002】[0002]

【従来の技術】静止画像あるいは動画像の圧縮符号化を
行なう際に、符号化ビットレートを一定の量に押えたい
という要求があり、種々の方式が提案されている。
2. Description of the Related Art There is a demand that the encoding bit rate be kept at a constant level when compressing and encoding a still image or a moving image, and various methods have been proposed.

【0003】例えば、W.H.Chen, W.K.Pratt による“Sc
ene Adaptive Coder”, IEEE Trans. COM-32, No.3 198
4 には、画像の各ブロックに一様な符号量を割り当て、
ブロックの実際に発生した符号量と割り当て符号量との
差の積算値をパラメータとして、ブロックの量子化幅を
制御することでブロックの符号量を割り当て符号量に近
づけ、1画像内の符号量を設定値にしようという手法が
開示されている。
For example, “Sc by WHChen, WKPratt
ene Adaptive Coder ”, IEEE Trans. COM-32, No.3 198
4 assigns a uniform amount of code to each block of the image,
By controlling the quantization width of the block using the integrated value of the difference between the actually generated code amount of the block and the allocated code amount as a parameter, the code amount of the block approaches the allocated code amount, and the code amount in one image is reduced. There is disclosed a method of setting a set value.

【0004】また、特開平2−124690号公報に
は、画面の1部あるいは全部の発生情報量(アクティビ
ティ)から、画面の1部に符号化ビット数を割り当て、
この符号化ビット数以内の範囲内で符号化することで、
画面内の総符号量を一定とする手法が開示されている。
In Japanese Patent Application Laid-Open No. 2-124690, the number of coded bits is assigned to one part of the screen from the generated information amount (activity) of one part or the whole of the screen.
By encoding within the range of the number of encoded bits,
A technique for keeping the total code amount in a screen constant is disclosed.

【0005】さらには、特開平3−16491号公報に
は、過去のブロックの発生した情報量及びバッファに蓄
積されている符号化データの占有量により量子化ステッ
プ幅を変更するという手法が開示されている。
Further, Japanese Patent Laid-Open Publication No. Hei 3-16491 discloses a technique in which the quantization step width is changed depending on the amount of information generated in the past block and the occupation amount of the encoded data stored in the buffer. ing.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記の
ような従来の符号量制御方式、特に“Scene Adaptive C
oder”や、特開平3−16491号公報に記述されてい
る方式では、量子化ステップ幅が過去の発生符号量をパ
ラメータとして変更されており、これから符号化しよう
とする部分の性質を無視している。従って、このような
方式では、量子化ステップ幅を細かくしたい部分で荒く
なったり、逆に、荒くして良い部分で細かい量子化ステ
ップ幅となってしまったりということが発生し、画質が
低下して符号化効率が良くないという問題点がある。
However, the conventional code amount control method as described above, in particular, "Scene Adaptive C
oder "and the method described in JP-A-3-16491, the quantization step width is changed using the past generated code amount as a parameter, and the nature of the part to be coded from now on is ignored. Therefore, in such a method, the quantization step width becomes coarse in a portion where the quantization step width is desired to be reduced, and conversely, the quantization step width becomes small in a portion where the quantization step width may be reduced. There is a problem that the coding efficiency is low due to a decrease.

【0007】また、特開平2−124690号公報にあ
るように、1部の領域(ブロック)に符号量を割り当て
る場合は、各画素が均一に量子化された画像の局所的な
性質を利用して符号量割り当てを行なっており、この方
式は1画面に対して1つの量子化ステップ幅を用いた場
合には、効果的である。しかしながら、前述の2方式の
ように量子化ステップ幅を過去の発生符号量をパラメー
タとして変更する場合には、同様に画像の性質に無関係
に量子化ステップ幅が変動するため、符号化効率が良い
とは言えない。
Further, as disclosed in Japanese Patent Application Laid-Open No. 2-124690, when a code amount is assigned to one area (block), the local property of an image in which each pixel is uniformly quantized is used. This method is effective when one quantization step width is used for one screen. However, when the quantization step width is changed using the past generated code amount as a parameter as in the above-described two methods, the quantization step width similarly changes regardless of the properties of the image, so that the coding efficiency is high. It can not be said.

【0008】上記“Scene Adaptive Coder”にあるよう
に各ブロックで均一に符号量を割り当てるのではなく、
特開平2−124690号公報にあるように、各ブロッ
クの性質に従って割り当て符号量を変更させた方が、符
号化効率は向上すると思われる。ただし、これは、割り
当て符号量と発生符号量とが比較的良く合致する場合で
あって、もし合致しない場合には、量子化ステップ幅の
変動は逆に大きくなり、均一に符号量を割り当てる場合
よりも効率は低下してしまう可能性がある。
[0008] Instead of uniformly assigning the code amount to each block as described in the above "Scene Adaptive Coder",
As disclosed in Japanese Patent Application Laid-Open No. 2-124690, it is considered that the coding efficiency is improved by changing the allocated code amount according to the property of each block. However, this is the case where the assigned code amount and the generated code amount match relatively well, and if they do not match, the fluctuation of the quantization step width becomes large conversely, and the code amount is uniformly assigned. Efficiency may be lower than that.

【0009】結局、バッファ占有量により符号量を制御
する場合に、1画面の中で、符号量が多く必要な部分に
は発生符号量を多くし、少なくてよい部分には発生符号
量を少なくするという制御が難しい。
After all, when the code amount is controlled by the buffer occupation amount, the generated code amount is increased in a portion requiring a large code amount in one screen, and the generated code amount is reduced in a portion which may be reduced. It is difficult to control.

【0010】本発明は、バッファ占有量により符号量制
御を行なう上での上記問題点に鑑みてなされたもので、
符号化効率を向上させた画像データ圧縮方式を提供する
ことを目的とする。
The present invention has been made in view of the above problems in controlling the code amount by the buffer occupancy, and
It is an object of the present invention to provide an image data compression system with improved encoding efficiency.

【0011】[0011]

【課題を解決するための手段】上記のような目的を達成
するために、本発明の画像データ圧縮方式は、入力画像
を複数の領域に分割する分割手段(実施例におけるスラ
イス符号化順決定器18に対応する)と、前記分割され
た複数の領域に対して重要度を設定するための手段(実
施例におけるスライス重要度設定部182に対応する)
と、符号化されたデータを蓄積するためのバッファ(実
施例におけるバッファ“I”22に対応する)と、量子
化スケールを前記バッファを占有しているデータの占有
量に基づき決定する手段(実施例におけるバッファ
“I”22に含まれる)と、前記重要度と前記量子化ス
ケールとにより、前記分割された複数の領域に対応する
画像の符号化の順番を決定する符号化順決定手段(実施
例におけるスライス符号化順決定器18に対応する)
と、前記符号化順決定手段により決定された順番により
前記分割された複数の領域に対応する画像を符号化し、
符号化データを生成する符号化手段(実施例における離
散コサイン変換器24,量子化器26等に対応する)と
を備えたことを特徴とする
In order to achieve the above object, an image data compression system according to the present invention employs a dividing means for dividing an input image into a plurality of areas (a plurality of areas).
Corresponding to the chair coding order determiner 18).
Means for setting importance for multiple areas (actual
(Corresponds to the slice importance setting unit 182 in the embodiment.)
And a buffer for storing encoded data (actual
(Corresponding to the buffer "I" 22 in the embodiment) and the quantum
Occupancy of data occupying the buffer
Means for determining based on the amount (the buffer in the embodiment)
"I" 22), the importance and the quantization
Corresponding to the plurality of divided areas
Encoding order determining means for determining the order of image encoding (implementation
(Corresponding to the slice coding order determiner 18 in the example)
And the order determined by the encoding order determining means.
Encoding an image corresponding to the plurality of divided areas,
Encoding means for generating encoded data (separation in the embodiment)
(Corresponding to the scattered cosine transformer 24, the quantizer 26, etc.)
It is characterized by having .

【0012】[0012]

【0013】[0013]

【作用】本発明の画像データ圧縮方式では、符号化順番
が量子化スケールの大小に係わらず画像の左上から右下
へのラスタスキャン順になっているのではなく、量子化
スケールの大小により画像をいくつかに分割した領域の
符号化順番を変更させることで、視覚的に重要な領域は
量子化スケールが小さい時に符号化でき、逆に、重要で
ない領域は量子化スケールが大きい時に符号化を行なえ
るので、符号化効率が向上する。
According to the image data compression method of the present invention, the encoding order is not the raster scan order from the upper left to the lower right of the image regardless of the size of the quantization scale. By changing the coding order of the divided regions, visually important regions can be coded when the quantization scale is small, and conversely, unimportant regions can be coded when the quantization scale is large. Therefore, coding efficiency is improved.

【0014】[0014]

【実施例】以下、図面を参照して、本発明の実施例を説
明する。図1は、本発明の画像データ圧縮方式をの第1
の実施例のブロック図である。今、入力画像は、図2に
示すようにマクロブロック化されて与えられるものとす
る。このような入力画像は、減算器10に入力され、後
述するような動き補償予測器(MC)12からの出力で
ある予測マクロブロックと減算される。この減算結果
は、スイッチ14及びフレーム内,フレーム間符号化判
定器16へ入力される。また、上記入力画像はさらに、
上記スイッチ14及びフレーム内,フレーム間符号化判
定器16へ、直接入力されている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a first example of the image data compression method of the present invention.
FIG. 4 is a block diagram of an embodiment of FIG. Now, it is assumed that the input image is provided as a macroblock as shown in FIG. Such an input image is input to a subtractor 10 and is subtracted from a prediction macroblock output from a motion compensation predictor (MC) 12 as described later. The result of this subtraction is input to the switch 14 and the intra-frame / inter-frame encoding determiner 16. Further, the input image further includes:
The signal is directly input to the switch 14 and the intra-frame / inter-frame coding determiner 16.

【0015】上記フレーム内,フレーム間符号化判定器
16は、上記2種のマクロブロックデータ(つまり、減
算器10を介して与えられる入力画像と直接与えられる
入力画像)の統計量により、どちらか1方のマクロブロ
ックを選択し、その選択信号をスイッチ14へ与えるも
のである。ここで、上記統計量とは、例えば、画素値の
分散値,バンドパスフィルタ出力値の絶対値和,画素値
の2乗和,直交変換を行ない暫定量子化で量子化した値
を符号化した時の符号量,等、どちらのマクロブロック
かを採用するかを判定できる量である。上記フレーム
内,フレーム間符号化判定器16はさらに、選択された
マクロブロックの統計量をスライス符号化順決定器18
へ供給する。
The intra-frame / inter-frame encoding determiner 16 determines which of the two types of macroblock data (that is, the input image given via the subtractor 10 and the input image given directly) by one of the statistics. One of the macro blocks is selected, and the selection signal is supplied to the switch 14. Here, the statistic is, for example, a variance value of a pixel value, a sum of absolute values of output values of a bandpass filter, a sum of squares of pixel values, and a value quantized by provisional quantification by performing an orthogonal transform. It is an amount that can be used to determine which macroblock to use, such as the amount of code at the time. The intra-frame / inter-frame coding determiner 16 further determines the statistics of the selected macroblock by a slice coding order determiner 18.
Supply to

【0016】一方、上記フレーム内,フレーム間符号化
判定器16による選択結果に応じて上記スイッチ14を
通って来たマクロブロックは、フレームメモリ(FM)
20に順番に格納され、1画像分が蓄えられる。
On the other hand, the macroblocks that have passed through the switch 14 according to the result of selection by the intra-frame and inter-frame coding determiner 16 are stored in a frame memory (FM).
20 are stored in order, and one image is stored.

【0017】上記スライス符号化順決定器18では、図
2にあるように、1画像内をいくつかのスライス(マク
ロブロックが、いくつか集まった領域であり、1つのス
ライス中のマクロブロックはラスタスキャン順につなが
っている)に分割し、この分割した領域に重要度の順番
を付ける。
In the slice coding order determiner 18, as shown in FIG. 2, several slices (an area where several macro blocks are gathered in one image), and macro blocks in one slice are rasterized. (Connected in the order of scanning), and the divided areas are assigned an order of importance.

【0018】また、このスライス符号化順決定器18に
は、フレームメモリ20に1画像分のデータが蓄積され
た時点でのバッファ(Buffer)“I”22の占有量が、
このバッファ“I”22から入力され、この占有量から
重要度が付いたスライスの中で最初にどのスライスを選
択するかを決定する。以後、このスライス符号化順決定
器18は、バッファ“I”22での占有量により、符号
化するスライスを選択していく。
The slice encoding order determiner 18 stores the occupation amount of the buffer “I” 22 at the time when the data of one image is accumulated in the frame memory 20.
From the buffer “I” 22, it is determined which slice is to be selected first among the slices having importance levels based on the occupation amount. Thereafter, the slice coding order determiner 18 selects slices to be coded according to the occupation amount in the buffer “I” 22.

【0019】図3は、上記スライス符号化順決定器18
の中身を表わす図である。即ち、上記フレーム内,フレ
ーム間符号化判定器16から出力される各マクロブロッ
ク当りのアクティビティ(隣接画素間の差分絶対値和
等)あるいは、直交変換後の暫定的な視覚特性上重み付
けられた量子化ステップ幅を使った実際の符号量(どち
らの値にせよ、以降はマクロブロックの情報量と称する
ものとする)が、スライスの境界の設定及び情報量算
出,割り当て符号量算出部181へ入力される。ここ
で、スライスの境界は、1マクロブロックライン(マク
ロブロックが画像の横方向に一列に並んだ状態)を1ス
ライスとしても良いし、入力されたマクロブロックの情
報量が急激に変化するところで区切っても良い。そし
て、この区切られた各スライスの情報量が算出され、各
スライスのマクロブロック当りの平均情報量が計算され
る。さらに、画像全体の平均情報量も計算される。
FIG. 3 shows the slice coding order determiner 18.
It is a figure showing the content of. That is, the activity per macroblock (sum of absolute differences between adjacent pixels, etc.) output from the intra-frame or inter-frame coding determiner 16 or a quantum weighted on a temporary visual characteristic after orthogonal transformation. The actual code amount using the conversion step width (in either case, hereinafter referred to as the macroblock information amount) is input to the slice boundary setting, information amount calculation, and assigned code amount calculation unit 181. Is done. Here, the slice boundary may be one macroblock line (a state in which the macroblocks are arranged in a row in the horizontal direction of the image) as one slice, or may be divided at a point where the information amount of the input macroblock suddenly changes. May be. Then, the information amount of each divided slice is calculated, and the average information amount per macroblock of each slice is calculated. Further, the average information amount of the entire image is calculated.

【0020】これらの値は、スライス重要度設定部18
2へ入力され、上記スライス平均情報量が大きい順番
に、スライスに重要度が設定される。また、画像全体の
平均情報量と1画像に割り当てられている符号量とか
ら、量子化スケールが予測される。
These values are set in the slice importance setting section 18.
2 and the importance is set to the slices in the order in which the slice average information amount is large. The quantization scale is predicted from the average information amount of the entire image and the code amount assigned to one image.

【0021】上記スライス重要度設定部182からのス
ライス重要度及び予測量子化スケール,及び上記バッフ
ァ“I”22からのバッファ占有量は、スライス符号化
順判定部183に入力される。このスライス符号化順判
定部183は、図4の(A)に示したようなバッファ占
有量によって決定される量子化スケールと前記予測量子
化スケールとの大小関係により、重要度の大きい順ある
いは小さい順に符号化するように、スライスの始まるフ
レームメモリ20のアドレス及び画像の左上からラスタ
スキャン順に数えたスライスの通し番号を出力する。
The slice importance and the predicted quantization scale from the slice importance setting unit 182 and the buffer occupancy from the buffer “I” 22 are input to a slice encoding order determination unit 183. The slice coding order determination unit 183 determines the order of importance or the order of importance according to the magnitude relationship between the quantization scale determined by the buffer occupancy and the predicted quantization scale as shown in FIG. An address of the frame memory 20 at which the slice starts and a serial number of the slice counted from the upper left of the image in raster scan order are output so as to be sequentially encoded.

【0022】ここで、スライス符号化順判定部183で
の具体的なスライス符号化の決定順は、以下のようにし
て決定される。即ち、まず、バッファ占有量から求めら
れる量子化スケールαB と1画像の平均情報量から求め
た予測スケールαp とが比較され、もし、αB ≧αp
時は重要度が1番低いスライスから符号化が行なわれ、
αB <αp の時は、重要度の1番高いスライスから順番
に符号化が進んでいく。上記条件が最初αB ≧αp で次
にαB <αp ,αB ≧αp ,…と交互になった場合は、
重要度が1番低いスライス、次に1番高いスライス、そ
して、符号化されてないスライスで1番低いスライス
(即ち、重要度が2番目に低いスライス)といった具合
に符号化が行なわれる。ここで、上記スライス境界の設
定及び情報量算出,割り当て符号量算出部201でのス
ライス割り当て符号量は、各マクロブロック当りの平均
割り当て符号量を一定とするか、あるいはスライス情報
量により割り当て符号量に重み付けを行なう。
Here, a specific slice coding determination order in slice coding order determination section 183 is determined as follows. That is, first, the quantization scale α B obtained from the buffer occupancy is compared with the prediction scale α p obtained from the average information amount of one image. If α B ≧ α p , the importance is the lowest. Encoding is performed from the slice,
When α Bp , encoding proceeds in order from the slice having the highest importance. If the above conditions are alternately α B ≧ α p and then α Bp , α B ≧ α p ,.
The encoding is performed in such a manner that the slice having the lowest importance, the slice having the next highest importance, and the non-encoded slice having the lowest importance (that is, the slice having the second lowest importance). Here, the setting of the slice boundary, the calculation of the information amount, and the slice allocation code amount in the allocation code amount calculation unit 201 are performed by keeping the average allocation code amount per macroblock constant or by the slice information amount. Is weighted.

【0023】以上のようにして決定された上記スライス
符号化順決定器18によって示されたフレームメモリ2
0のスライス先頭アドレス位置に従って、フレームメモ
リ20から読出されたスライスデータは、離散コサイン
変換器(DCT)24に送られ、例えば、8×8のブロ
ック単位で変換が行なわれ、各変換係数が量子化器
(Q)26で量子化される。この結果は、可変長符号化
器(VLC)28に供給されて符号化され、また逆量子
化器(Q-1)30にも供給されて逆量子化される。な
お、本発明は上記離散コサイン変換に限るものではな
く、他の直交変換も利用できる。
The frame memory 2 indicated by the slice coding order determiner 18 determined as described above
The slice data read from the frame memory 20 is sent to the discrete cosine transformer (DCT) 24 in accordance with the slice start address position of 0, for example, where the transform is performed in units of 8 × 8 blocks, and each transform coefficient is quantized. Quantizer (Q) 26 performs quantization. The result is supplied to a variable length encoder (VLC) 28 for encoding, and is also supplied to an inverse quantizer (Q -1 ) 30 for inverse quantization. Note that the present invention is not limited to the discrete cosine transform, and other orthogonal transforms can be used.

【0024】上記可変長符号化器28にて符号化された
データは、上記バッファ“I”22に蓄えられる。ここ
で、上記バッファ“I”22は、この符号化されたスラ
イスの符号量と上記スライス符号化順決定器18から送
られてきたスライス割り当て符号量との差の量を積算
し、次に符号化するスライスの選択に用いられるよう
に、この積算量を上記バッファ占有量として上記スライ
ス符号化順決定器18へ戻す。また、この積算量は、上
記量子化器26及び逆量子化器30にも送られ、この積
算量に従ってそれらに於ける量子化ステップ幅が変更さ
れるようになっている。
The data encoded by the variable length encoder 28 is stored in the buffer "I" 22. Here, the buffer “I” 22 integrates the difference amount between the code amount of the coded slice and the slice allocation code amount sent from the slice coding order determiner 18, The sum is returned to the slice coding order determiner 18 as the buffer occupancy so as to be used for selecting a slice to be sliced. Further, the integrated amount is also sent to the quantizer 26 and the inverse quantizer 30, and the quantization step width in them is changed according to the integrated amount.

【0025】ここで、量子化ステップ幅の変更は図4の
(B)にあるようなブロック内の変換係数にそれぞれ初
期量子化ステップ幅qijが設けられており、これら初期
量子化ステップ幅qijに量子化スケールαを一様に乗ず
ることで行なわれる。即ち、各変換係数の量子化ステッ
プ幅はqij×αとなる。なお、上記量子化スケールは、
図4の(A)に示されるように、バッファ“I”22の
バッファ占有量と関係付けられており、このバッファ占
有量により量子化スケールが変更される。
Here, the change of the quantization step width is such that an initial quantization step width q ij is provided for each of the transform coefficients in the block as shown in FIG. This is performed by uniformly multiplying ij by the quantization scale α. That is, the quantization step width of each transform coefficient is q ij × α. The quantization scale is
As shown in FIG. 4A, the quantization scale is changed according to the buffer occupancy of the buffer “I” 22.

【0026】上記バッファ“I”22では、図5に示す
ように、スライスの符号化データを蓄積すると共に、そ
のスライスナンバ(No.)に対する当該バッファ
“I”22の先頭アドレスと符号量とを、別の領域に蓄
える。そして、1画面分の符号化が終った時点で、スラ
イスナンバの小さな順から前記先頭アドレス及び符号量
を参照してバッファ(Buffer)“II”32へバッファ
“I”22のデータを転送することで、データの並び換
えを行ない、バッファ“II”32のデータが図示しない
伝送路及び蓄積メディアへ出力される。
As shown in FIG. 5, the buffer "I" 22 stores the coded data of the slice, and stores the start address and code amount of the buffer "I" 22 with respect to the slice number (No.). , Store in another area. When the encoding of one screen is completed, the data of the buffer “I” 22 is transferred to the buffer “II” 32 by referring to the start address and the code amount in ascending order of the slice number. Then, the data is rearranged, and the data in the buffer "II" 32 is output to a transmission path and a storage medium (not shown).

【0027】また、上記逆量子化器30で逆量子化され
たデータは、逆離散コサイン変換器(IDCT)34で
逆変換される。ここで、この逆変換器は、逆離散コサイ
ン変換器に限るものではなく、変換時の直交変換と対を
なす逆変換器であれば良い。この逆変換値は、加算器3
6に供給され、上記フレーム内,フレーム間符号化判定
器16の判定結果により切り換えられたスイッチ38の
出力値と加算されて、上記動き補償予測器12の中のフ
レームメモリ(図示せず)に書き込まれる。この場合、
フレームメモリの書き込みアドレスは、上記スライス符
号化順決定器18の出力によって示される。
The data inversely quantized by the inverse quantizer 30 is inversely transformed by an inverse discrete cosine transform (IDCT) 34. Here, the inverse transformer is not limited to the inverse discrete cosine transformer, but may be any inverse transformer that forms a pair with the orthogonal transform at the time of conversion. The inversely converted value is calculated by the adder 3
6 and is added to the output value of the switch 38 switched according to the determination result of the intra-frame / inter-frame coding determination unit 16 and stored in a frame memory (not shown) in the motion compensation prediction unit 12. Written. in this case,
The write address of the frame memory is indicated by the output of the slice coding order determiner 18.

【0028】そして、この動き補償予測器12により、
次に符号化される画像と動き補償予測器12内のフレー
ムメモリに蓄積された画像とがマクロブロック単位に動
き補償される。この動き補償予測マクロブロックが、上
記スイッチ38及び減算器10へ入力され、符号化され
る画像のマクロブロックと差分が取られる。以降は上記
内容が繰り返し処理される。
Then, by the motion compensation predictor 12,
Next, the image to be encoded and the image stored in the frame memory in the motion compensation predictor 12 are motion-compensated in macroblock units. The motion-compensated prediction macroblock is input to the switch 38 and the subtractor 10 to obtain a difference from the macroblock of the image to be encoded. Thereafter, the above contents are repeatedly processed.

【0029】以上のように、バッファ占有量によって量
子化ステップ幅を変更し、発生符号量を制御する符号化
方式に於いて、入力画像をいくつかの領域に分割し、こ
れらの領域に重要度の順番付けを行ない、量子化スケー
ルの大小によって上記重要度によって順番付けられた領
域の符号化順番を決定するので、量子化スケールが大き
い時は重要度の低い領域を、そして量子化スケールが小
さい時は重要度の高い領域を符号化することができ、符
号化効率が良く画質を向上することができる。
As described above, in the encoding system in which the quantization step width is changed according to the buffer occupancy and the amount of generated code is controlled, the input image is divided into several regions, and the importance is assigned to these regions. Is performed, and the coding order of the regions ordered by the importance is determined according to the magnitude of the quantization scale.When the quantization scale is large, the region of low importance is small, and the quantization scale is small. In some cases, a region having a high degree of importance can be encoded, so that encoding efficiency is good and image quality can be improved.

【0030】図6は、本発明の第2の実施例を示す図
で、第1図と同様のものには同じ参照番号を付すことに
より、その説明は省略する。即ち、本第2の実施例で
は、バッファ40に、各スライスの先頭(スライスのヘ
ッダ情報)にスライス符号化順決定器18からのスライ
スナンバを、またその後に、符号化されたデータを、直
接書き込むようにしている。この時は、図示しない復号
器側で、そのスライスナンバにより、復号されたスライ
スを並び換えることで復号画像を生成できる。
FIG. 6 is a view showing a second embodiment of the present invention. The same reference numerals as in FIG. 1 denote the same parts, and a description thereof will be omitted. That is, in the second embodiment, the slice number from the slice encoding order determiner 18 at the head (slice header information) of each slice, and thereafter, the encoded data are directly stored in the buffer 40. I try to write. At this time, a decoder (not shown) can generate a decoded image by rearranging the decoded slices based on the slice number.

【0031】なお、この場合、バッファ40内で各スラ
イスの割り当て符号量と実際の符号量との差の計算及び
その差の量の積算を行ない、この量をバッファ占有量と
して、スライス符号化順決定器18,量子化器(Q)2
6,及び逆量子化器(Q-1)30へ出力する。
In this case, in the buffer 40, the difference between the allocated code amount of each slice and the actual code amount is calculated and the amount of the difference is integrated. Decision unit 18, Quantizer (Q) 2
6 and an inverse quantizer (Q −1 ) 30.

【0032】即ち、本第2の実施例は、バッファが1つ
になり、符号化データの並び換えを行なわない代わり
に、符号化データと一緒にスライスナンバを送るところ
が図1に示した第1の実施例と異なるところである。
That is, the second embodiment is different from the first embodiment shown in FIG. 1 in that the number of buffers is one and the slice number is transmitted together with the encoded data instead of rearranging the encoded data. This is different from the embodiment of FIG.

【0033】このような本第2の実施例によっても、前
述した第1の実施例と同様に、入力画像をいくつかの領
域に分割し、これらの領域に重要度の順番付けを行な
い、量子化スケールの大小によって上記重要度によって
順番付けられた領域の符号化順番を決定するので、量子
化スケールが大きい時は重要度の低い領域を、そして量
子化スケールが小さい時は重要度の高い領域を符号化す
ることができ、符号化効率が良く画質を向上することが
できるものである。
According to the second embodiment, similarly to the first embodiment, the input image is divided into several regions, and these regions are ranked in order of importance. The coding order of the regions ordered by the importance is determined according to the size of the quantization scale, so the region of low importance is used when the quantization scale is large, and the region of high importance is used when the quantization scale is small. Can be encoded, and the encoding efficiency can be improved and the image quality can be improved.

【0034】つまり、本発明では、バッファ占有量によ
って量子化ステップ幅を変更し、発生符号量を制御する
符号化方式に於いて、入力画像をいくつかの領域に分割
し、これらの領域に重要度の順番付けを行ない、量子化
スケールの大小によって上記重要度によって順番付けら
れた領域の符号化順番を決定するので、量子化スケール
が大きい時は重要度の低い領域を、そして量子化スケー
ルが小さい時は重要度の高い領域を符号化することがで
き、符号化効率を向上させることができ、画質を向上す
ることが可能となるものである。
That is, according to the present invention, in the coding system in which the quantization step width is changed according to the buffer occupation amount and the generated code amount is controlled, the input image is divided into several regions, and important regions are assigned to these regions. The order of the degrees is determined, and the coding order of the regions ordered according to the importance is determined according to the magnitude of the quantization scale.When the quantization scale is large, the region of low importance is determined, and the quantization scale is determined. When the size is small, a region with high importance can be encoded, the encoding efficiency can be improved, and the image quality can be improved.

【0035】[0035]

【発明の効果】以上詳述したように、本発明によれば、
符号化効率を向上させた画像データ圧縮方式を提供する
ことができる。
As described in detail above, according to the present invention,
An image data compression system with improved encoding efficiency can be provided.

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

【図1】本発明の画像データ圧縮方式の第1の実施例の
ブロック図である。
FIG. 1 is a block diagram of a first embodiment of an image data compression system according to the present invention.

【図2】入力画像の構成を説明するための図である。FIG. 2 is a diagram illustrating a configuration of an input image.

【図3】図1中のスライス符号化順決定器のブロック構
成図である。
FIG. 3 is a block diagram of a slice coding order determiner in FIG. 1;

【図4】(A)はバッファ占有量と量子化スケールの関
係を示すグラフであり、(B)はブロック内の変換係数
に対する初期量子化ステップ幅を示す図である。
4A is a graph showing a relationship between a buffer occupancy and a quantization scale, and FIG. 4B is a diagram showing an initial quantization step width for a transform coefficient in a block.

【図5】図1中のバッファ“I”の動作を説明するため
の動作ブロック図である。
FIG. 5 is an operation block diagram for explaining an operation of a buffer “I” in FIG. 1;

【図6】本発明の画像データ圧縮方式の第2の実施例の
ブロック図である。
FIG. 6 is a block diagram of a second embodiment of the image data compression system of the present invention.

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

10…減算器、12…動き補償予測器(MC)、14,
38…スイッチ、16…フレーム内,フレーム間符号化
判定器、18…スライス符号化順決定器、20…フレー
ムメモリ(FM)、22…バッファ(Buffer)“I”、
24…離散コサイン変換器(DCT)、26…量子化器
(Q)、28…可変長符号化器(VLC)、30…逆量
子化器(Q-1)、32…バッファ(Buffer)“II”、3
4…逆離散コサイン変換器(IDCT)、36…加算
器、40…バッファ。
10: subtractor, 12: motion compensation predictor (MC), 14,
38 switch, 16 intra-frame / inter-frame coding determiner, 18 slice coding order determiner, 20 frame memory (FM), 22 buffer "I",
24 discrete cosine transformer (DCT), 26 quantizer (Q), 28 variable length coder (VLC), 30 inverse quantizer (Q -1 ), 32 buffer "3
4 ... Inverse discrete cosine transformer (IDCT), 36 ... Adder, 40 ... Buffer.

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力画像を複数の領域に分割する分割手
段と、 前記分割された複数の領域に対して重要度を設定するた
めの手段と、 符号化されたデータを蓄積するためのバッファと、 量子化スケールを前記バッファを占有しているデータの
占有量に基づき決定する手段と、 前記重要度と前記量子化スケールとにより、前記分割さ
れた複数の領域に対応する画像の符号化の順番を決定す
る符号化順決定手段と、 前記符号化順決定手段により決定された順番により前記
分割された複数の領域に対応する画像を符号化し、符号
化データを生成する符号化手段と、 を備えた ことを特徴とする画像データ圧縮方式。
1. A dividing method for dividing an input image into a plurality of regions.
And setting importance levels for the plurality of divided areas.
Means for storing encoded data, and a quantization scale for the data occupying the buffer.
Means for determining based on the occupancy, and the importance and the quantization scale
The encoding order of the images corresponding to the
Encoding order determining means, and the order determined by the encoding order determining means.
Encode an image corresponding to a plurality of divided areas and code
Image data compression method is characterized in that and a coding means for generating data.
【請求項2】 前記分割された領域に対応する画像毎の
符号化データを、画像の左上からラスタスキャン順に、
前記分割領域を符号化した時と同様のデータ順となるよ
うに並び換える手段を備えたことを特徴とする請求項1
に記載の画像データ圧縮方式。
2. Encoding data for each image corresponding to the divided area, from the upper left of the image in raster scan order.
2. The apparatus according to claim 1, further comprising means for rearranging the divided areas so as to have the same data order as when the divided areas are encoded.
Image data compression method described in 1.
【請求項3】 前記分割された領域はいくつかのブロッ
クからなっており、このブロックは、画像の左上からラ
スタスキャン順に連続して並び且つ画像の左上からラス
タスキャン順に通し番号が付けられており、前記符号化
される領域の前記通し番号を、ヘッダ情報として、当該
領域の符号化データの前に付加する手段を備えたことを
特徴とする請求項1に記載の画像データ圧縮方式。
3. The divided area is composed of a number of blocks, which are consecutively arranged in raster scan order from the upper left of the image and serially numbered in raster scan order from the upper left of the image. 2. The image data compression system according to claim 1, further comprising means for adding the serial number of the area to be encoded as header information before the encoded data of the area.
【請求項4】 前記重要度は、前記分割された各領域内
画像の情報量あるいは特徴量により決定されることを
特徴とする請求項1に記載の画像データ圧縮方式。
4. The image data compression method according to claim 1, wherein the importance is determined by an information amount or a feature amount of an image in each of the divided areas.
【請求項5】 前記符号化順決定手段は、前記量子化ス
ケールが所定の閾値以上の値の時は前記重要度の低い領
域から符号化を行ない、前記量子化スケールが前記閾値
未満の値の時は前記重要度の高い領域から符号化を行な
ように符号化の順番を決定することを特徴とする請求
項1に記載の画像データ圧縮方式。
Wherein said coding order determining means, the quantization scale is when the more values predetermined threshold performs coding from a less the significance region, the quantization scale value less than the threshold value 2. The image data compression method according to claim 1, wherein an encoding order is determined such that encoding is performed from the region of higher importance at the time.
【請求項6】 前記閾値は、入力画像の1画面分の情報
量により決定されることを特徴とする請求項に記載の
画像データ圧縮方式。
6. The image data compression method according to claim 5 , wherein said threshold value is determined by an information amount of one screen of an input image.
JP7531091A 1991-04-08 1991-04-08 Image data compression method Expired - Lifetime JP2919990B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7531091A JP2919990B2 (en) 1991-04-08 1991-04-08 Image data compression method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7531091A JP2919990B2 (en) 1991-04-08 1991-04-08 Image data compression method

Publications (2)

Publication Number Publication Date
JPH05260456A JPH05260456A (en) 1993-10-08
JP2919990B2 true JP2919990B2 (en) 1999-07-19

Family

ID=13572557

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7531091A Expired - Lifetime JP2919990B2 (en) 1991-04-08 1991-04-08 Image data compression method

Country Status (1)

Country Link
JP (1) JP2919990B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2005125215A1 (en) * 2004-06-18 2008-04-17 富士通株式会社 Image data encoding apparatus and encoding method

Also Published As

Publication number Publication date
JPH05260456A (en) 1993-10-08

Similar Documents

Publication Publication Date Title
US7869502B2 (en) Video coder providing implicit coefficient prediction and scan adaptation for image coding and intra coding of video
JP5107495B2 (en) Quality-based image compression
EP0892555A2 (en) Adaptive video coding method
JPH05505077A (en) Digital image coding method using random scanning of image frames
JPH07184196A (en) Picture coder
JPH09214962A (en) Moving video image compression system having vacant/ full buffer look ahead bit allocator
JP3067628B2 (en) Image coding device
CN1822677A (en) Apparatus and method for predicting coefficients of video block
JP3872849B2 (en) Video encoding device
JP2891773B2 (en) Method and apparatus for processing digital image sequences
JP3508916B2 (en) Moving image variable bit rate encoding method and apparatus
JP2919990B2 (en) Image data compression method
JPH07203430A (en) Image coding device
KR20020026189A (en) Efficient video data access using fixed ratio compression
EP1684530A2 (en) Video coder providing implicit coefficient prediction and scan adaption for image coding and intra coding of video
JP3211778B2 (en) Improved adaptive video coding method
JPH06217273A (en) Method and device for encoding image data
JP2003174648A (en) Moving picture encoder
JP3038066B2 (en) Image coding device
JP3779066B2 (en) Video encoding device
JPH05316359A (en) Picture data coder
JP3190164B2 (en) Code amount estimation device
JPH0575867A (en) Image data coder
JPH08186821A (en) Animation image coder and transmitter thereof
JPH04336894A (en) Moving picture coder

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990323

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

Free format text: PAYMENT UNTIL: 20090423

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090423

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100423

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110423

Year of fee payment: 12

EXPY Cancellation because of completion of term