JPH06217279A - Image data processor - Google Patents

Image data processor

Info

Publication number
JPH06217279A
JPH06217279A JP515493A JP515493A JPH06217279A JP H06217279 A JPH06217279 A JP H06217279A JP 515493 A JP515493 A JP 515493A JP 515493 A JP515493 A JP 515493A JP H06217279 A JPH06217279 A JP H06217279A
Authority
JP
Japan
Prior art keywords
data
quantization
coefficient
quantized
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
JP515493A
Other languages
Japanese (ja)
Inventor
Kazutaka Naka
一隆 中
Kyoichi Hosokawa
恭一 細川
Hitoaki Owashi
仁朗 尾鷲
Kazuhiko Yoshizawa
和彦 吉澤
Miyoko Yoshikoshi
美代子 吉越
Yoshizumi Wataya
由純 綿谷
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 JP515493A priority Critical patent/JPH06217279A/en
Publication of JPH06217279A publication Critical patent/JPH06217279A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PURPOSE:To improve picture quality deterioration at an edge part such as a character periphery and to control the amount of data after compression to a specific value in field or frame units. CONSTITUTION:The edge part is decided from orthogonally transformed data and while a quantization weight distribution is switched, a 1st quantizing circuit 7 performs quantization on the basis of the quantization weight distribution to calculate a quantization coefficient (QM). This quantization coefficient (QM) is multiplied by the quantization weight distribution switched by the edge part decision making and a 2nd quantizing circuit 13 quantizes delayed orthogonally transformed data to generate a variable length encoding output. Thus, the quantization is performed with the quantization weight distribution matching the features of an input image, so recording and transmission of high picture quality are enabled. Further, the total amount of encoded data in one frame or one frame of the input image can be suppressed below a certain value.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ディジタル信号に変換
された画像データを2次元直交変換と可変長符号化に基
づきデータ圧縮し、記録伝送を行う際の画像データの処
理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data processing apparatus for compressing image data converted into a digital signal based on two-dimensional orthogonal transformation and variable length coding and performing recording and transmission. .

【0002】[0002]

【従来の技術】画像データを記録媒体に記録する際に
は、記録媒体の記憶容量を効率的に使用するためデータ
圧縮が用いられる。例えばディジタルVTRではデータ
圧縮により同一のテープ使用量で、より長時間の記録再
生が可能となる。あるいは同一のテープ使用量及び記録
再生時間で、より高品質の映像を記録することができ
る。
2. Description of the Related Art When recording image data on a recording medium, data compression is used to efficiently use the storage capacity of the recording medium. For example, in a digital VTR, data compression enables recording / reproduction for a longer time with the same tape usage amount. Alternatively, it is possible to record a higher quality image with the same tape usage amount and recording / reproducing time.

【0003】これらの画像データ圧縮の代表的な手法
は、2次元の直交変換と可変長符号化とを組み合わせた
ものである。まずこの圧縮手法について簡単に説明す
る。
A typical method for compressing these image data is a combination of two-dimensional orthogonal transformation and variable length coding. First, this compression method will be briefly described.

【0004】画像データを8×8サンプル程度のブロッ
クに分割し、離散コサイン変換(Discreat Cosine Trans
form:DCT)等の2次元直交変換を施す。この直交変
換により二次元の周波数成分に変換された画像データ
は、2次元周波数成分に対応した所定の量子化係数で量
子化された後、エネルギーの集中しやすい直流及び低周
波成分から水平/垂直共に高い周波成分へとジグザグに
スキャンされ、ハフマン符号化等の可変長符号によって
符号化される。
The image data is divided into blocks of about 8 × 8 samples and the discrete cosine transform (Discreat Cosine Trans
Two-dimensional orthogonal transformation such as form: DCT) is performed. The image data converted into a two-dimensional frequency component by this orthogonal transformation is quantized with a predetermined quantization coefficient corresponding to the two-dimensional frequency component, and then horizontal / vertical components are converted from the direct current and low frequency components where energy is likely to concentrate. Both are zigzag scanned into high frequency components and encoded by a variable length code such as Huffman coding.

【0005】一般の自然画像では直流及び低周波成分に
エネルギーが集中しやすく、また人間の視覚特性により
水平/垂直共に高い周波成分の劣化は認識されにくいこ
とを利用して、高周波成分のデータを中低域に比較して
粗く量子化を行う。さらに量子化された各周波数のデー
タをジグザグスキャンし、連続するゼロデータの数を示
すランレングスと非ゼロ成分のレベルを、ハフマン符号
等の可変長符号により符号化することでデータ圧縮を実
現している。
Energy is concentrated on DC and low frequency components in a general natural image, and it is difficult to recognize deterioration of high frequency components both horizontally and vertically due to human visual characteristics. Quantization is performed roughly as compared to the mid and low frequencies. Furthermore, zigzag scanning is performed on each quantized frequency data, and the run length indicating the number of consecutive zero data and the level of the non-zero component are encoded by a variable length code such as Huffman code to realize data compression. ing.

【0006】これらの圧縮方式では、量子化したデータ
を可変長符号化によって圧縮するため、圧縮後のデータ
総量(総符号データ量)は画像の内容によって変化す
る。例えばエッジ情報などの高周波成分を多く含んだ画
像では、直流および低周波成分以外にも多くの周波数成
分にエネルギーが分散するため、連続してゼロデータが
発生する確立は低下し、全体の総符号データ量は多くな
る。このように画像内容によって総符号データ量に変化
が生じると、記録容量が有限な記憶媒体に対し何枚の画
像が記録できるか不明となったり、動画に対して所定の
伝送レートでの伝送が困難になるなどの不具合が生じ
る。また、ディジタルVTR等においては、1フィール
ドあるいは1フレームの画像を常に一定の総符号データ
量に圧縮できれば、記録媒体の所定の位置にフィールド
あるいはフレーム単位でデータを書き込むことができ、
変速再生を容易に実現できると共に、フィールドあるい
はフレーム単位での編集が可能となる。
In these compression methods, quantized data is compressed by variable-length coding, so that the total amount of data after compression (total amount of coded data) changes depending on the contents of the image. For example, in an image that contains a lot of high-frequency components such as edge information, the energy disperses into many frequency components in addition to DC and low-frequency components, so the probability that zero data will occur consecutively decreases, and the total code The amount of data increases. If the total coded data amount changes depending on the image content in this way, it becomes unclear how many images can be recorded in a storage medium with a limited recording capacity, or it is impossible to transmit a moving image at a predetermined transmission rate. Problems such as difficulty occur. Further, in a digital VTR or the like, if an image of one field or one frame can be always compressed to a fixed total code data amount, data can be written in a predetermined position of a recording medium in a unit of field or frame,
Variable speed reproduction can be easily realized, and editing can be performed in field or frame units.

【0007】従来の圧縮方式では上記のような不具合を
なくすため、直交変換されたデータを量子化する際の量
子化ステップを変化させて、圧縮後の総符号データ量を
所定の値におさえる構成となっていた。
In order to eliminate the above-mentioned inconveniences in the conventional compression system, the quantization step in quantizing the orthogonally transformed data is changed to keep the total code data amount after compression to a predetermined value. It was.

【0008】[0008]

【発明が解決しようとする課題】しかし従来の圧縮方式
では圧縮後の総符号データ量を所定の値におさえるた
め、文字などの急峻なエッジを持つ複雑な画像に対して
は粗く量子化されるため、原画像に含まれる高周波成分
が完全に再現されずエッジ部に大きな劣化を生じやすい
という問題があった。
However, in the conventional compression method, since the total code data amount after compression is suppressed to a predetermined value, coarse quantization is performed for a complicated image having a sharp edge such as a character. Therefore, there is a problem that the high-frequency component included in the original image is not completely reproduced and the edge portion is likely to be greatly deteriorated.

【0009】これらのエッジ部での画質劣化は、エッジ
を含んだブロックを検出し、高周波成分に対して通常の
平坦部より細かく量子化することで改善できる。しか
し、複雑な画像をさらに細かく量子化することになり、
圧縮後の総符号データ量が増大してしまう。すなわち画
像内容の複雑さによって、圧縮後の総符号データ量が著
しく変化してしまい、圧縮後の総符号データ量を所定の
値におさえることが困難となるという問題があった。
The deterioration of image quality at these edge portions can be improved by detecting a block containing an edge and quantizing the high frequency components more finely than the normal flat portion. However, you will have to quantize the complex image more finely,
The total code data amount after compression increases. That is, there is a problem that the total coded data amount after compression changes remarkably depending on the complexity of the image content, and it becomes difficult to keep the total coded data amount after compression to a predetermined value.

【0010】本発明では、上記エッジ部の画質劣化を改
善し、さらに圧縮後の総符号データ量をフィールドある
いはフレーム単位で所定の値に制御可能な画像データ処
理装置の提供を目的とする。
It is an object of the present invention to provide an image data processing apparatus capable of improving the image quality deterioration of the edge portion and controlling the total code data amount after compression to a predetermined value in field or frame units.

【0011】[0011]

【課題を解決するための手段】上記課題を解決するため
本発明では、直交変換した画像データの交流成分に基づ
きエッジ部を判定し量子化重み分布を切り換えるように
したものである。
In order to solve the above problems, the present invention determines the edge portion based on the AC component of the orthogonally transformed image data and switches the quantization weight distribution.

【0012】また、上記判定によって切り換えた量子化
重み分布に基づき、第1の量子化回路で量子化し、フィ
ールドあるいはフレーム単位での総符号データ量が所定
の値となる量子化係数(QM)を算出するようにしたも
のである。
Further, based on the quantization weight distribution switched by the above determination, the first quantization circuit quantizes the quantization coefficient (QM) that makes the total code data amount in a field or frame unit a predetermined value. It is calculated.

【0013】さらに、算出された量子化係数(QM)と
上記エッジ部判定により切り換えられた量子化重み分布
とを乗算し、第2の量子化回路で直交変換した画像デー
タを量子化し、可変長符号化し出力するようにしたもの
である。
Further, the calculated quantized coefficient (QM) is multiplied by the quantized weight distribution switched by the edge determination, and the image data orthogonally transformed by the second quantized circuit is quantized to have a variable length. This is encoded and output.

【0014】また、上記量子化係数(QM)を算出する
のに必要な概略1フィールドあるいは1フレームの期間
だけ、第2の量子化回路に入力される直交変換した画像
データおよび、エッジ部判定情報を遅延させるようにし
たものである。
Further, the orthogonally transformed image data and the edge determination information which are input to the second quantization circuit only for the period of approximately one field or one frame required for calculating the above-mentioned quantization coefficient (QM). Is to delay.

【0015】さらに、上記可変長符号化出力に、エッジ
部判定情報と量子化係数(QM)とを多重して記録ある
いは伝送するようにしたものである。
Further, the variable length coded output is multiplexed with the edge determination information and the quantized coefficient (QM) and recorded or transmitted.

【0016】また、この量子化係数(QM)を、符号デ
ータを記録伝送する際の最小単位となるパケットあるい
は同期ブロック単位毎に多重するようにしたものであ
る。
The quantized coefficient (QM) is multiplexed for each packet or sync block unit which is the minimum unit for recording and transmitting coded data.

【0017】[0017]

【作用】直交変換した画像データの交流成分に基づきエ
ッジ部を判定し量子化重み分布を切り換えることによ
り、エッジ部の高周波成分を通常の平坦部より細かく量
子化することができる。
By determining the edge portion based on the AC component of the orthogonally transformed image data and switching the quantization weight distribution, the high frequency component of the edge portion can be quantized more finely than the normal flat portion.

【0018】また、エッジ部判定によって切り換えた量
子化重み分布に基づき、第1の量子化回路で量子化し量
子化係数(QM)を算出することにより、量子化重み分
布の切り換えによるデータの増加を含み、かつフィール
ドあるいはフレーム単位で所定の総符号データ量となる
量子化係数(QM)が算出できる。
Further, by increasing the amount of data by switching the quantization weight distribution, the first quantization circuit quantizes the quantization coefficient (QM) based on the quantization weight distribution switched by the edge determination. It is possible to calculate the quantization coefficient (QM) that includes and has a predetermined total code data amount in units of fields or frames.

【0019】さらに、算出された量子化係数(QM)と
上記エッジ部判定により切り換えられた量子化重み分布
とを乗算し、第2の量子化回路で直交変換した画像デー
タを量子化することにより、エッジ部および平坦部に適
した量子化重み分布で量子化され、かつ所定の総符号デ
ータ量に制御された圧縮データを出力できる。
Further, the calculated quantization coefficient (QM) is multiplied by the quantization weight distribution switched by the edge determination, and the image data orthogonally transformed by the second quantization circuit is quantized. , Compressed data that is quantized with a quantization weight distribution suitable for the edge portion and the flat portion and is controlled to have a predetermined total code data amount can be output.

【0020】また、量子化係数(QM)を算出するのに
必要な概略1フィールドあるいは1フレームの期間だ
け、第2の量子化回路に入力される直交変換した画像デ
ータおよび、エッジ部判定情報を遅延させることによ
り、入力画像のフィールドあるいはフレーム内のすべて
のデータを用いて所定の総符号データ量となる量子化係
数(QM)を算出した後、この量子化係数(QM)によ
って第2の量子化回路で量子化を行うことができる。
Further, the orthogonally transformed image data and the edge part determination information input to the second quantization circuit are provided only for a period of approximately one field or one frame required to calculate the quantization coefficient (QM). By delaying, a quantized coefficient (QM) that provides a predetermined total code data amount is calculated using all data in the field or frame of the input image, and then the second quantized coefficient is calculated using this quantized coefficient (QM). The quantization can be performed by the digitizing circuit.

【0021】さらに、可変長符号化出力に、エッジ部判
定情報と量子化係数(QM)とを多重して記録あるいは
伝送することにより、復号時に伝送されたブロックがエ
ッジ部と判断されたブロックであるか否か、および符号
化時の量子化係数の値を誤りなく知ることができる。
Furthermore, the block transmitted at the time of decoding is the block determined to be the edge portion by multiplexing or recording the edge portion determination information and the quantized coefficient (QM) on the variable length coded output and recording or transmitting the multiplexed information. Whether or not there is, and the value of the quantized coefficient at the time of encoding can be known without error.

【0022】また量子化係数(QM)を、記録伝送の最
小単位となるパケットあるいは同期ブロック単位毎に多
重することで、記録伝送時の伝送路誤りが発生した場合
にも、量子化係数(QM)のエラーが画面全体に影響を
およぼすことはない。
Further, by multiplexing the quantized coefficient (QM) for each packet or sync block unit, which is the minimum unit for recording and transmitting, even when a transmission path error occurs during recording and transmitting, the quantized coefficient (QM) ) Error does not affect the entire screen.

【0023】[0023]

【実施例】以下、本発明の実施例を図を用いて説明す
る。図1は本発明の1実施例に係る、画像データをフレ
ーム単位で所定の符号量にデータ圧縮する圧縮装置の要
部ブロック図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a main part of a compression device for compressing image data in units of frames to a predetermined code amount according to an embodiment of the present invention.

【0024】図1において、1は入力された画像データ
から縦8サンプル,横8サンプルのブロックを構成する
ブロック化回路、2は8×8サンプルのブロックデータ
に対し離散コサイン変換する直交変換回路、3は周波数
成分に変換された画像データの交流係数をもとにエッジ
を含むブロックか否か判別するエッジ判別回路、4は画
像の平坦部のブロックを量子化するための第1の量子化
重み分布テーブル、5は画像のエッジ部を含むブロック
を量子化するための第2の量子化重み分布テーブル、6
はエッジ判別回路3からのエッジ判別情報に基づき量子
化重み分布テーブルを切り換える切り換え回路、7は切
り換え回路6で選択された量子化重み分布テーブルに基
づいて直交変換された画像を量子化する第1の量子化回
路、8は量子化されたデータから所定の符号量にするた
めの量子化係数QMを算出する係数算出回路、9は第1
の量子化回路7および係数算出回路8で係数が演算され
るまでの期間エッジ判別情報を遅延させる遅延回路、1
0は遅延されたエッジ判別情報に基づき量子化重み分布
テーブルを切り換える切り換え回路、11は切り換え回
路10で選択された量子化重み分布に量子化係数QMを
乗算する乗算回路、12は量子化係数QMが演算される
までの期間直交変換された画像データを遅延させる遅延
回路、13は遅延されたデータを乗算回路11で量子化
係数QMが乗算された量子化重みに基づいて量子化する
第2の量子化回路、14は量子化されたデータをジグザ
グスキャンして可変長符号化する可変長符号化回路、1
5は符号化されたデータとエッジ判別情報および量子化
係数QMを多重化して出力する多重化回路である。
In FIG. 1, reference numeral 1 is a block forming circuit which forms blocks of 8 samples in the vertical direction and 8 samples in the horizontal direction from input image data, and 2 is an orthogonal transform circuit for performing a discrete cosine transform on the block data of 8 × 8 samples, Reference numeral 3 is an edge discrimination circuit for discriminating whether or not the block includes an edge based on the AC coefficient of the image data converted into frequency components, and 4 is a first quantization weight for quantizing the block in the flat portion of the image. Distribution table, 5 is a second quantization weight distribution table for quantizing a block including an edge portion of an image, 6
Is a switching circuit for switching the quantization weight distribution table based on the edge discrimination information from the edge discrimination circuit 3, and 7 is a first for quantizing the image orthogonally transformed based on the quantization weight distribution table selected by the switching circuit 6. Quantization circuit, 8 is a coefficient calculation circuit for calculating a quantization coefficient QM for obtaining a predetermined code amount from quantized data, and 9 is a first
Delay circuit for delaying the edge discrimination information until the coefficient is calculated by the quantization circuit 7 and the coefficient calculation circuit 8
0 is a switching circuit for switching the quantization weight distribution table based on the delayed edge discrimination information, 11 is a multiplication circuit for multiplying the quantization weight distribution selected by the switching circuit 10 by the quantization coefficient QM, and 12 is a quantization coefficient QM. A delay circuit for delaying the image data that has been orthogonally transformed until is calculated, and a second delay circuit 13 that quantizes the delayed data based on the quantization weight multiplied by the quantization coefficient QM in the multiplication circuit 11. Quantization circuit, 14 is a variable length coding circuit for variable length coding by zigzag scanning the quantized data, 1
A multiplexing circuit 5 multiplexes the coded data, the edge discrimination information, and the quantized coefficient QM and outputs the multiplexed data.

【0025】次に本実施例の動作について説明する。圧
縮しようとする画像データはブロック化回路1に入力さ
れ8×8サンプルのブロックが構成される。入力画像信
号がライン単位でラスタスキャンの形態で入力される場
合には、このブロック化回路1内部のメモリに8ライン
以上書き込んだ後、順次ブロック単位で読み出すように
構成すればよい。また、2:1インターレースの映像信
号が入力される場合には、このブロック化回路1内部の
メモリで2フィールドの映像信号を1フレームの画像に
合成した後、順次ブロック単位で読み出すように構成す
ればよい。あるいは、入力画像の静止画部分では上記の
ようにフレーム合成してブロックを構成し、動画領域で
はフィールド内で隣接する8ラインの信号から8×8の
ブロックを構成するようにしてもよい。
Next, the operation of this embodiment will be described. The image data to be compressed is input to the blocking circuit 1 to form a block of 8 × 8 samples. When the input image signal is input in the form of raster scan on a line-by-line basis, it may be configured such that eight lines or more are written in the memory inside the blocking circuit 1 and then sequentially read out in block units. Further, when a 2: 1 interlaced video signal is input, it is possible to compose the video signal of two fields into an image of one frame in the memory inside the blocking circuit 1 and then sequentially read out in block units. Good. Alternatively, in the still image portion of the input image, the frame may be combined as described above to form a block, and in the moving image area, an 8 × 8 block may be formed from signals of eight lines adjacent in the field.

【0026】このようにしてブロック構成した画像デー
タは、直交変換回路2に入力され離散コサイン変換によ
り8×8の周波数成分に変換される。この周波数成分に
変換された画像データは、エッジ判別回路3、第1の量
子化回路7および遅延回路12に入力される。
The image data having the block structure as described above is input to the orthogonal transform circuit 2 and converted into 8 × 8 frequency components by discrete cosine transform. The image data converted into the frequency component is input to the edge determination circuit 3, the first quantization circuit 7 and the delay circuit 12.

【0027】エッジ判別回路3では、周波数成分に変換
された画像データの交流係数に基づいてエッジ部である
か平坦部であるかの判別を行い、エッジ判別情報を切り
換え回路6および遅延回路9に出力する。具体的には画
像データの周波数成分の交流係数(直流項を除く「6
3」データ)の絶対値和が所定値を超えるか否かによっ
て、判定するよう構成すればよい。あるいは直流係数と
極低周波成分を除いた成分の絶対値和を用いて判定する
ように構成してもよい。また入力画像に重畳するノイズ
による誤動作を防止するため、所定のレベルに達しない
交流係数をゼロとみなすコアリング処理の後、絶対値和
による判定を行うように構成してもよい。
The edge discriminating circuit 3 discriminates the edge portion or the flat portion based on the AC coefficient of the image data converted into the frequency component, and the edge discriminating information is sent to the switching circuit 6 and the delay circuit 9. Output. Specifically, the AC coefficient of the frequency component of the image data (“6 excluding the DC term
The determination may be made based on whether or not the sum of absolute values of “3” data) exceeds a predetermined value. Alternatively, the determination may be made using the sum of absolute values of the components excluding the DC coefficient and the extremely low frequency component. In addition, in order to prevent malfunction due to noise superimposed on the input image, the determination may be performed by the sum of absolute values after coring processing in which an AC coefficient that does not reach a predetermined level is regarded as zero.

【0028】切り換え回路6は、エッジ判別回路3から
のエッジ判別情報によって、直交変換されたブロックが
平坦部である場合には平坦部用の第1の量子化重み分布
テーブル4を選択し、エッジ部を含むブロックである場
合にはエッジ用の第2の量子化重み分布テーブル5を選
択して、第1の量子化回路7に入力する。
The switching circuit 6 selects the first quantization weight distribution table 4 for the flat portion when the orthogonally transformed block is the flat portion, based on the edge discrimination information from the edge discrimination circuit 3, and selects the edge. In the case of a block including a copy, the second quantization weight distribution table 5 for edges is selected and input to the first quantization circuit 7.

【0029】平坦部用の第1の量子化重み分布テーブル
4およびエッジ用の第2の量子化重み分布テーブルの係
数値の1例を、それぞれ図2の(a)および図2の
(b)に示す。図2の(a),(b)において、図の左
上隅が直流成分に対する量子化係数であり、右方向が水
平周波数の高域成分、下方向が垂直周波数の高域成分の
それぞれ対応する量子化係数である。また、量子化係数
が大きい程その周波数成分は粗く量子化される。平坦部
用の第1の量子化重み分布テーブル4を示す図2の
(a)では、一般画像でのエネルギーの集中度合、視覚
特性を考慮して、概略水平/垂直の周波数が上昇するほ
ど大きな係数となるように設定する。また、エッジ部用
の第2の量子化重み分布テーブル5を示す図2の(b)
では、中低域の係数は平坦部用と同様であるが、高周波
成分の再現性を良好にするため、水平/垂直の周波数が
上昇しても所定の値以上とならないように設定する。
An example of the coefficient values of the first quantization weight distribution table 4 for the flat portion and the second quantization weight distribution table for the edge is shown in FIGS. 2 (a) and 2 (b), respectively. Shown in. In (a) and (b) of FIG. 2, the upper left corner of the figure is the quantization coefficient for the DC component, the right direction corresponds to the high frequency component of the horizontal frequency, and the down direction corresponds to the high frequency component of the vertical frequency. Is a conversion factor. Further, the larger the quantization coefficient, the coarser the frequency component is quantized. In FIG. 2A showing the first quantization weight distribution table 4 for the flat portion, in consideration of the degree of concentration of energy in a general image and the visual characteristics, the larger the horizontal / vertical frequency is, the larger the frequency becomes. Set to be a coefficient. 2B showing the second quantization weight distribution table 5 for the edge part.
Then, although the coefficient in the middle and low frequencies is the same as that for the flat portion, in order to improve the reproducibility of the high frequency component, the coefficient is set so as not to exceed the predetermined value even if the horizontal / vertical frequency increases.

【0030】図1に示す第1の量子化回路7は、直交変
換回路2で周波数成分に変換された画像データを、切り
換え回路6で選択された量子化重み分布テーブルに従っ
て量子化を行う。この量子化処理は、各周波数成分のデ
ータを対応する量子化テーブルにより除算するよう構成
される。図2の(a)の平坦部用量子化重み分布がエッ
ジ判別により選択された場合には、画像データの直流成
分を3で除算し、整数化した演算結果を量子化出力と
し、水平/垂直共に最も高い周波数成分は20で除算さ
れ量子化される。
The first quantization circuit 7 shown in FIG. 1 quantizes the image data converted into frequency components by the orthogonal transformation circuit 2 in accordance with the quantization weight distribution table selected by the switching circuit 6. This quantization process is configured to divide the data of each frequency component by the corresponding quantization table. When the flat part quantization weight distribution of FIG. 2A is selected by edge discrimination, the DC component of the image data is divided by 3 and the integerized operation result is used as the quantized output, and horizontal / vertical Both highest frequency components are divided by 20 and quantized.

【0031】第1の量子化回路7で、エッジ判別情報に
基づき量子化されたデータは、係数算出回路8に入力さ
れる。この際に量子化されたデータは、エネルギーの集
中しやすい直流及び低周波成分から水平/垂直共に高い
周波成分へとジグザグにスキャンされる。図3はこのジ
グザグスキャンのスキャン順序を示しており、左上の直
流成分「0」から番号順に右下の水平/垂直共に最高の
周波数成分「63」まで順次データをスキャンして出力
する。
The data quantized by the first quantization circuit 7 based on the edge discrimination information is input to the coefficient calculation circuit 8. At this time, the quantized data is zigzag scanned from the DC and low frequency components where the energy is likely to be concentrated to the horizontal and vertical high frequency components. FIG. 3 shows the scanning order of this zigzag scanning, in which data is sequentially scanned and output from the DC component "0" at the upper left to the highest frequency component "63" in the horizontal / vertical direction at the lower right in the numerical order.

【0032】係数算出回路8では、第1の量子化回路7
で所定の量子化重み分布で量子化したデータに対し可変
長符号化後の符号量を算出し、目標とする1フレームの
総符号データ量TD以下となるかどうか判定を行う。1
フレームの総符号データ量が目標値を超えてしまう場合
には、さらに各量子化値を量子化係数QMで除算(量子
化)することで総符号データ量の制御を行う。
In the coefficient calculation circuit 8, the first quantization circuit 7
At, the code amount after variable length coding is calculated for the data quantized by the predetermined quantization weight distribution, and it is determined whether or not the target total code data amount TD of one frame is less than or equal to TD. 1
When the total coded data amount of the frame exceeds the target value, the total coded data amount is controlled by further dividing (quantizing) each quantized value by the quantization coefficient QM.

【0033】以下にこの量子化係数QMの算出方法につ
いて説明する。まず、第1の量子化回路7からジグザグ
スキャンのスキャン順序で出力されたデータから、可変
長符号化した際の符号長を累積加算し、入力画像1フレ
ームの総符号データ量Td(1)を算出する。同時に、係数
算出回路8では、第1の量子化回路7からの量子化出力
をさらに2,4,8,16,32,…などの2のべき乗
の数値で除算したデータを可変長符号化した際の入力画
像1フレームの総符号データ量Td(2),Td(4),T
d(8),Td(16),Td(32),…を、それぞれ並行して算出
する。第1の量子化回路7からの出力をそのまま可変長
符号化した際の総符号データ量Td(1)が、目標とする1
フレームの総符号データ量TDより小さい場合、すなわ
ちTd(1)≦TDとなる場合には量子化係数QMとして1
が出力される。
The method of calculating the quantized coefficient QM will be described below. First, from the data output from the first quantization circuit 7 in the scan order of the zigzag scan, the code lengths at the time of variable length coding are cumulatively added to obtain the total code data amount Td (1) of one frame of the input image. calculate. At the same time, in the coefficient calculation circuit 8, the quantized output from the first quantization circuit 7 is further divided by a power of 2 such as 2, 4, 8, 16, 32, ... In this case, the total code data amount Td (2) , Td (4) , T of one frame of the input image
d (8) , Td (16) , Td (32) , ... Are calculated in parallel. The total code data amount Td (1) when the output from the first quantization circuit 7 is subjected to variable length coding as it is is the target 1
When it is smaller than the total code data amount TD of the frame, that is, when Td (1) ≤TD, the quantization coefficient QM is 1
Is output.

【0034】また、Td(1)>TDである場合には、上記
の算出結果の中から、目標とする総符号データ量TDを
超える最小の符号量Td(m)および、TDを超えない最大
の符号量Td(n)を用いて、量子化係数QMを1次の直線
近似により、以下の式のように算出する。 QM=m+(Td(m)−TD)・(n−m)/(Td(m)−Td(n)) ……式 ただしTd(m)> TD >Td(n),n>m≧1 あるいは以下の式のように算出しても同様である。 QM=n−(TD−Td(n))・(n−m)/(Td(m)−Td(n)) ……式 ただしTd(m)> TD >Td(n),n>m≧1 以上のように係数算出回路8で算出された量子化係数Q
Mは、乗算回路11および多重化回路15に入力され
る。
When Td (1) > TD, the minimum code amount Td (m) exceeding the target total code data amount TD and the maximum code amount not exceeding TD are selected from the above calculation results. Quantization coefficient QM is calculated by the linear approximation of the first order using the code amount Td (n) of QM = m + (Td (m) -TD ) * ( nm) / (Td (m) -Td (n) ) ... where Td (m) >TD> Td (n) , n> m≥1 Alternatively, the same is true even if it is calculated by the following formula. QM = n- (TD-Td (n) ) ・ (nm) / (Td (m) -Td (n) ) ... where Td (m) >TD> Td (n) , n> m≥ 1 The quantized coefficient Q calculated by the coefficient calculation circuit 8 as described above.
M is input to the multiplication circuit 11 and the multiplexing circuit 15.

【0035】これらの係数算出回路8での量子化係数Q
Mの演算には、入力された1フレーム全ての画像データ
から、それぞれの数値で除算したデータを可変長符号化
した際の総符号データ量を累積加算によって求める必要
があるため、少なくとも1フレームの処理時間が必要で
ある。そこで本実施例では、直交変換回路2によって周
波数成分に変換された画像データを遅延回路12を用い
て、またエッジ判別情報は遅延回路9を用いてそれぞれ
概略1フレーム遅延させ、目標とする所定の符号量を実
現するための量子化係数QMが算出された後に、第2の
量子化回路13を用いて量子化を行う構成となってい
る。
Quantization coefficient Q in these coefficient calculation circuits 8
To calculate M, it is necessary to obtain the total coded data amount when variable-length coding the data obtained by dividing the input image data of all one frame by each numerical value by cumulative addition. Processing time is required. Therefore, in the present embodiment, the image data converted into the frequency component by the orthogonal transform circuit 2 is delayed by about 1 frame using the delay circuit 12 and the edge determination information is delayed by about 1 frame using the delay circuit 9, respectively, and a predetermined target is obtained. After the quantization coefficient QM for realizing the code amount is calculated, the second quantization circuit 13 is used for quantization.

【0036】遅延回路9で遅延処理されたエッジ判別情
報は、第2の量子化回路13に入力される周波数成分に
変換された画像データが、エッジを含んだブロックであ
るか否かを示すよう構成されている。これにより第1の
量子化回路7の動作と同様に、切り換え回路10により
通常の平坦部では第1の量子化重み分布テーブル4が選
択され、エッジ部では第2の量子化重み分布テーブル5
が選択される。
The edge discrimination information delayed by the delay circuit 9 indicates whether or not the image data converted into the frequency component input to the second quantization circuit 13 is a block including an edge. It is configured. As a result, similar to the operation of the first quantization circuit 7, the switching circuit 10 selects the first quantization weight distribution table 4 in the normal flat portion and the second quantization weight distribution table 5 in the edge portion.
Is selected.

【0037】第2の量子化回路13では、周波数成分に
変換された画像データを、切り換え回路10で選択され
た量子化重み分布テーブルの各周波数に対応した係数に
量子化係数QMを乗算した値によって量子化を行う。例
えば、QM=5.8の場合には、平坦部のブロックの直
流成分は図2の(a)の係数から、5.8×3=17.
4で量子化される。量子化係数QMは、第1の量子化回
路7で量子化したデータを目標とする符号量に制御する
ため、さらに除算しなければならない値である。したが
って直交変換されたデータを、第2の量子化回路13に
おいて、量子化重み分布テーブルの係数値と量子化係数
QMの積によって量子化(除算)し、可変長符号化回路
14で符号化することにより、目標の符号量にデータを
制御することができる。
In the second quantizing circuit 13, the image data converted into frequency components is a value obtained by multiplying the coefficient corresponding to each frequency of the quantizing weight distribution table selected by the switching circuit 10 by the quantizing coefficient QM. Quantize by. For example, when QM = 5.8, the DC component of the block in the flat portion is 5.8 × 3 = 17.
It is quantized by 4. The quantization coefficient QM is a value that has to be further divided in order to control the data quantized by the first quantization circuit 7 to a target code amount. Therefore, the orthogonally transformed data is quantized (divided) by the product of the coefficient value of the quantization weight distribution table and the quantized coefficient QM in the second quantization circuit 13, and encoded by the variable length coding circuit 14. As a result, the data can be controlled to the target code amount.

【0038】また、圧縮された画像の復号装置と本実施
例の圧縮装置との間で予め平坦部およびエッジ部の量子
化重み分布テーブルを等しく定めておくことによって、
これらの情報を伝送する必要はなく、量子化係数QMを
少なくともフレーム毎に、また、エッジ判別情報をブロ
ック毎に多重化回路15により時間軸多重して記録また
は伝送を行えばよい。なお量子化係数QMは伝送路誤り
によりエラーが生じると画面全体に影響が及ぶため、圧
縮された符号データを記録伝送する際の最小単位となる
パケットあるいは同期ブロック毎に多重する構成として
もよい。このように構成することで、量子化係数QMに
伝送路誤りが発生した場合にも復号画像への影響を最小
限にすることができる。
Further, the quantization weight distribution tables of the flat portion and the edge portion are set equal in advance between the compressed image decoding apparatus and the compression apparatus of the present embodiment,
It is not necessary to transmit these pieces of information, and the quantized coefficient QM may be recorded or transmitted by time-multiplexing the quantized coefficient QM at least for each frame and the edge determination information for each block by the multiplexing circuit 15. Since the quantization coefficient QM affects the entire screen when an error occurs due to a transmission path error, it may be multiplexed for each packet or synchronization block which is the minimum unit when recording and transmitting the compressed code data. With this configuration, even when a transmission path error occurs in the quantized coefficient QM, the influence on the decoded image can be minimized.

【0039】以上のように本実施例によれば、入力画像
のエッジや平坦部に適した量子化重み分布を適応的に切
り換えて用いるため、文字周辺などでの歪みの発生を低
減させることができる。
As described above, according to the present embodiment, since the quantization weight distribution suitable for the edge or flat portion of the input image is adaptively switched and used, it is possible to reduce the occurrence of distortion around the character. it can.

【0040】また、量子化重み分布の切り換えによって
エッジ部を細かく量子化することになり符号量が変化す
ることになるが、これらの適応的な量子化重み分布の切
り換えを含んだ第1の量子化出力に対して、目標とする
所定の符号量を実現するための量子化係数QMを決定す
る構成となっているため、1フレームの総符号データ量
を目標値に制御することができる。
Further, since the edge portion is quantized finely by switching the quantization weight distribution and the code amount changes, the first quantum including the adaptive switching of the quantization weight distribution. Since the quantization coefficient QM for realizing the target predetermined code amount is determined for the converted output, the total code data amount of one frame can be controlled to the target value.

【0041】また、この量子化係数QMは1フレーム毎
に、1フレームの総符号データ量を目標値に制御するよ
う決定されるため、1フレーム内で量子化係数QMが変
化することはなく、画面内をほぼ一定の量子化特性で量
子化でき、局所的な劣化を生じることがない。
Since the quantized coefficient QM is determined to control the total code data amount of one frame to the target value for each frame, the quantized coefficient QM does not change within one frame. The inside of the screen can be quantized with a substantially constant quantization characteristic, and local deterioration does not occur.

【0042】次に、図1に示す係数算出回路8の構成と
動作について詳しく説明する。図4は上記係数算出回路
8の構成を示すブロック図である。同図において、16
は図1に示す第1の量子化回路7からの量子化データの
入力端子、17(17−1〜17−5)は、ジグザグス
キャンで入力される量子化データから、連続するゼロの
数とゼロ以外のデータのレベルとの組み合わせによって
ハフマン符号の符号長を求め、累積加算するデータ量算
出回路、18は、データ量算出回路17−1〜17−5
で算出されたデータ量Td(1),Td(2),Td(4),T
d(8),Td(16) に基づいて量子化係数QMを算出する量
子化係数算出回路である。
Next, the configuration and operation of the coefficient calculation circuit 8 shown in FIG. 1 will be described in detail. FIG. 4 is a block diagram showing the configuration of the coefficient calculation circuit 8. In the figure, 16
Is an input terminal of the quantized data from the first quantization circuit 7 shown in FIG. 1, and 17 (17-1 to 17-5) is the number of consecutive zeros from the quantized data input by the zigzag scan. A data amount calculation circuit for obtaining the code length of the Huffman code by combination with a level of data other than zero and cumulatively adding it, and 18 is a data amount calculation circuit 17-1 to 17-5.
Data amount calculated in Td (1) , Td (2) , Td (4) , T
This is a quantization coefficient calculation circuit for calculating the quantization coefficient QM based on d (8) and Td (16) .

【0043】図4の端子16には、量子化回路7からの
量子化データが11bit のディジタル信号の形で、ブロ
ック毎に順次ジグザグスキャンの形で入力される。デー
タ量算出回路17は、入力されたデータがゼロであれ
ば、内部に設けられたカウンタにより連続するゼロの数
(ゼロラン)を係数し、ゼロ以外のデータが入力された
場合には、このデータが発生するまでのゼロランとデー
タのレベルからROMテーブルを用いて発生するハフマ
ン符号の符号長を求め、この符号長データを順次累積加
算するように構成されている。
The quantized data from the quantization circuit 7 is input to the terminal 16 of FIG. 4 in the form of an 11-bit digital signal in the form of a zigzag scan for each block. If the input data is zero, the data amount calculation circuit 17 counts the number of consecutive zeros (zero run) by the counter provided inside, and if the data other than zero is input, this data is calculated. The code length of the Huffman code generated using the ROM table is calculated from the zero run and the data level until the occurrence of, and the code length data is sequentially cumulatively added.

【0044】第1のデータ量算出回路17−1には、端
子16からの11bit のデータがそのまま入力されてお
り、第1の量子化回路7で所定の量子化重み分布で量子
化された場合の総符号データ量Td(1)を算出する。第2
のデータ量算出回路17−2には、端子16からの11
bit のデータのうちMSBから10bit のデータ(順次
下位に1bit シフト、LSB1bit 切り捨て)が入力さ
れており、第1の量子化回路7からのデータを2で除算
した場合の総符号データ量Td(2)を算出する。また、第
3のデータ量算出回路17−3には、11bit のデータ
のうちMSB9bit のデータ(下位に2bit シフト)が
入力されており、第1の量子化回路7からのデータを4
で除算した場合の総符号データ量Td(4)を算出する。さ
らに、第4,第5のデータ量算出回路17−4,17−
5でも同様に、MSB8bit のデータ(下位に3bit シ
フト)を用いて8で除算した場合の総符号データ量Td
(8)、MSB7bit のデータ(下位に4bit シフト)を
用いて16で除算した場合の総符号データ量Td(16)
それぞれ算出する。
When the 11-bit data from the terminal 16 is directly input to the first data amount calculation circuit 17-1 and is quantized by the first quantization circuit 7 with a predetermined quantization weight distribution. The total code data amount Td (1) of is calculated. Second
The data amount calculation circuit 17-2 of
Of the bit data, 10-bit data from the MSB (1 bit shift to the lower order, LSB 1-bit truncation) is input, and the total code data amount Td (2 when the data from the first quantization circuit 7 is divided by 2 ) Is calculated. Further, the MSB 9-bit data (lower 2 bits shift) of the 11-bit data is input to the third data amount calculation circuit 17-3, and the data from the first quantization circuit 7 is converted into 4 bits.
The total code data amount Td (4) when divided by is calculated. Furthermore, the fourth and fifth data amount calculation circuits 17-4, 17-
Similarly for 5, the total code data amount Td when dividing by 8 using MSB 8bit data (lower 3bit shift)
(8) Calculate the total code data amount Td (16) when divided by 16 using 7-bit MSB data (lower 4-bit shift).

【0045】なお、図4に示す係数算出回路の構成例で
は、下位にnビットシフトするとともに、LSB側のn
ビットを切り捨てて処理する構成となっているが、これ
を四捨五入等によるまるめ処理を行う構成としてもよ
い。このようにすることで精度よく量子化係数QMが算
出できる効果がある。
In the configuration example of the coefficient calculation circuit shown in FIG. 4, n bits are shifted downward and n on the LSB side is used.
Although the bit is rounded down for processing, it may be rounded for rounding. By doing so, there is an effect that the quantization coefficient QM can be calculated accurately.

【0046】これらの算出されたデータ量Td(1),Td
(2),Td(4),Td(8),Td(16) は、量子化係数算出回
路18に入力され、先の式あるいは式に従って量子
化係数QMが算出される。
These calculated data amounts Td (1) , Td
(2) , Td (4) , Td (8) and Td (16) are input to the quantized coefficient calculation circuit 18, and the quantized coefficient QM is calculated according to the above equation or equation.

【0047】これらの量子化係数QM算出の過程を図5
を用いて説明する。図5のグラフにおいて横軸は量子化
係数、縦軸は総符号データ量である。データ量算出回路
17−1〜17−5での算出結果により、量子化係数が
1,2,4,8,16の総符号データ量はTd(1)〜Td
(16) としてプロットできる。この動作例では、目標と
する総符号データ量TDを超える最小の符号量はTd(4)
となり、TDを超えない最大の符号量はTd(8)である。
図5に示すように、この2点を用いて直線近似により、
総符号データ量をTDに制御するための量子化係数QM
を決めることができる。このようにして算出される量子
化係数QMは、図5の破線で示す本来の特性を直線近似
したものであるため、実際には誤差を生じる。しかし一
般に、レート・ディストーション理論などから図5の量
子化係数対総符号データ量特性も下に凸であることが知
られており、直線近似により決定した量子化係数QMを
用いて実際に得られる総符号データ量Td(QM) は、少な
くとも目標総符号データ量TDを超えることはなく、入
力画像を所定の符号データ量に制御できる。
The process of calculating these quantized coefficients QM is shown in FIG.
Will be explained. In the graph of FIG. 5, the horizontal axis represents the quantization coefficient and the vertical axis represents the total code data amount. According to the calculation results of the data amount calculation circuits 17-1 to 17-5, the total code data amount of the quantization coefficients 1, 2, 4, 8, 16 is Td (1) to Td.
It can be plotted as (16) . In this operation example, the minimum code amount that exceeds the target total code data amount TD is Td (4)
Therefore, the maximum code amount that does not exceed TD is Td (8) .
As shown in FIG. 5, by linear approximation using these two points,
Quantization coefficient QM for controlling the total code data amount to TD
You can decide. Since the quantized coefficient QM calculated in this way is a linear approximation of the original characteristic shown by the broken line in FIG. 5, an error actually occurs. However, it is generally known from the rate / distortion theory that the quantized coefficient versus total coded data amount characteristic of FIG. 5 is also downwardly convex, and is actually obtained by using the quantized coefficient QM determined by linear approximation. The total code data amount Td (QM) does not exceed at least the target total code data amount TD, and the input image can be controlled to a predetermined code data amount.

【0048】なお、図4に示す係数算出回路の構成例で
は5個のデータ量算出回路17により量子化係数QMを
算出しているが、これに限ることなく2個以上のデータ
量算出回路によって構成してもよい。2個のデータ量算
出回路によって構成する際には、入力画像として想定さ
れる最も複雑な画像に対しても目標とする総符号データ
量以下となる第1のビットシフト量と、比較的圧縮しや
すい画像に対しても目標とする総符号データ量以上とな
る第2のビットシフト量の2つのビットシフト量を予め
求めておき、この2つのビットシフト処理を行った後デ
ータ量を算出する2つのデータ量算出回路を設けて、量
子化係数QMを算出するように構成すればよい。このよ
うに設定することで、通常の画像では、第1のビットシ
フト後のデータ量は目標とする総符号データ量より少な
くなり、また第2のビットシフト後のデータ量は目標と
する総符号データ量より多くなるため、両者の総符号デ
ータ量と目標符号量の比率から量子化係数QMを算出で
きる。さらにデータ量算出回路を3個以上設ける場合に
は、上記第1および第2のビットシフト量のあいだのビ
ットシフト処理を行った後データ量を算出するデータ量
算出回路を追加するように構成すればよい。このように
データ量算出回路を3個以上設けることにより、より精
度よく量子化係数QMを算出できるという効果がある。
Although the quantization coefficient QM is calculated by the five data amount calculation circuits 17 in the configuration example of the coefficient calculation circuit shown in FIG. 4, the present invention is not limited to this, and the quantization amount QM may be calculated by two or more data amount calculation circuits. You may comprise. When the configuration is made up of two data amount calculation circuits, even for the most complicated image assumed as an input image, the first bit shift amount that is less than or equal to the target total code data amount Even for an easy image, two bit shift amounts of the second bit shift amount that are equal to or more than the target total code data amount are obtained in advance, and the data amount is calculated after performing these two bit shift processes. One data amount calculation circuit may be provided and the quantization coefficient QM may be calculated. By setting in this way, in a normal image, the data amount after the first bit shift is smaller than the target total code data amount, and the data amount after the second bit shift is the target total code amount. Since it is larger than the data amount, the quantization coefficient QM can be calculated from the ratio of the total code data amount and the target code amount of both. Further, when three or more data amount calculation circuits are provided, it is possible to add a data amount calculation circuit for calculating the data amount after performing the bit shift processing between the first and second bit shift amounts. Good. By providing three or more data amount calculation circuits in this way, the quantization coefficient QM can be calculated more accurately.

【0049】以上のように、本実施例では入力画像のエ
ッジ部あるいは平坦部に適した量子化重み分布が選択さ
れることにより、画質劣化を低減させることができ、し
かもフィールドあるいはフレーム単位で所定の値以下に
圧縮後の総符号データ量を制御できるため、動画像に対
してエッジ部などの劣化を少なく一定のビットレートで
伝送することができる。またディジタルVTR等におい
て、記録媒体の所定の位置にフィールドあるいはフレー
ム単位で圧縮されたデータを記録することにより、変速
再生時の画質の向上、あるいはフィールド,フレーム単
位での編集が容易に実現できる。
As described above, in the present embodiment, by selecting the quantization weight distribution suitable for the edge portion or the flat portion of the input image, it is possible to reduce the image quality deterioration, and moreover, it is possible to reduce the deterioration of the image quality in units of fields or frames. Since the total amount of coded data after compression can be controlled to be equal to or less than the value of, it is possible to transmit a moving image at a constant bit rate with less deterioration of the edge portion and the like. Further, in the digital VTR or the like, by recording the data compressed in the unit of field or frame at a predetermined position of the recording medium, it is possible to easily improve the image quality at the time of variable speed reproduction or easily realize the editing in the unit of field or frame.

【0050】次に、本発明の他の実施例について図6の
ブロック図を用いて説明する。図6は図1に示した実施
例と同様に、画像データをフレーム単位で所定の符号量
にデータ圧縮する圧縮装置の実施例である。
Next, another embodiment of the present invention will be described with reference to the block diagram of FIG. FIG. 6 is an embodiment of a compression device for compressing image data in a predetermined code amount in frame units, as in the embodiment shown in FIG.

【0051】図6において、1は入力された画像データ
から縦8サンプル,横8サンプルのブロックを構成する
ブロック化回路、2は8×8サンプルのブロックデータ
に対し離散コサイン変換する直交変換回路、3は周波数
成分に変換された画像データの交流係数をもとにエッジ
を含むブロックか否か判別するエッジ判別回路、4は画
像の平坦部のブロックを量子化するための第1の量子化
重み分布テーブル、5は画像のエッジ部を含むブロック
を量子化するための第2の量子化重み分布テーブル、6
はエッジ判別回路3からのエッジ判別情報に基づき量子
化重み分布テーブルを切り換える切り換え回路、7は切
り換え回路6で選択された量子化重み分布テーブルに基
づいて直交変換された画像を量子化する第1の量子化回
路、8は量子化されたデータから所定の符号量にするた
めの量子化係数QMを算出する係数算出回路、9は量子
化回路7および係数算出回路8で係数が演算されるまで
の期間エッジ判別情報を遅延させる遅延回路、12は量
子化係数QMが演算されるまでの期間量子化したデータ
を遅延させる遅延回路、13は遅延されたデータを量子
化係数QMに基づいて量子化する第2の量子化回路、1
4は量子化されたデータをジグザグスキャンして可変長
符号化する可変長符号化回路、15は符号化されたデー
タとエッジ判別情報および量子化係数QMを多重化して
出力する多重化回路である。
In FIG. 6, 1 is a block forming circuit which forms blocks of 8 samples in the vertical direction and 8 samples in the horizontal direction from the input image data, 2 is an orthogonal transform circuit for performing discrete cosine transform on the block data of 8 × 8 samples, Reference numeral 3 is an edge discrimination circuit for discriminating whether or not the block includes an edge based on the AC coefficient of the image data converted into frequency components, and 4 is a first quantization weight for quantizing the block in the flat portion of the image. Distribution table, 5 is a second quantization weight distribution table for quantizing a block including an edge portion of an image, 6
Is a switching circuit for switching the quantization weight distribution table based on the edge discrimination information from the edge discrimination circuit 3, and 7 is a first for quantizing the image orthogonally transformed based on the quantization weight distribution table selected by the switching circuit 6. , A coefficient calculation circuit 8 for calculating a quantization coefficient QM for obtaining a predetermined code amount from the quantized data, and 9 until the coefficients are calculated by the quantization circuit 7 and the coefficient calculation circuit 8. , A delay circuit that delays the edge discrimination information, a delay circuit that delays the quantized data until the quantized coefficient QM is calculated, and a quantizer 13 that quantizes the delayed data based on the quantized coefficient QM. Second quantizer circuit, 1
Reference numeral 4 is a variable-length coding circuit that zigzag-scans the quantized data to perform variable-length coding, and 15 is a multiplexing circuit that multiplexes the coded data, the edge discrimination information, and the quantized coefficient QM and outputs the multiplexed data. .

【0052】図1に示した前記実施例では、直交変換回
路2の出力が遅延回路12で遅延され第2の量子化回路
13で、量子化係数QMとエッジ情報により選択された
量子化重み分布係数の積によって量子化される構成とな
っている。これに対し、図6の本実施例の構成では、直
交変換回路2の出力は第1の量子化回路7でエッジ情報
により選択された量子化重み分布係数により量子化され
た後、さらに量子化係数QMによって再度量子化される
構成となっている。図1の構成では、エッジ情報により
選択された量子化重み分布係数と、所定の総符号データ
量に制御するための量子化係数QMとの積を乗算回路1
1により予め求めておき、第2の量子化回路13で一度
に量子化する構成であるのに対し、図6に示す本実施例
の構成では、まず第1の量子化回路7でエッジ情報によ
り選択された量子化重み分布係数で量子化を行い、さら
に所定の総符号データ量に制御するための量子化係数Q
Mにより第2の量子化回路13で量子化を行う点が異な
っているが、基本的動作は図1の前記実施例と同様であ
る。
In the embodiment shown in FIG. 1, the output of the orthogonal transformation circuit 2 is delayed by the delay circuit 12 and the second quantization circuit 13 determines the quantization weight distribution selected by the quantization coefficient QM and the edge information. It is configured to be quantized by the product of coefficients. On the other hand, in the configuration of this embodiment of FIG. 6, the output of the orthogonal transform circuit 2 is quantized by the quantized weight distribution coefficient selected by the edge information in the first quantizer circuit 7, and then further quantized. It is configured to be quantized again by the coefficient QM. In the configuration of FIG. 1, the multiplication circuit 1 multiplies the product of the quantization weight distribution coefficient selected by the edge information and the quantization coefficient QM for controlling the predetermined total code data amount.
1 is obtained in advance and is quantized at once by the second quantization circuit 13, whereas in the configuration of the present embodiment shown in FIG. Quantization coefficient Q for performing quantization with the selected quantization weight distribution coefficient and further controlling to a predetermined total code data amount
The basic operation is the same as that of the above-described embodiment of FIG. 1, although the second quantization circuit 13 performs quantization depending on M.

【0053】図6に示す構成により、第2の量子化回路
13に入力されるデータは、既にエッジ情報に基づき量
子化されたものであるため、総符号データ量を制御する
ための量子化係数QMのみで量子化すればよい。したが
って、図1に示した乗算回路11および切り換え回路1
0は不要となり回路規模を縮小の効果がある。さらに遅
延回路12で遅延されるデータは、第1の量子化回路7
で量子化されているためデータの所要ビット数は少なく
すみ、遅延回路12を構成するメモリ容量を低減させる
効果がある。
With the configuration shown in FIG. 6, since the data input to the second quantization circuit 13 has already been quantized based on the edge information, the quantization coefficient for controlling the total code data amount. It is sufficient to quantize only with QM. Therefore, the multiplication circuit 11 and the switching circuit 1 shown in FIG.
0 is not necessary and has the effect of reducing the circuit scale. The data further delayed by the delay circuit 12 is the first quantization circuit 7
Since the data is quantized by, the required number of bits of data can be reduced, and the memory capacity of the delay circuit 12 can be reduced.

【0054】一方、図1に示す構成では図6の構成と異
なり1回の量子化処理で符号化されるため、乗算回路1
1の演算精度を十分高くすることで量子化による演算誤
差の累積を防ぐ効果がある。
On the other hand, the configuration shown in FIG. 1 is different from the configuration shown in FIG.
By sufficiently increasing the calculation accuracy of 1, there is an effect of preventing the accumulation of calculation errors due to quantization.

【0055】なお、図1に示す構成では第2の量子化回
路13には、直交変換回路2で直交変換した画像データ
を遅延回路12で遅延して入力しているが、画像データ
を直交変換せずに遅延させ、さらに第2の直交変換回路
を設けて直交変換し、第2の量子化回路13に入力する
ように構成してもよい。直交変換されたデータの所要ビ
ット数(12bit 程度)は原画像の所要ビット数(8bi
t )に比較して増加してしまうため、このように構成す
ることで遅延回路12を構成するメモリ容量を低減させ
る効果がある。
In the configuration shown in FIG. 1, the image data orthogonally transformed by the orthogonal transformation circuit 2 is input to the second quantization circuit 13 after being delayed by the delay circuit 12, but the image data is orthogonally transformed. Instead of delaying, a second orthogonal transformation circuit may be provided to perform orthogonal transformation, and the result may be input to the second quantization circuit 13. The required number of bits (about 12 bits) of the orthogonally transformed data is the required number of bits of the original image (8bi
t), the memory capacity of the delay circuit 12 is reduced.

【0056】次に、図1および図6に示した多重化回路
15において、画像の符号化データおよびエッジ判別情
報、量子化係数QM等の付加情報がどのように多重化さ
れるかについて図7を用いて説明する。
Next, in the multiplexing circuit 15 shown in FIGS. 1 and 6, how the encoded data of the image and the additional information such as the edge discrimination information and the quantization coefficient QM are multiplexed will be described with reference to FIG. Will be explained.

【0057】図7は、圧縮した画像データを長さ204
8ビットのパケットに分割して伝送する際のデータ構成
である。図7の(a)はフレーム先頭のパケット、図7
の(b)は(a)に続く次のパケットである。
FIG. 7 shows compressed image data of length 204
This is a data structure when divided into 8-bit packets for transmission. 7A is a packet at the head of the frame, and FIG.
(B) is the next packet following (a).

【0058】パケットの先頭30ビットは、ブロックア
ドレス(12ビット)、スタートアドレス(11ビッ
ト)、量子化係数QM(7ビット)が伝送され、これに
続いて各ブロックごとのエッジ判別情報Wn (1ビッ
ト)、可変長符号データVLCn(長さ不定)が伝送さ
れ、パケット長を超えたデータは次のパケットに繰りこ
して伝送する。なお、Wn およびVLCn はn番目のブ
ロックのエッジ判別情報および可変長符号データであ
る。
A block address (12 bits), a start address (11 bits), and a quantized coefficient QM (7 bits) are transmitted to the first 30 bits of the packet, followed by edge discrimination information W n (for each block). 1 bit), variable length code data VLC n (length is indefinite) is transmitted, and data exceeding the packet length is transferred to the next packet. Note that W n and VLC n are edge discrimination information and variable length code data of the nth block.

【0059】ブロックアドレスは、このパケットで最初
に伝送される画像ブロックのフレーム内の位置を示す付
加情報である。図7の(a)はフレーム先頭のパケット
であるためこのブロックアドレスは“0”であり、図7
の(b)ではブロック2の可変長符号データの残りVL
2’ に続いて新たに伝送されるブロックを示す“3”
となる。
The block address is additional information indicating the position within the frame of the image block first transmitted in this packet. Since (a) of FIG. 7 is the packet at the beginning of the frame, this block address is “0”.
(B), the remaining VL of the variable-length code data of block 2
"3" indicating a block to be newly transmitted following C 2 '
Becomes

【0060】スタートアドレスは、このパケットで最初
に伝送される画像ブロックの有効データのパケット内の
開始位置を示す付加情報である。図7の(a)のパケッ
トでは、30ビット目から、W0 ,VLC0 のデータが
伝送されるためスタートアドレスは“30”であり、図
7の(b)ではブロック2の可変長符号データの残りV
LC2’ に続いて新たに32ビット目からブロック3の
3 ,VLC3 が開始されるため、スタートアドレスは
“32”となる。
The start address is additional information indicating the start position in the packet of the valid data of the image block transmitted first in this packet. In the packet of FIG. 7A, since the data of W 0 and VLC 0 are transmitted from the 30th bit, the start address is “30”, and in FIG. 7B, the variable-length code data of block 2 is transmitted. Rest V
Since W 3 and VLC 3 of the block 3 are newly started from the 32nd bit subsequent to LC 2 ′, the start address becomes “32”.

【0061】以上のようなデータ構成により伝送された
データは、復号回路より量子化係数QM,エッジ判別情
報Wn により逆量子化特性が決定され、可変長符号デー
タVLCn を復号することにより、圧縮伝送された画像
を復号することができる。
The inverse quantization characteristic of the data transmitted with the above-mentioned data structure is determined by the quantization circuit QM and the edge discrimination information W n by the decoding circuit, and the variable length code data VLC n is decoded, The compressed and transmitted image can be decoded.

【0062】また、伝送路誤り等により特定のパケット
が欠落した場合にも、パケット先頭に伝送されるスター
トアドレスの位置からブロックアドレスの示すブロック
を順次復号することができ、伝送路誤り等の影響を最小
限におさえる効果がある。
Further, even when a specific packet is lost due to a transmission path error or the like, the block indicated by the block address can be sequentially decoded from the position of the start address transmitted at the beginning of the packet, and the influence of the transmission path error or the like can be obtained. Has the effect of minimizing the

【0063】なお、図7の本例のデータ構造で示した、
ブロックアドレス、スタートアドレス、量子化係数QM
の順序およびビット数等は、これに限ることなくパケッ
ト内の予め定められた位置に多重されるものであれば、
さらに他の付加情報が多重される場合であっても本発明
の主旨に添うものである。
The data structure of this example shown in FIG.
Block address, start address, quantization coefficient QM
The order and the number of bits are not limited to this, as long as they are multiplexed at a predetermined position in the packet,
Even when other additional information is multiplexed, it is in accordance with the gist of the present invention.

【0064】また、ディジタルVTR等においては上記
伝送例のパケット内のデータ構造と同様に、特定の同期
パターンで分割される同期ブロック内にブロックアドレ
ス、スタートアドレス、量子化係数QMおよびエッジ判
別情報Wn および可変長符号データVLCn を記録する
ように構成すればよい。このように構成することで、変
速再生時にも断続的に再生される同期ブロック先頭のデ
ータからブロックアドレスおよびデータの開始位置を知
ることにより、部分的な再生画像を得ることができる。
このように本発明によれば、比較的容易に良好な変速再
生画像が得られる効果がある。
In the digital VTR or the like, the block address, start address, quantization coefficient QM, and edge discrimination information W are included in the sync block divided by a specific sync pattern, as in the data structure in the packet in the above transmission example. It may be configured to record n and variable length code data VLC n . With this configuration, it is possible to obtain a partially reproduced image by knowing the block address and the start position of the data from the data at the head of the synchronous block that is intermittently reproduced even during variable speed reproduction.
As described above, according to the present invention, there is an effect that a favorable variable speed reproduction image can be obtained relatively easily.

【0065】さらに上述した実施例では、エッジ判別情
報Wn および可変長符号データVLCn をブロック単位
で順次記録伝送するものであったが、例えば4つのブロ
ックをまとめてW1,W2,W3,W4,VLC1,VL
2,VLC3,VLC4のように記録伝送してもよい。
あるいは輝度信号Yと2種の色差信号R,Bとをまとめ
てYW1,YW2,YW3,YW4,RW1,BW1,YVL
1,YVLC2,YVLC3,YVLC4,RVLC1
BVLC1のようにまとめて記録伝送してもよい。これ
らのように複数ブロックをまとめて処理する際には、画
面上で近接したブロックが同一グループとなるように構
成し、グループ内で直交変換の直流係数を差分処理して
伝送するように構成してもよい。このようにすること
で、直流係数のレベルを隣接するブロックの相関性を利
用して低減させることができ、データの圧縮効率を高め
る効果がある。
Further, in the above-described embodiment, the edge discrimination information W n and the variable length code data VLC n are sequentially recorded and transmitted in block units. For example, four blocks are collectively W 1 , W 2 , W. 3 , W 4 , VLC 1 , VL
C 2, VLC 3, may be recorded transmission as VLC 4.
Alternatively, the luminance signal Y and the two types of color difference signals R and B are combined into YW 1 , YW 2 , YW 3 , YW 4 , RW 1 , BW 1 , and YVL.
C 1 , YVLC 2 , YVLC 3 , YVLC 4 , RVLC 1 ,
Recording and transmission may be performed collectively as in BVLC 1 . When processing multiple blocks together as described above, configure the blocks that are close to each other on the screen to be in the same group, and perform the differential processing of the DC coefficient of orthogonal transformation within the group and transmit it. May be. By doing so, the level of the DC coefficient can be reduced by utilizing the correlation between the adjacent blocks, which has the effect of increasing the data compression efficiency.

【0066】[0066]

【発明の効果】以上のように本発明によれば、入力画像
のエッジ部および平坦部に適した量子化重み分布で量子
化されることにより、文字周辺などに発生しやすい歪み
を低減し、より高画質な記録伝送が可能となるという効
果がある。
As described above, according to the present invention, the quantization weight distribution suitable for the edge portion and the flat portion of the input image is used to reduce the distortion that is likely to occur around the characters, There is an effect that it becomes possible to perform recording transmission with higher image quality.

【0067】また、量子化重み分布の切り換えによるデ
ータの増加を含み、かつフィールドあるいはフレーム単
位で所定の総符号データ量となる量子化係数(QM)を
算出することにより、入力画像1フレームあるいは1フ
ィールドの総符号データ量を常に一定の値以下におさえ
ることができ、動画像を一定の伝送レートで伝送可能と
いう効果がある。またディジタルVTR等においては、
入力画像を1フレームあるいは1フィールド単位で常に
所定の記録位置に記録することができ、変速再生時の画
質の向上、および、フィールドあるいはフレーム単位で
の編集を可能とする効果がある。
Further, by calculating a quantization coefficient (QM) including an increase in data due to switching of the quantization weight distribution and having a predetermined total code data amount in field or frame units, one frame of the input image or 1 The total coded data amount of the field can always be kept below a certain value, and moving images can be transmitted at a certain transmission rate. In digital VTRs, etc.
The input image can always be recorded in a predetermined recording position in units of one frame or one field, and there is an effect that the image quality during variable speed reproduction is improved and editing can be performed in units of fields or frames.

【0068】さらに、この量子化係数QMは1フレーム
あるいは1フィールド毎に、1フレームあるいは1フィ
ールドの総符号データ量を目標値に制御するよう決定さ
れるため、1画面内で量子化係数QMが変化することは
なく、画面内をほぼ一定の量子化特性で量子化でき、局
所的な劣化を防ぐ効果がある。
Further, since this quantized coefficient QM is determined to control the total coded data amount of one frame or one field to the target value for each one frame or one field, the quantized coefficient QM is within one screen. It does not change, and the inside of the screen can be quantized with a substantially constant quantization characteristic, which has the effect of preventing local deterioration.

【0069】さらに、可変長符号化出力に、エッジ部判
定情報と量子化係数(QM)とを多重して記録あるいは
伝送することにより、復号時に伝送されたブロックがエ
ッジ部と判断されたブロックであるか否か、および符号
化時の量子化係数の値を誤りなく知ることができ、復号
処理を簡素化できる効果がある。また量子化係数(Q
M)は、少なくともフィールドあるいはフレーム毎に多
重して記録伝送すればよく、エッジ部判定情報はブロッ
ク毎に1ないし2ビットの情報を伝送するだけでよいた
め、記録伝送の効率を高める効果がある。
Further, the block transmitted at the time of decoding is the block determined to be the edge portion by multiplexing or recording the edge determination information and the quantized coefficient (QM) on the variable length coded output and recording or transmitting the multiplexed information. Whether or not there is, and the value of the quantized coefficient at the time of encoding can be known without error, and the decoding process can be simplified. In addition, the quantization coefficient (Q
M) may be multiplexed and recorded and transmitted at least in each field or frame, and the edge determination information may only need to transmit 1 or 2 bits of information for each block, which has the effect of improving the efficiency of recording and transmission. .

【0070】さらに、量子化係数QMを圧縮された符号
データを記録伝送する際の最小単位となるパケットある
いは同期ブロック毎に多重することにより、量子化係数
QMに伝送路誤りが発生した場合にも復号画像への影響
を最小限にすることができる。
Further, by multiplexing the quantized coefficient QM for each packet or synchronization block, which is the minimum unit for recording and transmitting compressed code data, even when a channel error occurs in the quantized coefficient QM. The influence on the decoded image can be minimized.

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

【図1】本発明の1実施例に係る画像データ圧縮装置を
示すブロック図である。
FIG. 1 is a block diagram showing an image data compression device according to an embodiment of the present invention.

【図2】図1に示した第1,第2の重み分布テーブル
4,5の量子化重み分布係数の1例を示す説明図であ
る。
FIG. 2 is an explanatory diagram showing an example of quantized weight distribution coefficients of first and second weight distribution tables 4 and 5 shown in FIG.

【図3】図1に示した量子化回路7および13からジグ
ザグスキャンによって出力されるデータの出力順序を示
す説明図である。
FIG. 3 is an explanatory diagram showing an output order of data output by zigzag scanning from the quantization circuits 7 and 13 shown in FIG.

【図4】図1に示した係数算出回路8の具体的な構成の
1例を示す構成図である。
4 is a configuration diagram showing an example of a specific configuration of a coefficient calculation circuit 8 shown in FIG.

【図5】図4に示した係数算出回路8の動作を説明する
ためのグラフ図である。
5 is a graph diagram for explaining the operation of the coefficient calculation circuit 8 shown in FIG.

【図6】本発明の他の実施例に係る画像データ圧縮装置
を示すブロック図である。
FIG. 6 is a block diagram showing an image data compression device according to another embodiment of the present invention.

【図7】図1および図6に示した多重化回路15によっ
て伝送するパケット内のデータ構成の1例を示す説明図
である。
7 is an explanatory diagram showing an example of a data configuration in a packet transmitted by the multiplexing circuit 15 shown in FIGS. 1 and 6. FIG.

【符号の説明】 1 ブロック化回路 2 直交変換回路 3 エッジ判別回路 4 第1の量子化重み分布テーブル 5 第2の量子化重み分布テーブル 6 切り換え回路 7 第1の量子化回路 8 係数算出回路 9 遅延回路 10 切り換え回路 11 乗算回路 12 遅延回路 13 第2の量子化回路 14 可変長符号化回路 15 多重化回路 17 データ量算出回路 18 量子化係数算出回路[Description of Codes] 1 Blocking circuit 2 Orthogonal transformation circuit 3 Edge discrimination circuit 4 First quantization weight distribution table 5 Second quantization weight distribution table 6 Switching circuit 7 First quantization circuit 8 Coefficient calculation circuit 9 Delay circuit 10 Switching circuit 11 Multiplication circuit 12 Delay circuit 13 Second quantization circuit 14 Variable length coding circuit 15 Multiplexing circuit 17 Data amount calculation circuit 18 Quantization coefficient calculation circuit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 吉澤 和彦 神奈川県横浜市戸塚区吉田町292番地 株 式会社日立製作所映像メディア研究所内 (72)発明者 吉越 美代子 神奈川県横浜市戸塚区吉田町292番地 株 式会社日立製作所映像メディア研究所内 (72)発明者 綿谷 由純 神奈川県横浜市戸塚区吉田町292番地 株 式会社日立製作所映像メディア研究所内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Kazuhiko Yoshizawa, 292 Yoshida-cho, Totsuka-ku, Yokohama-shi, Kanagawa Inside the Hitachi Media Visual Media Laboratory (72) Inventor, Miyoko Yoshikoshi, 292 Yoshida-cho, Totsuka-ku, Yokohama, Kanagawa Hitachi, Ltd. Visual Media Research Laboratory (72) Inventor, Yuzumi Wataya, 292 Yoshida-cho, Totsuka-ku, Yokohama, Kanagawa Prefecture

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 入力画像データを直交変換と可変長符号
化に基づき処理する画像データ処理装置において、 上記入力された画像データを所定のブロックに分割する
手段と、 上記ブロックに分割された画像データを直交変換して周
波数データに変換する手段と、 上記周波数データに基づきエッジ部を判別し判別情報を
生成する手段と、 上記判別情報に基づいて量子化重み分布を切り換えて上
記周波数データを量子化する第1の量子化手段と、 上記第1の量子化手段で量子化したデータからフレーム
あるいはフィールド毎に所定のデータ量に圧縮するため
の量子化係数(QM)を生成する手段と、 上記周波数データおよび上記判別情報を所定の期間遅延
する手段と、 上記遅延した周波数データを上記遅延した判別情報と量
子化係数(QM)に基づいて量子化する第2の量子化手
段と、 上記第2の量子化手段で量子化したデータを符号化して
符号データを生成する手段と、 上記符号データに上記判別情報と量子化係数(QM)と
を多重して出力する手段と、 を備えたことを特徴とする画像データ処理装置。
1. An image data processing device for processing input image data based on orthogonal transform and variable length coding, means for dividing the input image data into predetermined blocks, and image data divided into the blocks. Orthogonally transforming the frequency data into frequency data, determining the edge portion based on the frequency data and generating discrimination information, and switching the quantization weight distribution based on the discrimination information to quantize the frequency data. First quantizing means, means for generating a quantized coefficient (QM) for compressing data quantized by the first quantizing means to a predetermined data amount for each frame or field, and the frequency Means for delaying the data and the discrimination information for a predetermined period, and the delayed discrimination data and the quantized coefficient (QM) for the delayed frequency data. Second quantizing means for quantizing based on the discrimination data; means for coding the data quantized by the second quantizing means to generate code data; and the discrimination information and the quantization coefficient (QM) in the code data. ) And a means for outputting the multiplexed data, and an image data processing apparatus.
【請求項2】 請求項1記載において、上記周波数デー
タに基づきエッジ部を判別し判別情報を生成する手段
が、 上記周波数データの交流係数の絶対値を生成する手段
と、 上記絶対値から所定のレベル以上の係数を抽出する手段
と、 上記抽出した係数をブロック毎に加算する手段と、 上記加算値に基づき判別情報を生成する手段と、 を含む構成であることを特徴とする画像データ処理装
置。
2. The means according to claim 1, wherein the means for discriminating an edge portion based on the frequency data and generating discrimination information is means for generating an absolute value of an AC coefficient of the frequency data, and a predetermined value based on the absolute value. An image data processing apparatus characterized by including a means for extracting a coefficient equal to or higher than a level, a means for adding the extracted coefficients for each block, and a means for generating discrimination information based on the added value. .
【請求項3】 請求項1記載において、上記第1の量子
化手段で量子化したデータからフレームあるいはフィー
ルド毎に所定のデータ量に圧縮するための量子化係数
(QM)を生成する手段が、 上記第1の量子化手段で量子化したデータを少なくとも
2種の異なるビットシフト量でビットシフトし、それぞ
れ符号データ量を算出する手段と、 上記ビットシフト量から符号データ量が目標とするデー
タ量を超える最大のビットシフト量を求める手段と、 上記ビットシフト量から符号データ量が目標とするデー
タ量を超えない最小のビットシフト量を求める手段と、 上記最大のビットシフト量と上記最小のビットシフト量
とそれぞれの符号データ量と目標とするデータ量に基づ
き量子化係数(QM)を生成する手段と、 を含む構成であることを特徴とする画像データ処理装
置。
3. The means for generating a quantized coefficient (QM) for compressing a predetermined amount of data for each frame or field from the data quantized by the first quantizing means according to claim 1. Means for bit-shifting the data quantized by the first quantizing means with at least two different bit shift amounts, and calculating the respective code data amounts; and a data amount that is the target of the code data amount from the bit shift amount. Means for obtaining the maximum bit shift amount exceeding the above, a means for obtaining the minimum bit shift amount from which the code data amount does not exceed the target data amount from the above bit shift amount, the above maximum bit shift amount and the above minimum bit amount And a means for generating a quantized coefficient (QM) based on the shift amount, each coded data amount, and the target data amount. Image data processing apparatus according to symptoms.
【請求項4】 請求項1記載において、上記符号データ
に上記判別情報と量子化係数(QM)とを多重して出力
する手段が、 上記符号データを記録伝送の所定の長さを有する最小単
位に分割する手段と、 上記符号データの記録伝送の最小単位毎に量子化係数
(QM)を多重する手段と、 上記符号データの記録伝送の最小単位毎にこの最小単位
ではじめに記録伝送するブロックのフレーム内アドレス
を多重する手段と、 上記符号データの記録伝送の最小単位毎にこの最小単位
ではじめに記録伝送するブロックの符号データの開始位
置を多重する手段と、 を含む構成であることを特徴とする画像データ処理装
置。
4. The minimum unit according to claim 1, wherein the means for multiplexing the discrimination information and the quantization coefficient (QM) on the code data and outputting the code data has a predetermined length for recording and transmitting the code data. Means for multiplexing the quantized coefficient (QM) for each minimum unit of recording / transmission of the code data, and for each minimum unit of recording / transmission of the code data of the block first recorded / transmitted in this minimum unit. And a means for multiplexing the start position of the code data of the block which is first recorded and transmitted in the minimum unit for each minimum unit of the record transmission of the code data. Image data processing device.
JP515493A 1993-01-14 1993-01-14 Image data processor Pending JPH06217279A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP515493A JPH06217279A (en) 1993-01-14 1993-01-14 Image data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP515493A JPH06217279A (en) 1993-01-14 1993-01-14 Image data processor

Publications (1)

Publication Number Publication Date
JPH06217279A true JPH06217279A (en) 1994-08-05

Family

ID=11603352

Family Applications (1)

Application Number Title Priority Date Filing Date
JP515493A Pending JPH06217279A (en) 1993-01-14 1993-01-14 Image data processor

Country Status (1)

Country Link
JP (1) JPH06217279A (en)

Similar Documents

Publication Publication Date Title
CA2011034C (en) A highly efficient coding apparatus
EP0987899B1 (en) Adaptive variable-length coding method for video data
EP0550012B1 (en) Apparatus for compression encoding video signals
JPH0583696A (en) Picture encoding device
JPH05219385A (en) Picture compression expansion method and device
JPWO2002080574A1 (en) Image processing apparatus, image processing method, image processing program, and recording medium
JP2004528791A (en) Inter-frame encoding method and apparatus
JP3271098B2 (en) Digital image signal decoding apparatus and method
JPH07236142A (en) Highly efficient encoding and decoding devices
JPH06217279A (en) Image data processor
JP3190164B2 (en) Code amount estimation device
JP3127629B2 (en) Error correction device for digital image signal
JPH05168001A (en) Image coder
JPH07288809A (en) Coder for digital picture signal
JPH04215385A (en) Method and device for encoding/decoding image data
JPH10173933A (en) Still image compressor at prescribed compression rate and its method
JPH0514875A (en) Image encoder
JPH0795581A (en) Reception/reproduction device for digital picture signal
JPH02158285A (en) Compression encoder and extension reproducing device for image signal
JP2003116131A (en) Image coder, image coding method, and image decoder and image decoding method