JPH0595542A - Dynamic picture coder-decoder - Google Patents

Dynamic picture coder-decoder

Info

Publication number
JPH0595542A
JPH0595542A JP27881991A JP27881991A JPH0595542A JP H0595542 A JPH0595542 A JP H0595542A JP 27881991 A JP27881991 A JP 27881991A JP 27881991 A JP27881991 A JP 27881991A JP H0595542 A JPH0595542 A JP H0595542A
Authority
JP
Japan
Prior art keywords
coding
circuit
block
value
predictive
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
JP27881991A
Other languages
Japanese (ja)
Inventor
Yoichi Yagasaki
陽一 矢ケ崎
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP27881991A priority Critical patent/JPH0595542A/en
Priority to US07/951,111 priority patent/US5475501A/en
Priority to GB9220429A priority patent/GB2260239A/en
Priority to EP19920116736 priority patent/EP0544080A3/en
Priority to KR1019920017873A priority patent/KR930007278A/en
Publication of JPH0595542A publication Critical patent/JPH0595542A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/004Predictors, e.g. intraframe, interframe coding

Abstract

PURPOSE:To provide the transfer picture with high picture quality by a small amount of information by performing proper quantization while trasferring the predictive value and the quantization width of the block to be predictive- coded or the predictive value and the dynamic range of the block. CONSTITUTION:A coder 2A consists of a difference data generation circuit 3, a changeover circuit 4, a discrete cosine conversion processing part 5, and a predictive coding processing part 6. The picture is divided into unit blocks composed of a plurarity of picture elements. In performing the coding for each unit block, the proper changeover of the discrete cosine conversion encoding and the predictive coding is performed. Further, the system of the variable length coding is changed according to the changeover of the discrete cosine conversion coding/predictive coding. In the case of discrete cosine conversion coding, the two-dimensional variable length coding is performed on the combination between the zero run and the picture element value. In the case of the predictive coding, the two-dimensional variable length coding is performed on the combination of the differential value between the zero run and the picture element value.

Description

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

【0001】[0001]

【目次】以下の順序で本発明を説明する。 産業上の利用分野 従来の技術 発明が解決しようとする課題 課題を解決するための手段(図1及び図2) 作用(図17) 実施例(図1〜図17) (1)全体構成(図1及び図2) (2)符号化装置の構成(図1) (2−1)DCT処理部5の構成(図1) (2−2)予測符号化処理部6の処理(図3及び図4) (2−3−1)ブロツク内の画像信号の平均値を予測値
とする方法(図5〜図7) (2−3−2)適応型ダイナミツクレンジ符号化を用い
て予測値を求める方法(図8及び図9) (2−3−3−1)エツジマツチング量子化方法(1)
(図10〜図12) (2−3−3−2)エツジマツチング量子化方法(2)
(図13) (2−4)DPCM回路25の処理 (2−4−1)DPCM方式(1)(図14) (2−4−2)DPCM方式(2)(図14) (2−5)DCT/予測符号化判定回路7の処理 (2−5−1)空間領域での判定 (2−5−2)DCT変換出力領域での判定(図15) (2−6)VLC回路10の処理 (2−6−1)VLC方式(1) (2−6−2)VLC方式(2)(図16) (3)復号化装置の構成(図2) (4)実施例の動作(図16及び図17) (5)実施例の効果 (6)他の実施例 発明の効果
[Table of Contents] The present invention will be described in the following order. Field of Industrial Application Conventional Technology Problems to be Solved by the Invention Means for Solving the Problems (FIGS. 1 and 2) Action (FIG. 17) Example (FIGS. 1 to 17) (1) Overall configuration (FIG. 1 and FIG. 2) (2) Configuration of Encoding Device (FIG. 1) (2-1) Configuration of DCT Processing Unit 5 (FIG. 1) (2-2) Processing of Predictive Encoding Processing Unit 6 (FIG. 3 and FIG. 4) (2-3-1) Method of using average value of image signal in block as prediction value (FIGS. 5 to 7) (2-3-2) Prediction value using adaptive dynamic range coding Method for obtaining (FIGS. 8 and 9) (2-3-3-1) Edge matching quantization method (1)
(FIGS. 10 to 12) (2-3-3-2) Edge matching quantization method (2)
(FIG. 13) (2-4) Processing of DPCM circuit 25 (2-4-1) DPCM method (1) (FIG. 14) (2-4-2) DPCM method (2) (FIG. 14) (2-5 ) Processing of DCT / prediction coding determination circuit 7 (2-5-1) Determination in spatial domain (2-5-2) Determination in DCT conversion output domain (FIG. 15) (2-6) VLC circuit 10 Processing (2-6-1) VLC system (1) (2-6-2) VLC system (2) (FIG. 16) (3) Configuration of decoding device (FIG. 2) (4) Operation of embodiment (FIG. 16 and FIG. 17) (5) Effect of the embodiment (6) Other embodiment Effect of the invention

【0002】[0002]

【産業上の利用分野】本発明は、動画像を高能率符号化
して伝送する動画像符号化装置に適用して好適なもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is suitable for application to a moving picture coding apparatus that codes a moving picture with high efficiency and transmits the moving picture.

【0003】[0003]

【従来の技術】従来、例えばテレビ会議システム、テレ
ビ電話システムのように動画像を遠隔地に伝送する映像
信号伝送システムにおいては、伝送路を効率よく利用す
るため、映像信号をフレーム間又はフレーム内符号化し
て有為情報の伝送効率を高めるようになされている。こ
のような符号化データを高能率符号化する符号化方式と
して代表的なものに2次元デイスクリートコサイン変換
DCT(Discrete Cosine Transform )方式がある。
2. Description of the Related Art Conventionally, in a video signal transmission system for transmitting a moving image to a remote place such as a video conference system or a video telephone system, in order to efficiently use a transmission line, the video signal is transmitted between frames or within a frame. It is designed to enhance the transmission efficiency of important information by encoding. A typical two-dimensional Discrete Cosine Transform (DCT) system is a typical coding system for highly efficient coding of such coded data.

【0004】このデイスクリートコサイン変換方式は、
画像信号のもつ2次元相関性を利用してある特定の周波
数成分に信号電力を集中させ、この集中分布した係数の
みを符号化することにより情報量を圧縮するものであ
る。例えば絵柄が平坦で画像信号の自己相関性が高い部
分ではDCT係数の分布は低周波数成分へ集中し、この
場合には低域に集中分布した係数のみを符号化すること
で情報量を圧縮することができるようになされている。
This Discrete Cosine Transform method is
The amount of information is compressed by concentrating signal power on a specific frequency component using the two-dimensional correlation of an image signal and encoding only the concentrated distribution coefficient. For example, the distribution of DCT coefficients concentrates on low-frequency components in a portion where the pattern is flat and the autocorrelation of the image signal is high. In this case, the amount of information is compressed by encoding only the coefficients distributed in the low frequency range. Is made possible.

【0005】一方エツジが多い絵柄では、エツジの不連
続点において係数が低周波から高周波数成分まで広く分
散して発生する。この場合エツジの様に画像信号の不連
続点をDCT係数で精度良く表すためには、非常に多く
の係数を必要とするため、符号化効率が落ちることにな
る。このとき画像の高圧縮符号化のために係数の量子化
特性を粗くしたり、高周波数成分の係数を切り捨てたり
すると、画像信号の劣化が目立つようになる。例えば、
視覚的にリンギングが目立つようになる。
On the other hand, in a pattern with many edges, the coefficients are widely dispersed from low frequency components to high frequency components at the discontinuity points of the edges. In this case, in order to accurately represent the discontinuous point of the image signal with the DCT coefficient like an edge, a very large number of coefficients are required, so that the coding efficiency is lowered. At this time, if the quantization characteristic of the coefficient is roughened for high compression coding of the image or the coefficient of the high frequency component is discarded, the deterioration of the image signal becomes noticeable. For example,
The ringing becomes noticeable visually.

【0006】これに対して動画像の符号化方式として予
測符号化方式があるが、この予測符号化方式は、相関が
ある絵柄については、比較的高能率で伝送画像を符号化
することができるが、相関が少ない場合には、情報量が
増加するため伝送効率が低下するという問題がある。そ
こで伝送画像の符号化方式をブロツク単位で切換えるこ
とにより、伝送効率を高めることが提案されている。
On the other hand, there is a predictive coding method as a moving picture coding method. With this predictive coding method, a transmission image can be coded with relatively high efficiency for a correlated pattern. However, when the correlation is small, there is a problem that the amount of information increases and the transmission efficiency decreases. Therefore, it has been proposed to improve the transmission efficiency by switching the encoding method of the transmission image in block units.

【0007】[0007]

【発明が解決しようとする課題】ところが伝送画像をブ
ロツク単位で予測符号化しようとすると、ブロツク歪が
目立つという問題があつた。ここでブロツク歪とは、画
像が符号化の結果、部分的にブロツク毎のモザイク状に
見える現象をいう。
However, when trying to predictably code a transmission image in block units, there is a problem that block distortion is conspicuous. Here, the block distortion means a phenomenon that an image partially looks like a mosaic for each block as a result of encoding.

【0008】これは予測符号化が画像信号の振幅だけの
冗長性を圧縮するためであり、空間周波数領域まで圧縮
するデイスクリートコサイン変換方式に比べて、圧縮率
を高くするとブロツク歪が発生しやすいためである。こ
のようにブロツク単位でデイスクリートコサイン変換方
式と予測符号化方式とを切替えて符号化する場合には、
単純に符号化効率の良い方に切り換えて画像を符号化し
て伝送すると、符号化効率は上がるが、復号画像のブロ
ツク歪みによる画像の劣化が発生するという問題があつ
た。
This is because the predictive coding compresses the redundancy of only the amplitude of the image signal, and block distortion is likely to occur when the compression rate is increased as compared with the discrete cosine transform method which compresses up to the spatial frequency domain. This is because. In this way, when switching between the discrete cosine transform method and the predictive coding method in block units,
When the image is encoded and transmitted by simply switching to the one having higher encoding efficiency, the encoding efficiency is improved, but there is a problem that the image is deteriorated due to block distortion of the decoded image.

【0009】本発明は以上の点を考慮してなされたもの
で、少ない情報量でかつ高画質の伝送画像を得ることが
できる動画像符号化装置を提案しようとするものであ
る。
The present invention has been made in consideration of the above points, and an object thereof is to propose a moving picture coding apparatus capable of obtaining a high quality transmission image with a small amount of information.

【0010】[0010]

【課題を解決するための手段】かかる課題を解決するた
め第1の発明においては、画像を複数の画素に対応する
単位ブロツクに分割し、当該画素の画素データをフレー
ム内符号化又はフレーム間符号化して伝送する動画像符
号化復号化装置1において、単位ブロツクに応じて、当
該単位ブロツクの画素データをデイスクリートコサイン
変換符号化S21又は予測符号化S7すると共に、単位
ブロツクのデイスクリートコサイン変換符号化S21又
は予測符号化の切り換えに応じて切換情報S5を伝送
し、当該画素データをデイスクリートコサイン変換符号
化する場合には、画素データのゼロ値の長さと画素値と
の組み合わせについて2次元可変長符号化して伝送し又
は復号し、当該画素データを予測符号化する場合には、
ゼロ値の長さと画素値の差分値との組み合わせについて
2次元可変長符号化して伝送し又は復号するようにす
る。
In order to solve such a problem, in the first invention, an image is divided into unit blocks corresponding to a plurality of pixels, and the pixel data of the pixel is intra-frame coded or inter-frame coded. In the moving picture coding / decoding device 1 for converting and transmitting, the pixel data of the unit block is discretized cosine transform coded S21 or predictive coding S7 according to the unit block, and the discrete cosine transform code of the unit block is sent. In the case where the switching information S5 is transmitted in response to the switching of the encoding S21 or the predictive encoding and the pixel data is discrete cosine transform encoded, the two-dimensional variable of the combination of the zero value length of the pixel data and the pixel value is performed. In the case of long-coded transmission or decoding and predictive coding of the pixel data,
A combination of the length of the zero value and the difference value of the pixel values is two-dimensionally variable length coded for transmission or decoding.

【0011】また第2の発明においては、単位ブロツク
内の画素情報に不連続点がある場合には、単位ブロツク
の画素データをデイスクリートコサイン変換符号化に代
えて予測符号化して伝送するようにする。
In the second aspect of the invention, when there is a discontinuity in the pixel information in the unit block, the pixel data of the unit block is predictively encoded and transmitted instead of the discrete cosine transform encoding. To do.

【0012】[0012]

【作用】1枚の画像をブロツクに分割し、ブロツク単位
で符号化する場合に、デイスクリートコサイン変換符号
化と予測符号化とを絵柄の性質に応じて切換え、ブロツ
ク単位の予測符号化により生ずるブロツク歪み(ブロツ
ク間の不連続性)を軽減させるために、予測符号化する
ブロツクではブロツクの予測値と量子化幅、又はブロツ
クの予測値とダイナミツクレンジとを伝送して適応量子
化することにより、復号化装置では、切替え情報とブロ
ツクの予測値と量子化幅、又はブロツクの予測値とダイ
ナミツクレンジとを用いて画像を復号して高画質の画像
をうることができる。
When one image is divided into blocks and is coded in block units, the discrete cosine transform coding and the predictive coding are switched according to the nature of the pattern, and the predictive coding in the block unit occurs. In order to reduce block distortion (discontinuity between blocks), in the block for predictive coding, the block prediction value and the quantization width, or the block prediction value and the dynamic range are transmitted to perform adaptive quantization. As a result, the decoding apparatus can obtain a high-quality image by decoding the image using the switching information, the block prediction value and the quantization width, or the block prediction value and the dynamic range.

【0013】[0013]

【実施例】以下図面について、本発明の一実施例を詳述
する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail with reference to the drawings.

【0014】(1)全体構成 図1及び図2において1は全体として画像データ伝送シ
ステムを示し、符号化装置2Aは画像データをフレーム
(フイールド)内又はフレーム(フイールド)間符号化
し、符号化後の伝送画像を各ブロツク毎にデイスクリー
トコサイン変換符号化処理又は予測符号化処理を適宜切
り換えて伝送するようになされている。
(1) Overall Structure In FIGS. 1 and 2, reference numeral 1 denotes an image data transmission system as a whole, and an encoding device 2A encodes image data within a frame (field) or between frames (field) and after encoding. The transmission image is transmitted by appropriately switching the discrete cosine transform coding process or the predictive coding process for each block.

【0015】符号化装置2Aは、符号化する領域毎にこ
の切り換え情報をデイスクリートコサイン変換符号化又
は予測符号化の切り替え情報フラグに付加するか、又は
符号化する領域の場合分けを示す情報フラグを拡張して
予測符号化のモードを設けるようになされている。また
復号化装置2Bは、符号化された画像データと共に伝送
されるこれらの情報フラグによつて伝送画像を復号する
ようになされている。
The coding device 2A adds this switching information to the switching information flag for discrete cosine transform coding or predictive coding for each area to be coded, or an information flag indicating the case classification of the area to be coded. Is extended to provide a mode of predictive coding. Further, the decoding device 2B is adapted to decode the transmission image by using these information flags transmitted together with the encoded image data.

【0016】(2)符号化装置の構成 符号化装置2Aは、8×8画素の画像データを入力デイ
ジタルデータS1として入力すると、差データ生成回路
3及び又は切換回路4を介してデイスクリートコサイン
変換処理部5、予測符号化処理部6及びDCT/予測符
号化判定回路7にそれぞれ供給するようになされてい
る。差データ生成回路3は、入力デイジタルデータS1
と予測回路8から入力される予測データS2との差分を
差分データS3として切換回路4に出力する。
(2) Configuration of Encoding Device The encoding device 2A receives the image data of 8 × 8 pixels as the input digital data S1 and performs the discrete cosine transform via the difference data generating circuit 3 and / or the switching circuit 4. The processing unit 5, the predictive coding processing unit 6, and the DCT / predictive coding determination circuit 7 are supplied to the respective units. The difference data generation circuit 3 uses the input digital data S1.
And the difference between the prediction data S2 input from the prediction circuit 8 and the difference data S3 are output to the switching circuit 4.

【0017】切換回路4は、予測回路8から入力される
フレーム間/フレーム内符号化切換信号S4により、フ
レーム内符号化して伝送した方が少ないデータ量で伝送
できる場合には入力デイジタルデータS1をそのまま出
力し、またフレーム間符号化して伝送した方が少ないデ
ータ量で伝送できる場合には差分データS3を出力する
ようになされている。
The switching circuit 4 uses the inter-frame / intra-frame coding switching signal S4 input from the prediction circuit 8 to input the input digital data S1 when the intra-frame coded data can be transmitted with a smaller data amount. The difference data S3 is output when it can be output as it is, or when it can be transmitted with a smaller data amount by inter-frame encoding and transmission.

【0018】ここでDCT処理部5は、入力画像の2次
元相関を利用して、入力画像データS1又は差分データ
S3を微小ブロツク単位でデイスクリートコサイン変換
し、その結果得られる変換データを所定の量子化サイズ
で量子化すると切換回路9を介して可変長符号化回路1
0に出力するようになされている。
Here, the DCT processing section 5 utilizes the two-dimensional correlation of the input image to perform the discrete cosine transform of the input image data S1 or the difference data S3 in the unit of a minute block, and the transformed data obtained as a result is subjected to a predetermined conversion. When quantized with the quantization size, the variable length coding circuit 1 is passed through the switching circuit 9.
It is designed to output to 0.

【0019】また予測符号化処理部6は、ブロツク内の
画像信号を予測符号化すると、その予測値と現画像信号
との差分を求め、当該差分信号を所定の量子化サイズで
量子化して切換回路9を介して可変長符号化回路10に
出力するようになされている。DCT/予測符号化判定
回路7は、画像信号を符号化する場合に、ブロツク単位
でデイスクリートコサイン変換するか、ブロツク単位で
予測符号化するかを判別し、判別結果をDCT/予測符
号化切換信号S5として出力するようになされている。
Further, when the predictive coding unit 6 predictively codes the image signal in the block, the predictive coding unit 6 obtains the difference between the predicted value and the current image signal, quantizes the difference signal with a predetermined quantization size, and switches it. It is adapted to output to the variable length coding circuit 10 via the circuit 9. The DCT / predictive coding determination circuit 7 determines whether to perform discrete cosine conversion in block units or predictive coding in block units when coding an image signal, and the determination result is switched to DCT / predictive coding. The signal S5 is output.

【0020】これにより切換回路9は、デイスクリート
コサイン変換データを出力すべき場合にはDCT処理部
5から出力される変換データS6を可変長符号化回路1
0に出力し、予測符号化データを出力すべき場合には予
測符号化処理部6から出力される変換データS7を可変
長符号化回路10に出力するようになされている。
As a result, the switching circuit 9 outputs the conversion data S6 output from the DCT processing unit 5 when the discrete cosine conversion data is to be output.
When the predicted coded data is to be output to 0, the converted data S7 output from the predictive coding processing unit 6 is output to the variable length coding circuit 10.

【0021】ここで可変長符号化回路10は、統計的性
質の異なるDCT変換データS6と予測符号化変換デー
タS7に対応し、DCT/予測符号化切換信号S5によ
り切り換え制御される変換テーブルを有し、当該変換テ
ーブルによりさらに符号化効率を向上させ、伝送データ
S8として出力するようになされている。
Here, the variable length coding circuit 10 has a conversion table corresponding to the DCT conversion data S6 and the predictive coding conversion data S7 having different statistical properties and switching controlled by the DCT / prediction coding switching signal S5. Then, the conversion efficiency is further improved by the conversion table and output as the transmission data S8.

【0022】またバツフア回路11は、伝送データS8
を一端メモリに格納した後、所定の順序で出力すると共
に、メモリに残留している残留データが適性な残量にな
るように量子化サイズを制御する量子化幅制御信号を出
力するようになされている。ここで符号化装置2Aは、
逆量子化回路12及び逆DCT回路13を順次介してD
CT処理部5から入力される量子化データS10を代表
値に逆量子化すると共に、さらにデイスクリートコサイ
ン変換と逆の変換処理により局部復号画像データS11
に変換して出力するようになされている。
The buffer circuit 11 also transmits the transmission data S8.
After it is stored in the memory, it is output in a predetermined order, and a quantization width control signal for controlling the quantization size is output so that the residual data remaining in the memory has an appropriate remaining amount. ing. Here, the encoding device 2A is
D through the inverse quantization circuit 12 and the inverse DCT circuit 13 in sequence
The quantized data S10 input from the CT processing unit 5 is inversely quantized into a representative value, and the locally decoded image data S11 is further subjected to the inverse transform process of the discrete cosine transform.
It is designed to be converted to and output.

【0023】また符号化装置2Aは、逆量子化回路14
及び逆予測符号化回路15を順次介して予測符号化処理
部6から入力される量子化データS12を代表値に逆量
子化すると共に、さらに予測符号化処理と逆の変換処理
により復号画像データS13に変換して出力するように
なされている。切換回路16は、DCT/予測符号化切
換信号S5に基づいて入力画像がDCT変換されて伝送
される場合には復号画像データS11を出力し、また入
力画像が予測符号化処理されて伝送される場合には復号
画像データS13に変換して加算回路17に出力するよ
うになされている。
Further, the encoding device 2A includes an inverse quantization circuit 14
Then, the quantized data S12 input from the predictive encoding processing unit 6 through the inverse predictive encoding circuit 15 is inversely quantized into a representative value, and further the decoded image data S13 is obtained by the conversion processing opposite to the predictive encoding processing. It is designed to be converted to and output. The switching circuit 16 outputs the decoded image data S11 when the input image is DCT-converted and transmitted based on the DCT / predictive coding switching signal S5, and the input image is predictively coded and transmitted. In such a case, the decoded image data S13 is converted and output to the addition circuit 17.

【0024】ここで加算回路17は、切換回路18から
入力される画像データS14と復号画像データS11又
はS13を加算して局部復号データS15を予測回路8
に供給するようになされている。ここで予測回路8は、
局部復号データS15に基づいて予測データS2を差分
データ生成回路3及び切換回路18に供給すると共に、
局部復号データS15に基づいて動きベクトル/予測モ
ード判別信号S16を可変長符号化回路10に出力する
ようになされている。
Here, the adder circuit 17 adds the image data S14 input from the switching circuit 18 and the decoded image data S11 or S13 to obtain the locally decoded data S15 as the prediction circuit 8.
It is designed to be supplied to. Here, the prediction circuit 8
The prediction data S2 is supplied to the difference data generation circuit 3 and the switching circuit 18 based on the locally decoded data S15, and
The motion vector / prediction mode determination signal S16 is output to the variable length coding circuit 10 based on the locally decoded data S15.

【0025】(2−1)DCT処理部5の構成 DCT処理部5は、DCT回路20、量子化回路21及
び遅延回路22を有しており、DCT回路20は入力画
像の2次元相関を利用して、入力デイジタルデータS1
又は差分データS3をデイスクリートコサイン変換デー
タS21に変換し、量子化回路21に出力するようにな
されている(電子情報通信学会論文誌1987年/1Vol.J70-
B No.1 p96-104「HDTV信号のフレーム内/フレーム
間適応外挿内挿予測符号化」及び特願平2−41024
7号)。
(2-1) Configuration of DCT Processing Unit 5 The DCT processing unit 5 has a DCT circuit 20, a quantization circuit 21 and a delay circuit 22, and the DCT circuit 20 uses the two-dimensional correlation of the input image. And input digital data S1
Alternatively, the difference data S3 is converted into the discrete cosine conversion data S21 and output to the quantization circuit 21 (Journal of the Institute of Electronics, Information and Communication Engineers 1987/1 Vol.J70-
B No. 1 p96-104 “Intra-frame / inter-frame adaptive extrapolation interpolative coding of HDTV signal” and Japanese Patent Application No. 2-41024
No. 7).

【0026】また量子化回路21は、デイスクリートコ
サイン変換データS21を発生情報量に応じて量子化
し、量子化データS10を遅延回路22及び逆量子化回
路12に出力するようになされている。遅延回路22
は、予測符号化処理部6の処理時間に対応する遅延時間
分、量子化データS10を遅延させて可変長符号化回路
10に出力するようになされている。
The quantizing circuit 21 quantizes the discrete cosine transformed data S21 in accordance with the amount of generated information and outputs the quantized data S10 to the delay circuit 22 and the inverse quantizing circuit 12. Delay circuit 22
Is configured to delay the quantized data S10 by a delay time corresponding to the processing time of the predictive coding processing unit 6 and output the quantized data S10 to the variable length coding circuit 10.

【0027】因みにDCT方式は一般的に、輝度変化の
滑らかな信号にDCTを行うことにより、ある係数の周
辺に大きな値が集中する性質があることが知られてい
る。例えば図3(A)に示すように、8×8画素でなる
1ブロツクとして左上から右下方向へエツジを含む絵柄
であつてその各画素が30から100の輝度レベルを有
する原画像が入力された場合、DCT回路40によりデ
イスクリートコサイン変換すると、ブロツク内の係数は
殆どが0となる(図3(B))。また値を有する係数
は、左上から右下の対角線上に存在する。
Incidentally, it is known that the DCT method generally has a property that a large value is concentrated around a certain coefficient by performing DCT on a signal whose brightness changes smoothly. For example, as shown in FIG. 3 (A), an original image having a luminance level of 30 to 100 in which each pixel is a pattern including edges from the upper left to the lower right as one block of 8 × 8 pixels is input. In this case, when the discrete cosine transform is performed by the DCT circuit 40, most of the coefficients in the block become 0 (FIG. 3 (B)). Further, the coefficient having the value exists on the diagonal line from the upper left to the lower right.

【0028】次にこの係数を量子化回路21により例え
ば輝度レベルが10の値で量子化すると、係数のほとん
どが0となり、大きな係数のみが残る。そこでその係数
を、図示した係数の呼び出し順路(数字は呼び出し順を
示す)に従つて順次呼び出し、可変長符号器(VLC)
10によりハフマン符号等の可変長符号方式で符号可す
ることにより、高能率符号化することができる。
Next, when this coefficient is quantized by the quantizer circuit 21 with a brightness level of 10, for example, most of the coefficients become 0 and only large coefficients remain. Therefore, the coefficients are sequentially called according to the calling sequence of the illustrated coefficients (the numbers indicate the calling order), and the variable length coder (VLC) is used.
High-efficiency coding can be achieved by coding with a variable-length coding system such as Huffman code according to 10.

【0029】この際、画素は2次元方向に相関があるこ
とを考慮して、係数の呼び出し開始点から徐々に遠い係
数を呼び出すようにすること等が提案されている。また
水平方向に係数の相関が強い絵柄では、図4に示すよう
な読み出し順序でブロツクの上段(0〜7)の係数を順
次呼び出し、続いて(8〜63)のように呼び出すこと
ができる。
At this time, taking into consideration that pixels have a correlation in a two-dimensional direction, it has been proposed to call a coefficient that is gradually distant from a coefficient calling start point. Further, in the case of a pattern having a strong coefficient correlation in the horizontal direction, the coefficients in the upper stage (0 to 7) of the block can be sequentially called in the reading order as shown in FIG. 4, and subsequently can be called as (8 to 63).

【0030】(2−2)予測符号化処理部6の処理 予測符号化処理部6は、予測符号化回路23、量子化回
路24及びDPCM(Differntial PCM )回路25を有
している。予測符号化処理部6は、ブロツク内の画像信
号を予測符号化すると、ブロツク内の画像信号情報から
そのブロツクの差分信号を発生して量子化し、DPCM
回路25により差分信号に残された自己相関性を減らし
てそのデータを可変長符号化回路10により符号化する
ことにより、高能率符号化するようになされている(特
開平1−135281号公報、特開平2−134910
号公報)。
(2-2) Processing of Predictive Encoding Processing Unit 6 The predictive encoding processing unit 6 has a predictive encoding circuit 23, a quantizing circuit 24 and a DPCM (Differntial PCM) circuit 25. When the predictive coding processing unit 6 predictively codes the image signal in the block, the predictive coding processing unit 6 generates a differential signal of the block from the image signal information in the block and quantizes it to generate DPCM.
High-efficiency coding is performed by reducing autocorrelation left in the differential signal by the circuit 25 and coding the data by the variable-length coding circuit 10 (JP-A-1-135281). JP-A-2-134910
Publication).

【0031】この際バツフア回路11は出力データを監
視し、情報量に応じて予測符号化回路23の量子化幅Q
を決定するようになされている。適応量子化の方法とし
て、具体的には以下の3つのものが使用可能であり、本
発明では、これらの方法の1若しくは複数をブロツク毎
に選択的に使用するようになされている。
At this time, the buffer circuit 11 monitors the output data and, depending on the amount of information, the quantization width Q of the predictive coding circuit 23.
Is made to decide. Specifically, the following three methods can be used as the adaptive quantization method. In the present invention, one or more of these methods are selectively used for each block.

【0032】(2−3−1)ブロツク内の画像信号の平
均値を予測値とする方法すなわち図5に示すように、ブ
ロツク内の全画素の振幅の平均値を求め、その平均値と
それぞれの画素の信号レベルの差を量子化する方法であ
る。ここで量子化幅Qはバツフア11から出力される値
である。このときブロツク内の平均値をM、ブロツク内
画素の信号レベルをLとすれば量子化コードLqは、次
(2-3-1) Method of using the average value of the image signal in the block as the predicted value, that is, as shown in FIG. 5, the average value of the amplitudes of all the pixels in the block is calculated, and the average value and the average value are respectively obtained. This is a method of quantizing the difference in signal level between pixels. Here, the quantization width Q is a value output from the buffer 11. At this time, if the average value in the block is M and the signal level of the pixel in the block is L, the quantization code Lq is

【数1】 で表される。ここで//は小数第一位の4捨5入を示
す。
[Equation 1] It is represented by. Here, // indicates rounding off to the first decimal place.

【0033】また復元値をL’とすると、If the restoration value is L ',

【数2】 と表すことができる(図6)。ただしこの方式では量子
化幅Qが大きい場合には、復元値歪みが大きくなり、図
7に示すようにブロツク間が不連続となりやすい。
[Equation 2] Can be expressed as (FIG. 6). However, in this method, when the quantization width Q is large, the restoration value distortion becomes large, and discontinuity between blocks tends to occur as shown in FIG.

【0034】(2−3−2)適応型ダイナミツクレンジ
符号化ADRC(Adaptive Dynamic Range Coding )を
用いて予測値を求める方法本方法は、「適応型ダイナミ
ツク・レンジ符号化の量子化方式の検討」近藤他、19
89年、第4回画像符号化シンポジウム(PCSJ)資
料(4−3)に開示されている。
(2-3-2) Method of Obtaining Prediction Value Using Adaptive Dynamic Range Coding (ADRC) This method is based on the "quantization method of adaptive dynamic range coding". Kondo et al., 19
In 1989, it is disclosed in the 4th Image Coding Symposium (PCSJ) Material (4-3).

【0035】適応型ダイナミツク・レンジ符号化ADR
Cを適用した場合の量子化特性を図8に、適応型ダイナ
ミツク・レンジ符号化ADRCによつて生じるブロツク
歪みの例を図9に示す。適応型ダイナミツク・レンジ符
号化ADRCにおいて、ブロツク内の最小値を予測値と
して用いる理由は、最小値はそのブロツクの周辺部にあ
ることが多いからである。
Adaptive Dynamic Range Coding ADR
FIG. 8 shows the quantization characteristic when C is applied, and FIG. 9 shows an example of the block distortion caused by the adaptive dynamic range coding ADRC. In the adaptive dynamic range coding ADRC, the reason why the minimum value in a block is used as a prediction value is that the minimum value is often located in the peripheral portion of the block.

【0036】すなわち通常ブロツクは8×8画素程度の
小さな領域であるため、輝度レベルが凹型となる場合は
極めて低いからである。このためあるブロツクの最小値
は、周囲のブロツクのいずれかのブロツクの最小値に近
い値を取ることが多い。従つて最小値がブロツクの周辺
部にある場合には、少なくとも一つの周辺ブロツクとの
間の連続性が保たれ、ブロツク歪みが最小に押さえられ
る。
That is, since the normal block is a small area of about 8 × 8 pixels, when the brightness level is concave, it is extremely low. For this reason, the minimum value of a certain block is often close to the minimum value of any of the surrounding blocks. Therefore, when the minimum value is in the peripheral portion of the block, the continuity with at least one peripheral block is maintained, and the block distortion is suppressed to the minimum.

【0037】さらに適応型ダイナミツク・レンジ符号化
ADRCでは、図8のように最上位、および最下位の階
調レベルに含まれる信号値の平均値で、新たに最大値、
最小値を定義し直すことにより、ノイズや孤立点の影響
を受けにくくなる(特開平2−134910号公報)。
Further, in the adaptive dynamic range coding ADRC, as shown in FIG. 8, the average value of the signal values included in the highest and lowest gradation levels is newly added to the maximum value.
Redefining the minimum value makes it less susceptible to noise and isolated points (JP-A-2-134910).

【0038】 (2−3−3−1)エツジマツチング量子化方法(1) まず1次元の場合について説明する。図10、図11に
示すようなブロツク長の信号について、ブロツクの両端
の信号値をX1、X2とし、簡単のためにX1≦X2と
すると共に、信号値X1とX2の復元値が定められた誤
差以下に出力されるように、バツフア11から出力され
る量子化幅Qを以下のアルゴリズムにより変更する。
(2-3-3-1) Edge Matching Quantization Method (1) First, the one-dimensional case will be described. With respect to the block length signal as shown in FIGS. 10 and 11, the signal values at both ends of the block are set to X1 and X2, and X1 ≦ X2 is set for simplification, and the restoration values of the signal values X1 and X2 are determined. The quantization width Q output from the buffer 11 is changed by the following algorithm so that it is output below the error.

【0039】ブロツク内画素の信号レベルをL、信号値
X1、X2の復元値許容誤差をExとすれば、ダイナミ
ツクレンジDRは、
If the signal level of the pixel in the block is L and the restoration error tolerance of the signal values X1 and X2 is Ex, the dynamic range DR is

【数3】 であり、量子化幅Q及び信号値X1を、[Equation 3] And the quantization width Q and the signal value X1 are

【数4】 かつ、[Equation 4] And,

【数5】 とすると、量子化幅Qを予測符号化回路23から量子化
回路24へ出力される量子化幅制御信号S22により指
示される量子化幅qと同じ値とし、信号値X1はそのま
まとする。
[Equation 5] Then, the quantization width Q is set to the same value as the quantization width q indicated by the quantization width control signal S22 output from the predictive coding circuit 23 to the quantization circuit 24, and the signal value X1 is left unchanged.

【0040】また[0040] Also

【数6】 かつ[Equation 6] And

【数7】 とすると、量子化幅Q及び信号値X1はそのままとす
る。ここでABSは絶対値を表す。
[Equation 7] Then, the quantization width Q and the signal value X1 are left unchanged. Here, ABS represents an absolute value.

【0041】ここでWhere

【数8】 ならば、量子化幅Qはそのままとし、信号値X1及びX
2の平均値をXm=(X1+X2)//2とすると、信
号値X1はXmとする。ただし予測符号化回路23によ
つて指定される量子化幅qはすべての量子化幅Qとダイ
ナミツクレンジDRの組について、
[Equation 8] Then, the quantization width Q is left unchanged and the signal values X1 and X
When the average value of 2 is Xm = (X1 + X2) // 2, the signal value X1 is Xm. However, the quantization width q specified by the predictive coding circuit 23 is defined as follows for all the quantization width Q and dynamic range DR.

【数9】 を満たすQより大きい値を求めて、ROMにテーブルを
書き込むようになされている。
[Equation 9] The table is written in the ROM by finding a value larger than Q that satisfies the above condition.

【0042】このとき量子化コードLqは、At this time, the quantization code Lq is

【数10】 により、また復元値L’は、[Equation 10] And the restored value L'is

【数11】 により与えられる。この方式では、ブロツクの両端の復
元信号の誤差がExで抑えられるので、更にブロツク間
の連続性を保つことができる。
[Equation 11] Given by. In this method, since the error of the restored signal at both ends of the block is suppressed by Ex, the continuity between blocks can be further maintained.

【0043】次に2次元の場合について説明する。1次
元の方法を2次元ブロツクに拡張する場合にはX1、X
2決定のためのサブルーチンが更に必要となる。この決
定のためのアルゴリズムは以下の手順となる。まず8×
8画素の2次元ブロツク信号について図12の様にブロ
ツク端の領域1a、1b、2a、2b、3a、3b、4
a、4bを考える。
Next, a two-dimensional case will be described. To extend the one-dimensional method to a two-dimensional block, X1, X
2 A sub-routine for making a decision is further required. The algorithm for this determination is as follows. First 8x
As for the two-dimensional block signal of 8 pixels, as shown in FIG. 12, areas 1a, 1b, 2a, 2b, 3a, 3b, 4 at the end of the block
Consider a and 4b.

【0044】続いて各々の領域について領域中の画素値
の平均値を求める。ここでこれらの平均値をそれぞれm
1a、m1b、m2a、m2b、m3a、m3b、m4
a、m4bとする。かかる後、ABS(m1a−m1
b)、ABS(m2a−m2b)、ABS(m3a−m
3b)、ABS(m4a−m4b)のうち、最大のもの
を求める。
Next, the average value of the pixel values in each area is calculated for each area. Here, each of these average values is m
1a, m1b, m2a, m2b, m3a, m3b, m4
a and m4b. After this, ABS (m1a-m1
b), ABS (m2a-m2b), ABS (m3a-m)
3b) and ABS (m4a-m4b), the largest one is obtained.

【0045】以上の手順により、ブロツクの両端で画素
値が大きく異なる方向、すなわちエツジを横切る方向が
求められる。よつて、選択された2つの領域での画素の
代表値のうち小さい方をX1とし、もう一方をX2と
し、1次元の時と同様にして、ブロツク信号を量子化、
逆量子化する。
By the above procedure, the direction in which the pixel values greatly differ at both ends of the block, that is, the direction across the edge is obtained. Therefore, the smaller one of the representative values of the pixels in the selected two regions is set to X1, the other is set to X2, and the block signal is quantized in the same manner as in the one-dimensional case.
Dequantize.

【0046】 (2−3−3−2)エツジマツチング量子化方法(2) まず1次元の場合について説明する。図13のようなブ
ロツク長の信号について、ブロツクの両端の信号値をX
1、X2とする。簡単のために、X1≦X2とする。本
方法では、信号値X1とX2がそのまま復元値として出
力されるように、復号器側で復元値の変更を行なうとこ
ろに特徴がある。ブロツク内画素の信号レベルをLとす
る時、バツフア11から出力される量子化幅をQとする
と、量子化コードLqは、
(2-3-3-2) Edge Matching Quantization Method (2) First, the one-dimensional case will be described. For a block length signal as shown in Fig. 13, set the signal values at both ends of the block to X.
1 and X2. For simplicity, X1 ≦ X2. This method is characterized in that the decoder side changes the restoration values so that the signal values X1 and X2 are output as the restoration values as they are. When the signal level of the pixel in the block is L, and the quantization width output from the buffer 11 is Q, the quantization code Lq is

【数12】 となる。[Equation 12] Becomes

【0047】ここで符号化装置2Aでは量子化コードL
qの他に、信号値X1、X2、量子化幅Qを量子化パラ
メータとして伝送するようになされている。また復号装
置2Bでは、信号値X1、X2、量子化幅Qを量子化パ
ラメータとして受けとり、まず信号値X2の量子化値X
2qを計算するようになされている。
Here, in the encoding device 2A, the quantized code L
In addition to q, the signal values X1, X2 and the quantization width Q are transmitted as quantization parameters. In the decoding device 2B, the signal values X1 and X2 and the quantization width Q are received as the quantization parameter, and first, the quantization value X of the signal value X2 is received.
It is designed to calculate 2q.

【数13】 [Equation 13]

【0048】この後、量子化コードLqが量子化値X2
qに等しければ、
After this, the quantization code Lq becomes the quantization value X2.
If it is equal to q,

【数14】 とし、等しくない場合には、[Equation 14] And if they are not equal,

【数15】 として、復元値L’へ復元される。この方法は前述した
エツジマツチング量子化方法(1)に比べアルゴリズム
が単純であり、量子化幅Qの変更のためのROMテーブ
ルも必要としない。
[Equation 15] Is restored to the restored value L ′. This method has a simpler algorithm than the edge matching quantization method (1) described above, and does not require a ROM table for changing the quantization width Q.

【0049】次に2次元の場合について説明する。エツ
ジマツチング量子化方法(2)を2次元ブロツク信号に
拡張する場合には、前述のエツジマツチング量子化方法
(1)で述べた方法でX1、X2を決定する。その後の
量子化、復号化方法は1次元の時と同様にして行なう。
Next, a two-dimensional case will be described. When the edge matching quantization method (2) is extended to a two-dimensional block signal, X1 and X2 are determined by the method described in the edge matching quantization method (1). Subsequent quantization and decoding methods are performed in the same manner as in the one-dimensional case.

【0050】(2−4)DPCM(Differntial PCM )
回路25の処理 適応量子化後の係数には、まだ元の画像信号が持つてい
た信号の自己相関性がほとんどそのまま残つている。従
つてその後段でDPCMを行なうことにより更に情報量
を圧縮することができる。ここでDPCM回路25に
は、予測符号化回路23よりスキヤン信号S24によつ
て入力画素のスキヤン方向が指定されるようになされて
いる。
(2-4) DPCM (Differntial PCM)
Processing of Circuit 25 The coefficients after adaptive quantization still have almost the same autocorrelation of the signal that the original image signal had. Therefore, the amount of information can be further compressed by performing DPCM in the subsequent stage. In the DPCM circuit 25, the scan direction of the input pixel is designated by the scan signal S24 from the predictive coding circuit 23.

【0051】DPCM回路25では、差分器により入力
された量子化後の画像信号Yiと1画素前の画素値との
差分をとることにより、
The DPCM circuit 25 obtains the difference between the quantized image signal Yi input by the differentiator and the pixel value one pixel before,

【数16】 を得るようになされている。[Equation 16] Is designed to get you.

【0052】予測誤差信号Eiは入力信号が8ビツトと
すると−255〜+255までの値をとりうる。従つて
そのままの形で伝送しようとすると9ビツト必要とな
り、1画素当たり1ビツト余分に符号を必要とする。し
かし予測誤差信号は零を中心としてその前後にほとんど
が集中することが知られている。従つてすべての信号を
9ビツトで表現するのではなく、多数出現する信号値に
短いビツト長の符号を割り当てることにより、ブロツク
全体としては平均として9ビツトよりはもちろん、元の
8ビツトの入力信号よりもはるかに短いビツト長でブロ
ツク信号を表すことができる。
The prediction error signal Ei can take values from -255 to +255 when the input signal is 8 bits. Therefore, if it is attempted to transmit the data as it is, 9 bits are required, and an extra code is required for each pixel. However, it is known that the prediction error signal is mostly centered around zero and before and after it. Therefore, not all signals are represented by 9 bits, but by assigning a code with a short bit length to the signal values that appear in large numbers, the block as a whole will have an average of 9 bits as well as the original input signal of 8 bits. A block signal can be represented with a bit length much shorter than that.

【0053】ここではブロツク内でのDPCMに適した
方法として、次の3つ方法が使用できる。本発明では、
次の方法の1つをブロツク毎に選択的に使用するように
なされている。
Here, the following three methods can be used as a method suitable for the DPCM in the block. In the present invention,
One of the following methods is selectively used for each block.

【0054】(2−4−1)DPCM方式(1) 図4のような呼び出し経路で適応量子化後のブロツク信
号のDPCMを行なう。呼び出し経路が1通りしかない
ため回路構成が単純で済む。しかし、図14(A)のモ
ード1の様な輪郭を含むブロツク以外(図14(B)の
モード2、図14(C)のモード3-1、図14(D)の
モード3-2)では大幅な情報量の圧縮は期待できない。
(2-4-1) DPCM method (1) DPCM of the block signal after adaptive quantization is performed in the calling path as shown in FIG. Since there is only one call path, the circuit configuration is simple. However, except for the block including the contour like the mode 1 in FIG. 14A (mode 2 in FIG. 14B, mode 3-1 in FIG. 14C, mode 3-2 in FIG. 14D). Therefore, it is not possible to expect a significant amount of information compression.

【0055】(2−4−2)DPCM方式(2) そこでモード1〜モード3-2それぞれに、最適な情報量
の圧縮を行なえる様にデータ呼び出し方法を切替えるこ
とを考える。図14にモード1〜モード3-2のそれぞれ
に適した呼び出し方法を示す。次に、これらDPCMの
モード切替の判定方法について説明する。この判定はエ
ツジマツチング量子化方法(1)で述べたブロツク信号
中の輪郭の方向性の調査で得られた情報をDPCM回路
25に与えることにより行なわれる。
(2-4-2) DPCM method (2) Then, it is considered to switch the data calling method for each of the modes 1 to 3-2 so that the optimum amount of information can be compressed. FIG. 14 shows a calling method suitable for each of the modes 1 to 3-2. Next, a method of determining mode switching of these DPCM will be described. This determination is made by supplying the DPCM circuit 25 with the information obtained by the examination of the directionality of the contour in the block signal described in the edge matching quantization method (1).

【0056】すなわちi=1の時にはモード1を、i=
2の時にはモード2を、i=3の時にはモード3-1を、
またi=4の時にはモード3-2にそれぞれ対応すること
になる。
That is, when i = 1, mode 1 is set, and i =
Mode 2 when 2 and mode 3-1 when i = 3,
Further, when i = 4, it corresponds to mode 3-2.

【0057】 (2−5)DCT/予測符号化判定回路7の処理 図1のDCT/予測符号化判定回路7は、画像信号を符
号化する場合に、ブロツク単位でDCTを行うか、予測
符号化を行うかの判定を行なう。まず、ブロツクの情報
によりどの処理方法を選択するかを判定しなければなら
ない。その場合、空間領域又はDCT変換出力領域で判
定する。以下各判定方式について詳細に説明する。
(2-5) Process of DCT / Predictive Coding Determination Circuit 7 When the image signal is coded, the DCT / predictive coding determination circuit 7 performs DCT in block units or predictive coding. It is determined whether or not to convert. First, it is necessary to judge which processing method should be selected based on the block information. In that case, the determination is made in the spatial domain or the DCT transform output domain. Each determination method will be described in detail below.

【0058】(2−5−1)空間領域での判定 急激に輝度が変化する絵柄、具体的にはエツジやディテ
ール部分を含む画像では、ブロツク内の画像信号のダイ
ナミツクレンジ(最大値−最小値)が大きな値をとる。
このような絵柄については、DCTが情報の圧縮率にお
いて不利であり、予測符号化を選択すべきである。よつ
てブロツク毎に、そのブロツク内のダイナミツクレンジ
(DR)を求め、その値が圧縮率と絵柄の劣化から選択
した適当な閾値(A)を越えるブロツクについては、予
測符号化を行なうと判定する。
(2-5-1) Judgment in Spatial Area For a picture whose brightness changes abruptly, specifically, an image including edges and details, the dynamic range (maximum value-minimum value) of the image signal in the block is determined. Value) takes a large value.
For such a pattern, the DCT has a disadvantage in the compression rate of information, and the predictive coding should be selected. Therefore, for each block, the dynamic range (DR) within that block is obtained, and it is determined that the predictive coding is performed for the block whose value exceeds an appropriate threshold value (A) selected from the compression rate and the deterioration of the pattern. To do.

【0059】 (2−5−2)DCT変換出力領域での判定 画像信号を2次元DCTした場合のDCT係数には、次
の性質があることが知られている。例えば(8×8)画
素をブロツク(マクロブロツク)とする2次元DCTで
は、ブロツクの左上隅に相当する0行0列目の係数F
(0、0)は、画像ブロツク内の平均輝度を表す直流成
分に相当する。そしてF(0、0)から右横方向にいく
に従つて、係数は画像ブロツク内の縦の高周波数成分を
表し、下方向にいくに従つて、横の高周波数成分を表
す。
(2-5-2) Determination in DCT Transform Output Area It is known that the DCT coefficient when the image signal is two-dimensionally DCT has the following properties. For example, in a two-dimensional DCT having (8 × 8) pixels as a block (macro block), the coefficient F at the 0th row and 0th column corresponding to the upper left corner of the block
(0, 0) corresponds to a DC component that represents the average brightness in the image block. The coefficient represents the vertical high frequency component in the image block as it goes from F (0,0) to the right and horizontal direction, and the horizontal high frequency component as it goes downward.

【0060】すなわちエツジの様に急激に輝度が変化す
る絵柄のブロツクをデイスクリートコサイン変換する
と、その変換出力は図15に示すように大きく以下の3
つに分類できる。図15は、8×8画素のマクロブロツ
クにおいて、デイスクリートコサイン変換後の出力領域
を示す。ここで○は輝度の高い(又は低い)画素の位置
を示し、×はブロツク内で大きなDCT係数が発生しや
すい位置を示す。
That is, when a block of a pattern whose brightness changes abruptly like an edge is transformed by Discrete Cosine, the converted output is largely as shown in FIG.
Can be classified into two. FIG. 15 shows an output area after the discrete cosine conversion in the macro block of 8 × 8 pixels. Here, ◯ indicates the position of a pixel with high (or low) brightness, and × indicates the position where a large DCT coefficient is likely to occur in the block.

【0061】図15(A)は、縦方向に輪郭が存在する
場合であつて、DCT係数は低次から横方向に大きなエ
ネルギーをもつて集中する。これを以下「ケース1」と
呼ぶこととする。また図15(B)は、横方向に輪郭が
存在する場合であつて、DCT係数は低次から縦方向に
大きなエネルギーをもつて集中する。これを以下「ケー
ス2」と呼ぶこととする。
FIG. 15A shows the case where the contour exists in the vertical direction, and the DCT coefficients concentrate from the low order to the horizontal direction with large energy. This is hereinafter referred to as "case 1". Further, in FIG. 15B, when the contour exists in the horizontal direction, the DCT coefficient concentrates with a large energy in the vertical direction from the low order. This is hereinafter referred to as "case 2".

【0062】図15(C)は、斜め方向に輪郭が存在す
る場合であつて、DCT係数は低次から斜め方向に大き
なエネルギーをもつて集中する。これを以下「ケース
3」と呼ぶこととする。直流成分を除いたすべてのDC
T係数の絶対値和Fa、およびケース1、ケース2、ケ
ース3でそれぞれDCT出力領域で×で示した領域のD
CT係数の絶対値和F1、F2、F3を、ブロツク毎に
求める。
In FIG. 15C, when the contour exists in the diagonal direction, the DCT coefficient concentrates with a large energy in the diagonal direction from the low order. Hereinafter, this will be referred to as "case 3". All DC except DC components
Absolute value sum Fa of T coefficient and D of the DCT output area in each of the cases 1, 2, and 3
The absolute value sums F1, F2, and F3 of CT coefficients are obtained for each block.

【0063】そして絶対値和F1、F2、F3の内、最
大のものをFmaxとした時、Faに対するFmaxの
比率が圧縮率と絵柄の劣化から選択した適当な閾値を越
えるブロツクについては予測符号化方式により符号化す
るようになされている。
When the maximum of the absolute value sums F1, F2, and F3 is Fmax, the predictive coding is performed for blocks in which the ratio of Fmax to Fa exceeds an appropriate threshold value selected from the compression rate and the deterioration of the pattern. It is adapted to be encoded by the method.

【0064】(2−6)VLC回路10の構成 (2−6−1)VLC(Variable Length Coding)方式
(1) デイスクリートコサイン変換符号化と予測符号化の信号
の統計的性質は異なるので、可変調符号化に用いる符号
のテーブルをそれぞれに用意しておき、DCT/予測符
号化の切り替え信号に応じて使い分けることにより、さ
らに符号化効率を高めらるようになされている。
(2-6) Structure of VLC Circuit 10 (2-6-1) VLC (Variable Length Coding) Method (1) Since the statistical properties of the signals of the Discrete Cosine Transform coding and the predictive coding are different, It is designed to further improve the coding efficiency by preparing a table of codes used for the modulatable coding for each and selectively using it according to the switching signal of DCT / prediction coding.

【0065】(2−6−2)VLC方式(2) VLC方式(1)では、可変長符号化に用いる符号のテ
ーブルを使い分けるだけであつたが、VLC方式(2)
では、DCT/予測符号化の切り替えに応じて、VLC
回路10の符号化の方式を切り替えるようになされてい
る。すなわちデイスクリートコサイン変換符号化の場合
には、ゼロランとレベルの2次元可変長符号化/復号化
を行ない、予測符号化ではゼロランとレベルの差分値の
2次元可変長符号化/復号化を行なうようになされてい
る。
(2-6-2) VLC system (2) In the VLC system (1), only the table of codes used for variable length coding is properly used, but the VLC system (2)
Then, depending on the switching of DCT / prediction coding, VLC
The encoding method of the circuit 10 is switched. That is, in the case of Discrete Cosine Transform coding, zero-run and level two-dimensional variable-length coding / decoding is performed, and in predictive coding, two-dimensional variable-length coding / decoding of zero-run and level difference values. It is done like this.

【0066】例えば図16に示すように、フレーム間差
分信号が符号化された信号がVLC回路10に入力され
る場合、この信号には動き補償付きフレーム間差分でも
取りきれなかつた画素間の相関が局所的に残つている
(図中の0でない部分)。この信号の符号化には、局所
的に相関を減らすような符号化が必要であり、VLC回
路10は、次のアルゴリズムにより、符号化するように
なされている。
For example, as shown in FIG. 16, when the signal in which the inter-frame difference signal is encoded is input to the VLC circuit 10, the correlation between the pixels which cannot be excluded even by the inter-frame difference with motion compensation is included in this signal. Remains locally (non-zero part in the figure). The encoding of this signal requires encoding that locally reduces the correlation, and the VLC circuit 10 is adapted to perform encoding by the following algorithm.

【0067】すなわち符号化する画素がゼロの場合、ゼ
ロランの長さをカウントアツプして、画素データを符号
化しない。また符号化する画素がゼロでなく、前の画素
がゼロの場合には、そこまでのゼロランの長さと画素値
(レベル)を組にして、2次元可変長符号化する。さら
に符号化する画素がゼロでなく、かつ前の画素がゼロで
ない場合、前の画素との差分を取り(DPCM)、そこ
までのゼロランの長さ0と画素値(レベル)の差分値を
組にして、2次元可変長符号化するようになされてい
る。
That is, when the pixel to be encoded is zero, the length of zero run is counted up and the pixel data is not encoded. When the pixel to be encoded is not zero and the previous pixel is zero, the zero-run length up to that point and the pixel value (level) are paired to perform two-dimensional variable length encoding. When the pixel to be encoded is not zero and the previous pixel is not zero, the difference from the previous pixel is calculated (DPCM), and the zero run length up to that point and the difference value between the pixel value (level) are combined. Then, two-dimensional variable length coding is performed.

【0068】(3)復号化装置の構成 一方、復号化装置2Bは、図2に示すように、符号化装
置2Aから出力された符号化ビツトストリーム入力S3
1をバツフア31に入力し、一時蓄積するようになされ
ている。逆可変長符号化回路32は、符号化ビツトスト
リーム入力S31から伝送データがDCT変換データで
あるか予測符号化変換データであるかを切換信号から解
読し、その情報に従つてDCTか予測符号化かを選択す
る。
(3) Configuration of Decoding Device On the other hand, the decoding device 2B, as shown in FIG. 2, has the encoded bit stream input S3 output from the encoding device 2A.
1 is input to the buffer 31 and is temporarily stored. The inverse variable-length coding circuit 32 decodes from the switching signal whether the transmission data is DCT conversion data or predictive coding conversion data from the coding bit stream input S31, and according to the information, DCT or predictive coding. Or select.

【0069】ここで逆可変長符号化回路32は、符号化
ビツトストリーム入力S31を逆可変長符号化処理して
逆DCT処理部33及び逆予測符号化処理部34に供給
するようになされている。逆DCT処理部33は、遅延
回路35、逆量子化回路36、逆DCT回路37を有
し、DCT処理部5と逆の処理手順により符号化ビツト
ストリーム入力S20から伝送画像を復号するようにな
されている。
Here, the inverse variable length encoding circuit 32 is adapted to inverse variable length encode the encoded bit stream input S31 and supply it to the inverse DCT processor 33 and the inverse prediction encoding processor 34. .. The inverse DCT processing unit 33 has a delay circuit 35, an inverse quantization circuit 36, and an inverse DCT circuit 37, and decodes a transmission image from the encoded bit stream input S20 by a processing procedure reverse to that of the DCT processing unit 5. ing.

【0070】また逆予測符号化処理部34は、逆DPC
M回路38、逆量子化回路39、逆予測符号化回路40
を有し、予測符号化処理部6と逆の処理手順によつて符
号化ビツトストリーム入力S31から伝送画像を復号す
るようになされている。ここで逆量子化回路36及び3
9は、逆可変長符号化回路32より量子化幅制御信号S
32及びS33を入力するようになされている。
Further, the inverse predictive coding processing section 34 uses the inverse DPC.
M circuit 38, inverse quantization circuit 39, inverse prediction encoding circuit 40
And the transmission image is decoded from the encoded bit stream input S31 by a processing procedure reverse to that of the predictive encoding processing unit 6. Here, the inverse quantization circuits 36 and 3
Reference numeral 9 denotes the quantization width control signal S from the inverse variable length coding circuit 32.
32 and S33 are input.

【0071】また逆DPCM回路38は、逆可変長符号
化回路32よりスキヤン方向指定信号S34を入力する
ようになされており、逆予測符号化回路40は、予測値
信号S35を入力するようになされている。復号化装置
2Bは、かかる処理手順により逆DCT処理部33及び
逆予測符号化処理部34で復号された復号データS36
及びS37を切換回路41、加算回路42を順次介して
伝送画像を復号するようになされている。
The inverse DPCM circuit 38 is adapted to receive the scan direction designating signal S34 from the inverse variable length encoding circuit 32, and the inverse predictive encoding circuit 40 is adapted to input the predicted value signal S35. ing. The decoding device 2B has the decoded data S36 decoded by the inverse DCT processing unit 33 and the inverse predictive coding processing unit 34 by the processing procedure.
And S37, the transmission image is decoded through the switching circuit 41 and the adding circuit 42 in order.

【0072】またこのとき予測回路43は、逆可変長符
号化回路32により切り換え制御され、これらブロツク
毎に処理された逆DCT、又は逆予測符号化の出力よ
り、原動画像を再現するためのものである。ここで予測
回路43の出力は、切換回路44を介して加算回路42
に入力されるようになされており、この切換回路41、
42はそれぞれ逆可変長符号化回路32から入力される
DCT/予測符号化切換信号S39によつて切り換えら
れる。
At this time, the predicting circuit 43 is switched and controlled by the inverse variable length encoding circuit 32, and reproduces the moving image from the output of inverse DCT or inverse predictive encoding processed for each block. Is. Here, the output of the prediction circuit 43 is added via the switching circuit 44 to the addition circuit 42.
Is input to the switching circuit 41,
42 are switched by the DCT / prediction coding switching signal S39 input from the inverse variable length coding circuit 32.

【0073】(4)実施例の動作 以上の構成において、符号化装置2Aは切換回路4を予
測回路8から入力されるフレーム間/フレームタイミン
グ切換信号S4により切り換えることにより、伝送画像
に応じてフレーム間符号化又はフレーム内符号化された
画像データをDCT処理部5及び予測符号化処理部6に
出力する。
(4) Operation of the Embodiment In the above configuration, the encoding device 2A switches the switching circuit 4 by the inter-frame / frame timing switching signal S4 input from the prediction circuit 8 so that frames are transmitted in accordance with the transmitted image. The inter-frame coded or intra-frame coded image data is output to the DCT processing unit 5 and the predictive coding processing unit 6.

【0074】このときDCT処理部5は、8×8画素の
画像データを2次元相関を利用してデイスクリートコサ
イン変換し、変換後の画像データをさらにバツフア回路
11から入力される量子化幅制御信号S9に基づいて量
子化する。また予測符号化処理部6は、予測符号化回路
23及び量子化回路24を順次介して予測符号化された
画像データを所定の量子化幅で量子化した量子化データ
S10をDPCM回路25に供給し、画像データ量をさ
らに一段と減少させる。
At this time, the DCT processing section 5 performs discrete cosine transform on the image data of 8 × 8 pixels by utilizing the two-dimensional correlation, and the transformed image data is further controlled by the quantization width control input from the buffer circuit 11. Quantize based on the signal S9. Further, the predictive coding processing unit 6 supplies the DPCM circuit 25 with quantized data S10 obtained by quantizing the predictively coded image data with a predetermined quantization width through the predictive coding circuit 23 and the quantizing circuit 24 in sequence. However, the amount of image data is further reduced.

【0075】ここで可変長符号化回路10は、切換回路
9を介してDCT処理部5又は予測符号化処理部6で符
号化された符号化データを入力すると、VLC方式
(1)又はVLC方式(2)に基づいて8×8画素の画
像データを可変長符号化処理する。すなわちこのアルゴ
リズムにより、図16で与えられる8×8画素の信号を
符号化すると、最初の0でない信号は、1行4列目の
「2」なので、そこまでのゼロランの長さ3と組にし
て、符号は(3、2)を得る。
When the variable length coding circuit 10 receives the coded data coded by the DCT processing unit 5 or the predictive coding processing unit 6 through the switching circuit 9, the VLC system (1) or the VLC system is input. Based on (2), the image data of 8 × 8 pixels is subjected to variable length coding processing. That is, when the 8 × 8 pixel signal given in FIG. 16 is encoded by this algorithm, the first non-zero signal is “2” in the first row and fourth column, so the length of zero run up to that point is paired with 3. Thus, the code gets (3, 2).

【0076】次の画素値は1行5列目の「2」だが、差
分を取ると「0」であり、ゼロランの長さ「0」と組に
して(0、0)とする。次の画素値は1行6列目の
「3」なので、差分を取ると「1」であり、ゼロランの
長さ「0」と組にして(0、1)とする。このアルゴリ
ズムにより符号を生成すると、図17(A)に示すよう
になる。
The next pixel value is "2" in the first row and fifth column, but when the difference is taken, it is "0", and it is set to (0, 0) in combination with the zero run length "0". Since the next pixel value is “3” in the first row and sixth column, the difference is “1”, and the zero run length “0” is paired with (0, 1). When a code is generated by this algorithm, it becomes as shown in FIG.

【0077】ここで通常のゼロランとレベルの2次元可
変長符号化(図17(B))とを比較すると、通常のゼ
ロランとレベルの符号化に対して0付近に集中する組に
*を付けて示すと、レベルの差分値をとる方が可変長符
号化の効果により、全体として符号量を小さくすること
ができる。このときゼロランとレベルの2次元可変長符
号化の方式に、ゼロランとレベルの差分値の2次元可変
長符号化の方式を組み合わせるには、ゼロランの長さ0
と差分値が0とを組にした(0、0)のコードを1つだ
け追加するだけで、他のすべてのコードは共有できる。
Comparing normal zero run and level two-dimensional variable-length coding (FIG. 17B), * is added to the group concentrated near 0 for normal zero run and level coding. In other words, it is possible to reduce the code amount as a whole by taking the level difference value due to the effect of the variable length coding. At this time, to combine the zero-run and level two-dimensional variable-length coding schemes with the zero-run and level difference value two-dimensional variable-length coding schemes, zero-run length 0 is used.
All other codes can be shared by adding only one code of (0, 0) in which the difference value and the difference value are 0.

【0078】ゼロランとレベルの2次元可変長符号化の
方式に、ゼロランとレベルの差分値の2次元可変長符号
化の方式を組み合わせるには、差分を取る回路とコード
が1つ追加されるだけなので、ハードウエアの増加は、
ごくわずかで済む。この方式により、動き補償付きフレ
ーム間差分でも取りきれなかつた画素間の相関性を取り
除き、ゼロランとレベルの2次元可変長符号化だけの方
式に比べ、更なる圧縮ができる。
In order to combine the two-dimensional variable-length coding method of zero run and level with the two-dimensional variable-length coding method of difference value of zero run and level, only one circuit and a code for taking a difference are added. So the increase in hardware is
Very few. With this method, the correlation between pixels that cannot be removed even with the inter-frame difference with motion compensation is removed, and further compression can be performed as compared with the method using only two-dimensional variable length coding of zero run and level.

【0079】(5)実施例の効果 以上の構成によれば、エツジのように不連続点を含む信
号を伝送する場合には予測符号化に切り換えることによ
り、DCT符号化と同程度もしくは少ない情報量で、モ
スキートノイズ等の妨害の少ない符号化ができ、DCT
符号化のみのシステムに比べて、全体として少ない情報
量で、高い画質を伝送することができる。また伝送画像
を予測符号化して伝送する場合、ブロツクの予測値と量
子化幅(またはブロツクのダイナミツクレンジ)を伝送
して、適応量子化を行うことにより、復号画像のブロツ
ク歪みを軽減することができる。
(5) Effects of the Embodiments According to the above configuration, when transmitting a signal including a discontinuity point such as an edge, switching to predictive coding enables information to be equal to or less than that of DCT coding. The amount of coding enables DCT with less interference such as mosquito noise.
Compared with a system that only encodes, a high image quality can be transmitted with a small amount of information as a whole. In addition, when predicting and encoding the transmitted image, block prediction value and quantization width (or block dynamic range) are transmitted, and adaptive quantization is performed to reduce block distortion of the decoded image. You can

【0080】(6)他の実施例 なお上述の実施例においては、VLC回路10に用いる
符号のテーブルをゼロランとレベル用とゼロランとレベ
ルの差分値用の2種類のテーブルを用意してもよいが、
1種類のテーブルを用いて、方式に応じて読み変えるだ
けでもよい。
(6) Other Embodiments In the above embodiment, two types of tables for codes used in the VLC circuit 10 may be prepared: one for zero run and level and one for difference value between zero run and level. But,
Only one type of table may be used and the reading may be changed depending on the method.

【0081】例えばゼロランとレベルのVLC回路10
に用いるテーブルの(0、1)のコードを、ゼロランと
レベルの差分値のVLC回路10の(0、0)に割り当
てて、ゼロランとレベルの(0、2)のコードをゼロラ
ンとレベルの差分値の(0、1)に割り当てることに
し、順番にコードを、ずらして使つていけば、コードを
書き換えることもなく、1つのコード表で2つの可変長
符号化ができる。
For example, a zero run and level VLC circuit 10
The code of (0, 1) in the table used for is assigned to (0, 0) of the VLC circuit 10 of the difference value between the zero run and the level, and the code of (0, 2) of the zero run and the level is calculated as the difference between the zero run and the level. By allocating to the values (0, 1) and using the codes in order while shifting them, it is possible to perform two variable length codings with one code table without rewriting the codes.

【0082】[0082]

【発明の効果】上述のように本発明によれば、ブロツク
単位でデイスクリートコサン変換方式又は予測符号化方
式とを切り換えて伝送画像を符号化し、各ブロツクごと
に切換情報を伝送すると共に、符号化方式に対応して可
変長符号可方式を切り換え、デイスクリートコサン変換
方式で符号化する場合には、ゼロランとレベルについて
2次元可変長符号化処理し、予測符号化方式により符号
化する場合には、ゼロランとレベルの差分値について2
次元可変長符号化処理して伝送画像を伝送することによ
り、符号化効率を従来に比して一段と向上することがで
きると共に画質を一段と向上することができる。
As described above, according to the present invention, the transmission image is coded by switching between the discrete Cothan transform system and the predictive coding system in block units, the switching information is transmitted for each block, and the code is transmitted. In the case of switching the variable length coding method according to the coding method and coding with the Discrete Cosin conversion method, two-dimensional variable length coding processing is performed for zero run and level, and when coding with the predictive coding method. Is 2 for the difference between zero run and level
By transmitting the transmission image by the dimensional variable length encoding process, the encoding efficiency can be further improved and the image quality can be further improved as compared with the conventional case.

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

【図1】本発明による符号化装置の一実施例を示すブロ
ツク図である。
FIG. 1 is a block diagram showing an embodiment of an encoding device according to the present invention.

【図2】本発明による復号化装置の一実施例を示すブロ
ツク図である。
FIG. 2 is a block diagram showing an embodiment of a decoding device according to the present invention.

【図3】デイスクリートコサイン変換によるDCT係数
の変化の説明に供する図である。
FIG. 3 is a diagram for explaining changes in DCT coefficients due to the discrete cosine transform.

【図4】係数の呼び出し順序の説明に供する図である。FIG. 4 is a diagram for explaining a calling order of coefficients.

【図5】平均値予測の説明に供する特性曲線図である。FIG. 5 is a characteristic curve diagram for explaining the average value prediction.

【図6】平均値予測による量子化/復号化特性の説明に
供する特性曲線図である。
FIG. 6 is a characteristic curve diagram for explaining a quantization / decoding characteristic based on average value prediction.

【図7】平均値予測を使用した場合のブロツク歪の説明
に供する特性曲線図である。
FIG. 7 is a characteristic curve diagram for explaining the block distortion when the average value prediction is used.

【図8】適応型ダイナミツクレンジ符号化による量子化
特性を示す特性曲線図である。
FIG. 8 is a characteristic curve diagram showing a quantization characteristic by adaptive dynamic range coding.

【図9】適応型ダイナミツクレンジ符号化を使用した場
合のブロツク歪の説明に供する特性曲線図である。
FIG. 9 is a characteristic curve diagram for explaining block distortion when adaptive dynamic range coding is used.

【図10】エツジマツチング量子化方法(1)の説明に
供する特性曲線図である。
FIG. 10 is a characteristic curve diagram for explaining the edge matching quantization method (1).

【図11】エツジマツチング量子化方法(1)による量
子化特性の説明に供する特性曲線図である。
FIG. 11 is a characteristic curve diagram for explaining a quantization characteristic by the edge matching quantization method (1).

【図12】エツジマツチング量子化方法(1)を2次元
符号化に適用する場合の領域を示す図である。
FIG. 12 is a diagram showing a region in a case where the edge matching quantization method (1) is applied to two-dimensional encoding.

【図13】エツジマツチング量子化方法(2)の説明に
供する特性曲線図である。
FIG. 13 is a characteristic curve diagram for explaining an edge matching quantization method (2).

【図14】DPCMによる係数呼び出し経路の説明に供
する図である。
FIG. 14 is a diagram for explaining a coefficient call path by DPCM.

【図15】エツジとDCT係数との関係を示す図であ
る。
FIG. 15 is a diagram showing a relationship between edges and DCT coefficients.

【図16】可変長符号化処理によるフレーム間差分の説
明に供する図表である。
FIG. 16 is a diagram for explaining a difference between frames by the variable length coding process.

【図17】本発明による可変長符号化処理の説明に供す
る特性曲線図である。
FIG. 17 is a characteristic curve diagram provided for explaining a variable length coding process according to the present invention.

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

1……画像データ伝送システム、2A……符号化装置、
2B……復号化装置、5……DCT処理部、6……予測
符号化処理部、7……DCT/予測符号化判定回路、8
……予測回路、10……VLC回路、11、31……バ
ツフア回路、12、24、36、39……逆量子化回
路、15……逆予測符号化回路、20……DCT回路、
21、24……量子化回路、22、35……遅延回路、
23……予測符号化回路、25……DPCM回路、37
……逆DCT回路、38……逆DPCM回路、40……
逆予測符号化回路。
1 ... Image data transmission system, 2A ... Encoding device,
2B ... Decoding device, 5 ... DCT processing unit, 6 ... Predictive coding processing unit, 7 ... DCT / predictive coding determination circuit, 8
... prediction circuit, 10 ... VLC circuit, 11, 31 ... buffer circuit, 12, 24, 36, 39 ... dequantization circuit, 15 ... deprediction coding circuit, 20 ... DCT circuit,
21, 24 ... Quantization circuit, 22, 35 ... Delay circuit,
23 ... Predictive coding circuit, 25 ... DPCM circuit, 37
...... Inverse DCT circuit, 38 ...... Inverse DPCM circuit, 40 ......
Inverse predictive coding circuit.

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成4年9月4日[Submission date] September 4, 1992

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】発明の名称[Name of item to be amended] Title of invention

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【発明の名称】 動画像符号化復号化装置Title: Video coding / decoding device

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0007[Correction target item name] 0007

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0007】[0007]

【発明が解決しようとする課題】ところが、予測符号化
方式は、画像信号の振幅の冗長性だけを圧縮するので、
空間周波数領域まで圧縮するデイスクリートコサイン変
換方式に比べて、圧縮率が低く、デイスクリートコサイ
ン変換方式と予測符号化方式とを単に切り換えるだけで
は、高い符号化効率は得られないという問題があつた。
However, since the predictive coding system compresses only the redundancy of the amplitude of the image signal,
The compression rate is lower than that of the discrete cosine transform method that compresses up to the spatial frequency domain, and there is a problem that high coding efficiency cannot be obtained by simply switching between the discrete cosine transform method and the predictive coding method. .

【手続補正3】[Procedure 3]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0008[Correction target item name] 0008

【補正方法】削除[Correction method] Delete

【手続補正4】[Procedure correction 4]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0012[Correction target item name] 0012

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0012】[0012]

【作用】1枚の画像をブロツクに分割し、ブロツク単位
で符号化する場合に、デイスクリートコサイン変換符号
化と予測符号化とを絵柄の性質に応じて切り換えるとと
もに、その切換に応じて可変長符号化の方法を切り換え
ることにより、符号化効率を向上することができ、全体
としての画質も向上することができる。
When one image is divided into blocks and is coded in block units, the discrete cosine transform coding and the predictive coding are switched according to the nature of the picture, and the variable length is changed according to the switching. By switching the encoding method, the encoding efficiency can be improved and the overall image quality can also be improved.

【手続補正5】[Procedure amendment 5]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0075[Correction target item name] 0075

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0075】ここで可変長符号化回路10は、切換回路
9を介してDCT処理部5又は予測符号化処理部6で符
号化された符号化データを入力すると、VLC方式
(1)又はVLC方式(2)に基づいて8×8画素の画
像データを可変長符号化処理する。すなわち判定回路7
において予測符号化を行う判定がなされた場合には、こ
のアルゴリズムにより、予測符号化処理部6で符号化さ
れた図16で与えられる8×8画素の信号を可変長符号
化する。この結果、最初の0でない信号は、1行4列目
の「2」なので、そこまでのゼロランの長さ3と組にし
て、符号は(3、2)を得る。
When the variable length coding circuit 10 receives the coded data coded by the DCT processing unit 5 or the predictive coding processing unit 6 via the switching circuit 9, the VLC system (1) or the VLC system is inputted. Based on (2), the image data of 8 × 8 pixels is subjected to variable length coding processing. That is, the determination circuit 7
When it is determined that the predictive coding is to be performed in, the 8 × 8 pixel signal coded by the predictive coding processing unit 6 and given in FIG. 16 is variable length coded by this algorithm. As a result, the first non-zero signal is "2" in the first row and fourth column, so the pair is combined with the length of zero run up to that point to obtain the code (3, 2).

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】画像を複数の画素に対応する単位ブロツク
に分割し、当該画素の画素データをフレーム内符号化又
はフレーム間符号化して伝送する動画像符号化復号化装
置において、 上記単位ブロツクに応じて、当該単位ブロツクの画素デ
ータをデイスクリートコサイン変換符号化又は予測符号
化すると共に、 上記単位ブロツクのデイスクリートコサイン変換符号化
又は予測符号化の切り換えに応じて切換情報を伝送し、 当該画素データをデイスクリートコサイン変換符号化す
る場合には、上記画素データのゼロ値の長さと画素値と
の組み合わせについて2次元可変長符号化して伝送し又
は復号し、 当該画素データを予測符号化する場合には、上記ゼロ値
の長さと上記画素値の差分値との組み合わせについて2
次元可変長符号化して伝送し又は復号することを特徴と
する動画像符号化復号化装置。
1. A moving picture coding / decoding apparatus which divides an image into unit blocks corresponding to a plurality of pixels and intra-frame-codes or inter-frame-codes pixel data of the pixels and transmits the unit data. Accordingly, the pixel data of the unit block is discretized cosine transform coded or predictively coded, and the switching information is transmitted according to the discreet cosine transform coding or the predictive coding of the unit block, and the pixel In the case of discrete cosine transform coding of data, in the case where the combination of the zero value length of the pixel data and the pixel value is two-dimensionally variable length coded, transmitted or decoded, and the pixel data is predictively coded. 2 for the combination of the length of the zero value and the difference value of the pixel value.
A moving picture coding / decoding apparatus, characterized in that it is dimensionally variable length coded for transmission or decoding.
【請求項2】上記単位ブロツク内の画素情報に不連続点
である場合には、上記単位ブロツクの画素データをデイ
スクリートコサイン変換符号化に代えて予測符号化して
伝送することを特徴とする請求項1に記載の動画像符号
化復号化装置。
2. When the pixel information in the unit block is a discontinuity point, the pixel data of the unit block is predictively encoded and transmitted instead of discrete cosine transform encoding. The moving picture coding / decoding apparatus according to Item 1.
JP27881991A 1991-09-30 1991-09-30 Dynamic picture coder-decoder Pending JPH0595542A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP27881991A JPH0595542A (en) 1991-09-30 1991-09-30 Dynamic picture coder-decoder
US07/951,111 US5475501A (en) 1991-09-30 1992-09-25 Picture encoding and/or decoding method and apparatus
GB9220429A GB2260239A (en) 1991-09-30 1992-09-28 Picture encoding and decoding
EP19920116736 EP0544080A3 (en) 1991-09-30 1992-09-30 Picture encoding and/or decoding method and apparatus
KR1019920017873A KR930007278A (en) 1991-09-30 1992-09-30 Picture coding and decoding apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27881991A JPH0595542A (en) 1991-09-30 1991-09-30 Dynamic picture coder-decoder

Publications (1)

Publication Number Publication Date
JPH0595542A true JPH0595542A (en) 1993-04-16

Family

ID=17602595

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27881991A Pending JPH0595542A (en) 1991-09-30 1991-09-30 Dynamic picture coder-decoder

Country Status (1)

Country Link
JP (1) JPH0595542A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003348599A (en) * 1997-06-20 2003-12-05 Matsushita Electric Ind Co Ltd Image processing method
JP2006229460A (en) * 2005-02-16 2006-08-31 Sony Corp Encoder and encoding method, recording medium, program, image processing system and image processing method
JP2006229459A (en) * 2005-02-16 2006-08-31 Sony Corp Encoder and encoding method, recording medium, program, image processing system and image processing method
USRE39318E1 (en) 1997-07-25 2006-10-03 Matsushita Electric Industrial Co., Ltd. Image processing method, image processing apparatus and data recording medium
WO2011114504A1 (en) * 2010-03-19 2011-09-22 株式会社 東芝 Encoder apparatus

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003348599A (en) * 1997-06-20 2003-12-05 Matsushita Electric Ind Co Ltd Image processing method
USRE39318E1 (en) 1997-07-25 2006-10-03 Matsushita Electric Industrial Co., Ltd. Image processing method, image processing apparatus and data recording medium
USRE41533E1 (en) 1997-07-25 2010-08-17 Panasonic Corporation Image processing method, image processing apparatus and data recording medium
JP2006229460A (en) * 2005-02-16 2006-08-31 Sony Corp Encoder and encoding method, recording medium, program, image processing system and image processing method
JP2006229459A (en) * 2005-02-16 2006-08-31 Sony Corp Encoder and encoding method, recording medium, program, image processing system and image processing method
JP4573112B2 (en) * 2005-02-16 2010-11-04 ソニー株式会社 Encoding apparatus and method, recording medium, program, and image processing system
WO2011114504A1 (en) * 2010-03-19 2011-09-22 株式会社 東芝 Encoder apparatus
JP5362099B2 (en) * 2010-03-19 2013-12-11 株式会社東芝 Encoder
US8649623B2 (en) 2010-03-19 2014-02-11 Kabushiki Kaisha Toshiba Encoding apparatus and encoding method

Similar Documents

Publication Publication Date Title
US7860159B2 (en) Quantization matrix for still and moving picture coding
US9521433B2 (en) Video encoding device, video decoding device, video encoding method, video decoding method, video encoding or decoding program
US10027962B2 (en) System, method and computer-readable medium for encoding a signal into macroblocks
US5475501A (en) Picture encoding and/or decoding method and apparatus
JP3025610B2 (en) Encoding method and apparatus
US5543843A (en) Communication jack nose cleaning tool
US20100172593A1 (en) Image encoding apparatus, image encoding method, and image encoding program
JPH06189281A (en) Video signal encoding device using compression of adaptive frame/field format
JP2006054902A (en) Image coding method
US7095448B2 (en) Image processing circuit and method for modifying a pixel value
JPH10107644A (en) Quantization device and method, and coder and method
JPH0595542A (en) Dynamic picture coder-decoder
JPH01228384A (en) Moving image coding system using area division
JP4089025B2 (en) Image encoding apparatus, image encoding method, image transmission system, and image transmission method
JPH0595543A (en) Moving picture coder-decoder
JPH05227513A (en) Video signal transmitter
JPH08256337A (en) Moving image coder
JPH05276506A (en) Coding and decoding device for moving picture
JPH04362886A (en) Quantizing method in image coding
JPH05336513A (en) Video signal encoding device
KR0178226B1 (en) Method for correcting distort factor in image encoder
JPH04196790A (en) Quantizer
JPH03247189A (en) Video encoder
JPH04196791A (en) Quantizer
JPH05211647A (en) Image processor