JPH05300379A - Code quantity distribution circuit - Google Patents

Code quantity distribution circuit

Info

Publication number
JPH05300379A
JPH05300379A JP9675392A JP9675392A JPH05300379A JP H05300379 A JPH05300379 A JP H05300379A JP 9675392 A JP9675392 A JP 9675392A JP 9675392 A JP9675392 A JP 9675392A JP H05300379 A JPH05300379 A JP H05300379A
Authority
JP
Japan
Prior art keywords
block
activity
total
amount
circuit
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
JP9675392A
Other languages
Japanese (ja)
Inventor
Takayasu Fujitani
卓靖 藤谷
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 JP9675392A priority Critical patent/JPH05300379A/en
Publication of JPH05300379A publication Critical patent/JPH05300379A/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

PURPOSE:To attain ideal bit distribution for fixed length processing. CONSTITUTION:A total activity calculation section 42 integrates a block activity to obtain the total activity. A correction quantity calculation section 45 obtains a calculation equation for the correction in response to a compression rate by the training method and uses a normalizing coefficient alpha as a variable to obtain the correction quantity of a distributed bit number. A subtructor 43 subtracts the correction from the block activity to obtain the block activity after the correction. A multiplier 46 multiplies a total correction quantity with the correction quantity to obtain the total correction quantity and a subtractor 44 subtracts the total correction quantity from the total activity to obtain the total activity after the correction. A divider 33 obtains a ratio of outputs of the subtractors 43, 44 to obtain an activity ratio and a multiplier 43 multiplies the activity ratio with an AC total bit number to obtain a distributed bit number. The activity ratio is corrected and the ideal bit distribution is obtained.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、直交変換符号化によっ
て画像データを圧縮する直交変換符号化装置の符号量を
定レート化するための符号量配分回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a code amount distribution circuit for making the code amount of an orthogonal transform coding device for compressing image data by orthogonal transform coding a constant rate.

【0002】[0002]

【従来の技術】近年、画像情報を高能率符号化して記録
又は伝送するシステムが普及してきている。ディジタル
化した静止画像の情報量は音声等の情報量に比べて膨大
であり、情報を圧縮することなく伝送又は記録等を行う
と、通信速度及び費用等の点で問題が多い。このため、
多少の画質劣化を許容しても高い圧縮率で静止画データ
を圧縮している。このような動きに対して、ISO(In
ternational Organization for Standardization)とC
CITT(International Telegraph and Telephone Co
nsultative Committee)の合同国際ワーキンググループ
JPEG(JointPhotographic Experts Group)は、直
交変換の一種であるDCT(Discrete Cosine Transfor
m )を用いた静止画像の高能率符号化の勧告案を提案し
ている。
2. Description of the Related Art In recent years, a system for highly efficiently encoding and recording or transmitting image information has become widespread. The amount of information of a digitized still image is enormous as compared with the amount of information of voice and the like, and if transmission or recording is performed without compressing information, there are many problems in terms of communication speed and cost. For this reason,
Still image data is compressed at a high compression rate even if some deterioration in image quality is allowed. In response to such movement, ISO (In
ternational Organization for Standardization) and C
CITT (International Telegraph and Telephone Co
Joint Photographic Experts Group (JPEG), a joint international working group of the nsultative Committee, is a type of orthogonal transform called DCT (Discrete Cosine Transfor).
We have proposed a proposal for efficient coding of still images using m).

【0003】図6はこの勧告案による符号化を説明する
ためのブロック図である。
FIG. 6 is a block diagram for explaining the encoding according to this recommendation.

【0004】この方式では、静止画像データをDCT
(離散コサイン変換)処理した後、エントロピー符号化
の一種であるハフマン符号化することによりデータを圧
縮する。入力画像データは、ブロック化回路1におい
て、例えば8×8画素のブロック単位でDCT回路2に
与える。DCT回路2はブロックデータをDCT処理し
て変換係数を量子化回路3に出力する。DCT回路2か
らのDCT変換係数は水平及び垂直方向に低域から高域
まで各周波数性分を有しており、全データの平均値はD
C成分として量子化回路3に与え、他の成分はAC成分
として量子化回路3に与える。量子化回路3は、図示し
ない量子化テーブルに格納された量子化係数に基づい
て、DCT変換係数を量子化してデータ量を削減しDP
CM回路5及びジグザグスキャン回路7に出力する。
In this system, still image data is converted to DCT.
After (discrete cosine transform) processing, Huffman coding, which is a type of entropy coding, is performed to compress the data. The input image data is given to the DCT circuit 2 in the block formation circuit 1 in block units of, for example, 8 × 8 pixels. The DCT circuit 2 DCT-processes the block data and outputs the transform coefficient to the quantization circuit 3. The DCT transform coefficient from the DCT circuit 2 has frequency components in the horizontal and vertical directions from low to high frequencies, and the average value of all data is D.
The C component is given to the quantizing circuit 3, and the other components are given to the quantizing circuit 3 as AC components. The quantizing circuit 3 quantizes the DCT transform coefficient based on the quantizing coefficient stored in a quantizing table (not shown) to reduce the data amount, and to reduce the DP amount.
Output to the CM circuit 5 and the zigzag scan circuit 7.

【0005】DPCM回路5には変換係数のDC成分に
対する量子化出力を与えており、DPCM回路5は、メ
モリ4にDC値を記憶させると共に読出して、前ブロッ
クのDC成分との差分を求める。この差分値をDC成分
用のDCハフマン符号化回路6に与えて符号化する。す
なわち、DCハフマン符号化回路6は、図示しないDC
用ハフマンテーブルを参照して差分値の符号長をハフマ
ン符号化すると共に、このハフマン符号と差分値のコー
ドとの組みのデータをマルチプレクサ(以下、MUXと
いう)10に出力する。
The DPCM circuit 5 is provided with a quantized output for the DC component of the transform coefficient, and the DPCM circuit 5 stores the DC value in the memory 4 and reads it out to obtain the difference from the DC component of the previous block. This difference value is given to the DC Huffman coding circuit 6 for DC components to be coded. That is, the DC Huffman encoding circuit 6 uses the DC (not shown).
The code length of the difference value is Huffman-encoded by referring to the Huffman table for use, and the data of the combination of the Huffman code and the code of the difference value is output to the multiplexer (hereinafter referred to as MUX) 10.

【0006】一方、変換係数の交流成分に対する量子化
出力はジグザグスキャン回路7において水平及び垂直の
低域から高域に向かってジグザグスキャンされて読出さ
れる。ゼロラン長計測部8は、ジグザグスキャン回路7
の出力の非零係数値によってリセットされて、零データ
が連続する数(ゼロラン長)を計数する。非零値が入力
されると、ゼロラン長計測部8はゼロラン長をACハフ
マン符号化回路9に出力する。ACハフマン符号化回路
9にはジグザグスキャン回路7からAC成分の量子化出
力も与える。ACハフマン符号化回路9は、非零係数と
ゼロラン長計測部8からのゼロラン長とが入力される
と、図示しないハフマンテーブルを用いて、ゼロラン長
と非零係数の符号長との組のデータをハフマン符号化す
る。更に、ACハフマン符号化回路9は生成したハフマ
ン符号に非零係数のコードを付加してMUX10に出力す
る。MUX10はDC成分及びAC成分のハフマン符号を
合成して出力する。
On the other hand, the quantized output for the AC component of the transform coefficient is zigzag-scanned in the zigzag scanning circuit 7 from the low band in the horizontal and vertical directions to the high band and is read. The zero run length measuring unit 8 includes a zigzag scan circuit 7
It is reset by the non-zero coefficient value of the output of and counts the number of consecutive zero data (zero run length). When a non-zero value is input, the zero run length measuring unit 8 outputs the zero run length to the AC Huffman coding circuit 9. The AC Huffman encoding circuit 9 is also supplied with the quantized output of the AC component from the zigzag scan circuit 7. When the non-zero coefficient and the zero-run length from the zero-run length measuring unit 8 are input, the AC Huffman coding circuit 9 uses a Huffman table (not shown) to set a pair of data of the zero-run length and the code length of the non-zero coefficient. Is Huffman encoded. Further, the AC Huffman coding circuit 9 adds the code of the non-zero coefficient to the generated Huffman code and outputs it to the MUX 10. The MUX 10 synthesizes and outputs the Huffman codes of the DC component and the AC component.

【0007】なお、図示しない復号側においては、先ず
ハフマン符号を解読してゼロラン長と非零係数値の符号
長を得、これらの符号長を用いて係数値を判別する。こ
うして、変換係数ブロックを構成し、更に逆量子化及び
直交逆変換を行ってデータを復元する。
On the decoding side (not shown), the Huffman code is first decoded to obtain the zero run length and the code length of the non-zero coefficient value, and the coefficient value is discriminated using these code lengths. In this way, a transform coefficient block is formed, and further inverse quantization and orthogonal inverse transform are performed to restore data.

【0008】ところで、ハフマン符号化回路6,9は、
量子化出力の統計的符号量から算出した結果に基づいて
符号化を行うものであり、出現確率が高いデータには短
いビットを割当て、出現確率が低いデータには長いビッ
トを割当てる可変長符号化によって全体のデータ量を削
減する。従って、量子化出力の統計的分布によって符号
化後のデータ量は変化する。
By the way, the Huffman coding circuits 6 and 9 are
Variable-length coding that assigns short bits to data with a high occurrence probability and long bits to data with a low occurrence probability. Reduce the total amount of data. Therefore, the data amount after encoding changes depending on the statistical distribution of the quantized output.

【0009】しかし、可変長符号化を採用すると、絵柄
によって圧縮符号量が相違してしまうので、圧縮データ
を蓄積メディアに記録する場合において、記録に要する
蓄積メディアの容量を記録前に知ることができず、蓄積
メディアを効率的に使用することができない。例えば、
電子式カメラに応用した場合には、記録媒体の容量が一
定であるものとしても、記録可能な画像の枚数は一定と
ならない。そこで、圧縮符号量を定レート化する方式を
採用することがある。
However, when the variable length coding is adopted, the compression code amount varies depending on the picture. Therefore, when the compressed data is recorded in the storage medium, it is possible to know the capacity of the storage medium required for recording before recording. No, and the storage media cannot be used efficiently. For example,
When applied to an electronic camera, the number of recordable images is not constant even if the capacity of the recording medium is constant. Therefore, a method of making the compression code amount a constant rate may be adopted.

【0010】例えば、量子化回路3に与える量子化係数
を変化させることによって、符号量の大まかな制御が可
能である。量子化係数を比較的大きな値に設定すると、
量子化ステップは粗くなって情報は劣化するが、量子化
出力のダイナミックレンジは小さくなって符号量も小さ
くなる。実際には、量子化テーブルの基本量子化係数に
正規化係数αを乗算する方法を採用する。また、予め各
ブロックに所定の符号量を割当て(ブロックビット配分
し)、符号化出力が割当てられた符号量を超過すると、
そのブロックにおける符号化を停止する方法を採用する
こともある。
For example, by changing the quantization coefficient given to the quantization circuit 3, it is possible to roughly control the code amount. If you set the quantization factor to a relatively large value,
Although the quantization step becomes coarse and the information deteriorates, the dynamic range of the quantization output becomes small and the code amount also becomes small. In practice, a method of multiplying the basic quantization coefficient of the quantization table by the normalization coefficient α is adopted. Further, when a predetermined code amount is assigned to each block in advance (block bit allocation), and the code output exceeds the assigned code amount,
A method of stopping the coding in the block may be adopted.

【0011】正規化係数αを制御して定レート化する場
合には、規定符号量に収束するまで正規化係数αを適宜
変化させて繰返し符号化を行う。この方法では、収束に
要する時間が不明であり、最終的な符号化に長時間を要
してしまうことがある。一方、ビット配分のみを行う場
合には、符号量が規定符号量に到達せず、比較的大きな
余りビットが生じてしまうことがあり、また、ブロック
高域成分が全く用いられないこともある。
In the case of controlling the normalization coefficient α to make it a constant rate, the normalization coefficient α is appropriately changed until it converges to the specified code amount, and the coding is repeated. In this method, the time required for convergence is unknown and the final encoding may take a long time. On the other hand, when only bit allocation is performed, the code amount may not reach the specified code amount, a relatively large number of extra bits may be generated, and the block high frequency component may not be used at all.

【0012】そこで、正規化係数αの制御とブロックビ
ット配分とを併用して総符号量を規定符号量以内に収め
る方法が採用される。この方法では、先ず、画像の符号
量を推定するためにブロック毎の情報量(以下、アクテ
ィビティという)を求める。アクティビティとしては、
ブロックデータの偏差量の和を用いる方法、DCT変換
係数の絶対値和を用いる方法又は変換係数のビット長の
和を用いる方法等がある。また、正規化係数αはアクテ
ィビティの総和の関数として求める。配分ビット数は規
定符号量にブロックアクティビティとアクティビティの
総和との比を掛けて求める。この方法では正規化係数α
及びビット配分を求めるための全画像データのスキャン
と、実際の符号化時のスキャンとの2回のスキャンを行
えばよく、高速な固定長符号化が可能である。
Therefore, a method is adopted in which the control of the normalization coefficient α and the block bit allocation are used together to keep the total code amount within the specified code amount. In this method, first, the amount of information (hereinafter referred to as activity) for each block is calculated in order to estimate the code amount of the image. As an activity,
There are a method of using the sum of deviation amounts of block data, a method of using the sum of absolute values of DCT transform coefficients, and a method of using the sum of bit lengths of transform coefficients. Further, the normalization coefficient α is obtained as a function of the total sum of activities. The distribution bit number is obtained by multiplying the specified code amount by the ratio of the block activity and the total sum of the activities. In this method, the normalization coefficient α
Also, it is sufficient to perform two scans, that is, a scan of all image data for obtaining the bit allocation and a scan at the time of actual encoding, and high-speed fixed-length encoding is possible.

【0013】図7はこのような2回のスキャンを行う直
交変換符号化装置を示すブロック図である。図7の例に
おいては、直交変換にDCT処理を採用している。図
中、破線矢印は第1スキャンの処理を示し、実線矢印は
第2スキャンの処理を示している。
FIG. 7 is a block diagram showing an orthogonal transform coding apparatus for performing such a scan twice. In the example of FIG. 7, DCT processing is adopted for orthogonal transformation. In the figure, the broken line arrow indicates the process of the first scan, and the solid line arrow indicates the process of the second scan.

【0014】先ず、第1スキャンにおいては、画像の総
アクティビティを求めて、符号量固定長化のためのパラ
メータを設定する。すなわち、入力画像をブロック化回
路1においてブロック化してDCT回路2に与える。D
CT回路2はDCT処理を行って変換係数を出力する。
変換係数のDC成分は重要な量であるので、先ずその符
号量を求める。つまり、変換係数のDC成分はDC量子
化回路11において量子化した後、DPCM回路5におい
て前ブロックのDC成分値との差分値を求めてDCハフ
マン符号化回路6に与える。DCハフマン符号化回路6
は、DCハフマンテーブル12を参照してDPCM回路5
の出力をハフマン符号化する。DCハフマン符号化回路
6からの符号化出力をDC総符号量算出部13に与えて、
DC成分の符号化出力の総符号量を算出する。求められ
たDC総符号量はブロックビット配分制御部14に与え
る。
First, in the first scan, the total activity of the image is obtained and the parameters for fixing the code length are set. That is, the input image is divided into blocks in the blocking circuit 1 and given to the DCT circuit 2. D
The CT circuit 2 performs DCT processing and outputs a transform coefficient.
Since the DC component of the transform coefficient is an important quantity, its code quantity is first obtained. That is, the DC component of the transform coefficient is quantized in the DC quantizing circuit 11, and then the DPCM circuit 5 obtains the difference value from the DC component value of the previous block and gives it to the DC Huffman coding circuit 6. DC Huffman encoding circuit 6
Refers to the DC Huffman table 12 and the DPCM circuit 5
Huffman-encode the output of. The encoded output from the DC Huffman encoding circuit 6 is given to the DC total code amount calculation unit 13,
The total code amount of the encoded output of the DC component is calculated. The calculated DC total code amount is given to the block bit allocation control unit 14.

【0015】一方、変換係数の交流成分はブロックアク
ティビティ算出部15に与える。ブロックアクティビティ
算出部15は、変換係数の符号長を計数してブロックアク
ティビティを求める。総アクティビティ算出部20は各ブ
ロックのアクティビティを加算して総アクティビティを
求める。符号量を規定符号量以内に抑えるために、正規
化係数α算出部16は、求めた総アクティビティを用いて
量子化テーブル17に格納された基本量子化係数を正規化
する正規化係数αを計算する。これで第1スキャンの動
作は終了する。
On the other hand, the AC component of the conversion coefficient is given to the block activity calculating section 15. The block activity calculation unit 15 counts the code length of the transform coefficient to obtain the block activity. The total activity calculation unit 20 adds the activities of each block to obtain the total activity. In order to keep the code amount within the specified code amount, the normalization coefficient α calculation unit 16 calculates the normalization coefficient α that normalizes the basic quantization coefficient stored in the quantization table 17 using the obtained total activity. To do. This completes the operation of the first scan.

【0016】次に、第2スキャンでは実際の符号化を行
う。DCT回路2からの変換係数は、第1スキャンと同
様に、直流成分についてはDC量子化回路11、DPCM
回路5及びDCハフマン符号化回路6によって符号化し
てMUX10に出力する。また、ブロックアクティビティ
算出部15はDCT変換係数からブロックアクティビティ
を計算して、ブロックビット配分制御部14に与える。ブ
ロックビット配分制御部14は交流成分に使用可能な総符
号量(AC総符号量(ビット数))を(画像の規定符号
量−DC総符号量)の演算によって求める。
Next, in the second scan, actual encoding is performed. As with the first scan, the transform coefficient from the DCT circuit 2 is the DC quantizing circuit 11 and DPCM for the DC component.
It is encoded by the circuit 5 and the DC Huffman encoding circuit 6 and output to the MUX 10. Further, the block activity calculation unit 15 calculates the block activity from the DCT transform coefficient and gives it to the block bit allocation control unit 14. The block bit allocation control unit 14 obtains the total code amount (AC total code amount (the number of bits)) that can be used for the AC component by calculating (the specified code amount of the image-the DC total code amount).

【0017】一方、DCT変換係数の交流成分はAC量
子化回路19に与える。量子化テーブル17の基本量子化係
数は正規化係数αによって正規化して正規化量子化テー
ブル18に格納する。AC量子化回路19は正規化量子化テ
ーブル18からの量子化係数に基づいて、AC成分を量子
化してジグザグスキャン回路20を介してACハフマン符
号化回路9に出力する。ジグザグスキャン回路20は水平
及び垂直方向の低域から高域に向かってジグザグに量子
化出力を出力する。
On the other hand, the AC component of the DCT transform coefficient is given to the AC quantizing circuit 19. The basic quantization coefficient of the quantization table 17 is normalized by the normalization coefficient α and stored in the normalized quantization table 18. The AC quantization circuit 19 quantizes the AC component based on the quantized coefficient from the normalized quantization table 18 and outputs the quantized AC component to the AC Huffman encoding circuit 9 via the zigzag scan circuit 20. The zigzag scanning circuit 20 outputs a quantized output in a zigzag manner from a low band in the horizontal and vertical directions to a high band.

【0018】ACハフマン符号化回路9はゼロラン長及
び非零係数のコード長の組みのデータをACハフマンテ
ーブル21を参照して2次元ハフマン符号化してMUX10
に出力する。この場合には、ブロックビット配分制御部
14によって各ブロック毎にビット配分が行われている。
すなわち、ブロックビット配分制御部14は各ブロックの
配分ビット数を(画像の規定符号量−DC総符号量)×
(ブロックアクティビティ/総アクティビティ)の演算
によって決定する。ACハフマン符号化回路9からの符
号化データの符号量はブロックビット配分制御部14に与
える。ブロックビット配分制御部14は符号化データの符
号量の積算値がブロックの配分ビット数を越えると、符
号化停止命令をACハフマン符号化回路9に出力する。
そうすると、ACハフマン符号化回路9は符号化処理を
停止して、ブロック配分ビット数を超過した符号化デー
タは出力しない。MUX10はAC成分及びDC成分につ
いての符号化出力を多重して出力する。こうして、総符
号量が規定符号量を越えてしまうことが防止される。
The AC Huffman encoding circuit 9 two-dimensionally Huffman-encodes the data of the set of the zero run length and the code length of the non-zero coefficient by referring to the AC Huffman table 21 to perform MUX 10.
Output to. In this case, the block bit allocation control unit
14 allocates bits to each block.
That is, the block bit allocation control unit 14 calculates the number of allocated bits of each block by (prescribed code amount of image−DC total code amount) ×
Determined by calculation of (block activity / total activity). The code amount of the encoded data from the AC Huffman encoding circuit 9 is given to the block bit allocation control unit 14. The block bit distribution control unit 14 outputs a coding stop command to the AC Huffman coding circuit 9 when the integrated value of the code amount of the coded data exceeds the number of allocated bits of the block.
Then, the AC Huffman coding circuit 9 stops the coding process and does not output the coded data that exceeds the block allocation bit number. The MUX 10 multiplexes the encoded outputs for the AC component and the DC component and outputs the multiplexed outputs. Thus, the total code amount is prevented from exceeding the specified code amount.

【0019】このように、図7の装置では、基本量子化
係数を正規化する正規化係数αを1画面の総アクティビ
ティに基づいて制御すると共に、各ブロック毎にビット
配分を決定することによって、符号量の固定長化を行っ
ている。
As described above, in the apparatus of FIG. 7, the normalization coefficient α for normalizing the basic quantization coefficient is controlled based on the total activity of one screen, and the bit allocation is determined for each block. The code length is fixed.

【0020】図8は図7中のブロックビット配分制御部
14の具体的な構成を示すブロック図である。
FIG. 8 is a block bit allocation control unit in FIG.
FIG. 14 is a block diagram showing a specific configuration of 14.

【0021】ブロックビット配分制御部14の配分ビット
数計算部23にはDC総符号量(ビット数)、総アクティ
ビティ及びブロックアクティビティを与える。配分ビッ
ト数計算部23は、上述したように、規定符号量からDC
総ビット数を減算してAC総ビット数を求め、更に、総
アクティビティ及びブロックアクティビティから各ブロ
ック毎の配分ビット数を求めて比較器24に出力する。
The distribution bit number calculation unit 23 of the block bit distribution control unit 14 is provided with the DC total code amount (bit number), total activity and block activity. As described above, the distributed bit number calculation unit 23 calculates the DC from the specified code amount.
The total number of bits is subtracted to obtain the total number of AC bits, and further, the number of distributed bits for each block is obtained from the total activity and the block activity and output to the comparator 24.

【0022】一方、DCT処理されて量子化されたブロ
ックデータはブロックメモリ22に格納される。ジグザグ
スキャン回路20はブロックメモリ22のデータをジグザグ
に読出して、ゼロラン長及び非零係数値の符号長の組み
のデータをACハフマン符号化回路9に出力する。AC
ハフマン符号化回路9はゼロラン長及び非零係数値の符
号長の組みのデータをACハフマンテーブル21を参照し
てハフマン符号に変換する。ACハフマン符号化回路9
の出力の符号量はアキュムレータ25を介して比較器24に
与える。
On the other hand, the DCT processed and quantized block data is stored in the block memory 22. The zigzag scan circuit 20 reads the data in the block memory 22 in a zigzag manner, and outputs the data of the set of the zero run length and the code length of the non-zero coefficient value to the AC Huffman encoding circuit 9. AC
The Huffman coding circuit 9 refers to the AC Huffman table 21 to convert the data of the combination of the zero run length and the code length of the non-zero coefficient value into the Huffman code. AC Huffman encoding circuit 9
The code amount of the output of is supplied to the comparator 24 via the accumulator 25.

【0023】アキュムレータ25は符号量を積算して積算
符号量を比較器24に与え、比較器24は所定ブロックの積
算符号量とブロック配分ビット数とを比較する。アキュ
ムレータ25からの積算符号量がブロック配分ビット数を
超過すると、比較器24は符号化停止命令をACハフマン
符号化回路9に出力すると共に、超過前の積算符号量と
ブロック配分ビット数との差(余りビット数)を繰越し
ビット数として配分ビット数計算部23に出力する。この
繰越しビット数は次のブロックにおけるブロック配分ビ
ット数に加算して繰越す。ACハフマン符号化回路9は
符号化停止命令が入力されると、符号化を停止してブロ
ック配分ビット数以内で符号化出力を出力する。
The accumulator 25 integrates the code amount and gives the integrated code amount to the comparator 24, and the comparator 24 compares the integrated code amount of a predetermined block with the block allocation bit number. When the accumulated code amount from the accumulator 25 exceeds the block allocation bit number, the comparator 24 outputs an encoding stop command to the AC Huffman encoding circuit 9, and the difference between the accumulated code amount and the block allocation bit number before the excess. The (remainder bit number) is output to the distributed bit number calculation unit 23 as the carry-over bit number. This carry-over bit number is added to the block distribution bit number in the next block and carried over. When the coding stop command is input, the AC Huffman coding circuit 9 stops coding and outputs a coding output within the number of block allocation bits.

【0024】ところで、各ブロックの配分ビット数は、
上述したように、ブロックアクティビティと総アクティ
ビティの比(以下、アクティビティ比という)を用いて
算出している。すなわち、予測した各ブロックの配分ビ
ット数とAC総ビット数との比(以下、配分ビット比と
いう)はアクティビティ比に一致する。しかし、ブロッ
クアクティビティは実際に符号化した場合に使用される
ビット数から求めたものではなく予測値であり、理想的
な配分ビット比はアクティビティ比と一致しないことが
ある。
By the way, the number of bits allocated to each block is
As described above, it is calculated using the ratio of block activity and total activity (hereinafter referred to as activity ratio). That is, the ratio between the predicted distribution bit number of each block and the AC total bit number (hereinafter referred to as the distribution bit ratio) matches the activity ratio. However, the block activity is not a value obtained from the number of bits actually used for encoding, but a predicted value, and the ideal allocation bit ratio may not match the activity ratio.

【0025】図9は配分ビット数を算出する従来の符号
量配分回路31を示すブロック図である。この回路は、図
7においてはブロックアクティビティ算出部15、総アク
ティビティ算出部20及びブロックビット配分制御部14に
相当する。
FIG. 9 is a block diagram showing a conventional code amount distribution circuit 31 for calculating the distribution bit number. This circuit corresponds to the block activity calculation unit 15, the total activity calculation unit 20, and the block bit allocation control unit 14 in FIG. 7.

【0026】DCT回路の出力はアクティビティ積算部
32に与える。アクティビティ積算部32はDCT変換係数
の交流成分の絶対値を1ブロック分積算してブロックア
クティビティを求め、ブロックアクティビティを積算し
て総アクティビティを求める。ブロックアクティビティ
及び総アクティビティは割算器33に与えて両者の比を求
める。割算器33は求めた比をアクティビティ比として掛
算器34に出力する。掛算器34にはAC総ビット数も供給
しており、掛算器34はAC総ビット数にアクティビティ
比を乗算して各ブロックの配分ビット数を求める。
The output of the DCT circuit is the activity integrating section.
Give to 32. The activity integrating section 32 integrates the absolute value of the AC component of the DCT transform coefficient for one block to obtain the block activity, and integrates the block activity to obtain the total activity. The block activity and the total activity are given to the divider 33 to obtain the ratio of both. The divider 33 outputs the obtained ratio to the multiplier 34 as an activity ratio. The AC total bit number is also supplied to the multiplier 34, and the multiplier 34 multiplies the AC total bit number by the activity ratio to obtain the distribution bit number of each block.

【0027】図10は図9の従来の符号量配分回路31の
特性を説明するためのグラフである。図10は横軸にア
クティビティ比をとり縦軸に配分ビット比をとって、圧
縮率を1/4に設定した場合の特性を示している。図1
0の直線は符号量配分回路31の特性を示し、点はある画
像について実測した理想的な特性を示している。図10
に示すように、図9の符号量配分回路31によるビット配
分を採用すると、理想的な特性とのずれが比較的大き
い。特に、アクティビティ比が比較的高い場合、すなわ
ち、画面が比較的精細である場合には、理想的な配分ビ
ット比よりも計算による配分ビット比の方が極めて大き
くなり、不要なビット数が割り当てられていることが分
かる。
FIG. 10 is a graph for explaining the characteristics of the conventional code amount distribution circuit 31 of FIG. FIG. 10 shows the characteristics when the compression ratio is set to 1/4 by taking the activity ratio on the horizontal axis and the distribution bit ratio on the vertical axis. Figure 1
The straight line of 0 indicates the characteristic of the code amount distribution circuit 31, and the dot indicates the ideal characteristic actually measured for a certain image. Figure 10
As shown in FIG. 9, when the bit allocation by the code amount allocation circuit 31 of FIG. 9 is adopted, the deviation from the ideal characteristic is relatively large. Especially when the activity ratio is relatively high, that is, when the screen is relatively fine, the calculated allocation bit ratio is much larger than the ideal allocation bit ratio, and unnecessary bits are allocated. I understand that.

【0028】また、図11は他の方法を採用した従来の
符号量配分回路35を示すブロック図である。
FIG. 11 is a block diagram showing a conventional code amount distribution circuit 35 adopting another method.

【0029】DCT変換係数はアクティビティ積算部36
に与える。アクティビティ積算部36は変換係数の交流成
分のビット数を1ブロック分積算してブロックアクティ
ビティを求め、ブロックアクティビティを積算して総ア
クティビティを求める。割算器33はアクティビティ積算
部36からのブロックアクティビティと総アクティビティ
の比からアクティビティ比を求め、掛算器34はこのアク
ティビティ比とAC総ビット数とを乗算して配分ビット
数を求める。
The DCT conversion coefficient is calculated by the activity integrating section 36.
Give to. The activity integrating section 36 integrates the number of bits of the AC component of the conversion coefficient for one block to obtain the block activity, and integrates the block activity to obtain the total activity. The divider 33 obtains the activity ratio from the ratio of the block activity and the total activity from the activity accumulator 36, and the multiplier 34 multiplies the activity ratio by the AC total bit number to obtain the distributed bit number.

【0030】図12及び図13はいずれも横軸にアクテ
ィビティ比をとり縦軸に配分ビット比をとって、符号量
配分回路35の特性を示すグラフである。図12は圧縮率
を1/4に設定した場合の特性であり、図13は圧縮率
を1/16に設定した場合の特性である。
12 and 13 are graphs showing the characteristics of the code amount distribution circuit 35 with the activity ratio on the horizontal axis and the distribution bit ratio on the vertical axis. FIG. 12 shows the characteristics when the compression rate is set to 1/4, and FIG. 13 shows the characteristics when the compression rate is set to 1/16.

【0031】圧縮率を1/4に設定すると、図12に示
すように、符号量配分回路35の配分ビット数は理想的な
配分ビット数に略等しくなり、高精度のビット配分が行
われることが分かる。しかしながら、圧縮率を1/16
に高くすると、図13に示すように、符号量配分回路35
によるビット配分は理想的なビット配分と著しく相違し
てしまう。これは、正規化係数αを大きくすることによ
って圧縮率を高くしており、量子化において情報ビット
の削除量が大きくなって、アクティビティ比に誤差が生
じるからである。
When the compression rate is set to 1/4, as shown in FIG. 12, the distribution bit number of the code amount distribution circuit 35 becomes substantially equal to the ideal distribution bit number, and highly accurate bit distribution is performed. I understand. However, the compression rate is 1/16
If it is set to a high level, as shown in FIG.
Therefore, the bit allocation due to is significantly different from the ideal bit allocation. This is because the compression rate is increased by increasing the normalization coefficient α, and the amount of information bits to be deleted increases in quantization, resulting in an error in the activity ratio.

【0032】[0032]

【発明が解決しようとする課題】このように、上述した
従来の符号量配分回路においては、計算によって求めた
ビット配分と理想的なビット配分とのずれが比較的大き
いという問題点があった。
As described above, the conventional code amount distribution circuit described above has a problem in that the difference between the calculated bit distribution and the ideal bit distribution is relatively large.

【0033】本発明は、予測した配分ビット数を補正す
ることにより、理想的なビット配分を行うことができる
符号量配分回路を提供することを目的とする。
It is an object of the present invention to provide a code amount distribution circuit capable of performing ideal bit allocation by correcting the predicted allocation bit number.

【0034】[0034]

【課題を解決するための手段】本発明に係る符号量配分
回路は、入力映像信号を所定のブロック単位で直交変換
符号化し量子化して得られる符号化出力を定レート化す
るために前記各ブロックに使用可能な符号量を配分する
符号量配分回路において、前記各ブロックの情報量を示
す指標と全ブロックの情報量を示す指標との比を求めて
前記各ブロックの配分量を予測する配分量予測手段と、
前記全ブロックの情報量を示す指標又は量子化特性に基
づいて、前記量子化により発生した前記配分量予測手段
の予測誤差を補正する補正手段とを具備したことを特徴
とする符号量配分回路。
A code amount distribution circuit according to the present invention is configured to orthogonally transform and code an input video signal in units of a predetermined block and quantize the coded output to obtain a coded output at a constant rate. In a code amount distribution circuit for allocating the usable code amount, a distribution amount for predicting the distribution amount of each block by obtaining the ratio of the index indicating the information amount of each block and the index indicating the information amount of all blocks Prediction means,
A code amount distribution circuit, comprising: a correction unit that corrects a prediction error of the distribution amount prediction unit generated by the quantization based on an index indicating the information amount of all the blocks or a quantization characteristic.

【0035】[0035]

【作用】本発明において、配分量予測手段は各ブロック
の情報量を示す指標と全ブロックの情報量を示す指標と
の比を求めて配分量を予測する。補正手段はこの予測値
を全ブロックの情報量を示す指標又は量子化特性に基づ
いて補正する。これにより、量子化による情報の欠落に
よって変化した配分量を補正する。
In the present invention, the distribution amount predicting means predicts the distribution amount by obtaining the ratio of the index indicating the information amount of each block and the index indicating the information amount of all blocks. The correction means corrects the predicted value based on the index indicating the information amount of all blocks or the quantization characteristic. As a result, the distribution amount changed due to the loss of information due to quantization is corrected.

【0036】[0036]

【実施例】以下、図面を参照して本発明の実施例につい
て説明する。図1は本発明に係る符号量配分回路の一実
施例を示すブロック図である。本実施例は図7の直交変
換符号化装置に適用したものである。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a code amount distribution circuit according to the present invention. The present embodiment is applied to the orthogonal transform coding device of FIG.

【0037】符号量配分回路41にはAC総ビット数、ブ
ロックアクティビティ及び正規化係数αを入力する。A
C総ビット数は符号化に使用可能な規定符号量から第1
スキャンにおいて算出したDC総ビット数を減算するこ
とにより得られる。ブロックアクティビティは、ブロッ
クデータの偏差量の和、1ブロックのDCT変換係数の
絶対値和又は1ブロックのDCT変換係数のビット長の
和等である。正規化係数αは、総アクティビティの関数
であり、基本量子化係数を調整して画面の圧縮比を決定
する。
The total number of AC bits, the block activity, and the normalization coefficient α are input to the code amount distribution circuit 41. A
The total number of C bits is the first from the specified code amount that can be used for encoding.
It is obtained by subtracting the total DC bit number calculated in the scan. The block activity is a sum of deviation amounts of block data, a sum of absolute values of DCT transform coefficients of one block, a sum of bit lengths of DCT transform coefficients of one block, or the like. The normalization coefficient α is a function of the total activity, and adjusts the basic quantization coefficient to determine the compression ratio of the screen.

【0038】ブロックアクティビティは総アクティビテ
ィ算出部42及び減算器43に供給する。総アクティビティ
算出部42は全ブロックのブロックアクティビティを積算
することにより、総アクティビティを求めて減算器44に
出力する。正規化係数αは補正量計算部45に与える。補
正量計算部45はアクティビティ比を補正するための補正
量を計算して減算器43及び掛算器46に出力する。補正量
計算部45は、圧縮率(正規化係数α)を変数とする1次
の補正式に基づいて補正量を計算する。この1次式の定
数項は、実際に画像圧縮を行ってトレーニング法によっ
て決定しておく。
The block activity is supplied to the total activity calculator 42 and the subtractor 43. The total activity calculation unit 42 calculates the total activity by adding up the block activities of all blocks and outputs the total activity to the subtractor 44. The normalization coefficient α is given to the correction amount calculation unit 45. The correction amount calculation unit 45 calculates a correction amount for correcting the activity ratio and outputs it to the subtractor 43 and the multiplier 46. The correction amount calculation unit 45 calculates the correction amount based on a first-order correction equation having a compression rate (normalization coefficient α) as a variable. The constant term of this linear expression is determined by a training method by actually performing image compression.

【0039】減算器43はブロックアクティビティから補
正量を減算して補正後のブロックアクティビティを割算
器33に出力し、掛算器46は補正量に総ブロック数を掛算
して総補正量を求めて減算器44に出力する。減算器44は
総アクティビティから総補正量を減算して補正後の総ア
クティビティを割算器33に出力する。割算器33は補正後
のブロックアクティビティと補正後の総アクティビティ
との比をアクティビティ比として掛算器34に出力する。
掛算器34はAC総ビット数にアクティビティ比を乗算し
て配分ビット数を求めて出力する。
The subtractor 43 subtracts the correction amount from the block activity and outputs the corrected block activity to the divider 33. The multiplier 46 multiplies the correction amount by the total number of blocks to obtain the total correction amount. Output to the subtractor 44. The subtractor 44 subtracts the total correction amount from the total activity and outputs the corrected total activity to the divider 33. The divider 33 outputs the ratio of the corrected block activity and the corrected total activity to the multiplier 34 as an activity ratio.
The multiplier 34 multiplies the AC total bit number by the activity ratio to obtain the distribution bit number and outputs it.

【0040】次に、このように構成された実施例の動作
について図2及び図3のグラフを参照して説明する。図
2は横軸に正規化係数αをとり縦軸に補正量をとって、
補正量計算部45を説明するためのグラフである。
Next, the operation of the embodiment thus constructed will be described with reference to the graphs of FIGS. In FIG. 2, the horizontal axis represents the normalization coefficient α and the vertical axis represents the correction amount,
6 is a graph for explaining the correction amount calculation unit 45.

【0041】ブロックアクティビティは総アクティビテ
ィ算出部42及び減算器43に与える。総アクティビティ算
出部42はブロックアクティビティを積算して総アクティ
ビティを求めて減算器44に出力する。減算器43はブロッ
クアクティビティから補正量を減算して補正後のブロッ
クアクティビティを得ている。補正量は補正量計算部45
によって計算する。補正量計算部45は、先ず、複数枚の
画像を圧縮して、トレーニング法により最適な補正量を
得るための計算式を求める。図2は破線によって画面の
圧縮率を1/16に設定した場合の補正量の計算式を示
している。図2の□印は実際の符号化において理想的な
補正量を実測によって求めたものである。例えば、図2
では画像の圧縮比を1/16に設定した場合の所定画面
の正規化係数αが0.9であるときには、補正量を45
にすると理想的なビット配分が得られたことを示してい
る。
The block activity is given to the total activity calculator 42 and the subtractor 43. The total activity calculation unit 42 integrates the block activities to obtain the total activity and outputs it to the subtractor 44. The subtractor 43 subtracts the correction amount from the block activity to obtain the corrected block activity. The correction amount is calculated by the correction amount calculation unit 45.
Calculate by The correction amount calculation unit 45 first compresses a plurality of images and obtains a calculation formula for obtaining an optimum correction amount by a training method. FIG. 2 shows a calculation formula of the correction amount when the compression rate of the screen is set to 1/16 by the broken line. The □ mark in FIG. 2 is obtained by actually measuring the ideal correction amount in the actual encoding. For example, in FIG.
Then, when the normalization coefficient α of the predetermined screen when the image compression ratio is set to 1/16 is 0.9, the correction amount is 45
Shows that an ideal bit allocation was obtained.

【0042】補正量計算部45は、このトレーニング法に
よる計算式に基づいて、正規化係数αに対応する補正量
を求めて減算器43及び掛算器46に出力している。掛算器
46は補正量に総ブロック数を掛算して1画面の総補正量
を求めて減算器44に出力する。減算器44は総アクティビ
ティから総補正量を減算して補正後の総アクティビティ
を求めて割算器33に出力する。割算器33は補正後のブロ
ックアクティビティと総アクティビティとの比を求めて
アクティビティ比として掛算器34に出力し、掛算器34は
AC総ビット数にアクティビティ比を乗算して配分ビッ
ト数を求める。
The correction amount calculation unit 45 obtains the correction amount corresponding to the normalization coefficient α based on the calculation formula by the training method and outputs it to the subtractor 43 and the multiplier 46. Multiplier
Reference numeral 46 multiplies the correction amount by the total number of blocks to obtain the total correction amount for one screen, and outputs it to the subtractor 44. The subtractor 44 subtracts the total correction amount from the total activity to obtain the corrected total activity, and outputs the corrected total activity to the divider 33. The divider 33 obtains the ratio between the corrected block activity and the total activity and outputs it as the activity ratio to the multiplier 34. The multiplier 34 multiplies the AC total bit number by the activity ratio to obtain the distribution bit number.

【0043】図3は横軸に割算器33からのアクティビテ
ィ比をとり縦軸に配分ビット比をとって、圧縮比が1/
16である場合の実施例の特性を示すグラフである。図
3において直線は実施例回路の特性を示し、点はある画
像について実測した理想的な特性をプロットして示して
いる。
In FIG. 3, the horizontal axis represents the activity ratio from the divider 33, and the vertical axis represents the distribution bit ratio.
It is a graph which shows the characteristic of the example in case of being 16. In FIG. 3, the straight line indicates the characteristic of the embodiment circuit, and the dots indicate the ideal characteristic actually measured for a certain image.

【0044】この図3に示すように、トレーニング法に
よって求めた1次式に基づいた補正量でブロックアクテ
ィビティ及び総アクティビティを補正した後アクティビ
ティ比を求めることにより、割算器33からのアクティビ
ティ比の予測結果と理想的な配分ビット比とは略一致
し、予測した各ブロックの配分ビット数と理想的な配分
ビット数とが略一致する。
As shown in FIG. 3, the activity ratio from the divider 33 is calculated by calculating the activity ratio after correcting the block activity and the total activity with the correction amount based on the linear expression obtained by the training method. The prediction result and the ideal allocation bit ratio substantially match, and the predicted distribution bit number of each block and the ideal distribution bit number substantially match.

【0045】このように、本実施例においては、補正量
計算部45がトレーニング法によって画像の精細度に対応
する正規化係数αを変数とした配分ビット数の一次の補
正式を求め、以後、この1次式を用いて正規化係数αに
基づく補正量を計算して、ブロックアクティビティ及び
総アクティビティを補正しており、圧縮比が比較的高い
場合でも、予測したアクティビティ比を理想的な配分ビ
ット比に一致させることができる。このため、各ブロッ
クの配分ビット数が理想的なものとなり、圧縮比に拘ら
ず、良好な符号化が可能となる。
As described above, in the present embodiment, the correction amount calculation unit 45 obtains the primary correction formula of the distribution bit number with the normalization coefficient α corresponding to the definition of the image as a variable by the training method. The block activity and the total activity are corrected by calculating the correction amount based on the normalization coefficient α using this linear expression, and even if the compression ratio is relatively high, the predicted activity ratio is ideally allocated to bits. Can match the ratio. Therefore, the number of bits allocated to each block is ideal, and good coding can be performed regardless of the compression ratio.

【0046】図4は本発明の他の実施例を示すブロック
図である。図4において図1と同一の構成要素には同一
符号を付して説明を省略する。
FIG. 4 is a block diagram showing another embodiment of the present invention. 4, the same components as those in FIG. 1 are designated by the same reference numerals and the description thereof will be omitted.

【0047】本実施例の符号量配分回路51は補正量計算
部52のみが図1の実施例と異なり、補正量計算部52は、
総アクティビティ算出部42からの総アクティビティを用
いて補正量を計算して減算器43及び掛算器46に出力す
る。第1スキャンが終了した時点において、総アクティ
ビティを補正量計算部52に与えて、ビット配分の補正量
を算出させるようになっている。
The code amount distribution circuit 51 of this embodiment differs from the embodiment of FIG. 1 only in the correction amount calculation unit 52, and the correction amount calculation unit 52 is
The correction amount is calculated using the total activity from the total activity calculation unit 42 and output to the subtractor 43 and the multiplier 46. At the time when the first scan is completed, the total activity is given to the correction amount calculation unit 52 to calculate the correction amount of bit allocation.

【0048】このように構成された実施例においては、
総アクティビティに基づいて補正量が決定される。正規
化係数αは総アクティビティの関数であり、補正量計算
部52からの補正量に基づいてブロックアクティビティ及
び総アクティビティを補正することによって、略理想的
な配分ビット数を得ることができる。
In the embodiment constructed as described above,
The correction amount is determined based on the total activity. The normalization coefficient α is a function of the total activity, and by correcting the block activity and the total activity based on the correction amount from the correction amount calculation unit 52, it is possible to obtain a substantially ideal allocation bit number.

【0049】図5は本発明の他の実施例を示すブロック
図である。図5において図1と同一の構成要素には同一
符号を付して説明を省略する。
FIG. 5 is a block diagram showing another embodiment of the present invention. 5, the same components as those in FIG. 1 are designated by the same reference numerals and the description thereof will be omitted.

【0050】本実施例の符号量配分回路55は、正規化係
数αに代えて、補正量計算部56にDCT変換係数の交流
成分に対する量子化出力のビット長の総和を与えている
点が図1の実施例と異なる。DCT変換係数はAC量子
化回路19に与える。AC量子化回路19は正規化量子化テ
ーブル18からの量子化係数に基づいてDCT変換係数の
交流成分を量子化して加算回路57に出力する。加算回路
57は量子化出力を順次加算して量子化出力のビット長の
総和を補正量計算部56に出力する。第1スキャンが終了
した時点において、量子化係数のビット長の総和を補正
量計算部56に与えて、ビット配分の補正量を算出させる
ようになっている。
In the code amount distribution circuit 55 of this embodiment, the sum of the bit lengths of the quantized outputs for the AC components of the DCT transform coefficients is given to the correction amount calculation section 56 instead of the normalization coefficient α. 1 is different from the first embodiment. The DCT transform coefficient is given to the AC quantization circuit 19. The AC quantization circuit 19 quantizes the AC component of the DCT transform coefficient based on the quantized coefficient from the normalized quantization table 18, and outputs it to the addition circuit 57. Adder circuit
57 sequentially adds the quantized outputs and outputs the sum of the bit lengths of the quantized outputs to the correction amount calculation unit 56. At the end of the first scan, the sum of the bit lengths of the quantized coefficients is given to the correction amount calculation unit 56 to calculate the correction amount of bit allocation.

【0051】このように構成された実施例においては、
補正量計算部56は量子化出力のビット長の総和に基づい
て補正量を決定する。この場合でも、図1の実施例と同
様に、補正量計算部56からの補正量に基づいてブロック
アクティビティ及び総アクティビティを補正することに
よって、略理想的な配分ビット数を得ることができる。
In the embodiment thus constructed,
The correction amount calculation unit 56 determines the correction amount based on the total bit length of the quantized output. Even in this case, similarly to the embodiment of FIG. 1, by correcting the block activity and the total activity based on the correction amount from the correction amount calculation unit 56, it is possible to obtain a substantially ideal number of allocated bits.

【0052】なお、本実施例では符号化に用いる正規化
量子化テーブル18を用いたが、独自の量子化テーブルを
用いてもよい。
Although the normalized quantization table 18 used for encoding is used in this embodiment, a unique quantization table may be used.

【0053】[0053]

【発明の効果】以上説明したように本発明によれば、予
測した配分量を補正しているので、理想的なビット配分
を行うことができるという効果を有する。
As described above, according to the present invention, since the predicted distribution amount is corrected, there is an effect that ideal bit distribution can be performed.

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

【図1】本発明に係る符号量配分回路の一実施例を示す
ブロック図。
FIG. 1 is a block diagram showing an embodiment of a code amount distribution circuit according to the present invention.

【図2】図1の実施例の動作を説明するためのグラフ。FIG. 2 is a graph for explaining the operation of the embodiment of FIG.

【図3】図1の実施例の動作を説明するためのグラフ。FIG. 3 is a graph for explaining the operation of the embodiment of FIG.

【図4】本発明の他の実施例を示すブロック図。FIG. 4 is a block diagram showing another embodiment of the present invention.

【図5】本発明の他の実施例を示すブロック図。FIG. 5 is a block diagram showing another embodiment of the present invention.

【図6】直交変換符号化装置を示すブロック図。FIG. 6 is a block diagram showing an orthogonal transform encoding device.

【図7】直交変換符号化装置を示すブロック図。FIG. 7 is a block diagram showing an orthogonal transform encoding device.

【図8】図7中のブロックビット配分制御部の具体的な
構成を示すブロック図。
8 is a block diagram showing a specific configuration of a block bit allocation control unit in FIG.

【図9】従来の符号量配分回路を示すブロック図。FIG. 9 is a block diagram showing a conventional code amount distribution circuit.

【図10】図9の従来例の特性を示すグラフ。10 is a graph showing the characteristics of the conventional example of FIG.

【図11】従来の符号量配分回路を示すブロック図。FIG. 11 is a block diagram showing a conventional code amount distribution circuit.

【図12】図11の従来例の特性を示すグラフ。12 is a graph showing characteristics of the conventional example of FIG.

【図13】図11の従来例の特性を示すグラフ。13 is a graph showing characteristics of the conventional example of FIG.

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

33…割算器、34,46…掛算器、41…符号量配分回路、42
…総アクティビティ算出部、43,44…減算器、45…補正
量計算部
33 ... Divider, 34, 46 ... Multiplier, 41 ... Code amount distribution circuit, 42
… Total activity calculator, 43, 44… Subtractor, 45… Correction amount calculator

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入力映像信号を所定のブロック単位で直
交変換符号化し量子化して得られる符号化出力を定レー
ト化するために前記各ブロックに使用可能な符号量を配
分する符号量配分回路において、 前記各ブロックの情報量を示す指標と全ブロックの情報
量を示す指標との比を求めて前記各ブロックの配分量を
予測する配分量予測手段と、 前記量子化により発生した前記配分量予測手段の予測誤
差を補正する補正手段とを具備したことを特徴とする符
号量配分回路。
1. A code amount distribution circuit for allocating a code amount usable to each block in order to convert a coded output obtained by orthogonal transform coding and quantizing an input video signal in a predetermined block unit into a constant rate. A distribution amount prediction unit that predicts a distribution amount of each block by obtaining a ratio of an index indicating the information amount of each block and an index indicating the information amount of all blocks; and the distribution amount prediction generated by the quantization. And a correction means for correcting the prediction error of the means.
【請求項2】 入力映像信号を所定のブロック単位で直
交変換符号化し量子化して得られる符号化出力を定レー
ト化するために前記各ブロックに使用可能な符号量を配
分する符号量配分回路において、 前記各ブロックの情報量を示す指標と全ブロックの情報
量を示す指標との比を求めて前記各ブロックの配分量を
予測する配分量予測手段と、 前記量子化により発生した前記配分量予測手段の予測誤
差を補正する補正手段とを具備したことを特徴とする符
号量配分回路。
2. A code amount allocating circuit for allocating a code amount usable to each block in order to convert a coded output obtained by orthogonal transform coding and quantizing an input video signal in a predetermined block unit into a constant rate. A distribution amount prediction unit that predicts a distribution amount of each block by obtaining a ratio of an index indicating the information amount of each block and an index indicating the information amount of all blocks; and the distribution amount prediction generated by the quantization. And a correction means for correcting the prediction error of the means.
JP9675392A 1992-04-16 1992-04-16 Code quantity distribution circuit Pending JPH05300379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9675392A JPH05300379A (en) 1992-04-16 1992-04-16 Code quantity distribution circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9675392A JPH05300379A (en) 1992-04-16 1992-04-16 Code quantity distribution circuit

Publications (1)

Publication Number Publication Date
JPH05300379A true JPH05300379A (en) 1993-11-12

Family

ID=14173431

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9675392A Pending JPH05300379A (en) 1992-04-16 1992-04-16 Code quantity distribution circuit

Country Status (1)

Country Link
JP (1) JPH05300379A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0884081A (en) * 1994-07-13 1996-03-26 Matsushita Electric Ind Co Ltd Digital encoding device and digital encoding/decoding device
US5901250A (en) * 1994-07-13 1999-05-04 Matsushita Electric Industrial Co., Ltd. Digital coding apparatus and digital coding/decoding apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0884081A (en) * 1994-07-13 1996-03-26 Matsushita Electric Ind Co Ltd Digital encoding device and digital encoding/decoding device
US5901250A (en) * 1994-07-13 1999-05-04 Matsushita Electric Industrial Co., Ltd. Digital coding apparatus and digital coding/decoding apparatus

Similar Documents

Publication Publication Date Title
US7496142B2 (en) Moving pictures encoding with constant overall bit-rate
US6590936B1 (en) Coded data transform method, transcoding method, transcoding system, and data storage media
US7881373B2 (en) Video data compression apparatus and method of same
US6072835A (en) Variable transfer rate control coding apparatus
EP0762775B1 (en) Device and method for compressing image data
EP0535960B1 (en) Coding signal processor
JP2963416B2 (en) Video encoding method and apparatus for controlling bit generation amount using quantization activity
US5933532A (en) Video data compression apparatus and method of same
US7388995B2 (en) Quantization matrix adjusting method for avoiding underflow of data
EP0859520B1 (en) Video signal coding systems and processes using adaptive quantization
JP5524072B2 (en) Video encoding device
EP0861003B1 (en) Code-amount control device and video coding device including the code-amount control device
US7065138B2 (en) Video signal quantizing apparatus and method thereof
JPH08172626A (en) Image compression coder
JPH07222154A (en) Method and apparatus for image coding
JPH10108184A (en) Image data processing unit and its method
JP3978810B2 (en) Encoding method and encoding apparatus using the same
JPH07203430A (en) Image coding device
JPH05300379A (en) Code quantity distribution circuit
EP0975178A2 (en) Moving picture decoding apparatus and moving picture decoding method
JP3800965B2 (en) Data rate converter
US20040234149A1 (en) Quantization matrix adjusting method for quality improvement
JP3934772B2 (en) Variable transfer rate encoding method and apparatus
JP3765129B2 (en) Encoding apparatus and encoding method
JP3015112B2 (en) Image processing method