JPH05276506A - Coding and decoding device for moving picture - Google Patents
Coding and decoding device for moving pictureInfo
- Publication number
- JPH05276506A JPH05276506A JP29046292A JP29046292A JPH05276506A JP H05276506 A JPH05276506 A JP H05276506A JP 29046292 A JP29046292 A JP 29046292A JP 29046292 A JP29046292 A JP 29046292A JP H05276506 A JPH05276506 A JP H05276506A
- Authority
- JP
- Japan
- Prior art keywords
- block
- coding
- intra
- discrete cosine
- cosine transform
- 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
Links
- 238000012545 processing Methods 0.000 claims abstract description 73
- 238000000034 method Methods 0.000 claims description 120
- 238000013139 quantization Methods 0.000 claims description 96
- 230000003044 adaptive effect Effects 0.000 claims description 28
- 238000007906 compression Methods 0.000 abstract description 14
- 230000006835 compression Effects 0.000 abstract description 13
- 230000009466 transformation Effects 0.000 abstract 7
- 238000010586 diagram Methods 0.000 description 24
- 230000005540 biological transmission Effects 0.000 description 12
- 238000006243 chemical reaction Methods 0.000 description 12
- 238000004364 calculation method Methods 0.000 description 10
- 230000006866 deterioration Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 230000008859 change Effects 0.000 description 6
- 230000000875 corresponding effect Effects 0.000 description 6
- 238000001514 detection method Methods 0.000 description 6
- 230000015654 memory Effects 0.000 description 6
- 230000000903 blocking effect Effects 0.000 description 4
- 239000012141 concentrate Substances 0.000 description 4
- 230000002093 peripheral effect Effects 0.000 description 4
- 101150062184 DSP4 gene Proteins 0.000 description 3
- SDJLVPMBBFRBLL-UHFFFAOYSA-N dsp-4 Chemical compound ClCCN(CC)CC1=CC=CC=C1Br SDJLVPMBBFRBLL-UHFFFAOYSA-N 0.000 description 3
- 101150115013 DSP1 gene Proteins 0.000 description 2
- 241000255925 Diptera Species 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 102100022441 Sperm surface protein Sp17 Human genes 0.000 description 1
- 101100438139 Vulpes vulpes CABYR gene Proteins 0.000 description 1
- 102220477411 Zinc finger protein 280A_K51A_mutation Human genes 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000002247 constant time method Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000013213 extrapolation Methods 0.000 description 1
- 239000004615 ingredient Substances 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 238000007788 roughening Methods 0.000 description 1
Landscapes
- Image Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
【0001】[0001]
【目次】以下の順序で本発明を説明する。 産業上の利用分野 従来の技術 発明が解決しようとする課題 課題を解決するための手段 作用 実施例 (1)全体の構成(図1、図2) (2)デイスクリートコサイン変換符号化処理部(図
3、図4) (3)ブロツク内予測符号化処理部(図5〜図17) (4)符号化方式切換判定器(図18〜図28) (5)可変長符号器(図29、図30) (6)復号化装置(図31) (7)その他実施例の説明に必要な図面(図32〜図3
4) 発明の効果[Table of Contents] The present invention will be described in the following order. Field of Industrial Application Conventional Techniques Problems to be Solved by the Invention Means for Solving the Problems Action Example (1) Overall configuration (FIGS. 1 and 2) (2) Discrete cosine transform encoding processing unit ( (FIGS. 3 and 4) (3) Intra-block predictive coding processing unit (FIGS. 5 to 17) (4) Coding method switching decision unit (FIGS. 18 to 28) (5) Variable length coder (FIG. 29, FIG. 29) (FIG. 30) (6) Decoding device (FIG. 31) (7) Drawings necessary for explaining other embodiments (FIGS. 32 to 3)
4) Effects of the invention
【0002】[0002]
【産業上の利用分野】本発明は動画像符号化及び復号化
装置に関し、特に動画像信号を圧縮して伝送できるよう
にしたものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture coding and decoding apparatus, and more particularly to a moving picture signal which can be compressed and transmitted.
【0003】[0003]
【従来の技術】動画像符号化方式の代表的なものとし
て、2次元のデイスクリートコサイン変換(DCT、Di
screte Cosine Transform)符号化方式と、予測符号化方
式とがある。デイスクリートコサイン変換(DCT)方
式は画像信号が2次元相関性をもつていることを利用し
て、信号電力を所定の周波数成分に集中させ、その結果
得られる信号電力周波数成分の分布状態を係数で表わし
て符号化することにより情報量を圧縮できるようにす
る。例えば、絵柄が平坦で動画像信号の自己相関性が高
い部分ではデイスクリートコサイン変換係数(DCT係
数)は低周波数成分に集中するように分布する。従つて
この場合は、低域に集中するように分布した係数を符号
化するだけで伝送すべき情報を表すことができることに
より情報量の圧縮ができる結果になる。2. Description of the Related Art Two-dimensional Discrete Cosine Transform (DCT, Di
screte Cosine Transform) coding method and predictive coding method. The Discrete Cosine Transform (DCT) method uses the fact that image signals have two-dimensional correlation, so that the signal power is concentrated on a predetermined frequency component, and the distribution state of the resulting signal power frequency component is a coefficient. It is possible to compress the amount of information by expressing it by encoding. For example, the discrete cosine transform coefficient (DCT coefficient) is distributed so as to concentrate on the low frequency component in the portion where the pattern is flat and the autocorrelation of the moving image signal is high. Therefore, in this case, the information amount can be compressed because the information to be transmitted can be represented only by coding the coefficients distributed so as to concentrate in the low frequency band.
【0004】しかし、このデイスクリートコサイン変換
方式によると、輪郭(画像エツジ(edge)など)を含む
画像信号のように、信号の不連続点をDCT係数によつ
て精度良く表して伝送しようとする場合には、DCT係
数が低周波数成分から高周波数成分まで広く分散して発
生するため、非常に多くの係数を必要とし、符号化効率
が落ちる問題がある。この問題を解決する方法として従
来動画像を高圧縮符号化するために係数の量子化特性を
粗くしたり、高周波数成分の係数を切り捨てたりする方
法が用いられたが、動画像信号の劣化が目立つようにな
り、対策としては未だ不充分である。例えば、輪郭の周
囲に揺らぎのような歪み(コロナ・イフエクト、モスキ
ート・ノイズという)が発生する。However, according to this discrete cosine transform method, it is attempted to accurately represent a discontinuity of a signal by a DCT coefficient, such as an image signal including a contour (image edge). In this case, since the DCT coefficients are widely dispersed from low frequency components to high frequency components, a very large number of coefficients are required, and there is a problem that coding efficiency drops. As a method for solving this problem, conventionally, a method of roughening the quantization characteristic of the coefficient in order to highly compress and encode the moving image or a method of discarding the coefficient of the high frequency component was used, but the deterioration of the moving image signal It has become noticeable and is still insufficient as a countermeasure. For example, a distortion-like distortion (called corona effect or mosquito noise) occurs around the contour.
【0005】これに対して、予測符号化方式は、動画像
の輪郭部分では目の輝度弁別度が低いという性質を利用
して量子化特性を粗くするようにしたもので、比較的高
圧縮符号化ができる利点がある。しかしこの予測符号化
方式による場合、動画像の平坦部について量子化特性を
粗くすると、擬似輪郭や粒子状雑音などのように視覚的
に目立つ劣化が現れ易い。従つて当該平坦部の高圧縮手
段として予測符号化は適さない問題がある。On the other hand, the predictive coding system is one in which the quantization characteristic is made coarse by utilizing the property that the luminance discrimination of the eyes is low in the contour portion of the moving image, and a relatively high compression code is used. There is an advantage that can be realized. However, in the case of this predictive coding method, if the quantization characteristic is roughened in the flat part of the moving image, visually noticeable deterioration such as pseudo contours and particle noise is likely to occur. Therefore, there is a problem that predictive coding is not suitable as a high compression means for the flat portion.
【0006】そこで、デイスクリートコサイン変換(D
CT)方式と予測符号化方式の欠点を互いに補い合うよ
うにさせることにより、絵柄の性質に基づいて、ブロツ
ク単位でデイスクリートコサイン変換(DCT)方式
と、ブロツク内予測符号化方式とを切り換えることによ
り高圧縮符号化をすることが考えられる。すなわち、画
像の平坦ブロツクではデイスクリートコサイン変換(D
CT)方式を用いるのに対して、画像の輪郭部分ではブ
ロツク内予測符号化(NTC、Non Transform Coding)
を用いるようにすれば良いと考えられる。Therefore, the discrete cosine transform (D
By compensating for the drawbacks of the CT) method and the predictive coding method, the discrete cosine transform (DCT) method and the intra-block predictive coding method are switched on a block-by-block basis based on the nature of the picture. High compression coding is considered. That is, in the flat block of the image, the discrete cosine transform (D
In contrast to the CT method, intra-block predictive coding (NTC, Non Transform Coding) is applied to the contour portion of the image.
It would be better to use.
【0007】[0007]
【発明が解決しようとする課題】ブロツク単位でブロツ
ク内予測符号化をする場合に問題となるのは、粗い量子
化をしたとき発生するブロツク歪みである。具体的に
は、符号化の結果、ブロツクごとにモザイク状に見える
現象が生じる。ブロツク内予測符号化の場合、粗い量子
化により発生する量子化誤差が直接輝度レベルの変化
(劣化)として現れ、そのためこの輝度レベルの変化が
隣接しているブロツクの境界で大きく現れると、視覚的
にブロツクの形状がモザイク状に目立つ結果になる。A problem in the intra-block predictive coding on a block-by-block basis is the block distortion that occurs when coarse quantization is performed. Specifically, as a result of encoding, a phenomenon occurs that each block looks like a mosaic. In intra-block predictive coding, the quantization error caused by coarse quantization appears directly as a change (deterioration) in the brightness level, so that when this change in brightness level appears significantly at the boundary between adjacent blocks, it is visually The result is that the shape of the block stands out like a mosaic.
【0008】本発明は以上の点を考慮してなされたもの
で、ブロツク単位で動画像の圧縮符号化データを伝送す
る際に、復元した動画像にブロツク歪を生じさせないよ
うにした動画像符号化及び復号化装置を提案しようとす
るものである。The present invention has been made in consideration of the above points, and when transmitting compression coded data of a moving image in block units, a moving image code which does not cause block distortion in a restored moving image. An attempt is made to propose an encoding and decoding device.
【0009】[0009]
【課題を解決するための手段】かかる課題を解決するた
め本発明においては、1枚の動画像を複数のブロツクに
分割してブロツク単位で符号化する場合に、デイスクリ
ートコサイン変換符号化とブロツク内予測符号化とを、
絵柄の性質に応じて、適応的に切り換える。In order to solve such a problem, in the present invention, when one moving image is divided into a plurality of blocks and is coded in block units, discrete cosine transform coding and block coding are performed. Inner predictive coding,
Switch adaptively according to the nature of the design.
【0010】ここで第1に動画像の平坦部ではデイスク
リートコサイン変換(DCT)符号化方式を用いる。こ
のときDCT符号化方式によつて粗い量子化をしても復
元動画像としてデイスクリートコサイン変換の際の演算
精度に応じた滑らかさが得られる。第2に動画像の輪郭
部分ではブロツク内予測符号化方式を用いる。このと
き、粗い量子化によつて生ずるブロツク歪みを軽減させ
るために、ブロツクの代表値BASE1と量子化幅、又
は代表値BASE1並びにBASE1ともう1つのブロ
ツクの代表値BASE2との差値Dと、量子化幅Qとを
伝送することにより適応量子化をする。復号化装置で
は、切換情報、ブロツクの代表値BASE1及び量子化
幅Q、又はブロツクの代表値BASE1、差値D及び量
子化幅Qとを用いて画像を復号する。First, the Discrete Cosine Transform (DCT) coding method is used in the flat portion of the moving image. At this time, even if coarse quantization is performed by the DCT coding method, smoothness corresponding to the calculation accuracy in the discrete cosine transform can be obtained as the restored moving image. Second, the intra-block predictive coding method is used in the contour portion of the moving image. At this time, in order to reduce the block distortion caused by coarse quantization, the block representative value BASE1 and the quantization width, or the representative value BASE1 and the difference value D between the BASE1 and the representative value BASE2 of another block, Adaptive quantization is performed by transmitting the quantization width Q. The decoding device decodes the image using the switching information, the block representative value BASE1 and the quantization width Q, or the block representative value BASE1, the difference value D and the quantization width Q.
【0011】[0011]
【作用】本発明においては、画像内及び画像間符号化を
する動画像符号化装置において、画像内及び画像間信号
に対して、符号化方式を符号化する単位領域(ブロツ
ク)ごとに、DCT符号化又はブロツク内予測符号化に
適応的に切り換える。かくして従来のデイスクリートコ
サイン変換(DCT)符号化だけしかもたない動画像符
号化装置に、符号化ブロツクごとにデイスクリートコサ
イン変換(DCT)符号化又はブロツク内予測符号化方
式(NTC)の切換情報フラグを付加するか、又は単位
領域(マクロブロツク)の符号化方法を示す指示情報を
拡張して、NTCモードを設けることよつて、DCT又
はNTCの切り換えをできるようにする。これにより、
動画像をさらに一段と高能率符号化できると共に、この
高能率符号化データに基づいて一段と高画質の動画像を
復号することができる。According to the present invention, in a moving picture coding apparatus for coding an intra-picture and an inter-picture, a DCT is performed for each unit area (block) for coding an intra-picture and inter-picture signals. Adaptively switch to coding or intra-block predictive coding. Thus, in a moving picture coding apparatus having only conventional Discrete Cosine Transform (DCT) coding, switching information of Discrete Cosine Transform (DCT) coding or intra-block predictive coding (NTC) coding is provided for each coding block. A DCT or NTC can be switched by adding a flag or expanding instruction information indicating an encoding method of a unit area (macro block) and providing an NTC mode. This allows
It is possible to further highly efficiently encode the moving image, and it is possible to decode the moving image with higher image quality based on the highly efficient encoded data.
【0012】[0012]
【実施例】以下図面について、本発明による動画像符号
化及び復号化装置の一実施例を詳述する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a moving picture coding and decoding apparatus according to the present invention will be described in detail below with reference to the drawings.
【0013】(1)全体の構成 図1において、DV1は全体として符号化装置を示し、
デイジタル入力動画像はブロツク化回路により例えば8
×8画素のブロツクにブロツク化されてブロツク化デイ
ジタル入力画像信号として入力され、順次デイスクリー
トコサイン変換(DCT)符号化処理部1、ブロツク内
予測符号化(NTC)処理部2、及び符号化方式切換判
定器3において処理なされる。すなわち、入力されたブ
ロツク化デイジタル入力画像信号DINは予測器5及び差
分演算回路8に与えられ、差分演算回路8においてフレ
ーム内符号化又はフレーム間符号化処理をすることによ
り予測器5の予測信号S1とブロツク化デイジタル入力
画像信号DINとの差分信号S2を得、これを後述するブ
ロツク化回路28によりブロツク化差分信号S2bとし
て、デイスクリートコサイン変換(DCT)符号化処理
部1及びブロツク内予測符号化(NTC)処理部2に与
える。(1) Overall Configuration In FIG. 1, DV1 indicates an encoding device as a whole,
The digital input moving image is, for example, 8 by a block circuit.
Blocked into a block of × 8 pixels and inputted as a blocked digital input image signal, and in sequence, a Discrete Cosine Transform (DCT) coding processing unit 1, an intra-block prediction coding (NTC) processing unit 2, and a coding method. Processing is performed in the switching determination device 3. That is, the input block digital input image signal DIN is supplied to the predictor 5 and the difference calculation circuit 8, and the difference calculation circuit 8 performs intra-frame coding or inter-frame coding processing to predict the prediction signal of the predictor 5. A differential signal S2 between S1 and the block digital input image signal DIN is obtained, and this is converted into a block differential signal S2b by a block circuit 28, which will be described later, as a discrete cosine transform (DCT) encoding processing unit 1 and an intra-block prediction code. (NTC) processing unit 2.
【0014】なおこの実施例においては、フレーム内符
号化又はフレーム間符号化処理をするようにした場合に
ついて説明するが、これに代え、フイールド内符号化又
はフイールド間符号化処理をしても良く、要は画像内
(フレーム内又はフイールド内)符号化又は画像間(フ
レーム間又はフイールド間)符号化処理をする場合を含
む。In this embodiment, the case where the intra-frame coding or inter-frame coding processing is performed will be described. However, instead of this, intra-field coding or inter-field coding processing may be performed. The main point includes the case of performing intra-image (intra-frame or intra-field) encoding or inter-image (inter-frame or inter-field) encoding processing.
【0015】フレーム内符号化又はフレーム間符号化処
理をする場合、ブロツク化差分信号S2bが、それを構
成するブロツクがフレーム単位で構成するかフイールド
単位で構成するかがブロツク化回路28において決定さ
れ、そのモードに基づいてブロツク化差分信号S2bを
形成する。ブロツク化モードの決定は、例えば差分信号
S2が16×16画素(ブロツク、又はマクロブロツク
という)で構成されている場合、図33に示すアルゴリ
ズムにより行なわれ、その指示に基づいて図34a、b
に示す様に4つの8×8画素のサブブロツクにブロツキ
ング処理が行なわれ、ブロツク化差分信号S2bを得
る。ここでフレーム単位のブロツクとは、図34aに示
される様に、各サブブロツクが奇数フイールド(斜線部
分)及び偶数フイールド(白地部分)の両画素を含むブ
ロツクを言う。これに対して、フイールド単位のブロツ
クとは、図34bに示される様に、各サブブロツクが奇
数フイールド又は偶数フイールドの画素のみで構成され
るブロツクを言う。また、ブロツクがフレーム単位で構
成するかフイールド単位で構成するかのブロツク化回路
28での決定は、ブロツキングモード指示信号S15と
して、後述する可変長符号化器6に供給される。In the case of intra-frame coding or inter-frame coding, the block difference circuit 28 determines whether the block difference signal S2b is composed of frame units or field units. , The block differential signal S2b is formed based on the mode. The block mode is determined by the algorithm shown in FIG. 33 when the difference signal S2 is composed of 16 × 16 pixels (referred to as a block or macroblock), and the determination of the block mode is performed based on the instruction shown in FIGS.
Blocking processing is performed on four 8 × 8 pixel sub-blocks to obtain a block difference signal S2b as shown in FIG. Here, the block in frame units means a block in which each sub-block includes both an odd field (hatched portion) and an even field (white portion), as shown in FIG. 34a. On the other hand, the block in the unit of field means a block in which each sub-block is composed of only pixels of odd field or even field, as shown in FIG. 34b. Further, the decision as to whether the block is formed in the frame unit or the field unit in the block circuit 28 is supplied to the variable length encoder 6 described later as a block mode instruction signal S15.
【0016】デイスクリートコサイン変換(DCT)符
号化処理部1はデイスクリートコサイン変換(DCT)
回路11において、ブロツク化差分信号S2bをデイス
クリートコサイン変換することによりデイスクリートコ
サイン変換符号化信号S3を得、これを第1の量子化器
12において量子化することにより量子化信号S4に変
換した後、量子化信号S4を遅延回路13を介して第1
の選択器4Aのデイスクリートコサイン変換(DCT)
符号化側入力端aに送出する。Discrete cosine transform (DCT) encoding processing unit 1 is a discrete cosine transform (DCT).
In the circuit 11, the discrete cosine transform coded signal S3 is obtained by subjecting the block difference signal S2b to the discrete cosine transform, and is converted into the quantized signal S4 by being quantized in the first quantizer 12. Then, the quantized signal S4 is passed through the delay circuit 13 to the first
Discrete Cosine Transform (DCT) of Selector 4A
It is sent to the encoding side input end a.
【0017】第1の選択器4Aの選択出力S5は可変長
符号化器(VLC)6において伝送管理情報S7と共に
可変長符号化信号S6に変換された後、バツフア回路7
に一時的に蓄積され、バツフア回路7が例えば伝送ライ
ン、記録装置などの伝送系8の伝送速度に適合する転送
速度で伝送データDOUT を送出する。The selection output S5 of the first selector 4A is converted into the variable length coded signal S6 together with the transmission management information S7 in the variable length coder (VLC) 6, and then the buffer circuit 7 is provided.
The buffer circuit 7 sends out the transmission data DOUT at a transfer rate which is temporarily stored in the buffer circuit 7 and which is compatible with the transfer rate of the transmission system 8 such as a transmission line or a recording device.
【0018】第1の量子化器12の量子化信号S4は第
1の逆量子化器14及び逆デイスクリートコサイン変換
(DCT)回路15において逆変換されて第2の選択器
4Bのデイスクリートコサイン変換符号化側入力端aを
介して予測器5にフイードバツクされ、かくして予測器
5においてバツフア回路7に送り込んだ可変長符号化信
号S6によつて表される1フレーム前の予測画像を復元
して予測信号S1として差分演算回路8に供給する。The quantized signal S4 of the first quantizer 12 is inversely transformed by the first inverse quantizer 14 and the inverse discrete cosine transform (DCT) circuit 15 to generate the discrete cosine of the second selector 4B. The predicted image of one frame before, which is fed back to the predictor 5 via the transform coding side input terminal a and is thus fed to the buffer circuit 7 in the predictor 5, is reproduced. It is supplied to the difference calculation circuit 8 as the prediction signal S1.
【0019】予測器5は予測信号S1を発生する際に、
動きベクトル、予測モード、差分演算回路8における演
算方式(すなわちフレーム内/フレーム間符号化)など
の管理データを発生し、これを可変長符号化器6に伝送
管理信号S7として供給することにより選択出力S5の
データと共に可変長符号化信号S6に符号化する。デイ
スクリートコサイン変換(DCT)符号化処理部1とし
ては、例えば電子情報通信学会論文誌1987年/1 Vol.J
70-B No.1 p96-104 「HDTV信号のフレーム内/フレ
ーム間適応外挿内挿予測符号化」に開示のもの、又は特
願平2-410247号に記載のものを適用し得る。When the predictor 5 generates the prediction signal S1,
Selection is performed by generating management data such as a motion vector, a prediction mode, a calculation method in the difference calculation circuit 8 (that is, intraframe / interframe coding), and supplying this to the variable length encoder 6 as a transmission management signal S7. The variable length coded signal S6 is coded together with the data of the output S5. The Discrete Cosine Transform (DCT) encoding processing unit 1 is, for example, the Institute of Electronics, Information and Communication Engineers, 1987/1 Vol.J.
70-B No. 1 p96-104 The one disclosed in "Intra-frame / inter-frame adaptive extrapolation prediction coding of HDTV signal" or the one described in Japanese Patent Application No. 2-410247 can be applied.
【0020】ブロツク化回路28のブロツク化差分信号
S2bはブロツク内予測符号化(NTC)処理部2のブ
ロツク内予測器21に与えられ、ブロツク内予測器21
はこのブロツク化差分信号S2bについてブロツク内の
代表値を求めた後、当該代表値と各画素値との差信号を
求め、この差信号を予測符号化信号S10として第2の
量子化器22に与えて量子化信号S11に変換させ、こ
れをスキヤンコンバータ23に送出させる。The block differential signal S2b of the block circuit 28 is supplied to the intra-block predictor 21 of the intra-block predictive coding (NTC) processing unit 2, and the intra-block predictor 21 is supplied.
After obtaining the representative value in the block for this block difference signal S2b, the difference signal between the representative value and each pixel value is obtained, and this difference signal is supplied to the second quantizer 22 as the prediction encoded signal S10. It is supplied and converted into a quantized signal S11, which is sent to the scan converter 23.
【0021】スキヤンコンバータ23は量子化信号S1
1の画素データの配列をさらに一段とデータ圧縮できる
ように変換し直した後、当該変換量子化信号S12を切
換回路27Aの差分化側入力端cを介して差分化器24
に供給し、その差分化出力S13を切換回路27Bを介
して第1の選択器4Aのブロツク内予測符号化側入力端
bに送出する。切換回路27A及び27Bはバイパス側
入力端dを通じて、変換量子化信号S12を必要に応じ
て差分化器24をバイパスして第1の選択器4Aのブロ
ツク内予測符号化(NTC)側入力端bに供給できるよ
うになされている。The scan converter 23 is a quantized signal S1.
After re-converting the array of 1 pixel data so that the data can be further compressed, the converted quantized signal S12 is changed by the differencer 24 via the differencer-side input end c of the switching circuit 27A.
And outputs the differential output S13 to the intra-block predictive coding side input end b of the first selector 4A via the switching circuit 27B. The switching circuits 27A and 27B pass the transformed quantized signal S12 through the differentiator 24 as necessary through the bypass-side input end d, and the intra-block predictive coding (NTC) -side input end b of the first selector 4A. It can be supplied to.
【0022】かくしてブロツク化差分信号S2bをブロ
ツク内予測符号化してなる圧縮画像データが可変長符号
器6を介してバツフア回路7に送出される。ここで遅延
回路13は、デイスクリートコサイン変換(DCT)符
号化処理部1における処理時間を、ブロツク内予測符号
化(NTC)処理部2における処理時間に合わせるため
に用いられている。Thus, the compressed image data obtained by intra-block predictive coding of the block difference signal S2b is sent to the buffer circuit 7 via the variable length encoder 6. Here, the delay circuit 13 is used to match the processing time in the discrete cosine transform (DCT) coding processing unit 1 with the processing time in the intra-block predictive coding (NTC) processing unit 2.
【0023】第2の量子化器22の量子化信号S11は
第2の逆符号化器25及び逆ブロツク内予測器26によ
つて予測差分信号S14に逆変換されて第2の選択器4
Bの予測符号化側入力端bを通じて予測器5にフイード
バツクされ、これにより予測器5においてバツフア回路
7に送り込んだ可変長符号化信号S6によつて表される
1フレーム前の予測画像を復元して予測信号S1を得る
ようになされている。The quantized signal S11 of the second quantizer 22 is inversely converted into a prediction difference signal S14 by the second inverse encoder 25 and the intra-inverse block predictor 26, and the second selector 4 is selected.
The predicted image of one frame before represented by the variable length coded signal S6 fed back to the buffer circuit 7 in the predictor 5 is restored through the predictive coding side input terminal b of B. To obtain the prediction signal S1.
【0024】これに加えてブロツク化回路28のブロツ
ク化差分信号S2b及びデイスクリートコサイン変換回
路11のデイスクリートコサイン変換信号S3が符号化
方式切換判定器3に供給され、これにより、ブロツク内
の絵柄について、デイスクリートコサイン変換が情報の
圧縮率において不利であるか否かを判定して符号化方式
切換信号S20を発生し、これによりデイスクリートコ
サイン変換方式が有利な場合には第1及び第2の選択器
4A及び4Bをデイスクリートコサイン変換符号化側入
力端aに切り換えることにより、デイスクリートコサイ
ン変換符号化処理部1によつてブロツク化差分信号S2
bの符号化を実行させる。In addition to this, the block differential signal S2b of the block circuit 28 and the discrete cosine conversion signal S3 of the discrete cosine conversion circuit 11 are supplied to the coding system switching judging device 3, whereby the pattern in the block is supplied. , The discreet cosine transform is disadvantageous in the compression ratio of the information to generate the coding system switching signal S20, and when the discrete cosine transform system is advantageous, the first and second By switching the selectors 4A and 4B to the input terminal a on the discrete cosine transform coding side, the discrete cosine transform coding processing unit 1 causes the block differential signal S2
Encode b.
【0025】これに対してデイスクリートコサイン変換
方式による情報の圧縮率が不利な場合には、符号化方式
切換判定器3は符号化方式切換信号S20によつて第1
及び第2の選択器4A及び4Bをブロツク内予測符号化
側入力端b側に切り換えることにより、ブロツク内予測
符号化処理部2によつてブロツク化差分信号S2bの符
号化を実行させる。On the other hand, when the compression rate of the information by the discrete cosine transform method is unfavorable, the coding method switching judging device 3 uses the coding method switching signal S20 as the first signal.
By switching the second selectors 4A and 4B to the side of the intra-block predictive coding side input terminal b, the intra-block predictive coding processing section 2 executes coding of the block differential signal S2b.
【0026】符号化方式切換判定器3は符号化方式切換
信号S20を発生する際に、現在選択した符号化方式を
表す符号化方式切換信号を発生し、これを伝送管理信号
S7として可変長符号化器6に供給する。When generating the coding method switching signal S20, the coding method switching determiner 3 generates a coding method switching signal representing the currently selected coding method, which is used as a transmission management signal S7 in a variable length code. Supply to the rectifier 6.
【0027】このようにして符号化装置DV1から伝送
系8に供給された伝送データDOUTは、図2に示す復号
化装置DV2のバツフア回路31に取り込まれ、逆可変
長符号器32において逆符号化され、復号量子化信号S
21、管理信号(符号化方式切換信号S24、予測モー
ド信号S25、及びブロツキングモード信号S26等)
が分離される。かくして伝送データDOUT のうち復号量
子化信号S21が遅延回路33を介して逆量子化器34
において逆量子化された後、逆デイスクリートコサイン
変換回路35において逆デイスクリートコサイン変換さ
れることにより差分信号S22を復元し、これを切換回
路40の逆デイスクリートコサイン変換側入力端aを介
して加算復元回路41に供給する。図1の符号化器にお
いて量子化器12と量子化器22は、その特性が等しい
場合は共有することが可能である。同様に逆量子化器1
4と逆量子化器22もその特性が等しい場合は共有する
ことが可能である。The transmission data DOUT thus supplied from the encoding device DV1 to the transmission system 8 is taken into the buffer circuit 31 of the decoding device DV2 shown in FIG. 2 and inversely encoded by the inverse variable length encoder 32. And the decoded quantized signal S
21, management signal (encoding system switching signal S24, prediction mode signal S25, blocking mode signal S26, etc.)
Are separated. Thus, the decoded quantized signal S21 of the transmission data DOUT is passed through the delay circuit 33 to the inverse quantizer 34.
After being inversely quantized at, the inverse discrete cosine transform circuit 35 performs inverse discrete cosine transform to restore the difference signal S22, and the difference signal S22 is restored via the inverse discrete cosine transform side input terminal a of the switching circuit 40. It is supplied to the addition / restoration circuit 41. In the encoder of FIG. 1, the quantizer 12 and the quantizer 22 can be shared if their characteristics are the same. Similarly, the inverse quantizer 1
4 and the inverse quantizer 22 can be shared if their characteristics are the same.
【0028】また復号量子化信号S21は切換回路42
A及び42Bの差分化器側入力端cを介して逆差分化器
36において逆差分化処理を受けて逆スキヤンコンバー
タ37に与えられ、又は切換回路42A及び42Bのバ
イパス側入力端dを介して直接逆スキヤンコンバータ3
7に供給される。かくして復号量子化信号S21は逆ス
キヤンコンバータ37において元のスキヤン順序に復元
された後逆量子化器38、逆ブロツク内予測器39にお
いて順次逆変換され、かくして復元された差分信号S2
3を切換回路40のブロツク内予測符号化側入力端bを
介して加算復元回路41に与える。なお、図2の復号化
器において逆スキヤンコンバータ37と逆量子化器38
はその順序の入れ換えを行なうことが可能である。Further, the decoded quantized signal S21 is transferred to the switching circuit 42.
Inverse differencer 36 receives the inverse differencer through the differencer-side input end c of A and 42B and is given to inverse scan converter 37, or directly reverses through bypass-side input end d of switching circuits 42A and 42B. Sukiyan Converter 3
7 is supplied. Thus, the decoded quantized signal S21 is restored to the original scan order in the inverse scan converter 37, and subsequently inversely transformed in the inverse quantizer 38 and the intra-block predictor 39, and the differential signal S2 thus restored is restored.
3 is supplied to the addition / restoration circuit 41 via the intra-block predictive coding side input terminal b of the switching circuit 40. In addition, in the decoder of FIG. 2, the inverse scan converter 37 and the inverse quantizer 38
Can change their order.
【0029】切換回路40には逆可変長符号器32にお
いて分離された管理信号のうち、符号化方式切換信号S
24が与えられ、これにより現在伝送されてきた復号量
子化信号S21の符号化方式に応じて切換回路40を入
力端a又はb側に切り換えるようになされている。切換
回路40の出力は、逆ブロツク化回路44に供給され
る。逆ブロツク化回路44には逆可変長符号化器32に
おいて分離された管理信号のうち、ブロツキングモード
信号S26が与えられ、これにより、現在伝送されてき
た差分信号S22又はS23は、ブロツクが再構成され
る。In the switching circuit 40, of the management signals separated by the inverse variable length encoder 32, the coding system switching signal S is selected.
24 is provided, whereby the switching circuit 40 is switched to the input end a or b side in accordance with the coding system of the decoded quantized signal S21 which is currently transmitted. The output of the switching circuit 40 is supplied to the reverse block circuit 44. Of the management signals separated by the inverse variable length encoder 32, the inverse block circuit 44 is supplied with the blocking mode signal S26, whereby the currently transmitted difference signal S22 or S23 is blocked. Reconstructed.
【0030】加算復元回路41は逆ブロツク化回路44
からの出力信号と予測器43において得られる予測信号
S24とを加算し、その加算出力を復元データDOUTXと
して送出する。予測器43は逆可変長符号器32におい
て分離された管理信号のうち、動きベクトル、予測モー
ド信号S25を受けて前回伝送されて来た1フレーム前
の画像データを復元データDOUTXに基づいて再現してこ
れを予測信号S24として加算復元回路41に与え、こ
れにより現在伝送されて来た逆ブロツク化回路44から
の出力信号基づいて、1フレーム分の画像データを表す
復元データDOUTXを得るようになされている。図2の復
号化器において逆量子化器34と逆量子化器38は、そ
の特性が等しい場合は共有することが可能である。The addition restoration circuit 41 is an inverse block circuit 44.
And the prediction signal S24 obtained by the predictor 43 are added, and the addition output is sent as the restored data DOUTX. The predictor 43 receives the motion vector and the prediction mode signal S25 among the management signals separated by the inverse variable-length encoder 32, and reproduces the image data of one frame before transmitted based on the restored data DOUTX. This is applied to the addition / restoration circuit 41 as a prediction signal S24, whereby the restoration data DOUTX representing one frame of image data is obtained based on the output signal from the inverse block circuit 44 which is currently transmitted. ing. In the decoder of FIG. 2, the inverse quantizer 34 and the inverse quantizer 38 can be shared if their characteristics are the same.
【0031】以上の構成の符号化装置DV1(図1)及
び復号化装置DV2(図2)は以下に述べるような詳細
構成を有する。The encoding device DV1 (FIG. 1) and the decoding device DV2 (FIG. 2) having the above configurations have detailed configurations as described below.
【0032】(2)デイスクリートコサイン変換符号化
処理部1 先ず符号化装置DV1(図1)のデイスクリートコサイ
ン変換符号化処理部1のデイスクリートコサイン変換回
路11は、入力されたブロツク化差分信号S2bの変化
(従つて輝度変化)が滑らかなとき、デイスクリートコ
サイン変換方式について一般に知られているように、デ
イスクリートコサイン変換信号S3の値(すなわちDC
T係数値)として、直流(DC)係数の周辺に大きな値
が集中する傾向がある2次元画像の特徴を利用して圧縮
処理を実行する。(2) Discrete Cosine Transform Coding Processor 1 First, the discrete cosine transform circuit 11 of the discrete cosine transform coding processor 1 of the coding device DV1 (FIG. 1) receives the input block differential signal. When the change in S2b (and hence the change in luminance) is smooth, the value of the discrete cosine conversion signal S3 (that is, DC, as is generally known for the discrete cosine conversion method).
As the T coefficient value), the compression process is executed using the characteristics of the two-dimensional image in which large values tend to concentrate around the direct current (DC) coefficient.
【0033】例えば図3において、1つのブロツク(8
×8画素)の原画像K1について、各画素の情報量を数
字 0〜100 によつて模式的に示すと、原画像K1は左上
隅から右下隅の方向に滑らかに輝度が変化しており、各
画素が30から 100の輝度レベルをもつている。この原画
像K1についてデイスクリートコサイン変換回路11に
おいてデイスクリートコサイン変換(DCT)処理をす
ると、変換画像K2として示すように、デイスクリート
コサイン変換信号S3においてブロツク内のDCT係数
はほとんどが0になる。また0以外の値を有するDCT
係数は、左上隅から右下隅の対角線上に存在する。For example, in FIG. 3, one block (8
For the original image K1 of (× 8 pixels), when the information amount of each pixel is schematically shown by the numbers 0 to 100, the original image K1 has a smooth luminance change from the upper left corner to the lower right corner, Each pixel has a brightness level of 30 to 100. When the discrete cosine transform circuit 11 performs the discrete cosine transform (DCT) process on the original image K1, the DCT coefficient in the block becomes almost 0 in the discrete cosine transform signal S3 as shown as a transformed image K2. DCT having a value other than 0
The coefficients lie on the diagonal from the upper left corner to the lower right corner.
【0034】次にこの変換画像K2のDCT係数を第1
の量子化器12によつて例えばバツフア回路7からその
バツフア残量に対して送出される量子化幅Q=10で量子
化すると、量子化画像K3に示すように、量子化信号S
4においてほとんどの量子化DCT係数が0になり、大
きな量子化DCT係数だけが残る。この量子化画像K3
の量子化DCT係数を係数呼出し順路K4(数字は呼出
し順序を示す)に従つて順次呼び出せば、量子化DCT
係数列「45−0−0−4−13−4−0−0……」が得ら
れ、これを遅延回路13及び第1の選択器4Aを介して
可変長符号器(VLC)6に与えることにより、ハフマ
ン符号等の可変長符号方式(この実施例の場合2次元符
号化)を用いて、さらに一段と高い高能率符号化処理を
することができる。Next, the DCT coefficient of this converted image K2 is set to the first
When the quantizer 12 of FIG. 2 quantizes the quantizer with the quantizing width Q = 10 transmitted from the buffer circuit 7 with respect to the buffer remaining amount, as shown in the quantized image K3, the quantized signal S
At 4, most of the quantized DCT coefficients become 0, and only large quantized DCT coefficients remain. This quantized image K3
If the quantized DCT coefficients are sequentially called according to the coefficient calling route K4 (the numbers indicate the calling order), the quantized DCT
A coefficient sequence “45-0-0-4-13-4-0-0 ...” Is obtained, and this is given to the variable length encoder (VLC) 6 via the delay circuit 13 and the first selector 4A. As a result, it is possible to perform an even higher efficiency coding process using a variable-length coding system such as Huffman code (two-dimensional coding in this embodiment).
【0035】図3の場合の係数呼出し順路K4は、画素
が2次元方向に相関があることを考慮して、係数の呼出
し開始点から徐々に斜めに右下方向にジクザクに進む順
序で係数を呼び出すようにしたものである。これに対し
て、水平方向に係数の相関が強い絵柄では、図4に示す
ように、ブロツクの上段(0〜7)の係数を順次呼び出
し、続いて(8〜15)、(16〜23)のように垂直方向に
ジクザグに進む順序で呼び出して行くこともできる。In the coefficient calling route K4 in the case of FIG. 3, considering that pixels are correlated in the two-dimensional direction, the coefficients are called in a zigzag manner in an obliquely lower right direction from the coefficient calling start point. It was something that was called. On the other hand, in the case of a pattern having a strong coefficient correlation in the horizontal direction, as shown in FIG. 4, the coefficients in the upper row (0 to 7) of the block are sequentially called, and subsequently (8 to 15) and (16 to 23). You can also call them in a zigzag order in the vertical direction.
【0036】(3)ブロツク内予測符号化処理部2 次にブロツク内予測符号化処理部2のブロツク内予測器
21に対して、例えば図5において原画像K11(図5
(A))に示すように、左下隅部にエツジを含む絵柄の
情報量をもつ1ブロツク(8×8画素)分の画像データ
がブロツク化差分信号S2bとして与えられると、ブロ
ツク内予測器21は先ず例えば平坦な領域の平均値をブ
ロツクの代表値「BASE」として求め、続いてこの代
表値BASEと当該ブロツク内の各画素値との差を求め
る。(3) Intra-block predictive coding processing unit 2 Next, for the intra-block predictor 21 of the intra-block predictive coding processing unit 2, for example, in FIG.
As shown in (A)), when the image data for one block (8 × 8 pixels) having the information amount of the picture including the edge at the lower left corner is given as the block difference signal S2b, the intra-block predictor 21 First, for example, the average value of the flat area is obtained as a representative value "BASE" of the block, and then the difference between the representative value BASE and each pixel value in the block is obtained.
【0037】図5の原画像K11の場合、ブロツク内予
測器21は代表値BASEとしてBASE=198 を求
め、この代表値BASEとブロツク内の各画素値との差
の値を演算して予測画像K12(図5(B))を求め、
これを予測信号S10として量子化器22に与える。量
子化器22はこの予測信号S10の差の値を適応量子化
幅例えば量子化幅Q=12で量子化することにより、量子
化係数分布K13(図5(C))を得る。この実施例の
場合、量子化の演算において小数点以下は切捨てられる
(6の値のデツドゾーンをもつ量子化器と等価であ
る)。In the case of the original image K11 of FIG. 5, the intra-block predictor 21 obtains BASE = 198 as the representative value BASE, and calculates the difference value between the representative value BASE and each pixel value in the block to calculate the predicted image. Find K12 (Fig. 5 (B)),
This is given to the quantizer 22 as the prediction signal S10. The quantizer 22 quantizes the difference value of the prediction signal S10 with an adaptive quantization width, for example, a quantization width Q = 12, to obtain a quantized coefficient distribution K13 (FIG. 5C). In the case of this embodiment, the fractional part is truncated in the quantization operation (equivalent to a quantizer having a dead zone of 6).
【0038】ブロツク内予測符号化(NTC)処理部2
における適応量子化の方法は、以下の4つの適応量子化
方法のうちの1つ又は複数をブロツクごとに選択して適
用する。Intra-block predictive coding (NTC) processing unit 2
The adaptive quantization method in (1) selects and applies one or more of the following four adaptive quantization methods for each block.
【0039】第1の適応量子化方法は、代表値としてブ
ロツク内の画像信号の平均値を用いる方法である。すな
わちこの方法は、図6に示すように、時間tについて1
ブロツク長TBL分の1次元のデイジタル原信号SGにつ
いて、ブロツク内の全画素の振幅(X1〜X2)の平均
値Mを求め、その後図7に示すように当該平均値Mと各
画素の信号レベルL(すなわち振幅X)との差を量子化
する。このとき、量子化幅Qはバツフア回路7からその
データ残量に基づいて出力される値で、量子化コードL
qは、The first adaptive quantization method is a method using an average value of image signals in a block as a representative value. That is, this method is, as shown in FIG.
For the one-dimensional digital original signal SG corresponding to the block length TBL, the average value M of the amplitudes (X1 to X2) of all the pixels in the block is obtained, and then the average value M and the signal level of each pixel are obtained as shown in FIG. Quantize the difference with L (ie amplitude X). At this time, the quantization width Q is a value output from the buffer circuit 7 based on the remaining amount of data, and the quantization code L
q is
【数1】 になる。また復元値LXは[Equation 1] become. The restored value LX is
【数2】 として求めることができる。この第1の適応量子化方式
は量子化幅Qが大きいと復元値歪みが大きくなり、その
結果図8に示すように、原信号SGに対する復元値LX
の変化にブロツク長ごとに不連続部分UCができ、その
ためブロツク歪みが発生するという欠点がある。[Equation 2] Can be asked as In the first adaptive quantization method, the restoration value distortion increases when the quantization width Q is large, and as a result, as shown in FIG. 8, the restoration value LX for the original signal SG.
Has a disadvantage in that a discontinuous portion UC is formed for each block length, and thus block distortion occurs.
【0040】第2の適応量子化方法は、適応型ダイナミ
ツクレンジ符号化方法(ADRC、Adaptive Dynamic R
ange Coding )を用いる方法である。この方法は、「適
応型ダイナミツク・レンジ符号の量子化方式の検討」近
藤他、1989年、第4回画像符号化シンポジウム(PCS
J)資料(4−3)に開示のものを用いる。この適応型
ダイナミツクレンジ符号化方法(ADRC)は、ブロツ
ク内の最小値を代表値として用いる点に特徴があり、こ
のようにするのは、最小値はそのブロツクの周辺部にあ
ることが多いからである。すなわち、通常ブロツクは
(8×8)画素程度の小さな領域であるため、輝度レベ
ルが凹型となる可能性は極めて低い。このため、あるブ
ロツクの最小値は、周囲のブロツクのいずれかのブロツ
クの最小値に近い値を取ることが多い。The second adaptive quantization method is the adaptive dynamic range coding method (ADRC, Adaptive Dynamic R).
ange Coding). This method is described in "Study on Quantization Method for Adaptive Dynamic Range Codes" Kondo et al., 1989, 4th Image Coding Symposium (PCS
J) Use the one disclosed in Material (4-3). This adaptive dynamic range coding method (ADRC) is characterized in that the minimum value in a block is used as a representative value, and in this way, the minimum value is often in the peripheral portion of the block. Because. That is, since the normal block is a small area of about (8 × 8) pixels, the possibility that the brightness level is concave is extremely low. Therefore, the minimum value of a certain block is often close to the minimum value of any of the surrounding blocks.
【0041】従つて図9に示すように、最小値がブロツ
クの周辺部にあると、少なくとも一方(この場合ブロツ
ク長の開始側)の周辺ブロツクとの間の連続性が保た
れ、従つてたとえ他方の周辺ブロツクとの間に原信号S
Gと復元値LXとのずれが生ずるために不連続部分UC
が生じても、全体としてはブロツク歪みを最小に抑える
ことができる。またこの適応型ダイナミツクレンジ符号
化方法においては、図10の1次元の符号化特性として
示すように、最上位及び最下位の階調レベルに含まれる
信号値の平均値を用いて新たに最大値MAXX及び最小
値MINXを定義し直した後に、量子化コードLqを求
めるようにし、かくしてノイズや孤立点の影響を受け難
くするようにもできる(特開平2-134910号公報)。Therefore, as shown in FIG. 9, when the minimum value is in the peripheral portion of the block, continuity is maintained between at least one (in this case, the start side of the block length) peripheral block, and therefore The original signal S between the other peripheral block
Discontinuity UC due to the deviation between G and the restoration value LX
Even if the above occurs, the block distortion can be minimized as a whole. Further, in this adaptive dynamic range coding method, as shown as the one-dimensional coding characteristic in FIG. 10, a new maximum is obtained by using the average value of the signal values included in the highest and lowest gradation levels. After redefining the value MAXX and the minimum value MINX, the quantized code Lq may be obtained, thus making it less susceptible to the influence of noise and isolated points (Japanese Patent Laid-Open No. 2-314910).
【0042】第3の適応量子化方法は、エツジマツチン
グ量子化法を用いる方法である。先ずデイジタル原信号
SGが1次元の場合について説明する。この第3の適応
量子化方法は、図11及び図12のようなブロツク長T
BLの1次元のデイジタル原信号SGについて、ブロツク
の両端の信号値X1及びX2(簡単のためにX1≦X2
とする)の復元値LX1及びLX2が定められた誤差E
x以下に出力されるように、バツフア回路7から出力さ
れる量子化幅を次のアルゴリズムにより変更する。The third adaptive quantization method is a method using the edge matching quantization method. First, the case where the digital original signal SG is one-dimensional will be described. The third adaptive quantization method is based on the block length T as shown in FIGS.
For the one-dimensional digital original signal SG of BL, signal values X1 and X2 at both ends of the block (X1 ≦ X2 for simplification)
Error) E for which restoration values LX1 and LX2 of
The quantization width output from the buffer circuit 7 is changed by the following algorithm so that it is output below x.
【0043】すなわちブロツク内画素の信号レベルを
L、ブロツク両端の信号値X1及びX2の復元値許容誤
差をExとすれば、ブロツク両端の信号値X1及びX2
の差値Dは、That is, assuming that the signal level of the pixel in the block is L and the tolerance of the restoration value of the signal values X1 and X2 at both ends of the block is Ex, the signal values X1 and X2 at both ends of the block are shown.
The difference value D of
【数3】 であり、量子化幅Q及び信号値X1は、もし[Equation 3] And the quantization width Q and the signal value X1 are
【数4】 で、かつ、[Equation 4] And, and
【数5】 ならば、バツフア回路7から指示された量子化幅Qを、
ブロツク内予測器21から量子化器22に指示される量
子化幅qに変更し、信号値X1はそのままとする。ただ
し、量子化幅qはすべての量子化幅Q及び差値Dの組に
ついて、[Equation 5] Then, the quantization width Q instructed from the buffer circuit 7 is
The intra-block predictor 21 changes the quantization width q to the quantizer 22, and the signal value X1 remains unchanged. However, the quantization width q is for all pairs of the quantization width Q and the difference value D,
【数6】 を満たす量子化幅qより大きい値を求めて、リードオン
リメモリ(ROM)にテーブルとして書き込んでおく。[Equation 6] A value larger than the quantization width q that satisfies the above is obtained and written in a read-only memory (ROM) as a table.
【0044】また、In addition,
【数7】 で、かつ、[Equation 7] And, and
【数8】 ならば、量子化幅Q及び信号値X1はそのままとする。
また[Equation 8] If so, the quantization width Q and the signal value X1 are left unchanged.
Also
【0045】[0045]
【数9】 ならば、量子化幅Qはそのままとし、[Equation 9] If so, leave the quantization width Q unchanged,
【数10】 とし、[Equation 10] age,
【数11】 とする。[Equation 11] And
【0046】量子化コードLqは、The quantization code Lq is
【数12】 であり、復元値LXは、[Equation 12] And the restoration value LX is
【数13】 となる。この方式では、ブロツクの両端の復元信号の誤
差がEx以下に抑えられるので、ブロツク間の連続性を
さらに一段と容易に維持することができる。[Equation 13] Becomes In this method, the error of the restored signal at both ends of the block can be suppressed to Ex or less, so that the continuity between the blocks can be more easily maintained.
【0047】上述においては第3の適応量子化方法を1
次元のデイジタル原信号SGに適用した場合を述べた
が、この1次元の方法を2次元ブロツクに拡張する場合
には、信号値X1及びX2にそれぞれ代表値BASE1
及びBASE2を用い、1次元の場合と同様にして、ブ
ロツク信号を量子化、逆量子化する。なお、ここでは量
子化器としてデツドゾーン(不感帯)のないものを使用
して説明したが、デツドゾーンのある量子化器を使用す
ることもできる。In the above description, the third adaptive quantization method is 1
Although the case where the method is applied to the two-dimensional digital original signal SG is described, when the one-dimensional method is extended to the two-dimensional block, the signal values X1 and X2 are respectively represented by the representative value BASE1.
And BASE2, the block signal is quantized and dequantized in the same manner as in the one-dimensional case. Although a quantizer having no dead zone has been described here, a quantizer having a dead zone can also be used.
【0048】第4の適応量子化方法は、第2のエツジマ
ツチング量子化法を用いる方法である。先ずデイジタル
原信号SGが1次元の場合について説明する。この第4
の適応量子化方法は、図13のようなブロツク長TBLの
1次元のデイジタル原信号SGについて、ブロツクの両
端の信号値X1及びX2(簡単のために、X1≦X2と
する)がそのまま復元値として出力されるように、復号
器側で復号値を変更する。ブロツク内画素の信号レベル
がXで、バツフア回路7から出力される量子化幅がQの
とき、量子化コードLqは、The fourth adaptive quantization method is a method using the second edge matching quantization method. First, the case where the digital original signal SG is one-dimensional will be described. This 4th
In the adaptive quantization method, the signal values X1 and X2 at both ends of the block (for simplicity, X1 ≦ X2) are directly restored values for the one-dimensional digital original signal SG having the block length TBL as shown in FIG. The decoded value is changed on the decoder side so as to be output as. When the signal level of the pixel in the block is X and the quantization width output from the buffer circuit 7 is Q, the quantization code Lq is
【数14】 となる。[Equation 14] Becomes
【0049】符号化装置DV1(図1)では量子化コー
ドLqの外に、信号値X1と、信号値X1及びX2間と
の差値Dと、量子化幅Qとを復号化装置DV2に伝送す
る。復号化装置DV2は信号値X1及びX2、量子化幅
Qを量子化パラメータとして受け取り、先ず信号値X2
の量子化値X2qを次式によつて計算する。In the encoding device DV1 (FIG. 1), in addition to the quantization code Lq, the signal value X1, the difference value D between the signal values X1 and X2, and the quantization width Q are transmitted to the decoding device DV2. To do. The decoding device DV2 receives the signal values X1 and X2 and the quantization width Q as the quantization parameter, and first, the signal value X2.
The quantized value X2q of is calculated by the following equation.
【数15】 その後復元値LXは、量子化コードLqがX2qと等し
ければ、[Equation 15] After that, if the quantized code Lq is equal to X2q, the reconstructed value LX is
【数16】 そうでなければ、[Equation 16] Otherwise,
【数17】 として、復元値LXに復元される。[Equation 17] Is restored to the restoration value LX.
【0050】第2のエツジマツチング量子化方法は、前
述した第1のエツジマツチング量子化方法と比べてアル
ゴリズムが単純であり、量子化幅Qの変更のためのRO
Mテーブルも必要としない分構成を簡易化できる。この
第2のエツジマツチング量子化方法を2次元ブロツク信
号に拡張する場合には、信号値X1及びX2にそれぞれ
代表値BASE及びBASE′を用い、1次元の場合と
同様にして、ブロツク信号を量子化及び逆量子化する。
なお、ここでは量子化器としてデツドゾーン(不感帯)
のないものを使用して説明したが、デツドゾーンのある
量子化器を使用することもできる。The second edge-matching quantization method has a simpler algorithm than the first edge-matching quantization method described above, and RO for changing the quantization width Q is used.
Since the M table is not required, the configuration can be simplified. When the second edge matching quantization method is extended to a two-dimensional block signal, the representative values BASE and BASE 'are used for the signal values X1 and X2, respectively, and the block signal is quantized in the same manner as in the one-dimensional case. And dequantize.
In addition, here, a dead zone is used as a quantizer.
In the above description, a quantizer with a dead zone can be used.
【0051】なお、上述の第1〜第4の適応量子化方法
について説明した量子化器、逆量子化器の機能は、ブロ
ツク代表値の減算又は加算を行なうことを除けば、デイ
スクリートコサイン変換(DCT)符号化において広く
使用されている機能と同じ機能を有するものである。従
つてブロツク代表値の減算又は加算の処理を量子化器、
逆量子化器から独立させることにより、ブロツク内予測
符号化(NTC)処理部2及びデイスクリートコサイン
変換(DCT)処理部1について量子化器、逆量子化器
を共用するように構成するようにしても良い。The functions of the quantizer and the inverse quantizer explained in the above-mentioned first to fourth adaptive quantizing methods are the discrete cosine transform except that the block representative value is subtracted or added. It has the same function as that widely used in (DCT) coding. Therefore, the block representative value subtraction or addition processing is performed by the quantizer,
Independent of the inverse quantizer, the intra-block predictive coding (NTC) processing unit 2 and the discrete cosine transform (DCT) processing unit 1 are configured to share the quantizer and the inverse quantizer. May be.
【0052】次に、スキヤンコンバータ23(図1)が
量子化信号S11によつて表されている量子化係数分布
K13(図5(C))に応じて、適応的に係数の呼び出
しを行なう。この実施例の場合、量子化係数分布K13
の量子化係数は、係数呼出し順路K14(図5(C))
に沿うように水平方向にジクザグに進む順序で呼び出さ
れる。かくして各量子化係数の並び順序を配列し直して
なる変換量子化信号S12がスキヤンコンバータ23か
ら出力される。Next, the scan converter 23 (FIG. 1) adaptively calls the coefficient in accordance with the quantized coefficient distribution K13 (FIG. 5C) represented by the quantized signal S11. In the case of this embodiment, the quantization coefficient distribution K13
The quantized coefficient of is the coefficient calling route K14 (FIG. 5C).
Called in zigzag order horizontally along the. Thus, the transformed quantized signal S12 obtained by rearranging the arrangement order of the quantized coefficients is output from the scan converter 23.
【0053】ブロツク内予測符号化(NTC)処理部2
のスキヤンコンバータ23に与えられる量子化後のブロ
ツク信号は、スキヤンコンバートされることにより、1
次元に並べ換えられる。量子化後のブロツク信号を伝送
する方法としてEOB(EndOf Block)の手法を適用す
る。これは、スキヤンコンバートされた信号を、その順
番で見て行き、ある時点がら零の値の係数が最後の係数
まで続いていた場合、それら零の連続を「EOB」とい
うコードだけで送る(図5(E)参照)。従つて、でき
るだけ早い時点で「EOB」コードを伝送できるような
データスキヤンパスを選択すれば情報量を高い圧縮率で
符号化することができる。この実施例の場合、図14
(A)〜(D)に示す4種類のデータスキヤンパスDS
P1〜DSP4を用意する。Intra-block predictive coding (NTC) processing unit 2
The quantized block signal provided to the Sukyan converter 23 is
Rearranged into dimensions. An EOB (End Of Block) method is applied as a method of transmitting the quantized block signal. This means that the scan-converted signal is viewed in that order, and if, for a certain point, the coefficient of zero value continues to the last coefficient, those zeros are sent only by the code "EOB" (Fig. 5 (E)). Therefore, if the data scan path that can transmit the "EOB" code is selected as early as possible, the information amount can be encoded with a high compression rate. In the case of this embodiment, FIG.
4 types of data scan path DS shown in (A) to (D)
P1 to DSP4 are prepared.
【0054】これらの第1〜第4のデータスキヤンパス
DSP1〜DSP4のうちの1つをブロツク内のエツジ
形状に従つて、適応的に選択する。図15は、アルゴリ
ズムのC言語での正確な定義を示す。図15(A)に示
す4つの領域「 PIXEL_AREA1 」、「 PIXEL_AREA2
」、「 PIXEL_AREA3 」及び「 PIXEL AREA4 」にお
ける量子化後のブロツク信号の絶対値和を計算し、最大
の和をもつ領域を検出し、この結果により、データスキ
ヤンパスを選択する。One of the first to fourth data scan paths DSP1 to DSP4 is adaptively selected according to the edge shape in the block. FIG. 15 shows the exact definition of the algorithm in C. Four areas “PIXEL_AREA1” and “PIXEL_AREA2” shown in FIG.
, "PIXEL_AREA3" and "PIXEL AREA4", the absolute value sum of the quantized block signals is calculated, the region having the maximum sum is detected, and the data scan path is selected according to this result.
【0055】最後に、切換回路27A(図1)を通じて
差分化器24がこの並び換えられたデータをデータの先
頭から順次、隣接データ間で差分値化して差分化分布K
15(図5(D))を得る。差分化器24は図16に示
すように、変換量子化信号S12を遅延回路24Aにお
いて1処理時間だけ遅延させて減算回路24Bにおいて
変換量子化信号S12から減算することにより差分化分
布K15を形成し、その減算出力を差分出力S13とし
て送出する。Finally, through the switching circuit 27A (FIG. 1), the differentiator 24 sequentially forms the rearranged data from the beginning of the data into the difference value between the adjacent data, and the difference distribution K
15 (FIG. 5 (D)) is obtained. As shown in FIG. 16, the differentiator 24 delays the converted quantized signal S12 by one processing time in the delay circuit 24A and subtracts it from the converted quantized signal S12 in the subtraction circuit 24B to form a differential distribution K15. , And outputs the subtraction output as a difference output S13.
【0056】スキヤンコンバート後の係数には、未だ信
号の自己相関性が多く残つている場合がある。よつて、
その後段で差分化処理を行なうことによりさらに情報量
を圧縮できる可能性がある。差分化器24はスキヤンコ
ンバータ23によるスキヤンコンバート後の信号Yiに
対して1画素前の画素値との差分をとり、予測誤差信号
EiとしてThe coefficient after the scan conversion may still have a large amount of signal autocorrelation. Yotsutte
There is a possibility that the amount of information can be further compressed by performing the difference processing in the subsequent stage. The differentiator 24 takes the difference between the signal Yi after the scan conversion by the scan converter 23 and the pixel value one pixel before, and outputs the difference as the prediction error signal Ei.
【数18】 を得る。[Equation 18] To get
【0057】予測誤差信号Eiは入力信号が8ビツトと
すると−255〜+255までの値を取り得る。従つ
て、そのままの信号形式で送ろうとすると9ビツト必要
となり、1画素当たり1ビツト余分に符号を必要とす
る。しかし予測誤差信号Eiは零を中心としてその前後
にほとんどが集中することが知られている。従つてすべ
ての信号を9ビツトで表現するのではなく、多数出現す
る信号値に短いビツト長の符号を割り当てることによ
り、ブロツク全体としては平均的に9ビツトよりは勿
論、元の8ビツトの入力信号よりもはるかに短いビツト
長でブロツク信号を表すことができることになる。The prediction error signal Ei can take values from -255 to +255 when the input signal is 8 bits. Therefore, if the signal format is to be sent 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 Ei is mostly centered around zero and before and after that. Therefore, not all the signals are represented by 9 bits, but by assigning a code of a short bit length to a large number of appearing signal values, it is possible to input the original 8 bits as well as the average of 9 bits for the entire block. The block signal can be represented by a bit length much shorter than the signal.
【0058】差分化器24のオン/オフ判定方法として
は、実際に差分処理をしてみてその結果、もしゼロでな
い信号の数が減少した場合には、オン、すなわちスイツ
チ回路27A及び27Bを差分化器24側に切り換え
る。そうでない場合はオフ、すなわちスイツチ回路27
A及び27Bをバイパス側に切り換える。As an on / off determination method of the differencer 24, when the difference processing is actually performed and as a result, the number of non-zero signals decreases, it is turned on, that is, the switch circuits 27A and 27B are set to the difference. Switch to the rectifier 24 side. Otherwise, it is off, that is, the switch circuit 27.
Switch A and 27B to the bypass side.
【0059】こうしてブロツク内予測符号化処理部2に
おいて得られる符号化された差分データは可変長符号器
(VLC)6においてハフマン等の可変長符号で符号化
され(この実施例の場合上述のように2次元符号化す
る)、これによりハフマン符号列K16(図5(E))
を形成し、かくして高能率符号化することができる。か
くして符号化装置DV1において得られるハフマン符号
化列K16(図5(E))に基づいて伝送された伝送デ
ータDOUT は復号化装置DV2の逆可変長符号化器3
2、逆差分化器36、逆スキヤンコンバータ37及び逆
量子化器38において逆量子化係数分布K18(図5
(F))に逆変換された後、予測器43及び加算復元回
路41において代表値BASE1が加算されることによ
り復元画像K19(図5(G))に復元される。In this way, the coded difference data obtained in the intra-block predictive coding processing unit 2 is coded by a variable length code (VLC) 6 by a variable length code such as Huffman (as described above in the case of this embodiment). Two-dimensionally encoded into the Huffman code sequence K16 (FIG. 5 (E)).
Can be formed and thus highly efficient coded. Thus, the transmission data DOUT transmitted on the basis of the Huffman coded sequence K16 (FIG. 5 (E)) obtained in the encoding device DV1 is the inverse variable length encoder 3 of the decoding device DV2.
2. In the inverse differencer 36, the inverse scan converter 37, and the inverse quantizer 38, the inverse quantization coefficient distribution K18 (see FIG.
After being inversely transformed into (F)), the representative value BASE1 is added in the predictor 43 and the addition / restoration circuit 41 to restore the restored image K19 (FIG. 5 (G)).
【0060】差分化器24(図1)が不必要な場合は、
切換回路27A及び27Bをバイパス側出力端d側に切
り換えることにより、変換量子化信号S12をバイパス
させる。この場合は図5に対応させて図17に示すよう
に、原画像K11(図17(A))に基づいて、順次予
測画像K12(図17(B))、量子化分布K13(図
17(C))を得た後、係数呼出し順路K14(図17
(C))に沿うように呼び出すことにより、当該量子化
分布K13の量子化値を並べ換えただけの係数分布K1
7(図17(D))を可変長符号器6に送出し、これに
よりハフマン符号列K16(図17(E))を得る。こ
の場合も、復号化装置DV2において、逆量子化係数分
布K20(図17(F))及び復元画像K21(図17
(G))が復元される。When the differentiator 24 (FIG. 1) is unnecessary,
The converted quantized signal S12 is bypassed by switching the switching circuits 27A and 27B to the bypass side output end d side. In this case, as shown in FIG. 17 corresponding to FIG. 5, based on the original image K11 (FIG. 17A), the sequentially predicted image K12 (FIG. 17B) and the quantized distribution K13 (FIG. 17 ( C)), the coefficient calling route K14 (FIG. 17) is obtained.
(C)), the coefficient distribution K1 is obtained by rearranging the quantized values of the quantized distribution K13.
7 (FIG. 17 (D)) is sent to the variable length encoder 6 to obtain a Huffman code string K16 (FIG. 17 (E)). Also in this case, in the decoding device DV2, the inverse quantized coefficient distribution K20 (FIG. 17 (F)) and the restored image K21 (FIG. 17).
(G)) is restored.
【0061】(4)符号化方式切換判定器3 符号化方式切換判定器3(図1)は、ブロツク単位で動
画像信号を符号化する場合に、デイスクリートコサイン
変換(DCT)符号化方式によるか、又はブロツク内予
測符号化(NTC)方式によるかの判定をする。符号化
方式切換判定器3はどの符号化方法を選択するかを、ブ
ロツク内画像情報から、空間領域及び又はデイスクリー
トコサイン変換(DCT)出力領域によつて判定する。(4) Coding method switching deciding device 3 The coding method switching deciding device 3 (FIG. 1) uses a discrete cosine transform (DCT) coding method when coding a moving image signal in block units. Or the intra-block predictive coding (NTC) method. The coding method switching decision unit 3 decides which coding method to select based on the image information in the block according to the spatial domain and / or the discrete cosine transform (DCT) output domain.
【0062】第1の符号化方式判定方法は空間領域にお
いて判定する方法で、急激に輝度が変化する絵柄(具体
的には、輪郭部分やデイテール部分を含む画像)では、
ブロツク内の画像信号のダイナミツクレンジ(DR=最
大値−最小値)が大きな値をとる。このような絵柄につ
いては、デイスクリートコサイン変換(DCT)は情報
の圧縮率において不利であり、従つてブロツク内予測符
号化(NTC)を選択すべきである。このとき符号化方
式判定器3はブロツクごとに、当該ブロツク内のダイナ
ミツクレンジ(DR)を求め、その値が圧縮率と絵柄の
劣化から選択した適当なしきい値THAを越えるブロツ
クがあれば、これについてはブロツク内予測符号化(N
TC)処理部2によつて符号化すべきであると判定す
る。The first coding method judging method is a method for judging in the spatial domain, and in the case of a picture whose brightness changes abruptly (specifically, an image including a contour portion and a detail portion),
The dynamic range (DR = maximum value-minimum value) of the image signal in the block takes a large value. For such pictures, the Discrete Cosine Transform (DCT) is disadvantageous in the compression rate of the information and therefore intra-block predictive coding (NTC) should be selected. At this time, the coding method determiner 3 obtains the dynamic range (DR) in each block for each block, and if there is a block whose value exceeds an appropriate threshold value THA selected from the compression rate and the deterioration of the pattern, For this, intra-block predictive coding (N
The TC) processing unit 2 determines that encoding should be performed.
【0063】第2の符号化方式判定方法はデイスクリー
トコサイン変換(DCT)出力領域において判定する方
法で、動画像信号を2次元デイスクリートコサイン変換
をした場合のデイスクリートコサイン変換係数には、例
えば(8×8)画素をブロツク(マクロブロツク)とす
る2次元デイスクリートコサイン変換について、ブロツ
クの左上隅に相当する0行0列目の係数F(0、0)は
画像ブロツク内の平均輝度を表す直流成分に相当し、係
数F(0、0)から右横方向に行くに従つて、係数は画
像ブロツク内の縦縞の高周波数成分を表し、下方向に行
くに従つて、横縞の高周波数成分を表している。The second coding method judging method is a method of judging in the Discrete Cosine Transform (DCT) output region, and the Discrete Cosine Transform coefficient when the moving image signal is two-dimensional Discrete Cosine Transform is, for example, For the two-dimensional Discrete Cosine Transform with (8 × 8) pixels as a block (macroblock), the coefficient F (0,0) at the 0th row and 0th column corresponding to the upper left corner of the block is the average luminance in the image block. Corresponding to the direct current component, the coefficient represents the high frequency component of the vertical stripes in the image block as it goes from the coefficient F (0,0) to the right and horizontal direction, and the high frequency of the horizontal stripe as it goes downward. Represents an ingredient.
【0064】すなわち、輪郭部分のように急激に輝度が
変化する絵柄のブロツクをデイスクリートコサイン変換
すると、その変換出力は、図18において(8×8)画
素のブロツクにおけるデイスクリートコサイン変換係数
の出力領域として示すように、大きく以下の3つの場合
に分類できる。ここで「○」印は輝度の高い(又は低
い)画素の位置を示し、「×」印はブロツク内で大きな
デイスクリートコサイン変換係数が発生し易い位置を示
す。 第1の絵柄は図18(A)に示すように、ブロツ
ク画像領域K31に縦方向に輪郭が存在する場合で、こ
のときデイスクリートコサイン変換出力領域K32にお
いてデイスクリートコサイン変換係数は低次から横方向
に拡がるように大きなエネルギーをもつDCT係数が集
中する。これを「ケース1」と呼ぶ。That is, when a discrete cosine transform is performed on a block of a pattern in which the brightness changes abruptly like the contour portion, the converted output is the output of the discrete cosine transform coefficient in the block of (8 × 8) pixels in FIG. As shown as a region, it can be roughly classified into the following three cases. Here, the mark “◯” indicates the position of a pixel with high (or low) luminance, and the mark “x” indicates the position where a large discrete cosine transform coefficient is likely to occur in the block. As shown in FIG. 18 (A), the first pattern has a vertical contour in the block image area K31. At this time, the discrete cosine transform coefficient in the discrete cosine transform output area K32 changes from low to horizontal. DCT coefficients with large energy concentrate so as to spread in the direction. This is called "Case 1".
【0065】第2の絵柄は図18(B)に示すように、
ブロツク画像領域K41に横方向に輪郭が存在する場合
で、このときデイスクリートコサイン変換出力領域K4
2においてデイスクリートコサイン変換係数は低次から
縦方向に大きなエネルギーをもつ係数が集中する。これ
を「ケース2」と呼ぶ。第3の絵柄は図18(C)に示
すように、ブロツク画像領域K51A又はK51Bに斜
め方向に輪郭が存在する場合で、このときデイスクリー
トコサイン変換出力領域K52においてデイスクリート
コサイン変換係数は低次から斜め方向に大きなエネルギ
ーをもつ係数が集中する。これを「ケース3」と呼ぶ。The second pattern is, as shown in FIG.
In the case where there is a horizontal contour in the block image area K41, at this time, the discrete cosine transform output area K4
In Fig. 2, in the discrete cosine transform coefficient, coefficients having large energy in the vertical direction are concentrated from the low order. This is called "Case 2". As shown in FIG. 18C, the third pattern has a contour in a diagonal direction in the block image area K51A or K51B. At this time, the discrete cosine transform coefficient in the discrete cosine transform output area K52 has a low order. From, the coefficients with large energy are concentrated in the diagonal direction. This is called "Case 3".
【0066】そこで、符号化方式切換判定器3は、図1
8(A)、(B)及び(C)について、直流成分を除い
たすべてのデイスクリートコサイン変換係数の絶対値和
Faと、ケース1、ケース2及びケース3の各デイスク
リートコサイン変換出力領域K32、K42及びK52
において「×」印で示した領域のデイスクリートコサイ
ン変換係数の絶対値和F1、F2及びF3とを、ブロツ
クごとに求め、そして絶対値和F1、F2及びF3のう
ち、最大のものをFmaxとして絶対値和Faに対する
最大絶対値和Fmaxの比率が圧縮率と絵柄の劣化から
選択した適当なしきい値THBを越えるブロツクについ
ては、ブロツク内予測符号化処理部2により符号化すべ
きであると判定する。Therefore, the coding method switching determiner 3 is shown in FIG.
8 (A), (B) and (C), the sum of absolute values Fa of all discrete cosine transform coefficients excluding the DC component and each discrete cosine transform output area K32 of case 1, case 2 and case 3 , K42 and K52
In each block, the absolute value sums F1, F2, and F3 of the discrete cosine transform coefficients in the area indicated by the "x" mark are obtained, and the maximum one among the absolute value sums F1, F2, and F3 is set as Fmax. A block in which the ratio of the maximum absolute value sum Fmax to the absolute value sum Fa exceeds an appropriate threshold value THB selected from the compression rate and the deterioration of the pattern is determined to be encoded by the intra-block prediction encoding processing unit 2. ..
【0067】第3の符号化方式判定方法はデイスクリー
トコサイン変換出力領域及び画像ブロツク空間領域の両
方を用いて判定する方法で、この場合符号化方式切換判
定器3は図19に示す符号化方式選択処理手順RT1を
実行することにより符号化方式を決定する。すなわち符
号化方式切換判定器3は、図19の符号化方式選択処理
手順RT1に入ると、ステツプSP1においてデイスク
リートコサイン変換部11のデイスクリートコサイン変
換信号S3に基づいて入力画像ブロツクをデイスクリー
トコサイン変換した変換出力を検査し、次のステツプS
P2においてデイスクリートコサイン変換出力領域のブ
ロツク内に輪郭部分のように急激に輝度が変化する絵柄
を表す変換係数(すなわち小さい低周波係数及び大きい
高周波係数の両方)が存在するか否かの判定をする。The third coding method judging method is a method which judges by using both the discrete cosine transform output area and the image block space area. In this case, the coding method switch judging device 3 shows the coding method shown in FIG. The coding method is determined by executing the selection processing procedure RT1. That is, when the coding system switching decision unit 3 enters the coding system selection processing procedure RT1 of FIG. 19, in step SP1, the input image block is discriminated based on the discrete cosine conversion signal S3 of the discrete cosine conversion unit 11. The converted conversion output is inspected and the next step S
At P2, it is determined whether or not there is a conversion coefficient (that is, both a small low-frequency coefficient and a large high-frequency coefficient) representing a pattern whose brightness changes abruptly like a contour portion in the block of the discrete cosine conversion output area. To do.
【0068】この判定は急激に輝度が変化する図柄の場
合はデイスクリートコサイン変換出力領域のブロツク内
に、低周波数成分から高周波数成分まで広く分散して発
生するという性質に着目して、これを符号化方式の切換
処理に利用するもので、このとき符号化方式切換器3は
図20及び図21に示すアルゴリズムを実行する。In the case of a pattern in which the brightness changes abruptly, this determination is made by paying attention to the property that the low frequency component to the high frequency component are widely dispersed and generated in the block of the discrete cosine transform output region. This is used for the switching processing of the coding method, and at this time, the coding method switch 3 executes the algorithm shown in FIGS. 20 and 21.
【0069】図21(A)に示すように、左上隅直流成
分を除く17個の低周波数領域の係数の2乗和を「 low_
ac_power 」とし、かつ直流成分を除いたすべてのデイ
スクリートコサイン変換係数の2乗和を「 all_ac_po
wer 」とするとき、 low_ac_power がしきい値「LITT
LE_AC_THRESHOLD 」以下であり、かつ、 low_ac_po
wer と all_ac_power との比率がしきい値「AC_CONC
ENTRATE _THRESHOLD」以上である場合には、この入力
画像ブロツクは、デイスクリートコサイン変換方式で符
号化すべきであると判定される。このとき符号化方式切
換判定器3は図19のステツプSP2において否定結果
が得られることによりデイスクリートコサイン変換処理
部1を用いて符号化を実行する。As shown in FIG. 21A, the sum of squares of the 17 coefficients in the low frequency region excluding the DC component in the upper left corner is "low--
"ac_power" and the sum of squares of all discrete cosine transform coefficients excluding the DC component is "all_ac_po".
wer ”, the low_ac_power is the threshold“ LITT
LE_AC_THRESHOLD "or less and low_ac_po
The ratio of wer and all_ac_power is the threshold value “AC_CONC
If it is equal to or more than "ENTRATE_THRESHOLD", it is determined that the input image block should be encoded by the discrete cosine transform method. At this time, the coding method switching determiner 3 executes the coding using the discrete cosine transform processing unit 1 when a negative result is obtained in step SP2 of FIG.
【0070】そうでないとき、当該ブロツクはブロツク
内予測符号化(NTC)をする候補ブロツクであると判
定され、このとき符号化方式判定器3は図19のステツ
プSP2において肯定結果が得られることにより、次の
ステツプSP3に移る。ここで、しきい値「LITTLE_AC
_THRESHOLD 」、「AC_CONCENTRATE _THRESHOLD 」及
び低周波数領域の設定は、圧縮率及び絵柄の劣化の観点
から適当な領域に設定することができる。符号化方式判
定器3はステツプSP3において、図20に示す輪郭ブ
ロツク検出サブルーチンRT2にジヤンプして、輪郭を
含むブロツクを検出する処理を実行した後、次のステツ
プSP4において、このブロツクが輪郭画像を含むブロ
ツクであるか否かの判定をする。If not, it is determined that the block is a candidate block for intra-block predictive coding (NTC). At this time, the coding system decision unit 3 obtains a positive result at step SP2 in FIG. , And go to the next step SP3. Here, the threshold "LITTLE_AC
"_THRESHOLD", "AC_CONCENTRATE_THRESHOLD" and the setting of the low frequency region can be set to an appropriate region from the viewpoint of the compression rate and the deterioration of the pattern. In step SP3, the coding method determiner 3 jumps to the contour block detection subroutine RT2 shown in FIG. 20 to execute a process for detecting a block including a contour, and then in step SP4, this block determines a contour image. It is determined whether or not it is a block that includes it.
【0071】図20の輪郭ブロツク検出サブルーチンR
T2に入ると符号化方式判定器3は、ステツプSP11
においてブロツクの代表値「BASE1 」及び「BASE2 」を
計算する。ここで、ブロツクの代表値「BASE1 」及び
「BASE2 」は当該ブロツク内での平坦な領域の平均値で
ある。今、(8×8)画素からなるブロツクの画素値が
図22(A)に示す番号の順序で配列メモリ画素x
に記憶されているとする。ブロツクの代表値は図22
(B)に示す28個の画素から推定される。これらの画素
値は、x から図22(C)に示す矢印の順番(番号
は順番を示す)で取り出され、図23(A)に示すよう
に配列メモリt に記憶される。Contour block detection subroutine R of FIG.
Upon entering T2, the coding system decision unit 3 proceeds to step SP11.
Calculate the representative values "BASE1" and "BASE2" of the block in. Here, the representative values “BASE1” and “BASE2” of the block are average values of a flat area in the block. Now, the pixel values of the block consisting of (8 × 8) pixels are arranged in the order of the numbers shown in FIG.
It is stored in. The typical value of the block is shown in Fig. 22.
It is estimated from the 28 pixels shown in FIG. These pixel values are extracted from x 1 in the order of the arrows (numbers indicate the order) shown in FIG. 22 (C) and stored in the array memory t 1 as shown in FIG. 23 (A).
【0072】そして、ブロツクの代表値は、図24〜図
28に示すDCT/NTC判定アルゴリズムにより計算
される。図24〜図28はアルゴリズムのC言語での正
確な定義を示す。先ず、配列メモリt 上での隣接サ
ンプル間について差分処理を実行して配列メモリt
の差分値情報を得、これに基づいて平坦な領域を推定す
る。最も平坦な領域は8個の連続した配列メモリt
の差分値の絶対値和が最小であると定義される。そし
て、ブロツクの代表値は、この最も平坦な領域での8個
の配列メモリt の平均値と定義される。この値を、
「BASE1 」と呼び、その領域での配列メモリt の差
分値の絶対値和を「 sum_abs _diffl 」と呼ぶ。ここ
で、符号化方式切換判定器3は、図20のステツプSP
12、SP13において当該ブロツクが以下に示す状態
を1つでももつているか否かを判定し、1つでももつて
いるときは、そのブロツクをデイスクリートコサイン変
換符号化する。Then, the representative value of the block is calculated by the DCT / NTC determination algorithm shown in FIGS. 24-28 show the exact definition of the algorithm in C language. First, the difference processing between adjacent samples on the array memory t is executed to
The difference value information of is obtained and the flat area is estimated based on this. The flattest area is 8 continuous array memories t
It is defined that the sum of the absolute values of the difference values of is minimum. Then, the representative value of the block is defined as the average value of the eight array memories t 1 in this flattest area. This value
It is called "BASE1" and the sum of absolute values of the difference values of the array memory t 1 in that area is called "sum_abs_diffl". Here, the encoding system switching determiner 3 is the step SP of FIG.
12. At SP13, it is determined whether or not the block has any one of the following states, and if it has even one state, the block is discrete cosine transform coded.
【0073】(a)peak<PEAK THRESHOLD のとき。こ
こで、peakは、図29に示す値であり、その正確な定義
は図26にある。また、PEAK THRESHOLD は、符号化器
から与えられるしきい値である。 (b)BASE1 が無効なとき。すなわち、 sum_abs _di
ffl >FLAT_SAD _THRESHOLD のとき。ここで、FLAT_
SAD _THRESHOLD は、符号化器から与えられるしきい値
である。(A) When peak <PEAK THRESHOLD. Here, peak is the value shown in FIG. 29, and its exact definition is in FIG. PEAK THRESHOLD is a threshold value given by the encoder. (B) When BASE1 is invalid. That is, sum_abs_di
When ffl> FLAT_SAD_THRESHOLD. Where FLAT_
SAD_THRESHOLD is a threshold provided by the encoder.
【0074】次に符号化方式切換判定器3は図20のス
テツプSP14に移つて、他のブロツクの代表値「BASE
2 」を図25に示す方法に従つて検索する。代表値BASE
2 は、代表値BASE1 を得た領域の真向かい(反対)の側
の領域から検索される(図23(B)参照)。代表値BA
SE2 の計算方法は代表値BASE1 の場合と同様である。代
表値BASE2 は必ずしも存在する必要はない。以下に示す
状態を1つでももつているときは、代表値BASE2 は無効
であり存在しない。Next, the coding system switching decision unit 3 moves to step SP14 in FIG. 20 and the representative value "BASE" of another block.
2 "according to the method shown in FIG. Typical value BASE
2 is searched from the area directly opposite (opposite) to the area that has obtained the representative value BASE1 (see FIG. 23 (B)). Typical value BA
The calculation method of SE2 is the same as that of the typical value BASE1. The representative value BASE2 does not necessarily have to exist. The representative value BASE2 is invalid and does not exist if any of the following states is present.
【0075】(c)sum _abs _diff2 > FLAT _SAD
_THRESHOLD (d)|BASE2 −BASE1 | ≦ DIFF _BASE_THRESHOL
D ここで、記号「||」は絶対値の計算を示す。また、 D
IFF _BASE_THRESHOLD は、符号化器から与えられるし
きい値である。(C) sum _abs _diff2> FLAT _SAD
_THRESHOLD (d) | BASE2-BASE1 | ≤ DIFF _BASE_THRESHOL
D Here, the symbol “||” indicates calculation of an absolute value. Also, D
IFF_BASE_THRESHOLD is a threshold value given by the encoder.
【0076】次に符号化方式切換判定器3は、図20の
ステツプSP15及びSP16において平坦な領域の大
きさの検査をする。このルーチンでは、当該ブロツクが
もつ平坦な領域が大きいかどうかの判定をする。図27
及び図28はアルゴリズムのC言語での正確な定義を示
す。まず、ブロツク内のそれぞれの画素値(x)とBASE
1 との差信号の絶対値「 diff _base1 」が計算され
る。Next, the coding method switching determiner 3 checks the size of the flat area in steps SP15 and SP16 of FIG. In this routine, it is determined whether the flat area of the block is large. FIG. 27
And FIG. 28 shows the exact definition of the algorithm in C language. First, each pixel value (x) and BASE in the block
The absolute value "diff_base1" of the difference signal with 1 is calculated.
【0077】次に、 diff _base1 が、しきい値「 DIF
F _BASE_THRESHOLD 」より小さい画素の数を計算し、
「 count_base1 _pixel 」を得る。さらにもし、代表
値BASE2 が存在する場合には、代表値BASE2 についても
同様の計算を行ない、「 count_base2 _pixel 」を得
る。そして、 count_base1 _pixel と count_base2
_pixel との和が、しきい値「 COUNT_FLAT_PEXEL_T
HRESHOLD」より大きくない場合は、ステツプSP16に
おいて肯定結果が得られることにより符号化方式判定器
3はこのブロツクについてデイスクリートコサイン変換
方式により符号化処理をする。Next, diff_base1 is the threshold value "DIF
F_BASE_THRESHOLD ", calculate the number of pixels smaller than
Get "count_base1_pixel". Further, if the representative value BASE2 exists, the same calculation is performed for the representative value BASE2 to obtain "count_base2_pixel". And count_base1_pixel and count_base2
The sum of _pixel is the threshold value "COUNT_FLAT_PEXEL_T".
If it is not larger than "HRESHOLD", an affirmative result is obtained in step SP16, so that the coding system decision unit 3 performs the coding process on this block by the discrete cosine transform system.
【0078】これに対して、ステツプSP16において
肯定結果が得られたとき、符号化方式判定器3はステツ
プSP17において当該輪郭ブロツク検出サブルーチン
RT2を終了して、図19の符号化方式選択処理手順R
T1に戻る。このとき符号化方式判定器3はステツプS
P4、SP5、SP6及びSP7の処理を実行すること
により、ブロツク内予測符号化(NTC)方式による符
号化をする。On the other hand, when an affirmative result is obtained in step SP16, the coding system decision unit 3 terminates the contour block detection subroutine RT2 in step SP17, and the coding system selection processing procedure R of FIG.
Return to T1. At this time, the coding system decision unit 3 makes the step S
By performing the processes of P4, SP5, SP6, and SP7, the coding by the intra-block prediction coding (NTC) system is performed.
【0079】このようにブロツク内予測符号化(NT
C)方式による符号化をする場合、もしcount _base1
_pixel < count _base2 _pixel であるなら、代表
値BASE1 及びBASE2 の値が入れ換えられる。符号化すべ
きブロツク(マクロブロツク)が、フレーム内信号符号
化マクロブロツク(Intra coded macroblock)であると
き、代表値BASE1 は、ブロツク内予測値として伝送され
る(デイスクリートコサイン変換(DCT)符号化にお
けるDC(直流)値に対応する)。In this way, intra-block predictive coding (NT
When encoding by C) method, if count_base1
If _pixel <count _base2 _pixel, the values of the representative values BASE1 and BASE2 are exchanged. When the block to be encoded (macro block) is an intra-coded macro block, the representative value BASE1 is transmitted as an intra-block prediction value (in discrete cosine transform (DCT) encoding). Corresponds to the DC (direct current) value).
【0080】一方、符号化すべきマクロブロツクがフレ
ーム間信号符号化マクロブロツク(Non intracoded mac
roblock )であるとき、代表値BASE1 の値は零に固定さ
れており、これは伝送されない。なお、これに代え、フ
レーム間信号符号化マクロブロツク(Non intracoded m
acroblock )であつても、代表値BASE1 を送るようにし
ても良い。よつてこのとき、代表値BASE1 の絶対値がし
きい値「DIFF_BASE_THRESHOLD 」より大きい場合に
は、このブロツクはデイスクリートコサイン変換(DC
T)符号化される。On the other hand, the macroblock to be coded is a non-intracoded macroblock.
roblock), the value of the representative value BASE1 is fixed to zero and this is not transmitted. Instead of this, a macroblock for inter-frame signal coding (Non intracoded m
acroblock), the representative value BASE1 may be sent. Therefore, at this time, if the absolute value of the representative value BASE1 is larger than the threshold value "DIFF_BASE_THRESHOLD", this block is the discrete cosine transform (DC
T) Coded.
【0081】ステツプSP3における輪郭ブロツク検出
処理の際に使用したしきい値 BASE_DISTANCE_ERR 、D
IFF_BASE_THRESHOLD 、FLAT_SAD _THRESHOLD 、PEA
K_THRESHOLD 、BASE_DISTANCE_THRESHOLD 、COUNT
_FLAT_PIXEL _THRESHOLDは、圧縮率と絵柄の劣化か
ら適切な値に設定される。Thresholds BASE_DISTANCE_ERR, D used in the contour block detection processing in step SP3
IFF_BASE_THRESHOLD, FLAT_SAD _THRESHOLD, PEA
K_THRESHOLD, BASE_DISTANCE_THRESHOLD, COUNT
_FLAT_PIXEL_THRESHOLD is set to an appropriate value from the compression rate and the deterioration of the pattern.
【0082】ブロツクの代表値の計算方法は、例えば、
ステツプSP3における輪郭ブロツク検出処理の際の一
連の処理で得られる代表値「BASE1 」が、ブロツクの代
表値「BASE」として採用される。また代表値「BASE
2 」が存在する場合には、これがブロツクの代表値「B
ASE′」となる、そして代表値「BASE2 」が存在しな
い場合、ブロツクの代表値「BASE′」は、代表値
「BASE」とブロツク内サンプル値との差値の絶対値
が最大となるブロツク内サンプル値となる。なお、かか
る計算方法に代え、ブロツク内サンプル値の平均値や最
小値を代表値とするようにしても良い。The method of calculating the representative value of the block is, for example,
The representative value "BASE1" obtained by a series of processes in the contour block detection process in step SP3 is adopted as the representative value "BASE" of the block. Also, the typical value "BASE
2 ”is present, this is the block's typical value“ B
If the representative value "BASE2" does not exist, the representative value "BASE '" of the block is within the block in which the absolute value of the difference between the representative value "BASE" and the sample value within the block is maximum. It is a sample value. Instead of this calculation method, the average value or the minimum value of the sample values in the block may be used as the representative value.
【0083】(5)可変長符号器 可変長符号器(VLC、Variable Length Coding) 6
は、デイスクリートコサイン変換(DCT)符号化/ブ
ロツク内予測符号化(NTC)切換情報と、ブロツク内
予測符号化(NTC)で用いるブロツクの代表値BAS
E及び量子化幅(又はブロツクの代表値BASE、代表
値BASEともう1つのブロツクの代表値BASE′と
の差値、及び量子化幅Q)と、ブロツク内サンプルの走
査順序と、差分化処理するか否かの切換情報とでなる管
理信号S7を、次のように、伝送すべき動画像データと
共に可変長符号化する。(5) Variable Length Coder Variable Length Coder (VLC) 6
Is the discrete cosine transform (DCT) coding / intra-block predictive coding (NTC) switching information and the representative value BAS of blocks used in intra-block predictive coding (NTC).
E and quantization width (or block representative value BASE, difference value between representative value BASE and another block representative value BASE ′, and quantization width Q), scanning order of samples in block, and difference processing The management signal S7 including the switching information as to whether or not to perform it is variable length coded together with the moving image data to be transmitted as follows.
【0084】ブロツク単位のデイスクリートコサイン変
換(DCT)符号化は、互いに隣接する数個の符合化ブ
ロツクを1グループとして、マクロブロツク(Macroblo
ck)を形成し、その中では同一の符合化方法を適用して
伝送する。Block-wise Discrete Cosine Transform (DCT) coding is performed by grouping several coding blocks adjacent to each other as a group.
ck), in which the same coding method is applied and transmitted.
【0085】特にこの実施例の場合は、マクロブロツク
内のブロツク動画像データの符号化方法をデイスクリー
トコサイン変換(DCT)符号化とブロツク内予測符号
化(NTC)とで切り換えるために、その切換情報とブ
ロツク内予測符号化(NTC)の付加情報を追加する。
以下に、その方法について説明する。In particular, in the case of this embodiment, since the coding method of the block moving image data in the macro block is switched between the discrete cosine transform (DCT) coding and the intra block predictive coding (NTC), the switching is performed. Information and additional information of intra-block predictive coding (NTC) are added.
The method will be described below.
【0086】マクロブロツク層での符号化情報として次
のものがある。第1の符号化情報はマクロブロツクタイ
プ(Macroblock_type)で、これはマクロブロツクの符
号化方法を示すVLCコードでなるコードが表す内容
は、マクロブロツク量子化スケール、マスクブロツクが
フレーム内符号化モードかフレーム間符号化モードかの
情報、フレーム間符号化モードの場合の予測モード、マ
クロブロツク動き予測ベクトル、及びマクロブロツクを
構成しているブロツクの符号化ブロツク内予測符号化
(NTC)を含んでいるか否かに関する情報である。The following is the coding information in the macroblock layer. The first encoding information is a macroblock type (Macroblock_type), which is a VLC code indicating a macroblock encoding method, and indicates whether the macroblock quantization scale or the mask block is an intraframe encoding mode. Whether the information includes the inter-frame coding mode information, the prediction mode in the case of the inter-frame coding mode, the macroblock motion prediction vector, and the intra-block predictive coding (NTC) of the blocks constituting the macroblock This is information regarding whether or not.
【0087】第2の符号化情報はマクロブロツク量子化
スケール(Quantize_scale )で、これはマクロブロツ
ク量子化スケールの値を示すVLCコードでなるマクロ
ブロツクを構成しているブロツクでは、基本的にこの量
子化スケールを用いてデイスクリートコサイン変換(D
CT)係数又は画像信号の量子化が実行される。ブロツ
ク内予測符号化を実行するブロツクにおいては、後述す
るブロツク量子化スケールを用いることもできる。The second coded information is the macroblock quantization scale (Quantize_scale), which is basically the quantum in a block that constitutes a macroblock consisting of a VLC code indicating the value of the macroblock quantization scale. Discrete Cosine Transform (D
Quantization of (CT) coefficients or image signals is performed. In a block that executes intra-block predictive coding, the block quantization scale described later can also be used.
【0088】第3の符号化情報はマクロブロツク動き予
測ベクトル(Motion_vector)で、これはマクロブロツ
クがフレーム間符号化モードの場合の動き予測ベクトル
値を示すVLCコードである。The third coding information is a macroblock motion prediction vector (Motion_vector), which is a VLC code indicating a motion prediction vector value when the macroblock is in the interframe coding mode.
【0089】第4の符号化情報は符号化ブロツクパター
ン(Coded _block _pattern )で、これはマクロブロ
ツクを構成しているブロツクの中で、伝送されるデイス
クリートコサイン変換(DCT)係数、又は画像係数が
存在するブロツクの位置を示すVLCコードでなる。マ
クロブロツクがフレーム内符号化モードの場合は存在し
ない。The fourth coded information is a coded block pattern (Coded_block_pattern), which is a discrete cosine transform (DCT) coefficient or an image coefficient to be transmitted among the blocks constituting the macroblock. Is a VLC code indicating the position of the block in which is present. It does not exist if the macroblock is in intraframe coding mode.
【0090】第5の符号化情報はDCT/NTC切換情
報で、これはブロツクの符号化にブロツク内予測符号化
(NTC)を含んでいる場合に、それを用いているブロ
ツクの位置を表すVLCコードでなる。すべてのブロツ
クがデイスクリートコサイン変換(DCT)符号化の場
合は存在しない。また、MB単位で符号化方式をデイス
クリートコサイン変換またはブロツク内予測符号化に適
応的に切替え、ブロツク内予測符号化が選択された場
合、MBに含まれるすべてのブロツクをブロツク内予測
符号化すると決めた場合には、このコードは不要であ
る。The fifth coded information is DCT / NTC switching information, which is a VLC representing the position of a block using it when the block coding includes intra-block predictive coding (NTC). It consists of code. Not present if all blocks are Discrete Cosine Transform (DCT) coding. Further, when the coding method is adaptively switched to the discrete cosine transform or the intra-block predictive coding in MB units and the intra-block predictive coding is selected, if all the blocks included in the MB are intra-block predictive coded. If you decide, you don't need this code.
【0091】コードの表現方法について説明するに、例
えば、図30のようにマクロブロツクが4個のブロツク
から構成されているとき、当該マクロブロツクがフレー
ム内符号化モードの場合は、コードは4ビツトで表現さ
れ、各ビツトがマクロブロツクを構成する各ブロツクの
符号化切換情報を表す。To describe the method of expressing the code, for example, when the macroblock is composed of four blocks as shown in FIG. 30, when the macroblock is in the intraframe coding mode, the code is 4 bits. And each bit represents the encoding switching information of each block that constitutes the macro block.
【0092】また、マクロブロツクがフレーム間符号化
モードのとき、コードを同じように4ビツトで表現する
こともできるし、又は前述の「符号化ブロツクパター
ン」から判断される係数が存在するブロツクの数に等し
い長さのビツト数で表すこともできる(図30)。各ビ
ツトが「0」の場合はデイスクリートコサイン変換(D
CT)であることを表し、「1」の場合はブロツク内予
測符号化(NTC)であることを表す。なお、この情報
をハフマンなどの可変長符号で表すこともできる。In addition, when the macroblock is in the interframe coding mode, the code can be represented by 4 bits in the same manner, or a block having a coefficient judged from the above-mentioned "coding block pattern" exists. It can also be represented by a bit number having a length equal to the number (FIG. 30). If each bit is "0", the discrete cosine transform (D
CT), and the case of "1" indicates intra-block predictive coding (NTC). Note that this information can also be represented by a variable length code such as Huffman.
【0093】ブロツク層での符号化情報として次のもの
がある。第1のブロツク符号化情報はブロツク内予測符
号化(NTC)の付加情報で以下に示す(a)、
(b)、(c)の3つのコードがブロツク内予測符号化
(NTC)されるブロツクの場合に存在する。The following are coding information in the block layer. The first block coding information is additional information of intra-block predictive coding (NTC) and is shown below (a),
The three codes (b) and (c) exist in the case of intra-block predictive coding (NTC).
【0094】(a)データスキヤンパスタイプ このコードは選択されたデータスキヤンパスの種類を表
すコードである。例えば、図14について上述したよう
な4種類のパスDSP1〜DSP4が用意されている場
合には、2ビツトのコードを使つて選択されたパスを表
現することができる。(A) Data scan path type This code is a code indicating the type of the selected data scan path. For example, when the four types of paths DSP1 to DSP4 as described above with reference to FIG. 14 are prepared, the selected path can be expressed by using a 2-bit code.
【0095】(b)差分化処理をするか否かのフラグ このフラグはスキヤンコンバート後に差分化処理をする
か否かのフラグで、オン又はオフを表す1ビツトのデー
タでなる。ただし、予めブロツクの符号化モードに従っ
て、差分化処理をするかしないかの場合を決めてある場
合は、このコードは不要である。(B) Flag for whether or not to perform differential processing This flag is a flag for whether or not to perform differential processing after scan conversion, and is one bit data indicating ON or OFF. However, this code is not necessary when it is determined in advance according to the block encoding mode whether or not the differential processing is performed.
【0096】(c)ブロツク量子化スケール このコードはブロツク量子化スケール値に関係するVL
Cコードで、ブロツク量子化スケールを常に前述の「マ
クロブロツク量子化スケール」と同じ値と決めた場合、
又は「マクロブロツク量子化スケール」をある数式に代
入することにより得られる値と決めた場合には、このコ
ードは不要である。(C) Block Quantization Scale This code is VL related to the block quantization scale value.
In the C code, if the block quantization scale is always set to the same value as the above-mentioned "macro block quantization scale",
Alternatively, if the value obtained by substituting the "macroblock quantization scale" into a certain mathematical expression is determined, this code is unnecessary.
【0097】例えば、符号化ブロツク単位で、デイスク
リートコサイン変換符号化とブロツク内予測符号化とを
適応的に切り換え、ブロツク単位のデイスクリートコサ
イン変換符号化/ブロツク内予測符号化の切換情報を伝
送し、さらにブロツク内予測符号化では、2個のブロツ
ク内の代表値BASE、BASE′を求め、BASE、
BASE及びBASE′の差値、並びに量子化幅を伝送
して適応量子化を行なう動画像符号化装置では不要とす
ることができる。そうでない場合、コードはブロツク量
子化スケールそのままの値を例えば7ビツト程度の固定
長で表すこともできるし、又は前述の「マクロブロツク
量子化スケール」との差値を可変長符号化して表すこと
もできる。For example, the discrete cosine transform coding and the intra-block predictive coding are adaptively switched for each coding block, and the block-wise discrete cosine transform coding / intra-block predictive coding switching information is transmitted. Further, in the intra-block predictive coding, the representative values BASE and BASE ′ in the two blocks are obtained, and BASE,
It can be omitted in the moving picture coding apparatus that transmits the difference value between BASE and BASE ′ and the quantization width to perform adaptive quantization. If not, the code can represent the value of the block quantization scale as it is with a fixed length of, for example, about 7 bits, or it can represent the difference value from the above-mentioned "macroblock quantization scale" by variable length coding. You can also
【0098】第2のブロツク符号化情報はブロツク内代
表値で、ブロツク内代表値に関係するVLCコードでな
る。ブロツク内代表値を常に「0」と決めた場合には、
このコードは不要である。そうでない場合、ブロツク内
代表値(デイスクリートコサイン変換符号化の場合は、
DC係数、ブロツク内予測符号化の場合はBASE)
は、例えば8ビツトの固定長で表すこともでき、又は図
31において矢印で示す順序でブロツク内代表値を差分
化処理し、得られる差分化値を可変長符号化することも
できる。The second block coded information is an intra-block representative value, which is a VLC code related to the intra-block representative value. If the block representative value is always set to "0",
This code is unnecessary. Otherwise, the representative value in the block (in the case of discrete cosine transform coding,
DC coefficient, BASE for intra-block predictive coding)
Can be represented by a fixed length of, for example, 8 bits, or the in-block representative values can be differentially processed in the order shown by the arrow in FIG. 31, and the obtained differential value can be variable-length coded.
【0099】第3のブロツク符号化情報は2個のブロツ
ク内代表値の差値で、符号化ブロツク単位で、デイスク
リートコサイン変換符号化と、ブロツク内予測符号化の
適応切換えをし、ブロツク単位のデイスクリートコサイ
ン変換/ブロツク内予測符号化の切換情報を伝送し、さ
らにブロツク内予測符号化では、2個のブロツク内の代
表値BASE、BASE′を求め、BASE、BASE
及びBASE′の差値、並びに量子化幅を伝送して適応
量子化を行なう動画像符号化装置において、ブロツク内
予測符号化で2つのブロツクの代表値BASE及びBA
SE′との差値を伝送する場合は、この差値を例えば8
ビツトの固定長で表して伝送する。The third block coded information is the difference value between the two block representative values, and the adaptive cosine transform coding and intra-block predictive coding are adaptively switched in coding block units. Of the discrete cosine transform / intra-block predictive coding are transmitted, and in the intra-block predictive coding, representative values BASE and BASE 'in two blocks are obtained to obtain BASE and BASE.
And BASE ', and a quantization width is transmitted to perform adaptive quantization in a moving picture coding apparatus, representative values BASE and BA of two blocks by intra-block predictive coding.
When transmitting the difference value from SE ′, this difference value is set to, for example, 8
It is expressed as a fixed length bit and transmitted.
【0100】第4のブロツク符号化情報は係数(画像情
報)で、これはスキヤンコンバートされた1次元データ
をVLCコードに変換してなる。例えば2次元ハフマン
符号化によつて伝送される。これは「0」ではない値を
もつ係数について、その値と相対位置をセツトにして可
変長符号を構成して伝送するものである。デイスクリー
トコサイン変換及びブロツク内予測符号化信号の統計的
性質は異なるので、2次元ハフマン符号化の参照テーブ
ルをそれぞれに用意しておき、デイスクリートコサイン
変換符号化/ブロツク内予測符号化の切換信号に応じて
使い分けることにより、さらに符号化効率を高めること
ができる。The fourth block coded information is a coefficient (image information), which is formed by converting scan-converted one-dimensional data into a VLC code. For example, it is transmitted by two-dimensional Huffman coding. This is to transmit a coefficient having a value other than "0" by forming a variable length code with the value and the relative position set. Since the statistical properties of the Discrete Cosine Transform and the intra-block predictive coding signal are different, a reference table for the two-dimensional Huffman coding is prepared for each, and the discrete cosine transform coding / intra-block predictive coding switching signal is prepared. It is possible to further improve the coding efficiency by properly using them according to the above.
【0101】(6)復号化装置 復号化装置DV2は図2に示すように、符号化ビツトス
トリーム入力をバツフア回路31に一時蓄積する。次に
逆可変長符号化器(逆VLC)32によつて符号化ビツ
トストリームから、DCT/NTCの切換信号を解読
し、その情報に従つてブロツクごとにDCT又はNTC
を選択する。遅延回路33はNTC処理に対応する時間
の調整のためである。第1逆量子化器34、逆デイスク
リートコサイン変換(DCT)回路35は前述のデイス
クリートコサイン符号化処理部1と相補的な構成を有す
る。(6) Decoding Device The decoding device DV2 temporarily stores the encoded bit stream input in the buffer circuit 31, as shown in FIG. Next, an inverse variable length encoder (inverse VLC) 32 decodes the DCT / NTC switching signal from the encoded bit stream, and according to the information, DCT or NTC for each block.
Select. The delay circuit 33 is for adjusting the time corresponding to the NTC processing. The first inverse quantizer 34 and the inverse discrete cosine transform (DCT) circuit 35 have a configuration complementary to the above-mentioned discrete cosine encoding processing unit 1.
【0102】同様に逆差分化回路38(図32に示すよ
うに1処理時間遅延回路38A及び加算回路38Bでな
る)、逆スキヤンコンバータ37、第2逆量子化器3
8、逆ブロツク内予測器39は、ブロツク内予測符号化
処理部2と相補的な構成を有する。予測器5はこれらブ
ロツクごとに処理された逆DCT35、又は逆ブロツク
内予測器39の出力により、原動画像を再現する。Similarly, an inverse difference circuit 38 (comprising a processing time delay circuit 38A and an adder circuit 38B as shown in FIG. 32), an inverse scan converter 37, a second inverse quantizer 3
8. The intra-block predictor 39 has a configuration complementary to that of the intra-block predictive coding processing unit 2. The predictor 5 reproduces the driving image by the output of the inverse DCT 35 processed for each block or the intra-inverse block predictor 39.
【0103】[0103]
【発明の効果】上述のように本発明によれば、画像の輪
郭部分の符号化についてはブロツク内予測符号化に切り
換えるようにしたことより、デイスクリートコサイン変
換符号化と同程度又は少ない情報量で、モスキートノイ
ズ等の妨害の少ない符号化をすることができ、デイスク
リートコサイン変換符号化のみのシステムに比べて、全
体として少ない情報量で、高い画質が得られる。As described above, according to the present invention, the coding of the contour portion of an image is switched to the intra-block predictive coding, so that the amount of information is the same as or smaller than that of the discrete cosine transform coding. Thus, it is possible to perform coding with less interference such as mosquito noise, and as a whole, a high image quality can be obtained with a smaller amount of information as compared with a system using only discrete cosine transform coding.
【0104】またブロツク内予測符号化をする場合、ブ
ロツクの代表値と量子化幅(又はブロツクの代表値BA
SEと、代表値BASE及びもう1つのブロツクの代表
値BASE′との差値、量子化幅)を伝送して、適応量
子化を行なうことにより、復号画像のブロツク歪を軽減
させることができる。また量子化後に係数の呼び出し順
序を適応的に切り換え、さらに必要に応じて係数の差分
化処理をすることにより、さらに符号化効率を高めるこ
とができる。In the intra-block predictive coding, the block representative value and the quantization width (or the block representative value BA
The block distortion of the decoded image can be reduced by transmitting the SE and the representative value BASE and the difference value between the representative value BASE 'of another block and the quantization width) and performing adaptive quantization. Further, the coding efficiency can be further improved by adaptively switching the coefficient calling order after quantization and further performing coefficient difference processing as necessary.
【図1】本発明による符号化器の一実施例を示すブロツ
ク図である。FIG. 1 is a block diagram showing an embodiment of an encoder according to the present invention.
【図2】本発明による復号化器の一実施例を示すブロツ
ク図である。FIG. 2 is a block diagram showing an embodiment of a decoder according to the present invention.
【図3】DCT係数の符号化順序を示す略線図である。FIG. 3 is a schematic diagram showing an encoding order of DCT coefficients.
【図4】係数の呼び出し順序を示す略線図である。FIG. 4 is a schematic diagram showing a calling order of coefficients.
【図5】ブロツク内予測符号化手順を示す略線図であ
る。FIG. 5 is a schematic diagram showing an intra-block predictive coding procedure.
【図6】平均値を使用する場合の特性曲線図である。FIG. 6 is a characteristic curve diagram when an average value is used.
【図7】平均値を使用する場合の量子化、復号化を示す
特性曲線図である。FIG. 7 is a characteristic curve diagram showing quantization and decoding when an average value is used.
【図8】平均値を使用した場合のブロツク歪の例を示す
特性曲線図である。FIG. 8 is a characteristic curve diagram showing an example of block distortion when an average value is used.
【図9】ADRCを使用する場合の特性曲線図である。FIG. 9 is a characteristic curve diagram when ADRC is used.
【図10】ADRCを使用した場合のブロツク歪の例を
示す特性曲線図である。FIG. 10 is a characteristic curve diagram showing an example of block distortion when ADRC is used.
【図11】第1のエツジマツチング量子化方法を示す特
性曲線図である。FIG. 11 is a characteristic curve diagram showing a first edge matching quantization method.
【図12】第1のエツジマツチング量子化方法を示す特
性曲線図である。FIG. 12 is a characteristic curve diagram showing a first edge matching quantization method.
【図13】第2のエツジマツチング量子化方法を示す特
性曲線図である。FIG. 13 is a characteristic curve diagram showing a second edge matching quantization method.
【図14】NTCで使用するデータスキヤンパスの例を
示す略線図である。FIG. 14 is a schematic diagram showing an example of a data scan path used in NTC.
【図15】NTCで使用するデータスキヤンパスの選択
例を示すアルゴリズムである。FIG. 15 is an algorithm showing an example of selection of a data scan path used in NTC.
【図16】差分化器の構成を示す接続図である。FIG. 16 is a connection diagram showing a configuration of a differencer.
【図17】他のブロツク内予測符号化手順を示す略線図
である。FIG. 17 is a schematic diagram showing another intra-block predictive coding procedure.
【図18】エツジのDCT係数との関係を示す略線図で
ある。FIG. 18 is a schematic diagram showing a relationship between an edge and a DCT coefficient.
【図19】符号化方式選択処理手順を示すフローチヤー
トである。FIG. 19 is a flow chart showing a coding method selection processing procedure.
【図20】輪郭ブロツク検出サブルーチンを示すフロー
チヤートである。FIG. 20 is a flow chart showing a contour block detection subroutine.
【図21】DCT係数の集中度の計算例を示すアルゴリ
ズムである。FIG. 21 is an algorithm showing an example of calculating the degree of concentration of DCT coefficients.
【図22】ブロツクの代表値の推定に用いるブロツク内
画素の位置を示す略線図である。FIG. 22 is a schematic diagram showing positions of pixels in a block used for estimating a representative value of a block.
【図23】処理後のメモリ内データを示す略線図であ
る。FIG. 23 is a schematic diagram showing in-memory data after processing.
【図24】DCT/NTCの判定方法のC言語での定義
を示すアルゴリズムである。FIG. 24 is an algorithm showing a definition in C language of a DCT / NTC determination method.
【図25】図24に続く図面として、DCT/NTCの
判定方法のC言語での定義を示すアルゴリズムである。FIG. 25 is an algorithm showing a definition in C language of a DCT / NTC determination method as a drawing following FIG. 24;
【図26】図25に続く図面として、DCT/NTCの
判定方法のC言語での定義を示すアルゴリズムである。FIG. 26 is an algorithm showing a definition in C language of a DCT / NTC determination method as a drawing following FIG. 25;
【図27】図26に続く図面として、DCT/NTCの
判定方法のC言語での定義を示すアルゴリズムである。FIG. 27 is an algorithm showing a definition in C language of a DCT / NTC determination method as a drawing subsequent to FIG. 26;
【図28】図27に続く図面として、DCT/NTCの
判定方法のC言語での定義を示すアルゴリズムである。28 is an algorithm showing a definition in C language of a DCT / NTC determination method as a drawing following FIG. 27. FIG.
【図29】輪郭を含むブロツク画像信号の例を示す信号
波形図である。FIG. 29 is a signal waveform diagram showing an example of a block image signal including a contour.
【図30】DCT/NTC切換情報の伝送例を示す略線
図である。FIG. 30 is a schematic diagram showing an example of transmission of DCT / NTC switching information.
【図31】ブロツク内代表値の伝送例を示す略線図であ
る。FIG. 31 is a schematic diagram showing an example of transmission of a representative value within a block.
【図32】逆差分化器を示す接続図である。FIG. 32 is a connection diagram showing an inverse differencer.
【図33】ブロツク化モードを決定するためのアルゴリ
ズムを示すリストである。FIG. 33 is a list showing an algorithm for determining a blocking mode.
【図34】フレーム/フイールド構成のマクロブロツク
を示す図である。FIG. 34 is a diagram showing a macroblock having a frame / field structure.
1 デイスクリートコサイン変換(DCT)符号化処理
部 2 ブロツク内予測符号化(NTC)処理部 3 符号化方式切換判定器 4A、4B 第1、第2の選択器 5 予測器 6 可変長符号化器(VLC) 7 バツフア回路 11 デイスクリートコサイン変換(DCT)回路 12 第1の量子化器 13 遅延回路 14 第1の逆量子化器 15 逆デイスクリートコサイン変換部 21 ブロツク内予測器 22 第2の量子化器 23 スキヤンコンバータ 24 差分化器 25 第2の逆量子化器 26 逆ブロツク内予測器 31 バツフア回路 32 逆可変長符号化器(VLC) 33 遅延回路 34 第1の逆量子化器 35 逆デイスクリートコサイン変換器 36 逆差分化回路 37 逆スキヤンコンバータ 38 第2の逆量子化器 39 逆ブロツク内予測器 43 予測器 DV1 符号化装置 DV2 復号化装置。1 Discrete Cosine Transform (DCT) Coding Processor 2 Intra-block Predictive Coding (NTC) Processor 3 Coding Scheme Switching Judgment Device 4A, 4B First and Second Selector 5 Predictor 6 Variable Length Coding Device (VLC) 7 buffer circuit 11 discreet cosine transform (DCT) circuit 12 first quantizer 13 delay circuit 14 first inverse quantizer 15 inverse discrete cosine transform unit 21 intra-block predictor 22 second quantum 23 Sukiyan converter 24 Differentiator 25 Second inverse quantizer 26 Inverse block predictor 31 Buffer circuit 32 Inverse variable length encoder (VLC) 33 Delay circuit 34 First inverse quantizer 35 Inverse disk Rieto cosine converter 36 Inverse difference circuit 37 Inverse scan converter 38 Second inverse quantizer 39 Inverse block predictor 43 Prediction DV1 Encoding device DV2 Decoding device.
Claims (13)
よつて動画像信号を圧縮して伝送する動画像符号化装置
であって、 符号化ブロツク単位で、符号化方式をデイスクリートコ
サイン変換符号化方式又はブロツク内予測符号化方式に
適応的に切り換えると同時に、ブロツク単位のデイスク
リートコサイン変換符号化/ブロツク内予測符号化切換
情報を符号化された動画像データと共に伝送し、かつブ
ロツク内予測符号化時、ブロツクの予測値及び量子化幅
情報を伝送することにより適応量子化する動画像符号化
装置において、 上記デイスクリートコサイン変換符号化またはブロツク
内予測符号化を、フレームで構成されるブロツクで行な
うか又はフイールドで構成されるブロツクで行なうかを
切替えて、その切替え信号をデイスクリートコサイン変
換符号化またはブロツク内予測符号化された動画像デー
タとともに伝送することを特徴とする動画像符号化装
置。1. A moving picture coding apparatus for compressing and transmitting a moving picture signal by performing intra-picture and inter-picture coding processing, wherein the coding method is a discrete cosine for each coding block. At the same time as adaptively switching to the transform coding system or intra-block predictive coding system, block-wise discrete cosine transform coding / intra-block predictive coding switching information is transmitted together with the coded moving image data, and In intra-prediction coding, in a moving picture coding apparatus that adaptively quantizes by transmitting a block prediction value and quantization width information, the discrete cosine transform coding or intra-block prediction coding is composed of frames. Switch block or a block made up of fields, and switch the switching signal. Be transmitted with sine transform coding or the intra-block predictive coded video data moving picture coding apparatus according to claim.
より動画像信号を圧縮して伝送する動画像符号化装置で
あって、 符号化ブロツク単位で、符号化方式をデイスクリートコ
サイン変換符号化方式又はブロツク内予測符号化方式に
適応的に切り換えると同時に、ブロツク単位のデイスク
リートコサイン変換符号化/ブロツク内予測符号化切換
情報を符号化された動画像データと共に伝送し、かつブ
ロツク内予測符号化時、ブロツクの予測値及びダイナミ
ツクレンジ情報を伝送することにより適応量子化する動
画像符号化装置において、 上記デイスクリートコサイン変換符号化またはブロツク
内予測符号化を、フレームで構成されるブロツクで行な
うか又はフイールドで構成されるブロツクで行なうかを
切替えて、その切替え信号をデイスクリートコサイン変
換符号化またはブロツク内予測符号化された動画像デー
タとともに伝送することを特徴とする動画像符号化装
置。2. A moving picture coding apparatus for compressing and transmitting a moving picture signal by performing intra-picture and inter-picture coding processing, wherein the coding method is discrete cosine transform coding in coding block units. Block or intra-block predictive coding system, and at the same time, block-wise discrete cosine transform coding / intra-block prediction coding switching information is transmitted together with the coded moving image data, and intra-block prediction is performed. At the time of coding, in a moving picture coding apparatus that adaptively quantizes by transmitting a block prediction value and dynamic range information, the discrete cosine transform coding or intra-block prediction coding is a block composed of frames. Or the block made up of fields, and the switching signal is switched. Video encoding apparatus characterized by transmitting with discrete cosine transform coding or the intra-block predictive coded video data.
(DPCM)することを特徴とする請求項1又は2に記
載の動画像符号化装置。3. The moving picture coding apparatus according to claim 1, wherein the coded information is further subjected to differential pulse code modulation (DPCM).
ームを復号する動画像復号化装置であって、 逆デイスクリートコサイン変換により復号されたブロツ
クと逆ブロツク予測符号化により復号されたブロツクと
を、伝送されて来たデイスクリートコサイン変換符号化
/ブロツク予測符号化切換情報により選択し、これら選
択されたブロツクから動画像を復号する動画像復号化装
置において、 上記伝送されて来たデイスクリートコサイン変換符号化
/ブロツク予測符号化切換情報は、符号化に際して、デ
イスクリートコサイン変換符号化またはブロツク内予測
符号化をフレームで構成されるブロツクで行なったか、
フイールドで構成されるブロツクで行なったかを指示す
る信号を含み、上記指示する信号により動画像を復号す
ることを特徴とする動画像復号化装置。4. A moving picture decoding apparatus for decoding a bit stream of coded moving picture data, wherein a block decoded by an inverse discrete cosine transform and a block decoded by an inverse block predictive coding are provided. In the moving picture decoding device which selects by the transmitted discrete cosine transform coding / block predictive coding switching information and decodes the moving picture from these selected blocks, the transmitted discrete cosine The transform coding / block predictive coding switching information is such that, when coding, whether discrete cosine transform coding or intra-block predictive coding was performed by a block composed of frames,
A moving picture decoding apparatus including a signal indicating whether a block composed of a field has been performed, and decoding a moving picture by the above-mentioned instruction signal.
より動画像信号を圧縮して伝送する動画像符号化装置で
あって、 符号化ブロツク単位で、符号化方式をデイスクリートコ
サイン変換符号化方式又はブロツク内予測符号化方式に
適応的に切り換えると同時に、ブロツク単位のデイスク
リートコサイン変換符号化/ブロツク内予測符号化切換
情報を符号化された動画像データと共に伝送し、かつブ
ロツク内予測符号化時、ブロツクの代表値及び量子化幅
情報を伝送することにより適応量子化する動画像符号化
装置において、 上記デイスクリートコサイン変換符号化またはブロツク
内予測符号化を、フレームで構成されるブロツクで行な
うか又はフイールドで構成されるブロツクで行なうかを
切替えて、その切替え信号をデイスクリートコサイン変
換符号化またはブロツク内予測符号化された動画像デー
タとともに伝送することを特徴とする動画像符号化装
置。5. A moving picture coding apparatus for compressing and transmitting a moving picture signal by performing intra-picture and inter-picture coding processing, wherein the coding method is discrete cosine transform coding in coding block units. Block or intra-block predictive coding system, and at the same time, block-wise discrete cosine transform coding / intra-block prediction coding switching information is transmitted together with the coded moving image data, and intra-block prediction is performed. At the time of encoding, in a moving picture coding apparatus for adaptively quantizing by transmitting a block representative value and quantization width information, the discrete cosine transform coding or intra-block predictive coding is a block composed of frames. Or a block composed of fields is used to switch the switching signal. Video encoding apparatus characterized by transmitting together with the moving picture data predicted coding the in-transform coding or block.
より動画像信号を圧縮して伝送する動画像符号化装置で
あって、 符号化ブロツク単位で、符号化方式をデイスクリートコ
サイン変換符号化方式又はブロツク内予測符号化方式に
適応的に切り換えると同時に、ブロツク単位のデイスク
リートコサイン変換符号化/ブロツク内予測符号化切換
情報を符号化された動画像データと共に伝送し、かつブ
ロツク内予測符号化時、ブロツク内の第1及び第2の代
表値を求め、第1の代表値、第1の代表値及び第2の代
表値の差値、並びに量子化幅情報を伝送することにより
適応量子化する動画像符号化装置において、 上記デイスクリートコサイン変換符号化またはブロツク
内予測符号化を、フレームで構成されるブロツクで行な
うか又はフイールドで構成されるブロツクで行なうかを
切替えて、その切替え信号をデイスクリートコサイン変
換符号化またはブロツク内予測符号化された動画像デー
タとともに伝送することを特徴とする動画像符号化装
置。6. A moving picture coding apparatus for compressing and transmitting a moving picture signal by performing intra-picture and inter-picture coding processing, wherein the coding method is discrete cosine transform coding in coding block units. Block or intra-block predictive coding system, and at the same time, block-wise discrete cosine transform coding / intra-block prediction coding switching information is transmitted together with the coded moving image data, and intra-block prediction is performed. Adaptive by obtaining the first and second representative values in the block at the time of encoding and transmitting the first representative value, the difference value between the first representative value and the second representative value, and the quantization width information. In a moving picture coding apparatus for quantizing, the discrete cosine transform coding or intra-block predictive coding is performed by a block composed of frames or a file. In switched or performed in configured block, moving picture encoding apparatus characterized by transmitting with its switching signal discrete cosine transform coding or the intra-block predictive coded video data.
に従つて適応走査により1次元情報に変換し、さらに必
要に応じて、当該1次元情報を隣接サンプル間について
差分化処理することにより差分値情報に変換し、符号化
された動画像データと共に、走査順序及び差分化処理を
するか否かを表す切換情報を伝送することを特徴とする
請求項5又は6に記載の動画像符号化装置。7. Quantized information is converted into one-dimensional information by adaptive scanning according to the distribution state in the block, and further, if necessary, the one-dimensional information is subjected to a difference processing between adjacent samples. 7. The moving image code according to claim 5, wherein the switching information indicating whether to perform the scanning order and the difference processing is transmitted together with the encoded moving image data converted into the difference value information. Device.
より動画像信号を圧縮して伝送する画像符号化装置であ
って、 符号化ブロツク単位で、符号化方式をデイスクリートコ
サイン変換符号化方式又はブロツク内予測符号化方式に
適応的に切り換えると同時に、ブロツク単位のデイスク
リートコサイン変換符号化/ブロツク内予測符号化切換
情報を符号化された動画像データと共に伝送し、かつブ
ロツク内予測符号化時、ブロツクの代表値及び量子化幅
情報を伝送することにより適応量子化し、 量子化情報をそのブロツク内における分布状態に従つて
適応走査することにより1次元化し、さらに必要に応じ
て、当該1次元化した情報を隣接サンプル間について差
分化処理することにより差分値情報に変換し、符号化さ
れた動画像データと共に、走査順序及び差分化処理をす
るか否かを表す切換情報を伝送し、デイスクリートコサ
イン変換符号化/ブロツク内予測符号化で用いるブロツ
クの代表値及びブロツク内サンプルの量子化幅と、走査
順序と、差分化処理をしたか否かを表す切換情報とを可
変長符号化する動画像符号化装置において、 上記デイスクリートコサイン変換符号化またはブロツク
内予測符号化を、フレームで構成されるブロツクで行な
うか又はフイールドで構成されるブロツクで行なうかを
切替えて、その切替え信号をデイスクリートコサイン変
換符号化またはブロツク内予測符号化された動画像デー
タとともに伝送することを特徴とする動画像符号化装
置。8. An image coding apparatus for compressing and transmitting a moving image signal by performing intra-picture and inter-picture coding processing, wherein the coding method is discrete cosine transform coding in coding block units. System or intra-block predictive coding system is adaptively switched, and at the same time block-wise discrete cosine transform coding / intra-block predictive coding switching information is transmitted together with the coded moving image data, and the intra-block predictive code is also transmitted. At the time of coding, adaptive quantization is performed by transmitting the representative value of the block and quantization width information, and the quantization information is one-dimensionalized by adaptively scanning the quantization information according to the distribution state in the block. The one-dimensionalized information is converted into difference value information by performing a difference processing between adjacent samples, and the difference value information is shared with the encoded moving image data. , The scanning order and the switching information indicating whether or not to perform the difference processing, and the representative value of the block used in the discrete cosine transform coding / intra-block prediction coding and the quantization width of the sample in the block, and the scanning order. In the moving picture coding apparatus for variable length coding the switching information indicating whether or not the differential processing has been performed, the discrete cosine transform coding or intra-block predictive coding is performed by a block composed of frames. A moving picture coding apparatus, characterized in that it is switched between carrying out or a block composed of fields, and the switching signal is transmitted together with moving picture data which is discretized cosine transform coded or intra-block predictive coded. .
より動画像信号を圧縮して伝送する画像符号化装置であ
って、 符号化ブロツク単位で、符号化方式をデイスクリートコ
サイン変換符号化方式又はブロツク内予測符号化方式に
適応的に切り換えると同時に、ブロツク単位のデイスク
リートコサイン変換符号化/ブロツク内予測符号化切換
情報を符号化された動画像データと共に伝送し、かつブ
ロツク内予測符号化時、ブロツク内の第1及び第2の代
表値を求め、第1の代表値、第1の代表値及び第2の代
表値の差値、並びに量子化幅情報を伝送することにより
適応量子化し、量子化情報をそのブロツク内での分布状
態に従つた適応走査により1次元化し、さらに必要に応
じて、当該1次元化情報を隣接サンプル間について差分
化処理することにより差分値情報に変換し、符号化され
た動画像データと共に、走査順序及び差分化処理をする
か否かを表す切換情報を伝送し、デイスクリートコサイ
ン変換符号化/ブロツク内予測符号化切換情報と、ブロ
ツク内予測符号化で用いるブロツクの上記第1の代表値
と、上記第1の代表値及びもう1つのブロツクの代表値
である上記第2の代表値との差値と、ブロツク内サンプ
ルの量子化幅と、走査順序と、差分化処理をするか否か
の切換情報とを可変長符号化する動画像符号化装置にお
いて、上記デイスクリートコサイン変換符号化またはブ
ロツク内予測符号化を、フレームで構成されるブロツク
で行なうか又はフイールドで構成されるブロツクで行な
うかを切替えて、その切替え信号をデイスクリートコサ
イン変換符号化またはブロツク内予測符号化された動画
像データとともに伝送することを特徴とする動画像符号
化装置。9. An image coding apparatus for compressing and transmitting a moving picture signal by performing intra-picture and inter-picture coding processing, wherein the coding method is discrete cosine transform coding in coding block units. System or intra-block predictive coding system is adaptively switched, and at the same time block-wise discrete cosine transform coding / intra-block predictive coding switching information is transmitted together with the coded moving image data, and the intra-block predictive code is also transmitted. At the time of encoding, the first and second representative values in the block are obtained, and the adaptive quantum is transmitted by transmitting the first representative value, the difference value between the first representative value and the second representative value, and the quantization width information. The quantized information is made into one-dimensional by adaptive scanning according to the distribution state in the block, and further the one-dimensionalized information is subjected to a difference processing between adjacent samples, if necessary The difference information is converted into difference value information, and the switching information indicating the scanning order and whether or not the difference processing is performed is transmitted together with the encoded moving image data, and the discrete cosine transform encoding / intra-block prediction encoding switching is performed. Information, a difference value between the first representative value of the block used in intra-block predictive coding, and the second representative value that is the representative value of the first block and another block, and the intra-block In a moving picture coding apparatus that performs variable length coding on a quantization width of a sample, a scanning order, and switching information as to whether or not to perform difference processing, the discrete cosine transform coding or intra-block prediction coding is performed. , A block composed of frames or a block composed of fields is switched, and the switching signal is converted to discrete cosine transform coding or block. Video encoding apparatus characterized by transmitting together with the inner predictive coded video data.
リームを復号する動画像復号化装置であって、 デイスクリートコサイン変換により変換されたブロツク
とブロツク内予測符号化により符合化されたブロツクと
を、伝送されてきたデイスクリートコサイン変換/ブロ
ツク内予測符号化切替え信号により選択し、ブロツク内
予測符号化の場合は、さらにブロツクの代表値と量子化
幅情報を受けとり、これら、選択されたブロツクから動
画像を復号する動画像復号化装置において、 上記伝送されて来たデイスクリートコサイン変換符号化
/ブロツク予測符号化切換情報は、符号化に際して、デ
イスクリートコサイン変換符号化またはブロツク内予測
符号化をフレームで構成されるブロツクで行なったか、
フイールドで構成されるブロツクで行なったかを指示す
る信号を含み、上記指示する信号により動画像を復号す
ることを特徴とする動画像復号化装置。10. A moving picture decoding apparatus for decoding a bit stream of coded moving picture data, comprising a block converted by the Discrete Cosine Transform and a block coded by intra-block predictive coding. , Select by the transmitted discrete cosine transform / intra-block predictive coding switching signal, and in the case of intra-block predictive coding, further receive the representative value of the block and the quantization width information, and select from these selected blocks. In a moving picture decoding apparatus for decoding a moving picture, the transmitted discrete cosine transform coding / block predictive coding switching information is converted into discrete cosine transform coding or intra-block predictive coding at the time of coding. Was it done with a block composed of frames,
A moving picture decoding apparatus including a signal indicating whether a block composed of a field has been performed, and decoding a moving picture by the above-mentioned instruction signal.
リームを復号する動画像復号化装置であって、 デイスクリートコサイン変換により変換されたブロツク
とブロツク内予測符号化により符合化されたブロツクと
を、伝送されてきたデイスクリートコサイン変換/ブロ
ツク内予測符号化切替え信号により選択し、ブロツク内
予測符号化の場合は、さらにブロツク内の第1の代表
値、第1の代表値及び第2の代表値の差値、並びに量子
化幅情報を受けとり、これら、選択されたブロツクから
動画像を復号する動画像復号化装置において、 上記伝送されて来たデイスクリートコサイン変換符号化
/ブロツク予測符号化切換情報は、符号化に際して、デ
イスクリートコサイン変換符号化またはブロツク内予測
符号化をフレームで構成されるブロツクで行なったか、
フイールドで構成されるブロツクで行なったかを指示す
る信号を含み、上記指示する信号により動画像を復号す
ることを特徴とする動画像復号化装置。11. A moving picture decoding apparatus for decoding a bit stream of coded moving picture data, comprising a block converted by the Discrete Cosine Transform and a block coded by intra-block predictive coding. , Selected by the transmitted discrete cosine transform / intra-block predictive coding switching signal. In the case of intra-block predictive coding, the first representative value, first representative value and second representative value in the block are further selected. In the moving picture decoding apparatus which receives the difference value of the values and the quantization width information and decodes the moving picture from the selected block, the above-mentioned transmitted discrete cosine transform coding / block predictive coding switching When encoding, the information is discretized cosine transform coding or intra-block predictive coding and is composed of frames. Or it was carried out using the clock,
A moving picture decoding apparatus including a signal indicating whether a block composed of a field has been performed, and decoding a moving picture by the above-mentioned instruction signal.
リームを復号する動画像復号化装置であって、 デイスクリートコサイン変換により変換されたブロツク
とブロツク内予測符号化により符合化されたブロツクと
を、伝送されてきたデイスクリートコサイン変換/ブロ
ツク内予測符号化切替え信号により選択し、ブロツク内
予測符号化の場合は、さらにブロツクの代表値と量子化
幅情報とブロツク内量子化情報を1次元化する際に使用
した走査順序ならびに当該1次元化した情報を隣接サン
プル間について差分化処理したか否かを表す情報を受け
とり、これら、選択されたブロツクから動画像を復号す
る動画像復号化装置において、 上記伝送されて来たデイスクリートコサイン変換符号化
/ブロツク予測符号化切換情報は、符号化に際して、デ
イスクリートコサイン変換符号化またはブロツク内予測
符号化をフレームで構成されるブロツクで行なったか、
フイールドで構成されるブロツクで行なったかを指示す
る信号を含み、上記指示する信号により動画像を復号す
ることを特徴とする動画像復号化装置。12. A moving picture decoding apparatus for decoding a bit stream of coded moving picture data, comprising a block converted by the Discrete Cosine Transform and a block coded by intra-block predictive coding. , Select by the transmitted discrete cosine transform / intra-block predictive coding switching signal, and in the case of intra-block predictive coding, the representative value of the block, the quantization width information, and the intra-block quantization information are one-dimensionalized. In the moving picture decoding apparatus, which receives the information indicating whether or not the one-dimensionalized information has been subjected to the difference processing for the adjacent samples, and decodes the moving picture from the selected block. , The transmitted discrete cosine transform coding / block predictive coding switching information is transmitted at the time of coding. , Or were performed by the block composed of the discrete cosine transform coding or the intra-block predictive coding in a frame,
A moving picture decoding apparatus including a signal indicating whether a block composed of a field has been performed, and decoding a moving picture by the above-mentioned instruction signal.
リームを復号する動画像復号化装置であって、 デイスクリートコサイン変換により変換されたブロツク
とブロツク内予測符号化により符合化されたブロツクと
を、伝送されてきたデイスクリートコサイン変換/ブロ
ツク内予測符号化切替え信号により選択し、ブロツク内
予測符号化の場合は、 さらにブロツク内の第1の代表値、第1の代表値及び第
2の代表値の差値、量子化幅情報、ブロツク内量子化情
報を1次元化する際に使用した走査順序ならびに当該1
次元化した情報を隣接サンプル間について差分化処理し
たか否かを表す情報を受けとり、これら、選択されたブ
ロツクから動画像を復号する動画像復号化装置におい
て、 上記伝送されて来たデイスクリートコサイン変換符号化
/ブロツク予測符号化切換情報は、符号化に際して、デ
イスクリートコサイン変換符号化またはブロツク内予測
符号化をフレームで構成されるブロツクで行なったか、
フイールドで構成されるブロツクで行なったかを指示す
る信号を含み、上記指示する信号により動画像を復号す
ることを特徴とする動画像復号化装置。13. A moving picture decoding apparatus for decoding a bit stream of coded moving picture data, comprising: a block converted by the Discrete Cosine Transform and a block coded by intra-block predictive coding. , In the case of intra-block predictive coding, it is further selected by the transmitted discrete cosine transform / intra-block predictive coding switching signal. Further, in the case of intra-block predictive coding, the first representative value, the first representative value and the second representative value in the block are selected. The difference between the values, the quantization width information, the scan order used when the quantization information in the block is one-dimensional, and the 1
In the moving picture decoding apparatus for receiving the information indicating whether the dimensionalized information has been subjected to the difference processing between adjacent samples and decoding the moving picture from the selected block, the transmitted discrete cosine The transform coding / block predictive coding switching information is such that, when coding, whether discrete cosine transform coding or intra-block predictive coding was performed by a block composed of frames,
A moving picture decoding apparatus including a signal indicating whether a block composed of a field has been performed, and decoding a moving picture by the above-mentioned instruction signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US08/005,311 US5410350A (en) | 1992-10-28 | 1993-01-15 | Motion picture encoding and/or decoding system |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1244892 | 1992-01-27 | ||
| JP4-12448 | 1992-01-27 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05276506A true JPH05276506A (en) | 1993-10-22 |
Family
ID=11805622
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP29046292A Pending JPH05276506A (en) | 1992-01-27 | 1992-10-28 | Coding and decoding device for moving picture |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05276506A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005117572A (en) * | 2003-10-10 | 2005-04-28 | Sony Corp | Encoding device and encoding method, decoding device and decoding method, program, and recording medium |
| US7058279B2 (en) | 2000-03-30 | 2006-06-06 | Matsushita Electric Industrial Co., Ltd. | Special reproduction data generating device, medium and information aggregate |
| WO2009063554A1 (en) * | 2007-11-13 | 2009-05-22 | Fujitsu Limited | Encoder and decoder |
-
1992
- 1992-10-28 JP JP29046292A patent/JPH05276506A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7058279B2 (en) | 2000-03-30 | 2006-06-06 | Matsushita Electric Industrial Co., Ltd. | Special reproduction data generating device, medium and information aggregate |
| JP2005117572A (en) * | 2003-10-10 | 2005-04-28 | Sony Corp | Encoding device and encoding method, decoding device and decoding method, program, and recording medium |
| WO2009063554A1 (en) * | 2007-11-13 | 2009-05-22 | Fujitsu Limited | Encoder and decoder |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH05276500A (en) | Moving image coding and decoding device | |
| US11910014B2 (en) | Image encoding method using a skip mode, and a device using the method | |
| CN102025991B (en) | Encoding method, decoding method, encoding device, decoding device and image processing system | |
| JP4617644B2 (en) | Encoding apparatus and method | |
| US7711196B2 (en) | Apparatus and method for generating coded block pattern for alpha channel image and alpha channel image encoding/decoding apparatus and method using the same | |
| KR20080068678A (en) | Video encoding device and video decoding device | |
| JP2006148970A (en) | Image data coding method and computer readable medium recording program therefor | |
| KR20170072637A (en) | Video Coding/Encoding Method and Apparatus thereof | |
| US20230319265A1 (en) | Intra prediction method and device, decoder, and encoder | |
| US5410350A (en) | Motion picture encoding and/or decoding system | |
| KR20190088020A (en) | Video coding method and apparatus using multiple transform | |
| JP2007521740A (en) | How to find zeros in the transformation domain early | |
| CN101360240A (en) | Encoding method, decoding method, encoding device, decoding device, image processing system | |
| JP2012080571A (en) | Encoding device and method | |
| US7613351B2 (en) | Video decoder with deblocker within decoding loop | |
| JP2012028863A (en) | Moving image encoder | |
| JP2005252609A (en) | Data processor, its method and coder | |
| JP2021129148A (en) | Predictors, encoders, decoders, and programs | |
| JPH05276506A (en) | Coding and decoding device for moving picture | |
| JPH065954B2 (en) | Interframe and intraframe adaptive predictive coding device for moving image signal | |
| KR100730383B1 (en) | Spatial Prediction Method for Error Propagation in Image Compression System | |
| JPH0595542A (en) | Dynamic picture coder-decoder | |
| JP5375935B2 (en) | Encoding apparatus and method | |
| KR100295328B1 (en) | Image Encoding and Decoding Method through Prediction of Residual Signal Between Blocks | |
| KR101200494B1 (en) | method for transcoding H.264 to MPEG-2 |