JPH0353666A - Picture signal compression coder - Google Patents

Picture signal compression coder

Info

Publication number
JPH0353666A
JPH0353666A JP1187462A JP18746289A JPH0353666A JP H0353666 A JPH0353666 A JP H0353666A JP 1187462 A JP1187462 A JP 1187462A JP 18746289 A JP18746289 A JP 18746289A JP H0353666 A JPH0353666 A JP H0353666A
Authority
JP
Japan
Prior art keywords
block
encoding
data
normalization coefficient
amount
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.)
Granted
Application number
JP1187462A
Other languages
Japanese (ja)
Other versions
JP2931328B2 (en
Inventor
Mikio Watanabe
幹夫 渡辺
Kenji Ito
研治 伊藤
Kenji Moronaga
健次 諸永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP18746289A priority Critical patent/JP2931328B2/en
Publication of JPH0353666A publication Critical patent/JPH0353666A/en
Application granted granted Critical
Publication of JP2931328B2 publication Critical patent/JP2931328B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To attain proper fixed length processing of a coded data by setting a normalizing coefficient alpha at the outside of a coder and applying fixed length processing with the coefficient. CONSTITUTION:Whether or not a normalizing coefficient alpha is inputted to a coder 28 from an alpha setting section 18 is discriminated, and when the normalizing coefficient alpha is inputted, the normalizing coefficient alpha is used to limit a coded data quantity and after the obtained code quantity is discriminated to be close to an object, the result is outputted from a gate. If the obtained code quantity exceeds the object or is not close to the object, the more proper normalizing coefficient alpha is set by the alpha setting section 18 and sent to an alpha discrimination section 16. Thus, the optimum normalizing coefficient alpha is obtained at the outside of the coder 28 for the fixed length processing. Thus, the proper fixed length processing of a coded data is implemented.

Description

【発明の詳細な説明】 皮査旦1 本発明は画像信号圧縮符号化装置に関し,特に、圧縮符
号化された画像のデータ量を一定とする画像信号圧縮符
号化装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an image signal compression encoding device, and more particularly to an image signal compression encoding device that makes the amount of data of a compression encoded image constant.

生見韮薯 電子スチルカメラにより撮影された画像データのような
ディジタル画像データをメモリに記憶する場合には、デ
ータ量を減らしてメモリの記憶容量を少なくするため、
各種の圧縮符号化が行われている。特に2次元直交変換
符号化は、大きな圧縮率で符号化を行うことができ、か
つ符号化に伴う画像歪も抑圧できることから、広く用い
られている。
When storing digital image data in memory, such as image data taken by an electronic still camera, it is necessary to reduce the amount of data and reduce the storage capacity of the memory.
Various compression encoding methods are used. In particular, two-dimensional orthogonal transform encoding is widely used because it can perform encoding at a high compression rate and can also suppress image distortion caused by encoding.

このような2次元直交変換符号化においては、画像デー
タは所定の数のブロックに分割され、それぞれのブロッ
ク内の画像データが2次元直交変換される。直交変換さ
れた画像データ、すなわち変換係数は、所定の閾値と比
較され、閾値以下の部分の切り捨て(係数切り捨て)が
行われる。次に,所定のステップ幅による量子化、すな
わち正規化が行われる。これにより、変換係数の値、す
なわち振幅のダイナミックレンジを抑圧する。
In such two-dimensional orthogonal transform encoding, image data is divided into a predetermined number of blocks, and the image data within each block is subjected to two-dimensional orthogonal transform. The orthogonally transformed image data, that is, the transformation coefficients, are compared with a predetermined threshold, and portions below the threshold are truncated (coefficient truncation). Next, quantization using a predetermined step width, that is, normalization, is performed. This suppresses the value of the conversion coefficient, that is, the dynamic range of the amplitude.

この間値との比較と正規化の処理は、同時に行われるこ
とが多い.すなわち、変換係数を所定の正規化係数にて
正規化して、その結果を整数化すると、正規化係数より
低い値をもつ変換係数はOとなる。
During this time, the comparison with the value and the normalization process are often performed at the same time. That is, when the transform coefficients are normalized by a predetermined normalization coefficient and the result is converted into an integer, the transform coefficient having a value lower than the normalization coefficient becomes O.

正規化された変換係数はその後、ハフマン符号化され、
メモリカードなどの記録媒体に記憶される。
The normalized transform coefficients are then Huffman encoded and
It is stored on a recording medium such as a memory card.

このような2次元直交変換符号化において、ハフマン符
号化されたAC成分の符号化データは、所定のデータ長
で出力をストップするように制限される、いわゆる固定
長化が行われる。この固定長化は、要求される画質、記
録媒体の容量等に応して最適のデータ量によって行われ
ることが望ましい。
In such two-dimensional orthogonal transform encoding, the encoded data of the AC component subjected to Huffman encoding is limited to output at a predetermined data length, that is, so-called fixed length encoding is performed. It is desirable that this fixed length is performed using an optimal amount of data depending on the required image quality, capacity of the recording medium, etc.

しかし、従来の装置においては、特定の方法によって画
一的に固定長化のデータ量が設定され、これにより固定
長化が行われるため、適切な固定長化を行うことができ
なかった。これにより出力バッファがオーバーフローす
ることもあった。
However, in conventional devices, the amount of data for fixed length conversion is uniformly set using a specific method, and fixed length conversion is performed thereby, making it impossible to perform appropriate fixed length conversion. This could cause the output buffer to overflow.

貝一一的 本発明はこのような従来技術の問題点を解消し、符号化
されたデータの固定長化を適切に行うことのできる画像
信号圧縮符号化装置を提供することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to solve the problems of the prior art and to provide an image signal compression encoding device that can appropriately convert encoded data into a fixed length.

免旦公里j 本発明によれば,1つの画面を構成するディジタル画像
データを複数のブロックに分割して各ブロックの画像デ
ータについて2次元直交変換符号化を行う画像信号圧縮
符号化装置は 複数のブロックに分割されたデジタル画
像データを2次元直交変換する直交変換手段と、直交変
換手段により直交変換されたデータを符号化する符号化
手段と、符号化手段から出力されるブロックごとの符号
化データ量を制限する符号化出力制御手段と、符号化手
段において用いられる正規化係数を設定する正規化係数
設定手段とを有し,符号化出力制御手段は、正規化係数
設定手段から正規化係数が入力された場合にはあらかじ
め定められた値によって符号化データ量の制限を行い、
正規化係数設定手段から正規化係数が入力されない場合
には分割されたブロックごとの画像データのアクティビ
ティに基づいて符号化データ量の制限を行うちのである
According to the present invention, an image signal compression encoding device that divides digital image data constituting one screen into a plurality of blocks and performs two-dimensional orthogonal transform encoding on the image data of each block includes a plurality of image signal compression encoding devices. orthogonal transformation means for two-dimensional orthogonal transformation of digital image data divided into blocks; encoding means for encoding data orthogonally transformed by the orthogonal transformation means; encoded data for each block output from the encoding means The encoding output control means has an encoding output control means for limiting the amount of normalization coefficients, and a normalization coefficient setting means for setting the normalization coefficients used in the encoding means. When input, the amount of encoded data is limited by a predetermined value,
If no normalization coefficient is input from the normalization coefficient setting means, the amount of encoded data is limited based on the activity of image data for each divided block.

実施例の説明 次に添付図面を参照して本発明による画像信号圧縮符号
化装置の実施例を詳細に説明する。
DESCRIPTION OF EMBODIMENTS Next, embodiments of an image signal compression encoding apparatus according to the present invention will be described in detail with reference to the accompanying drawings.

第1図には本発明による画像信号圧縮符号化装置の一実
施例が示されている。
FIG. 1 shows an embodiment of an image signal compression encoding device according to the present invention.

本装置はメモリコントローラlOを有する。メモリコン
トローラ1口にはメモリ60が接続され、例えば電子ス
チルカメラにより撮像されたlフレーム分のスチル画像
データをメモリ60から読み出す。
The device has a memory controller lO. A memory 60 is connected to one memory controller, and one frame of still image data captured by, for example, an electronic still camera is read from the memory 60.

メモリコントローラ10からの出力はブロック化部l2
に入力される。ブロック化部12はフレームバッファに
より構成され、メモリコントローラ10から入力され、
ブロック化部12に記旧された画像データは複数のブロ
ックに分割されてブロックごとに読み出され,2次元直
交変換部l4に送られる.2次元直交変換部l4はブロ
ックごとの画像データを2次元直交変換する。2次元直
交変換としては、ディスクリートコサイン変換、アダマ
ール変換等の周知の直交変換が用いられる. 2次元直交変換部l4において2次元直交変換されたブ
ロックごとの画像データは、第3図に示すブロックごと
の画素データと同様に,縦横に配列され、左上の部分に
低次のデータが配列され、右下の方向に向かうにつれて
高次のデータとなる。
The output from the memory controller 10 is sent to the blocking unit l2.
is input. The blocking unit 12 is composed of a frame buffer, and receives input from the memory controller 10.
The image data stored in the blocking section 12 is divided into a plurality of blocks, read out block by block, and sent to the two-dimensional orthogonal transformation section l4. The two-dimensional orthogonal transform unit l4 performs two-dimensional orthogonal transform on the image data for each block. As the two-dimensional orthogonal transformation, well-known orthogonal transformations such as discrete cosine transformation and Hadamard transformation are used. The image data for each block that has been subjected to two-dimensional orthogonal transformation in the two-dimensional orthogonal transformation unit l4 is arranged vertically and horizontally, similar to the pixel data for each block shown in FIG. 3, with low-order data arranged in the upper left part. , the data becomes higher-order as it moves toward the lower right.

直流成分のデータは左上部に配置される。2次元直交変
換部14の出力は図示しない正規化部において所定の量
子化ステップ値,すなわち正規化係数αにより正規化さ
れ、符号化部28のAC符号化部32へ送られる。
DC component data is placed at the upper left. The output of the two-dimensional orthogonal transform unit 14 is normalized by a predetermined quantization step value, that is, a normalization coefficient α, in a normalization unit (not shown), and is sent to the AC encoding unit 32 of the encoding unit 28.

AC符号化部32にはまた、α判定部l6から正規化係
数αが入力される.α判定部l6はα設定部l8から入
力された正規化係数αがOであるか否かを判定し、正規
化係数αがOでない場合には、これをAC符号化部32
およびビット固定長化部36へ送出する。α設定部l8
は正規化係数αを設定する.正規化係数αは,固定長化
部35においてAC符号化部32からの出力データの固
定長化に用いられるデータである。正規化係数αの設定
は、出力された符号化データの量に基づき、ニュートン
法等の所定の方法によって最適値を予測し、出力される
符号化データの量が目標値に集束するように行われる。
The AC encoding unit 32 also receives the normalization coefficient α from the α determination unit l6. The α determination unit l6 determines whether the normalization coefficient α input from the α setting unit l8 is O. If the normalization coefficient α is not O,
and sends it to the bit fixed length conversion unit 36. α setting section l8
sets the normalization coefficient α. The normalization coefficient α is data used in the fixed length conversion unit 35 to convert the output data from the AC encoding unit 32 into a fixed length. The normalization coefficient α is set by predicting the optimal value using a predetermined method such as Newton's method based on the amount of output encoded data, and setting the normalization coefficient α so that the amount of output encoded data converges on the target value. be exposed.

したがって正規化係数αは後述するように,符号化され
たデータの量が固定長化の目標値に近いか否かを判断す
ることにより、修正される.正規化係数αの初期値は一
定の値とされてもよいし、その都度おおよその値を設定
してもよい。
Therefore, the normalization coefficient α is modified by determining whether the amount of encoded data is close to the target value for fixed length conversion, as described later. The initial value of the normalization coefficient α may be a constant value, or may be set to an approximate value each time.

AC符号化部32にはさらに、a算出部44から正規化
係数aが入力される。a算出部44は総アクティビティ
算出部26において算出された総アクティビティに基づ
き正規化係数aを設定する.ブロック化部!2から出力
されるブロックごとの画像データは、ブロックアクティ
ビティ算出部20にも送られる.ブロックアクティビテ
ィ算出部20は、ブロックごとのアクティビテイ、すな
わちそのブロックに高城周波数成分の画像データが含ま
れている程度を算出する。ブロックのアクテイビティは
、ブロックを構成する各画素データとこれらの画素デー
タの平均値との差の絶対値を加算することによって求め
られる。
The AC encoding unit 32 further receives a normalization coefficient a from the a calculation unit 44 . The a calculation unit 44 sets the normalization coefficient a based on the total activity calculated by the total activity calculation unit 26. Blocking department! The image data for each block output from the block activity calculation section 20 is also sent to the block activity calculation section 20. The block activity calculation unit 20 calculates the activity of each block, that is, the extent to which image data of the Takagi frequency component is included in the block. The activity of a block is determined by adding the absolute value of the difference between each pixel data constituting the block and the average value of these pixel data.

ブロックアクティビティ算出部20から出力されるブロ
ックごとのアクティビティは、総アクティビティ算出部
26およびビット配分算出部40へ出力される。
The activity for each block output from the block activity calculation unit 20 is output to the total activity calculation unit 26 and the bit allocation calculation unit 40.

総アクティピティ算出部26はブロックアクテイビティ
算出部20から送られるブロックごとのアクティビティ
を加算し、アクティビティの合計値を算出する。総アク
ティビティ算出部26はアクテイビティの合計値をビッ
ト配分算出部40へ出力する。
The total activity calculation section 26 adds up the activities for each block sent from the block activity calculation section 20, and calculates the total value of the activities. The total activity calculation unit 26 outputs the total activity value to the bit allocation calculation unit 40.

AC符号化部32は、第4図に示すようにジグザグ状に
スキャンされて入力される変換係数の交流成分をα算出
部44から送られる正規化係t’l aによって正規化
し,符号化する.変換係数の交流成分は零が連続するこ
とが多いため、零の値のデータの連続する量すなわち零
のラン長を検出し、零のラン長および非零の振幅を求め
、これを2次元ハフマン符号化する。AC符号化部32
からの出力は固定長化部36へ送られる. 一方、ブロック化部l2から出力されるブロックごとの
画像データの直流成分は、符号化部28のDC符号化部
30へ送られ、DC符号化部30において,ハフマン符
号化される. DC符号化部30から出力されるDC符
号化データは出力バッファ38へ送られる。
As shown in FIG. 4, the AC encoding unit 32 normalizes the alternating current component of the transform coefficient inputted by scanning in a zigzag pattern using the normalization coefficient t'l a sent from the α calculation unit 44, and encodes it. .. Since the alternating current component of the conversion coefficient often has continuous zeros, the continuous amount of zero value data, that is, the zero run length, is detected, the zero run length and non-zero amplitude are obtained, and this is converted into a two-dimensional Huffman encode. AC encoding section 32
The output from is sent to the fixed length converter 36. On the other hand, the DC component of the image data for each block output from the blocking unit l2 is sent to the DC encoding unit 30 of the encoding unit 28, and is Huffman encoded in the DC encoding unit 30. The DC encoded data output from the DC encoder 30 is sent to the output buffer 38.

ビット配分算出部40は、ブロックアクティビティ算出
部20から送られるブロックごとのアクティビティと、
総アクティビティ算出部26から送られるアクティビテ
ィの合計値を用いて、各ブロックに配分される符号化ビ
ットを算出する.各ブロックに配分される符号化ビット
とは、ブロックごとに2次元ハフマン符号化され、低域
成分から出力されるデータをどこまでで打ち切るか、す
なわち符号化されたデータを何ビットまで出力するかを
規定するビット数である.ビット配分算出部40で配分
された符号化ビットは、α判足部16から正規化係数α
が入力されない場合に、固定長化部36において固定長
化のために使用される。
The bit allocation calculation unit 40 calculates the activity for each block sent from the block activity calculation unit 20,
Using the total activity value sent from the total activity calculation unit 26, the encoded bits to be allocated to each block are calculated. The encoded bits allocated to each block are two-dimensional Huffman encoded for each block, and determine at what point the data output from the low-frequency component should be cut off, in other words, how many bits of encoded data should be output. This is the specified number of bits. The encoded bits allocated by the bit allocation calculation unit 40 are calculated by the normalization coefficient α from the α size foot unit 16.
is used for fixed length conversion in the fixed length conversion section 36 when the input is not input.

各ブロックに配分される符号化ビットbit旧は、例え
ば次の式で与えられる. bit B1= (  (act b/act tlx
bit[flagl }+ { Carry Over
} =− fil上式において、bit[flaglは
画像全体の総ビット数を表し、符号化において複数のブ
ロックにより構成される画像全体に割り当てられるビッ
ト数である.すなわち、ブロックごとの2次元ハフマン
符号化されたデータが低域成分から順に出力されたとき
に、所定のビット数でデータの出力を打ち切った場合に
、画像全体として何ビットを割り当てるかを表すビット
数である.このビット数により圧縮符号化され出力され
るデータの量が定められる。
The coded bits allocated to each block are given by the following formula, for example. bit B1= ((act b/act tlx
bit[flagl }+ { Carry Over
} =-fil In the above formula, bit[flagl represents the total number of bits of the entire image, and is the number of bits allocated to the entire image composed of a plurality of blocks in encoding. In other words, when two-dimensional Huffman encoded data for each block is output in order from the low frequency component, the bits indicate how many bits will be allocated to the entire image if the data output is stopped at a predetermined number of bits. It is a number. This number of bits determines the amount of data that is compressed and encoded and output.

act bは各ブロックごとのアクテイピテイである.
 act tは総アクテイビテイを表し、ブロックのア
クティビティの合計値である。したがって、上式の( 
 fact b/act tl x bit[flag
] }は、画像全体に割り当てられるビット数を、ブロ
ックのアクティビティの合計値に対する各ブロックごと
のアクティビティの比によって配分するものである. {Carry Over}は、前ブロックからの繰り越
しビットを表し、後述するように、配分される符号化ビ
ットbit Blを求めようとしているブロックの1つ
前のブロックから繰り越されたビット、すなわち1つ前
のブロックに割り当てられたにちかかわらず、使用され
なかったビット数である.なお、繰り越しビット{Ca
rry Over}を考慮することなく、ビット配分を
行ってもよい。
act b is the activity for each block.
act t represents the total activity and is the sum of the activities of the block. Therefore, the above equation (
fact b/act tl x bit[flag
] } distributes the number of bits allocated to the entire image according to the ratio of the activity of each block to the total activity of the block. {Carry Over} represents a carryover bit from the previous block, and as described later, the bit carried over from the block immediately before the block for which the allocated encoded bit bit Bl is to be obtained, that is, the bit carried over from the previous block. This is the number of bits that were allocated to the block but were not used. Note that the carryover bit {Ca
Bit allocation may be performed without considering }.

ビット配分算出部40から出力される、各ブロックに配
分される符号化ビットbit旧は,固定長化部36へ送
られる. 正規化係数aが入力されている場合には、固定長化部3
6でのアクティビティに基く固定長化は行われない。但
し、出力バッファ38が才−バーフローしないように、
各ブロックのビット配分(bitB)をすべて最大値に
固定してお<.シたがってAC符号化データは上記最大
値を越えない範囲で出力バッファ38へ出力される。
The old coded bits to be allocated to each block, which are output from the bit allocation calculating section 40, are sent to the fixed length converting section 36. If the normalization coefficient a is input, the fixed length section 3
6 is not fixed length based on activity. However, to prevent the output buffer 38 from overflowing,
The bit allocation (bitB) of each block is all fixed to the maximum value. Therefore, the AC encoded data is output to the output buffer 38 within a range that does not exceed the maximum value.

出力バッファ38には固定長化部36によってビット数
を制限されたブロックごとのAC符号化データが入力さ
れる。出力バッファ38には一定の符号長のDC符号化
データおよび、ビット数を制限されたAC符号化データ
が蓄積され、これらのデータはゲート42に送られる。
The output buffer 38 receives AC encoded data for each block whose number of bits is limited by the fixed length converter 36 . The output buffer 38 stores DC encoded data with a fixed code length and AC encoded data with a limited number of bits, and these data are sent to the gate 42.

ゲート42は、出力バッファ38から送られたデータを
一旦蓄積し、制御部22かものゲートイネーブル信号に
よってこれらのデータを、コネクタ44を通してメモリ
カード50に送出する.これによりデータがメモリカー
ド50に記録される. なお、記録媒体としてはメモリカード50の他、磁気デ
ィスク、光ディスク等の記録媒体を用いてもよい。
The gate 42 temporarily stores the data sent from the output buffer 38, and sends this data to the memory card 50 through the connector 44 in response to a gate enable signal from the control section 22. The data is thereby recorded on the memory card 50. In addition to the memory card 50, a magnetic disk, an optical disk, or other recording medium may be used as the recording medium.

出力バッファ38から出力されるデータはまた、符号カ
ウンタ24にも送られる.符号カウンタ24は、出力バ
ッファ38から送られたデータの打号量をカウントする
.符号カウンタ24の出力は制御部22へ送られる. 制御部22は本装置の各部の動作を図示しない信号線を
通して制御する制副部である。α設定部18は正規化係
数αを,前述のように所定の方法によって計算する.制
御部22は、α設定部l8に対して正規化係数αの作成
を要求する.制御部22はまた、α判定部l6からの判
定に応じて固定長化部36を制御する。
Data output from output buffer 38 is also sent to symbol counter 24. The code counter 24 counts the number of codes sent from the output buffer 38. The output of the code counter 24 is sent to the control section 22. The control section 22 is a control section that controls the operation of each section of the apparatus through signal lines (not shown). The α setting unit 18 calculates the normalization coefficient α using a predetermined method as described above. The control unit 22 requests the α setting unit l8 to create a normalization coefficient α. The control unit 22 also controls the fixed length converting unit 36 according to the determination from the α determining unit l6.

第2図のフローにより、本装置の動作を説明する. まず、DC符号量、すなわちDC符号化データに割り当
てられるビット数が算出される(10ロ)α設定部l8
から正規化係数αが制御部22へ人力され、制御部22
は正規化係数αを符号化器28のα判定部l6へ転送す
る+102)  α判定部l6は,α設定部l8から入
力された正規化係t’l aがOであるか否かを判定す
る+1041 .正規化係数αがOである場合、すなわ
ちα設定部l8から正規化係数aが送られていない場合
には、DC符号化部30によりDC成分が符号化される
( 1301 .次に、符号化器28のビット配分算出
部40でブロックピット配分が作成される(1321 
  α算出部44において総アクティビティ算出部から
のデータに応じて正規化係数aが作成され,これによっ
てAC符号化部32でAC成分が符号化される(134
3 .符号化されたAC成分データは固定長化部36で
、ビット配分算出部40からのブロックビット配分によ
って固定長化される(1361。全ブロックについて符
号化が終了したか否かを判断しf1381 、終了して
いない場合にはステップ130に戻る.全ブロックにつ
いて符号化が済むとこの処理が終了する. ステップ104においてa設定部18から入力された正
規化係数αがOでないと判定された場合、すなわちα設
定部l8から正規化係数αが送られている場合には、α
設定部l8から入力された正規化係数αにより正規化を
行う.この場合には、ブロック化部l2からDC符号化
部30に送られたそのブロックのDC成分が符号化され
(ステップ1101.出力バッファ38に送られる.次
に,2次元直交変換部l4から変換係数のAC成分がA
C符号化部32へ送られて符号化が行われ、α設定部l
8からα判定部l6を通してAC符号化部32へ送られ
た正規化係数αによって、符号化が行われる.このとき
,固定長化部36におけるビット配分値は、アクティビ
ティの値に関係なく,あらかじめ定められた一定値に固
定されるCステップ112),固定長化されたデータは
出力バッファ38に蓄積され、そのデータ量が符号カウ
ンタ24でカウントされる. DC成分の符号化およびAC成分の符号化が全ブロック
について終了したか否かを判定し(ステップ114)、
終了していない場合には、ステップ110に戻り、DC
成分の符号化およびAC成分の符号化を繰り返す.DC
成分の符号化およびAC成分の符号化が全ブロックにつ
いて終了すると、符号カウンタ24でカウントされたデ
ータ量が制御部22へ送られ(ステップ116),制御
部22は符号量が固定長化の目標値に充分近いか否かを
判断する(ステップ11U.この目標値は、符号化され
た1画像のデータに割り当てる符号量としてあらかじめ
所定のビット数が設定される. 符号量が目標値を越えている場合または目標値に近くな
い場合には,α設足部18において新たに正規化係数α
を算出する(ステップ1201.その後、ステップ10
2に戻って、再びα設定部18から正規化係数αが入力
され,α判定部l6へ転送される(102) 符号カウンタ24からの符号量が目標値を越えず,かつ
目標値に充分近い場合には、制御部22はゲート42に
ゲートイネーブル信号を送出し11221 .出力パッ
ファ38に蓄積されている符号化されたデータを、コネ
クタ44を通してメモリカード50に送出する1124
1  これにより符号化データがメモリカード50に記
録される. 本実施例によれば、α設定部l8から正規化係数αが符
号化器28に入力されているか否かを判断し.入力され
ている場合には、これによって符号化データ量を制限し
,得られた符号量が目標値に近いことを判断してゲート
から出力させるようにしている.得られた符号量が目標
値をオーバーするか、または目標値に近くない場合には
,α設定部l8においてより適したαが設定され,α判
定部l6に送られる.したがって、最適の正規化係数α
を求め、これによって固定長化を行うことができるから
、要求される画質、メモリカード50の容量等に応じて
適切な圧縮を行うことができる.このように最適値とし
て設定された正規化係数αは符号化器28の外部で設定
されているから,他の画像データの圧縮符号化に用いる
こともできる. また、α設定部l8から正規化係数αが入力されている
場合にち、符号化器内部のビット配分算出部40におい
て算出された符号化ビットbit旧により固定長化が行
われるから、出力バッファ38がオーバーフローするこ
とがない. なお,上記の実施例においては,固定長化部36から出
力される符号化データを出力バッファ38にM積し、制
御部22からのゲートイネーブル信号によってゲート4
2へ出力するようにしているが、符号化器28内に出力
バッファ38を設けることなく、ゲート42に出力バッ
ファを設けるようにしてもよい。この場合には符号カウ
ンタ24でカウントした符号化されたデータの符号量を
制御部22で判断し、目標値に近い場合には、その時の
正規化係数αを用いて各ブロックの符号化を行い、符号
化されたデータを出力バッファへ出力するようにすれば
よい. 劾一一里 本発明によれば、圧縮符号化装置は、符号化器の外部に
おいて、正規化係数αを設定し、これを用いて固定長化
を行うようにしている。正規化係数αは符号化器の外部
で設定されるから、正規化係数αを複数の画像データの
圧縮に使用することができる.しかも符号化され出力さ
れるデータの上限が定められているため、出力バッファ
がオーバーフローすることがない。
The operation of this device will be explained using the flow shown in Figure 2. First, the DC code amount, that is, the number of bits allocated to DC encoded data is calculated (10) α setting unit l8
The normalization coefficient α is manually input to the control unit 22 from
transfers the normalization coefficient α to the α determination unit l6 of the encoder 28+102) The α determination unit l6 determines whether the normalization coefficient t'l a input from the α setting unit l8 is O. +1041. When the normalization coefficient α is O, that is, when the normalization coefficient a is not sent from the α setting unit l8, the DC component is encoded by the DC encoding unit 30 (1301. Next, the encoding A block pit allocation is created in the bit allocation calculation unit 40 of the device 28 (1321
In the α calculation unit 44, a normalization coefficient a is created according to the data from the total activity calculation unit, and based on this, the AC component is encoded in the AC encoding unit 32 (134
3. The encoded AC component data is converted into a fixed length by the fixed length conversion unit 36 by block bit allocation from the bit allocation calculation unit 40 (1361. It is determined whether or not encoding has been completed for all blocks, f1381, If the encoding has not been completed, the process returns to step 130. This process ends when all blocks have been encoded. If it is determined in step 104 that the normalization coefficient α input from the a setting unit 18 is not O, That is, when the normalization coefficient α is sent from the α setting unit l8, α
Normalization is performed using the normalization coefficient α input from the setting unit l8. In this case, the DC component of the block sent from the blocking unit l2 to the DC encoding unit 30 is encoded (step 1101) and sent to the output buffer 38. Next, the DC component of the block sent from the blocking unit l2 to the DC encoding unit 30 is encoded (step 1101). The AC component of the coefficient is A
It is sent to the C encoding unit 32 for encoding, and is sent to the α setting unit l.
Encoding is performed using the normalization coefficient α sent from 8 to the AC encoding unit 32 through the α determination unit l6. At this time, the bit allocation value in the fixed length converting unit 36 is fixed to a predetermined constant value regardless of the activity value (C step 112), and the fixed length data is accumulated in the output buffer 38, The amount of data is counted by the code counter 24. Determine whether DC component encoding and AC component encoding have been completed for all blocks (step 114);
If it has not finished, return to step 110 and
Repeat component encoding and AC component encoding. D.C.
When the encoding of the components and the encoding of the AC components are completed for all blocks, the amount of data counted by the code counter 24 is sent to the control unit 22 (step 116), and the control unit 22 determines that the amount of code is the target of fixed length. (Step 11U. This target value is set in advance as a predetermined number of bits as the code amount to be allocated to one encoded image data. If the code amount exceeds the target value If the value is not close to the target value, the α setting section 18 newly sets the normalization coefficient α.
(Step 1201. Then, Step 10
Returning to step 2, the normalization coefficient α is input again from the α setting unit 18 and transferred to the α determination unit 16 (102) If the code amount from the code counter 24 does not exceed the target value and is sufficiently close to the target value. In the case of 11221 . 1124 sending the encoded data stored in the output puffer 38 to the memory card 50 through the connector 44;
1 The encoded data is thereby recorded on the memory card 50. According to the present embodiment, it is determined whether the normalization coefficient α is input to the encoder 28 from the α setting unit l8. If it is input, the amount of coded data is limited by this, and it is determined that the amount of code obtained is close to the target value and output from the gate. If the obtained code amount exceeds the target value or is not close to the target value, a more suitable α is set in the α setting unit l8 and sent to the α determining unit l6. Therefore, the optimal normalization factor α
Since it is possible to obtain a fixed length, it is possible to perform appropriate compression according to the required image quality, capacity of the memory card 50, etc. Since the normalization coefficient α set as the optimum value in this way is set outside the encoder 28, it can also be used for compression encoding of other image data. Furthermore, when the normalization coefficient α is input from the α setting unit l8, fixed length conversion is performed using the encoded bits calculated in the bit allocation calculation unit 40 inside the encoder, so the output buffer 38 will not overflow. In the above embodiment, the encoded data output from the fixed length converting section 36 is multiplied by M into the output buffer 38, and the gate 4 is multiplied by the gate enable signal from the control section 22.
Although the output buffer 38 is not provided in the encoder 28, an output buffer may be provided in the gate 42. In this case, the control unit 22 determines the code amount of the coded data counted by the code counter 24, and if it is close to the target value, each block is coded using the normalization coefficient α at that time. , just output the encoded data to the output buffer. According to the present invention, the compression encoding device sets a normalization coefficient α outside the encoder, and uses this to perform fixed length encoding. Since the normalization coefficient α is set outside the encoder, the normalization coefficient α can be used to compress multiple image data. Moreover, since the upper limit of the data to be encoded and output is determined, the output buffer will not overflow.

また、符号化器外部から正規化係数αが供給されない場
合にも,ブロックのアクテビティに基づき固定長化を行
うことができる。
Further, even if the normalization coefficient α is not supplied from outside the encoder, it is possible to perform fixed length conversion based on the activity of the block.

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

第1図は、本発明による画像信号圧縮符号化装置の一実
施例を示すブロック図、 第2図は、第l図の装置の動作を示すフロチャート、 第3図は、ブロックごとの画素データの例を示す図、 第4図は、変換係数の交流成分の符号化の順序を示す図
である。 主要部 の。一の説明 14. . . 2次元直交変換部 1G. . .α判定部 18. . .α設定部 20..  ブロックアクティピティ算出部24..符
号カウンタ 26. . .総アクティビティ算出部28. . .
符号化部 30. . . DC符号化部 32. . . AC符号化部 36. . .固定長化部 出力バッファ ピット配分算出部, ゲート α算出部 メモリカード
FIG. 1 is a block diagram showing an embodiment of the image signal compression encoding device according to the present invention, FIG. 2 is a flowchart showing the operation of the device shown in FIG. 1, and FIG. 3 is pixel data for each block. FIG. 4 is a diagram showing the coding order of AC components of transform coefficients. Main part. Explanation 14. .. .. Two-dimensional orthogonal transformation unit 1G. .. .. α determination unit 18. .. .. α setting section 20. .. Block activity calculation unit 24. .. Sign counter 26. .. .. Total activity calculation unit 28. .. ..
Encoding unit 30. .. .. DC encoding unit 32. .. .. AC encoding unit 36. .. .. Fixed length section output buffer pit allocation calculation section, gate α calculation section memory card

Claims (1)

【特許請求の範囲】 1、1つの画面を構成するディジタル画像データを複数
のブロックに分割して各ブロックの画像データについて
2次元直交変換符号化を行う画像信号圧縮符号化装置に
おいて、該装置は、 前記複数のブロックに分割されたデジタル画像データを
2次元直交変換する直交変換手段と、該直交変換手段に
より直交変換されたデータを符号化する符号化手段と、 前記符号化手段から出力される前記ブロックごとの符号
化データ量を制限する符号化出力制御手段と、 前記符号化手段において用いられる正規化係数を設定す
る正規化係数設定手段とを有し、 前記符号化出力制御手段は、前記正規化係数設定手段か
ら前記正規化係数が入力された場合にはあらかじめ定め
られた値によって前記符号化データ量の制限を行い、前
記正規化係数設定手段から前記正規化係数が入力されな
い場合には前記分割されたブロックごとの画像データの
アクティビティに基づいて前記符号化データ量の制限を
行うことを特徴とする画像信号圧縮符号化装置。 2、請求項1に記載の装置において、該装置はさらに、 前記分割されたブロックごとの画像データのアクティビ
ティを算出するブロックアクティビティ算出手段と、 該ブロックアクティビティ算出手段により算出されたブ
ロックごとのアクティビティに基づき前記ブロックごと
に配分される符号化データ量を算出する符号化データ量
配分手段とを有し、 前記符号化出力制御手段は、前記正規化係数設定手段か
ら前記正規化係数が入力されない場合に、前記符号化デ
ータ量配分手段からの出力に応じて前記符号化データ量
の制限を行うことを特徴とする画像信号圧縮符号化装置
[Claims] 1. An image signal compression encoding device that divides digital image data constituting one screen into a plurality of blocks and performs two-dimensional orthogonal transform encoding on the image data of each block, the device comprising: , orthogonal transformation means for two-dimensional orthogonal transformation of the digital image data divided into the plurality of blocks; encoding means for encoding the data orthogonally transformed by the orthogonal transformation means; and output from the encoding means. encoding output control means for limiting the amount of encoded data for each block; and normalization coefficient setting means for setting a normalization coefficient used in the encoding means; When the normalization coefficient is input from the normalization coefficient setting means, the amount of encoded data is limited by a predetermined value, and when the normalization coefficient is not input from the normalization coefficient setting means. An image signal compression encoding device characterized in that the amount of encoded data is limited based on the activity of image data for each divided block. 2. The apparatus according to claim 1, further comprising: block activity calculation means for calculating the activity of the image data for each divided block; and an activity for each block calculated by the block activity calculation means. encoded data amount allocation means for calculating the amount of encoded data to be allocated to each block based on the encoded data amount allocation means; . An image signal compression encoding device, characterized in that the amount of encoded data is limited in accordance with the output from the encoded data amount distribution means.
JP18746289A 1989-07-21 1989-07-21 Image signal compression coding device Expired - Fee Related JP2931328B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18746289A JP2931328B2 (en) 1989-07-21 1989-07-21 Image signal compression coding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18746289A JP2931328B2 (en) 1989-07-21 1989-07-21 Image signal compression coding device

Publications (2)

Publication Number Publication Date
JPH0353666A true JPH0353666A (en) 1991-03-07
JP2931328B2 JP2931328B2 (en) 1999-08-09

Family

ID=16206501

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18746289A Expired - Fee Related JP2931328B2 (en) 1989-07-21 1989-07-21 Image signal compression coding device

Country Status (1)

Country Link
JP (1) JP2931328B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04137685U (en) * 1991-06-14 1992-12-22 日本電気ホームエレクトロニクス株式会社 Image data compression encoding device
JPH06165151A (en) * 1992-11-25 1994-06-10 Matsushita Electric Ind Co Ltd Device for controlling video coding quantity

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04137685U (en) * 1991-06-14 1992-12-22 日本電気ホームエレクトロニクス株式会社 Image data compression encoding device
JPH06165151A (en) * 1992-11-25 1994-06-10 Matsushita Electric Ind Co Ltd Device for controlling video coding quantity

Also Published As

Publication number Publication date
JP2931328B2 (en) 1999-08-09

Similar Documents

Publication Publication Date Title
JPH02305182A (en) Picture signal compressing and encoding device
JPH0723383A (en) Method and apparatus for compressing/ expanding image for bit fixation
JP2921358B2 (en) Image coding device
JPH0832037B2 (en) Image data compression device
JP2001217721A (en) Huffman encoding device, huffman encoding method and recording medium recorded with huffman encoding processing program
JPH0353666A (en) Picture signal compression coder
JP2915922B2 (en) Image signal compression coding device
JPH04255190A (en) Picture data compressor
JPH0541860A (en) Picture compression coder
JP2935334B2 (en) Code amount control method
JP2633118B2 (en) Image data compression apparatus and method
JP3014200B2 (en) Image data encoding apparatus and encoding method
JP2887843B2 (en) Image data restoration method and apparatus
JPH0575867A (en) Image data coder
JPH0548914A (en) Image data coder
JP2820807B2 (en) Image data encoding method
JPH04208775A (en) Bit distribution encoding system
JPH03238970A (en) Conversion coding system
JPH07222152A (en) Picture processor and compressed data control method in the picture processor
JP2891751B2 (en) Image signal compression encoding method and apparatus
JPH0646268A (en) Code quantity controller
JP2816169B2 (en) Image data compression device
JPH04314266A (en) Device and method for encoding picture data
JPH0583560A (en) Image data encoder
JPH04334270A (en) Picture encoding device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20080521

Year of fee payment: 9

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090521

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees