JPH07212598A - Device for encoding picture compression - Google Patents

Device for encoding picture compression

Info

Publication number
JPH07212598A
JPH07212598A JP6001582A JP158294A JPH07212598A JP H07212598 A JPH07212598 A JP H07212598A JP 6001582 A JP6001582 A JP 6001582A JP 158294 A JP158294 A JP 158294A JP H07212598 A JPH07212598 A JP H07212598A
Authority
JP
Japan
Prior art keywords
circuit
code quantity
code amount
signal
supplied
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
JP6001582A
Other languages
Japanese (ja)
Inventor
Noriaki Emura
典明 江村
Masaki Nakagawa
正樹 中河
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP6001582A priority Critical patent/JPH07212598A/en
Publication of JPH07212598A publication Critical patent/JPH07212598A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To enable controlling code quantity in accordance with the difference of quality in respective signal components constituting a picture signal by respectively generating scale factors which are prepared at every signal component based on calculated distribution code quantity so as to be multiplied by a quantization table. CONSTITUTION:A DCT coefficient quantized by a quantization circuit 34 is supplied to a Huffman encoding circuit 92, executed a variable encoding processing at a block unit and, then, supplied to Y code quantity calculating circuits 43-46 which are set in accordance with respective kinds of group picture data G1-G4 at the time of processing a luminance signal so as to be integrated at every group. They are supplied to C code quantity calculating circuits 47-50 which are arranged in accordance with the respective kinds of group picture data G1-G4 at the time of processing color difference signal so as to be integrated at every group. Integrated values respectively outputted from the circuits 43-46 and 47-50 are supplied to a Y/C distribution code quantity caluculating circuit 51. The circuit 51 calculates Y distribution code quantity NYt and C distribution code quantity NCt based on code quantity set in a code quantity setting circuit 52.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、デジタル化された画
像データに圧縮符号化処理を施す画像圧縮符号化装置の
改良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improvement of an image compression coding apparatus for performing compression coding processing on digitized image data.

【0002】[0002]

【従来の技術】周知のように、首記の如き画像圧縮符号
化装置は、従来より、図4に示すように構成されてい
る。まず、CCD(チャージ・カップルド・デバイス)
11により光電変換して得られた輝度信号及び色差信号
は、撮像処理回路12に供給されてそれぞれデジタルデ
ータに変換された後、画像メモリ13に記録される。こ
の画像メモリ13に記録された輝度及び色差信号成分の
各デジタルデータは、それぞれ2回スキャンされる。第
1回目のスキャンでは、符号量の計算とスケールファク
タαtの計算とが行なわれ、第2回目のスキャンでは、
算出されたスケールファクタαtを用いて実際の符号化
が行なわれる。
2. Description of the Related Art As is well known, an image compression coding apparatus such as the one described above is conventionally constructed as shown in FIG. First, CCD (charge coupled device)
The luminance signal and the color difference signal obtained by photoelectric conversion by 11 are supplied to the image pickup processing circuit 12 and converted into digital data, respectively, and then recorded in the image memory 13. Each digital data of the luminance and color difference signal components recorded in the image memory 13 is scanned twice. In the first scan, the code amount and scale factor αt are calculated, and in the second scan,
Actual encoding is performed using the calculated scale factor αt.

【0003】すなわち、第1回目のスキャンでは、画像
メモリ13から読み出されたデジタルデータがDCT
(離散コサイン変換)回路14に供給されてDCT係数
が生成される。この場合、画像メモリ13からは、図5
に示すように、水平方向8画素×垂直方向8画素の64
画素でなるブロック毎に、図5に数値で示した順序でデ
ジタルデータを読み出す、ブロック読み出しが行なわれ
る。そして、DCT回路14では、生成したDCT係数
を、図6に示すようにブロック単位で4つのグループG
1,G2,G3,G4に分類し、各グループG1,G
2,G3,G4毎に順次1グループ画像分を量子化回路
15に出力している。
That is, in the first scan, the digital data read from the image memory 13 is DCT.
(Discrete cosine transform) The DCT coefficient is generated by being supplied to the circuit 14. In this case, from the image memory 13, FIG.
As shown in, the horizontal direction 8 pixels × the vertical direction 8 pixels 64
Block reading is performed for each block of pixels, in which digital data is read in the order shown by the numerical values in FIG. Then, in the DCT circuit 14, the generated DCT coefficients are grouped into four groups G as shown in FIG.
1, G2, G3, G4, and each group G1, G
The image data for one group is sequentially output to the quantization circuit 15 for each of G2, G3, and G4.

【0004】この量子化回路15は、入力されたグルー
プ画像データを、セレクタ16で選択されたY量子化テ
ーブル17及びC量子化テーブル18と、MPU(マイ
クロプロセッサユニット)19から出力されるスケール
ファクタとを乗算回路20で乗算した値で割る。この場
合、スケールファクタは、各グループ画像データG1,
G2,G3,G4に対応した値α1,α2,α3,α4
を、MPU19で制御することにより生成される。つま
り、グループ画像データGi(i=1,2,3,4)
は、それぞれに対応するスケールファクタαi(i=
1,2,3,4)を用いて量子化されることになる。ま
た、セレクタ16は、輝度信号のグループ画像データを
扱う場合はY量子化テーブル17を用い、色差信号のグ
ループ画像データを扱う場合はC量子化テーブル18を
用いるように切り替え制御される。
The quantizing circuit 15 converts the input group image data from the Y quantization table 17 and the C quantization table 18 selected by the selector 16 and the scale factor output from the MPU (microprocessor unit) 19. And are divided by the value multiplied by the multiplication circuit 20. In this case, the scale factor is the group image data G1,
Values α1, α2, α3, α4 corresponding to G2, G3, G4
Are controlled by the MPU 19, and are generated. That is, the group image data Gi (i = 1, 2, 3, 4)
Are scale factors αi (i =
1, 2, 3, 4) will be quantized. Further, the selector 16 is switching-controlled to use the Y quantization table 17 when handling the group image data of the luminance signal and to use the C quantization table 18 when handling the group image data of the color difference signal.

【0005】そして、量子化回路15で量子化されたD
CT係数は、ハフマン符号化回路21に供給されてブロ
ック単位で可変長符号化処理が施された後、各グループ
画像データG1,G2,G3,G4に対応して設置され
た符号量算出回路22,23,24,25にそれぞれ供
給され、各グループ毎に積算される。ここでは、1画像
データがG1,G2,G3,G4の4つのグループに分
けられているため、各符号量算出回路22,23,2
4,25から出力される積算値は、1画像データの符号
積算量の1/4となっている。このため、各符号量算出
回路22,23,24,25では、積算値を4倍して符
号量N1,N2,N3,N4を得ている。
Then, D quantized by the quantization circuit 15
The CT coefficient is supplied to the Huffman coding circuit 21 and subjected to variable length coding processing in block units, and then the code amount calculation circuit 22 installed corresponding to each group image data G1, G2, G3, G4. , 23, 24, 25, and are added up for each group. Here, since one image data is divided into four groups G1, G2, G3, and G4, each code amount calculation circuit 22, 23, 2
The integrated value output from 4 and 25 is 1/4 of the code integrated amount of one image data. Therefore, in each code amount calculation circuit 22, 23, 24, 25, the integrated value is multiplied by 4 to obtain the code amount N1, N2, N3, N4.

【0006】図7は、上記スケールファクタα1,α
2,α3,α4と符号量N1,N2,N3,N4との関
係を示している。今、符号量設定回路26に設定された
符号量Ntが,図7に示す位置にあるとすると、A(α
2,N2)点とB(α3,N3)点との2点で直線近似
した直線式から符号量Ntに対応するスケールファクタ
αtが算出される。このため、各符号量算出回路22,
23,24,25から出力される符号量N1,N2,N
3,N4を符号量比較回路27に供給し、設定符号量N
tに最も近い値と2番目に近い値とを選択する。そし
て、その選択された2つの符号量をαt算出回路28に
供給して2点直線近似した直線式より、設定符号量Nt
に対応するスケールファクタαtを算出している。
FIG. 7 shows the scale factors α1 and α.
2 shows the relationship between α2, α3 and α4 and the code amounts N1, N2, N3 and N4. Now, assuming that the code amount Nt set in the code amount setting circuit 26 is at the position shown in FIG. 7, A (α
The scale factor αt corresponding to the code amount Nt is calculated from the linear equation linearly approximated by the two points of the (2, N2) point and the B (α3, N3) point. Therefore, each code amount calculation circuit 22,
Code amount N1, N2, N output from 23, 24, 25
3 and N4 are supplied to the code amount comparison circuit 27, and the set code amount N
The value closest to t and the value closest to t are selected. Then, the selected two code amounts are supplied to the αt calculation circuit 28, and the set code amount Nt is calculated from the linear equation obtained by the two-point linear approximation.
The scale factor αt corresponding to is calculated.

【0007】次に、第2回目のスキャンでは、画像メモ
リ13から読み出されたデジタルデータがDCT回路1
4に供給されてDCT係数が生成される。この場合も、
画像メモリ13からのデジタルデータの読み出しは、ブ
ロック読み出しで行なわれる。そして、DCT回路14
で生成したDCT係数は、ブロック単位で量子化回路1
5に出力される。この量子化回路15は、入力されたD
CT係数を、セレクタ16で選択されたY量子化テーブ
ル17及びC量子化テーブル18と、MPU19から出
力されるスケールファクタαtとを乗算回路20で乗算
した値で割る。この場合、スケールファクタαtは、第
1回目のスキャンでαt算出回路28から得られた値を
MPU19で制御することにより生成される。そして、
量子化回路15で量子化されたDCT係数は、ハフマン
符号化回路21に供給されてブロック単位で可変長符号
化処理が施され、出力端子29から取り出される。
Next, in the second scan, the digital data read from the image memory 13 is transferred to the DCT circuit 1.
4 to produce DCT coefficients. Also in this case,
Reading of digital data from the image memory 13 is performed by block reading. Then, the DCT circuit 14
The DCT coefficient generated in step 1 is quantized by the quantization circuit 1 in block units.
5 is output. This quantization circuit 15 receives the input D
The CT coefficient is divided by a value obtained by multiplying the Y quantization table 17 and the C quantization table 18 selected by the selector 16 and the scale factor αt output from the MPU 19 by the multiplication circuit 20. In this case, the scale factor αt is generated by controlling the value obtained from the αt calculation circuit 28 in the first scan with the MPU 19. And
The DCT coefficient quantized by the quantization circuit 15 is supplied to the Huffman coding circuit 21, subjected to variable length coding processing in block units, and taken out from the output terminal 29.

【0008】ところで、上記した従来の画像圧縮符号化
装置では、輝度信号成分と色差信号成分とを両方とも同
じスケールファクタαi(i=1,2,3,4)を用い
て処理している。しかしながら、輝度信号と色差信号と
では画像の解像度等に大きな違いがあり、一般的に色差
信号の方が輝度信号よりも解像度が低くなっている。そ
れにもかかわらず、輝度信号と色差信号とに両者とも同
等の量子化処理を施すことは、色差信号に冗長な処理を
施すことになる。換言すれば、解像度の高い輝度信号に
配分されるべき符号量が、解像度の低い色差信号に配分
されてしまうので、画質的または解像度的視点から見た
場合、処理の効率が悪いという問題が生じている。
By the way, in the above-mentioned conventional image compression encoding apparatus, both the luminance signal component and the color difference signal component are processed using the same scale factor αi (i = 1, 2, 3, 4). However, there is a large difference in image resolution and the like between the luminance signal and the color difference signal, and in general, the color difference signal has a lower resolution than the luminance signal. Nevertheless, performing the same quantization processing on both the luminance signal and the color difference signal results in redundant processing on the color difference signal. In other words, the code amount to be distributed to the high-resolution luminance signal is distributed to the low-resolution chrominance signal, which causes a problem of low processing efficiency from the viewpoint of image quality or resolution. ing.

【0009】[0009]

【発明が解決しようとする課題】以上のように、従来の
画像圧縮符号化装置では、解像度の違いに無関係に輝度
信号と色差信号とに同等の量子化処理を施しているた
め、各信号の性質に対応した符号量の配分がなされてお
らず、信号処理の効率が悪いという問題を有している。
As described above, in the conventional image compression coding apparatus, the luminance signal and the color difference signal are subjected to the same quantization processing regardless of the difference in resolution. There is a problem that the efficiency of signal processing is poor because the amount of codes corresponding to the property is not distributed.

【0010】そこで、この発明は上記事情を考慮してな
されたもので、画像信号を構成する各信号成分の性質の
違いに対応した符号量制御を行ない得る極めて良好な画
像圧縮符号化装置を提供することを目的とする。
Therefore, the present invention has been made in consideration of the above circumstances, and provides an extremely good image compression coding apparatus capable of controlling the code amount corresponding to the difference in the property of each signal component forming the image signal. The purpose is to do.

【0011】[0011]

【課題を解決するための手段】この発明に係る画像圧縮
符号化装置は、画像信号を構成する複数の信号成分に、
それぞれ複数の画素からなるブロック単位で直交変換を
施す直交変換手段と、この直交変換手段からそれぞれ出
力される複数の信号成分毎の変換係数に、それぞれ各信
号成分毎に対応して用意された量子化テーブルにスケー
ルファクタを乗算した値に基づいて、量子化処理を施す
量子化手段と、この量子化手段からそれぞれ出力される
複数の信号成分毎の変換係数に、それぞれ各信号成分毎
に符号化処理を施す符号化手段と、この符号化手段から
それぞれ出力される複数の信号成分毎の符号量に基づい
て、各信号成分毎の配分符号量を算出する演算手段と、
この演算手段から出力される配分符号量に基づいて、各
信号成分毎に用意された量子化テーブルに乗算するスケ
ールファクタをそれぞれ生成する生成手段とを備えるよ
うにしたものである。
An image compression coding apparatus according to the present invention has a plurality of signal components constituting an image signal,
An orthogonal transform unit that performs orthogonal transform in block units each including a plurality of pixels, and transform coefficients for each of a plurality of signal components output from the orthogonal transform unit, respectively. A quantization unit that performs a quantization process based on a value obtained by multiplying a quantization table by a scale factor, and a plurality of conversion coefficients for each signal component output from the quantization unit are encoded for each signal component. Coding means for performing processing, and computing means for calculating a distributed code amount for each signal component based on the code amount for each of a plurality of signal components respectively output from the coding means,
Based on the distribution code amount output from this arithmetic means, there is provided a generating means for respectively generating a scale factor for multiplying the quantization table prepared for each signal component.

【0012】[0012]

【作用】上記のような構成によれば、符号化処理が施さ
れた複数の信号成分毎の符号量に基づいて各信号成分毎
の配分符号量を算出し、この算出された配分符号量に基
づいて各信号成分毎に用意された量子化テーブルに乗算
するスケールファクタをそれぞれ生成するようにしたの
で、画像信号を構成する各信号成分の性質の違いに対応
した符号量制御を行なうことができるようになる。
According to the above configuration, the distribution code amount for each signal component is calculated based on the code amount for each of the plurality of signal components that have been subjected to the encoding process, and the calculated distribution code amount is set to the calculated distribution code amount. Since the scale factor for multiplying the quantization table prepared for each signal component is generated based on each, the code amount control corresponding to the difference in the property of each signal component forming the image signal can be performed. Like

【0013】[0013]

【実施例】以下、この発明の一実施例について図面を参
照して詳細に説明する。図1において、CCD30によ
り光電変換して得られた輝度信号及び色差信号は、撮像
処理回路31に供給されてそれぞれデジタルデータに変
換された後、画像メモリ32に記録される。この画像メ
モリ32に記録された輝度及び色差信号成分のデジタル
データは、それぞれ2回スキャンされる。第1回目のス
キャンでは、符号量の計算とスケールファクタαtの計
算とが行なわれ、第2回目のスキャンでは、算出された
スケールファクタαtを用いて実際の符号化が行なわれ
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings. In FIG. 1, the luminance signal and the color difference signal obtained by photoelectric conversion by the CCD 30 are supplied to the image pickup processing circuit 31 and converted into digital data, respectively, and then recorded in the image memory 32. The digital data of the luminance and color difference signal components recorded in the image memory 32 are each scanned twice. In the first scan, the code amount is calculated and the scale factor αt is calculated, and in the second scan, the actual encoding is performed using the calculated scale factor αt.

【0014】すなわち、第1回目のスキャンでは、画像
メモリ32から読み出されたデジタルデータがDCT回
路33に供給されてDCT係数が生成される。この場
合、画像メモリ32からは、図5に示したように、水平
方向8画素×垂直方向8画素の64画素でなるブロック
毎に、図5に数値で示した順序でデジタルデータを読み
出す、ブロック読み出しが行なわれる。そして、DCT
回路33では、生成したDCT係数を、図6に示したよ
うにブロック単位で4つのグループG1,G2,G3,
G4に分類し、各グループG1,G2,G3,G4毎に
順次1グループ画像分を量子化回路34に出力してい
る。
That is, in the first scan, the digital data read from the image memory 32 is supplied to the DCT circuit 33 to generate DCT coefficients. In this case, as shown in FIG. 5, digital data is read from the image memory 32 for each block consisting of 64 pixels of 8 pixels in the horizontal direction × 8 pixels in the vertical direction in the order shown by the numerical values in FIG. Reading is performed. And DCT
In the circuit 33, the generated DCT coefficient is divided into four groups G1, G2, G3 in block units as shown in FIG.
The images are classified into G4, and one group of images for each group G1, G2, G3, G4 are sequentially output to the quantization circuit 34.

【0015】この量子化回路34は、入力されたグルー
プ画像データを、セレクタ35で選択されたY量子化テ
ーブル36及びC量子化テーブル37と、セレクタ38
で選択されたMPU39,40から出力されるスケール
ファクタとを、乗算回路41で乗算した値で割る。この
場合、スケールファクタは、各グループ画像データG
1,G2,G3,G4に対応しており、輝度信号処理時
にはMPU39でスケールファクタαY1,αY2,αY3,
αY4を制御した値がセレクタ38で選択され、色差信号
処理時にはMPU40でスケールファクタαC1,αC2,
αC3,αC4を制御した値がセレクタ38で選択される。
The quantizing circuit 34 converts the input group image data into the Y quantizing table 36 and the C quantizing table 37 selected by the selector 35, and the selector 38.
The scale factor output from the MPU 39 or 40 selected in step 1 is divided by the value multiplied by the multiplication circuit 41. In this case, the scale factor is the group image data G
It corresponds to 1, G2, G3, G4, and at the time of luminance signal processing, the MPU 39 scale factors αY1, αY2, αY3,
The value that controls αY4 is selected by the selector 38, and the scale factors αC1, αC2,
A value that controls αC3 and αC4 is selected by the selector 38.

【0016】つまり、グループ画像データGi(i=
1,2,3,4)は、それぞれに対応するスケールファ
クタαYi(i=1,2,3,4)及びαCi(i=1,
2,3,4)を用いて量子化されることになる。また、
セレクタ35は、輝度信号のグループ画像データを扱う
場合はY量子化テーブル36を用い、色差信号のグルー
プ画像データを扱う場合はC量子化テーブル37を用い
るように切り替え制御される。
That is, the group image data Gi (i =
1, 2, 3, 4) correspond to the scale factors αYi (i = 1, 2, 3, 4) and αCi (i = 1, 1, respectively).
2, 3, 4) will be used for quantization. Also,
The selector 35 is switched and controlled to use the Y quantization table 36 when handling the group image data of the luminance signal and to use the C quantization table 37 when handling the group image data of the color difference signal.

【0017】そして、量子化回路34で量子化されたD
CT係数は、ハフマン符号化回路42に供給されてブロ
ック単位で可変長符号化処理が施された後、輝度信号処
理時には各グループ画像データG1,G2,G3,G4
に対応して設置されたY符号量算出回路43,44,4
5,46にそれぞれ供給されて各グループ毎に積算さ
れ、色差信号処理時には各グループ画像データG1,G
2,G3,G4に対応して設置されたC符号量算出回路
47,48,49,50にそれぞれ供給されて各グルー
プ毎に積算される。ここでは、1画像データがG1,G
2,G3,G4の4つのグループに分けられているた
め、Y及びC符号量算出回路43〜46及び47〜50
から出力される積算値は、1画像データの符号積算量の
1/4相当となっている。このため、Y符号量算出回路
43〜46では、積算値を4倍して符号量NY1,NY
2,NY3,NY4を得ており、C符号量算出回路47
〜50では、積算値を4倍して符号量NC1,NC2,
NC3,NC4を得ている。
Then, D quantized by the quantization circuit 34
The CT coefficient is supplied to the Huffman coding circuit 42 and subjected to variable length coding processing in block units, and then each group image data G1, G2, G3, G4 at the time of luminance signal processing.
Corresponding to the Y code amount calculation circuits 43, 44, 4
5 and 46 and are integrated for each group, and when the color difference signal processing is performed, each group image data G1, G
2, G3 and G4 are respectively supplied to C code amount calculation circuits 47, 48, 49 and 50, which are integrated for each group. Here, one image data is G1, G
Since it is divided into four groups of G2, G3, and G4, Y and C code amount calculation circuits 43 to 46 and 47 to 50
The integrated value output from is 1/4 of the code integrated amount of one image data. Therefore, in the Y code amount calculation circuits 43 to 46, the integrated values are multiplied by 4 to obtain the code amounts NY1 and NY.
2, NY3 and NY4 are obtained, and the C code amount calculation circuit 47 is obtained.
˜50, the integrated value is multiplied by 4 and the code amount NC1, NC2,
We have obtained NC3 and NC4.

【0018】Y及びC符号量算出回路43〜46及び4
7〜50からそれぞれ出力される積算値は、Y/C配分
符号量算出回路51に供給される。このY/C配分符号
量算出回路51は、符号量設定回路52に設定された符
号量に基づいて、Y配分符号量NYtとC配分符号量N
Ctとを算出する。この算出式は、 NYt=NY/C ×Nt/(NY/C +1) NCt=Nt/(NY/C +1) で表わされる。ただし、上式において、 NY/C =[(NY1/NC1)+(NY2/NC2)+
(NY3/NC3)+(NY4/NC4)]/4 である。
Y and C code amount calculation circuits 43 to 46 and 4
The integrated value output from each of 7 to 50 is supplied to the Y / C distribution code amount calculation circuit 51. The Y / C distribution code amount calculation circuit 51 calculates the Y distribution code amount NYt and the C distribution code amount N based on the code amount set in the code amount setting circuit 52.
Calculate Ct. This calculation formula is expressed as NYt = NY / C × Nt / (NY / C + 1) NCt = Nt / (NY / C + 1). However, in the above equation, NY / C = [(NY1 / NC1) + (NY2 / NC2) +
(NY3 / NC3) + (NY4 / NC4)] / 4.

【0019】図2は、上記スケールファクタαY1,αY
2,αY3,αY4と符号量NY1,NY2,NY3,NY
4との関係を示している。今、Y/C配分符号量算出回
路51で算出されたY配分符号量NYtが,図2に示す
位置にあるとすると、AY(αY2,NY2)点とBY
(αY3,NY3)点との2点で直線近似した直線式から
符号量NYtに対応するスケールファクタαYtが算出さ
れる。このため、各Y符号量算出回路43,44,4
5,46から出力される符号量NY1,NY2,NY
3,NY4をY符号量比較回路53に供給し、Y配分符
号量NYtに最も近い値と2番目に近い値とを選択す
る。そして、その選択された2つの符号量をαYt算出回
路54に供給して2点直線近似した直線式より、Y配分
符号量NYtに対応するスケールファクタαYtを算出し
ている。
FIG. 2 shows the scale factors αY1 and αY.
2, αY3, αY4 and code amount NY1, NY2, NY3, NY
4 shows the relationship with 4. Now, assuming that the Y distribution code amount NYt calculated by the Y / C distribution code amount calculation circuit 51 is in the position shown in FIG. 2, the AY (αY2, NY2) point and the BY
A scale factor αYt corresponding to the code amount NYt is calculated from a linear equation linearly approximated by two points (αY3, NY3). Therefore, each Y code amount calculation circuit 43, 44, 4
5, 46, output code amounts NY1, NY2, NY
3 and NY4 are supplied to the Y code amount comparison circuit 53, and the value closest to the Y distribution code amount NYt and the value closest to the second are selected. Then, the selected two code amounts are supplied to the αYt calculation circuit 54, and the scale factor αYt corresponding to the Y distribution code amount NYt is calculated from the linear equation obtained by the two-point linear approximation.

【0020】また、図3は、上記スケールファクタαC
1,αC2,αC3,αC4と符号量NC1,NC2,NC
3,NC4との関係を示している。今、Y/C配分符号
量算出回路51で算出されたC配分符号量NCtが,図
3に示す位置にあるとすると、AC(αC2,NC2)点
とBC(αC3,NC3)点との2点で直線近似した直線
式から符号量NCtに対応するスケールファクタαCtが
算出される。このため、各C符号量算出回路47,4
8,49,50から出力される符号量NC1,NC2,
NC3,NC4をC符号量比較回路55に供給し、C配
分符号量NCtに最も近い値と2番目に近い値とを選択
する。そして、その選択された2つの符号量をαCt算出
回路56に供給して2点直線近似した直線式より、C配
分符号量NCtに対応するスケールファクタαCtを算出
している。
Further, FIG. 3 shows the above scale factor αC.
1, αC2, αC3, αC4 and code amount NC1, NC2, NC
3, the relationship with NC4 is shown. Now, assuming that the C distribution code amount NCt calculated by the Y / C distribution code amount calculation circuit 51 is at the position shown in FIG. 3, two points of AC (αC2, NC2) and BC (αC3, NC3) The scale factor αCt corresponding to the code amount NCt is calculated from the linear equation linearly approximated by the points. Therefore, each C code amount calculation circuit 47, 4
Code amounts NC1, NC2 output from 8, 49, 50
NC3 and NC4 are supplied to the C code amount comparison circuit 55, and the value closest to the C allocation code amount NCt and the value closest to the second are selected. Then, the selected two code amounts are supplied to the αCt calculation circuit 56, and the scale factor αCt corresponding to the C distribution code amount NCt is calculated from the linear equation obtained by the two-point linear approximation.

【0021】次に、第2回目のスキャンでは、画像メモ
リ32から読み出されたデジタルデータがDCT回路3
3に供給されてDCT係数が生成される。この場合も、
画像メモリ32からのデジタルデータの読み出しは、ブ
ロック読み出しで行なわれる。そして、DCT回路33
で生成したDCT係数は、ブロック単位で量子化回路3
4に出力される。この量子化回路34は、入力されたD
CT係数を、セレクタ35で選択されたY量子化テーブ
ル36及びC量子化テーブル37と、セレクタ38で選
択されたMPU39,40から出力されるスケールファ
クタとを、乗算回路41で乗算した値で割る。
Next, in the second scan, the digital data read from the image memory 32 is transferred to the DCT circuit 3.
3 to generate DCT coefficients. Also in this case,
Reading of digital data from the image memory 32 is performed by block reading. Then, the DCT circuit 33
The DCT coefficient generated in step 3 is quantized by the quantization circuit 3 in block units.
4 is output. This quantization circuit 34 receives the input D
The CT coefficient is divided by a value obtained by multiplying the Y quantization table 36 and the C quantization table 37 selected by the selector 35, and the scale factors output from the MPUs 39 and 40 selected by the selector 38 by the multiplication circuit 41. .

【0022】この場合、スケールファクタは、第1回目
のスキャンでαYt及びαCt算出回路54,56から得ら
れた値をMPU39,40でそれぞれ制御することによ
り生成される。そして、輝度信号処理時にはMPU39
でスケールファクタαY1,αY2,αY3,αY4を制御した
値がセレクタ38で選択され、色差信号処理時にはMP
U40でスケールファクタαC1,αC2,αC3,αC4を制
御した値がセレクタ38で選択される。また、セレクタ
35は、輝度信号のグループ画像データを扱う場合はY
量子化テーブル36を用い、色差信号のグループ画像デ
ータを扱う場合はC量子化テーブル37を用いるように
切り替え制御される。そして、量子化回路34で量子化
されたDCT係数は、ハフマン符号化回路42に供給さ
れてブロック単位で可変長符号化処理が施され、出力端
子57から取り出される。
In this case, the scale factor is generated by controlling the values obtained from the αYt and αCt calculation circuits 54 and 56 in the first scan by the MPUs 39 and 40, respectively. Then, when processing the luminance signal, the MPU 39
The value that controls the scale factors αY1, αY2, αY3, and αY4 is selected by the selector 38, and MP is selected at the time of color difference signal processing.
A value which controls the scale factors αC1, αC2, αC3, and αC4 in U40 is selected by the selector 38. Further, the selector 35 is set to Y when handling the group image data of the luminance signal.
The quantization table 36 is used, and when the group image data of the color difference signals is handled, the switching is controlled to use the C quantization table 37. Then, the DCT coefficient quantized by the quantization circuit 34 is supplied to the Huffman coding circuit 42, subjected to variable length coding processing in block units, and taken out from the output terminal 57.

【0023】したがって、上記実施例のような構成によ
れば、ハフマン符号化後の輝度及び色差信号成分の符号
量に基づいて、各輝度及び色差信号成分の配分符号量を
算出し、この算出された配分符号量に基づいて各輝度及
び色差信号成分用に用意されたY及びC量子化テーブル
36,37に乗算するスケールファクタαYt,αCtをそ
れぞれ生成するようにしたので、画像信号を構成する各
輝度及び色差信号成分の解像度の違いに対応した符号量
制御を行なうことができるようになる。なお、この発明
は上記実施例に限定されるものではなく、この外その要
旨を逸脱しない範囲で種々変形して実施することができ
る。
Therefore, according to the configuration of the above embodiment, the distribution code amount of each luminance and color difference signal component is calculated based on the code amount of the luminance and color difference signal components after Huffman coding, and this is calculated. Since the scale factors αYt and αCt for multiplying the Y and C quantization tables 36 and 37 prepared for the respective luminance and color difference signal components are generated based on the distributed code amount, It becomes possible to control the code amount corresponding to the difference in the resolution of the luminance and color difference signal components. The present invention is not limited to the above-described embodiment, and can be variously modified and implemented without departing from the scope of the invention.

【0024】[0024]

【発明の効果】以上詳述したようにこの発明によれば、
画像信号を構成する各信号成分の性質の違いに対応した
符号量制御を行ない得る極めて良好な画像圧縮符号化装
置を提供することができる。
As described above in detail, according to the present invention,
It is possible to provide an extremely good image compression encoding device capable of controlling the code amount corresponding to the difference in the property of each signal component forming the image signal.

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

【図1】この発明に係る画像圧縮符号化装置の一実施例
を示すブロック構成図。
FIG. 1 is a block configuration diagram showing an embodiment of an image compression encoding device according to the present invention.

【図2】同実施例における輝度信号用のスケールファク
タを求める手法を説明するために示す図。
FIG. 2 is a diagram for explaining a method for obtaining a scale factor for a luminance signal in the same embodiment.

【図3】同実施例における色差信号用のスケールファク
タを求める手法を説明するために示す図。
FIG. 3 is a diagram for explaining a method of obtaining a scale factor for a color difference signal in the embodiment.

【図4】従来の画像圧縮符号化装置を示すブロック構成
図。
FIG. 4 is a block configuration diagram showing a conventional image compression encoding device.

【図5】ブロック読み出しの順序を説明するために示す
図。
FIG. 5 is a diagram shown for explaining the order of block reading.

【図6】1画像データのブロックのグループ分類を説明
するために示す図。
FIG. 6 is a diagram for explaining group classification of blocks of one image data.

【図7】設定符号量からスケールファクタを求める手法
を説明するために示す図。
FIG. 7 is a diagram shown for explaining a method of obtaining a scale factor from a set code amount.

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

11…CCD、12…撮像処理回路、13…画像メモ
リ、14…DCT回路、15…量子化回路、16…セレ
クタ、17…Y量子化テーブル、18…C量子化テーブ
ル、19…MPU、20…乗算回路、21…ハフマン符
号化回路、22〜25…符号量算出回路、26…符号量
設定回路、27…符号量比較回路、28…αt算出回
路、29…出力端子、30…CCD、31…撮像処理回
路、32…画像メモリ、33…DCT回路、34…量子
化回路、35…セレクタ、36…Y量子化テーブル、3
7…C量子化テーブル、38…セレクタ、39,40…
MPU、41…乗算回路、42…ハフマン符号化回路、
43〜46…Y符号量算出回路、47〜50…C符号量
算出回路、51…Y/C配分符号量算出回路、52…符
号量設定回路、53…Y符号量比較回路、54…αYt算
出回路、55…C符号量比較回路、56…αCt算出回
路、57…出力端子。
11 ... CCD, 12 ... Imaging processing circuit, 13 ... Image memory, 14 ... DCT circuit, 15 ... Quantization circuit, 16 ... Selector, 17 ... Y quantization table, 18 ... C quantization table, 19 ... MPU, 20 ... Multiplier circuit, 21 ... Huffman coding circuit, 22-25 ... Code amount calculation circuit, 26 ... Code amount setting circuit, 27 ... Code amount comparison circuit, 28 ... .alpha.t calculation circuit, 29 ... Output terminal, 30 ... CCD, 31 ... Image pickup processing circuit, 32 ... Image memory, 33 ... DCT circuit, 34 ... Quantization circuit, 35 ... Selector, 36 ... Y quantization table, 3
7 ... C quantization table, 38 ... selector, 39, 40 ...
MPU, 41 ... Multiplication circuit, 42 ... Huffman coding circuit,
43 to 46 ... Y code amount calculation circuit, 47 to 50 ... C code amount calculation circuit, 51 ... Y / C distribution code amount calculation circuit, 52 ... Code amount setting circuit, 53 ... Y code amount comparison circuit, 54 ... αYt calculation Circuit, 55 ... C code amount comparison circuit, 56 ... αCt calculation circuit, 57 ... output terminal.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 画像信号を構成する複数の信号成分に、
それぞれ複数の画素からなるブロック単位で直交変換を
施す直交変換手段と、この直交変換手段からそれぞれ出
力される前記複数の信号成分毎の変換係数に、それぞれ
各信号成分毎に対応して用意された量子化テーブルにス
ケールファクタを乗算した値に基づいて、量子化処理を
施す量子化手段と、この量子化手段からそれぞれ出力さ
れる前記複数の信号成分毎の変換係数に、それぞれ各信
号成分毎に符号化処理を施す符号化手段と、この符号化
手段からそれぞれ出力される前記複数の信号成分毎の符
号量に基づいて、各信号成分毎の配分符号量を算出する
演算手段と、この演算手段から出力される配分符号量に
基づいて、各信号成分毎に用意された前記量子化テーブ
ルに乗算する前記スケールファクタをそれぞれ生成する
生成手段とを具備してなることを特徴とする画像圧縮符
号化装置。
1. A plurality of signal components constituting an image signal,
An orthogonal transformation unit that performs orthogonal transformation in block units each including a plurality of pixels, and transformation coefficients for each of the plurality of signal components output from the orthogonal transformation unit are prepared corresponding to each signal component. Based on a value obtained by multiplying a quantization table by a scale factor, a quantizing means for performing a quantizing process, and a transform coefficient for each of the plurality of signal components output from the quantizing means, for each signal component, respectively. Coding means for performing coding processing, computing means for computing the distributed code quantity for each signal component based on the code quantity for each of the plurality of signal components respectively output from the coding means, and the computing means Generating means for respectively generating the scale factor for multiplying the quantization table prepared for each signal component based on the distribution code amount output from Image compression encoding apparatus characterized by comprising Te.
JP6001582A 1994-01-12 1994-01-12 Device for encoding picture compression Pending JPH07212598A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6001582A JPH07212598A (en) 1994-01-12 1994-01-12 Device for encoding picture compression

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6001582A JPH07212598A (en) 1994-01-12 1994-01-12 Device for encoding picture compression

Publications (1)

Publication Number Publication Date
JPH07212598A true JPH07212598A (en) 1995-08-11

Family

ID=11505519

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6001582A Pending JPH07212598A (en) 1994-01-12 1994-01-12 Device for encoding picture compression

Country Status (1)

Country Link
JP (1) JPH07212598A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0974372A1 (en) 1997-03-12 2000-01-26 Daikyo Seiko, Ltd. Sealing rubber closure for syringe/container
JP2010183402A (en) * 2009-02-06 2010-08-19 Panasonic Corp Video signal encoding apparatus, and video signal encoding method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0974372A1 (en) 1997-03-12 2000-01-26 Daikyo Seiko, Ltd. Sealing rubber closure for syringe/container
JP2010183402A (en) * 2009-02-06 2010-08-19 Panasonic Corp Video signal encoding apparatus, and video signal encoding method
US8654839B2 (en) 2009-02-06 2014-02-18 Panasonic Corporation Video signal coding apparatus and video signal coding method

Similar Documents

Publication Publication Date Title
US5444542A (en) Image processing apparatus and method
JP2549013B2 (en) Data compression device
US20020196983A1 (en) Image encoding apparatus, image encoding method, and recording medium in which image encoding program is recorded
JPH04323960A (en) Picture coding method and device
JPH03270388A (en) Data compressing device
JPH05183441A (en) Picture processor and its method
JPH11122495A (en) Picture encoding device
JPH07212598A (en) Device for encoding picture compression
US6859562B2 (en) Coded data length detection apparatus, method of the same, and image coding apparatus
JP2897563B2 (en) Image compression coding device
JPH03270378A (en) Data compressing device
JP2793402B2 (en) Image coding device
JP3265696B2 (en) Image compression coding device
JPH04220081A (en) Method and device for picture data decoding
JP2874003B2 (en) High efficiency coding apparatus and coding method
JPH0898175A (en) Picture encoding device
JPH0630392A (en) Picture coding device
JP3036934B2 (en) Image coding device
KR0160631B1 (en) Digital image data compressor
JPH07115668A (en) Device and method for compressing image
JPH0310486A (en) Moving picture encoder
JPH0795415A (en) Method and device for picture communication
JPH08336139A (en) Image data processor and quantizing method
JP2001136528A (en) Image compressing and encoding device
JP2809798B2 (en) Matrix operation processing method of image data orthogonal transformation device