JPH09121351A - Image signal code amount control circuit - Google Patents

Image signal code amount control circuit

Info

Publication number
JPH09121351A
JPH09121351A JP27607195A JP27607195A JPH09121351A JP H09121351 A JPH09121351 A JP H09121351A JP 27607195 A JP27607195 A JP 27607195A JP 27607195 A JP27607195 A JP 27607195A JP H09121351 A JPH09121351 A JP H09121351A
Authority
JP
Japan
Prior art keywords
circuit
code amount
small area
area
small
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
JP27607195A
Other languages
Japanese (ja)
Inventor
Katsuya Oshima
勝也 大島
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP27607195A priority Critical patent/JPH09121351A/en
Publication of JPH09121351A publication Critical patent/JPH09121351A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To reduce the degradation of picture quality and to improve encoding efficiency by enabling quantization corresponding to a picture pattern. SOLUTION: While using a synchronizing signal 104 delayed by a delay circuit 3, a small area dividing circuit 5 of a code amount control circuit 4 discriminates the position of an image on a screen corresponding to a DCT coefficient 103 and outputs the discriminated result as an area discrimination signal 105. According to the area discrimination signal 105, a small area characteristic analytic circuit 6 analyzes the characteristics of the picture pattern from the DCT coefficient 103 for each area and outputs the characteristic analyzed result 106. According to the characteristic analyzed result 106, a small area code amount setting circuit 7 distributes a target picture inside code amount 107 to respective small areas, allocates them and outputs an allocated code amount 108. Based on an area discrimination signal 109 delayed by a delay circuit 8, a quantizing parameter calculation circuit 9 calculates a quantizing parameter for each small area according to the allocated code amount 108.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は画像信号符号量制御
回路に関し、特にフィールド内またはフレーム内の画像
を圧縮する圧縮符号化装置において画面単位の符号量を
一定値以下に抑えかつ効率よく符号割当てが可能な符号
量制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image signal code amount control circuit, and more particularly, to a code encoding device for compressing an image in a field or a frame, in which the code amount of each screen is suppressed to a certain value or less and the code is efficiently assigned. The present invention relates to a code amount control method capable of controlling.

【0002】[0002]

【従来の技術】画像信号の圧縮符号化は伝送や記録に適
用されることが多いが、特にVTR(Video Ta
pe Recorder)やビデオディスクレコーダ等
の記録機器に用いる場合、画面単位の編集機能を実現す
るために、画面単位で発生する符号量を一定値以下に抑
える必要がある。そのため、圧縮符号化装置には符号量
制御手段を用いるものがある。
2. Description of the Related Art A compression coding of an image signal is often applied to transmission and recording, but in particular, VTR (Video Ta) is used.
When used in a recording device such as a pe recorder) or a video disk recorder, it is necessary to suppress the code amount generated in each screen to a certain value or less in order to realize the editing function in each screen. Therefore, some compression encoding devices use a code amount control means.

【0003】図8は従来の圧縮符号化装置の構成を示す
図である。この図8を用いて、従来の画像信号符号量制
御方法について以下説明する。
FIG. 8 is a diagram showing the structure of a conventional compression encoding device. A conventional image signal code amount control method will be described below with reference to FIG.

【0004】入力されたディジタルビデオデータ200
はDCT(Discrete Cosine Tran
sform)変換回路61でDCT変換処理が施され、
その処理結果であるDCT変換係数201がDCT変換
回路61から量子化パラメータ計算回路62及び量子化
回路63に出力される。
Input digital video data 200
Is DCT (Discrete Cosine Tran)
sform) conversion circuit 61 performs DCT conversion processing,
The DCT transform coefficient 201 as the processing result is output from the DCT transform circuit 61 to the quantization parameter calculation circuit 62 and the quantization circuit 63.

【0005】量子化パラメータ計算回路62はDCT変
換係数201と画面内目標符号量202とから量子化パ
ラメータ203を画面毎に計算し、その量子化パラメー
タ203を量子化回路63及び符号化回路64に出力す
る。
The quantization parameter calculation circuit 62 calculates a quantization parameter 203 for each screen from the DCT transform coefficient 201 and the in-screen target code amount 202, and the quantization parameter 203 is sent to the quantization circuit 63 and the encoding circuit 64. Output.

【0006】量子化回路63は量子化パラメータ計算回
路62からの量子化パラメータ203にしたがってDC
T変換回路61からのDCT変換係数201を量子化
し、量子化データ204を符号化回路64に出力する。
The quantizing circuit 63 operates on the DC according to the quantizing parameter 203 from the quantizing parameter calculating circuit 62.
The DCT transform coefficient 201 from the T transform circuit 61 is quantized, and the quantized data 204 is output to the encoding circuit 64.

【0007】符号化回路64は量子化回路63からの量
子化データ204に対してハフマン符号化等の符号化処
理を行い、その符号化処理の結果と復号時に必要となる
量子化パラメータ203とを統合化して圧縮ビデオデー
タ205として出力する。
The encoding circuit 64 performs an encoding process such as Huffman encoding on the quantized data 204 from the quantization circuit 63, and outputs the result of the encoding process and the quantization parameter 203 necessary for decoding. It is integrated and output as compressed video data 205.

【0008】上記の量子化パラメータ計算回路62は、
図9に示すように、除算回路66及び乗算回路67から
なる量子化回路65と、発生符号量画面内累積回路68
と、パラメータ調整回路69とから構成されている。
The quantization parameter calculation circuit 62 described above is
As shown in FIG. 9, a quantization circuit 65 including a division circuit 66 and a multiplication circuit 67, and a generated code amount in-screen accumulation circuit 68.
And a parameter adjusting circuit 69.

【0009】量子化パラメータ計算回路62において、
DCT変換係数201は予め定められたパラメータで量
子化処理が行われる。この量子化処理は量子化回路65
で行われる。
In the quantization parameter calculation circuit 62,
The DCT transform coefficient 201 is quantized with a predetermined parameter. This quantization processing is performed by the quantization circuit 65.
Done in

【0010】量子化回路65の乗算回路67では予め定
められた初期量子化パラメータ301と、DCTブロッ
ク内の各係数の量子化係数を定めた量子化マトリクス3
02との乗算処理を行い、乗算結果303を除算回路6
6に出力する。
In the multiplication circuit 67 of the quantization circuit 65, a quantization matrix 3 which defines a predetermined initial quantization parameter 301 and a quantization coefficient of each coefficient in the DCT block.
02, and the multiplication result 303 is divided by the division circuit 6
6 is output.

【0011】除算回路66はDCT変換係数201を乗
算結果303で除算し、その除算結果を整数化して量子
化データ304とし、この量子化データ304を発生符
号量画面内累積回路68に出力する。
The division circuit 66 divides the DCT transform coefficient 201 by the multiplication result 303, integerizes the division result, and outputs the quantized data 304 to the generated code amount in-screen accumulation circuit 68.

【0012】発生符号量画面内累積回路68は除算回路
66からの量子化データ304からそれを符号化した時
の符号量を求め、その符号量から画面内の和を計算して
発生符号量305をパラメータ調整回路69に出力す
る。
The generated code amount in-screen accumulation circuit 68 obtains the code amount when the quantized data 304 from the division circuit 66 is encoded, calculates the sum within the screen from the code amount, and generates the generated code amount 305. Is output to the parameter adjustment circuit 69.

【0013】パラメータ調整回路69は発生符号量画面
内累積回路68からの発生符号量305を画面内目標符
号量202と比較する。パラメータ調整回路69は発生
符号量305が画面内目標符号量202より多ければ、
初期量子化パラメータ301を用いた量子化がオーバフ
ローすることになるので、パラメータの値を初期量子化
パラメータ301よりも大きくし、粗い量子化が行われ
るよう制御する。
The parameter adjustment circuit 69 compares the generated code amount 305 from the generated code amount in-screen accumulation circuit 68 with the in-screen target code amount 202. If the generated code amount 305 is larger than the in-screen target code amount 202, the parameter adjustment circuit 69
Since the quantization using the initial quantization parameter 301 will overflow, the value of the parameter is made larger than the initial quantization parameter 301, and control is performed so that coarse quantization is performed.

【0014】また、パラメータ調整回路69は発生符号
量305が画面内目標符号量202より少なければ、パ
ラメータの値を初期量子化パラメータ301よりも小さ
くして細かい量子化が行われるよう制御する。
If the generated code amount 305 is smaller than the in-screen target code amount 202, the parameter adjusting circuit 69 controls the parameter value to be smaller than the initial quantization parameter 301 so that fine quantization is performed.

【0015】上記のようにして、1画面毎に量子化パラ
メータを設定して量子化を行うことによって、画面毎の
発生符号量を目標符号量以下に制御している。上述した
符号量制御方法については、本願出願人から出願されて
いる特願平5−138064号の「画像符号化方法及び
装置」に詳述されている。
As described above, by setting the quantization parameter for each screen and performing quantization, the generated code amount for each screen is controlled to be equal to or less than the target code amount. The code amount control method described above is described in detail in Japanese Patent Application No. 5-138064, entitled “Image Coding Method and Apparatus”.

【0016】[0016]

【発明が解決しようとする課題】上述した従来の圧縮符
号化装置における符号量制御方法では、画面当たりの目
標符号量が予め定められており、各画面の符号量の和が
その値以下となるように量子化パラメータの設定を行っ
ている。
In the code amount control method in the above-described conventional compression coding device, the target code amount per screen is predetermined, and the sum of the code amounts of each screen is equal to or less than that value. The quantization parameter is set as follows.

【0017】しかしながら、従来の符号量制御方法で
は、1画面での量子化パラメータが1個となっている。
したがって、画面内容の特性、すなわち細かい絵柄であ
るとか、平坦な絵柄であるとか、輪郭部分であるとかは
考慮されておらず、全ての絵柄に対して同じ量子化パラ
メータを適用している。
However, in the conventional code amount control method, there is one quantization parameter in one screen.
Therefore, the characteristics of the screen contents, that is, the fine pattern, the flat pattern, and the outline portion are not taken into consideration, and the same quantization parameter is applied to all the patterns.

【0018】画像信号の圧縮符号化では視覚特性を考慮
して細かい絵柄部分には細かい量子化を行い、また平坦
な絵柄部分には粗い量子化を行えば、画質劣化が目立た
ずに、また符号化効率がよいとされている。
In compression coding of an image signal, if a fine pattern portion is finely quantized in consideration of visual characteristics, and a flat pattern portion is coarsely quantized, deterioration of image quality is not conspicuous and the code is encoded. It is said that the conversion efficiency is good.

【0019】これに対し、上記の符号量制御方法では細
かい絵柄部分や平坦な絵柄部分に対して絵柄に応じて量
子化特性を変えることができないので、効率的な圧縮符
号化を行うことができない。
On the other hand, in the above code amount control method, since the quantization characteristic cannot be changed for a fine pattern portion or a flat pattern portion according to the pattern, efficient compression encoding cannot be performed. .

【0020】そこで、本発明の目的は上記の問題点を解
消し、絵柄に応じた量子化を行うことができ、画質劣化
を少なくしかつ符号化効率をよくすることができる画像
信号符号量制御回路を提供することにある。
Therefore, an object of the present invention is to solve the above-mentioned problems, to carry out quantization according to a picture, to suppress deterioration of image quality and to improve coding efficiency, and to control coding amount of image signal. To provide a circuit.

【0021】[0021]

【課題を解決するための手段】本発明による画像信号符
号量制御回路は、画像信号を直交変換して得た直交変換
係数に対して量子化及び符号化を行って圧縮データを出
力する圧縮符号化装置の画像信号符号量制御回路であっ
て、1画面が予め分割された複数の小領域各々の特性を
各小領域毎の前記直交変換係数の分析により算出する特
性分析手段と、前記特性分析手段で算出された前記複数
の小領域各々の特性を基に各小領域毎に符号量を割当て
る符号量設定手段と、前記符号量設定手段で割当てられ
た前記符号量を基に各小領域毎の量子化パラメータを計
算する計算手段と、前記計算手段で計算された各小領域
毎の前記量子化パラメータを用いて前記直交変換係数に
対する量子化を行う量子化手段とを備えている。
An image signal code amount control circuit according to the present invention is a compression code for outputting compressed data by quantizing and coding an orthogonal transform coefficient obtained by orthogonally transforming an image signal. Which is an image signal code amount control circuit of a digitizing device, wherein characteristic analysis means calculates the characteristic of each of a plurality of small areas into which one screen is divided in advance by analyzing the orthogonal transformation coefficient for each small area; Code amount setting means for allocating a code amount for each small region based on the characteristics of each of the plurality of small regions calculated by the means, and for each small region based on the code amount assigned by the code amount setting means And a quantizing means for quantizing the orthogonal transform coefficient using the quantizing parameter for each small area calculated by the calculating means.

【0022】本発明による他の画像信号符号量制御回路
は、上記の構成のほかに、前記画像信号に付加された同
期信号に基づいて前記直交変換係数が前記複数の小領域
のいずれに属するかを指定することで前記1画面を複数
の小領域各々に分割する分割手段を具備している。
In another image signal code amount control circuit according to the present invention, in addition to the above configuration, to which of the plurality of small areas the orthogonal transform coefficient belongs based on a synchronization signal added to the image signal. By specifying, the dividing unit divides the one screen into a plurality of small areas.

【0023】[0023]

【発明の実施の形態】まず、本発明の作用について以下
に述べる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS First, the operation of the present invention will be described below.

【0024】画像信号に対して直交変換を施し、その直
交変換係数に対する量子化及び符号化を行って圧縮デー
タを出力し、かつ圧縮データのデータ量を量子化の際に
量子化特性を変えることで制御する圧縮符号化装置にお
いて、1画面を複数の小領域に分割し、各小領域毎の直
交変換係数から元の画像信号の特性を分析する。
Orthogonal transformation is performed on an image signal, the orthogonal transformation coefficient is quantized and coded to output compressed data, and the amount of compressed data changes the quantization characteristic when quantized. In the compression encoding device controlled by, one screen is divided into a plurality of small areas, and the characteristic of the original image signal is analyzed from the orthogonal transform coefficient for each small area.

【0025】これらの特性を用いて、小領域各々の符号
量の和が1画面の目標符号量以下となるように各小領域
に符号量を割当て、その符号量に基づいて計算された各
小領域の量子化パラメータを用いて量子化処理を行う。
Using these characteristics, a code amount is assigned to each small region so that the sum of the code amounts of the small regions is equal to or less than the target code amount for one screen, and each small region is calculated based on the code amount. Quantization processing is performed using the quantization parameter of the area.

【0026】これによって、1画面を分割した各小領域
の絵柄に応じて量子化を行っても、画面毎の符号量を目
標以下に抑えられるので、絵柄に応じた量子化を行い、
画質劣化を少なくしかつ符号化効率をよくすることが可
能となる。
As a result, even if the quantization is performed according to the picture of each small area obtained by dividing one screen, the code amount for each screen can be suppressed below the target. Therefore, the quantization according to the picture is performed.
It is possible to reduce image quality deterioration and improve coding efficiency.

【0027】次に、本発明の一実施例について図面を参
照して説明する。図1は本発明の一実施例の構成を示す
ブロック図である。図において、本発明の一実施例によ
る圧縮符号化装置は同期検出・分離回路1と、DCT
(Discete Cosine Transfor
m)変換回路2と、遅延回路3,10と、符号量制御回
路4と、量子化回路11と、符号化回路12とから構成
されている。
Next, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of one embodiment of the present invention. In the figure, a compression encoding apparatus according to an embodiment of the present invention includes a synchronization detection / separation circuit 1
(Discece Cine Transform)
m) It is composed of a conversion circuit 2, delay circuits 3 and 10, a code amount control circuit 4, a quantization circuit 11, and an encoding circuit 12.

【0028】符号量制御回路4は小領域分割回路5と、
小領域特性分析回路6と、小領域符号量設定回路7と、
遅延回路8と、量子化パラメータ計算回路9とから構成
されている。
The code amount control circuit 4 includes a small area division circuit 5 and
A small area characteristic analysis circuit 6, a small area code amount setting circuit 7,
It is composed of a delay circuit 8 and a quantization parameter calculation circuit 9.

【0029】入力されたディジタルビデオデータ100
は同期検出・分離回路1で画像信号101と同期信号1
02とに分離され、画像信号101はDCT変換回路2
に出力され、同期信号102は遅延回路3を経て符号量
制御回路4の小領域分割回路5に出力される。
Input digital video data 100
Is the synchronization detection / separation circuit 1 and the image signal 101 and the synchronization signal 1
02 and the image signal 101 is separated into the DCT conversion circuit 2
The sync signal 102 is output to the small area division circuit 5 of the code amount control circuit 4 via the delay circuit 3.

【0030】画像信号101はDCT変換回路2でDC
T変換処理が施され、その処理結果であるDCT変換係
数103はDCT変換回路2から符号量制御回路4の小
領域特性分析回路6及び量子化パラメータ計算回路9に
出力されるとともに、遅延回路10を経て量子化回路1
1に出力される。
The image signal 101 is converted to DC by the DCT conversion circuit 2.
The T-transform process is performed, and the resulting DCT transform coefficient 103 is output from the DCT transform circuit 2 to the small area characteristic analysis circuit 6 and the quantization parameter calculation circuit 9 of the code amount control circuit 4 and the delay circuit 10 Quantization circuit 1
It is output to 1.

【0031】上記の符号量制御回路4において、小領域
分割回路5は遅延回路3で遅延された同期信号104を
用いて符号量制御回路4に入力されるDCT変換係数1
03が画面のどの位置の画像に対応するものかを判定
し、その判定結果を領域識別信号105として小領域特
性分析回路6及び遅延回路8に出力する。
In the code amount control circuit 4 described above, the small area division circuit 5 uses the synchronization signal 104 delayed by the delay circuit 3 to input the DCT transform coefficient 1 to the code amount control circuit 4.
It is determined which position on the screen 03 corresponds to the image, and the determination result is output to the small area characteristic analysis circuit 6 and the delay circuit 8 as the area identification signal 105.

【0032】小領域特性分析回路6は小領域分割回路5
から入力される領域識別信号105にしたがった領域毎
にDCT変換係数103から絵柄の特性分析を行い、特
性分析結果106を小領域符号量設定回路7に出力す
る。
The small area characteristic analyzing circuit 6 is a small area dividing circuit 5.
The characteristic analysis of the pattern is performed from the DCT conversion coefficient 103 for each area according to the area identification signal 105 input from the circuit, and the characteristic analysis result 106 is output to the small area code amount setting circuit 7.

【0033】小領域符号量設定回路7は小領域特性分析
回路6から入力される特性分析結果106にしたがっ
て、画面内目標符号量107を各小領域に分配して割当
て、割当て符号量108を量子化パラメータ計算回路9
に出力する。
The small area code amount setting circuit 7 distributes and allocates the in-screen target code amount 107 to each small area according to the characteristic analysis result 106 input from the small area characteristic analysis circuit 6, and assigns the allocated code amount 108 to the quantum. Parameter calculation circuit 9
Output to

【0034】量子化パラメータ計算回路9は遅延回路8
で遅延された領域識別信号109を基に、小領域符号量
設定回路7から入力される割当て符号量108にしたが
って各小領域毎の量子化パラメータを計算し、量子化パ
ラメータ110を量子化回路11及び符号化回路12に
出力する。ここで、各小領域毎の量子化パラメータはそ
れらの和が画面内目標符号量107を達成するように計
算される。
The quantization parameter calculation circuit 9 is the delay circuit 8
Based on the area identification signal 109 delayed by, the quantization parameter for each small area is calculated according to the assigned code quantity 108 input from the small area code quantity setting circuit 7, and the quantization parameter 110 is converted to the quantization circuit 11 And output to the encoding circuit 12. Here, the quantization parameter for each small area is calculated so that the sum of them reaches the in-screen target code amount 107.

【0035】量子化回路11は量子化パラメータ計算回
路9からの量子化パラメータ110にしたがって遅延回
路10で遅延されたDCT変換係数111を量子化し、
量子化データ112を符号化回路12に出力する。
The quantizing circuit 11 quantizes the DCT transform coefficient 111 delayed by the delay circuit 10 according to the quantizing parameter 110 from the quantizing parameter calculating circuit 9,
The quantized data 112 is output to the encoding circuit 12.

【0036】符号化回路12は量子化回路11からの量
子化データ112に対してハフマン符号化等の符号化処
理を行い、その符号化処理の結果と復号時に必要となる
量子化パラメータ110とを統合化して圧縮ビデオデー
タ113として出力する。
The coding circuit 12 performs coding processing such as Huffman coding on the quantized data 112 from the quantization circuit 11, and the result of the coding processing and the quantization parameter 110 necessary for decoding are obtained. It is integrated and output as compressed video data 113.

【0037】図2は本発明の一実施例による画面の領域
分割例を示す図である。図において、この領域分割例で
は画面を機械的に面積の等しい4つの小領域に分割して
いる。ここで、画面左上をZ1とし、画面右上をZ2と
し、画面左下をZ3とし、画面右下をZ4とする。
FIG. 2 is a diagram showing an example of area division of a screen according to an embodiment of the present invention. In the figure, in this area division example, the screen is mechanically divided into four small areas having the same area. Here, the upper left of the screen is Z1, the upper right of the screen is Z2, the lower left of the screen is Z3, and the lower right of the screen is Z4.

【0038】図3は図1の小領域分割回路5の構成を示
すブロック図である。図において、小領域分割回路5は
位置情報取得回路21と、比較回路22,23と、領域
判定回路24とから構成されている。
FIG. 3 is a block diagram showing the structure of the small area division circuit 5 of FIG. In the figure, the small area division circuit 5 is composed of a position information acquisition circuit 21, comparison circuits 22 and 23, and an area determination circuit 24.

【0039】位置情報取得回路21は同期信号104を
用いて符号量制御回路4に入力されるDCT変換係数1
03が画面のどの位置にあるかという情報を取得し、そ
の位置情報121を比較回路22,23に出力する。
The position information acquisition circuit 21 uses the sync signal 104 to input the DCT transform coefficient 1 to the code amount control circuit 4.
Information on which position 03 is on the screen is acquired, and the position information 121 is output to the comparison circuits 22 and 23.

【0040】比較回路22は位置情報取得回路21から
の位置情報121を、画面の水平サイズ×1/2を示す
領域情報112と比較してその位置が画面の水平サイズ
の1/2より大きいか小さいかの判定を行い、その判定
結果を水平位置判定結果124として領域判定回路24
に出力する。
The comparison circuit 22 compares the position information 121 from the position information acquisition circuit 21 with the area information 112 indicating the horizontal size of the screen × 1/2 and determines whether the position is larger than 1/2 of the horizontal size of the screen. It is determined whether or not it is smaller, and the determination result is set as the horizontal position determination result 124 in the area determination circuit 24.
Output to

【0041】比較回路23は位置情報取得回路21から
の位置情報121を、画面の垂直サイズ×1/2を示す
領域情報113と比較してその位置が画面の垂直サイズ
の1/2より大きいか小さいかの判定を行い、その判定
結果を垂直位置判定結果125として領域判定回路24
に出力する。
The comparison circuit 23 compares the position information 121 from the position information acquisition circuit 21 with the area information 113 indicating the vertical size of the screen × 1/2 and determines whether the position is larger than 1/2 of the vertical size of the screen. It is determined whether or not it is smaller, and the determination result is used as the vertical position determination result 125, and the area determination circuit 24
Output to

【0042】領域判定回路24は比較回路22からの水
平位置判定結果124と比較回路23からの垂直位置判
定結果125とを用いて、符号量制御回路4に入力され
るDCT変換係数103が画面の水平サイズの1/2よ
り小さくかつ垂直サイズの1/2より小さい位置にある
と判定すると、そのデータを小領域Z1に分類する。
The area determination circuit 24 uses the horizontal position determination result 124 from the comparison circuit 22 and the vertical position determination result 125 from the comparison circuit 23 to determine the DCT transform coefficient 103 input to the code amount control circuit 4 on the screen. When it is determined that the position is smaller than 1/2 of the horizontal size and smaller than 1/2 of the vertical size, the data is classified into the small area Z1.

【0043】また、領域判定回路24は符号量制御回路
4に入力されるDCT変換係数103が画面の水平サイ
ズの1/2より大きくかつ垂直サイズの1/2より小さ
い位置にあると判定すると、そのデータを小領域Z2に
分類する。
When the area determination circuit 24 determines that the DCT transform coefficient 103 input to the code amount control circuit 4 is at a position larger than 1/2 of the horizontal size of the screen and smaller than 1/2 of the vertical size, The data is classified into the small area Z2.

【0044】さらに、領域判定回路24は符号量制御回
路4に入力されるDCT変換係数103が画面の水平サ
イズの1/2より小さくかつ垂直サイズの1/2より大
きい位置にあると判定すると、そのデータを小領域Z3
に分類する。
Further, when the area decision circuit 24 decides that the DCT transform coefficient 103 inputted to the code amount control circuit 4 is at a position smaller than 1/2 of the horizontal size of the screen and larger than 1/2 of the vertical size, The data is a small area Z3
Classify into.

【0045】さらにまた、領域判定回路24は符号量制
御回路4に入力されるDCT変換係数103が画面の水
平サイズの1/2より大きくかつ垂直サイズの1/2よ
り大きい位置にあると判定すると、そのデータを小領域
Z4に分類する。
Furthermore, when the area determination circuit 24 determines that the DCT transform coefficient 103 input to the code amount control circuit 4 is at a position larger than 1/2 of the horizontal size of the screen and larger than 1/2 of the vertical size. , The data is classified into the small area Z4.

【0046】領域判定回路24は上記の判定結果を領域
識別信号105として小領域特性分析回路6に出力す
る。
The area determination circuit 24 outputs the above determination result to the small area characteristic analysis circuit 6 as an area identification signal 105.

【0047】図4は本発明の一実施例によるDCT変換
係数の各成分例を示す図である。図において、左上のサ
ンプルF(0,0)は直流成分を表し、水平方向に右に
いくほど、つまりサンプルF(1,0)よりもサンプル
F(7,0)の方が高域の水平空間周波数成分を表して
いる。
FIG. 4 is a diagram showing an example of each component of the DCT transform coefficient according to the embodiment of the present invention. In the figure, the upper left sample F (0,0) represents a DC component, and as it goes to the right in the horizontal direction, that is, the sample F (7,0) is higher in the horizontal range than the sample F (1,0). It represents the spatial frequency component.

【0048】また、垂直方向に下に行くほど、つまりサ
ンプルF(0,1),F(0,2)よりもサンプルF
(0,7)の方が高域の垂直空間周波数成分を表してい
る。したがって、サンプルF(7,7)は水平空間周波
数成分及び垂直空間周波数成分ともに高域を表してい
る。
Further, the lower the sample is in the vertical direction, that is, the sample F than the samples F (0,1) and F (0,2).
(0, 7) represents the vertical spatial frequency component in the high frequency range. Therefore, the sample F (7,7) represents a high frequency in both the horizontal spatial frequency component and the vertical spatial frequency component.

【0049】すなわち、細かい絵柄の画像をDCT変換
した場合には、高域成分まで大きな値を持つ。逆に、平
坦な絵柄の画像をDCT変換した場合には、低域成分の
みあるいは直流成分のみが大きな値を持ち、高域成分は
ほとんどゼロになる。
That is, when the image of a fine pattern is DCT-converted, it has a large value up to high frequency components. On the contrary, when the image of a flat pattern is DCT-transformed, only the low frequency component or the direct current component has a large value, and the high frequency component becomes almost zero.

【0050】縦線のように水平成分が多い画像では水平
空間周波数成分に集中し、横線のように垂直成分が多い
画像では垂直空間周波数成分に集中する。上記の如く、
DCT変換係数のブロック内の分布によって、元の画像
が細かい画像なのか、あるいは平坦な画像なのか等の特
性を推測することが可能である。
An image having many horizontal components such as vertical lines concentrates on horizontal spatial frequency components, and an image having many vertical components such as horizontal lines concentrates on vertical spatial frequency components. As mentioned above,
It is possible to infer characteristics such as whether the original image is a fine image or a flat image based on the distribution of the DCT transform coefficients within the block.

【0051】図5は図1の小領域特性分析回路6の構成
を示すブロック図である。図において、小領域特性分析
回路6はAC成分絶対値計算回路31と、分配回路32
と、Z1累積計算回路33と、Z2累積計算回路34
と、Z3累積計算回路35と、Z4累積計算回路36と
から構成され、DCT変換係数103の交流成分(AC
成分)の大きさのみを使って特性分析を行う。
FIG. 5 is a block diagram showing the configuration of the small area characteristic analysis circuit 6 of FIG. In the figure, a small area characteristic analysis circuit 6 includes an AC component absolute value calculation circuit 31 and a distribution circuit 32.
, Z1 cumulative calculation circuit 33, and Z2 cumulative calculation circuit 34
And a Z3 cumulative calculation circuit 35 and a Z4 cumulative calculation circuit 36, and the AC component (AC
Characteristic analysis is performed using only the size of (component).

【0052】AC成分絶対値計算回路31はDCT変換
係数103のうち直流成分を強制的にゼロに置換え、そ
れ以外の成分つまり交流成分をその絶対値で置換えるよ
うな処理を行う。すなわち、AC成分絶対値計算回路3
1はDCT変換係数103の交流成分を、正数はそのま
まの値とし、負数は符号を換えて正数化し、それらをA
C成分絶対値131として分配回路32に出力する。
The AC component absolute value calculation circuit 31 performs processing for forcibly replacing the DC component of the DCT transform coefficient 103 with zero and replacing the other component, that is, the AC component with its absolute value. That is, the AC component absolute value calculation circuit 3
1 is the AC component of the DCT transform coefficient 103, the positive number is the same value as it is, the negative number is changed to a positive number by changing the sign, and A
The C component absolute value 131 is output to the distribution circuit 32.

【0053】分配回路32はAC成分絶対値計算回路3
1からのAC成分絶対値131を小領域分割回路5から
の領域識別信号105にしたがって小領域毎にZ1累積
計算回路33とZ2累積計算回路34とZ3累積計算回
路35とZ4累積計算回路36とに夫々分配する。
The distribution circuit 32 is the AC component absolute value calculation circuit 3
The AC component absolute value 131 from 1 is calculated by the Z1 cumulative calculation circuit 33, the Z2 cumulative calculation circuit 34, the Z3 cumulative calculation circuit 35, and the Z4 cumulative calculation circuit 36 for each small area according to the area identification signal 105 from the small area division circuit 5. Distribute to each.

【0054】すなわち、分配回路32は領域識別信号1
05が小領域Z1を示すならば、AC成分絶対値計算回
路31から入力されるAC成分絶対値131が小領域Z
1に含まれるので、小領域Z1AC成分絶対値132と
してZ1累積計算回路33に出力する。
That is, the distribution circuit 32 uses the area identification signal 1
If 05 indicates the small area Z1, the AC component absolute value 131 input from the AC component absolute value calculation circuit 31 is the small area Z1.
Since it is included in 1, the small area Z1AC component absolute value 132 is output to the Z1 cumulative calculation circuit 33.

【0055】また、分配回路32は領域識別信号105
が小領域Z2を示すならば、AC成分絶対値計算回路3
1から入力されるAC成分絶対値131が小領域Z2に
含まれるので、小領域Z2AC成分絶対値133として
Z2累積計算回路34に出力する。
Further, the distribution circuit 32 uses the area identification signal 105.
Is a small area Z2, the AC component absolute value calculation circuit 3
Since the AC component absolute value 131 input from 1 is included in the small area Z2, it is output to the Z2 cumulative calculation circuit 34 as the small area Z2 AC component absolute value 133.

【0056】さらに、分配回路32は領域識別信号10
5が小領域Z3を示すならば、AC成分絶対値計算回路
31から入力されるAC成分絶対値131が小領域Z3
に含まれるので、小領域Z3AC成分絶対値134とし
てZ3累積計算回路35に出力する。
Further, the distribution circuit 32 uses the area identification signal 10
If 5 indicates the small area Z3, the AC component absolute value 131 input from the AC component absolute value calculation circuit 31 is the small area Z3.
Is output to the Z3 cumulative calculation circuit 35 as the small region Z3AC component absolute value 134.

【0057】さらにまた、分配回路32は領域識別信号
105が小領域Z4を示すならば、AC成分絶対値計算
回路31から入力されるAC成分絶対値131が小領域
Z4に含まれるので、小領域Z4AC成分絶対値135
としてZ4累積計算回路36に出力する。
Furthermore, if the area identification signal 105 indicates the small area Z4, the distribution circuit 32 includes the AC component absolute value 131 input from the AC component absolute value calculation circuit 31 in the small area Z4. Z4AC component absolute value 135
Is output to the Z4 cumulative calculation circuit 36.

【0058】Z1累積計算回路33は分配回路32で分
配された小領域Z1AC成分絶対値132を基に、小領
域Z1内のAC成分絶対値の総和を計算し、その計算結
果をZ1累積値106aとして小領域符号量設定回路7
に出力する。
The Z1 cumulative calculation circuit 33 calculates the sum of the AC component absolute values in the small area Z1 based on the small area Z1 AC component absolute value 132 distributed by the distribution circuit 32, and the calculation result is the Z1 cumulative value 106a. Small area code amount setting circuit 7
Output to

【0059】Z2累積計算回路34は分配回路32で分
配された小領域Z2AC成分絶対値133を基に、小領
域Z2内のAC成分絶対値の総和を計算し、その計算結
果をZ2累積値106bとして小領域符号量設定回路7
に出力する。
The Z2 cumulative calculation circuit 34 calculates the total sum of the AC component absolute values in the small area Z2 based on the small area Z2 AC component absolute value 133 distributed by the distribution circuit 32, and the calculation result is the Z2 cumulative value 106b. Small area code amount setting circuit 7
Output to

【0060】Z3累積計算回路35は分配回路32で分
配された小領域Z3AC成分絶対値134を基に、小領
域Z3内のAC成分絶対値の総和を計算し、その計算結
果をZ3累積値106cとして小領域符号量設定回路7
に出力する。
The Z3 cumulative calculation circuit 35 calculates the total sum of the AC component absolute values in the small area Z3 based on the small area Z3 AC component absolute value 134 distributed by the distribution circuit 32, and the calculation result is the Z3 cumulative value 106c. Small area code amount setting circuit 7
Output to

【0061】Z4累積計算回路36は分配回路32で分
配された小領域Z4AC成分絶対値135を基に、小領
域Z4内のAC成分絶対値の総和を計算し、その計算結
果をZ4累積値106dとして小領域符号量設定回路7
に出力する。
The Z4 cumulative calculation circuit 36 calculates the total sum of the absolute values of the AC components in the small area Z4 based on the small area Z4 AC component absolute value 135 distributed by the distribution circuit 32, and the calculated result is the Z4 cumulative value 106d. Small area code amount setting circuit 7
Output to

【0062】これらの累積値は上述したように、DCT
変換係数の領域内のAC成分の大きさを示している。つ
まり、領域内に細かい絵柄が多い場合には累積値が大き
くなり、平坦な絵柄が多い場合には累積値が小さくな
る。
As described above, the cumulative value of these is the DCT.
The magnitude of the AC component in the area of the conversion coefficient is shown. That is, when there are many fine patterns in the area, the cumulative value becomes large, and when there are many flat patterns, the cumulative value becomes small.

【0063】例えば、図2に示すような絵柄が入力され
た場合には、細かい絵柄が多い小領域Z3の累積値が最
も大きくなり、細かい絵柄が僅かしかない小領域Z4の
累積値が最も小さくなる。尚、Z1累積値106aとZ
2累積値106bとZ3累積値106cとZ4累積値1
06dとは特性分析結果106として小領域符号量設定
回路7にパラレルに出力される。
For example, when a picture as shown in FIG. 2 is input, the cumulative value of the small area Z3 having many fine pictures is the largest, and the cumulative value of the small area Z4 having few fine pictures is the smallest. Become. In addition, Z1 cumulative value 106a and Z1
2 cumulative value 106b, Z3 cumulative value 106c, Z4 cumulative value 1
06d is output in parallel to the small area code amount setting circuit 7 as the characteristic analysis result 106.

【0064】図6は図1の小領域符号量設定回路7の構
成を示すブロック図である。図において、小領域符号量
設定回路7は加算回路41と、除算回路42〜45と、
乗算回路46〜49とから構成されている。
FIG. 6 is a block diagram showing the configuration of the small area code amount setting circuit 7 of FIG. In the figure, the small area code amount setting circuit 7 includes an adding circuit 41, dividing circuits 42 to 45,
It is composed of multiplication circuits 46 to 49.

【0065】小領域符号量設定回路7は小領域特性分析
回路6から入力される特性分析結果106、つまりZ1
累積値106aとZ2累積値106bとZ3累積値10
6cとZ4累積値106dとにしたがって画面内目標符
号量107を各小領域に分配して割当てる処理を行う。
The small area code amount setting circuit 7 receives the characteristic analysis result 106 input from the small area characteristic analyzing circuit 6, that is, Z1.
Cumulative value 106a, Z2 cumulative value 106b, and Z3 cumulative value 10
6c and the Z4 cumulative value 106d, the in-screen target code amount 107 is distributed and assigned to each small area.

【0066】上述したように、AC成分の累積値が大き
いということは絵柄が細かいということであり、多くの
符号量を割当てて画質劣化を抑える必要がある。また逆
に、AC成分の累積値が小さいということは絵柄が細か
くなく、平坦であるので、符号量の割当てを少なめにし
ても画質劣化は少なくて済む。
As described above, the fact that the cumulative value of the AC component is large means that the pattern is fine, and it is necessary to allocate a large amount of codes to suppress the image quality deterioration. On the contrary, since the cumulative value of the AC component is small, the pattern is not fine and is flat. Therefore, even if the allocation of the code amount is reduced, the deterioration of the image quality is small.

【0067】したがって、小領域符号量設定回路7は各
小領域の累積値を用いて、累積値が大きい領域には多く
の符号量を割当て、累積値が小さい領域には少ない符号
量を割当てるとともに、各小領域の符号量の和が画面全
体の目標符号量と等しくなるようにしている。
Therefore, the small area code amount setting circuit 7 uses the accumulated value of each small area to allocate a large amount of code to an area having a large accumulated value and a small amount of code to an area having a small accumulated value. , The sum of the code amounts of the small areas is made equal to the target code amount of the entire screen.

【0068】すなわち、小領域符号量設定回路7におい
て、加算回路41はZ1累積値106aとZ2累積値1
06bとZ3累積値106cとZ4累積値106dとの
和を求め、画面全体の累積値を計算し、その計算結果で
ある画面全体累積値141を除算回路42〜45各々に
出力する。
That is, in the small area code amount setting circuit 7, the addition circuit 41 determines that the Z1 cumulative value 106a and the Z2 cumulative value 1
The sum of 06b, the Z3 cumulative value 106c, and the Z4 cumulative value 106d is calculated, the cumulative value of the entire screen is calculated, and the calculated cumulative value 141 of the entire screen is output to each of the division circuits 42 to 45.

【0069】除算回路42はZ1累積値106aを画面
全体累積値141で除算し、画面全体に対する小領域Z
1の累積の割合を計算し、その計算結果である小領域Z
1の割合142を乗算回路46に出力する。
The division circuit 42 divides the Z1 cumulative value 106a by the entire screen cumulative value 141 to obtain a small area Z for the entire screen.
The cumulative ratio of 1 is calculated, and the calculation result is the small area Z.
The ratio of 1 142 is output to the multiplication circuit 46.

【0070】除算回路43はZ2累積値106bを画面
全体累積値141で除算し、画面全体に対する小領域Z
2の累積の割合を計算し、その計算結果である小領域Z
2の割合143を乗算回路47に出力する。
The division circuit 43 divides the Z2 cumulative value 106b by the entire screen cumulative value 141 to obtain a small area Z for the entire screen.
The cumulative ratio of 2 is calculated, and the calculation result is the small area Z
The ratio 143 of 2 is output to the multiplication circuit 47.

【0071】除算回路44はZ3累積値106cを画面
全体累積値141で除算し、画面全体に対する小領域Z
3の累積の割合を計算し、その計算結果である小領域Z
3の割合144を乗算回路48に出力する。
The division circuit 44 divides the Z3 cumulative value 106c by the entire screen cumulative value 141 to obtain a small area Z for the entire screen.
The cumulative ratio of 3 is calculated, and the calculation result is the small area Z.
The ratio 144 of 3 is output to the multiplication circuit 48.

【0072】除算回路45はZ4累積値106dを画面
全体累積値141で除算し、画面全体に対する小領域Z
4の累積の割合を計算し、その計算結果である小領域Z
4の割合145を乗算回路49に出力する。
The division circuit 45 divides the Z4 cumulative value 106d by the entire screen cumulative value 141 to obtain a small area Z for the entire screen.
4 is calculated, and the calculation result is the small area Z.
The ratio 145 of 4 is output to the multiplication circuit 49.

【0073】この場合、累積値が大きければ割合も大き
くなり、累積値が小さければ割合も小さくなる。例え
ば、図2の各小領域Z1〜Z4各々の累積値が200
0、2000、5000、1000という値であったと
すると、各小領域Z1〜Z4各々の割合は0.2、0.
2、0.5、0.1という値になる。
In this case, the larger the cumulative value, the larger the ratio, and the smaller the cumulative value, the smaller the ratio. For example, the cumulative value of each of the small areas Z1 to Z4 in FIG.
If the values are 0, 2000, 5000, and 1000, the ratio of each of the small regions Z1 to Z4 is 0.2, 0.
The values are 2, 0.5 and 0.1.

【0074】乗算回路46は除算回路42からの小領域
Z1の割合142と画面内目標符号量107とを乗算
し、その乗算結果を小領域Z1に対する小領域Z1割当
て符号量108aとして量子化パラメータ計算回路9に
出力する。
The multiplication circuit 46 multiplies the ratio 142 of the small area Z1 from the division circuit 42 by the in-screen target code amount 107, and calculates the quantization parameter as the small area Z1 assigned code amount 108a for the small area Z1. Output to the circuit 9.

【0075】乗算回路47は除算回路43からの小領域
Z2の割合143と画面内目標符号量107とを乗算
し、その乗算結果を小領域Z2に対する小領域Z2割当
て符号量108bとして量子化パラメータ計算回路9に
出力する。
The multiplication circuit 47 multiplies the ratio 143 of the small area Z2 from the division circuit 43 by the in-screen target code amount 107 and calculates the quantization parameter as the small area Z2 assigned code amount 108b for the small area Z2. Output to the circuit 9.

【0076】乗算回路48は除算回路44からの小領域
Z3の割合144と画面内目標符号量107とを乗算
し、その乗算結果を小領域Z3に対する小領域Z3割当
て符号量108cとして量子化パラメータ計算回路9に
出力する。
The multiplication circuit 48 multiplies the ratio 144 of the small area Z3 from the division circuit 44 by the in-screen target code amount 107 and calculates the quantization parameter as the small area Z3 assigned code amount 108c for the small area Z3. Output to the circuit 9.

【0077】乗算回路49は除算回路45からの小領域
Z4の割合145と画面内目標符号量107とを乗算
し、その乗算結果を小領域Z4に対する小領域Z4割当
て符号量108dとして量子化パラメータ計算回路9に
出力する。
The multiplication circuit 49 multiplies the ratio 145 of the small area Z4 from the division circuit 45 by the in-screen target code amount 107 and calculates the quantization parameter as the small area Z4 assigned code amount 108d for the small area Z4. Output to the circuit 9.

【0078】例えば、画面内目標符号量107が1メガ
ビットであるとすると、乗算回路46からは小領域Z1
割当て符号量108aとして200キロビットが、乗算
回路47からは小領域Z2割当て符号量108bとして
200キロビットが、乗算回路48からは小領域Z3割
当て符号量108cとして500キロビットが、乗算回
路49からは小領域Z4割当て符号量108dとして1
00キロビットが夫々出力される。
For example, if the intra-screen target code amount 107 is 1 megabit, the multiplication circuit 46 determines that the small area Z1
The allocation code amount 108a is 200 kilobits, the multiplication circuit 47 outputs a small area Z2 allocation code amount 108b of 200 kilobits, the multiplication circuit 48 outputs a small area Z3 allocation code amount 108c of 500 kilobits, and the multiplication circuit 49 outputs a small area. 1 as the Z4 assigned code amount 108d
00 kilobits are output respectively.

【0079】尚、小領域Z1割当て符号量108aと小
領域Z2割当て符号量108bと小領域Z3割当て符号
量108cと小領域Z4割当て符号量108dとは割当
て符号量108として量子化パラメータ計算回路9にパ
ラレルに出力される。
The small area Z1 assigned code amount 108a, the small area Z2 assigned code amount 108b, the small area Z3 assigned code amount 108c, and the small area Z4 assigned code amount 108d are assigned to the quantization parameter calculation circuit 9 as the assigned code amount 108. It is output in parallel.

【0080】図7は図1の量子化パラメータ計算回路9
の構成を示すブロック図である。図において、量子化パ
ラメータ計算回路9はZ1領域量子化パラメータ計算回
路51と、Z2領域量子化パラメータ計算回路52と、
Z3領域量子化パラメータ計算回路53と、Z4領域量
子化パラメータ計算回路54と、選択回路55とから構
成されている。
FIG. 7 shows the quantization parameter calculation circuit 9 of FIG.
FIG. 3 is a block diagram showing the configuration of FIG. In the figure, a quantization parameter calculation circuit 9 includes a Z1 region quantization parameter calculation circuit 51, a Z2 region quantization parameter calculation circuit 52,
It is composed of a Z3 region quantization parameter calculation circuit 53, a Z4 region quantization parameter calculation circuit 54, and a selection circuit 55.

【0081】Z1領域量子化パラメータ計算回路51は
DCT変換係数103と小領域符号量設定回路7からの
小領域Z1割当て符号量108aとを基に小領域Z1の
量子化パラメータ151を計算して選択回路55に出力
する。
The Z1 area quantization parameter calculation circuit 51 calculates and selects the quantization parameter 151 of the small area Z1 based on the DCT transform coefficient 103 and the small area Z1 assigned code quantity 108a from the small area code quantity setting circuit 7. Output to the circuit 55.

【0082】Z2領域量子化パラメータ計算回路52は
DCT変換係数103と小領域符号量設定回路7からの
小領域Z2割当て符号量108bとを基に小領域Z2の
量子化パラメータ152を計算して選択回路55に出力
する。
The Z2 region quantization parameter calculation circuit 52 calculates and selects the quantization parameter 152 of the small region Z2 based on the DCT transform coefficient 103 and the small region Z2 assigned code amount 108b from the small region code amount setting circuit 7. Output to the circuit 55.

【0083】Z3領域量子化パラメータ計算回路53は
DCT変換係数103と小領域符号量設定回路7からの
小領域Z3割当て符号量108cとを基に小領域Z3の
量子化パラメータ153を計算して選択回路55に出力
する。
The Z3 area quantization parameter calculation circuit 53 calculates and selects the quantization parameter 153 of the small area Z3 based on the DCT transform coefficient 103 and the small area Z3 assigned code quantity 108c from the small area code quantity setting circuit 7. Output to the circuit 55.

【0084】Z4領域量子化パラメータ計算回路54は
DCT変換係数103と小領域符号量設定回路7からの
小領域Z4割当て符号量108dとを基に小領域Z4の
量子化パラメータ154を計算して選択回路55に出力
する。
The Z4 region quantization parameter calculation circuit 54 calculates and selects the quantization parameter 154 of the small region Z4 based on the DCT transform coefficient 103 and the small region Z4 assigned code amount 108d from the small region code amount setting circuit 7. Output to the circuit 55.

【0085】尚、上記の量子化パラメータ計算回路9の
Z1領域量子化パラメータ計算回路51とZ2領域量子
化パラメータ計算回路52とZ3領域量子化パラメータ
計算回路53とZ4領域量子化パラメータ計算回路54
とは夫々、図9に示す従来例と同様に、除算回路及び乗
算回路からなる量子化回路と、発生符号量画面内累積回
路と、パラメータ調整回路とから構成され、従来例と同
様にして量子化パラメータを計算しているので、ここで
はその説明を省略する。
The Z1 region quantization parameter calculation circuit 51, the Z2 region quantization parameter calculation circuit 52, the Z3 region quantization parameter calculation circuit 53, and the Z4 region quantization parameter calculation circuit 54 of the quantization parameter calculation circuit 9 described above.
As in the conventional example shown in FIG. 9, each is composed of a quantizing circuit including a division circuit and a multiplying circuit, a generated code amount in-screen accumulating circuit, and a parameter adjusting circuit. Since the conversion parameter is calculated, its description is omitted here.

【0086】選択回路55は遅延回路8で遅延された領
域識別信号109にしたがって該当する小領域の量子化
パラメータを選択し、量子化パラメータ110として量
子化回路11及び符号化回路12に出力する。
The selection circuit 55 selects the quantization parameter of the corresponding small area according to the area identification signal 109 delayed by the delay circuit 8 and outputs it as the quantization parameter 110 to the quantization circuit 11 and the encoding circuit 12.

【0087】すなわち、選択回路55は領域識別信号1
09が小領域Z1を示すならば、Z1領域量子化パラメ
ータ計算回路51から入力される小領域Z1の量子化パ
ラメータ151を、量子化パラメータ110として量子
化回路11及び符号化回路12に出力する。
That is, the selection circuit 55 outputs the area identification signal 1
If 09 indicates the small area Z1, the quantization parameter 151 of the small area Z1 input from the Z1 area quantization parameter calculation circuit 51 is output to the quantization circuit 11 and the encoding circuit 12 as the quantization parameter 110.

【0088】また、選択回路55は領域識別信号109
が小領域Z2を示すならば、Z2領域量子化パラメータ
計算回路52から入力される小領域Z2の量子化パラメ
ータ152を、量子化パラメータ110として量子化回
路11及び符号化回路12に出力する。
Further, the selection circuit 55 uses the area identification signal 109.
Indicates a small area Z2, the quantization parameter 152 of the small area Z2 input from the Z2 area quantization parameter calculation circuit 52 is output to the quantization circuit 11 and the encoding circuit 12 as the quantization parameter 110.

【0089】さらに、選択回路55は領域識別信号10
9が小領域Z3を示すならば、Z3領域量子化パラメー
タ計算回路53から入力される小領域Z3の量子化パラ
メータ153を、量子化パラメータ110として量子化
回路11及び符号化回路12に出力する。
Further, the selection circuit 55 uses the area identification signal 10
If 9 indicates the small area Z3, the quantization parameter 153 of the small area Z3 input from the Z3 area quantization parameter calculation circuit 53 is output to the quantization circuit 11 and the encoding circuit 12 as the quantization parameter 110.

【0090】さらにまた、選択回路55は領域識別信号
109が小領域Z4を示すならば、Z4領域量子化パラ
メータ計算回路54から入力される小領域Z4の量子化
パラメータ154を、量子化パラメータ110として量
子化回路11及び符号化回路12に出力する。
Furthermore, if the area identification signal 109 indicates the small area Z4, the selection circuit 55 uses the quantization parameter 154 of the small area Z4 input from the Z4 area quantization parameter calculation circuit 54 as the quantization parameter 110. Output to the quantization circuit 11 and the encoding circuit 12.

【0091】したがって、量子化回路11は量子化パラ
メータ計算回路9から順次入力される小領域Z1の量子
化パラメータ151と小領域Z2の量子化パラメータ1
52と小領域Z3の量子化パラメータ153と小領域Z
4の量子化パラメータ154とにしたがって遅延回路1
0で遅延された各小領域Z1〜Z4のDCT変換係数1
11を量子化し、各小領域Z1〜Z4の量子化データ1
12を符号化回路12に出力する。
Therefore, the quantizing circuit 11 inputs the quantizing parameter 151 of the small area Z1 and the quantizing parameter 1 of the small area Z2, which are sequentially input from the quantizing parameter calculating circuit 9.
52 and the quantization parameter 153 of the small area Z3 and the small area Z
Delay circuit 1 according to the quantization parameter 154 of 4
DCT transform coefficient 1 of each of the small areas Z1 to Z4 delayed by 0
11 is quantized, and the quantized data 1 of each of the small areas Z1 to Z4
12 is output to the encoding circuit 12.

【0092】符号化回路12は量子化回路11からの各
小領域Z1〜Z4の量子化データ112に対して符号化
処理を行い、その符号化処理の結果と復号時に必要とな
る各小領域Z1〜Z4の量子化パラメータ110(小領
域Z1の量子化パラメータ151、小領域Z2の量子化
パラメータ152、小領域Z3の量子化パラメータ15
3、小領域Z4の量子化パラメータ154)とを統合化
して圧縮ビデオデータ113として出力する。
The encoding circuit 12 performs an encoding process on the quantized data 112 of each of the small regions Z1 to Z4 from the quantizing circuit 11, and the result of the encoding process and each small region Z1 required at the time of decoding. -Z4 quantization parameter 110 (quantization parameter 151 of small area Z1, quantization parameter 152 of small area Z2, quantization parameter 15 of small area Z3)
3 and the quantization parameter 154) of the small area Z4 are integrated and output as the compressed video data 113.

【0093】尚、遅延回路3は同期検出・分離回路1か
らの同期信号102をDCT変換回路2での処理時間分
遅延し、遅延回路8は小領域分割回路5からの領域識別
信号105を小領域特性分析回路6及び小領域符号量設
定回路7での処理時間分遅延し、遅延回路10はDCT
変換回路2からのDCT変換係数103を符号量制御回
路4での処理時間分遅延する。
The delay circuit 3 delays the synchronization signal 102 from the synchronization detection / separation circuit 1 by the processing time in the DCT conversion circuit 2, and the delay circuit 8 delays the area identification signal 105 from the small area division circuit 5 into a small amount. The delay time is delayed by the processing time in the area characteristic analysis circuit 6 and the small area code amount setting circuit 7, and the delay circuit 10
The DCT transform coefficient 103 from the transform circuit 2 is delayed by the processing time in the code amount control circuit 4.

【0094】また、図示していないが、DCT変換回路
2から小領域特性分析回路6に入力されるDCT変換係
数103も小領域分割回路5での処理時間分遅延され、
DCT変換回路2から量子化パラメータ計算回路9に入
力されるDCT変換係数103も小領域分割回路5と小
領域特性分析回路6と小領域符号量設定回路7とにおけ
る処理時間分遅延されている。
Although not shown, the DCT transform coefficient 103 input from the DCT transform circuit 2 to the small area characteristic analysis circuit 6 is also delayed by the processing time in the small area dividing circuit 5,
The DCT transform coefficient 103 input from the DCT transform circuit 2 to the quantization parameter calculation circuit 9 is also delayed by the processing time in the small area division circuit 5, the small area characteristic analysis circuit 6 and the small area code amount setting circuit 7.

【0095】上述した実施例では直交変換方式としてD
CTを用いた場合について説明したが、フーリエ変換や
アダマール変換のような他の直交変換方式を用いてもよ
い。また、ブロックサイズとして8×8として説明した
が、他の大きさでも、すなわちもっと大きなブロックや
もっと小さなブロックでもよい。
In the above-described embodiment, the orthogonal transformation method D
Although the case of using CT has been described, other orthogonal transform methods such as Fourier transform and Hadamard transform may be used. Also, although the block size is explained as 8 × 8, it may be another size, that is, a larger block or a smaller block.

【0096】さらに、動画像信号としてTV(テレビ)
信号を用いる場合には、画面単位としてフィールド画面
及びフレーム画面のどちらでも適用可能である。さらに
また、小領域分割においては面積が同じ4つの小領域Z
1〜Z4に分割する処理について述べたが、面積が異な
る場合や4つ以上の細かい領域、あるいは正方形ではな
く、長方形やそれ以外の形に分割する場合にも適用する
ことができる。その場合、分割の境界としてはDCT変
換を行うブロックの境界で行うとより効果的である。
Furthermore, a TV (TV) is used as a moving image signal.
When a signal is used, either a field screen or a frame screen can be applied as a screen unit. Furthermore, in the small area division, four small areas Z having the same area are used.
Although the process of dividing into 1 to Z4 has been described, the present invention can be applied to the case where the areas are different, the area is divided into four or more fine regions, or a rectangle or another shape instead of a square. In that case, it is more effective if the boundary of the division is performed at the boundary of the block on which the DCT transform is performed.

【0097】小領域の特性分析手段としてはAC成分の
絶対値の累積値を使用した場合について説明したが、2
乗和や絶対値平均、または水平空間周波数成分及び垂直
空間周波数成分の偏り分布を利用した場合にも適用する
ことができる。
The case where the cumulative value of the absolute value of the AC component is used as the characteristic analysis means of the small area has been described.
The present invention can also be applied to the case where the sum of sums, the average of absolute values, or the bias distribution of horizontal spatial frequency components and vertical spatial frequency components is used.

【0098】小領域の符号量設定では小領域の特性の全
体に対する割合を計算して割当て符号量を計算する方法
について説明したが、例えばテーブルルックアップ等に
よって特性分析結果から一意に割当て符号量を決定する
方法等を適用することもできる。
In the code amount setting of the small area, the method of calculating the allocation code amount by calculating the ratio of the characteristics of the small region to the whole has been described. For example, the allocation code amount is uniquely determined from the characteristic analysis result by table lookup or the like. It is also possible to apply a determination method or the like.

【0099】量子化パラメータとしては除算演算の除数
のように量子化のステップ幅を規定するようなものを使
用する場合について説明したが、ステップサイズが異な
る複数の量子化特性を予め用意しておき、その量子化特
性の選択制御に用いられるようなパラメータでも適用可
能である。
As the quantization parameter, the case of using the one that defines the quantization step width like the divisor of the division operation has been described, but a plurality of quantization characteristics having different step sizes are prepared in advance. , A parameter used to control the selection of the quantization characteristic is also applicable.

【0100】このように、画像信号を直交変換して得た
直交変換係数に対して量子化及び符号化を行って圧縮デ
ータを出力する圧縮符号化装置において、1画面が予め
分割された複数の小領域各々の特性を小領域特性分析回
路6で各小領域毎の直交変換係数の分析により算出し、
算出された複数の小領域各々の特性を基に小領域符号量
設定回路7で各小領域毎に符号量を割当て、割当てられ
た符号量を基に量子化パラメータ計算回路9で各小領域
毎の量子化パラメータを計算し、その各小領域毎の量子
化パラメータを用いて量子化回路11で直交変換係数に
対する量子化を行うことによって、分割した小領域毎に
絵柄に応じた最適な量子化パラメータを設定することが
できる。よって、効率のよい符号割当てを行うことがで
き、圧縮符号化による画質劣化を少なくすることができ
る。
As described above, in the compression coding apparatus which quantizes and codes the orthogonal transform coefficient obtained by orthogonally transforming the image signal and outputs the compressed data, one screen is divided into a plurality of divided areas. The characteristics of each small area are calculated by the small area characteristic analysis circuit 6 by analyzing the orthogonal transformation coefficient for each small area,
A small area code amount setting circuit 7 allocates a code amount for each small area based on the calculated characteristics of each small area, and a quantization parameter calculation circuit 9 allocates each small area for each small area based on the allocated code amount. The quantization parameter of each of the small areas is calculated, and the quantization circuit 11 uses the quantization parameter of each small area to quantize the orthogonal transform coefficient. Parameters can be set. Therefore, efficient code allocation can be performed, and deterioration in image quality due to compression coding can be reduced.

【0101】また、各小領域の符号量の和は予め定めた
画面内目標符号量107と等しくなるので、画面内の符
号量を一定値以下に抑えることができる。したがって、
VTRやビデオディスクレコーダのような記録機器に用
いる場合でも、画質劣化が少なくかつフレーム編集等の
編集機能を損なうことのない、実用上極めて有用な圧縮
符号化装置を実現することができる。
Further, since the sum of the code amounts of the respective small areas becomes equal to the predetermined in-screen target code amount 107, the in-screen code amount can be suppressed to a certain value or less. Therefore,
Even when used in a recording device such as a VTR or a video disc recorder, it is possible to realize a practically useful compression encoding device with little deterioration in image quality and without impairing editing functions such as frame editing.

【0102】[0102]

【発明の効果】以上説明したように本発明によれば、画
像信号を直交変換して得た直交変換係数に対して量子化
及び符号化を行って圧縮データを出力する圧縮符号化装
置において、1画面が予め分割された複数の小領域各々
の特性を各小領域毎の直交変換係数の分析により算出
し、複数の小領域各々の特性を基に割当てた各小領域毎
の符号量を基に各小領域毎の量子化パラメータを計算し
て直交変換係数に対する量子化を行うことによって、絵
柄に応じた量子化を行うことができ、画質劣化を少なく
しかつ符号化効率をよくすることができるという効果が
ある。
As described above, according to the present invention, in the compression coding apparatus for outputting the compressed data by performing the quantization and the coding on the orthogonal transformation coefficient obtained by orthogonally transforming the image signal, The characteristics of each of the plurality of small areas into which one screen is divided in advance are calculated by analyzing the orthogonal transform coefficient of each of the small areas, and the code amount of each of the small areas is assigned based on the characteristics of each of the plurality of small areas. By calculating the quantization parameter for each small area and performing the quantization on the orthogonal transform coefficient, it is possible to perform the quantization depending on the pattern, reduce the image quality deterioration and improve the coding efficiency. The effect is that you can do it.

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

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】本発明の一実施例による画面の領域分割例を示
す図である。
FIG. 2 is a diagram showing an example of area division of a screen according to an embodiment of the present invention.

【図3】図1の小領域分割回路の構成を示すブロック図
である。
3 is a block diagram showing a configuration of a small area division circuit of FIG.

【図4】本発明の一実施例によるDCT変換係数の各成
分例を示す図である。
FIG. 4 is a diagram showing an example of each component of a DCT transform coefficient according to an embodiment of the present invention.

【図5】図1の小領域特性分析回路の構成を示すブロッ
ク図である。
5 is a block diagram showing a configuration of a small area characteristic analysis circuit of FIG. 1. FIG.

【図6】図1の小領域符号量設定回路の構成を示すブロ
ック図である。
6 is a block diagram showing a configuration of a small area code amount setting circuit of FIG. 1. FIG.

【図7】図1の量子化パラメータ計算回路の構成を示す
ブロック図である。
FIG. 7 is a block diagram showing a configuration of a quantization parameter calculation circuit of FIG.

【図8】従来の圧縮符号化装置の構成を示すブロック図
である。
FIG. 8 is a block diagram showing a configuration of a conventional compression encoding device.

【図9】図8の量子化パラメータ計算回路の構成を示す
ブロック図である。
9 is a block diagram showing a configuration of a quantization parameter calculation circuit of FIG.

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

1 同期検出・分離回路 2 DCT変換回路 3,8,10 遅延回路 4 符号量制御回路 5 小領域分割回路 6 小領域特性分析回路 7 小領域符号量設定回路 9 量子化パラメータ計算回路 11 量子化回路 12 符号化回路 1 synchronization detection / separation circuit 2 DCT conversion circuit 3, 8, 10 delay circuit 4 code amount control circuit 5 small area division circuit 6 small area characteristic analysis circuit 7 small area code amount setting circuit 9 quantization parameter calculation circuit 11 quantization circuit 12 Encoding circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 画像信号を直交変換して得た直交変換係
数に対して量子化及び符号化を行って圧縮データを出力
する圧縮符号化装置の画像信号符号量制御回路であっ
て、1画面が予め分割された複数の小領域各々の特性を
各小領域毎の前記直交変換係数の分析により算出する特
性分析手段と、前記特性分析手段で算出された前記複数
の小領域各々の特性を基に各小領域毎に符号量を割当て
る符号量設定手段と、前記符号量設定手段で割当てられ
た前記符号量を基に各小領域毎の量子化パラメータを計
算する計算手段と、前記計算手段で計算された前記各小
領域毎の量子化パラメータを用いて前記直交変換係数に
対する量子化を行う量子化手段とを有することを特徴と
する画像信号符号量制御回路。
1. An image signal code amount control circuit of a compression encoding device for quantizing and encoding an orthogonal transform coefficient obtained by orthogonally transforming an image signal and outputting compressed data, comprising one screen. Based on the characteristics of each of the plurality of small areas calculated by the characteristic analyzing means, and the characteristics of each of the plurality of small areas previously divided by the analysis of the orthogonal transformation coefficient for each of the small areas. A code amount setting means for allocating a code amount for each small area, a calculating means for calculating a quantization parameter for each small area based on the code amount allocated by the code amount setting means, and the calculating means. And a quantizing means for quantizing the orthogonal transform coefficient using the calculated quantizing parameter for each small area.
【請求項2】 前記画像信号に付加された同期信号に基
づいて前記直交変換係数が前記複数の小領域のいずれに
属するかを指定することで前記1画面を複数の小領域各
々に分割する分割手段を含むことを特徴とする請求項1
記載の画像信号符号量制御回路。
2. A division for dividing one screen into a plurality of small areas by designating which of the plurality of small areas the orthogonal transform coefficient belongs to based on a synchronization signal added to the image signal. 4. A means including means.
The image signal code amount control circuit described.
【請求項3】 前記特性分析手段は、前記直交変換係数
の分析により前記画像信号における絵柄の緻密度を前記
複数の小領域各々の特性として算出するよう構成したこ
とを特徴とする請求項1または請求項2記載の画像信号
符号量制御回路。
3. The characteristic analyzing means is configured to calculate the density of a pattern in the image signal as a characteristic of each of the plurality of small areas by analyzing the orthogonal transformation coefficient. The image signal code amount control circuit according to claim 2.
JP27607195A 1995-10-25 1995-10-25 Image signal code amount control circuit Pending JPH09121351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27607195A JPH09121351A (en) 1995-10-25 1995-10-25 Image signal code amount control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27607195A JPH09121351A (en) 1995-10-25 1995-10-25 Image signal code amount control circuit

Publications (1)

Publication Number Publication Date
JPH09121351A true JPH09121351A (en) 1997-05-06

Family

ID=17564403

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27607195A Pending JPH09121351A (en) 1995-10-25 1995-10-25 Image signal code amount control circuit

Country Status (1)

Country Link
JP (1) JPH09121351A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009268064A (en) * 2008-04-28 2009-11-12 Mitsubishi Electric Research Laboratories Inc Method for compressing sar data and apparatus for encoding sar data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04208775A (en) * 1990-12-01 1992-07-30 Toshiba Corp Bit distribution encoding system
JPH06350985A (en) * 1993-06-10 1994-12-22 Nec Corp Method and device for encoding picture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04208775A (en) * 1990-12-01 1992-07-30 Toshiba Corp Bit distribution encoding system
JPH06350985A (en) * 1993-06-10 1994-12-22 Nec Corp Method and device for encoding picture

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009268064A (en) * 2008-04-28 2009-11-12 Mitsubishi Electric Research Laboratories Inc Method for compressing sar data and apparatus for encoding sar data

Similar Documents

Publication Publication Date Title
EP0959627B1 (en) A motion video compression system with adaptive bit allocation and quantization
KR0184905B1 (en) Code amount control device and encoding apparatus using the same
KR0150955B1 (en) Compressive and extensive method of an image for bit-fixing and the apparatus thereof
US6278735B1 (en) Real-time single pass variable bit rate control strategy and encoder
US6912255B2 (en) Bit rate control through selective modification of DCT coefficients
US5323187A (en) Image compression system by setting fixed bit rates
JP3109854B2 (en) Image coding method and apparatus
JPH05219492A (en) Method and device for coding image
JPH0595536A (en) High efficiency coded signal processor
US6987808B2 (en) Transcoding method and transcoding apparatus
JP2003018599A (en) Method and apparatus for encoding image
US20050286628A1 (en) Human visual system (HVS) filter in a discrete cosine transformator (DCT)
JPH09154145A (en) Video data compression method
JP3024673B2 (en) Data compression method
JPH10336654A (en) Image encoder
US20050010626A1 (en) Selectable quantization in an encoder
JPH0970041A (en) Variable bit rate coder
JPH09121351A (en) Image signal code amount control circuit
JP2908459B2 (en) Image coding method
JP3560958B2 (en) Video coding control method and apparatus
JPH03283989A (en) Color picture coding system
JP3232160B2 (en) Encoding device and method
JP2891751B2 (en) Image signal compression encoding method and apparatus
KR100234311B1 (en) Video data encoding method and circuit thereof
JP4404232B2 (en) Quantization method, quantization apparatus, quantization step determination method, and quantization step determination apparatus