JPH06326614A - Encoder - Google Patents

Encoder

Info

Publication number
JPH06326614A
JPH06326614A JP11493993A JP11493993A JPH06326614A JP H06326614 A JPH06326614 A JP H06326614A JP 11493993 A JP11493993 A JP 11493993A JP 11493993 A JP11493993 A JP 11493993A JP H06326614 A JPH06326614 A JP H06326614A
Authority
JP
Japan
Prior art keywords
information
unit
transfer path
variable length
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.)
Pending
Application number
JP11493993A
Other languages
Japanese (ja)
Inventor
Masataka Musha
正隆 武者
Masakazu Hamaguchi
昌和 濱口
Hiroyuki Sakai
浩之 坂井
Yuji Kimura
祐二 木村
Takehiro Yamada
剛裕 山田
Satoshi Honma
聡 本間
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP11493993A priority Critical patent/JPH06326614A/en
Publication of JPH06326614A publication Critical patent/JPH06326614A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To change information amount after compression to the desired information amounts by setting a quantization step in a quantizing means by a preliminarily decided function based on the compared result of reference amount with the detected information amount. CONSTITUTION:A comparing means 11 compares the reference amounts held by a holding means 113 with the information amount detected by a detecting means 108. A setting means sets the quantization step in a quantizing means 104 by the preliminarily decided function based on the compared result of the comparing means 111. For example, when the information amount detected by the detecting means 108 are more than the reference amount held by the holding means 113, the setting means sets the quantization step so as to be reduced by the preliminarily decided first function, and when the information amount detected by the detecting means 108 are less than the reference amount held by the holding means 113, the setting means sets the quantization step so as to be enlarged by the preliminarily decided second function. The quantizing means 104 executes quantization by the quantization step set by the setting means.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像符号化装置に係
り、特に可変長符号化を行う時に好適な符号化装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image coding apparatus, and more particularly to a coding apparatus suitable for variable length coding.

【0002】[0002]

【従来の技術】画像の可変長符号化装置の従来技術とし
ては、ISOの国際標準符号化方式(MPEG)のレー
トコントロールや、ISOの国際標準符号化方式(JP
EG)に規定されている技術がある。
2. Description of the Related Art As a conventional technique of an image variable length coding apparatus, rate control of ISO international standard coding system (MPEG) and ISO international standard coding system (JP
EG).

【0003】該従来技術では、前処理として領域変換お
よび量子化を行い、可変長符号化の符号化効率を向上さ
せている。また、上記従来例の符号化装置では、画像情
報を効率的に圧縮することが可能で、圧縮率を調整する
ために量子化パラメータを設定変更することができる。
In the prior art, area conversion and quantization are performed as preprocessing to improve the coding efficiency of variable length coding. Further, in the above-described conventional encoding device, image information can be efficiently compressed, and the quantization parameter can be changed to adjust the compression rate.

【0004】また、他の従来技術としては、特公平2−
29275号公報に記載されている技術がある。該従来
技術では、サンプルされた画素値に基づき、再量子化の
対象領域の分散や平均値等のパラメータを計算し、この
パラメータに基づき各領域ごとに量子化器を適応的に変
化させ、さらに必要に応じて間引かれた画素の量子化を
行ったり中止したりして条件付きの再量子化を行ってい
る。
As another conventional technique, Japanese Patent Publication No.
There is a technique described in Japanese Patent No. 29275. In the prior art, parameters such as the variance and average value of the requantization target region are calculated based on the sampled pixel values, and the quantizer is adaptively changed for each region based on this parameter. Conditional requantization is performed by quantizing or stopping the thinned pixels as necessary.

【0005】[0005]

【発明が解決しようとする課題】しかし、上記した従来
技術において、圧縮率や圧縮後の情報量は、同じ量子化
パラメータを用いても圧縮する画像の冗長度により異な
るため圧縮動作が完了しないとわからないので、圧縮後
の画像情報を記憶する補助記憶装置の空き容量が少ない
場合に、前記圧縮後の情報量が空き容量を超えるか否か
は前記圧縮動作を完了させるまで判断できない。このた
め、空き容量を超える情報量が発生する可能性が高い場
合でも、圧縮動作が完了するまでユーザは圧縮後の情報
量が空き容量を超えることを認識できない。
However, in the above-mentioned prior art, the compression rate and the amount of information after compression differ depending on the redundancy of the image to be compressed even if the same quantization parameter is used, and the compression operation must be completed. Since it is not known, when the free space of the auxiliary storage device for storing the compressed image information is small, it cannot be determined whether the compressed information amount exceeds the free space until the compression operation is completed. Therefore, even when there is a high possibility that the amount of information that exceeds the free space will occur, the user cannot recognize that the amount of information after compression exceeds the free space until the compression operation is completed.

【0006】また、一度前記圧縮動作の完了後、量子化
パラメータを変更し、再度圧縮を行い適切な圧縮率の情
報を得ようとしても、圧縮率を調整するための量子化パ
ラメータが最終的に作用を及ぼす対象までの処理過程の
いずれかの部分に非線形な特性があるので、最終的に適
切な圧縮率の情報が得られるまで、何回か量子化パラメ
ータを変更してその都度圧縮を行う必要がある。
Further, even if the quantization parameter is changed once after the compression operation is completed and the compression is performed again to obtain information of an appropriate compression rate, the quantization parameter for adjusting the compression rate is finally set. Since there is a non-linear characteristic in any part of the processing process up to the object that exerts the effect, the quantization parameter is changed several times and compression is performed each time until the information of the appropriate compression ratio is finally obtained. There is a need.

【0007】本発明の目的は、上記従来例の問題点を改
善し、圧縮後の情報量を希望する情報量に変更できる符
号化装置を提供することである。
An object of the present invention is to provide a coding apparatus which can improve the problems of the conventional example and can change the amount of information after compression to a desired amount of information.

【0008】[0008]

【課題を解決するための手段】本発明は、上記課題を解
決するために、情報を入力し、入力した情報を符号化す
る符号化手段と、該符号化手段で符号化された情報を、
設定された量子化ステップにより量子化する量子化手段
と、該量子化手段で量子化された情報を可変長に符号化
する可変長符号化手段とを有する符号化装置において、
前記入力した情報の予め定められた単位ごとに前記可変
長符号化手段で可変長符号化された情報の情報量を検出
する検出手段と、前記入力した情報の予め定められた単
位あたりの情報量の基準量を保持する保持手段と、前記
保持手段に保持した基準量と、前記検出手段において検
出した情報量とを比較する比較手段と、該比較手段にお
ける比較結果に基づいて、あらかじめ定めた関数により
前記量子化手段における量子化ステップを設定する設定
手段を有する。
In order to solve the above problems, the present invention provides an encoding means for inputting information and encoding the input information, and information encoded by the encoding means.
In a coding device having a quantizing means for quantizing by a set quantizing step and a variable length coding means for coding the information quantized by the quantizing means into a variable length,
Detecting means for detecting the information amount of the variable-length encoded information by the variable-length encoding means for each predetermined unit of the input information, and information amount per predetermined unit of the input information Holding means for holding the reference amount, comparison means for comparing the reference amount held by the holding means with the information amount detected by the detecting means, and a predetermined function based on the comparison result by the comparing means. According to this, there is a setting means for setting the quantization step in the quantization means.

【0009】前記設定手段は、前記検出手段において検
出した情報量が前記保持手段に保持した基準量より大き
い場合には、前記量子化ステップを予め定めた第1の関
数により縮小するように設定し、前記検出手段において
検出した情報量が前記保持手段に保持した基準量より小
さい場合には、前記量子化ステップを予め定めた第2の
関数により拡大するように設定することができる。前記
設定手段は、前記予め定めた第1および第2の関数とし
て、直前に設定している量子化ステップにそれぞれ予め
定めた第1および第2の比例定数を掛けることにより設
定する。また、前記設定手段は、前記予め定めた第1お
よび第2の関数として、直前に設定している量子化ステ
ップを予め定めた第1および第2の値でべき乗すること
により設定する。さらに、前記設定手段は、前記予め定
めた第1および第2の関数として、直前に設定している
量子化ステップから予め定めた第1および第2の値を加
算することにより設定するようにしてもよい。
The setting means sets, when the amount of information detected by the detecting means is larger than the reference amount held in the holding means, to reduce the quantization step by a predetermined first function. When the amount of information detected by the detecting means is smaller than the reference amount held in the holding means, the quantization step can be set to be expanded by a second function that is set in advance. The setting means sets the predetermined first and second functions by multiplying the quantization step set immediately before by the first and second proportional constants, respectively. Further, the setting means sets the quantization step set immediately before as a power of the predetermined first and second values as the predetermined first and second functions. Further, the setting means sets the predetermined first and second functions by adding predetermined first and second values from the quantization step set immediately before. Good.

【0010】前記設定手段により設定された量子化ステ
ップに従って逆量子化ステップを設定する逆量子化設定
手段と、可変長に符号化された情報を復号する可変長復
号化手段と、該可変長符号化手段において、復号化され
た情報を逆量子化する逆量子化手段と、該逆量子化手段
により逆量子化された情報を復号化する復号化手段とを
有することができる。前記比較手段における比較結果を
格納する格納手段をさらに有し、前記逆量子化設定手段
は、前記格納手段に格納した比較結果に基づいて、量子
化ステップを算出する。
Inverse quantization setting means for setting an inverse quantization step according to the quantization step set by the setting means, variable length decoding means for decoding variable length coded information, and the variable length code The quantizing means may include dequantizing means for dequantizing the decoded information and decoding means for decoding the information dequantized by the dequantizing means. The dequantization setting means further includes storage means for storing the comparison result in the comparison means, and the dequantization setting means calculates the quantization step based on the comparison result stored in the storage means.

【0011】また、前記可変長符号化手段で符号化され
た後の情報量に関する指示を、あらかじめ受け付ける入
力手段をさらに有し、前記保持手段は、該入力手段で受
け付けた指示に基づいて、基準量を保持することができ
る。
Further, the storage device further comprises an input means for previously receiving an instruction concerning the amount of information after being encoded by the variable length encoding means, and the holding means is based on the instruction received by the input means. The quantity can be retained.

【0012】[0012]

【作用】入力手段において、可変長符号化手段で符号化
された後の情報量に関する指示を、あらかじめ受け付け
ておく。保持手段では、入力手段で受け付けた情報量に
関する指示に基づいて、あらかじめ定めた単位における
基準量を保持しておく。符号化手段は、情報を入力し、
入力した情報を符号化する。量子化手段は、該符号化手
段で符号化された情報を設定された量子化ステップによ
り量子化する。可変長符号化手段は、該量子化手段で量
子化された情報を可変長に符号化する。
In the input means, an instruction regarding the amount of information after being encoded by the variable length encoding means is received in advance. The holding unit holds the reference amount in a predetermined unit based on the instruction regarding the information amount received by the input unit. The encoding means inputs information,
Encode the entered information. The quantizing means quantizes the information coded by the coding means by the set quantizing step. The variable length coding means codes the information quantized by the quantizing means into a variable length.

【0013】検出手段は、可変長符号化手段で可変長符
号化された情報の情報量をあらかじめ定めた単位ごとに
検出する。比較手段では、前記保持手段に保持した基準
量と、前記検出手段において検出した情報量とを比較す
る。設定手段は、該比較手段における比較結果に基づい
て、あらかじめ定めた関数により前記量子化手段におけ
る量子化ステップを設定する。例えば、設定手段は、前
記検出手段において検出した情報量が前記保持手段に保
持した基準量より大きい場合には、前記量子化ステップ
を予め定めた第1の関数により縮小するように設定し、
前記検出手段において検出した情報量が前記保持手段に
保持した基準量より小さい場合には、前記量子化ステッ
プを予め定めた第2の関数により拡大するように設定す
ることができる。量子化手段では、設定手段により設定
された量子化ステップにより量子化を行う。これによ
り、実際の可変長符号化された情報の情報量が前記希望
する情報量に近くなるように調整できる。
The detecting means detects the information amount of the information which has been variable-length coded by the variable-length coding means for each predetermined unit. The comparing means compares the reference amount held by the holding means with the information amount detected by the detecting means. The setting means sets the quantizing step in the quantizing means by a predetermined function based on the comparison result in the comparing means. For example, the setting means, when the amount of information detected by the detecting means is larger than the reference amount held in the holding means, sets the quantizing step to be reduced by a predetermined first function,
When the amount of information detected by the detecting unit is smaller than the reference amount held by the holding unit, the quantization step can be set so as to be expanded by a second predetermined function. The quantizing means quantizes by the quantizing step set by the setting means. As a result, the information amount of the actual variable-length coded information can be adjusted to be close to the desired information amount.

【0014】また、伸長時には、逆量子化設定手段は、
前記設定手段により設定された量子化ステップに従って
逆量子化ステップを順次設定していく。この場合、前記
比較手段における比較結果を格納する格納手段をさらに
有し、前記逆量子化設定手段は、前記格納手段に格納し
た比較結果に基づいて、量子化ステップを算出するよう
にしてもよい。可変長復号化手段は、可変長に符号化さ
れた情報を復号する。逆量子化手段は、該可変長符号化
手段において、復号化された情報を逆量子化する。復号
化手段は、該逆量子化手段により逆量子化された情報を
復号化する。これにより、元の情報に復元することがで
きる。
Further, at the time of decompression, the inverse quantization setting means is
The inverse quantization step is sequentially set according to the quantization step set by the setting means. In this case, the comparison means may further include storage means for storing the comparison result, and the inverse quantization setting means may calculate the quantization step based on the comparison result stored in the storage means. . The variable length decoding means decodes the information encoded in the variable length. The dequantization means dequantizes the information decoded by the variable length coding means. The decoding means decodes the information dequantized by the dequantization means. As a result, the original information can be restored.

【0015】[0015]

【実施例】以下、本発明の第1の実施例を図1、図2お
よび図3を参照して説明する。図1は第1の実施例の符
号化装置の構成図、図2は第1の実施例の符号化装置の
動作概要、図3は第1の実施例の符号化装置の動作を示
すフローチャートである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment of the present invention will be described below with reference to FIGS. 1, 2 and 3. FIG. 1 is a block diagram of the encoding apparatus of the first embodiment, FIG. 2 is an operation outline of the encoding apparatus of the first embodiment, and FIG. 3 is a flowchart showing the operation of the encoding apparatus of the first embodiment. is there.

【0016】まず初めに、図1を参照し、第1の実施例
の符号化装置の構成および機能概要を説明する。図1に
示すように、第1の実施例による符号化装置は、変換符
号化手段102、量子化手段104、可変長符号化手段
106、情報量計測手段108、引算器111、情報量
保持手段113、量子化テーブル115、等比縮小器1
20、等比拡大器121およびバッファー126を主な
構成要素とする。
First, with reference to FIG. 1, an outline of the configuration and function of the encoding apparatus according to the first embodiment will be described. As shown in FIG. 1, the coding apparatus according to the first embodiment has a transform coding means 102, a quantization means 104, a variable length coding means 106, an information amount measuring means 108, a subtractor 111, and an information amount holding. Means 113, Quantization Table 115, Ratio Reducer 1
20, the geometrical expansion device 121 and the buffer 126 are the main components.

【0017】図1において、前記変換符号化手段102
は、逐次得られる画像のディジタル情報をあらかじめ設
定済の変換式に従い変換符号化し、該結果を逐次出力可
能な情報処理系である。該変換符号化手段102の前段
には、画像情報を入力する画像入力手段を備えることが
でき、画像情報がアナログの場合には、アナログ−ディ
ジタル変換器をさらに備えることができる。画像入力手
段としては、画像情報を蓄積している記憶装置や、通信
回線を介して通信制御装置などにより画像情報を入力す
ることができる。前記量子化テーブル115は、外部か
ら設定可能な64のパラメータ数値を保持し、必要に応
じ出力可能な記憶手段である。前記量子化手段104
は、逐次得られるディジタル情報を、量子化テーブル1
15のパラメータに基づいて量子化し、該量子化された
画像情報を逐次出力可能な情報処理系である。本実施例
においては、量子化テーブル115に保持する量子化ス
テップあるいは量子化パラメータは、量子化する前にあ
らかじめ設定しておき、量子化する際に、後述する方法
により値が逐次更新される。前記可変長符号化手段10
6は、逐次得られるディジタル情報をあらかじめ設定済
の符号テーブルで可変長符号化し、該結果を逐次出力可
能な情報処理系である。前記情報量計測手段108は、
所定の外部装置の一定処理サイクル期間内に逐次入力さ
れ符号化されたディジタル情報の情報量を計測し、該情
報量と前記符号化されたディジタル情報を逐次出力可能
な情報処理系である。前記情報量保持手段113は、圧
縮する画像についての圧縮後の情報量の希望値(基準
値)をあらかじめ保持し、該情報量の希望値もしくは該
情報量の希望値に基づいてあらかじめ定めた式により計
算した情報量を出力することができる。前記引算器11
1は、比較手段であり、情報量保持手段113からの出
力値と情報量計測手段108からの出力値との数値を比
較し、情報量保持手段113からの出力値が情報量計測
手段108からの出力値より大きい場合(図1におい
て、「+」で示す)には、大きいことを示す値を出力
し、小さい場合(図1において、「−」で示す)には小
さいことを示す値を出力する情報処理系である。スイッ
チ117は、引算器111の出力値により切り換えら
れ、情報量保持手段113からの出力値が情報量計測手
段108からの出力値より大きい場合には、量子化テー
ブルのパラメータの出力値を等比縮小器120に入力す
るように接続され、小さい場合には等比拡大器121に
接続するように切り替わる。前記等比縮小器120は、
得られる量子化パラメータの数値にあらかじめ設定され
た縮小関数の0.91を掛け、該結果を出力可能な情報
処理系である。前記等比拡大器121は、得られる量子
化パラメータの数値にあらかじめ設定された拡大関数の
1.10を掛け、該結果を出力可能な情報処理系であ
る。前記バッファー126は、格納手段であり、引算器
111から出力される+/−のビット情報を4800ビ
ット保持可能で、必要に応じ出力可能なファーストイン
・ファーストアウト・メモリである。入力手段130
は、前記変換符号化手段102に設定する変換係数、前
記可変長符号化手段106に設定する可変長符号テーブ
ル値、前記量子化テーブル115に設定する量子化テー
ブル値、または、前記情報量保持手段113に設定す
る、圧縮する画像についての圧縮後の情報量の希望値
(もしくは圧縮率)等の設定値を受け付ける。スイッチ
117、前記等比縮小器120および前記等比拡大器1
21は、上記比較手段における比較結果に基づいて、あ
らかじめ定めた関数により前記量子化手段における量子
化ステップを設定する設定手段を構成する。
In FIG. 1, the transform coding means 102.
Is an information processing system capable of transform-encoding digital information of images obtained successively according to a preset transformation formula and successively outputting the results. An image input unit for inputting image information can be provided in the preceding stage of the conversion encoding unit 102, and when the image information is analog, an analog-digital converter can be further provided. As image input means, image information can be input by a storage device that stores image information or a communication control device via a communication line. The quantization table 115 is a storage unit that holds 64 parameter values that can be set from the outside and can output them as needed. The quantization means 104
Is a quantization table 1 for digital information that is sequentially obtained.
This is an information processing system capable of performing quantization on the basis of 15 parameters and successively outputting the quantized image information. In this embodiment, the quantization step or the quantization parameter held in the quantization table 115 is set in advance before the quantization, and the value is sequentially updated by the method described later when the quantization is performed. The variable length coding means 10
Reference numeral 6 denotes an information processing system capable of performing variable length coding on digital information that is sequentially obtained by a preset code table and successively outputting the result. The information amount measuring means 108 is
This is an information processing system capable of measuring the information amount of the digital information that is sequentially input and encoded within a fixed processing cycle period of a predetermined external device, and sequentially outputting the information amount and the encoded digital information. The information amount holding unit 113 holds in advance a desired value (reference value) of the information amount after compression for an image to be compressed, and a desired value of the information amount or a predetermined formula based on the desired value of the information amount. The information amount calculated by can be output. The subtractor 11
Reference numeral 1 is a comparison unit that compares the output value from the information amount holding unit 113 and the output value from the information amount measuring unit 108, and the output value from the information amount holding unit 113 is output from the information amount measuring unit 108. When the output value is larger than the output value (indicated by “+” in FIG. 1), a value indicating that it is large is output, and when it is smaller (indicated by “−” in FIG. 1), the value indicating smaller is output. This is an information processing system for output. The switch 117 is switched by the output value of the subtractor 111, and when the output value from the information amount holding means 113 is larger than the output value from the information amount measuring means 108, the output values of the parameters of the quantization table are equalized. It is connected so as to be input to the ratio reducer 120, and when it is small, it is switched so as to be connected to the geometric ratio expander 121. The geometric ratio reducer 120 is
This is an information processing system capable of multiplying the obtained value of the quantization parameter by 0.91 of a preset reduction function and outputting the result. The geometric ratio expander 121 is an information processing system capable of multiplying the obtained value of the quantization parameter by a preset expansion function 1.10 and outputting the result. The buffer 126 is a storage unit, and is a first-in first-out memory that can hold 4800 bits of +/− bit information output from the subtractor 111 and can output the bit information when necessary. Input means 130
Is a transform coefficient set in the transform coding means 102, a variable length code table value set in the variable length coding means 106, a quantization table value set in the quantization table 115, or the information amount holding means. A setting value such as a desired value (or compression rate) of the amount of information after compression for an image to be compressed, which is set in 113, is accepted. Switch 117, the geometric ratio reducer 120 and the geometric ratio expander 1
Reference numeral 21 constitutes a setting means for setting the quantization step in the quantization means by a predetermined function based on the comparison result in the comparison means.

【0018】次に、第1の実施例による符号化装置の機
能概要を説明する。
Next, the functional outline of the encoding apparatus according to the first embodiment will be described.

【0019】第1の実施例における符号化装置の起動時
を想定すると、初めに、入力手段130において、前記
変換符号化手段102に設定する変換係数、前記可変長
符号化手段106に設定する可変長符号テーブル値、前
記量子化テーブル115に設定する量子化テーブル値、
および、前記情報量保持手段113に設定する、圧縮す
る画像についての圧縮後の情報量の希望値等の設定値を
受け付ける。入力手段は、前記変換符号化手段102に
変換係数を設定し、前記可変長符号化手段106に可変
長符号テーブル値を設定し、前記量子化テーブル115
に量子化テーブル値を設定し、前記情報量保持手段11
3に符号化後の情報量の希望値を設定する。前記情報量
保持手段113に符号化後の情報量の希望値としては、
例えば、1画面における情報量や、入力する全ての画像
情報に対する圧縮後の総情報量、圧縮比率等を受け付け
ることができる。情報量保持手段113では、情報量の
希望値に基づいてあらかじめ定めた式により計算した情
報量を出力する。例えば、引き算器111において比較
する周期を、所定の外部装置の一定処理サイクルとした
場合には、一定処理リサイクル内に得る情報量に相当す
る情報量を計算しておき、その計算値を保持することが
できる。また、前記バッファー126は該バッファの内
容をクリアしておく。
Assuming that the coding apparatus in the first embodiment is started up, first, in the input means 130, the transform coefficient set in the transform coding means 102 and the variable set in the variable length coding means 106 are set. Long code table value, quantization table value set in the quantization table 115,
A setting value such as a desired value of the information amount after compression for an image to be compressed, which is set in the information amount holding unit 113, is accepted. The input means sets the transform coefficient in the transform coding means 102, sets the variable length code table value in the variable length coding means 106, and sets the quantization table 115.
The quantization table value is set to the information amount holding means 11
A desired value of the amount of information after encoding is set in 3. As the desired value of the information amount after encoding in the information amount holding means 113,
For example, the amount of information on one screen, the total amount of information after compression for all input image information, the compression ratio, and the like can be accepted. The information amount holding unit 113 outputs the information amount calculated by a predetermined formula based on the desired value of the information amount. For example, when the cycle to be compared in the subtractor 111 is a constant processing cycle of a predetermined external device, an information amount corresponding to the information amount obtained in the constant processing recycling is calculated and the calculated value is held. be able to. Further, the buffer 126 clears the contents of the buffer.

【0020】次に、前記変換符号化手段102で、画像
情報転送経路101から画像情報を1ユニット読み込
み、あらかじめ設定済の変換式に従い変換符号化し、該
符号を1ユニット情報転送経路103に出力する。ここ
で、1ユニットは、例えば、1画面を480*640画
素としたとき、8*8画素の1ブロックを単位にするこ
とができる。次に、前記量子化手段104で、情報転送
経路103から情報を1ユニット読み込み、あらかじめ
係数設定済の量子化テーブル115に従い量子化し、該
量子化後の情報を1ユニット情報転送経路105に出力
する。次に、前記可変長符号化手段106で、情報転送
経路105から情報を1ユニット読み込み、あらかじめ
設定済の可変長符号化テーブルに従い可変長符号化し、
該符号化後の情報を1ユニット情報転送経路107に出
力する。
Next, the conversion coding means 102 reads one unit of image information from the image information transfer path 101, performs conversion coding according to a preset conversion equation, and outputs the code to the one unit information transfer path 103. . Here, one unit can be a unit of one block of 8 * 8 pixels when one screen is 480 * 640 pixels. Next, the quantizing means 104 reads one unit of information from the information transfer path 103, quantizes it according to the quantization table 115 in which the coefficient is set in advance, and outputs the quantized information to the one-unit information transfer path 105. . Next, the variable length coding means 106 reads one unit of information from the information transfer path 105, performs variable length coding according to a preset variable length coding table,
The encoded information is output to the 1-unit information transfer path 107.

【0021】前記情報量計測手段108で、情報転送経
路107から情報を1ユニット読み込み、該1ユニット
の情報の情報量を計測し、前記1ユニットの情報を情報
転送経路109に、前記計測結果を情報転送経路110
に出力する。このとき、前記情報量保持手段113は、
設定されて保持した情報量を情報転送経路112に出力
する。次に、前記引算器111は、情報転送経路110
と情報転送経路112とから2つの数値を読み込み、前
記情報転送経路112の数値から前記情報転送経路11
0の数値を引き算し、前記引き算結果を情報転送経路1
14および125に出力する。
The information amount measuring means 108 reads one unit of information from the information transfer path 107, measures the information amount of the information of the one unit, and transfers the information of the one unit to the information transfer path 109 and the measurement result. Information transfer path 110
Output to. At this time, the information amount holding means 113
The set and held amount of information is output to the information transfer path 112. Next, the subtractor 111 operates the information transfer path 110.
And two values are read from the information transfer path 112, and the information transfer path 11 is read from the numerical values of the information transfer path 112.
The value of 0 is subtracted, and the subtraction result is the information transfer path 1
Output to 14 and 125.

【0022】前記量子化テーブル115は、あらかじめ
設定された64のパラメータ数値を情報転送経路116
に出力する。スイッチ117は、情報転送経路116に
出力された64のパラメータの数値を、前記引き算結果
が+のとき情報転送経路118に、前記引き算結果が−
のとき情報転送経路119に切り換えて出力する。
The quantization table 115 stores the preset 64 parameter values in the information transfer path 116.
Output to. The switch 117 outputs the numerical values of the 64 parameters output to the information transfer path 116 to the information transfer path 118 when the subtraction result is +, and the subtraction result is −.
In this case, the information is switched to the information transfer path 119 and output.

【0023】前記引き算結果が+のとき前記等比縮小器
120では、情報転送経路118から前記64のパラメ
ータの数値を読み込み、それぞれの数値にあらかじめ設
定された0.91を掛け、該掛け算結果を情報転送経路
123に出力する。また、前記引き算結果が−のとき前
記等比拡大器121では、情報転送経路119から前記
64のパラメータの数値を読み込み、それぞれの数値に
あらかじめ設定された1.10を掛け、該掛け算結果を
情報転送経路124に出力する。
When the subtraction result is +, the geometrical ratio reducer 120 reads the numerical values of the 64 parameters from the information transfer path 118, multiplies each numerical value by 0.91 set in advance, and multiplies the multiplication result. It is output to the information transfer path 123. Further, when the subtraction result is −, the geometrical ratio expander 121 reads the numerical values of the 64 parameters from the information transfer path 119, multiplies each numerical value by 1.10 set in advance, and outputs the multiplication result as information. It is output to the transfer path 124.

【0024】前記量子化テーブル115は、前記引き算
結果が+のとき情報転送経路123から前記64のパラ
メータの数値を読み込み、保持していた前記64のパラ
メータの数値を書き替える。また、前記量子化テーブル
115は、前記引き算結果が−のとき情報転送経路12
4から前記64のパラメータの数値を読み込み、設定さ
れ保持した前記64のパラメータの数値を書き替える。
The quantization table 115 reads the numerical values of the 64 parameters from the information transfer path 123 when the subtraction result is +, and rewrites the numerical values of the 64 parameters that have been held. In addition, the quantization table 115 stores the information transfer path 12 when the subtraction result is −.
The numerical values of the 64 parameters are read from 4, and the numerical values of the 64 parameters that have been set and held are rewritten.

【0025】前記バッファー126では、情報転送経路
125から前記引き算結果を読み込み、該引き算結果が
+のときビットを1に、前記情報を引き算結果が−のと
きビットを0に対応付け、4800ビット分を保持し、
符号化時情報転送経路109からスイッチ128を介し
情報転送経路129への符号情報出力が完了後、前記4
800ビットの情報を古いものから順に情報転送経路1
27からスイッチ128を介し情報転送経路129へ出
力する。この引き算結果は、圧縮された画像情報ととも
に、後段に出力される。後段には、記憶装置や通信手段
を介して他の装置を備えることができる。また、圧縮の
際に設定された、前記変換符号化手段102の変換係
数、前記可変長符号化手段106の可変長符号テーブル
値、前記量子化テーブル115の量子化テーブル値を圧
縮の際に後段に出力してもよい。復号する際には、これ
らの引き算結果をもとに、量子化パラメータを逐次更新
していき逆変換する。これについては、後述する。
In the buffer 126, the subtraction result is read from the information transfer path 125, and when the subtraction result is +, the bit is set to 1 and when the subtraction result is −, the bit is set to 0 and 4800 bits are stored. Hold
After the code information output from the encoding information transfer path 109 to the information transfer path 129 via the switch 128 is completed,
Information transfer path 1 with 800-bit information in chronological order
27 to the information transfer path 129 via the switch 128. This subtraction result is output to the subsequent stage together with the compressed image information. Other devices may be provided in the subsequent stage via a storage device or communication means. Also, the transform coefficient of the transform coding unit 102, the variable length code table value of the variable length coding unit 106, and the quantization table value of the quantization table 115, which are set at the time of compression, are set at the latter stage at the time of compression. May be output to. At the time of decoding, the quantization parameter is successively updated based on these subtraction results, and inverse transformation is performed. This will be described later.

【0026】次に、図2を参照し、第1の実施例の符号
化装置の動作概要を説明する。図2は、本実施例におけ
る符号化装置の構成をより具体的に示している。図1に
おける手段と機能が同じものは同じ記号で示している。
Next, with reference to FIG. 2, an outline of the operation of the encoding apparatus of the first embodiment will be described. FIG. 2 more specifically shows the configuration of the encoding apparatus in this embodiment. Components having the same functions as those in FIG. 1 are denoted by the same symbols.

【0027】図2において、第1の実施例による符号化
装置の起動時を想定すると、初めに、入力手段130に
おいて、前記可変長符号化手段106に設定する可変長
符号テーブル値、前記量子化テーブル115に設定する
量子化テーブル値の設定値を受け付ける。前記可変長符
号化手段106および前記量子化テーブル115に可変
長符号テーブル値と量子化テーブル値とをそれぞれ設定
する。前記バッファー126は、該バッファの内容をク
リアする。図2においては、符号化された画像情報が入
力しており、情報のビット数201が11ビットとし、
情報の単位ユニット202は、図2に示す柱状の画像情
報230を64個集めたものである。
In FIG. 2, assuming that the encoding apparatus according to the first embodiment is started up, first, in the input means 130, the variable length code table value set in the variable length encoding means 106 and the quantization. The setting value of the quantization table value set in the table 115 is accepted. A variable length code table value and a quantization table value are set in the variable length coding means 106 and the quantization table 115, respectively. The buffer 126 clears the contents of the buffer. In FIG. 2, encoded image information is input, and the information bit number 201 is 11 bits,
The information unit unit 202 is a collection of 64 pieces of columnar image information 230 shown in FIG.

【0028】前記量子化手段104では、情報転送経路
103から画像情報の単位ユニット202の変換係数を
読み込み、あらかじめ係数設定済の量子化テーブル11
5に従い量子化する。図2に示すように、量子化後の情
報のビット数204は11ビットであり、情報の単位ユ
ニット206の変換係数206を情報転送経路105に
出力する。
In the quantizing means 104, the conversion coefficient of the image information unit unit 202 is read from the information transfer path 103, and the quantization table 11 in which the coefficient is set in advance is read.
Quantize according to 5. As shown in FIG. 2, the number of bits 204 of the quantized information is 11 bits, and the transform coefficient 206 of the information unit unit 206 is output to the information transfer path 105.

【0029】前記可変長符号化手段106では、情報転
送経路105から情報のビット数204が11ビット、
情報の単位ユニット206の変換係数206を読み込
み、あらかじめ設定済の可変長符号化テーブルに従い可
変長符号化する。符号化後、情報のビット数207は2
〜16ビットになり、情報の単位ユニット208の符号
209を情報転送経路107に出力する。
In the variable length coding means 106, the number of bits of information 204 from the information transfer path 105 is 11 bits,
The conversion coefficient 206 of the information unit unit 206 is read and variable length coding is performed according to a preset variable length coding table. After encoding, the number of information bits 207 is 2
.About.16 bits, and the code 209 of the information unit unit 208 is output to the information transfer path 107.

【0030】累算器210では、情報の単位ユニット2
08の符号209を読み込み、該1ユニットの符号の情
報量を累算し、前記1ユニットの符号を情報転送経路1
09に出力し、前記累算結果を情報転送経路211に出
力する。累算器210は、図1における情報量計測手段
である。
In the accumulator 210, information unit 2
The code 209 of 08 is read, the information amount of the code of the one unit is accumulated, and the code of the one unit is transferred to the information transfer path 1
09, and outputs the accumulated result to the information transfer path 211. The accumulator 210 is the information amount measuring means in FIG.

【0031】前記比較器212は、情報転送経路211
から累算結果を読み込み、あらかじめ設定された情報量
の希望値と前記情報転送経路112の累算結果とを比較
し、前記比較結果が「情報量の希望値>前記情報転送経
路112の累算結果」の場合1、「情報量の希望値<前
記情報転送経路112の累算結果」の場合0を情報転送
経路114に出力する。比較器212は、図1における
比較手段の引算器111と同様の機能を備える。
The comparator 212 has an information transfer path 211.
The accumulation result is read from, and the desired value of the information amount set in advance is compared with the accumulation result of the information transfer path 112, and the comparison result is “desired value of information amount> accumulation of the information transfer path 112. In the case of “result”, 1 is output to the information transfer path 114, and in the case of “desired value of information amount <accumulation result of the information transfer path 112”, 0 is output. The comparator 212 has the same function as the subtractor 111 of the comparison means in FIG.

【0032】前記量子化テーブル115は、あらかじめ
設定された64のパラメータの数値を情報転送経路11
6に出力する。論理積ゲート214および215は、情
報転送経路116に出力された64の数値を、前記情報
転送経路114上の値が1のとき情報転送経路118
に、前記情報転送経路114上の値が0のとき情報転送
経路119に切り換え出力する。
The quantization table 115 stores the numerical values of 64 preset parameters in the information transfer path 11.
Output to 6. The AND gates 214 and 215 output the 64 numerical values output to the information transfer path 116 to the information transfer path 118 when the value on the information transfer path 114 is 1.
When the value on the information transfer path 114 is 0, it is switched to the information transfer path 119 and output.

【0033】前記情報転送経路114上の値が1のとき
前記等比縮小器120では、情報転送経路118から前
記64のパラメータの数値を読み込み、それぞれの数値
にあらかじめ設定された0.91を掛け、該掛け算結果
を情報転送経路123に出力する。また、前記情報転送
経路114上の値が0のとき前記等比拡大器121で
は、情報転送経路119から前記64のパラメータの数
値を読み込み、それぞれの数値にあらかじめ設定された
1.10を掛け、該掛け算結果を情報転送経路124に
出力する。
When the value on the information transfer path 114 is 1, the geometric ratio reducer 120 reads the numerical values of the 64 parameters from the information transfer path 118 and multiplies each numerical value by a preset 0.91. , And outputs the multiplication result to the information transfer path 123. Further, when the value on the information transfer path 114 is 0, the geometrical ratio expander 121 reads the numerical values of the 64 parameters from the information transfer path 119 and multiplies each numerical value by 1.10 set in advance, The multiplication result is output to the information transfer path 124.

【0034】前記量子化テーブル115は、前記情報転
送経路114上の値が1のとき情報転送経路123から
前記64のパラメータの数値を読み込み、設定され保持
した前記64のパラメータの数値を書き替える。また、
前記量子化テーブル115は、前記情報転送経路114
上の値が0のとき情報転送経路124から前記64のパ
ラメータの数値を読み込み、設定され保持した前記64
のパラメータの数値を書き替える。
The quantization table 115 reads the numerical values of the 64 parameters from the information transfer path 123 when the value on the information transfer path 114 is 1, and rewrites the numerical values of the 64 parameters that have been set and held. Also,
The quantization table 115 stores the information transfer path 114.
When the upper value is 0, the numerical values of the 64 parameters are read from the information transfer path 124, and the 64 parameters that have been set and held.
Rewrite the parameter values.

【0035】前記バッファー126では、情報転送経路
114から前記比較結果を読み込み、4800ビット分
を保持し、情報転送経路109への符号情報出力が完了
後、前記4800ビットの情報を古いものから順に情報
転送経路213へ出力する。
The buffer 126 reads the comparison result from the information transfer path 114, holds 4800 bits, and after the code information output to the information transfer path 109 is completed, the 4800 bits of information are sequentially transferred from oldest to newest. It is output to the transfer path 213.

【0036】以上のように構成することにより、あらか
じめ指示した情報量以内になるように圧縮することがで
きる。
With the above configuration, it is possible to perform compression so that the amount of information is within a predetermined amount.

【0037】以下、本発明における伸長処理について図
10を参照して説明する。図10は本発明の符号化装置
の構成図を示している。符号化装置には、図10に示す
ように、復号する処理を備えている。
The decompression processing according to the present invention will be described below with reference to FIG. FIG. 10 shows a block diagram of the encoding apparatus of the present invention. The encoding device is provided with a decoding process as shown in FIG.

【0038】まず初めに、図10を参照し、本発明の符
号化装置の構成及び機能概要を説明する。図10に示す
ように、本実施例による符号化装置は、バッファー10
04、可変長復号化手段1006、逆量子化手段100
8、量子化テーブル1009、変換復号化手段102
0、拡大器1015および縮小器1016を主な構成要
素とする。
First, with reference to FIG. 10, an outline of the configuration and function of the encoding apparatus of the present invention will be described. As shown in FIG. 10, the encoding apparatus according to the present embodiment has a buffer 10
04, variable length decoding means 1006, inverse quantization means 100
8, quantization table 1009, conversion decoding means 102
0, the enlarger 1015 and the reducer 1016 are the main components.

【0039】図10において、前記バッファー1004
は、入力されるビット情報を4800ビット保持し、必
要に応じ逐次出力可能なファーストイン・ファーストア
ウト・メモリである。入力されるビット情報としては、
前述の圧縮器における引算器111から出力される+/
−のビット情報があり、磁気ディスクなどの媒体の特定
領域にこの+/−のビット情報(以下、符号化情報とい
う)を記憶している場合には、それらを読みだした情報
を保持する。前記可変長復号化手段1006は、逐次得
られるディジタル情報をあらかじめ設定済の符号テーブ
ルで可変長復号化し、該結果を逐次出力可能な情報処理
系である。該可変長復号化手段1006の前段には、符
号化された画像情報を記憶する磁気ディスクなどの媒体
を備えることができ、伸長する場合には伸長すべき画像
情報を読み出し、可変長復号化手段1006で可変長復
号する。前記量子化テーブル1009は、外部から設定
可能な64のパラメータ数値を保持可能で、必要に応じ
出力可能な記憶手段である。前記逆量子化手段1008
は、逐次得られるディジタル情報をあらかじめ設定済の
量子化テーブル115のパラメータに基づいて逆量子化
し、該結果を逐次出力可能な情報処理系である。前記拡
大器1015は、得られる数値を所定の手順で拡大し、
該結果を出力可能な情報処理系である。また、前記縮小
器1016は、得られる数値を所定の手順で縮小し、該
結果を出力可能な情報処理系である。拡大器1015お
よび縮小器1016は、前述のように、圧縮時に等比縮
小器120および等比拡大器121を利用している場合
には、同じ等比縮小器120および等比拡大器121を
利用する。また、後述するように、圧縮時に等差縮小器
および等差拡大器を利用する場合には、同じ等差縮小器
および等差拡大器を利用する。このように、圧縮時と同
じ縮小関数および拡大関数を利用することにより画像情
報を伸長する。前記変換復号化手段1020は、逐次得
られるディジタル情報をあらかじめ設定済の変換式に従
い変換復号化し、該結果を逐次出力可能な情報処理系で
ある。入力手段1030は、前記変換復号化手段102
0に設定する変換係数、前記可変長復号化手段1006
に設定する可変長符号テーブル値、前記量子化テーブル
1009に設定する量子化テーブル値等の設定値を受け
付ける。これらの設定値は、圧縮時と同じ値を設定す
る。このため、圧縮時に設定した値を画像情報とともに
保持している場合には、これらの保持した値を設定す
る。
In FIG. 10, the buffer 1004
Is a first-in first-out memory that holds 4800 bits of input bit information and can sequentially output as needed. The input bit information is
+ / Output from the subtractor 111 in the compressor
If there is-bit information and the +/- bit information (hereinafter referred to as encoded information) is stored in a specific area of a medium such as a magnetic disk, the information obtained by reading the information is held. The variable length decoding means 1006 is an information processing system capable of performing variable length decoding on sequentially obtained digital information using a preset code table and successively outputting the result. A medium such as a magnetic disk for storing encoded image information can be provided in front of the variable length decoding unit 1006. When decompressing, the image information to be decompressed is read out, and the variable length decoding unit is read. Variable length decoding is performed at 1006. The quantization table 1009 is a storage unit that can hold 64 parameter values that can be set from the outside and that can output as needed. The inverse quantizer 1008
Is an information processing system capable of dequantizing sequentially obtained digital information based on the parameters of the preset quantization table 115 and successively outputting the result. The expander 1015 expands the obtained numerical value by a predetermined procedure,
An information processing system capable of outputting the result. The reduction unit 1016 is an information processing system capable of reducing the obtained numerical value in a predetermined procedure and outputting the result. As described above, the expander 1015 and the reducer 1016 use the same geometrical ratio reducer 120 and the geometrical ratio expander 121 when the geometrical ratio reducer 120 and the geometric ratio expander 121 are used during compression. To do. Further, as will be described later, when the differential reducer and the differential expander are used during compression, the same differential reducer and the differential expander are used. In this way, the image information is expanded by using the same contraction function and expansion function as those at the time of compression. The conversion / decoding means 1020 is an information processing system capable of converting / decoding sequentially obtained digital information according to a conversion formula set in advance and successively outputting the result. The input unit 1030 is the conversion decoding unit 102.
Transform coefficient set to 0, variable length decoding means 1006
Set value such as the variable length code table value set in the above table and the quantization table value set in the above quantization table 1009. These set values are set to the same values as at the time of compression. Therefore, when the values set at the time of compression are held together with the image information, these held values are set.

【0040】次に、図10を参照し、本発明による符号
化装置の機能概要を説明する。
Next, with reference to FIG. 10, a functional outline of the encoding apparatus according to the present invention will be described.

【0041】本発明による符号化装置の起動時を想定す
ると、初めに、入力手段1030において、前記可変長
復号化手段1006に設定する可変長符号化テーブル
値、前記量子化テーブル1009に設定する量子化テー
ブル値、前記変換復号化手段1020に設定する変換係
数をそれぞれ受け付けて設定する。
Assuming that the coding apparatus according to the present invention is started up, first, in the input means 1030, the variable length coding table value set in the variable length decoding means 1006 and the quantum set in the quantization table 1009. The conversion table value and the conversion coefficient set in the conversion decoding means 1020 are respectively received and set.

【0042】また、前記バッファー1004の内容をク
リアしておく。次に、スイッチ1002を図10におけ
る上側つまり復号化前側に切り替え、情報転送経路10
01を介して得られる符号化情報を4800ビット、ス
イッチ1002を介し情報転送経路1003を経て、前
記バッファー1004に読み込み、前記付帯情報の先頭
から1ビットづつ情報転送経路1010に出力する。次
に、スイッチ1002を図10における下側つまり復号
化時側に切り替え、情報転送経路1001を介して得ら
れる符号列を1ユニットづつ、スイッチ1002を介し
情報転送経路1005を経て、前記可変長復号化手段1
020に読み込み、あらかじめ設定済の可変長符号化テ
ーブルに従い可変長復号化し、該復号化後の係数列を1
ユニットづつ情報転送経路1007に出力する。次に、
前記逆量子化手段1008では、情報転送経路1007
から係数列を1ユニット読み込み、あらかじめ係数設定
済の量子化テーブル1009に従い逆量子化し、該逆量
子化後の係数列を1ユニット情報転送経路1019に出
力する。次に、前記変換符号化手段1020で、情報転
送経路1019から係数列を1ユニット読み込み、あら
かじめ設定済の変換係数に従い変換復号化し、該変換復
号化後の画像情報を1ユニット情報転送経路1021に
出力する。
Further, the contents of the buffer 1004 are cleared. Next, the switch 1002 is switched to the upper side in FIG.
The coded information obtained via 01 is read into the buffer 1004 via the information transfer path 1003 via the switch 1002 through the switch 1002, and is output to the information transfer path 1010 bit by bit from the head of the additional information. Next, the switch 1002 is switched to the lower side in FIG. 10, that is, the decoding side, and the code string obtained via the information transfer path 1001 is unit by unit, and via the information transfer path 1005 via the switch 1002, the variable length decoding is performed. Means 1
The variable length is read into 020, variable length decoding is performed according to a preset variable length coding table, and the coefficient string after the decoding is set to 1
The data is output to the information transfer path 1007 unit by unit. next,
In the inverse quantizer 1008, the information transfer path 1007
1 unit of the coefficient sequence is read, inverse quantization is performed according to the quantization table 1009 in which the coefficient is set in advance, and the coefficient sequence after the inverse quantization is output to the 1 unit information transfer path 1019. Next, the transform coding means 1020 reads one unit of the coefficient sequence from the information transfer path 1019, transforms and decodes it according to a preset transform coefficient, and transfers the image information after the transform decoding to the one unit information transfer path 1021. Output.

【0043】スイッチ1012では、情報転送経路10
10に出力された量子化テーブルの値、具体的には64
のパラメータ数値を、前記符号化情報の1ビットが1の
とき図10における右側つまり+側に切り替え、また前
記1ビットが0のとき図10における左側つまり−側に
切り替え、情報転送経路1014或は情報転送経路10
13に切り替えて出力する。前記1ビットが1のとき、
前記縮小器1016では、情報転送経路1014から前
記量子化テーブルの値の64のパラメータ数値を読み込
み、それぞれの数値をあらかじめ定めた縮小関数で縮小
し、該縮小結果を情報転送経路1018に出力する。ま
た、前記1ビットが0のとき、前記拡大器1015で
は、情報転送経路1013から前記量子化テーブルの値
の64のパラメータ数値を読み込み、それぞれの数値を
所定の手段で拡大し、該拡大結果を情報転送経路110
17に出力する。
In the switch 1012, the information transfer path 10
The value of the quantization table output to 10, specifically 64
10 is switched to the right side, that is, + side in FIG. 10 when 1 bit of the encoded information is 1, and is switched to the left side, that is, − side in FIG. 10 when the 1 bit is 0, and the information transfer path 1014 or Information transfer route 10
Switch to 13 and output. When the 1 bit is 1,
The reducer 1016 reads the 64 parameter values of the values in the quantization table from the information transfer path 1014, reduces each value by a predetermined reduction function, and outputs the result of the reduction to the information transfer path 1018. When the 1 bit is 0, the expander 1015 reads 64 parameter numerical values of the quantization table values from the information transfer path 1013, expands each numerical value by a predetermined means, and outputs the expanded result. Information transfer path 110
Output to 17.

【0044】前記量子化テーブル1009は、前記1ビ
ットが1のとき情報転送経路1018から前記量子化テ
ーブルの値の64のパラメータ数値を読み込み、設定さ
れ保持した前記量子化テーブルの値の64の数値を書き
替える。また、前記量子化テーブル1009は、前記1
ビットが0のとき情報転送経路1017から前記量子化
テーブルの値の64の数値を読み込み、設定され保持し
た前記量子化テーブルの値の64の数値を書き替える。
The quantization table 1009 reads the 64 parameter values of the quantization table value from the information transfer path 1018 when the 1 bit is 1, and sets and holds the 64 parameter values of the quantization table value. Rewrite. Also, the quantization table 1009 is
When the bit is 0, the numerical value of 64 of the value of the quantization table is read from the information transfer path 1017, and the numerical value of 64 of the value of the quantization table which is set and held is rewritten.

【0045】つぎに、本発明の実施例におけるハードウ
エア構成を図12を参照して説明する。図12は本発明
の符号化装置のハードウエア構成図である。
Next, a hardware configuration in the embodiment of the present invention will be described with reference to FIG. FIG. 12 is a hardware configuration diagram of the encoding device of the present invention.

【0046】図12に示すように、本発明による符号化
装置は、画像入力部1236、画像出力部1237、画
像メモリ1202・1224、主メモリ1203・12
25、演算機1204・1228、データRAM120
6・1226、コードRAM1208・1230、バス
1213・1217およびメディア1215を主な構成
要素とする。図12においては、圧縮処理と伸長処理と
を行う手段を説明のために別けて示しているが、実際の
装置においては、処理方法が異なるだけでハードウエア
としては1組備えていればよい。
As shown in FIG. 12, the encoding apparatus according to the present invention includes an image input unit 1236, an image output unit 1237, image memories 1202/1224, and main memories 1203/12.
25, arithmetic unit 1204/1228, data RAM 120
6-1226, code RAM 1208/1230, bus 1213/1217 and media 1215 are the main constituent elements. In FIG. 12, the means for performing the compression processing and the decompression processing are separately shown for the sake of explanation, but in the actual apparatus, only one processing method is different and one set of hardware may be provided.

【0047】図12において、画像入力部1236は、
画像情報を入力する。画像出力部1237は、表示手段
や印刷手段などであり画像を出力する。前記画像メモリ
1202・1224は、得られる24bpp、3072
00画素のディジタル画像データを保持可能なメモリ
で、ビデオ信号との変換部分と(パソコン)バスとのイ
ンタフェイス部分を備えるデュアルポート・メモリであ
る。前記主メモリ1203・1225は、少なくとも1
ユニットの画像データ列と4800ユニットの符号列を
保持可能なメモリで、(パソコン)バスとのインタフェ
イス部分を備えるメモリである。前記演算機1204・
1228は、ノイマン型プロセッサであり、圧縮処理ま
たは伸長処理を行う。前記データRAM1206・12
26は、少なくとも1ユニットの画像データ列と1ユニ
ットの符号列を保持可能なメモリで、それぞれ前記演算
機1204・1228と(パソコン)バスとのインタフ
ェイス部分を備えるメモリである。前記コードRAM1
208・1230は、少なくとも1処理(圧縮処理もし
くは伸長処理等)単位のプログラムを保持可能なメモリ
で、それぞれ前記演算機1204・1228と(パソコ
ン)バスとのインタフェイス部分を備えるメモリであ
る。前記バス1213・1217は、パソコン等で通常
に用いられるバス(共用線)で、接続先の内目的の転送
元と目的の転送先の2点を特定し、該2点間でのデータ
転送を該データ量に応じたバス・サイクルで行える。前
記メディア1215は、得られるディジタル情報を保持
し、配布や伝送によって伝える事が可能なメディア(媒
体)で、(パソコン)バスとのインタフェイス部分を備
える。
In FIG. 12, the image input section 1236 is
Enter the image information. The image output unit 1237 is a display unit, a printing unit, or the like and outputs an image. The image memories 1202 and 1224 have the obtained 24 bpp, 3072.
This is a dual port memory that can hold digital image data of 00 pixels and that has a conversion part with a video signal and an interface part with a (personal computer) bus. The main memory 1203/1225 has at least one
It is a memory that can hold image data strings of units and code strings of 4800 units, and is a memory that has an interface portion with a (personal computer) bus. The computing machine 1204
A Neumann processor 1228 performs compression processing or decompression processing. The data RAM 1206/12
Reference numeral 26 is a memory capable of holding at least one unit of image data sequence and one unit of code sequence, and is a memory having an interface portion between the arithmetic units 1204 and 1228 and a (personal computer) bus, respectively. Code RAM1
Reference numerals 208 and 1230 denote memories capable of holding a program of at least one processing unit (compression processing or decompression processing, etc.), and memories each having an interface portion between the arithmetic units 1204 and 1228 and a (personal computer) bus. The buses 1213 and 1217 are buses (common lines) that are normally used in personal computers and the like, and specify two points of the transfer source of the connection destination and the transfer destination of the target, and transfer data between the two points. It can be performed in a bus cycle according to the data amount. The medium 1215 is a medium that holds obtained digital information and can be transmitted by distribution or transmission, and has an interface portion with a (personal computer) bus.

【0048】次に、図3および図11に示すフローチャ
ートを参照し、図12に示す符号化装置の全体の動作を
概説する。
Next, the overall operation of the encoding apparatus shown in FIG. 12 will be outlined with reference to the flowcharts shown in FIGS.

【0049】本発明による符号化装置の起動時を想定す
ると、初期設定として前記コードRAM1208に、処
理手順を規定している処理プログラムを、図示はしてい
ないが通常バス1213に接続される補助記憶装置等か
ら、前記バス1213およびコード転送経路1212を
介しロードする。処理プログラムとしては、前述の図1
および図2を参照して説明したように、変換符号化と量
子化および可変長符号化を行い、符号化後所定の外部装
置の一定処理サイクル期間内に得る情報量を希望の値と
比較し、該比較結果に従い量子化テーブル値を加工する
機能を備える。
Assuming that the encoding apparatus according to the present invention is started up, a processing program defining a processing procedure is initially stored in the code RAM 1208 as an initial setting, but an auxiliary storage not shown in the drawing is normally connected to the bus 1213. It is loaded from the device or the like via the bus 1213 and the code transfer path 1212. The processing program is shown in FIG.
As described with reference to FIG. 2 and FIG. 2, transform coding, quantization, and variable length coding are performed, and after coding, the amount of information obtained within a fixed processing cycle period of a predetermined external device is compared with a desired value. , And a function of processing the quantization table value according to the comparison result.

【0050】図3において、圧縮処理の場合には、先ず
初期設定として目的の画像データ・ファイルの指定およ
び圧縮率の指定を入力部により行う(S301)。
In the case of the compression processing in FIG. 3, first, as the initial setting, the target image data file and the compression rate are designated by the input section (S301).

【0051】前記画像メモリ1202には、画像入力部
1236より入力された情報が蓄積されており、入力部
1234において指定を受け付けると、ビデオ信号線1
201から得られるビデオ信号を24bpp、3072
00画素のディジタル画像データに変換した物を読み込
み、1ユニットつまり縦横8×8の部分画像マトリック
スの色成分毎の最小組合せ分、データ転送経路1209
を介しバス1213に出力する。前記主メモリ1203
は、バス1213からデータ転送経路1210を介し、
前記1ユニットの画像データ列を読み込み(S30
2)、前記1ユニットの画像データ列をデータ転送経路
1210を介しバス1213に出力する。前記データR
AM1206は、バス1213からデータ転送経路12
11を介し、前記1ユニットの画像データ列を読み込
む。図3においては、主メモリ上のデータを加工するよ
うに示しているが、データRAM1206もしくは主メ
モリのいずれから読みだしてもかまわない。
Information input from the image input unit 1236 is stored in the image memory 1202, and when the input unit 1234 receives a designation, the video signal line 1 is received.
The video signal obtained from 201 is 24 bpp, 3072
A data transfer path 1209 is obtained by reading the data converted into digital image data of 00 pixels and reading one unit, that is, the minimum combination for each color component of the vertical and horizontal 8 × 8 partial image matrix.
To the bus 1213 via. The main memory 1203
From the bus 1213 via the data transfer path 1210,
The image data string of the one unit is read (S30
2) The image data string of one unit is output to the bus 1213 via the data transfer path 1210. The data R
The AM 1206 transfers data from the bus 1213 to the data transfer path 12
The image data string of one unit is read via 11. In FIG. 3, the data in the main memory is shown as being processed, but it may be read from either the data RAM 1206 or the main memory.

【0052】前記コードRAM1208にロード済みの
プログラムに従い、前記演算機1204で前記データR
AM1206内の前記1ユニットの画像データ列を加工
する。加工処理としては、まず、画像データを所定の変
換式に従い変換符号化する(S303)。次に前記圧縮
率に従い、量子化テーブルを初期設定する。該初期設定
の実例を図中に示してあるが(S304)、さらに細か
い場合分けとそれに伴う設定値のチューニングを行うと
画質がさらに向上できる。図3におけるS304の処理
では、指定された圧縮率に応じて量子化ステップもしく
は量子化テーブルを設定することによりより早く圧縮処
理が追従することができる。
According to the program already loaded in the code RAM 1208, the data R is calculated by the arithmetic unit 1204.
The image data string of the one unit in the AM 1206 is processed. As the processing, first, the image data is converted and encoded according to a predetermined conversion formula (S303). Next, the quantization table is initialized according to the compression rate. Although an example of the initial setting is shown in the figure (S304), the image quality can be further improved by further finely dividing the cases and tuning the set values accordingly. In the process of S304 in FIG. 3, the compression process can follow more quickly by setting the quantization step or the quantization table according to the designated compression rate.

【0053】次に主メモリー上の符号を所定の量子化テ
ーブルで量子化後(S305)、所定の符号テーブルで
可変長符号化する(S306)。
Next, the code on the main memory is quantized by a predetermined quantization table (S305), and then variable length coded by a predetermined code table (S306).

【0054】ここで、単位処理ユニットあたりの前記可
変長符号化情報量、つまり圧縮後の情報量を取り出し、
圧縮前の対応する情報量で割った実際の圧縮率が前記指
定した圧縮率以上か否かを判断する(S307)。前記
指定した圧縮率以上の場合、前記量子化テーブルの各値
を1.10を掛け(S308)、掛けた値に量子化テー
ブルを更新しデータRAM1206の特定領域をバッフ
ァーエリアとして(符号化情報バッファー)に1を保持
する(S309)。前記指定した圧縮率未満の場合に
は、前記量子化テーブルの各値を0.91を掛け(S3
10)、掛けた値に量子化テーブルを更新し、バッファ
ー(符号化情報バッファー)に0を保持する(S31
1)。目的の画像データが符号化できるまで所定の処理
を繰返した後(S312)、該加工後の符号列と前記バ
ッファー(符号化情報バッファー)の符号化情報の内容
とをデータ転送経路1211を介しバス1213に出力
し、メディア1215のファイルに書いて処理を終了す
る(S303)。メディア1215は、バス1213か
らデータ転送経路1214を介し、前記1ユニットの符
号列および前記符号化情報を読み込み保持する。
Here, the variable length coded information amount per unit processing unit, that is, the information amount after compression is taken out,
It is determined whether the actual compression ratio divided by the corresponding information amount before compression is equal to or higher than the specified compression ratio (S307). If the compression ratio is equal to or higher than the specified compression ratio, each value of the quantization table is multiplied by 1.10 (S308), the quantization table is updated to the multiplied value, and a specific area of the data RAM 1206 is set as a buffer area (encoding information buffer ) Is held at 1 (S309). If the compression ratio is less than the specified compression ratio, each value in the quantization table is multiplied by 0.91 (S3
10), the quantization table is updated to the multiplied value, and 0 is held in the buffer (encoding information buffer) (S31).
1). After predetermined processing is repeated until the target image data can be encoded (S312), the processed code string and the content of the encoded information in the buffer (encoding information buffer) are transferred via the data transfer path 1211 to the bus. It is output to 1213, written in the file of the medium 1215, and the processing is ended (S303). The medium 1215 reads and holds the code string of one unit and the coded information from the bus 1213 via the data transfer path 1214.

【0055】次に、図11を参照して画像を伸長する場
合の処理を説明する。初期設定として前記コードRAM
1230に、処理手順を規定している処理プログラム
を、図示はしていないが通常バス1217に接続される
補助記憶装置等から、前記バス1217およびコード転
送経路1222を介しロードする。処理プログラムとし
ては、符号化後所定の外部装置の一定処理サイクル期間
内に得る情報量と希望値との比較結果、即ち符号化情報
に従い量子化テーブル値を加工しながら逆量子化を行う
機能を備える、変換復号化と逆量子化および可変長復号
化を行うプログラムがある。
Next, processing for expanding an image will be described with reference to FIG. The code RAM as an initial setting
In 1230, a processing program which defines the processing procedure is loaded from an auxiliary storage device or the like which is usually connected to the bus 1217 though not shown, via the bus 1217 and the code transfer path 1222. The processing program has a function of performing inverse quantization while processing the quantization table value in accordance with the result of comparison between the amount of information obtained within a fixed processing cycle period of a predetermined external device after encoding and a desired value, that is, encoding information. There is a program provided to perform transform decoding, dequantization, and variable length decoding.

【0056】図11において、伸長処理を行う場合に
は、先ず初期設定として目的の画像圧縮ファイルの指定
および量子化テーブルの指定を入力部により行う(S1
101)。量子化テーブルをメディアに記憶している場
合には、メディアから読みだすようにしてもよい。次
に、指定された量子化テーブルに従い、量子化テーブル
を初期設定する(S1103)。
In FIG. 11, when the decompression process is performed, first, as an initial setting, the target image compression file and the quantization table are designated by the input section (S1).
101). When the quantization table is stored in the medium, it may be read from the medium. Next, the quantization table is initialized according to the specified quantization table (S1103).

【0057】前記メディア1215は、読み込み保持し
た前記1ユニットの符号列および前記符号化情報をデー
タ転送経路1216からバス1217に出力する。前記
主メモリ1225は、バス1217からデータ転送経路
1220を介し、前記1ユニットの符号列および前記符
号化情報を読み込み、前記1ユニットの符号列および前
記符号化情報をデータ転送経路1220を介しバス12
17に出力する。前記データRAM1226は、バス1
217からデータ転送経路1221を介し、前記1ユニ
ットの符号列および前記符号化情報を読み込む(S11
02)。目的の画像圧縮ファイル内の符号化情報は、デ
ータRAM1226の特定領域のバッファーエリア(符
号化情報バッファー)に転送する(S1104)。前記
コードRAM1230にロード済みのプログラムに従
い、前記演算機1228で前記データRAM1226内
の前記1ユニットの符号列を加工する。加工処理として
は、まず、主メモリ上の符号列を先頭から1ユニット可
変長復号化後、得られる係数列を主メモリで保持する
(S1105)。次に、主メモリ上の可変長復号化後の
係数列を1ユニット所定の量子化テーブルで逆量子化
(S1106)後、得られる係数列を主メモリで保持す
る。次に、主メモリ上の逆量子化後の係数列を1ユニッ
ト所定の変換係数で変換復号化後、得られる係数列を表
示用メモリ等に順次転送する(S1107)。
The medium 1215 outputs the read and held code string of one unit and the coded information from the data transfer path 1216 to the bus 1217. The main memory 1225 reads the code string of the one unit and the coding information from the bus 1217 via the data transfer path 1220, and reads the code string of the one unit and the coding information from the bus 1217 via the data transfer path 1220.
Output to 17. The data RAM 1226 is a bus 1
The code string of the one unit and the coding information are read from 217 via the data transfer path 1221 (S11).
02). The encoded information in the target image compression file is transferred to the buffer area (encoded information buffer) of the specific area of the data RAM 1226 (S1104). According to the program already loaded in the code RAM 1230, the arithmetic unit 1228 processes the code string of the one unit in the data RAM 1226. As the processing, first, the code string on the main memory is decoded by one unit from the head, and the obtained coefficient string is held in the main memory (S1105). Next, the coefficient sequence after variable length decoding on the main memory is inversely quantized by a unit of a predetermined quantization table (S1106), and the obtained coefficient sequence is held in the main memory. Next, the coefficient sequence after dequantization on the main memory is transform-decoded by one unit with a predetermined transform coefficient, and the obtained coefficient sequence is sequentially transferred to the display memory or the like (S1107).

【0058】ここで、バッファー(符号化情報バッファ
ー)の符号化情報を先頭から1ビット読み出し(S11
08)、該1ビットの情報が1か否かを判断し(S11
09)、該1ビットの情報が1の時、量子化テーブルの
各値を所定の手段で縮小し(S1110)、該1ビット
の情報が0の時、量子化テーブルの各値を所定の手段で
拡大する(S1111)。前記コードRAM1230に
ロード済みのプログラムは、前記データRAM1226
内の前記符号化情報に従い、前記演算機1228で前記
データRAM1226内の前記1ユニットの符号列加工
時、即ち、復号化時の逆量子化過程に用いる量子化テー
ブルを符号化時の動的変化と同様に変化させる(S11
12)。目的の画像圧縮ファイルが復号化できるまで所
定の処理を繰り返えす(S1113)。
Here, one bit of the coded information of the buffer (coded information buffer) is read from the beginning (S11
08), and it is determined whether the 1-bit information is 1 (S11
09), when the 1-bit information is 1, each value of the quantization table is reduced by a predetermined means (S1110), and when the 1-bit information is 0, each value of the quantization table is determined by a predetermined means. To enlarge (S1111). The program loaded in the code RAM 1230 is stored in the data RAM 1226.
According to the encoding information in the above, the arithmetic unit 1228 dynamically changes the quantization table used in the code string processing of the one unit in the data RAM 1226, that is, the inverse quantization process at the time of encoding. Change in the same way as (S11
12). Predetermined processing is repeated until the target image compression file can be decoded (S1113).

【0059】前記画像メモリ1224は、バス1217
からデータ転送経路1219を介し、1ユニットつまり
縦横8×8の部分画像マトリックスの色成分毎の最小組
合せ分の画像データを逐次読み込み、1枚の画像データ
に再編成後ビデオ表示信号に変換し、ビデオ信号線12
23に出力し、目的の画像データの表示や出力等を画像
出力部1237により行い処理を終了する。
The image memory 1224 has a bus 1217.
From the data transfer path 1219, one unit, that is, the image data of the minimum combination for each color component of the partial image matrix of vertical and horizontal 8 × 8 is sequentially read and converted into a video display signal after reorganization into one image data, Video signal line 12
23, and display and output of the target image data is performed by the image output unit 1237, and the process ends.

【0060】以下、本発明の第2の実施例を図4、図5
および図6を用いて説明する。図4は本発明の符号化装
置の構成図、図5は本発明の符号化装置の動作概要、図
6は本発明の符号化装置の動作を示すフローチャートで
ある。本実施例においては、量子化テーブルを更新する
際の縮小器および拡大器を等乗縮小器401および等乗
拡大器402により構成する。
Hereinafter, a second embodiment of the present invention will be described with reference to FIGS.
And it demonstrates using FIG. FIG. 4 is a block diagram of the encoding apparatus of the present invention, FIG. 5 is an operation outline of the encoding apparatus of the present invention, and FIG. 6 is a flowchart showing the operation of the encoding apparatus of the present invention. In the present embodiment, the reducer and the expander for updating the quantization table are configured by a square-law reducer 401 and a square-law expander 402.

【0061】まず、初めに図4を参照し、本発明の符号
化装置の構成及び機能概要を説明する。図4に示すよう
に本発明による符号化装置は、変換符号化手段102、
量子化手段104、可変長符号化手段106、情報量計
測手段108、引算器111、情報量保持手段113、
量子化テーブル115、等乗縮小器401、等乗拡大器
402およびバッファー126を主な構成要素とする。
First, referring to FIG. 4, an outline of the configuration and function of the encoding apparatus of the present invention will be described. As shown in FIG. 4, the encoding device according to the present invention is composed of transform encoding means 102,
Quantizing means 104, variable length coding means 106, information amount measuring means 108, subtractor 111, information amount holding means 113,
The quantization table 115, the power square reducer 401, the power square expander 402 and the buffer 126 are main components.

【0062】図4において、前記変換符号化手段102
は、逐次得られる画像のディジタル情報をあらかじめ設
定済の変換式に従い変換符号化し、該結果を逐次出力可
能な情報処理系である。該変換符号化手段102の前段
には、画像情報を入力する画像入力手段を備えることが
でき、画像情報がアナログの場合には、アナログ−ディ
ジタル変換器をさらに備えることができる。画像入力手
段としては、画像情報を蓄積している記憶装置や、通信
回線を介して通信制御装置などにより画像情報を入力す
ることができる。前記量子化テーブル115は、外部か
ら設定可能な64のパラメータ数値を保持し、必要に応
じ出力可能な記憶手段である。前記量子化手段104
は、逐次得られるディジタル情報を、量子化テーブル1
15のパラメータに基づいて量子化し、該量子化された
画像情報を逐次出力可能な情報処理系である。本実施例
においては、量子化テーブル115に保持する量子化ス
テップあるいは量子化パラメータは、量子化する前にあ
らかじめ設定しておき、量子化する際に、後述する方法
により値が逐次更新される。前記可変長符号化手段10
6は、逐次得られるディジタル情報をあらかじめ設定済
の符号テーブルで可変長符号化し、該結果を逐次出力可
能な情報処理系である。前記情報量計測手段108は、
所定の外部装置の一定処理サイクル期間内に逐次入力さ
れ符号化されたディジタル情報の情報量を計測し、該情
報量と前記符号化されたディジタル情報を逐次出力可能
な情報処理系である。前記情報量保持手段113は、圧
縮する画像についての圧縮後の情報量の希望値をあらか
じめ保持し、該情報量の希望値もしくは該情報量の希望
値に基づいてあらかじめ定めた式により計算した情報量
を出力することができる。前記引算器111は、比較手
段であり、情報量保持手段113からの出力値と情報量
計測手段108からの出力値との数値を比較し、情報量
保持手段113からの出力値が情報量計測手段108か
らの出力値より大きい場合(図4において、「+」で示
す)には、大きいことを示す値を出力し、小さい場合
(図4において、「−」で示す)には小さいことを示す
値を出力する情報処理系である。スイッチ117は、引
算器111の出力値により切り換えられ、情報量保持手
段113からの出力値が情報量計測手段108からの出
力値より大きい場合には、量子化テーブルのパラメータ
の出力値を等乗縮小器120に入力するように接続さ
れ、小さい場合には等乗拡大器121に接続するように
切り替わる。前記等乗縮小器401は、得られる量子化
パラメータの数値を0.9乗(あらかじめ設定された縮
小関数)し、該結果を出力可能な情報処理系である。前
記等乗拡大器402は、得られる量子化パラメータの数
値を1.1乗(あらかじめ設定された拡大関数)し、該
結果を出力可能な情報処理系である。前記バッファー1
26は、引算器111から出力される+/−のビット情
報を4800ビット保持可能で、必要に応じ出力可能な
ファーストイン・ファーストアウト・メモリである。入
力手段130は、前記変換符号化手段102に設定する
変換係数、前記可変長符号化手段106に設定する可変
長符号テーブル値、前記量子化テーブル115に設定す
る量子化テーブル値、または、前記情報量保持手段11
3に設定する、圧縮する画像についての圧縮後の情報量
の希望値(もしくは圧縮率)等の設定値を受け付ける。
In FIG. 4, the transform coding means 102 is shown.
Is an information processing system capable of transform-encoding digital information of images obtained successively according to a preset transformation formula and successively outputting the results. An image input unit for inputting image information can be provided in the preceding stage of the conversion encoding unit 102, and when the image information is analog, an analog-digital converter can be further provided. As image input means, image information can be input by a storage device that stores image information or a communication control device via a communication line. The quantization table 115 is a storage unit that holds 64 parameter values that can be set from the outside and can output them as needed. The quantization means 104
Is a quantization table 1 for digital information that is sequentially obtained.
This is an information processing system capable of performing quantization on the basis of 15 parameters and successively outputting the quantized image information. In this embodiment, the quantization step or the quantization parameter held in the quantization table 115 is set in advance before the quantization, and the value is sequentially updated by the method described later when the quantization is performed. The variable length coding means 10
Reference numeral 6 denotes an information processing system capable of performing variable length coding on digital information that is sequentially obtained by a preset code table and successively outputting the result. The information amount measuring means 108 is
This is an information processing system capable of measuring the information amount of the digital information that is sequentially input and encoded within a fixed processing cycle period of a predetermined external device, and sequentially outputting the information amount and the encoded digital information. The information amount holding means 113 holds in advance a desired value of the information amount after compression for an image to be compressed, and a desired value of the information amount or information calculated by a predetermined formula based on the desired value of the information amount. The quantity can be output. The subtractor 111 is a comparison unit that compares the output value from the information amount holding unit 113 and the output value from the information amount measuring unit 108, and the output value from the information amount holding unit 113 is the information amount. If it is larger than the output value from the measuring means 108 (indicated by "+" in FIG. 4), a value indicating that it is large is output, and if it is small (indicated by "-" in FIG. 4), it is small. Is an information processing system that outputs a value indicating. The switch 117 is switched by the output value of the subtractor 111, and when the output value from the information amount holding means 113 is larger than the output value from the information amount measuring means 108, the output values of the parameters of the quantization table are equalized. It is connected so as to be input to the multiplier / reducer 120, and when it is smaller, it is switched to be connected to the exponentiator 121. The power reduction unit 401 is an information processing system capable of outputting the obtained value of the quantization parameter to the power of 0.9 (a preset reduction function) and outputting the result. The power square expander 402 is an information processing system capable of outputting the obtained value of the quantization parameter to the power of 1.1 (a preset expansion function) and outputting the result. Buffer 1
Reference numeral 26 is a first-in first-out memory which can hold 4800 bits of +/- bit information output from the subtractor 111 and can output the bit information as needed. The input unit 130 is a transform coefficient set in the transform coding unit 102, a variable length code table value set in the variable length coding unit 106, a quantization table value set in the quantization table 115, or the information. Quantity holding means 11
A setting value such as a desired value (or compression ratio) of the amount of information after compression for an image to be set, which is set to 3, is accepted.

【0063】次に、図4を参照し、第2の実施例による
符号化装置の機能概要を説明する。
Next, with reference to FIG. 4, a functional outline of the encoding apparatus according to the second embodiment will be described.

【0064】第2の実施例における符号化装置の起動時
を想定すると、初めに、入力手段130において、前記
変換符号化手段102に設定する変換係数、前記可変長
符号化手段106に設定する可変長符号テーブル値、前
記量子化テーブル115に設定する量子化テーブル値、
および、前記情報量保持手段113に設定する、圧縮す
る画像についての圧縮後の情報量の希望値等の設定値を
受け付ける。入力手段は、前記変換符号化手段102に
変換係数を設定し、前記可変長符号化手段106に可変
長符号テーブル値を設定し、前記量子化テーブル115
に量子化テーブル値を設定し、前記情報量保持手段11
3に符号化後の情報量の希望値を設定する。前記情報量
保持手段113に符号化後の情報量の希望値としては、
例えば、1画面における情報量や、入力する全ての画像
情報に対する圧縮後の総情報量、圧縮比率等を受け付け
ることができる。情報量保持手段113では、情報量の
希望値に基づいてあらかじめ定めた式により計算した情
報量を出力する。例えば、引き算器111において比較
する周期を、所定の外部装置の一定処理サイクルとした
場合には、一定処理リサイクル内に得る情報量に相当す
る情報量を計算しておき、その計算値を保持することが
できる。また、前記バッファー126は該バッファの内
容をクリアしておく。
Assuming that the coding apparatus in the second embodiment is started up, first, in the input means 130, the transform coefficient set in the transform coding means 102 and the variable set in the variable length coding means 106 are set. Long code table value, quantization table value set in the quantization table 115,
A setting value such as a desired value of the information amount after compression for an image to be compressed, which is set in the information amount holding unit 113, is accepted. The input means sets the transform coefficient in the transform coding means 102, sets the variable length code table value in the variable length coding means 106, and sets the quantization table 115.
The quantization table value is set to the information amount holding means 11
A desired value of the amount of information after encoding is set in 3. As the desired value of the information amount after encoding in the information amount holding means 113,
For example, the amount of information on one screen, the total amount of information after compression for all input image information, the compression ratio, and the like can be accepted. The information amount holding unit 113 outputs the information amount calculated by a predetermined formula based on the desired value of the information amount. For example, when the cycle to be compared in the subtractor 111 is a constant processing cycle of a predetermined external device, an information amount corresponding to the information amount obtained in the constant processing recycling is calculated and the calculated value is held. be able to. Further, the buffer 126 clears the contents of the buffer.

【0065】次に、前記変換符号化手段102で、画像
情報転送経路101から画像情報を1ユニット読み込
み、あらかじめ設定済の変換式に従い変換符号化し、該
符号を1ユニット情報転送経路103に出力する。ここ
で、1ユニットは、例えば、1画面を480*640画
素としたとき、8*8画素の1ブロックを単位にするこ
とができる。次に、前記量子化手段104で、情報転送
経路103から情報を1ユニット読み込み、あらかじめ
係数設定済の量子化テーブル115に従い量子化し、該
量子化後の情報を1ユニット情報転送経路105に出力
する。次に、前記可変長符号化手段106で、情報転送
経路105から情報を1ユニット読み込み、あらかじめ
設定済の可変長符号化テーブルに従い可変長符号化し、
該符号化後の情報を1ユニット情報転送経路107に出
力する。
Next, the conversion encoding means 102 reads one unit of image information from the image information transfer path 101, performs conversion encoding according to a preset conversion equation, and outputs the code to the one unit information transfer path 103. . Here, one unit can be a unit of one block of 8 * 8 pixels when one screen is 480 * 640 pixels. Next, the quantizing means 104 reads one unit of information from the information transfer path 103, quantizes it according to the quantization table 115 in which the coefficient is set in advance, and outputs the quantized information to the one-unit information transfer path 105. . Next, the variable length coding means 106 reads one unit of information from the information transfer path 105, performs variable length coding according to a preset variable length coding table,
The encoded information is output to the 1-unit information transfer path 107.

【0066】前記情報量計測手段108で、情報転送経
路107から情報を1ユニット読み込み、該1ユニット
の情報の情報量を計測し、前記1ユニットの情報を情報
転送経路109に、前記計測結果を情報転送経路110
に出力する。このとき、前記情報量保持手段113は、
設定されて保持した情報量を情報転送経路112に出力
する。次に、前記引算器111は、情報転送経路110
と情報転送経路112とから2つの数値を読み込み、前
記情報転送経路112の数値から前記情報転送経路11
0の数値を引き算し、前記引き算結果を情報転送経路1
14および125に出力する。
The information amount measuring means 108 reads one unit of information from the information transfer path 107, measures the information amount of the information of the one unit, and transfers the information of the one unit to the information transfer path 109 and the measurement result. Information transfer path 110
Output to. At this time, the information amount holding means 113
The set and held amount of information is output to the information transfer path 112. Next, the subtractor 111 operates the information transfer path 110.
And two values are read from the information transfer path 112, and the information transfer path 11 is read from the numerical values of the information transfer path 112.
The value of 0 is subtracted, and the subtraction result is the information transfer path 1
Output to 14 and 125.

【0067】前記量子化テーブル115は、あらかじめ
設定された64のパラメータ数値を情報転送経路116
に出力する。スイッチ117は、情報転送経路116に
出力された64のパラメータの数値を、前記引き算結果
が+のとき情報転送経路118に、前記引き算結果が−
のとき情報転送経路119に切り換えて出力する。
The quantization table 115 stores the preset 64 parameter values in the information transfer path 116.
Output to. The switch 117 outputs the numerical values of the 64 parameters output to the information transfer path 116 to the information transfer path 118 when the subtraction result is +, and the subtraction result is −.
In this case, the information is switched to the information transfer path 119 and output.

【0068】前記引き算結果が+のとき前記等乗縮小器
401では、情報転送経路118から前記64のパラメ
ータの数値を読み込み、それぞれの数値を0.9乗し、
該乗算結果を情報転送経路123に出力する。また、前
記引き算結果が−のとき前記等乗拡大器121では、情
報転送経路119から前記64のパラメータの数値を読
み込み、それぞれの数値を1.1乗し、該乗算結果を情
報転送経路124に出力する。
When the subtraction result is +, the power reduction unit 401 reads the numerical values of the 64 parameters from the information transfer path 118 and multiplies each numerical value by 0.9,
The multiplication result is output to the information transfer path 123. Further, when the subtraction result is −, the power square expander 121 reads the numerical values of the 64 parameters from the information transfer path 119, multiplies each numerical value by 1.1, and outputs the multiplication result to the information transfer path 124. Output.

【0069】前記量子化テーブル115は、前記引き算
結果が+のとき情報転送経路123から前記64のパラ
メータの数値を読み込み、保持していた前記64のパラ
メータの数値を書き替える。また、前記量子化テーブル
115は、前記引き算結果が−のとき情報転送経路12
4から前記64のパラメータの数値を読み込み、設定さ
れ保持した前記64のパラメータの数値を書き替える。
The quantization table 115 reads the numerical values of the 64 parameters from the information transfer path 123 when the subtraction result is +, and rewrites the numerical values of the 64 parameters that have been held. In addition, the quantization table 115 stores the information transfer path 12 when the subtraction result is −.
The numerical values of the 64 parameters are read from 4, and the numerical values of the 64 parameters that have been set and held are rewritten.

【0070】前記バッファー126では、情報転送経路
125から前記引き算結果を読み込み、該引き算結果が
+のときビットを1に、前記情報を引き算結果が−のと
きビットを0に対応付け、4800ビット分を保持し、
符号化時情報転送経路109からスイッチ128を介し
情報転送経路129への符号情報出力が完了後、前記4
800ビットの情報を古いものから順に情報転送経路1
27からスイッチ128を介し情報転送経路129へ出
力する。この引き算結果は、圧縮された画像情報ととも
に、記憶装置に記憶される。復号する際には、これらの
引き算結果をもとに、量子化パラメータを逐次更新して
いき逆変換する。
In the buffer 126, the subtraction result is read from the information transfer path 125, and when the subtraction result is +, the bit is set to 1 and when the subtraction result is −, the bit is set to 0 and 4800 bits are stored. Hold
After the code information output from the encoding information transfer path 109 to the information transfer path 129 via the switch 128 is completed,
Information transfer path 1 with 800-bit information in chronological order
27 to the information transfer path 129 via the switch 128. This subtraction result is stored in the storage device together with the compressed image information. At the time of decoding, the quantization parameter is successively updated based on these subtraction results, and inverse transformation is performed.

【0071】次に、図5を参照し、第2の実施例の符号
化装置の動作概要を説明する。図5は、本実施例におけ
る符号化装置の構成をより具体的に示している。図4に
おける手段と機能が同じものは同じ記号で示している。
Next, with reference to FIG. 5, an outline of the operation of the coding apparatus of the second embodiment will be described. FIG. 5 more specifically shows the configuration of the encoding apparatus in this embodiment. Those having the same functions as those in FIG. 4 are denoted by the same symbols.

【0072】図5において、第2の実施例による符号化
装置の起動時を想定すると、初めに、入力手段130に
おいて、前記可変長符号化手段106に設定する可変長
符号テーブル値、前記量子化テーブル115に設定する
量子化テーブル値の設定値を受け付ける。前記可変長符
号化手段106および前記量子化テーブル115に可変
長符号テーブル値と量子化テーブル値とをそれぞれ設定
する。前記バッファー126は、該バッファの内容をク
リアする。図5においては、符号化された画像情報が入
力しており、情報のビット数201が11ビットとし、
情報の単位ユニット202は、図5に示す柱状の画像情
報230を64個集めたものである。
In FIG. 5, assuming that the encoding apparatus according to the second embodiment is started up, first, in the input means 130, the variable length code table value set in the variable length encoding means 106 and the quantization. The setting value of the quantization table value set in the table 115 is accepted. A variable length code table value and a quantization table value are set in the variable length coding means 106 and the quantization table 115, respectively. The buffer 126 clears the contents of the buffer. In FIG. 5, encoded image information is input, and the information bit number 201 is 11 bits,
The information unit unit 202 is a collection of 64 pieces of columnar image information 230 shown in FIG.

【0073】前記量子化手段104では、情報転送経路
103から画像情報の単位ユニット202の変換係数を
読み込み、あらかじめ係数設定済の量子化テーブル11
5に従い量子化する。図5に示すように、量子化後の情
報のビット数204は11ビットであり、情報の単位ユ
ニット206の変換係数206を情報転送経路105に
出力する。
In the quantizing means 104, the conversion coefficient of the image information unit unit 202 is read from the information transfer path 103, and the quantization table 11 in which the coefficient is set in advance is read.
Quantize according to 5. As shown in FIG. 5, the number of bits 204 of the quantized information is 11 bits, and the transform coefficient 206 of the information unit unit 206 is output to the information transfer path 105.

【0074】前記可変長符号化手段106では、情報転
送経路105から情報のビット数204が11ビット、
情報の単位ユニット206の変換係数206を読み込
み、あらかじめ設定済の可変長符号化テーブルに従い可
変長符号化する。符号化後、情報のビット数207は2
〜16ビットになり、情報の単位ユニット208の符号
209を情報転送経路107に出力する。
In the variable length coding means 106, the number of information bits 204 from the information transfer path 105 is 11 bits,
The conversion coefficient 206 of the information unit unit 206 is read and variable length coding is performed according to a preset variable length coding table. After encoding, the number of information bits 207 is 2
.About.16 bits, and the code 209 of the information unit unit 208 is output to the information transfer path 107.

【0075】累算器210では、情報の単位ユニット2
08の符号209を読み込み、該1ユニットの符号の情
報量を累算し、前記1ユニットの符号を情報転送経路1
09に出力し、前記累算結果を情報転送経路211に出
力する。累算器210は、図4における情報量計測手段
である。
In the accumulator 210, the information unit 2
The code 209 of 08 is read, the information amount of the code of the one unit is accumulated, and the code of the one unit is transferred to the information transfer path 1
09, and outputs the accumulated result to the information transfer path 211. The accumulator 210 is the information amount measuring means in FIG.

【0076】前記比較器212は、情報転送経路211
から累算結果を読み込み、あらかじめ設定された情報量
の希望値と前記情報転送経路112の累算結果とを比較
し、前記比較結果が「情報量の希望値>前記情報転送経
路112の累算結果」の場合1、「情報量の希望値<前
記情報転送経路112の累算結果」の場合0を情報転送
経路114に出力する。比較器212は、図4における
比較手段の引算器111と同様の機能を備える。
The comparator 212 has an information transfer path 211.
The accumulation result is read from, and the desired value of the information amount set in advance is compared with the accumulation result of the information transfer path 112, and the comparison result is “desired value of information amount> accumulation of the information transfer path 112. In the case of “result”, 1 is output to the information transfer path 114, and in the case of “desired value of information amount <accumulation result of the information transfer path 112”, 0 is output. The comparator 212 has the same function as the subtractor 111 of the comparison means in FIG.

【0077】前記量子化テーブル115は、あらかじめ
設定された64のパラメータの数値を情報転送経路11
6に出力する。論理積ゲート214および215は、情
報転送経路116に出力された64の数値を、前記情報
転送経路114上の値が1のとき情報転送経路118
に、前記情報転送経路114上の値が0のとき情報転送
経路119に切り換え出力する。
The quantization table 115 stores the numerical values of 64 preset parameters in the information transfer path 11.
Output to 6. The AND gates 214 and 215 output the 64 numerical values output to the information transfer path 116 to the information transfer path 118 when the value on the information transfer path 114 is 1.
When the value on the information transfer path 114 is 0, it is switched to the information transfer path 119 and output.

【0078】前記情報転送経路114上の値が1のとき
前記等乗縮小器401では、情報転送経路118から前
記64のパラメータの数値を読み込み、それぞれの数値
を0.9乗し、該乗算結果を情報転送経路123に出力
する。また、前記情報転送経路114上の値が0のとき
前記等乗拡大器121では、情報転送経路119から前
記64のパラメータの数値を読み込み、それぞれの数値
を1.1乗し、該乗算結果を情報転送経路124に出力
する。
When the value on the information transfer path 114 is 1, the power reduction unit 401 reads the numerical values of the 64 parameters from the information transfer path 118, multiplies each numerical value by 0.9, and outputs the multiplication result. Is output to the information transfer path 123. Further, when the value on the information transfer path 114 is 0, the exponentiation unit 121 reads the numerical values of the 64 parameters from the information transfer path 119, multiplies each numerical value by 1.1, and calculates the multiplication result. It is output to the information transfer path 124.

【0079】前記量子化テーブル115は、前記情報転
送経路114上の値が1のとき情報転送経路123から
前記64のパラメータの数値を読み込み、設定され保持
した前記64のパラメータの数値を書き替える。また、
前記量子化テーブル115は、前記情報転送経路114
上の値が0のとき情報転送経路124から前記64のパ
ラメータの数値を読み込み、設定され保持した前記64
のパラメータの数値を書き替える。
The quantization table 115 reads the numerical values of the 64 parameters from the information transfer path 123 when the value on the information transfer path 114 is 1, and rewrites the numerical values of the 64 parameters that have been set and held. Also,
The quantization table 115 stores the information transfer path 114.
When the upper value is 0, the numerical values of the 64 parameters are read from the information transfer path 124, and the 64 parameters that have been set and held.
Rewrite the parameter values.

【0080】前記バッファー126では、情報転送経路
114から前記比較結果を読み込み、4800ビット分
を保持し、情報転送経路109への符号情報出力が完了
後、前記4800ビットの情報を古いものから順に情報
転送経路213へ出力する。
In the buffer 126, the comparison result is read from the information transfer path 114, 4800 bits are held, and after the code information output to the information transfer path 109 is completed, the 4800 bits of information are transferred in order from the oldest. It is output to the transfer path 213.

【0081】以上のように構成することにより、あらか
じめ指示した情報量以内になるように圧縮することがで
きる。
With the above configuration, compression can be performed within the amount of information designated in advance.

【0082】次に、図6を参照し、図12に示す符号化
装置の圧縮動作動作を概説する。
The compression operation of the encoder shown in FIG. 12 will be outlined with reference to FIG.

【0083】符号化装置の起動時を想定すると、初期設
定として前記コードRAM1208に、処理手順を規定
している処理プログラムを、図示はしていないが通常バ
ス1213に接続される補助記憶装置等から、前記バス
1213およびコード転送経路1212を介しロードす
る。処理プログラムとしては、前述の図1および図2を
参照して説明したように、変換符号化と量子化および可
変長符号化を行い、符号化後所定の外部装置の一定処理
サイクル期間内に得る情報量を希望の値と比較し、該比
較結果に従い量子化テーブル値を加工する機能を備え
る。
Assuming that the encoding device is started up, a processing program defining a processing procedure is initially stored in the code RAM 1208 from an auxiliary storage device or the like connected to the bus 1213 although not shown. , Via the bus 1213 and code transfer path 1212. As the processing program, as described with reference to FIGS. 1 and 2, the transform coding, the quantization, and the variable length coding are performed, and the code is obtained within a predetermined processing cycle period of a predetermined external device after the coding. It has a function of comparing the amount of information with a desired value and processing the quantization table value according to the comparison result.

【0084】図6において、圧縮処理の場合には、先ず
初期設定として目的の画像データ・ファイルの指定およ
び圧縮率の指定を入力部により行う(S601)。
In FIG. 6, in the case of the compression process, first, as the initial setting, the target image data file and the compression rate are designated by the input section (S601).

【0085】前記画像メモリ1202には、画像入力部
1236より入力された情報が蓄積されており、入力部
1234において指定を受け付けると、ビデオ信号線1
201から得られるビデオ信号を24bpp、3072
00画素のディジタル画像データに変換した物を読み込
み、1ユニットつまり縦横8×8の部分画像マトリック
スの色成分毎の最小組合せ分、データ転送経路1209
を介しバス1213に出力する。前記主メモリ1203
は、バス1213からデータ転送経路1210を介し、
前記1ユニットの画像データ列を読み込み(S60
2)、前記1ユニットの画像データ列をデータ転送経路
1210を介しバス1213に出力する。前記データR
AM1206は、バス1213からデータ転送経路12
11を介し、前記1ユニットの画像データ列を読み込
む。図6においては、主メモリ上のデータを加工するよ
うに示しているが、データRAM1206もしくは主メ
モリのいずれから読みだしてもかまわない。
Information input from the image input unit 1236 is stored in the image memory 1202, and when the input unit 1234 accepts the designation, the video signal line 1 is received.
The video signal obtained from 201 is 24 bpp, 3072
A data transfer path 1209 is obtained by reading the data converted into digital image data of 00 pixels and reading one unit, that is, the minimum combination for each color component of the vertical and horizontal 8 × 8 partial image matrix.
To the bus 1213 via. The main memory 1203
From the bus 1213 via the data transfer path 1210,
The image data string of one unit is read (S60
2) The image data string of one unit is output to the bus 1213 via the data transfer path 1210. The data R
The AM 1206 transfers data from the bus 1213 to the data transfer path 12
The image data string of one unit is read via 11. Although FIG. 6 shows that the data in the main memory is processed, it may be read from either the data RAM 1206 or the main memory.

【0086】前記コードRAM1208にロード済みの
プログラムに従い、前記演算機1204で前記データR
AM1206内の前記1ユニットの画像データ列を加工
する。加工処理としては、まず、画像データを所定の変
換式に従い変換符号化する(S603)。次に前記圧縮
率に従い、量子化テーブルを初期設定する。該初期設定
の実例を図中に示してあるが(S604)、さらに細か
い場合分けとそれに伴う設定値のチューニングを行うと
画質がさらに向上できる。図6におけるS304の処理
では、指定された圧縮率に応じて量子化ステップもしく
は量子化テーブルを設定することによりより早く圧縮処
理が追従することができる。
According to the program already loaded in the code RAM 1208, the data R is calculated in the arithmetic unit 1204.
The image data string of the one unit in the AM 1206 is processed. As the processing, first, the image data is converted and encoded according to a predetermined conversion formula (S603). Next, the quantization table is initialized according to the compression rate. Although an example of the initial setting is shown in the figure (S604), the image quality can be further improved by further finely dividing the cases and tuning the set values accordingly. In the process of S304 in FIG. 6, the compression process can follow more quickly by setting the quantization step or the quantization table according to the designated compression rate.

【0087】次に主メモリー上の符号を所定の量子化テ
ーブルで量子化後(S605)、所定の符号テーブルで
可変長符号化する(S606)。
Next, the code on the main memory is quantized by a predetermined quantization table (S605), and then variable length coded by a predetermined code table (S606).

【0088】ここで、単位処理ユニットあたりの前記可
変長符号化情報量、つまり圧縮後の情報量を取り出し、
圧縮前の対応する情報量で割った実際の圧縮率が前記指
定した圧縮率以上か否かを判断する(S607)。前記
指定した圧縮率以上の場合、前記量子化テーブルの各値
を1.1乗し(S608)、乗じた値に量子化テーブル
を更新し、データRAM1206の特定領域をバッファ
ーエリアとして(符号化情報バッファー)に1を保持す
る(S609)。前記指定した圧縮率未満の場合には、
前記量子化テーブルの各値を0.9乗し(S310)、
乗じた値に量子化テーブルを更新し、バッファー(符号
化情報バッファー)に0を保持する(S311)。目的
の画像データが符号化できるまで所定の処理を繰返した
後(S312)、該加工後の符号列と前記バッファー
(符号化情報バッファー)の符号化情報の内容とをデー
タ転送経路1211を介しバス1213に出力し、メデ
ィア1215のファイルに書いて処理を終了する(S6
03)。メディア1215は、バス1213からデータ
転送経路1214を介し、前記1ユニットの符号列およ
び前記符号化情報を読み込み保持する。
Here, the variable length coded information amount per unit processing unit, that is, the information amount after compression is taken out,
It is determined whether the actual compression ratio divided by the corresponding information amount before compression is equal to or higher than the specified compression ratio (S607). When the compression ratio is equal to or higher than the designated compression rate, each value of the quantization table is raised to the power of 1.1 (S608), the quantization table is updated to the multiplied value, and a specific area of the data RAM 1206 is used as a buffer area (encoding information). The buffer holds 1 (S609). If less than the specified compression ratio,
Multiply each value in the quantization table by 0.9 (S310),
The quantization table is updated to the multiplied value, and 0 is held in the buffer (encoding information buffer) (S311). After predetermined processing is repeated until the target image data can be encoded (S312), the processed code string and the content of the encoded information in the buffer (encoding information buffer) are transferred via the data transfer path 1211 to the bus. It is output to 1213, written in the file of the medium 1215, and the processing is ended (S6).
03). The medium 1215 reads and holds the code string of one unit and the coded information from the bus 1213 via the data transfer path 1214.

【0089】以下、本発明の第3の実施例を図7、図8
および図9を用いて説明する。図7は本発明の符号化装
置の構成図、図8は本発明の符号化装置の動作概要、図
9は本発明の符号化装置の動作を示すフローチャートで
ある。本実施例においては、量子化テーブルを更新する
際の縮小器および拡大器を等差縮小器701および等差
拡大器702により構成する。
Hereinafter, the third embodiment of the present invention will be described with reference to FIGS.
And it demonstrates using FIG. FIG. 7 is a block diagram of the coding apparatus of the present invention, FIG. 8 is an outline of the operation of the coding apparatus of the present invention, and FIG. 9 is a flowchart showing the operation of the coding apparatus of the present invention. In the present embodiment, the reducer and the expander for updating the quantization table are constituted by the differential reducer 701 and the differential expander 702.

【0090】まず、初めに図7を参照し、本発明の符号
化装置の構成及び機能概要を説明する。図7に示すよう
に、本発明による符号化装置は、変換符号化手段10
2、量子化手段104、可変長符号化手段106、情報
量計測手段108、引算器111、情報量保持手段11
3、量子化テーブル115、等差縮小器701、等差拡
大器702およびバッファー126を主な構成要素とす
る。
First, referring to FIG. 7, an outline of the configuration and function of the encoding apparatus of the present invention will be described. As shown in FIG. 7, the encoding device according to the present invention is equivalent to the transform encoding means 10
2. Quantization means 104, variable length coding means 106, information amount measuring means 108, subtractor 111, information amount holding means 11
3, the quantization table 115, the differential reducer 701, the differential expander 702, and the buffer 126 are main components.

【0091】図7において、前記変換符号化手段102
は、逐次得られる画像のディジタル情報をあらかじめ設
定済の変換式に従い変換符号化し、該結果を逐次出力可
能な情報処理系である。該変換符号化手段102の前段
には、画像情報を入力する画像入力手段を備えることが
でき、画像情報がアナログの場合には、アナログ−ディ
ジタル変換器をさらに備えることができる。画像入力手
段としては、画像情報を蓄積している記憶装置や、通信
回線を介して通信制御装置などにより画像情報を入力す
ることができる。前記量子化テーブル115は、外部か
ら設定可能な64のパラメータ数値を保持し、必要に応
じ出力可能な記憶手段である。前記量子化手段104
は、逐次得られるディジタル情報を、量子化テーブル1
15のパラメータに基づいて量子化し、該量子化された
画像情報を逐次出力可能な情報処理系である。本実施例
においては、量子化テーブル115に保持する量子化ス
テップあるいは量子化パラメータは、量子化する前にあ
らかじめ設定しておき、量子化する際に、後述する方法
により値が逐次更新される。前記可変長符号化手段10
6は、逐次得られるディジタル情報をあらかじめ設定済
の符号テーブルで可変長符号化し、該結果を逐次出力可
能な情報処理系である。前記情報量計測手段108は、
所定の外部装置の一定処理サイクル期間内に逐次入力さ
れ符号化されたディジタル情報の情報量を計測し、該情
報量と前記符号化されたディジタル情報を逐次出力可能
な情報処理系である。前記情報量保持手段113は、圧
縮する画像についての圧縮後の情報量の希望値をあらか
じめ保持し、該情報量の希望値もしくは該情報量の希望
値に基づいてあらかじめ定めた式により計算した情報量
を出力することができる。前記引算器111は、比較手
段であり、情報量保持手段113からの出力値と情報量
計測手段108からの出力値との数値を比較し、情報量
保持手段113からの出力値が情報量計測手段108か
らの出力値より大きい場合(図4において、「+」で示
す)には、大きいことを示す値を出力し、小さい場合
(図4において、「−」で示す)には小さいことを示す
値を出力する情報処理系である。スイッチ117は、引
算器111の出力値により切り換えられ、情報量保持手
段113からの出力値が情報量計測手段108からの出
力値より大きい場合には、量子化テーブルのパラメータ
の出力値を等差縮小器701に入力するように接続さ
れ、小さい場合には等差拡大器702に接続するように
切り替わる。前記等差縮小器701は、得られる量子化
パラメータの数値から5を引き算(あらかじめ設定され
た縮小関数)し、該結果を出力可能な情報処理系であ
る。前記等乗拡大器402は、得られる量子化パラメー
タの数値に5を足し算(あらかじめ設定された拡大関
数)し、該結果を出力可能な情報処理系である。前記バ
ッファー126は、引算器111から出力される+/−
のビット情報を4800ビット保持可能で、必要に応じ
出力可能なファーストイン・ファーストアウト・メモリ
である。入力手段130は、前記変換符号化手段102
に設定する変換係数、前記可変長符号化手段106に設
定する可変長符号テーブル値、前記量子化テーブル11
5に設定する量子化テーブル値、または、前記情報量保
持手段113に設定する、圧縮する画像についての圧縮
後の情報量の希望値(もしくは圧縮率)等の設定値を受
け付ける。
In FIG. 7, the transform coding means 102 is used.
Is an information processing system capable of transform-encoding digital information of images obtained successively according to a preset transformation formula and successively outputting the results. An image input unit for inputting image information can be provided in the preceding stage of the conversion encoding unit 102, and when the image information is analog, an analog-digital converter can be further provided. As image input means, image information can be input by a storage device that stores image information or a communication control device via a communication line. The quantization table 115 is a storage unit that holds 64 parameter values that can be set from the outside and can output them as needed. The quantization means 104
Is a quantization table 1 for digital information that is sequentially obtained.
This is an information processing system capable of performing quantization on the basis of 15 parameters and successively outputting the quantized image information. In this embodiment, the quantization step or the quantization parameter held in the quantization table 115 is set in advance before the quantization, and the value is sequentially updated by the method described later when the quantization is performed. The variable length coding means 10
Reference numeral 6 denotes an information processing system capable of performing variable length coding on digital information that is sequentially obtained by a preset code table and successively outputting the result. The information amount measuring means 108 is
This is an information processing system capable of measuring the information amount of the digital information that is sequentially input and encoded within a fixed processing cycle period of a predetermined external device, and sequentially outputting the information amount and the encoded digital information. The information amount holding means 113 holds in advance a desired value of the information amount after compression for an image to be compressed, and a desired value of the information amount or information calculated by a predetermined formula based on the desired value of the information amount. The quantity can be output. The subtractor 111 is a comparison unit that compares the output value from the information amount holding unit 113 and the output value from the information amount measuring unit 108, and the output value from the information amount holding unit 113 is the information amount. If it is larger than the output value from the measuring means 108 (indicated by "+" in FIG. 4), a value indicating that it is large is output, and if it is small (indicated by "-" in FIG. 4), it is small. Is an information processing system that outputs a value indicating. The switch 117 is switched by the output value of the subtractor 111, and when the output value from the information amount holding means 113 is larger than the output value from the information amount measuring means 108, the output values of the parameters of the quantization table are equalized. It is connected so as to be input to the difference reducer 701, and when it is small, it is switched so as to be connected to the difference enlarger 702. The parallax reducer 701 is an information processing system capable of subtracting 5 from the obtained numerical value of the quantization parameter (reduction function set in advance) and outputting the result. The power square expander 402 is an information processing system capable of adding 5 to the obtained quantization parameter value (a preset expansion function) and outputting the result. The buffer 126 outputs +/- from the subtractor 111.
It is a first-in-first-out memory that can hold 4800 bits of bit information and output as needed. The input means 130 is the transform coding means 102.
To the variable length coding means 106, the variable length code table value set to the variable length coding means 106, and the quantization table 11
A quantization table value set to 5 or a set value such as a desired value (or compression rate) of the information amount after compression of the image to be compressed, which is set in the information amount holding unit 113, is accepted.

【0092】次に、図7を参照し、第3の実施例による
符号化装置の機能概要を説明する。
Next, with reference to FIG. 7, a functional outline of the encoding apparatus according to the third embodiment will be described.

【0093】第3の実施例における符号化装置の起動時
を想定すると、初めに、入力手段130において、前記
変換符号化手段102に設定する変換係数、前記可変長
符号化手段106に設定する可変長符号テーブル値、前
記量子化テーブル115に設定する量子化テーブル値、
および、前記情報量保持手段113に設定する、圧縮す
る画像についての圧縮後の情報量の希望値等の設定値を
受け付ける。入力手段は、前記変換符号化手段102に
変換係数を設定し、前記可変長符号化手段106に可変
長符号テーブル値を設定し、前記量子化テーブル115
に量子化テーブル値を設定し、前記情報量保持手段11
3に符号化後の情報量の希望値を設定する。前記情報量
保持手段113に符号化後の情報量の希望値としては、
例えば、1画面における情報量や、入力する全ての画像
情報に対する圧縮後の総情報量、圧縮比率等を受け付け
ることができる。情報量保持手段113では、情報量の
希望値に基づいてあらかじめ定めた式により計算した情
報量を出力する。例えば、引き算器111において比較
する周期を、所定の外部装置の一定処理サイクルとした
場合には、一定処理リサイクル内に得る情報量に相当す
る情報量を計算しておき、その計算値を保持することが
できる。また、前記バッファー126は該バッファの内
容をクリアしておく。
Assuming that the coding apparatus in the third embodiment is started up, first, in the input means 130, the transform coefficient set in the transform coding means 102 and the variable set in the variable length coding means 106 are set. Long code table value, quantization table value set in the quantization table 115,
A setting value such as a desired value of the information amount after compression for an image to be compressed, which is set in the information amount holding unit 113, is accepted. The input means sets the transform coefficient in the transform coding means 102, sets the variable length code table value in the variable length coding means 106, and sets the quantization table 115.
The quantization table value is set to the information amount holding means 11
A desired value of the amount of information after encoding is set in 3. As the desired value of the information amount after encoding in the information amount holding means 113,
For example, the amount of information on one screen, the total amount of information after compression for all input image information, the compression ratio, and the like can be accepted. The information amount holding unit 113 outputs the information amount calculated by a predetermined formula based on the desired value of the information amount. For example, when the cycle to be compared in the subtractor 111 is a constant processing cycle of a predetermined external device, an information amount corresponding to the information amount obtained in the constant processing recycling is calculated and the calculated value is held. be able to. Further, the buffer 126 clears the contents of the buffer.

【0094】次に、前記変換符号化手段102で、画像
情報転送経路101から画像情報を1ユニット読み込
み、あらかじめ設定済の変換式に従い変換符号化し、該
符号を1ユニット情報転送経路103に出力する。ここ
で、1ユニットは、例えば、1画面を480*640画
素としたとき、8*8画素の1ブロックを単位にするこ
とができる。次に、前記量子化手段104で、情報転送
経路103から情報を1ユニット読み込み、あらかじめ
係数設定済の量子化テーブル115に従い量子化し、該
量子化後の情報を1ユニット情報転送経路105に出力
する。次に、前記可変長符号化手段106で、情報転送
経路105から情報を1ユニット読み込み、あらかじめ
設定済の可変長符号化テーブルに従い可変長符号化し、
該符号化後の情報を1ユニット情報転送経路107に出
力する。
Next, the conversion encoding means 102 reads one unit of image information from the image information transfer path 101, performs conversion encoding according to a preset conversion equation, and outputs the code to the one unit information transfer path 103. . Here, one unit can be a unit of one block of 8 * 8 pixels when one screen is 480 * 640 pixels. Next, the quantizing means 104 reads one unit of information from the information transfer path 103, quantizes it according to the quantization table 115 in which the coefficient is set in advance, and outputs the quantized information to the one-unit information transfer path 105. . Next, the variable length coding means 106 reads one unit of information from the information transfer path 105, performs variable length coding according to a preset variable length coding table,
The encoded information is output to the 1-unit information transfer path 107.

【0095】前記情報量計測手段108で、情報転送経
路107から情報を1ユニット読み込み、該1ユニット
の情報の情報量を計測し、前記1ユニットの情報を情報
転送経路109に、前記計測結果を情報転送経路110
に出力する。このとき、前記情報量保持手段113は、
設定されて保持した情報量を情報転送経路112に出力
する。次に、前記引算器111は、情報転送経路110
と情報転送経路112とから2つの数値を読み込み、前
記情報転送経路112の数値から前記情報転送経路11
0の数値を引き算し、前記引き算結果を情報転送経路1
14および125に出力する。
The information amount measuring means 108 reads one unit of information from the information transfer route 107, measures the information amount of the information of the one unit, and transfers the information of the one unit to the information transfer route 109 and the measurement result. Information transfer path 110
Output to. At this time, the information amount holding means 113
The set and held amount of information is output to the information transfer path 112. Next, the subtractor 111 operates the information transfer path 110.
And two values are read from the information transfer path 112, and the information transfer path 11 is read from the numerical values of the information transfer path 112.
The value of 0 is subtracted, and the subtraction result is the information transfer path 1
Output to 14 and 125.

【0096】前記量子化テーブル115は、あらかじめ
設定された64のパラメータ数値を情報転送経路116
に出力する。スイッチ117は、情報転送経路116に
出力された64のパラメータの数値を、前記引き算結果
が+のとき情報転送経路118に、前記引き算結果が−
のとき情報転送経路119に切り換えて出力する。
The quantization table 115 stores the preset 64 parameter values in the information transfer path 116.
Output to. The switch 117 outputs the numerical values of the 64 parameters output to the information transfer path 116 to the information transfer path 118 when the subtraction result is +, and the subtraction result is −.
In this case, the information is switched to the information transfer path 119 and output.

【0097】前記引き算結果が+のとき前記等差縮小器
701では、情報転送経路118から前記64のパラメ
ータの数値を読み込み、それぞれの数値5を引き算し、
該引き算結果を情報転送経路123に出力する。また、
前記引き算結果が−のとき前記等差拡大器702では、
情報転送経路119から前記64のパラメータの数値を
読み込み、それぞれの数値に5を足し算し、該足し算結
果を情報転送経路124に出力する。
When the subtraction result is +, the differential calculator 701 reads the numerical values of the 64 parameters from the information transfer path 118 and subtracts the numerical values of 5 from each other.
The subtraction result is output to the information transfer path 123. Also,
When the subtraction result is −, the differential expander 702:
The numerical values of the 64 parameters are read from the information transfer path 119, 5 is added to each numerical value, and the addition result is output to the information transfer path 124.

【0098】前記量子化テーブル115は、前記引き算
結果が+のとき情報転送経路123から前記64のパラ
メータの数値を読み込み、保持していた前記64のパラ
メータの数値を書き替える。また、前記量子化テーブル
115は、前記引き算結果が−のとき情報転送経路12
4から前記64のパラメータの数値を読み込み、設定さ
れ保持した前記64のパラメータの数値を書き替える。
The quantization table 115 reads the numerical values of the 64 parameters from the information transfer path 123 when the subtraction result is +, and rewrites the numerical values of the 64 parameters that have been held. In addition, the quantization table 115 stores the information transfer path 12 when the subtraction result is −.
The numerical values of the 64 parameters are read from 4, and the numerical values of the 64 parameters that have been set and held are rewritten.

【0099】前記バッファー126では、情報転送経路
125から前記引き算結果を読み込み、該引き算結果が
+のときビットを1に、前記情報を引き算結果が−のと
きビットを0に対応付け、4800ビット分を保持し、
符号化時情報転送経路109からスイッチ128を介し
情報転送経路129への符号情報出力が完了後、前記4
800ビットの情報を古いものから順に情報転送経路1
27からスイッチ128を介し情報転送経路129へ出
力する。この引き算結果は、圧縮された画像情報ととも
に、記憶装置に記憶される。復号する際には、これらの
引き算結果をもとに、量子化パラメータを逐次更新して
いき逆変換する。
In the buffer 126, the subtraction result is read from the information transfer path 125, and when the subtraction result is +, the bit is set to 1 and when the subtraction result is −, the bit is set to 0, and 4800 bits are stored. Hold
After the code information output from the encoding information transfer path 109 to the information transfer path 129 via the switch 128 is completed,
Information transfer path 1 with 800-bit information in chronological order
27 to the information transfer path 129 via the switch 128. This subtraction result is stored in the storage device together with the compressed image information. At the time of decoding, the quantization parameter is successively updated based on these subtraction results, and inverse transformation is performed.

【0100】次に、図5を参照し、第3の実施例の符号
化装置の動作概要を説明する。図5は、本実施例におけ
る符号化装置の構成をより具体的に示している。図7に
おける手段と機能が同じものは同じ記号で示している。
Next, with reference to FIG. 5, an outline of the operation of the coding apparatus of the third embodiment will be described. FIG. 5 more specifically shows the configuration of the encoding apparatus in this embodiment. Elements having the same functions as those in FIG. 7 are denoted by the same symbols.

【0101】図5において、第3の実施例による符号化
装置の起動時を想定すると、初めに、入力手段130に
おいて、前記可変長符号化手段106に設定する可変長
符号テーブル値、前記量子化テーブル115に設定する
量子化テーブル値の設定値を受け付ける。前記可変長符
号化手段106および前記量子化テーブル115に可変
長符号テーブル値と量子化テーブル値とをそれぞれ設定
する。前記バッファー126は、該バッファの内容をク
リアする。図5においては、符号化された画像情報が入
力しており、情報のビット数201が11ビットとし、
情報の単位ユニット202は、図5に示す柱状の画像情
報230を64個集めたものである。
In FIG. 5, assuming that the encoding apparatus according to the third embodiment is started up, first, in the input means 130, the variable length code table value set in the variable length encoding means 106 and the quantization. The setting value of the quantization table value set in the table 115 is accepted. A variable length code table value and a quantization table value are set in the variable length coding means 106 and the quantization table 115, respectively. The buffer 126 clears the contents of the buffer. In FIG. 5, encoded image information is input, and the information bit number 201 is 11 bits,
The information unit unit 202 is a collection of 64 pieces of columnar image information 230 shown in FIG.

【0102】前記量子化手段104では、情報転送経路
103から画像情報の単位ユニット202の変換係数を
読み込み、あらかじめ係数設定済の量子化テーブル11
5に従い量子化する。図5に示すように、量子化後の情
報のビット数204は11ビットであり、情報の単位ユ
ニット206の変換係数206を情報転送経路105に
出力する。
In the quantizing means 104, the conversion coefficient of the image information unit unit 202 is read from the information transfer path 103, and the quantization table 11 in which the coefficient is set in advance is read.
Quantize according to 5. As shown in FIG. 5, the number of bits 204 of the quantized information is 11 bits, and the transform coefficient 206 of the information unit unit 206 is output to the information transfer path 105.

【0103】前記可変長符号化手段106では、情報転
送経路105から情報のビット数204が11ビット、
情報の単位ユニット206の変換係数206を読み込
み、あらかじめ設定済の可変長符号化テーブルに従い可
変長符号化する。符号化後、情報のビット数207は2
〜16ビットになり、情報の単位ユニット208の符号
209を情報転送経路107に出力する。
In the variable length coding means 106, the information bit number 204 from the information transfer path 105 is 11 bits,
The conversion coefficient 206 of the information unit unit 206 is read and variable length coding is performed according to a preset variable length coding table. After encoding, the number of information bits 207 is 2
.About.16 bits, and the code 209 of the information unit unit 208 is output to the information transfer path 107.

【0104】累算器210では、情報の単位ユニット2
08の符号209を読み込み、該1ユニットの符号の情
報量を累算し、前記1ユニットの符号を情報転送経路1
09に出力し、前記累算結果を情報転送経路211に出
力する。累算器210は、図7における情報量計測手段
である。
In the accumulator 210, information unit 2
The code 209 of 08 is read, the information amount of the code of the one unit is accumulated, and the code of the one unit is transferred to the information transfer path 1
09, and outputs the accumulated result to the information transfer path 211. The accumulator 210 is the information amount measuring means in FIG.

【0105】前記比較器212は、情報転送経路211
から累算結果を読み込み、あらかじめ設定された情報量
の希望値と前記情報転送経路112の累算結果とを比較
し、前記比較結果が「情報量の希望値>前記情報転送経
路112の累算結果」の場合1、「情報量の希望値<前
記情報転送経路112の累算結果」の場合0を情報転送
経路114に出力する。比較器212は、図7における
比較手段の引算器111と同様の機能を備える。
The comparator 212 has an information transfer path 211.
The accumulation result is read from, and the desired value of the information amount set in advance is compared with the accumulation result of the information transfer path 112, and the comparison result is “desired value of information amount> accumulation of the information transfer path 112. In the case of “result”, 1 is output to the information transfer path 114, and in the case of “desired value of information amount <accumulation result of the information transfer path 112”, 0 is output. The comparator 212 has the same function as the subtractor 111 of the comparison means in FIG.

【0106】前記量子化テーブル115は、あらかじめ
設定された64のパラメータの数値を情報転送経路11
6に出力する。論理積ゲート214および215は、情
報転送経路116に出力された64の数値を、前記情報
転送経路114上の値が1のとき情報転送経路118
に、前記情報転送経路114上の値が0のとき情報転送
経路119に切り換え出力する。
The quantization table 115 stores the numerical values of 64 preset parameters in the information transfer path 11.
Output to 6. The AND gates 214 and 215 output the 64 numerical values output to the information transfer path 116 to the information transfer path 118 when the value on the information transfer path 114 is 1.
When the value on the information transfer path 114 is 0, it is switched to the information transfer path 119 and output.

【0107】前記情報転送経路114上の値が1のとき
前記等差縮小器701では、情報転送経路118から前
記64のパラメータの数値を読み込み、それぞれの数値
から5を引き算し、該引き算結果を情報転送経路123
に出力する。また、前記情報転送経路114上の値が0
のとき前記等差拡大器702では、情報転送経路119
から前記64のパラメータの数値を読み込み、それぞれ
の数値結果に5を足し算し、該足し算を情報転送経路1
24に出力する。
When the value on the information transfer path 114 is 1, the differential calculator 701 reads the numerical values of the 64 parameters from the information transfer path 118, subtracts 5 from each numerical value, and calculates the subtraction result. Information transfer path 123
Output to. The value on the information transfer path 114 is 0.
At the time, the information transfer path 119 is
The numerical values of the above-mentioned 64 parameters are read from, and 5 is added to each numerical result, and the addition is performed by the information transfer path 1
To 24.

【0108】前記量子化テーブル115は、前記情報転
送経路114上の値が1のとき情報転送経路123から
前記64のパラメータの数値を読み込み、設定され保持
した前記64のパラメータの数値を書き替える。また、
前記量子化テーブル115は、前記情報転送経路114
上の値が0のとき情報転送経路124から前記64のパ
ラメータの数値を読み込み、設定され保持した前記64
のパラメータの数値を書き替える。
The quantization table 115 reads the numerical values of the 64 parameters from the information transfer path 123 when the value on the information transfer path 114 is 1, and rewrites the numerical values of the 64 parameters that have been set and held. Also,
The quantization table 115 stores the information transfer path 114.
When the upper value is 0, the numerical values of the 64 parameters are read from the information transfer path 124, and the 64 parameters that have been set and held.
Rewrite the parameter values.

【0109】前記バッファー126では、情報転送経路
114から前記比較結果を読み込み、4800ビット分
を保持し、情報転送経路109への符号情報出力が完了
後、前記4800ビットの情報を古いものから順に情報
転送経路213へ出力する。
In the buffer 126, the comparison result is read from the information transfer path 114, 4800 bits are held, and after the output of the code information to the information transfer path 109 is completed, the 4800 bits of information are sequentially transferred from oldest to newest. It is output to the transfer path 213.

【0110】以上のように構成することにより、あらか
じめ指示した情報量以内になるように圧縮することがで
きる。
With the above configuration, compression can be performed within the amount of information designated in advance.

【0111】上記実施例によれば、符号化時に単位係数
列当りの符号列の情報量を計測し、前記情報量の多少に
従い圧縮率を部分的に調整可能であるので、各種の画像
データの圧縮後のファイル容量を1パスのプロセスで一
定にできる。
According to the above embodiment, the information amount of the code string per unit coefficient string can be measured at the time of encoding, and the compression rate can be partially adjusted according to the amount of the information amount. The file size after compression can be made constant by a one-pass process.

【0112】[0112]

【発明の効果】本発明を用いた符号化装置は、上記のよ
うに構成され機能するので、圧縮後の情報量に従って圧
縮率を変更でき、希望する情報量に変更できる。
Since the coding apparatus using the present invention is constructed and functions as described above, the compression rate can be changed according to the amount of information after compression, and the desired amount of information can be changed.

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

【図1】本発明の符号化装置の構成図。FIG. 1 is a configuration diagram of an encoding device of the present invention.

【図2】本発明の符号化装置の動作概要を示す説明図。FIG. 2 is an explanatory diagram showing an operation outline of the encoding device of the present invention.

【図3】本発明の符号化装置の動作を示すフローチャー
ト。
FIG. 3 is a flowchart showing the operation of the encoding device of the present invention.

【図4】本発明の符号化装置の構成図。FIG. 4 is a block diagram of an encoding device of the present invention.

【図5】本発明の符号化装置の動作概要を示す説明図。FIG. 5 is an explanatory diagram showing an operation outline of the encoding device of the present invention.

【図6】本発明の符号化装置の動作を示すフローチャー
ト。
FIG. 6 is a flowchart showing the operation of the encoding device of the present invention.

【図7】本発明の符号化装置の構成図。FIG. 7 is a configuration diagram of an encoding device of the present invention.

【図8】本発明の符号化装置の動作概要を示す説明図。FIG. 8 is an explanatory diagram showing an operation outline of the encoding device of the present invention.

【図9】本発明の符号化装置の動作を示すフローチャー
ト。
FIG. 9 is a flowchart showing the operation of the encoding device of the present invention.

【図10】本発明の符号化装置の構成図。FIG. 10 is a configuration diagram of an encoding device of the present invention.

【図11】本発明の符号化装置の動作を示すフローチャ
ート。
FIG. 11 is a flowchart showing the operation of the encoding device of the present invention.

【図12】本発明の符号化装置の構成図。FIG. 12 is a configuration diagram of an encoding device of the present invention.

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

101…画像情報転送経路、102…変換符号化手段、
103・105・107・109・110・112・1
14・116・118・119・123・124・12
5・127・129・211・213…情報転送経路、
104…量子化手段、106…可変長符号化手段、10
8…情報量計測手段、111…引算器、113…情報量
保持手段、115…量子化テーブル、117・128…
スイッチ、120…等比縮小器、121…等比拡大器、
126…バッファー、201・204・207…情報の
ビット数、202・205・208…情報の単位ブロッ
ク、203・206…1ブロックの変換係数、209…
1ブロックの符号、210…累算器、212…比較器、
214・215…論理積ゲート、401…等乗縮小器、
402…等乗拡大器、701…等差縮小器、702…等
差拡大器、1001・1003・1005・1007・
1010・1011・1013・1014・1017・
1018・1019・1021…情報転送経路、100
2・1012…スイッチ、1004…バッファー、10
06…可変長復号化手段、1008…逆量子化手段、1
009…量子化テーブル、1015…拡大器、1016
…縮小器、1020…変換復号化手段、1201・12
23…ビデオ信号線、1202・1224…画像メモ
リ、1203・1225…主メモリ、1204・122
6…演算機、1205・1209・1210・1219
・1220・1221・1227…データ転送経路、1
206・1226…データRAM、1207・1212
・1222・1229…コード転送手段、1208・1
230…コードRAM、1213・1217…バス、1
214・1216…メディエーション経路、1215…
メディア。
101 ... Image information transfer path, 102 ... Transform coding means,
103/105/107/109/110/112/1
14/116/118/119/123/124/12
5, 127, 129, 221, 213 ... Information transfer route,
104 ... Quantization means, 106 ... Variable length coding means, 10
8 ... Information amount measuring means, 111 ... Subtractor, 113 ... Information amount holding means, 115 ... Quantization table 117.128 ...
Switch, 120 ... Equalizer, 121 ... Equalizer,
126 ... Buffer, 201/204/207 ... Information bit number, 202/205/208 ... Information unit block, 203/206 ... 1 block transform coefficient, 209 ...
1 block code, 210 ... Accumulator, 212 ... Comparator,
214, 215 ... AND gate, 401 ... Power reduction unit,
402 ... Equal-power expander, 701 ... Equal difference reducer, 702 ... Equal difference expander, 1001, 1003, 1005, 1007.
1010/1011/1013/1014/1017 ・
1018/1019/1021 ... Information transfer path, 100
2 · 1012… switch, 1004… buffer, 10
06 ... Variable length decoding means, 1008 ... Inverse quantization means, 1
009 ... Quantization table, 1015 ... Expander, 1016
... Reducer, 1020 ... Conversion and decoding means, 1201/12
23 ... Video signal lines 1202/1224 ... Image memory 1203/1225 ... Main memory 1204 ・ 122
6 ... Computer, 1205/1209/1210/1219
・ 1220/1221/1227 ... Data transfer path, 1
206/1226 ... Data RAM, 1207-1212
1222/1229 ... Code transfer means, 1208.1
230 ... Code RAM, 1213/1217 ... Bus, 1
214/1216 ... Mediation route, 1215 ...
media.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 坂井 浩之 神奈川県横浜市戸塚区吉田町292番地 株 式会社日立製作所マイクロエレクトロニク ス機器開発研究所内 (72)発明者 木村 祐二 神奈川県横浜市戸塚区吉田町292番地 株 式会社日立製作所マイクロエレクトロニク ス機器開発研究所内 (72)発明者 山田 剛裕 神奈川県横浜市戸塚区吉田町292番地 株 式会社日立製作所マイクロエレクトロニク ス機器開発研究所内 (72)発明者 本間 聡 神奈川県川崎市幸区鹿島田890番地の12 株式会社日立製作所情報システム開発本部 内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Hiroyuki Sakai, Hiroyuki Sakai, 292 Yoshida-cho, Totsuka-ku, Yokohama-shi, Kanagawa Hitachi, Ltd., Microelectronics Equipment Development Laboratory (72) Yuji Kimura Totsuka-ku, Yokohama-shi, Kanagawa 292 Yoshida-cho, Hitachi, Ltd. Microelectronics Equipment Development Laboratory (72) Inventor Takehiro Yamada 292, Yoshida-cho, Totsuka-ku, Yokohama-shi, Kanagawa Hitachi, Ltd. Microelectronics Equipment Development Laboratory (72) Inventor Satoshi Honma 12 Hitachi, Ltd. Information Systems Development Division, 890 Kashimada, Sachi-ku, Kawasaki-shi, Kanagawa

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】情報を入力し、入力した情報を符号化する
符号化手段と、該符号化手段で符号化された情報を、設
定された量子化ステップにより量子化する量子化手段
と、該量子化手段で量子化された情報を可変長に符号化
する可変長符号化手段とを有する符号化装置において、 前記入力した情報の予め定められた単位ごとに前記可変
長符号化手段で可変長符号化された情報の情報量を検出
する検出手段と、 前記入力した情報の予め定められた単位あたりの前記可
変長符号化手段で可変長符号化された情報の情報量の基
準量を保持する保持手段と、 前記保持手段に保持した基準量と、前記検出手段におい
て検出した情報量とを比較する比較手段と、 該比較手段における比較結果に基づいて、あらかじめ定
めた関数により前記量子化手段における量子化ステップ
を設定する設定手段を有することを特徴とする符号化装
置。
1. A coding means for inputting information, coding the inputted information, a quantizing means for quantizing the information coded by the coding means by a set quantizing step, and In a coding device having a variable length coding means for coding the information quantized by the quantizing means into a variable length, the variable length coding means variable length for each predetermined unit of the inputted information. Detecting means for detecting the information amount of the encoded information; and holding a reference amount of the information amount of the variable length encoded information by the variable length encoding means per a predetermined unit of the input information. Holding means, comparing means for comparing the reference amount held in the holding means with the information amount detected in the detecting means, and the quantizing means by a predetermined function based on the comparison result in the comparing means. Oke An encoding device having setting means for setting a quantization step according to the present invention.
【請求項2】請求項1において、前記設定手段は、前記
検出手段において検出した情報量が前記保持手段に保持
した基準量より大きい場合には、前記量子化ステップを
予め定めた第1の関数により縮小するように設定し、前
記検出手段において検出した情報量が前記保持手段に保
持した基準量より小さい場合には、前記量子化ステップ
を予め定めた第2の関数により拡大するように設定する
ことを特徴とする符号化装置。
2. The first function according to claim 1, wherein, when the amount of information detected by the detecting unit is larger than the reference amount held by the holding unit, the setting unit sets the quantization step in advance. When the amount of information detected by the detecting means is smaller than the reference amount held in the holding means, the quantizing step is set to be enlarged by a second predetermined function. An encoding device characterized by the above.
【請求項3】請求項2において、前記設定手段は、前記
予め定めた第1および第2の関数として、直前に設定し
ている量子化ステップにそれぞれ予め定めた第1および
第2の比例定数を掛けることにより設定することを特徴
とする符号化装置。
3. The setting unit according to claim 2, wherein the preset first and second proportional constants are respectively set as the preset first and second functions in the quantization step set immediately before. An encoding device characterized by setting by multiplying by.
【請求項4】請求項2において、前記設定手段は、前記
予め定めた第1および第2の関数として、直前に設定し
ている量子化ステップを予め定めた第1および第2の値
でべき乗することにより設定することを特徴とする符号
化装置。
4. The setting means according to claim 2, wherein the quantization step set immediately before is set to a power of a predetermined first and second value as the predetermined first and second functions. An encoding device characterized by setting by performing.
【請求項5】請求項2において、前記設定手段は、前記
予め定めた第1および第2の関数として、直前に設定し
ている量子化ステップから予め定めた第1および第2の
値を加算することにより設定することを特徴とする符号
化装置。
5. The method according to claim 2, wherein the setting means adds the first and second predetermined values from the quantization step set immediately before as the first and second predetermined functions. An encoding device characterized by setting by performing.
【請求項6】請求項1において、前記設定手段により設
定された量子化ステップに従って逆量子化ステップを設
定する逆量子化設定手段と、可変長に符号化された情報
を復号する可変長復号化手段と、該可変長符号化手段に
おいて、復号化された情報を逆量子化する逆量子化手段
と、該逆量子化手段により逆量子化された情報を復号化
する復号化手段とを有することを特徴とする符号化装
置。
6. The dequantization setting means for setting the dequantization step according to the quantization step set by the setting means, and the variable length decoding for decoding the information encoded in the variable length according to claim 1. Means, dequantizing means for dequantizing the decoded information in the variable length coding means, and decoding means for decoding the information dequantized by the dequantizing means An encoding device characterized by.
【請求項7】請求項6において、前記比較手段における
比較結果を格納する格納手段をさらに有し、 前記逆量子化設定手段は、前記格納手段に格納した比較
結果に基づいて、量子化ステップを算出することを特徴
とする符号化装置。
7. The storage device according to claim 6, further comprising storage means for storing a comparison result in the comparison means, wherein the dequantization setting means performs a quantization step based on the comparison result stored in the storage means. An encoding device for calculating.
【請求項8】請求項1において、前記可変長符号化手段
で符号化された後の情報量に関する指示を、あらかじめ
受け付ける入力手段をさらに有し、 前記保持手段は、該入力手段で受け付けた指示に基づい
て、基準量を保持することを特徴とする符号化装置。
8. The instruction according to claim 1, further comprising an input unit that receives in advance an instruction relating to the amount of information after being encoded by the variable length encoding unit, and the holding unit is an instruction received by the input unit. An encoding device which holds a reference amount based on the above.
【請求項9】入力した情報を符号化する符号化装置にお
ける可変長符号化方法であって、可変長符号化された後
の情報量に関する指示をあらかじめ受け付けておき、符
号化された情報を設定された量子化ステップにより量子
化し、該量子化された情報を可変長に符号化し、前記入
力した情報の予め定められた単位ごとに前記可変長符号
化された情報の情報量を検出し、前記受け付けた情報量
に関する指示に基づく前記あらかじめ定めた単位におけ
る基準量と、前記検出した情報量とを比較し、該比較結
果に基づいて、あらかじめ定めた関数により量子化ステ
ップを算出して設定することを特徴とする可変長符号化
方法。
9. A variable length coding method in a coding device for coding input information, wherein an instruction regarding the amount of information after variable length coding is received in advance and the coded information is set. Quantized by the quantization step performed, the quantized information is encoded into a variable length, the information amount of the variable length encoded information is detected for each predetermined unit of the input information, Comparing the detected information amount with the reference amount in the predetermined unit based on the received instruction regarding the information amount, and calculating and setting the quantization step by the predetermined function based on the comparison result. A variable-length coding method characterized by:
JP11493993A 1993-05-17 1993-05-17 Encoder Pending JPH06326614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11493993A JPH06326614A (en) 1993-05-17 1993-05-17 Encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11493993A JPH06326614A (en) 1993-05-17 1993-05-17 Encoder

Publications (1)

Publication Number Publication Date
JPH06326614A true JPH06326614A (en) 1994-11-25

Family

ID=14650397

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11493993A Pending JPH06326614A (en) 1993-05-17 1993-05-17 Encoder

Country Status (1)

Country Link
JP (1) JPH06326614A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011024222A1 (en) * 2009-08-27 2011-03-03 株式会社 東芝 Device, method, and program for coding image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011024222A1 (en) * 2009-08-27 2011-03-03 株式会社 東芝 Device, method, and program for coding image

Similar Documents

Publication Publication Date Title
EP0399487B1 (en) Transformation coding device
JP4996347B2 (en) Image reduction sampling method
EP0680221B1 (en) Quantizing image data in image compression
EP0422404B1 (en) Transform coding using coefficient prediction techniques
US7206453B2 (en) Dynamic filtering for lossy compression
US5677689A (en) Fixed rate JPEG compliant still image compression
US20030063667A1 (en) Optimal encoding of motion compensated video
US20020044602A1 (en) Dual quantization method and apparatus for minimum error
US4885636A (en) Block adaptive linear predictive coding with adaptive gain and bias
US6067384A (en) Fast scaling of JPEG images
US6473531B1 (en) Image information coding system
US20010033618A1 (en) Image-data processing apparatus
US8358861B2 (en) Image compression device and image decompression device
KR20010043394A (en) Method and apparatus for increasing memory resource utilization in an information stream decoder
US6859815B2 (en) Approximate inverse discrete cosine transform for scalable computation complexity video and still image decoding
US8411976B2 (en) Image data compression apparatus, decompression apparatus, compressing method, decompressing method, and storage medium
EP0320511B1 (en) Block adaptive linear predictive coding with adaptive gain and bias
JPH06326614A (en) Encoder
US6657576B2 (en) Quantization unit setting apparatus, quantization unit setting method, coding apparatus, coding method, and information record medium
Ridge Efficient transform-domain size and resolution reduction of images
JPH0541860A (en) Picture compression coder
US20050238241A1 (en) Image compression apparatus generating and using assistant images for deblocking processing and a method thereof
KR0157436B1 (en) Adaptive selection circuit of hdtv signals
JPH06113279A (en) Picture compressor
JPH10116267A (en) Arithmetic unit and information processor