JP2000217114A - Apparatus and method for compression coding amount control - Google Patents

Apparatus and method for compression coding amount control

Info

Publication number
JP2000217114A
JP2000217114A JP1783999A JP1783999A JP2000217114A JP 2000217114 A JP2000217114 A JP 2000217114A JP 1783999 A JP1783999 A JP 1783999A JP 1783999 A JP1783999 A JP 1783999A JP 2000217114 A JP2000217114 A JP 2000217114A
Authority
JP
Japan
Prior art keywords
code amount
stock
block
encoding
coding
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
JP1783999A
Other languages
Japanese (ja)
Inventor
Akihisa Nomura
明久 野村
Hiroaki Matsumoto
宏昭 松本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems 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 NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP1783999A priority Critical patent/JP2000217114A/en
Publication of JP2000217114A publication Critical patent/JP2000217114A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image compression coding method and an image compression coder, by which data can be most efficiently coded within a limited code amount. SOLUTION: This compression code amount control apparatus is provided with a block processing means 100, an orthogonal control means 101, a quantizing table 104, a quantizing means 102, a coding means 103, a code amount monitor means 106 and a stock storage means. Then the code amount monitor means 106 compares the object code amount per one block with a code amount of an output of the coding means 103 and controls the coding means 103 to conduct coding by adding part of the stocked code amount in the stock storage means to the object code amount, when the code amount of the output exceeds the object code amount. When the code amount of the stock is more than the exceeds code amount, the code amount used for the coding is subtracted from the stock and the means 106 forcibly terminates the coding of the block which is in progress at present, when the stocked code amount is less than the exceeded code amount.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、圧縮符号量制御装
置および圧縮符号量制御方法に関し、特に静止画に用い
られる圧縮符号量制御装置および圧縮符号量制御方法に
関する。
The present invention relates to a compression code amount control device and a compression code amount control method, and more particularly to a compression code amount control device and a compression code amount control method used for still images.

【0002】[0002]

【従来の技術】従来の圧縮符号化方法の一例として、J
PEG圧縮符号化方法を例に説明する。図4に示すよう
に、画像データを同じ大きさ、例えば8×8画素のサイ
ズとなるように複数のブロックに分割するブロック化手
段200と、ブロック化された画像データを直交変換、
例えばDCT(Discreat Cosine Transfer:離散コサ
イン)変換する直交変換手段201と、この直交変換手
段201より出力された変換係数を量子化テーブル20
4に示された係数で除算する量子化手段202、ハフマ
ン符号化などの冗長性圧縮符号化方式によって量子化手
段より出力されたデータを圧縮する符号化手段203か
ら構成されている。従来から、量子化テーブル204の
データを作成するために前処理が行われている。この前
処理においてはまず、基準量子化テーブルを用いて圧縮
を行う。すなわち、画像データをブロック化手段200
で8×8画素サイズの複数のブロックに分割し、ブロッ
ク化された画像データを直交変換手段201で離散コサ
イン変換し、変換係数を量子化手段で基準量子化テーブ
ルに示された係数で除算し、量子化手段より出力された
データを符号化手段でハフマン符号化などの冗長性圧縮
符号化方式によってデータを圧縮する。
2. Description of the Related Art As an example of a conventional compression encoding method, J.
The PEG compression encoding method will be described as an example. As shown in FIG. 4, a blocking unit 200 that divides image data into a plurality of blocks so as to have the same size, for example, a size of 8 × 8 pixels, and orthogonally transforms the blocked image data.
For example, orthogonal transform means 201 for performing DCT (discrete cosine transfer) transform, and transform coefficients output from the orthogonal transform
4 and a coding means 203 for compressing data output from the quantization means by a redundancy compression coding method such as Huffman coding. Conventionally, preprocessing has been performed to create data of the quantization table 204. In this preprocessing, first, compression is performed using a reference quantization table. That is, the image data is divided into
Is divided into a plurality of blocks each having a size of 8 × 8 pixels, and the block-formed image data is subjected to discrete cosine transform by the orthogonal transform means 201, and the transform coefficients are divided by the quantizing means by the coefficients indicated in the reference quantization table. The data output from the quantization means is compressed by a coding means using a redundancy compression coding method such as Huffman coding.

【0003】この一連の動作を行った後、圧縮した符号
量をチェックする。この符号量が目標符号量の範囲内で
なければ、この圧縮されたデータの符号量から量子化テ
ーブルの係数を算出し、この処理を数回繰り返すことで
所望の符号量とする圧縮データを作成する。上記の前処
理により決定された量子化データを用いて以下のように
圧縮動作が行われる。まず、上記前処理と同じく画像デ
ータをブロック化手段200で8×8画素サイズの複数
のブロックに分割し、ブロック化された画像データを直
交変換手段201で離散コサイン変換し、変換係数を量
子化手段で量子化テーブル204に示された係数で除算
し、量子化手段より出力されたデータを符号化手段でハ
フマン符号化などの冗長性圧縮符号化方式によってデー
タを圧縮する。ここで、符号化手段205からの符号化
された生成符号量を監視して、符号化中のブロックに対
する割当てをオーバーしたときには、そのブロックの符
号化をうち切る処理を行っていた。
After performing this series of operations, the compressed code amount is checked. If this code amount is not within the range of the target code amount, a coefficient of the quantization table is calculated from the code amount of the compressed data, and this process is repeated several times to create compressed data having a desired code amount. I do. The compression operation is performed as follows using the quantized data determined by the above preprocessing. First, similarly to the above preprocessing, the image data is divided into a plurality of blocks having a size of 8 × 8 pixels by the blocking means 200, and the block-formed image data is subjected to discrete cosine transform by the orthogonal transform means 201, and the transform coefficients are quantized. The data is divided by the coefficient shown in the quantization table 204 by the means, and the data output from the quantization means is compressed by the coding means by a redundancy compression coding method such as Huffman coding. Here, the encoded generated code amount from the encoding unit 205 is monitored, and when the allocation to the block being encoded is exceeded, the processing of terminating the encoding of the block is performed.

【0004】[0004]

【発明が解決しようとする課題】このような従来の画像
圧縮符号化方法及び画像圧縮符号化装置では、前処理に
おいて、基準量子化テーブルを用いて量子化後の非ゼロ
係数の比から1ブロックあたりの符号量を割り当てるの
みであり、符号化した場合のデータの冗長性について考
慮されていない。従って、データ量に対する柔軟性が少
ないという問題点がある。
In such a conventional image compression encoding method and image compression encoding apparatus, in the pre-processing, one block is calculated from the ratio of the non-zero coefficient after quantization using the reference quantization table. It only assigns a code amount per unit, and does not consider data redundancy when encoding. Therefore, there is a problem that flexibility with respect to the data amount is small.

【0005】例えば、圧縮後の1ブロックあたりの符号
量が、目標値よりも小さいときであっても、残りの符号
量が無駄になってしまうだけである。一方、上記のよう
に、符号量が割当量よりオーバーしたときは、単に符号
化をうち切るのみであり、データの冗長性に対する対策
については何ら考慮されていなかった。
For example, even when the code amount per block after compression is smaller than the target value, only the remaining code amount is wasted. On the other hand, as described above, when the code amount exceeds the allocation amount, the coding is simply stopped, and no measures against data redundancy have been considered.

【0006】本発明の目的は、限定された符号量内で最
も効率的に符号化できる画像圧縮符号化方法及び画像圧
縮符号化装置を提供することにある。
An object of the present invention is to provide an image compression encoding method and an image compression encoding apparatus which can encode the most efficiently within a limited code amount.

【0007】[0007]

【課題を解決するための手段】本発明の圧縮符号量制御
装置は、接画像データを所定画素サイズの複数のブロッ
クに分割するブロック化手段と、前記ブロック化された
画像データを離散コサイン変換する直交変換手段と、係
数を格納する量子化テーブルと、前記直交変換手段から
の変換係数を前記量子化テーブルの係数で除算する量子
化手段と、前記量子化手段より出力されたデータを圧縮
する符号化手段と、前記符号化手段の1ブロックあたり
の符号量を監視する符号量監視手段と、前記画像データ
の総目標符号量から算出される予備符号量のストックを
格納する手段とを備え、前記符号量監視手段は、1ブロ
ックあたりの目標符号量と前記符号化手段の出力の符号
量を比較し、前記目標符号量を越えた時、前記ストック
の符号量が前記越えた分の符号量以上の場合は前記符号
化手段に対しストック格納手段にあるストックされた符
号量の一部を加算して符号化を用う制御を行い使用した
符号量をストックから減算し、ストックされている符号
量が前記越えた分の符号量以下の場合は現在符号化中の
ブロックの符号化を強制的に終了することを特徴とす
る。
According to the present invention, there is provided a compression code amount control apparatus, comprising: blocking means for dividing tangent image data into a plurality of blocks of a predetermined pixel size; and discrete cosine transform of the blocked image data. Orthogonal transform means, a quantization table for storing coefficients, a quantizing means for dividing a transform coefficient from the orthogonal transform means by a coefficient of the quantization table, and a code for compressing data output from the quantizing means. Encoding means, code amount monitoring means for monitoring the code amount per block of the encoding means, and means for storing a stock of a preliminary code amount calculated from a total target code amount of the image data, The code amount monitoring means compares the target code amount per block with the code amount of the output of the encoding means, and when the target code amount is exceeded, the code amount of the stock is increased. If the amount of code is equal to or more than the amount of code, the code amount used in the storage means is added to a part of the stored code amount in the storage means, control is performed using coding, and the used code amount is subtracted from the stock. When the amount of code stored is equal to or less than the amount of code exceeding the above, the coding of the block currently being coded is forcibly terminated.

【0008】更に、前記符号量監視手段は、1ブロック
分の符号化を終了した際に、前記ブロックの符号量と1
ブロックあたりの目標符号量の差分を算出し前記差分を
前記ストックに加算することを特徴とする。
[0008] Further, the code amount monitoring means, when the encoding of one block is completed, the code amount of the block and 1
The method is characterized in that a difference of a target code amount per block is calculated, and the difference is added to the stock.

【0009】前記画像データに対する符号化の誤差A%
に対し、前記目標符号量のA%が前記ストックであるこ
とを特徴とする。
An encoding error A% for the image data
In contrast, A% of the target code amount is the stock.

【0010】本発明の圧縮符号量制御方法は、画像デー
タを所定画素サイズの複数のブロックに分割するブロッ
ク化工程と、前記ブロック化された画像データを離散コ
サイン変換する直交変換工程と、係数を量子化テーブル
に格納する工程と、前記変換係数を前記量子化テーブル
の係数で除算する量子化工程と、前記量子化手段より出
力されたデータを圧縮する符号化工程と、前記符号化工
程による1ブロックあたりの符号量を監視する符号量監
視工程と、前記画像データの総目標符号量から算出され
る予備符号量のストックを格納する格納工程とを備え、
前記符号量監視工程は、1ブロックあたりの目標符号量
と前記符号化工程の出力の符号量を比較し、前記目標符
号量を越えた時、前記ストックの符号量が前記越えた分
の符号量以上の場合はストックされた符号量の一部を加
算して符号化を用う制御を行い使用した符号量をストッ
クから減算し、ストックされている符号量が前記越えた
分の符号量以下の場合は現在符号化中のブロックの符号
化を強制的に終了することを特徴とする。
[0010] A compression code amount control method according to the present invention includes a blocking step of dividing image data into a plurality of blocks of a predetermined pixel size, an orthogonal transformation step of performing discrete cosine transformation of the blocked image data, Storing in a quantization table; a quantization step of dividing the transform coefficient by a coefficient of the quantization table; an encoding step of compressing data output from the quantization means; A code amount monitoring step of monitoring a code amount per block, and a storage step of storing a stock of a spare code amount calculated from a total target code amount of the image data,
The code amount monitoring step compares the target code amount per block with the code amount output from the encoding step, and when the code amount exceeds the target code amount, the code amount of the stock exceeds the target code amount. In the above case, control is performed by adding a part of the stored code amount to use the coding, and the used code amount is subtracted from the stock, and the stored code amount is equal to or less than the excess code amount. In this case, the encoding of the block currently being encoded is forcibly terminated.

【0011】さらに、前記符号量監視工程は、1ブロッ
ク分の符号化を終了した際に、前記ブロックの符号量と
1ブロックあたりの目標符号量の差分を算出し前記差分
を前記ストックに加算することを特徴とする。
Further, the code amount monitoring step calculates a difference between a code amount of the block and a target code amount per block when encoding of one block is completed, and adds the difference to the stock. It is characterized by the following.

【0012】[0012]

【発明の実施の形態】本発明の実施の形態について図面
を参照して説明する。
Embodiments of the present invention will be described with reference to the drawings.

【0013】本発明は、1画面の画像データを直交変換
し、その変換係数を量子化して、符号化する静止画の圧
縮において、符号化処理で生成される符号量を1ブロッ
ク毎に逐次監視し、1ブロックに割り当てられた符号量
をオーバーしたときはあらかじめ確保していた符号量を
割り当てる、または符号化を終了することで所望の符号
量で記録媒体に記録する画像圧縮符号化装置を提供する
ものである。画像データを所定の範囲内の誤差で圧縮す
る処理において、本処理の量子化テーブルを作成するた
めの前処理として、ブロック化、直交変換、基準量子化
テーブルを用いて、かつ量子化、符号化を行う。
The present invention orthogonally transforms image data of one screen, quantizes the transform coefficients, and sequentially monitors the amount of code generated in the encoding process for each block in the compression of a still image to be encoded. Provided is an image compression encoding apparatus that, when the code amount allocated to one block is exceeded, allocates a code amount secured in advance, or terminates the encoding to record a desired code amount on a recording medium. Is what you do. In a process of compressing image data with an error within a predetermined range, as a pre-process for creating a quantization table of the present process, using block, orthogonal transform, a reference quantization table, and performing quantization and encoding I do.

【0014】次に、基準量子化テーブルを用いて圧縮し
た符号量から本処理用量子化テーブルを作成し、本処理
を行う。本処理の符号化において、総目標符号量から予
備符号量として働くストックを減算し、総ブロック数で
除算したものを1ブロックあたりの目標符号量(式1)
とする。ここで重要なことは、ストックが、所定の範囲
内の誤差を1ブロックあたりの目標符号量以上必要な場
合に、このストックが用いられることである。
Next, a quantization table for this processing is created from the code amount compressed using the reference quantization table, and this processing is performed. In the encoding of the present process, the target code amount per block is calculated by subtracting the stock acting as the spare code amount from the total target code amount and dividing by the total block number (Equation 1).
And What is important here is that the stock is used when the stock needs an error within a predetermined range equal to or more than the target code amount per block.

【0015】符号化処理中、1成分符号化するたびに符
号量を監視し、1ブロックあたりの目標符号量をオーバ
ーした場合はストックがオーバーした符号量以上なら
ば、ストックを使用して符号化を行い、ストックが足り
ない場合はEOB(End Of Block)を挿入し
てそのブロックの符号化を終了する。ブロックを最後ま
で符号化し、かつ符号量が1ブロックあたりの目標符号
量に満たない場合は差分をストックに加算する。このよ
うにして、1ブロックあたりの目標符号量を算出し、1
ブロックあたりの符号量を監視することで所望の符号量
に画像データを圧縮する。 1ブロックあたりの目標符号量=(目標符号量−ストッ
ク)/総ブロック数(式1) 図1を参照して説明すると、本発明のシステム構成は、
画像データを同じ大きさ、例えば8×8画素のサイズに
複数のブロックに分割するブロック化手段100、ブロ
ック化された画像データを直交変換、例えば離散コサイ
ン変換する直交変換手段101、直交変換部より出力さ
れた変換係数を量子化テーブル104に示された係数で
除算する量子化手段102、ハフマン符号化などの冗長
性圧縮符号化方式によって量子化手段より出力されたデ
ータを圧縮する符号化手段103、符号化手段で生成さ
れる符号量を監視する符号量監視手段106から構成さ
れている。 ここで、符号量監視手段106が以下に説
明するように、符号量を監視して、その符号量に応じて
図示していない、ストックを格納する手段に対しストッ
クを使用するか、符号化を中断するか又は、ストックに
対して加算するかの制御を行う。
During the encoding process, the code amount is monitored each time one-component encoding is performed. If the target code amount per block is exceeded, the stock is used if the stock is larger than the excess code amount. Is performed, and if the stock is insufficient, EOB (End Of Block) is inserted and the encoding of the block is completed. The block is encoded to the end, and if the code amount is less than the target code amount per block, the difference is added to the stock. Thus, the target code amount per block is calculated, and 1
The image data is compressed to a desired code amount by monitoring the code amount per block. Target code amount per block = (Target code amount−Stock) / Total number of blocks (Equation 1) Referring to FIG. 1, the system configuration of the present invention is as follows.
Blocking means 100 for dividing image data into a plurality of blocks of the same size, for example, 8 × 8 pixels, orthogonal transform means 101 for orthogonally transforming the blocked image data, for example, discrete cosine transform, and orthogonal transform unit A quantizing means 102 for dividing the output transform coefficient by a coefficient shown in the quantization table 104; an encoding means 103 for compressing data output from the quantizing means by a redundancy compression coding method such as Huffman coding And a code amount monitoring means 106 for monitoring the code amount generated by the coding means. Here, as described below, the code amount monitoring means 106 monitors the code amount, and uses the stock for the storage means (not shown) according to the code amount. It controls whether to suspend or add to the stock.

【0016】次に、図1及び図2,3のフローチャート
を参照して本実施例の全体の動作について詳細に説明す
る。本処理用の量子化テーブルを作成するための前処理
として、基準量子化テーブルを用いた圧縮を行う。図1
において、画像データをブロック化手段100で8×8
画素サイズの複数のブロックに分割し(図2のS10
0)、ブロック化された画像データを直交変換手段10
1で離散コサイン変換し(S101)、変換係数を量子
化手段102で前記基準量子化テーブル104に示され
た係数で除算し(S102)、量子化手段より出力され
たデータを符号化手段105でハフマン符号化などの冗
長性圧縮符号化方式によってデータを圧縮する(S10
3)。この圧縮されたデータの符号量から本処理用量子
化テーブルの係数を算出し(S104)、本処理を開始
する。本処理では目標符号量に対して所定の範囲内、例
えば10%以内の誤差で符号化する場合、目標符号量の
90%を総ブロック数で除算したものにEOB分減算し
たものを1ブロックあたりの目標符号量とし(S10
5)、目標符号量の10%を符号化中に1ブロックあた
りの符号量以上の符号量が必要な場合のストックとす
る。このストックを図示しないストック格納手段に設定
する。
Next, the overall operation of this embodiment will be described in detail with reference to the flowcharts of FIGS. As a pre-process for creating a quantization table for this process, compression using a reference quantization table is performed. FIG.
, The image data is divided into 8 × 8
It is divided into a plurality of blocks each having a pixel size (S10 in FIG. 2).
0), the orthogonalized transformation means 10
The discrete cosine transform is performed by 1 (S101), the transform coefficient is divided by the coefficient shown in the reference quantization table 104 by the quantization means 102 (S102), and the data output from the quantization means is encoded by the encoding means 105. Data is compressed by a redundancy compression coding method such as Huffman coding (S10).
3). The coefficient of the quantization table for this processing is calculated from the code amount of the compressed data (S104), and this processing is started. In this processing, when encoding is performed within a predetermined range with respect to the target code amount, for example, an error within 10%, a value obtained by dividing 90% of the target code amount by the total number of blocks and subtracting EOB for each block is used. (S10)
5) 10% of the target code amount is used as a stock when a code amount more than the code amount per block is required during encoding. This stock is set in stock storage means (not shown).

【0017】前処理と同様にブロック化、直交変換を行
った後、本処理用量子化テーブルを用いて量子化を行う
(S106)。本処理の符号化(S107)において、
本処理では8×8のマトリクスの左上の係数の直流成分
(DC成分)を符号化後(図3のS200)、他の係数
の交流成分(AC成分)を1符号化する(S201)た
びにそのブロックの符号量を符号量監視手段106を用
いて監視する(S202)。
After performing blocking and orthogonal transformation in the same manner as in the preprocessing, quantization is performed using the quantization table for this processing (S106). In the encoding of this processing (S107),
In this processing, after the DC component (DC component) of the upper left coefficient of the 8 × 8 matrix is encoded (S200 in FIG. 3), the AC component (AC component) of the other coefficient is encoded once (S201). The code amount of the block is monitored using the code amount monitoring means 106 (S202).

【0018】符号量監視手段106は、符号化中に1ブ
ロックあたりの目標符号量をオーバーした場合、ストッ
クされている符号量がオーバーした符号量以上の場合は
ストック格納手段に対し、ストックされた符号量を用い
て符号化を行い、使用した符号量をストックから減算し
(S204)、次のAC成分の符号化を行う。また、ス
トックされている符号量がオーバーした符号量以下の場
合は、EOBを挿入して現在符号化中のブロックの符号
化を強制的に終了する(S205)。
If the target code amount per block exceeds the target code amount during encoding, if the code amount stored is equal to or greater than the code amount exceeded, the code amount monitoring means 106 stores the code amount in the stock storage means. Encoding is performed using the code amount, the used code amount is subtracted from the stock (S204), and the next AC component is encoded. If the stored code amount is equal to or less than the excess code amount, EOB is inserted to forcibly end the encoding of the block currently being encoded (S205).

【0019】EOBを挿入することでそれ以降の高周波
項をカットする。
By inserting the EOB, high-frequency terms thereafter are cut.

【0020】1ブロック内のAC成分すべてを符号化し
た場合は、そのブロックの符号量と1ブロックあたりの
目標符号量の差分をストックに加算し(S208)、符
号量を多く必要としないブロックの符号量を多く必要と
するブロックに割り当てるようにし、次のブロックの符
号化を開始する。ストックは増減するので、符号量を必
要としないブロックの符号量を符号量が多く必要なブロ
ックには符号量を割り当てることが可能である。また、
1画面全てを符号化後、ストックに余りがあれば、余っ
たストックをストックの初期値(目標符号量の10%)
に加算して符号化を再実行することで、ストックが足ら
ずにEOBを挿入したブロックに符号量を割り当てるこ
とができ、高周波項を符号化できることから画質を向上
できる。更に本発明では、1ブロックあたりの符号量を
算出する際に、目標符号量を総ブロック数で除算するの
ではなく、前処理での各ブロックの符号量と圧縮した符
号量を格納する手段を追加することで、各ブロックごと
に圧縮した符号量を前処理で圧縮した符号量で除算し、
目標符号量を乗算する(式2)ことで詳細なブロックの
割り当て符号量を算出することができる。 1ブロックあたりの目標符号量=(目標符号量−ストッ
ク)×(前処理のブロックの符号量/前処理の符号量)
(式2)
If all the AC components in one block are coded, the difference between the code amount of the block and the target code amount per block is added to the stock (S208), and the difference between the block and the block that does not require a large code amount is added. The coding amount is allocated to a block requiring a large amount, and coding of the next block is started. Since the stock increases or decreases, it is possible to allocate the code amount of a block that does not require a code amount to the block that requires a large code amount. Also,
After encoding the entire screen, if there is any remaining stock, the remaining stock is replaced with the stock initial value (10% of the target code amount).
, And re-executing the coding, it is possible to allocate a code amount to the block in which the EOB is inserted because the stock is insufficient, and it is possible to encode a high-frequency term, thereby improving the image quality. Further, in the present invention, when calculating the code amount per block, instead of dividing the target code amount by the total number of blocks, a means for storing the code amount of each block in the preprocessing and the compressed code amount is provided. By adding, the code amount compressed for each block is divided by the code amount compressed in the preprocessing,
By multiplying the target code amount (Equation 2), it is possible to calculate a detailed block allocation code amount. Target code amount per block = (Target code amount−Stock) × (Code amount of pre-processing block / Code amount of pre-processing)
(Equation 2)

【0021】[0021]

【発明の効果】本発明は、限定された符号量内で最も効
率的に符号化できることにある。その理由は符号量の少
ないブロックにおいては少ない符号量を割り当て、余っ
た符号量を符号量を多く必要とするブロックに割り当て
ることによって効率的な符号化ができ、かつ画質改善が
可能となるためである。
According to the present invention, encoding can be performed most efficiently within a limited code amount. The reason is that a small code amount is allocated to a block having a small code amount, and the remaining code amount is allocated to a block requiring a large code amount, thereby enabling efficient coding and improving image quality. is there.

【0022】更に、量子化テーブルに多少の誤差があっ
ても、目標符号量に圧縮することができる。その理由
は、1ブロックあたりの符号量を監視しているので高周
波項をカットすることで量子化テーブルの係数を変更す
ることと同様の効果が得られるためである。
Further, even if there is some error in the quantization table, it can be compressed to the target code amount. The reason is that, since the code amount per block is monitored, the same effect as changing the coefficient of the quantization table by cutting the high-frequency terms can be obtained.

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

【図1】本発明の第1の実施例を説明するための圧縮符
号量制御装置を示すブロック図である。
FIG. 1 is a block diagram showing a compression code amount control device for explaining a first embodiment of the present invention.

【図2】本発明を説明するためのフローチャートであ
る。
FIG. 2 is a flowchart for explaining the present invention.

【図3】本発明を説明するためのフローチャートであ
る。
FIG. 3 is a flowchart for explaining the present invention.

【図4】従来例を説明するための、圧縮符号量制御装置
を示すブロック図である。
FIG. 4 is a block diagram showing a compression code amount control device for explaining a conventional example.

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

100 ブロック化手段 101 直交変換手段 102 量子化手段 103 符号化手段 104 量子化テーブル 106 符号化監視手段 200 ブロック化手段 201 直交変換手段 202 量子化手段 203 符号化手段 204 量子化テーブル DESCRIPTION OF SYMBOLS 100 Blocking means 101 Orthogonal transformation means 102 Quantization means 103 Encoding means 104 Quantization table 106 Encoding monitoring means 200 Blocking means 201 Orthogonal transformation means 202 Quantization means 203 Encoding means 204 Quantization table

───────────────────────────────────────────────────── フロントページの続き (72)発明者 松本 宏昭 神奈川県川崎市中原区小杉町一丁目403番 53 日本電気アイシーマイコンシステム株 式会社内 Fターム(参考) 5C059 KK22 KK26 MA00 MA23 MC14 ME02 PP01 TA47 TA49 TB08 TC18 TC19 TD12 UA02 UA38 5C078 AA04 BA57 CA34 CA35 DA07 DA11 DB07 9A001 BB02 EE02 EE05 FF05 GZ01 HH27  ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Hiroaki Matsumoto 1-403, Kosugi-cho, Nakahara-ku, Kawasaki-shi, Kanagawa 53 F-term in NEC Ic Microcomputer System Co., Ltd. 5C059 KK22 KK26 MA00 MA23 MC14 ME02 PP01 TA47 TA49 TB08 TC18 TC19 TD12 UA02 UA38 5C078 AA04 BA57 CA34 CA35 DA07 DA11 DB07 9A001 BB02 EE02 EE05 FF05 GZ01 HH27

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 画像データを所定画素サイズの複数のブ
ロックに分割するブロック化手段と、前記ブロック化さ
れた画像データを離散コサイン変換する直交変換手段
と、係数を格納する量子化テーブルと、前記直交変換手
段からの変換係数を前記量子化テーブルの係数で除算す
る量子化手段と、前記量子化手段より出力されたデータ
を圧縮する符号化手段と、前記符号化手段の1ブロック
あたりの符号量を監視する符号量監視手段と、前記画像
データの総目標符号量から算出される予備符号量のスト
ックを格納する手段とを備え、 前記符号量監視手段は、1ブロックあたりの目標符号量
と前記符号化手段の出力の符号量を比較し、前記目標符
号量を越えた時、前記ストックの符号量が前記越えた分
の符号量以上の場合は前記符号化手段に対しストック格
納手段にあるストックされた符号量の一部を加算して符
号化を用う制御を行い使用した符号量をストックから減
算し、ストックされている符号量が前記越えた分の符号
量以下の場合は現在符号化中のブロックの符号化を強制
的に終了することを特徴とする圧縮符号量制御装置。
A block unit for dividing the image data into a plurality of blocks each having a predetermined pixel size; an orthogonal transform unit for performing a discrete cosine transform on the block image data; a quantization table for storing coefficients; Quantizing means for dividing the transform coefficient from the orthogonal transform means by the coefficient of the quantization table; coding means for compressing data output from the quantization means; and a code amount per block of the coding means And a means for storing a stock of a preliminary code amount calculated from the total target code amount of the image data, wherein the code amount monitoring means determines a target code amount per block and the target code amount. The code amount of the output of the encoding means is compared, and when the code amount of the stock exceeds the target code amount, if the code amount of the stock is equal to or greater than the excess code amount, the encoding means is Control is performed by adding a part of the stored code amount in the stock storage means and using coding, and the used code amount is subtracted from the stock, and the stored code amount is equal to or less than the excess code amount. Wherein the encoding of the block currently being encoded is forcibly terminated.
【請求項2】 前記符号量監視手段は更に、1ブロック
分の符号化を終了した際に、前記ブロックの符号量と1
ブロックあたりの目標符号量の差分を算出し前記差分を
前記ストックに加算することを特徴とする請求項1記載
の圧縮符号量制御装置。
2. The code amount monitoring means further comprising, when encoding of one block is completed, the code amount of the block
2. The compression code amount control device according to claim 1, wherein a difference between the target code amounts per block is calculated, and the difference is added to the stock.
【請求項3】 前記画像データに対する符号化の誤差A
%に対し、前記目標符号量のA%が前記ストックである
ことを特徴とする請求項1記載の圧縮符号量制御装置。
3. An encoding error A for the image data.
2. The compression code amount control device according to claim 1, wherein A% of the target code amount is the stock with respect to%.
【請求項4】 画像データを所定画素サイズの複数のブ
ロックに分割するブロック化工程と、前記ブロック化さ
れた画像データを離散コサイン変換する直交変換工程
と、係数を量子化テーブルに格納する工程と、前記変換
係数を前記量子化テーブルの係数で除算する量子化工程
と、前記量子化手段より出力されたデータを圧縮する符
号化工程と、前記符号化工程による1ブロックあたりの
符号量を監視する符号量監視工程と、前記画像データの
総目標符号量から算出される予備符号量のストックを格
納する格納工程とを備え、 前記符号量監視工程は、1ブロックあたりの目標符号量
と前記符号化工程の出力の符号量を比較し、前記目標符
号量を越えた時、前記ストックの符号量が前記越えた分
の符号量以上の場合はストックされた符号量の一部を加
算して符号化を用う制御を行い使用した符号量をストッ
クから減算し、ストックされている符号量が前記越えた
分の符号量以下の場合は現在符号化中のブロックの符号
化を強制的に終了することを特徴とする圧縮符号量制御
方法。
4. A step of dividing image data into a plurality of blocks of a predetermined pixel size, an orthogonal transformation step of performing discrete cosine transformation of the blocked image data, and a step of storing coefficients in a quantization table. A quantization step of dividing the transform coefficient by a coefficient of the quantization table, an encoding step of compressing data output from the quantization means, and monitoring a code amount per block by the encoding step. A code amount monitoring step; and a storing step of storing a stock of a preliminary code amount calculated from a total target code amount of the image data. The code amount monitoring step includes the step of: The code amount of the output of the process is compared, and when the code amount of the stock exceeds the target code amount, if the code amount of the stock is equal to or larger than the code amount of the excess, one of the stock code amount is compared. Is added, and the used code amount is subtracted from the stock.If the stocked code amount is equal to or less than the excess code amount, the coding of the block currently being coded is performed. A compression code amount control method, wherein the compression code amount control is forcibly terminated.
【請求項5】 前記符号量監視工程は更に、1ブロック
分の符号化を終了した際に、前記ブロックの符号量と1
ブロックあたりの目標符号量の差分を算出し前記差分を
前記ストックに加算することを特徴とする請求項4記載
の圧縮符号量制御装置。
5. The code amount monitoring step further includes, when encoding of one block is completed, the code amount of the block being
5. The compression code amount control device according to claim 4, wherein a difference between target code amounts per block is calculated and the difference is added to the stock.
【請求項6】 前記画像データに対する符号化の誤差A
%に対し、前記目標符号量のA%が前記ストックである
ことを特徴とする請求項4記載の圧縮符号量制御方法。
6. An encoding error A for said image data.
5. The compression code amount control method according to claim 4, wherein A% of said target code amount is said stock with respect to%.
JP1783999A 1999-01-27 1999-01-27 Apparatus and method for compression coding amount control Pending JP2000217114A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1783999A JP2000217114A (en) 1999-01-27 1999-01-27 Apparatus and method for compression coding amount control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1783999A JP2000217114A (en) 1999-01-27 1999-01-27 Apparatus and method for compression coding amount control

Publications (1)

Publication Number Publication Date
JP2000217114A true JP2000217114A (en) 2000-08-04

Family

ID=11954858

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1783999A Pending JP2000217114A (en) 1999-01-27 1999-01-27 Apparatus and method for compression coding amount control

Country Status (1)

Country Link
JP (1) JP2000217114A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013105621A1 (en) * 2012-01-11 2013-07-18 日立コンシューマエレクトロニクス株式会社 Image encoding method and image encoding device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013105621A1 (en) * 2012-01-11 2013-07-18 日立コンシューマエレクトロニクス株式会社 Image encoding method and image encoding device
CN104025595A (en) * 2012-01-11 2014-09-03 日立麦克赛尔株式会社 Image encoding method and image encoding device
JPWO2013105621A1 (en) * 2012-01-11 2015-05-11 日立マクセル株式会社 Image encoding method and image encoding apparatus
US9661323B2 (en) 2012-01-11 2017-05-23 Hitachi Maxell, Ltd. Method of encoding picture and picture encoding device

Similar Documents

Publication Publication Date Title
US5699457A (en) Image compression coder having improved bit rate control and block allocation
EP0762775B1 (en) Device and method for compressing image data
EP1250012A2 (en) Adaptive quantization based on bit rate prediction and prediction error energy
EP0680221A2 (en) Quantizing image data in image compression
US5761345A (en) Image processing apparatus suitable for multistage compression
US5594554A (en) Image compression coder having improved scale factor control
US6741747B1 (en) Data compression
CN101287058A (en) Method and apparatus for compressing data
AU762996B2 (en) An image compression system and method of determining quantisation parameters therefor
EP0978200A2 (en) Method and device for coding a sequence of pictures
JP2000217114A (en) Apparatus and method for compression coding amount control
US20030035589A1 (en) Quantization/dequantization method by making dynamic adaptive table and apparatus thereon
US7142235B2 (en) Opportunistic improvement of digital camera image quality
US7130349B1 (en) Method and apparatus to improve efficiency in multiple-pass, bit-rate-controlled frame encoding
JP2503706B2 (en) Transform coding method
JPH07222152A (en) Picture processor and compressed data control method in the picture processor
JP3230336B2 (en) Recompression device and recompression system
JPH04343578A (en) Image compressing/coding device
JPH0548914A (en) Image data coder
JP2538568B2 (en) Image compression device
JPH03238970A (en) Conversion coding system
JP3001758B2 (en) Huffman encoding device and Huffman encoding method
JP2863348B2 (en) Image data supply control method and image data transmission and restoration device
JPH0353666A (en) Picture signal compression coder
JP2000333175A (en) Image coder

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010313