JPH0575867A - Image data coder - Google Patents

Image data coder

Info

Publication number
JPH0575867A
JPH0575867A JP3232899A JP23289991A JPH0575867A JP H0575867 A JPH0575867 A JP H0575867A JP 3232899 A JP3232899 A JP 3232899A JP 23289991 A JP23289991 A JP 23289991A JP H0575867 A JPH0575867 A JP H0575867A
Authority
JP
Japan
Prior art keywords
code amount
area
block
encoding
region
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
JP3232899A
Other languages
Japanese (ja)
Inventor
Rumi Tsubota
留美 坪田
Yasuhiko Yamane
靖彦 山根
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP3232899A priority Critical patent/JPH0575867A/en
Publication of JPH0575867A publication Critical patent/JPH0575867A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To make it possible to perform an encoding with code quantity in accordance with significance degree every area in a picture, to perform the encoding without the degradation of the reproducibility of a significant area and to suppress the total code quantity of the whole picture to fixed quantity or less. CONSTITUTION:As for the block of an area B shown by an area setting part 103, a code quantity control part 107 performs an encoding for the conversion factor of the number held in an area B minimum conversion factor number setting part 105. As for the block of an area A shown by an area setting part 102, the control part 107 makes a DCT/encoding part 101 perform an encoding by increasing code quantity allotted to the block of the area B when the total code quantity of the whole picture when an encoding is performed for all the conversion factors is smaller than a maximum total code quantity held in a whole code quantity setting part 106 and by decreasing code quantity allotted to the block of the area A when the total code quantity is larger than the maximum total code quantity.

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 coding apparatus used in an image data storage apparatus, an image data transmission apparatus, etc., for compressing image data by coding, and particularly to a fixed data amount after coding. The present invention relates to an image data encoding device that encodes so as to be less than or equal to the amount.

【0002】[0002]

【従来の技術】静止画像等の画像データを符号化してデ
ータ圧縮する際、画像における近接する領域のデータは
相関性が高いことに着目して、例えば画像データをN×
N画素の複数のブロックに分割し、各N×N画素から成
るブロック内のデータに離散コサイン変換(DCT)等
の直交変換を施して量子化を行い、得られた変換係数を
符号化して圧縮する方式が用いられることがある。
2. Description of the Related Art When encoding image data such as a still image and compressing the data, attention is paid to the fact that the data in the adjacent regions in the image have a high correlation.
It is divided into a plurality of blocks of N pixels, data in each block consisting of N × N pixels is subjected to orthogonal transform such as discrete cosine transform (DCT) and quantized, and the obtained transform coefficient is encoded and compressed. The method of doing is sometimes used.

【0003】上記N×N画素の2次元のブロックに対し
て、離散コサイン変換を施す場合、一般に低次の項にエ
ネルギーが集中するため、得られる変換係数は、例えば
(図10)に斜線で示す低次の係数が比較的大きな値を
有することが多い。特に、低周波成分の多いブロックの
変換係数は、ブロックの左上の係数に数値の大きいもの
が集中し、右下には数値の小さいものやゼロであるもの
が多くなる。
When discrete cosine transform is applied to the two-dimensional block of N × N pixels, energy is generally concentrated in low-order terms, and thus the obtained transform coefficient is hatched in (FIG. 10), for example. The low order coefficients shown often have relatively large values. In particular, with regard to the transform coefficients of a block having many low frequency components, those having large numerical values are concentrated in the coefficients at the upper left of the block, and those having small numerical values or zero are large at the lower right.

【0004】そこで、上記のような変換係数を量子化し
て符号化する場合には、次のような処理によって、デー
タ圧縮の高能率化を図る可変長符号化手法が多く用いら
れてる。すなわち、例えば8×8画素のブロックに直交
変換を施した変換係数を符号化する場合には、(図1
1)に矢印で示す順に係数データを順次スキャンして1
次元のデータに配列し、連続するゼロ係数の個数と非ゼ
ロ係数値とを組にして組データを形成し、この組データ
を符号化する。
Therefore, when the above transform coefficients are quantized and coded, a variable length coding method is often used to improve the efficiency of data compression by the following processing. That is, for example, when encoding a transform coefficient obtained by performing orthogonal transform on a block of 8 × 8 pixels,
1) sequentially scan coefficient data in the order indicated by the arrow
The data is arranged in a dimension, and the number of consecutive zero coefficients and the non-zero coefficient value are paired to form group data, and the group data is encoded.

【0005】より具体的には、例えば(図12)に示す
ように、記号Zで示す係数だけが非ゼロ係数であるブロ
ックの場合、係数Zよりも手前のゼロ係数の個数(3
9)と、係数Zの値とを組データとして符号化し、係数
Z以降のゼロ係数については符号化を行わずにEOB
(End Of Block)符号を付加して、1ブロ
ックの符号データを生成する。
More specifically, for example, as shown in (FIG. 12), in the case of a block in which only the coefficient indicated by the symbol Z is a non-zero coefficient, the number of zero coefficients before the coefficient Z (3
9) and the value of the coefficient Z are encoded as group data, and zero coefficients after the coefficient Z are not encoded and EOB is not encoded.
(End Of Block) code is added to generate one block of code data.

【0006】このようにブロックを処理単位として、こ
のブロック単位の処理を画像全体に対して施す。この場
合、符号化後のデータ量(以下、符号量と称する。)
は、各ブロックにおける非ゼロ係数の個数等に応じて異
なったものとなる。ところで、画像データの蓄積や伝送
を行う場合、データを単に圧縮するだけでなく、符号量
を一定量以下に抑えることが必要とされる場合がある。
As described above, the block is used as a processing unit, and the processing of this block unit is performed on the entire image. In this case, the amount of data after encoding (hereinafter referred to as the amount of code).
Varies depending on the number of non-zero coefficients in each block. By the way, when storing and transmitting image data, it is sometimes necessary to not only compress the data but also to suppress the code amount to a certain amount or less.

【0007】例えば、スチルカメラ等に応用する場合、
画像ごとの符号量が一定量以下でないと、所定容量の記
録媒体(磁気ディスク、メモリカード等)に記録し得る
画像の枚数が変化することになり、最低記録枚数を保証
することができない。また、動画の表示装置等に適用す
る場合には、フィールド周波数等に応じた一定の時間内
に記憶媒体に対する書き込みや読み出しを行い得るデー
タ量以下に、符号量を抑える必要がある。
For example, when applied to a still camera or the like,
If the code amount for each image is not less than a certain amount, the number of images that can be recorded on a recording medium (magnetic disk, memory card, etc.) of a predetermined capacity will change, and the minimum number of recorded images cannot be guaranteed. Further, when applied to a moving image display device or the like, it is necessary to suppress the code amount to be equal to or less than the amount of data that can be written to or read from the storage medium within a certain time according to the field frequency and the like.

【0008】そこで、例えば、各ブロックごとの画像の
細かさを示すアクティビティを求め、このアクティビテ
ィに応じて各ブロックの符号量を設定することにより、
画像全体の総符号量を一定量以下に抑える手法が知られ
ている。(1989テレビジョン学会全国大会 19−
22)以下、上記手法が適用された画像データ符号化装
置の例を(図13)および(図14)に基づいて説明す
る。
Therefore, for example, by obtaining an activity indicating the fineness of the image for each block and setting the code amount of each block according to this activity,
A method is known in which the total code amount of the entire image is suppressed below a certain amount. (1989 National Congress of Television Society 19-
22) Hereinafter, an example of the image data encoding device to which the above method is applied will be described based on (FIG. 13) and (FIG. 14).

【0009】(図13)は画像データ符号化装置の構成
を示すブロック図である。ブロック化部1002は、例
えば(図14)に示すように、画像データ1001を8
×8画素のブロックに分割し、各ブロックごとの画像デ
ータをアクティビティ算出部1003、および符号化部
1006に出力するものである。アクティビティ算出部
1003は、各ブロックごとにアクティビティを計算す
るものである。
FIG. 13 is a block diagram showing the structure of the image data encoding device. The blocking unit 1002 converts the image data 1001 into 8 blocks as shown in (FIG. 14).
The image data is divided into blocks of × 8 pixels and the image data of each block is output to the activity calculation unit 1003 and the encoding unit 1006. The activity calculation unit 1003 calculates an activity for each block.

【0010】総アクティビティ算出部1004は、上記
アクティビティを累積し、1画像分の総アクティビティ
を求めるものである。符号量制御部1005は、各ブロ
ックごとのアクティビティと総アクティビティとの比か
ら各ブロックのビット配分を求めるものである。符号化
部1006は、ブロックごとに、前述のようにゼロ係数
の個数と非ゼロ係数の値とを順次組にして符号化するも
ので、符号量が上記ビット配分を越える場合には、高次
の係数をすべてゼロ係数と見なして符号化を中止するよ
うになっている。
The total activity calculation unit 1004 accumulates the above activities to obtain the total activity for one image. The code amount control unit 1005 obtains the bit allocation of each block from the ratio of the activity of each block and the total activity. The encoding unit 1006 encodes, for each block, the number of zero coefficients and the value of non-zero coefficients in order as described above, and when the code amount exceeds the above bit allocation, the higher order All the coefficients of are regarded as zero coefficients and the encoding is stopped.

【0011】このように、ブロックごとにアクティビテ
ィに基づいて符号量を制御することにより、画像全体の
総符号量を一定量以下に抑え得るとともに、画像の細か
さの程度が高い部分ほど、符号量を多く設定して、復号
化された際の画像の再現性を高くすることができるよう
になっている。
As described above, by controlling the code amount based on the activity for each block, the total code amount of the entire image can be suppressed to a certain amount or less, and the code amount becomes higher in a portion where the degree of fineness of the image is higher. Is set to a large number to improve the reproducibility of the image when it is decoded.

【0012】[0012]

【発明が解決しようとする課題】しかしながら、上記の
ような手法を用いた画像データの符号化装置では、アク
ティビティが高いブロックほど、画像の再現性を高くす
ることができるものの、実際にはそのようなアクティビ
ティの高いブロックが必ずしも画像における重要度の高
い部分とは限らないため、例えば画像の中央部付近の重
要度の高い部分でも、細かさの程度が低い場合には符号
量が小さく抑えられ、再現性が悪くなることがあるとい
う問題点を有していた。
However, in the image data encoding apparatus using the above-mentioned method, the higher the activity of the block, the higher the reproducibility of the image. Since a block with high activity is not necessarily a high importance part in the image, for example, even in a high importance part near the center of the image, if the degree of detail is low, the code amount is suppressed small, There is a problem that the reproducibility may deteriorate.

【0013】本発明は上記の点に鑑み、画像における領
域ごとの重要度に応じた符号量で符号化を行って、重要
な領域の画像データを確実に蓄積したり伝送したりし得
るとともに、画像全体の総符号量を一定量以下に抑える
ことができる画像データ符号化装置の提供を目的として
いる。
In view of the above points, the present invention is capable of reliably storing and transmitting image data of an important area by performing encoding with a code amount according to the degree of importance of each area in an image. It is an object of the present invention to provide an image data encoding device capable of suppressing the total code amount of the entire image to a fixed amount or less.

【0014】[0014]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、画像を複数画素から成る複数のブロック
に分割し、各ブロックごとの画像データを直交変換して
得られた変換係数を符号化する画像データ符号化装置に
おいて、画像における第1の領域に属するブロックにつ
いて全ての変換係数を符号化した第1の符号量と、第2
の領域に属するブロックについて所定の数の変換係数を
符号化した第2の符号量との合計である総符号量が、あ
らかじめ設定された設定符号量よりも小さい場合には、
第1の領域に属するブロックについて、全ての変換係数
を符号化し、第2の領域に属するブロックについて、前
記設定符号量と第1の符号量との差の符号量を割り当て
て符号化する一方、前記総符号量が設定符号量よりも大
きい場合には、第1の領域に属するブロックについて、
前記設定符号量と第2の符号量との差の符号量を割り当
てて符号化し、第2の領域に属するブロックについて、
前記所定の数の変換係数を符号化する符号量制御手段を
備えたことを特徴としている。
In order to achieve the above object, the present invention divides an image into a plurality of blocks composed of a plurality of pixels, and obtains transform coefficients obtained by orthogonally transforming image data of each block. In an image data encoding device for encoding, a first code amount obtained by encoding all transform coefficients for a block belonging to a first area in an image, and a second code amount
When the total code amount, which is the sum of the second code amount obtained by encoding the predetermined number of transform coefficients for the blocks belonging to the area of, is smaller than the preset code amount,
All the transform coefficients are coded for blocks belonging to the first area, and the blocks belonging to the second area are coded by allocating the code quantity of the difference between the set code quantity and the first code quantity. When the total code amount is larger than the set code amount, for blocks belonging to the first area,
A block belonging to the second area is coded by allocating a code amount of the difference between the set code amount and the second code amount,
It is characterized by further comprising code amount control means for encoding the predetermined number of transform coefficients.

【0015】[0015]

【作用】上記の構成により、符号量制御手段は、画像に
おける第1の領域に属するブロックについて全ての変換
係数を符号化した第1の符号量と、第2の領域に属する
ブロックについて所定の数の変換係数を符号化した第2
の符号量との合計である総符号量が、あらかじめ設定さ
れた設定符号量よりも小さい場合には、第1の領域に属
するブロックについて、全ての変換係数を符号化し、第
2の領域に属するブロックについて、前記設定符号量と
第1の符号量との差の符号量を割り当てて符号化する一
方、前記総符号量が設定符号量よりも大きい場合には、
第1の領域に属するブロックについて、前記設定符号量
と第2の符号量との差の符号量を割り当てて符号化し、
第2の領域に属するブロックについて、前記所定の数の
変換係数を符号化する。
With the above arrangement, the code amount control means has the first code amount obtained by coding all the transform coefficients for the block belonging to the first area of the image and the predetermined number of blocks belonging to the second area. Second encoded transform coefficient of
If the total code amount, which is the sum of the code amounts of the above, is smaller than the preset code amount, all the transform coefficients of the blocks belonging to the first region are coded to belong to the second region. For the block, the code amount of the difference between the set code amount and the first code amount is assigned and coded, and when the total code amount is larger than the set code amount,
For a block belonging to the first area, the code amount of the difference between the set code amount and the second code amount is assigned and encoded,
For the blocks belonging to the second area, the predetermined number of transform coefficients are encoded.

【0016】[0016]

【実施例】(実施例1)以下、本発明の一実施例の画像
データ符号化装置について、図面を参照しながら説明す
る。(図1)は画像データ符号化装置の構成を示すブロ
ック図である。
(Embodiment 1) An image data encoding apparatus according to an embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the image data encoding device.

【0017】同図において、DCT・符号化部101
は、例えば(図2)に示すように、画像301における
画像データを8×8画素のブロック302に分割して各
ブロックごとの画像データを離散コサイン変換(DC
T)し、得られた変換係数を後述する符号量制御部10
7の制御に基づいて符号化するものである。領域設定部
102・103は、各ブロック302が、(図2)に示
す中央部付近の領域Aに属するか、または周辺部の領域
Bに属するかを識別するための情報を保持するものであ
る。
In the figure, the DCT / encoding unit 101
For example, as shown in FIG. 2, the image data in the image 301 is divided into 8 × 8 pixel blocks 302, and the image data in each block is subjected to the discrete cosine transform (DC).
T), and the obtained conversion coefficient is used for the code amount control unit 10 which will be described later.
The encoding is performed based on the control of 7. The area setting units 102 and 103 hold information for identifying whether each block 302 belongs to the area A near the central portion shown in FIG. 2 or the area B in the peripheral portion. ..

【0018】優先順位設定部104は、上記領域A・B
の重要度を示す情報を保持するもので、例えば領域Aの
方が重要度が高いことを示す情報が保持されている。領
域B最小変換係数数設定部105は、領域Bに属する各
ブロック302について、最小限符号化される変換係数
数を保持するもので、この変換係数数としては、ある程
度の画質を保証するために必要な係数数として、例えば
値21が設定される。なお、上記変換係数数は、あらか
じめ設定されるようにしてもよいし、符号化する画像に
応じて符号化を行うごとに設定されるようにしてもよ
い。
The priority setting unit 104 uses the areas A and B described above.
Information indicating that the area A has a higher degree of importance is held. The area B minimum conversion coefficient number setting unit 105 holds the minimum number of conversion coefficients to be coded for each block 302 belonging to the area B. As the number of conversion coefficients, a certain image quality is guaranteed. A value of 21, for example, is set as the required number of coefficients. The number of transform coefficients may be set in advance, or may be set each time encoding is performed according to the image to be encoded.

【0019】全体符号量設定部106は、画像全体の総
符号量の上限としての最大総符号量を示す情報を保持す
るもので、この最大総符号量としては、例えば全てのブ
ロック302が上記最小変換係数数で符号化された場合
の符号量よりも充分大きな値に設定される。符号量制御
部107は、各ブロック302が属する領域、その領域
の重要度、および最大総符号量に基づいて、DCT・符
号化部101を制御するものである。
The total code amount setting unit 106 holds information indicating the maximum total code amount as the upper limit of the total code amount of the entire image. As the maximum total code amount, for example, all blocks 302 have the above minimum value. It is set to a value sufficiently larger than the code amount when encoded with the number of transform coefficients. The code amount control unit 107 controls the DCT / encoding unit 101 based on the area to which each block 302 belongs, the degree of importance of the area, and the maximum total code amount.

【0020】より詳しくは、符号量制御部107は、概
略次のような制御を行うようになっている。まず、DC
T・符号化部101に、領域Bのブロック302につい
ては、DCTによって得られた変換係数のうち、最小変
換係数数の変換係数に対して符号化を行わせる一方、領
域Aのブロック302については、全ての変換係数に対
して符号化を行わせ、画像全体の総符号量を算出する。
More specifically, the code amount control unit 107 is configured to perform the following control. First, DC
Regarding the block 302 in the area B, the T / encoding unit 101 is caused to perform encoding on the transform coefficient having the minimum number of transform coefficients among the transform coefficients obtained by DCT, while regarding the block 302 in the area A, , All transform coefficients are encoded, and the total code amount of the entire image is calculated.

【0021】上記総符号量が最大総符号量よりも小さい
場合には、領域Bのブロック302に割り当てられる符
号量を増大させる。すなわち、領域Bのブロック302
について、最小変換係数数よりも多くの変換係数に対し
て符号化を行わせる。また、総符号量が最大総符号量を
越える場合には、領域Aのブロック302に割り当てら
れる符号量を減少させる。すなわち、領域Aのブロック
302について、符号化される変換係数数を減少させ
る。
When the total code amount is smaller than the maximum total code amount, the code amount assigned to the block 302 in the area B is increased. That is, the block 302 in the area B
For, the encoding is performed on more transform coefficients than the minimum transform coefficient number. If the total code amount exceeds the maximum total code amount, the code amount assigned to the block 302 in the area A is decreased. That is, for the block 302 in the area A, the number of transform coefficients to be coded is reduced.

【0022】上記のように構成された画像データ符号化
装置について、具体的な動作の例を説明する。DCT・
符号化部101は、まず、入力された画像データを8×
8画素のブロック302に分割し、左上のブロックから
順次、ブロックごとの画像データをDCTする。
An example of a specific operation of the image data encoding device configured as described above will be described. DCT
The encoding unit 101 first inputs 8 × the input image data.
The image data is divided into 8-pixel blocks 302, and the image data of each block is DCT sequentially from the upper left block.

【0023】符号量制御部107は、領域設定部102
・103からの情報に基づいて、各ブロック302が領
域A・Bの何れに属するかを識別し、優先順位設定部1
04からの情報に基づいて重要度の高いことが示される
領域Aに属するブロック302については、DCT・符
号化部101に、全ての変換係数に対する符号化を行わ
せる一方、領域Bに属するブロック302については、
領域B最小変換係数数設定部105に設定されている数
(21個)の変換係数に対する符号化を行わせる。
The code amount control unit 107 includes an area setting unit 102.
Based on the information from 103, which of the areas A and B each block 302 belongs to is identified, and the priority order setting unit 1
For the block 302 belonging to the area A, which is shown to have high importance based on the information from 04, the DCT / encoding unit 101 is caused to perform coding on all transform coefficients, while the block 302 belonging to the area B about,
The region B minimum transform coefficient number setting unit 105 is caused to perform coding on the number (21) of transform coefficients set.

【0024】より具体的には、DCT・符号化部101
は、例えば(図3)に示すように、領域Aに属するブロ
ック302の変換係数組303が、記号a、b、c、d
で示す非ゼロ係数、およびその他のゼロ係数から成って
いる場合には、同図に矢印で示す順に係数データを順次
スキャンして1次元のデータに配列し、(図4)に示す
ように、係数aまでのゼロ係数の個数と係数aの値、係
数aから係数bまでのゼロ係数の個数と係数bの値・・
・係数cから係数dまでのゼロ係数の個数と係数dの値
をそれぞれ組にして符号化し、最後にEOB(end
ofblock)コードを付加した符号データ304を
生成する。
More specifically, the DCT / encoding unit 101
For example, as shown in (FIG. 3), the transform coefficient set 303 of the block 302 belonging to the area A is represented by the symbols a, b, c, d.
When it consists of non-zero coefficient indicated by and other zero coefficient, coefficient data are sequentially scanned in the order shown by the arrow in the figure and arranged into one-dimensional data, and as shown in (FIG. 4), The number of zero coefficients up to coefficient a and the value of coefficient a, the number of zero coefficients from coefficient a to coefficient b and the value of coefficient b ...
-The number of zero coefficients from coefficient c to coefficient d and the value of coefficient d are each paired and coded, and finally EOB (end
of code) to generate code data 304.

【0025】DCT・符号化部101は、また、例えば
(図5)に示すように、領域Bに属するブロック302
の変換係数組305が、記号e、f、g、hで示す非ゼ
ロ係数、およびその他のゼロ係数から成っている場合に
は、同図に斜線で示す、低周波成分から前記領域B最小
変換係数数設定部105に設定されている最小変換係数
数(21個)の変換係数について符号化を行い、(図
6)に示すように、係数eまでのゼロ係数の個数と係数
eの値、および係数eから係数fまでのゼロ係数の個数
と係数fの値をそれぞれ組にして符号化し、EOBコー
ドを付加して符号データ306を生成する。
The DCT / encoding unit 101 also uses the block 302 belonging to the area B as shown in (FIG. 5), for example.
When the conversion coefficient set 305 of No. 1 is composed of non-zero coefficients indicated by symbols e, f, g, and h, and other zero coefficients, the low-frequency component to the area B minimum conversion indicated by hatching in FIG. The conversion coefficients of the minimum conversion coefficient number (21) set in the coefficient number setting unit 105 are encoded, and as shown in FIG. 6, the number of zero coefficients up to the coefficient e and the value of the coefficient e, And the number of zero coefficients from the coefficient e to the coefficient f and the value of the coefficient f are encoded as a pair, and the EOB code is added to generate the code data 306.

【0026】次に、符号量制御部107は各ブロック3
02ごとの符号量を累算して画像全体の総符号量を算出
し、全体符号量設定部106に設定されている最大総符
号量よりも小さいかどうかを判定する。総符号量が最大
総符号量よりも小さい場合には、最大総符号量と、領域
Aに属する各ブロック302の符号量の合計との差を領
域Bに属するブロック302の個数で割って得られる符
号量を領域Bの各ブロック302に割り当てて、DCT
・符号化部101に再度符号化を行わせる。
Next, the code amount control unit 107 causes each block 3
The total code amount of the entire image is calculated by accumulating the code amount for each 02, and it is determined whether the total code amount is smaller than the maximum total code amount set in the total code amount setting unit 106. When the total code amount is smaller than the maximum total code amount, it is obtained by dividing the difference between the maximum total code amount and the total code amount of the blocks 302 belonging to the area A by the number of blocks 302 belonging to the area B. The code amount is assigned to each block 302 in the area B, and the DCT
-The encoding unit 101 is made to perform encoding again.

【0027】そこで、DCT・符号化部101は、領域
Aの各ブロック302については最初と同様に全ての変
換係数に対する符号化を行う一方、領域Bの各ブロック
302については、例えば(図7)に示すように、割り
当てられた符号量を越えない変換係数までの符号化を行
って符号データ307を生成する。(変換係数hまでの
符号化を行ったときに、そのブロックの符号量が割り当
てられた符号量を越えた場合には、変換係数gまででそ
のブロックの符号化を終了する。)一方、総符号量が最
大総符号量よりも大きい場合には、最大総符号量と、領
域Bに属する各ブロック302の符号量の合計との差を
領域Aに属するブロック302の個数で割って得られる
符号量を領域Aのブロック302に割り当てて、DCT
・符号化部101に再度符号化を行わせる。
Therefore, the DCT / encoding unit 101 encodes all the transform coefficients for each block 302 in the area A as in the first step, while for each block 302 in the area B, for example (FIG. 7). As shown in, coded data 307 is generated by performing coding up to a transform coefficient that does not exceed the assigned code amount. (When encoding up to the transform coefficient h, if the code amount of the block exceeds the assigned code amount, the coding of the block is completed up to the transform coefficient g.) When the code amount is larger than the maximum total code amount, a code obtained by dividing the difference between the maximum total code amount and the total code amount of the blocks 302 belonging to the area B by the number of blocks 302 belonging to the area A The amount is allocated to the block 302 of the area A, and the DCT
-The encoding unit 101 is made to perform encoding again.

【0028】この場合には、DCT・符号化部101
は、領域Aの各ブロック302については、割り当てら
れた符号量を越えない変換係数までの符号化を行う一
方、領域Bの各ブロック302については、最初と同様
に21個の変換係数に対する符号化を行う。このよう
に、領域Bのブロック302について最小変換係数数の
変換係数、領域Aのブロック302について全ての変換
係数に対して符号化を行ったときの画像全体の総符号量
が最大総符号量よりも小さい場合には、領域Aの各ブロ
ック302については全ての変換係数、領域Bの各ブロ
ック302については可能な限り多くの変換係数に対す
る符号化が行われ、また、最大総符号量よりも大きい場
合には、領域Aの各ブロック302については可能な限
り多くの変換係数、領域Bの各ブロック302について
は、ある程度の画質を保証するために必要な最小限の変
換係数に対する符号化が行われるので、領域ごとの重要
度に応じた再現性を確保しつつ、画像全体の総符号量を
最大総符号量以下に抑えることができる。
In this case, the DCT / encoding unit 101
For each block 302 in the area A, the coding is performed up to the transform coefficient that does not exceed the assigned code amount, while for each block 302 in the area B, the coding for the 21 transform coefficients is performed as in the first coding. I do. In this way, the total code amount of the entire image when the transform coefficient having the minimum number of transform coefficients for the block 302 of the area B and all the transform coefficients of the block 302 of the area A are encoded is smaller than the maximum total code amount. If it is also smaller, all the transform coefficients are coded for each block 302 in the area A, and as many transform coefficients as possible for each block 302 in the area B are coded, and are larger than the maximum total code amount. In this case, each block 302 in the area A is encoded with as many transform coefficients as possible, and each block 302 in the area B is encoded with the minimum transform coefficient necessary to guarantee a certain image quality. Therefore, the total code amount of the entire image can be suppressed to the maximum total code amount or less while ensuring the reproducibility according to the importance of each area.

【0029】なお、上記の例においては、重要度の高い
領域Aが一つだけ設定されるように構成した例を示した
が、これに限らず、例えば領域設定部を3つ以上設け
て、重要度の高い領域Aが複数設定されるように構成し
てもよい。 (実施例2)以下、本発明の他の実施例として、重要度
を3段階以上に設定し得る画像データ符号化装置につい
て、図面を参照しながら説明する。なお、本実施例2に
おいて、前記実施例1と同様の機能を有する構成部分に
ついては同一の番号を付して説明を省略する。
In the above example, only one area A having a high degree of importance is set, but the present invention is not limited to this. For example, three or more area setting units may be provided, You may comprise so that the several area | region A with high importance may be set. (Embodiment 2) Hereinafter, as another embodiment of the present invention, an image data coding apparatus capable of setting importance in three or more steps will be described with reference to the drawings. In the second embodiment, components having the same functions as those in the first embodiment are designated by the same reference numerals and the description thereof will be omitted.

【0030】(図8)は画像データ符号化装置の構成を
示すブロック図である。同図において、領域設定部20
2・203は、前記実施例1と同様に、8×8画素の各
ブロック302があらかじめ設定された何れの領域に属
するかを識別するための情報を保持するものである。こ
の領域設定部202・203は、それぞれ、メイン領域
設定部2021、サブ領域生成部2022、サブ領域設
定部2023・2024、およびセレクタ部2025、
またはメイン領域設定部2031、サブ領域生成部20
32、サブ領域設定部2033・2034、およびセレ
クタ部2035から構成されている。
FIG. 8 is a block diagram showing the structure of the image data encoding device. In the figure, the area setting unit 20
2, 203 holds information for identifying to which area each block 302 of 8 × 8 pixels belongs in advance, as in the first embodiment. The area setting units 202 and 203 respectively include a main area setting unit 2021, a sub area generating unit 2022, sub area setting units 2023 and 2024, and a selector unit 2025.
Alternatively, the main area setting unit 2031 and the sub area generating unit 20
32, sub area setting units 2033 and 2034, and a selector unit 2035.

【0031】上記メイン領域設定部2021・2031
は、各ブロック302が、(図9)に示す中央部付近の
領域Aに属するか、または周辺部の領域Bに属するかを
識別するための情報を保持するものである。領域設定部
202のサブ領域生成部2022は、例えばメイン領域
設定部2021に保持されている情報に基づいて、領域
Aに属する各ブロック302が、さらに、(図9)に示
す領域Aの中央部1/2の領域A1に属するか、または
周辺部の領域A2に属するかを識別するための情報を生
成するものである。
Main area setting section 2021, 2031
Holds information for identifying whether each block 302 belongs to the area A near the central portion shown in FIG. 9 or the area B in the peripheral portion. The sub-region generation unit 2022 of the region setting unit 202 determines that each block 302 belonging to the region A further has the central portion of the region A shown in FIG. 9 based on the information held in the main region setting unit 2021. Information for identifying whether it belongs to the half area A1 or the peripheral area A2 is generated.

【0032】サブ領域設定部2023・2024は、そ
れぞれ、上記サブ領域生成部2022によって生成され
た領域A1・A2に関する情報を保持するものである。
また、領域設定部203のサブ領域生成部2032およ
びサブ領域設定部2033・2034は、上記サブ領域
生成部2022およびサブ領域設定部2023・202
4と同様の機能を有するものである。
The sub-area setting sections 2023 and 2024 hold information on the areas A1 and A2 generated by the sub-area generating section 2022, respectively.
In addition, the sub-region generation unit 2032 and the sub-region setting units 2033 and 2034 of the region setting unit 203 are the same as the sub-region generation unit 2022 and the sub-region setting units 2023 and 202.
4 has the same function.

【0033】セレクタ部2025・2035は、それぞ
れ、メイン領域設定部2021と、サブ領域設定部20
23・2024と、またはメイン領域設定部2031
と、サブ領域設定部2033・2034とを選択的に切
り換えて、それぞれの領域に関する情報を符号量制御部
207に出力するものである。ここで、上記セレクタ部
2035は、説明の簡単のために、常にメイン領域設定
部2031を選択するように、すなわち、領域Bはそれ
以上細分化されないように設定されている場合の例につ
いて説明する。
The selector sections 2025 and 2035 respectively include a main area setting section 2021 and a sub area setting section 20.
23/2024, or main area setting unit 2031
And the sub-region setting units 2033 and 2034 are selectively switched, and information regarding each region is output to the code amount control unit 207. Here, for the sake of simplicity of explanation, an example in which the selector unit 2035 is set so as to always select the main region setting unit 2031, that is, the region B is not further subdivided will be described. ..

【0034】優先順位設定部204は、上記領域A・
B、および領域A1・A2の重要度を示す情報を保持す
るもので、例えば領域Bよりも領域A、領域A2よりも
領域A1の方がそれぞれ重要度が高いことを示す情報を
保持している。領域B・A2最小変換係数数設定部20
5は、領域B、または領域A2に属するブロック302
について、最小限符号化される変換係数数を保持するも
ので、この変換係数数としては、それぞれの領域の重要
度に応じたある程度の画質を保証するために必要な係数
数として、例えば領域Bについては値21、領域A2に
ついてはそれよりも所定数だけ大きい値が設定される。
The priority setting unit 204 uses the area A.
B, and information indicating the importance of the areas A1 and A2 are held. For example, information indicating that the area A is higher than the area B and the area A1 is higher than the area A2 is held. .. Area B / A2 minimum conversion coefficient number setting unit 20
5 is a block 302 belonging to the area B or the area A2
The minimum number of transform coefficients to be encoded is held, and the number of transform coefficients is the number of coefficients required to guarantee a certain image quality according to the importance of each area, for example, area B Is set to 21 and the area A2 is set to a value larger by a predetermined number.

【0035】符号量制御部207は、各ブロック302
が属する領域、その領域の重要度、および最大総符号量
に基づいて、DCT・符号化部101を制御するもの
で、まず、領域Bのブロック302については21個、
領域Aのブロック302については全ての変換係数に対
して符号化を行わせ、画像全体の総符号量が最大総符号
量よりも小さい場合には、前記実施例1の符号量制御部
107と同様に、領域Bのブロック302について21
個よりも多くの変換係数に対して符号化を行わせる一
方、総符号量が最大総符号量を越える場合には、さら
に、領域A1・A2について、符号化する変換係数数を
制御するようになっている。
The code amount control unit 207 controls each block 302.
Controls the DCT / encoding unit 101 based on the area to which the area belongs, the degree of importance of the area, and the maximum total code amount.
For the block 302 in the area A, all transform coefficients are coded, and when the total code amount of the entire image is smaller than the maximum total code amount, the same as the code amount control unit 107 of the first embodiment. 21 about the block 302 of the area B
Encoding is performed on more transform coefficients than the number of transform coefficients, and when the total code amount exceeds the maximum total code amount, the number of transform coefficients to be encoded is further controlled for the areas A1 and A2. Is becoming

【0036】上記のように構成された画像データ符号化
装置について、具体的な動作の例を説明する。DCT・
符号化部101は、まず、入力された画像データを8×
8画素のブロック302に分割し、左上のブロックから
順次、ブロックごとの画像データをDCTする。
A specific example of the operation of the image data coding apparatus configured as described above will be described. DCT
The encoding unit 101 first inputs 8 × the input image data.
The image data is divided into 8-pixel blocks 302, and the image data of each block is DCT sequentially from the upper left block.

【0037】一方、領域設定部202・203のセレク
タ部2025・2035は、それぞれメイン領域設定部
2021・2031を選択し、各ブロック302が領域
A・Bの何れに属するかを示す情報を出力する。符号量
制御部207は、セレクタ部2025・2035からの
情報に基づいて、実施例1の符号量制御部107と同様
に、各ブロック302が領域A・Bの何れに属するかを
識別し、優先順位設定部204からの情報に基づいて重
要度の高いことが示される領域Aに属するブロック30
2については、DCT・符号化部101に、全ての変換
係数に対する符号化を行わせる一方、領域Bに属するブ
ロック302については、領域B・A2最小変換係数数
設定部205に設定されている数(21個)の変換係数
に対する符号化を行わせ、各ブロック302ごとの符号
量を累算して画像全体の総符号量を算出し、全体符号量
設定部106に設定されている最大総符号量よりも小さ
いかどうかを判定する。
On the other hand, the selector sections 2025 and 2035 of the area setting sections 202 and 203 select the main area setting sections 2021 and 2031 respectively, and output information indicating which of the areas A and B each block 302 belongs to. .. The code amount control unit 207 identifies, based on the information from the selector units 2025 and 2035, which of the regions A and B each block 302 belongs to, like the code amount control unit 107 of the first embodiment, and gives priority. The block 30 belonging to the area A that is shown to have high importance based on the information from the rank setting unit 204.
For 2, the DCT / encoding unit 101 is caused to perform encoding on all transform coefficients, while for the block 302 belonging to the region B, the number set in the region B / A2 minimum transform coefficient number setting unit 205. The (21) transform coefficients are encoded, the code amount of each block 302 is accumulated to calculate the total code amount of the entire image, and the maximum total code set in the overall code amount setting unit 106 is calculated. Determine if less than quantity.

【0038】そして、総符号量が最大総符号量よりも小
さい場合には、符号量制御部207は、やはり実施例1
と同様に、最大総符号量と、領域Aに属する各ブロック
302の符号量の合計との差を領域Bに属するブロック
302の個数で割って得られる符号量を領域Bの各ブロ
ック302に割り当て、DCT・符号化部101は、領
域Aの各ブロック302については最初と同様に全ての
変換係数に対する符号化を行う一方、領域Bの各ブロッ
ク302については、割り当てられた符号量を越えない
変換係数までの符号化を行う。
When the total code amount is smaller than the maximum total code amount, the code amount control unit 207 also determines the first embodiment.
Similarly, the code amount obtained by dividing the difference between the maximum total code amount and the total code amount of the blocks 302 belonging to the region A by the number of blocks 302 belonging to the region B is assigned to each block 302 of the region B. , The DCT / encoding unit 101 performs coding on all the transform coefficients for each block 302 in the area A as in the first step, while transforming each block 302 in the area B so as not to exceed the assigned code amount. Coding up to the coefficient is performed.

【0039】一方、総符号量が最大総符号量よりも大き
い場合には、符号量制御部207は、さらに領域A1・
A2で符号化する変換係数数を異ならせるように制御を
行う。すなわち、まず領域設定部202のセレクタ部2
025は、サブ領域設定部2023・2024を選択
し、領域Aに属する各ブロック302が、さらに領域A
1・A2の何れに属するかを示す情報を出力する。
On the other hand, when the total code amount is larger than the maximum total code amount, the code amount control unit 207 further determines the area A1.
The control is performed so that the number of transform coefficients encoded in A2 is different. That is, first, the selector unit 2 of the area setting unit 202
025 selects the sub-region setting units 2023 and 2024, and each block 302 belonging to the region A is further divided into the region A.
Information indicating which of 1 and A2 it belongs to is output.

【0040】符号量制御部207は、領域A1に属する
ブロック302については、DCT・符号化部101
に、全ての変換係数に対する符号化を行わせる一方、領
域A2に属するブロック302については、領域B・A
2最小変換係数数設定部205に設定されている数の変
換係数(全ての変換係数ではないが、領域Bについて設
定された個数21よりも多い数の変換係数数)に対する
符号化を行わせ、各ブロック302ごとの符号量を累算
して画像全体の総符号量を算出し、再度、全体符号量設
定部106に設定されている最大総符号量よりも小さい
かどうかを判定する。
For the block 302 belonging to the area A1, the code amount control unit 207 is the DCT / encoding unit 101.
While all of the transform coefficients are coded, for the block 302 belonging to the area A2,
(2) Encoding the number of conversion coefficients set in the minimum conversion coefficient number setting unit 205 (not all the conversion coefficients, but the number of conversion coefficients greater than the number 21 set for the area B) is performed, The total code amount of the entire image is calculated by accumulating the code amount of each block 302, and it is determined again whether the total code amount is smaller than the maximum total code amount set in the total code amount setting unit 106.

【0041】この総符号量が最大総符号量よりも小さい
場合には、最大総符号量と、領域Bまたは領域A1に属
する各ブロック302の符号量の合計との差を領域A2
に属するブロック302の個数で割って得られる符号量
を領域A2の各ブロック302に割り当て、DCT・符
号化部101は、領域B、または領域A1の各ブロック
302については、それぞれ、最初と同様に21個、ま
たは全ての変換係数に対する符号化を行う一方、領域A
2の各ブロック302については、割り当てられた符号
量を越えない変換係数までの符号化を行う。
When the total code amount is smaller than the maximum total code amount, the difference between the maximum total code amount and the total code amount of the blocks 302 belonging to the region B or the region A1 is calculated as the area A2.
The code amount obtained by dividing by the number of blocks 302 belonging to the area A2 is assigned to each block 302 of the area A2, and the DCT / encoding unit 101, for each block 302 of the area B or the area A1, respectively, similarly to the first time. 21 or all transform coefficients are coded while the area A
For each block 302 of No. 2, coding is performed up to a transform coefficient that does not exceed the assigned code amount.

【0042】また、上記総符号量がやはり最大総符号量
よりも大きい場合には、最大総符号量と、領域Bまたは
領域A2に属するブロック302の符号量の合計との差
を領域A1に属するブロック302の個数で割って得ら
れる符号量を領域A1の各ブロック302に割り当て、
DCT・符号化部101は、領域B、または領域A2の
各ブロック302については、それぞれ、最初と同様に
21個、または21個よりも多い所定の数の変換係数に
対する符号化を行う一方、領域A1の各ブロック302
については、割り当てられた符号量を越えない変換係数
までの符号化を行う。
When the total code amount is still larger than the maximum total code amount, the difference between the maximum total code amount and the total code amount of the blocks 302 belonging to the area B or the area A2 belongs to the area A1. The code amount obtained by dividing by the number of blocks 302 is assigned to each block 302 of the area A1,
The DCT / encoding unit 101 encodes 21 blocks or a predetermined number of transform coefficients larger than 21 for each block 302 in the region B or the region A2, respectively, as in the beginning. Each block 302 of A1
For, the coding is performed up to the transform coefficient that does not exceed the assigned code amount.

【0043】このように、重要度を3段階以上に設定す
ることができるので、画像内の領域ごとの重要度が3段
階以上である場合でも、それぞれの重要度に応じた符号
量で、かつ画像全体の総符号量を一定量以下に抑えるよ
うに符号化することができる。なお、本実施例2におい
ても、実施例1と同様に、それぞれの重要度の領域が複
数設定されるように構成してもよい。
As described above, since the importance can be set in three or more steps, even when the importance of each area in the image is three or more steps, the code amount corresponding to each importance and It is possible to perform encoding so that the total code amount of the entire image is suppressed to a certain amount or less. Note that, in the second embodiment as well, similar to the first embodiment, a plurality of regions of each importance may be set.

【0044】また、上記実施例1および実施例2におい
ては、各ブロック302が何れの領域に属するかを示す
情報はあらかじめ設定されるように構成された例を示し
たが、これに限らず、符号化する画像に応じて、符号化
を行うごとに所望のサイズおよび位置の領域を設定し得
るように構成してもよい。
Further, in the above-described first and second embodiments, an example is shown in which the information indicating which area each block 302 belongs to is set in advance, but the present invention is not limited to this. A region having a desired size and position may be set each time encoding is performed, depending on the image to be encoded.

【0045】[0045]

【発明の効果】以上説明したように、本発明によれば、
総符号量が、あらかじめ設定された設定符号量よりも小
さい場合には、第1の領域に属するブロックについて、
全ての変換係数を符号化し、第2の領域に属するブロッ
クについて、前記設定符号量と第1の符号量との差の符
号量を割り当てて符号化する一方、前記総符号量が設定
符号量よりも大きい場合には、第1の領域に属するブロ
ックについて、前記設定符号量と第2の符号量との差の
符号量を割り当てて符号化し、第2の領域に属するブロ
ックについて、前記所定の数の変換係数を符号化する符
号量制御手段を備えていることにより、第1の領域に属
するブロックは、全ての変換係数が符号化されるか、ま
たは少なくとも設定符号量と第2の符号量との差の符号
量が割り当てられて符号化される。
As described above, according to the present invention,
When the total code amount is smaller than the preset code amount, the blocks belonging to the first area are
All the transform coefficients are coded, and for the blocks belonging to the second area, the code amount of the difference between the set code amount and the first code amount is assigned and coded, while the total code amount is greater than the set code amount. Is larger, the blocks belonging to the first area are coded by allocating the code quantity of the difference between the set code quantity and the second code quantity, and the blocks belonging to the second area are subjected to the predetermined number. By including the code amount control means for encoding the transform coefficients of, all the transform coefficients of the blocks belonging to the first region are coded, or at least the set code amount and the second code amount are set. The code amount of the difference is assigned and encoded.

【0046】すなわち、総符号量が設定符号量以下に抑
えられる範囲内で、第1の領域に属するブロックについ
て最大限の変換係数が符号化される。したがって、画像
における領域ごとの重要度に応じた符号量で符号化を行
うとともに、画像全体の総符号量を一定量以下に抑える
ことができるという効果を奏する。
That is, the maximum transform coefficient is coded for the blocks belonging to the first area within the range in which the total code amount is suppressed to the set code amount or less. Therefore, it is possible to perform the encoding with the code amount according to the importance of each area in the image and to suppress the total code amount of the entire image to a certain amount or less.

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

【図1】実施例1における画像データ符号化装置の構成
を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an image data encoding device according to a first embodiment.

【図2】同、画像の領域分けの例を示す説明図である。FIG. 2 is an explanatory diagram showing an example of image region division.

【図3】同、領域Aに属するブロックの変換係数の例を
示す説明図である。
FIG. 3 is an explanatory diagram showing an example of transform coefficients of blocks belonging to the same area A.

【図4】同、ブロック内の全ての変換係数を符号化した
符号データの例を示す説明図である。
FIG. 4 is an explanatory diagram showing an example of code data obtained by coding all transform coefficients in a block.

【図5】同、領域Bに属するブロックの変換係数の例を
示す説明図である。
FIG. 5 is an explanatory diagram showing an example of transform coefficients of blocks belonging to the same area B.

【図6】同、ブロック内の最小変換係数数の変換係数を
符号化した符号データの例を示す説明図である。
FIG. 6 is an explanatory diagram showing an example of code data obtained by coding the transform coefficients having the minimum transform coefficient number in the block.

【図7】同、割り当てられた符号量の範囲内で再符号化
した符号データの例を示す説明図である。
FIG. 7 is an explanatory diagram showing an example of code data re-encoded within the allocated code amount range.

【図8】実施例2における画像データ符号化装置の構成
を示すブロック図である。
FIG. 8 is a block diagram illustrating a configuration of an image data encoding device according to a second embodiment.

【図9】同、画像の領域分けの例を示す説明図である。FIG. 9 is an explanatory diagram showing an example of area division of an image.

【図10】変換係数の次数とエネルギーとの関係を示す
説明図である。
FIG. 10 is an explanatory diagram showing the relationship between the order of conversion coefficients and energy.

【図11】符号化の際の変換係数のスキャン順序を示す
説明図である。
FIG. 11 is an explanatory diagram showing a scan order of transform coefficients at the time of encoding.

【図12】符号化の際にゼロ係数の個数と非ゼロ係数の
値とを組にする方法の例を示す説明図である。
FIG. 12 is an explanatory diagram showing an example of a method of pairing the number of zero coefficients and the value of non-zero coefficients at the time of encoding.

【図13】従来の画像データ符号化装置の構成を示すブ
ロック図である。
FIG. 13 is a block diagram showing a configuration of a conventional image data encoding device.

【図14】画像データを8×8画素のブロックに分割す
る例を示す説明図である。
FIG. 14 is an explanatory diagram showing an example in which image data is divided into blocks of 8 × 8 pixels.

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

101 DCT・符号化部 102 領域設定部 103 領域設定部 104 優先順位設定部 105 領域B最小変換係数数設定部 106 全体符号量設定部 107 符号量制御部 202 領域設定部 2021 メイン領域設定部 2022 サブ領域生成部 2023 サブ領域設定部 2024 サブ領域設定部 2025 セレクタ部 203 領域設定部 2031 メイン領域設定部 2032 サブ領域生成部 2033 サブ領域設定部 2034 サブ領域設定部 2035 セレクタ部 204 優先順位設定部 205 領域B・A2最小変換係数数設定部 101 DCT / encoding unit 102 region setting unit 103 region setting unit 104 priority setting unit 105 region B minimum conversion coefficient number setting unit 106 overall code amount setting unit 107 code amount control unit 202 region setting unit 2021 main region setting unit 2022 sub Region generation unit 2023 Sub region setting unit 2024 Sub region setting unit 2025 Selector unit 203 Region setting unit 2031 Main region setting unit 2032 Sub region generating unit 2033 Sub region setting unit 2034 Sub region setting unit 2035 Selector unit 204 Priority setting unit 205 Region B / A2 minimum conversion coefficient number setting unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 画像を複数画素から成る複数のブロック
に分割し、各ブロックごとの画像データを直交変換して
得られた変換係数を符号化する画像データ符号化装置に
おいて、 画像における第1の領域に属するブロックについて全て
の変換係数を符号化した第1の符号量と、第2の領域に
属するブロックについて所定の数の変換係数を符号化し
た第2の符号量との合計である総符号量が、あらかじめ
設定された設定符号量よりも小さい場合には、第1の領
域に属するブロックについて、全ての変換係数を符号化
し、第2の領域に属するブロックについて、前記設定符
号量と第1の符号量との差の符号量を割り当てて符号化
する一方、 前記総符号量が設定符号量よりも大きい場合には、第1
の領域に属するブロックについて、前記設定符号量と第
2の符号量との差の符号量を割り当てて符号化し、第2
の領域に属するブロックについて、前記所定の数の変換
係数を符号化する符号量制御手段を備えたことを特徴と
する画像データ符号化装置。
1. An image data encoding device for dividing an image into a plurality of blocks made up of a plurality of pixels, and encoding a transform coefficient obtained by orthogonally transforming image data of each block, comprising: A total code that is the sum of a first code amount obtained by encoding all transform coefficients for blocks belonging to a region and a second code amount obtained by encoding a predetermined number of transform coefficients for blocks belonging to a second region When the amount is smaller than the preset set code amount, all transform coefficients are coded for the block belonging to the first region, and the set code amount and the first code are set for the block belonging to the second region. When the total code amount is larger than the set code amount, the first code is assigned.
For the blocks belonging to the area, the code amount of the difference between the set code amount and the second code amount is assigned and coded.
An image data encoding apparatus comprising a code amount control means for encoding the predetermined number of transform coefficients for blocks belonging to the area.
【請求項2】 請求項1の画像データ符号化装置であっ
て、前記符号量制御手段は、前記総符号量が設定符号量
よりも大きい場合に、第1の領域に属するブロックに、
前記設定符号量と第2の符号量との差の符号量を割り当
てるとともに、さらに、 前記第1の領域内の第1のサブ領域に属するブロックに
ついて全ての変換係数を符号化した第1のサブ符号量
と、第1の領域内の第2のサブ領域に属するブロックに
ついて所定の数の変換係数を符号化した第2のサブ符号
量との合計である総サブ符号量が、前記第1の領域に属
するブロックに割り当てられた符号量よりも小さい場合
には、第1のサブ領域に属するブロックについて、全て
の変換係数を符号化し、第2のサブ領域に属するブロッ
クについて、前記割り当てられた符号量と第1のサブ符
号量との差の符号量を割り当てて符号化を行い、 前記総サブ符号量が前記割り当てられた符号量よりも大
きい場合には、第1のサブ領域に属するブロックについ
て、前記割り当てられた符号量と第2のサブ符号量との
差の符号量を割り当てて符号化し、第2のサブ領域に属
するブロックについて、前記所定の数の変換係数を符号
化するように構成されていることを特徴とする画像デー
タ符号化装置。
2. The image data encoding device according to claim 1, wherein the code amount control means, in the case where the total code amount is larger than a set code amount, a block belonging to the first area,
A code amount of the difference between the set code amount and the second code amount is assigned, and further, all the transform coefficients of the blocks belonging to the first sub region in the first region are coded in the first sub. The total sub-code amount that is the sum of the code amount and the second sub-code amount obtained by encoding a predetermined number of transform coefficients for blocks belonging to the second sub-region in the first region is the first sub-code amount. If it is smaller than the code amount assigned to the block belonging to the area, all transform coefficients are encoded for the block belonging to the first sub area, and the assigned code is assigned for the block belonging to the second sub area. Coding is performed by allocating a code amount of a difference between the amount and the first sub-code amount, and when the total sub-code amount is larger than the assigned code amount, the blocks belonging to the first sub-region are assigned. , A code amount of a difference between the assigned code amount and a second sub code amount is assigned and encoded, and the predetermined number of transform coefficients is encoded for a block belonging to the second sub region. An image data encoding device characterized by being provided.
JP3232899A 1991-09-12 1991-09-12 Image data coder Pending JPH0575867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3232899A JPH0575867A (en) 1991-09-12 1991-09-12 Image data coder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3232899A JPH0575867A (en) 1991-09-12 1991-09-12 Image data coder

Publications (1)

Publication Number Publication Date
JPH0575867A true JPH0575867A (en) 1993-03-26

Family

ID=16946587

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3232899A Pending JPH0575867A (en) 1991-09-12 1991-09-12 Image data coder

Country Status (1)

Country Link
JP (1) JPH0575867A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5815601A (en) * 1995-03-10 1998-09-29 Sharp Kabushiki Kaisha Image encoder and image decoder
JP2002027256A (en) * 2000-05-12 2002-01-25 Xerox Corp Method for compressing digital document by controlling picture quality undergoing various compression rate constraint
US7173969B2 (en) 2000-07-07 2007-02-06 Matsushita Electric Industrial Co., Ltd. Moving picture coding apparatus
JP2017005503A (en) * 2015-06-10 2017-01-05 日本電信電話株式会社 Video encoding device, video encoding method and video encoding program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5815601A (en) * 1995-03-10 1998-09-29 Sharp Kabushiki Kaisha Image encoder and image decoder
US5978515A (en) * 1995-03-10 1999-11-02 Sharp Kabushiki Kaisha Image encoder and image decoder
JP2002027256A (en) * 2000-05-12 2002-01-25 Xerox Corp Method for compressing digital document by controlling picture quality undergoing various compression rate constraint
JP4722321B2 (en) * 2000-05-12 2011-07-13 ゼロックス コーポレイション Digital document compression method by image quality control subject to various compression rate constraints
US7173969B2 (en) 2000-07-07 2007-02-06 Matsushita Electric Industrial Co., Ltd. Moving picture coding apparatus
JP2017005503A (en) * 2015-06-10 2017-01-05 日本電信電話株式会社 Video encoding device, video encoding method and video encoding program

Similar Documents

Publication Publication Date Title
US6304606B1 (en) Image data coding and restoring method and apparatus for coding and restoring the same
EP0677969B1 (en) Moving picture coding method and an apparatus therefor
JP3356663B2 (en) Image encoding device, image encoding method, and recording medium recording image encoding program
EP0447247A2 (en) Image encoding method and apparatus
EP0665512A2 (en) An image processing method and apparatus
US7403561B2 (en) Fixed bit rate, intraframe compression and decompression of video
JPH07107300A (en) Picture encoding device
JP3067628B2 (en) Image coding device
JPH0832037B2 (en) Image data compression device
US5748795A (en) Image decoder using adjustable filtering
JPH0575867A (en) Image data coder
JPH1066077A (en) Code amount control method for image data and its device
EP1892965A2 (en) Fixed bit rate, intraframe compression and decompression of video
EP1629675B1 (en) Fixed bit rate, intraframe compression and decompression of video
JP2915922B2 (en) Image signal compression coding device
JP3559314B2 (en) Image compression device
JPH04208775A (en) Bit distribution encoding system
JPH0752951B2 (en) Image data compression processing method and apparatus
JP2633118B2 (en) Image data compression apparatus and method
JP3334255B2 (en) High efficiency coding device
JP2919990B2 (en) Image data compression method
JPH04144489A (en) Image data recording system
JPH0846964A (en) System for controlling code quantity
JP3421463B2 (en) Quantization table generation device for image compression device
JPH07222152A (en) Picture processor and compressed data control method in the picture processor

Legal Events

Date Code Title Description
A977 Report on retrieval

Effective date: 20041025

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20041102

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050315