JP2795225B2 - Video coding method - Google Patents

Video coding method

Info

Publication number
JP2795225B2
JP2795225B2 JP18417095A JP18417095A JP2795225B2 JP 2795225 B2 JP2795225 B2 JP 2795225B2 JP 18417095 A JP18417095 A JP 18417095A JP 18417095 A JP18417095 A JP 18417095A JP 2795225 B2 JP2795225 B2 JP 2795225B2
Authority
JP
Japan
Prior art keywords
block
frame
motion
data
value
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.)
Expired - Fee Related
Application number
JP18417095A
Other languages
Japanese (ja)
Other versions
JPH0937268A (en
Inventor
英樹 本間
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP18417095A priority Critical patent/JP2795225B2/en
Publication of JPH0937268A publication Critical patent/JPH0937268A/en
Application granted granted Critical
Publication of JP2795225B2 publication Critical patent/JP2795225B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、動画像の符号化方式に
係り、特に非符号化ブロックの強制発生による動画像符
号化方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture coding method, and more particularly to a moving picture coding method by forcibly generating an uncoded block.

【0002】[0002]

【従来の技術】画像信号のデータ圧縮手段として、フレ
ーム間符号化方式が採用されている。このフレーム間圧
縮符号化方式は種々提案されているが、画像信号のフレ
ーム差分を符号化すること、この差分信号に対してさら
に画像の持つ2次元空間内の相関を効率良く利用する直
交変換を用いた変換符号化が良く用いられ、特に直交変
換としてDCTをベースとした符号化方式が蓄積メディ
ア用動画像符号化標準であるISO/IEC 1117
2−2(以下、通称MPEG1)などの国際標準の符号
化方式で採用されている。
2. Description of the Related Art As an image signal data compressing means, an inter-frame encoding method is employed. Although various inter-frame compression coding methods have been proposed, encoding a frame difference of an image signal and orthogonal transform that efficiently uses a correlation in a two-dimensional space of the image with respect to the difference signal are further performed. The transform coding used is often used. In particular, an encoding method based on DCT as orthogonal transform is ISO / IEC 1117 which is a moving image coding standard for storage media.
2-2 (hereinafter referred to as MPEG1) and other international standard encoding methods.

【0003】MPEG1規格に準拠した圧縮符号化を行
う場合、圧縮符号化の単位を分割階層化して行う。図1
1に示すように、入力信号を輝度信号と色信号に分離
し、個々のフレームに対してフレーム内符号化フレーム
(Iフレーム)または順方向予測符号化フレーム(Pフ
レーム)または両方向予測符号化フレーム(Bフレー
ム)の予測方式に分類する。さらにフレームを格子状の
マクロブロックという単位に分割し、このマクロブロッ
ク単位で動き補償と量子化ステップを決定し、DCT処
理と量子化処理と可変長符号化処理は、輝度信号をさら
に4分割したブロック単位で、Y0、Y1、Y2、Y
3、Cb、Crの順で符号化処理を行う。
[0003] When performing compression encoding based on the MPEG1 standard, the compression encoding unit is divided into hierarchies. FIG.
As shown in FIG. 1, an input signal is separated into a luminance signal and a chrominance signal, and an intra-coded frame (I frame), a forward predicted coded frame (P frame), or a bidirectional predicted coded frame is separated for each frame. (B frame) prediction method. Further, the frame is divided into units called lattice-like macroblocks, and motion compensation and quantization steps are determined in units of the macroblocks. DCT processing, quantization processing, and variable length encoding processing further divide the luminance signal into four parts. Y0, Y1, Y2, Y in block units
The encoding process is performed in the order of 3, Cb, and Cr.

【0004】従来のDCTをベースとした符号化方式に
よる画像の符号化について、MPEG1を例にとり説明
する。図8は従来の画像符号化装置の一例のブロック図
である。この従来の画像符号化装置は、入力された画像
データを2次元のマクロブロックに分割し、動き検出部
87で1ないし2枚の参照フレームとの間でマクロブロ
ックの動きベクトルを検出する。前記マクロブロックの
動きベクトル情報をもとに、動き補償フレーム間差分デ
ータを求め、この差分データを8×8のブロックに分割
したのち、DCT部81において直交変換を行い、変換
後のデータを量子化部82で標本化を行い、可変長符号
化部83で圧縮符号化データの作成を行う。前記可変長
符号化部83から出力された符号化データの符号量に基
づいて、符号量制御部88では、目標とする圧縮データ
の発生符号量にあうように量子化係数の調節を行う。
[0004] Encoding of an image by a conventional DCT-based encoding method will be described by taking MPEG1 as an example. FIG. 8 is a block diagram of an example of a conventional image encoding device. In this conventional image encoding device, input image data is divided into two-dimensional macroblocks, and a motion detection unit 87 detects a motion vector of the macroblock between one and two reference frames. Based on the motion vector information of the macroblock, difference data between motion compensated frames is obtained, the difference data is divided into 8 × 8 blocks, and orthogonal transform is performed in the DCT unit 81. The sampling section 82 performs sampling, and the variable length coding section 83 creates compressed coded data. Based on the code amount of the encoded data output from the variable-length encoding unit 83, the code amount control unit 88 adjusts the quantization coefficient so as to match the target code amount of the compressed data.

【0005】フレーム間符号化方式においては、フレー
ム間予測を行うため、後続するフレームに関するフレー
ム間符号化のための参照フレームデータを作成する必要
がある。符号化対象フレームがIフレームまたはPフレ
ームの場合は、逆量子化部84、逆DCT部85で伸長
処理し、フレームメモリ86に画像データを保存する。
前記フレームバッファ86の画像データは、後続するフ
レームのフレーム間符号化のための参照フレームデータ
となる。
In the inter-frame coding method, in order to perform inter-frame prediction, it is necessary to create reference frame data for inter-frame coding of a succeeding frame. When the encoding target frame is an I frame or a P frame, the image data is decompressed by an inverse quantization unit 84 and an inverse DCT unit 85, and the image data is stored in a frame memory 86.
The image data in the frame buffer 86 becomes reference frame data for inter-frame encoding of a subsequent frame.

【0006】このようなフレーム間符号化方式において
は、対象フレームがフレーム間符号化フレームの場合、
画像信号のフレーム間の差分を求め、この差分値をハフ
マン符号等の可変長符号に変換するものである。動画像
の特性上、動き補償後のフレーム相関は高くなり、差分
値は0またはそれに近いものとなり、それらに短い可変
長符号を割り当てることにより、圧縮効率を高めてい
る。
In such an interframe coding method, when the target frame is an interframe coded frame,
A difference between frames of an image signal is obtained, and the difference value is converted into a variable length code such as a Huffman code. Due to the characteristics of the moving image, the frame correlation after the motion compensation becomes high, the difference value becomes 0 or close to it, and a short variable length code is assigned to them to increase the compression efficiency.

【0007】また、分割したブロックの動き補償予測後
のデータが0になる場合は、非符号化ブロックとできる
ため、さらに圧縮効率を高めることが可能になる。
When the data of the divided block after the motion compensation prediction becomes 0, it can be regarded as a non-encoded block, so that the compression efficiency can be further improved.

【0008】従来の非符号化ブロック作成による圧縮効
率向上の方式として、特開平2−241289号公報に
記載された画像符号化制御方式がある。以下、図9を参
照にして従来の画像符号化制御方式について説明する。
減算回路91と量子化器94と加算回路99と1フレー
ム遅延回路98とにより、フレーム間符号化手段を構成
している。有効無効ブロック判定回路92は、フレーム
間差分信号をブロック単位で累算等を行って、そのブロ
ックが有効であるか無効であるかを判定し、無効ブロッ
クと判定した場合は、そのブロック内の差分信号を強制
的に0とするものであり、その場合に、輝度信号のブロ
ックについて無効と判定した時はそのブロックに対応す
る色信号のブロックについても強制的に無効として処理
し、判定に輝度信号のブロックについて有効と判定した
ときは、そのブロックに対応する色信号のブロックにつ
いても有効として処理するものである。従って輝度信号
と色信号が対になってフレーム間符号化信号として伝送
されることになり、輝度信号と色信号とのいずれか一方
のみが伝送されることがなくなる。
As a conventional method for improving compression efficiency by creating an uncoded block, there is an image coding control method described in Japanese Patent Application Laid-Open No. 2-241289. Hereinafter, a conventional image encoding control method will be described with reference to FIG.
The subtraction circuit 91, the quantizer 94, the addition circuit 99, and the one-frame delay circuit 98 constitute an inter-frame encoding unit. The valid / invalid block determination circuit 92 accumulates the inter-frame difference signal in block units and determines whether the block is valid or invalid. The difference signal is forcibly set to 0. In this case, when it is determined that the block of the luminance signal is invalid, the block of the color signal corresponding to the block is forcibly processed as invalid, and the luminance is determined. When it is determined that the signal block is valid, the color signal block corresponding to the block is also processed as valid. Therefore, the luminance signal and the chrominance signal are paired and transmitted as an inter-frame coded signal, so that only one of the luminance signal and the chrominance signal is not transmitted.

【0009】図10のような有効無効ブロック判定回路
を用いて、上記の有効/無効ブロック判定を行う。10
1はフレーム差分値を求める減算回路、102は絶対値
回路、103は加算回路、104、106はラッチ回路
を構成するフリップフロップ、105は閾値と比較する
比較回路、107、110、111はセレクタ、10
8、109は遅延回路である。またDCKはデータクロ
ック信号、BCKはブロッククロック信号、SELはブ
ロックの先頭のタイミングに加えられる選択制御信号、
YSは輝度信号ブロックと色信号ブロックを識別するた
めの輝度色識別信号、THは閾値を示す。
The above-described valid / invalid block determination is performed using a valid / invalid block determination circuit as shown in FIG. 10
1 is a subtraction circuit for calculating a frame difference value, 102 is an absolute value circuit, 103 is an addition circuit, 104 and 106 are flip-flops constituting a latch circuit, 105 is a comparison circuit for comparing with a threshold, 107, 110 and 111 are selectors, 10
8, 109 are delay circuits. DCK is a data clock signal, BCK is a block clock signal, SEL is a selection control signal added to the timing at the beginning of the block,
YS represents a luminance / color identification signal for distinguishing a luminance signal block from a color signal block, and TH represents a threshold.

【0010】減算回路101からのフレーム間差分信号
は、絶対値回路102により絶対値に変換される。セレ
クタ107は、選択制御信号SELにより制御され、各
ブロックの先頭において「0」、その後は、フリップフ
ロップ104にラッチされた内容を選択出力することに
なり、加算回路103においては、各ブロックの先頭の
輝度信号Yまたは色信号I、Qの差分値に0を加算して
フリップフロップ104に加えることになり、データク
ロック信号DCKによりフリップフロップ104にラッ
チされるから、新たなブロックの先頭の差分値がラッチ
されることになる。そして、そのラッチデータがセレク
タ107を介して加算回路103に加えられるから、ブ
ロック内の差分値の累算が行われる。
The inter-frame difference signal from the subtraction circuit 101 is converted into an absolute value by an absolute value circuit 102. The selector 107 is controlled by the selection control signal SEL to selectively output “0” at the head of each block, and thereafter, to output the contents latched by the flip-flop 104. Is added to the flip-flop 104 by adding 0 to the difference value between the luminance signal Y or the color signals I and Q, and is latched by the flip-flop 104 by the data clock signal DCK. Will be latched. Then, the latch data is added to the addition circuit 103 via the selector 107, so that the difference values in the block are accumulated.

【0011】比較回路105は、フリップフロップ10
4のラッチデータと閾値THとの比較を行い、例えば、
閾値THよりラッチデータが大きい時に、有効ブロック
を示す判定信号を出力し、各ブロックの終わりのブロッ
ククロック信号BCKに従ってフリップフロップ106
にラッチされる。セレクタ110は、輝度色識別信号Y
Sにより制御され、輝度信号ブロックを示す場合は、遅
延回路109を介した判定信号を選択出力し、色信号ブ
ロックを示す場合は、フリップフロップ106からの判
定信号を選択出力する。この判定信号によって、セレク
タ111が制御され、有効ブロックを示す判定信号の場
合は、遅延回路108を介した差分値を選択出力し、無
効ブロックを示す判定信号の場合は、「0」を選択出力
する。すなわち、無効ブロック内の各画素の差分値を強
制的に0とするものである。
The comparison circuit 105 includes a flip-flop 10
4 is compared with the threshold value TH, for example,
When the latch data is larger than the threshold value TH, a determination signal indicating a valid block is output, and the flip-flop 106 is output according to the block clock signal BCK at the end of each block.
Latched. The selector 110 outputs the luminance / color identification signal Y
Controlled by S, the judgment signal from the flip-flop 106 is selectively output when it indicates the luminance signal block, and selectively outputs the judgment signal via the delay circuit 109 when it indicates the color signal block. The selector 111 is controlled by this determination signal, and when the determination signal indicates a valid block, the difference value via the delay circuit 108 is selectively output, and when the determination signal indicates an invalid block, “0” is selectively output. I do. That is, the difference value of each pixel in the invalid block is forcibly set to 0.

【0012】たとえば、輝度信号ブロックYB2が無効
ブロックであると判定されると、その輝度信号ブロック
YB2の画素の差分値は、遅延回路108を介してセレ
クタ111に加えられるが、セレクタ110を介してセ
レクタ111に加えられる判定信号により、セレクタ1
11は「0」を選択出力することになり、無効ブロック
の画素の差分値が強制的に0となる。また、この輝度信
号ブロックYB2に対応する色信号ブロックIQB2の
画素の差分値が、遅延回路109を介してセレクタ11
0に加えられる判定信号がセレクタ111に加えられる
から、セレクタ111は「0」を選択出力する事になり
色信号ブロックIQB2も無効ブロックとして処理され
る。
For example, when it is determined that the luminance signal block YB2 is an invalid block, the difference value between the pixels of the luminance signal block YB2 is added to the selector 111 via the delay circuit 108, but is supplied to the selector 110 via the selector 110. According to the determination signal applied to the selector 111, the selector 1
11 selects and outputs "0", and the difference value of the pixels in the invalid block is forcibly set to 0. The difference value between the pixels of the color signal block IQB2 corresponding to the luminance signal block YB2 is supplied to the selector 11 via the delay circuit 109.
Since the determination signal added to 0 is added to the selector 111, the selector 111 selects and outputs "0", and the color signal block IQB2 is also processed as an invalid block.

【0013】このようにして、輝度信号と色信号ブロッ
クのいずれかが0となっている場合において、強制的に
他方のブロックも0にすることで、対象ブロックにおい
て符号発生をなくし、この抑制した分の符号量を他のブ
ロックへ割り当てることで、全体の画質向上が可能とな
る。また、可変長符号化処理をせずにすむため、圧縮速
度の向上にもつながる。
In this manner, when either the luminance signal or the chrominance signal block is 0, the other block is forcibly set to 0, thereby eliminating code generation in the target block and suppressing this. By allocating the code amount for other blocks to other blocks, the overall image quality can be improved. In addition, since the variable length encoding process is not required, the compression speed is improved.

【0014】[0014]

【発明が解決しようとする課題】前述したように、画像
信号を輝度信号と色信号に分離して、フレーム間差分符
号化を行い、さらに前フレームとの差分信号が輝度信号
(あるいは色信号)において無効ブロックと判定された
場合、色信号(あるいは輝度信号)を強制的に無効ブロ
ックにする処理によって、再生画質の劣化を防止するこ
とが提案されている。しかしながら、この場合、まず無
効ブロックが発生することが前提となる。この方式にお
いては、直前のフレームとの単純フレーム差分をとって
いるため、テレビ会議等で用いられる画面のような、背
景領域がある場合には、無効ブロックの発生は見込める
が、原画像として特に自然画像を用いた場合は、この輝
度情報における無効ブロックの発生頻度はきわめて低
い。
As described above, an image signal is separated into a luminance signal and a chrominance signal, inter-frame difference encoding is performed, and a difference signal from a previous frame is a luminance signal (or a chrominance signal). It has been proposed that when a block is determined to be invalid, a process of forcibly converting a chrominance signal (or luminance signal) into an invalid block to prevent deterioration of reproduced image quality is performed. However, in this case, it is assumed that an invalid block occurs first. In this method, since a simple frame difference from the immediately preceding frame is obtained, if there is a background area such as a screen used in a video conference or the like, the occurrence of an invalid block can be expected, but the original image is particularly important. When a natural image is used, the frequency of occurrence of invalid blocks in this luminance information is extremely low.

【0015】MPEG1の圧縮符号化方式においても、
可変長符号データの生成を必要としないブロック(スキ
ップマクロブロック)の定義がある。スキップマクロブ
ロックは、Pフレーム(順方向予測符号化画像)及びB
フレーム(両方向予測符号化画像)において認められて
おり、動き補償フレーム間予測後の差分マクロブロック
データが0になった場合、参照フレームの動き補償後の
マクロブロックデータを貼り付ける(メモリコピーを行
う)ブロックとなる。これにより、他のマクロブロック
への割り当て符号量を大きくできるため、量子化係数を
小さくすることによって量子化誤差のために発生するブ
ロックノイズが抑制され、結果として画質の向上につな
がる。このMPEG1方式におけるスキップマクロブロ
ックの発生の条件には、直前に符号化されたマクロブロ
ックの動きベクトル情報も必要となる。
In the compression coding method of MPEG1,
There is a definition of a block (skip macroblock) that does not require generation of variable-length code data. The skipped macroblock is composed of a P frame (a forward prediction coded image) and a B frame.
When the difference macroblock data after motion-compensated inter-frame prediction becomes 0, which is recognized in a frame (bidirectionally coded image), the macroblock data after motion compensation of the reference frame is pasted (memory copy is performed. ) Block. As a result, the amount of codes allocated to other macroblocks can be increased, so that block noise generated due to a quantization error by reducing the quantization coefficient is suppressed, and as a result, image quality is improved. The condition for generating a skipped macroblock in the MPEG1 system also requires the motion vector information of the macroblock coded immediately before.

【0016】本発明は、動き補償フレーム間符号化にお
いて、差分ブロック情報を符号化するよりも、スキップ
マクロブロックとして参照フレームデータをそのまま利
用する方が画質が向上すると考えられるブロックについ
て、動きベクトル情報及び量子化後のブロックデータを
もとに、ブロックデータのデータ補正によって強制的に
スキップマクロブロックを発生させることで、該ブロッ
クの発生符号量を0にし、他ブロックに割り当て符号量
を増加させることで、画質の向上をはかる。
According to the present invention, in the motion-compensated inter-frame coding, the motion vector information is used for a block which is considered to improve the image quality by using the reference frame data as a skip macroblock as it is, rather than coding the difference block information. And by forcibly generating a skip macroblock by data correction of the block data based on the quantized block data, thereby reducing the generated code amount of the block to 0 and increasing the allocated code amount to another block. To improve the image quality.

【0017】[0017]

【課題を解決するための手段】上記目的を達成するため
の、本発明の動画像符号化方式は、入力画像信号を所定
のサンプル数毎にブロック分割し、該ブロックごとに一
括して符号化処理を行うフレーム間符号化処理方式にお
いて、動き補償フレーム間予測を行うために、少なくと
も1フレームの画像を参照フレームとして蓄積するフレ
ームメモリと、前記参照フレームと前記該ブロックの間
で該ブロックと参照フレームとの差分が最も小さくなる
ような参照フレーム内ブロックの検出を行う動きベクト
ル検出手段を具備し、分割した各ブロック毎において、
動き補償予測を行ったフレーム間差分信号を離散コサイ
ン変換する変換手段と、前記離散コサイン変換で得られ
た出力に対して量子化を行う量子化器と、前記量子化後
のデータを符号化する可変長符号化器と、前記可変長符
号化前の、前記量子化器の出力に対して、前記該ブロッ
クの動き情報とブロックの予測符号化タイプによって、
前記該ブロックの差分信号を符号化すべき有効ブロック
かあるいは、符号化の必要のない無効ブロックかの判定
をし、無効ブロックと判定された場合は、前記量子化後
のデータを強制的に0に補正するデータ補正手段とを持
つようにしたものである。
In order to achieve the above object, a moving picture coding method according to the present invention divides an input picture signal into blocks each having a predetermined number of samples, and collectively codes each block. In the inter-frame coding processing method for performing processing, in order to perform motion-compensated inter-frame prediction, a frame memory that stores at least one frame of an image as a reference frame, and the block is referred to between the reference frame and the block. A motion vector detecting unit that detects a block in a reference frame such that the difference from the frame is the smallest, and for each divided block,
A transform unit that performs a discrete cosine transform on the inter-frame difference signal that has been subjected to the motion compensation prediction, a quantizer that performs a quantization on an output obtained by the discrete cosine transform, and encodes the quantized data. A variable-length encoder, and before the variable-length encoding, for the output of the quantizer, by the motion information of the block and the prediction encoding type of the block,
It is determined whether the differential signal of the block is a valid block to be coded or an invalid block that does not need to be coded. If the block is determined to be invalid, the quantized data is forcibly set to 0. It has a data correction means for correcting.

【0018】また、本発明に係る動画像符号化方式は、
入力画像信号に対して、直前のフレームとの差分値を求
め、第1の閾値以下の差分データについては直前フレー
ムの画素値を代入することを特徴とする時間軸方向の前
処理を行うノイズ削減フィルタと、前記差分値が第2の
閾値以上の場合に動領域と判定し、前記第2の閾値以下
の場合は静止領域と判定する動静判定器と、動静判定結
果にもとづき、動領域と静領域で帯域制限特性の異なる
フレーム内の帯域制限を行うフィルタと、を持つことを
特徴とする、請求項1に記載の動画像符号化方式を採用
している。
Further, the moving picture coding method according to the present invention comprises:
Noise reduction for performing pre-processing in the time axis direction, wherein a difference value from an immediately preceding frame is obtained for an input image signal, and a pixel value of the immediately preceding frame is substituted for difference data equal to or less than a first threshold value. A filter, a motion / non-motion judging device for judging a moving area when the difference value is equal to or more than a second threshold, and a motion / non-motion judging device for judging a static area when the difference value is equal to or less than the second threshold; The moving picture coding method according to claim 1, wherein the moving picture coding method according to claim 1, further comprising: a filter for performing band limitation in a frame having different band limitation characteristics in a region.

【0019】本発明の符号量制御方式では、圧縮対象の
画像データの最後のGOPが途中で終わっていることを
判別し、フレーム構成や目標符号量を決定するため、G
OP内で符号量が初期化されるように制御できる。これ
により、伸長時に使用するバッファ内にデータを残すこ
となく、符号化した画像を再生することができる。
According to the code amount control method of the present invention, it is determined that the last GOP of the image data to be compressed ends halfway and the frame structure and the target code amount are determined.
Control can be performed so that the code amount is initialized in the OP. Thus, the encoded image can be reproduced without leaving data in the buffer used at the time of decompression.

【0020】本発明の動画像符号化方式では、動きベク
トル情報と、対象フレームのフレームタイプと量子化後
のデータの成分値を条件として、量子化後のデータを補
正してスキップマクロブロックを強制的に発生させるこ
とで、他のブロックへ、より多くの符号量を割り当てる
ことが出来る。これによって、マクロブロックの量子化
スケールを全体的に下げることができる。つまり量子化
誤差を減少することができブロック歪みに代表される画
質劣化を抑制することが可能となる。スキップマクロブ
ロックが発生すると、マクロブロックにおける可変長符
号化処理を省くことができ、圧縮速度の向上も可能にな
る。
In the moving picture coding method according to the present invention, the quantized data is corrected and the skipped macroblock is forcibly provided on condition that the motion vector information, the frame type of the target frame and the component value of the quantized data are used. In this case, more code amounts can be allocated to other blocks. This makes it possible to reduce the quantization scale of the macroblock as a whole. That is, the quantization error can be reduced, and image quality degradation represented by block distortion can be suppressed. When a skipped macroblock occurs, the variable-length encoding process in the macroblock can be omitted, and the compression speed can be improved.

【0021】また、ノイズ除去フィルタとフレーム内の
帯域制限フィルタを符号化の前処理として使用すること
により、スキップマクロブロックの発生条件及び強制的
にスキップマクロブロックにデータ補正を行う条件を満
たすことの後押しをする。
Further, by using the noise elimination filter and the band-limiting filter in the frame as preprocessing for coding, it is possible to satisfy the conditions for generating a skipped macroblock and the conditions for forcibly performing data correction on the skipped macroblock. Give a boost.

【0022】[0022]

【発明の実施の形態】以下図面を参照して本発明の実施
例について説明する。図1は本発明の実施例を示すブロ
ック図である。図1において、圧縮対象フレームがIフ
レームの場合、ブロックに分割された輝度情報、色情報
をDCT部2へ入力し、直交変換を施す。DCT部の出
力を量子化部に送り、量子化スケールで除算を行う。フ
レーム内符号化フレームにおいてはデータ補正は行わず
に可変長符号化処理部5によってハフマン符号化したデ
ータを出力する。出力したデータサイズは符号量制御部
10に入力する。符号量制御部10では、圧縮時の目標
符号量に一致させるように、目標符号量に比べ符号量が
大きめに符号発生している場合には、量子化スケールを
大きめに制御し、目標符号量よりも発生符号量が小さい
場合は、量子化スケールを小さくする制御を行う。さら
に、逆量子化部6で量子化後のデータに該マクロブロッ
クの量子化スケールを乗算したのち逆DCT演算を施
し、このデータを後続の画像のフレーム間符号化のため
の参照フレームデータとするためにフレームメモリ8に
書き込む。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention. In FIG. 1, when the compression target frame is an I frame, luminance information and color information divided into blocks are input to the DCT unit 2 and subjected to orthogonal transformation. The output of the DCT unit is sent to the quantization unit, and division is performed on the quantization scale. In the intra-coded frame, data subjected to Huffman coding by the variable length coding processing unit 5 is output without performing data correction. The output data size is input to the code amount control unit 10. The code amount control unit 10 controls the quantization scale to be relatively large when the code amount is larger than the target code amount so as to match the target code amount at the time of compression, so as to match the target code amount. If the generated code amount is smaller than that, control to reduce the quantization scale is performed. Further, the inverse quantizer 6 multiplies the quantized data by the quantization scale of the macroblock, and then performs an inverse DCT operation, and uses this data as reference frame data for inter-frame encoding of a subsequent image. For writing to the frame memory 8.

【0023】次に圧縮対象フレームがPフレームの場合
は、まず前記したフレームメモリ8に書き込まれたフレ
ームデータを参照フレームとして、マクロブロックの動
き量を動きベクトル検出部9で抽出し、検出した動き量
をもとにフレームメモリ8から参照すべき予測ブロック
データを出力する。DCT部2へは、この予測値と符号
化対象マクロブロックの差分を入力し、直交変換処理を
行い、量子化処理を行う。この量子化後のデータを基に
データ補正部4で、入力データが強制的にスキップマク
ロブロックにする方がよいと判定された場合にすべての
量子化後のデータを0のみのブロックにする。
Next, when the frame to be compressed is a P frame, first, the frame data written in the frame memory 8 is used as a reference frame, and the motion amount of the macroblock is extracted by the motion vector detecting section 9. The predicted block data to be referenced is output from the frame memory 8 based on the amount. The DCT unit 2 receives the difference between the predicted value and the macroblock to be coded, performs orthogonal transform processing, and performs quantization processing. If it is determined by the data correction unit 4 based on the quantized data that the input data should be forced to be a skipped macroblock, all the quantized data is converted into a block of only 0.

【0024】PフレームにおけるMPEG1規格のスキ
ップマクロブロックの条件は以下のように定義されてい
る。
The conditions of the MPEG1 standard skip macroblock in the P frame are defined as follows.

【0025】第一に、8×8の量子化後のブロック内デ
ータのすべての要素が0であること、第二に、対象マク
ロブロックの動きベクトルの値がx方向とy方向ともに
0であること、第三にマクロブロックの符号化タイプが
フレーム間符号化ブロックに判定されていることであ
る。
First, all the elements of the 8 × 8 quantized intra-block data are 0. Second, the value of the motion vector of the target macroblock is 0 in both the x and y directions. Third, the coding type of the macroblock is determined to be an interframe coded block.

【0026】本発明においては、Pフレームにおいて、
強制的にデータ補正を行う条件は次のようにする。
In the present invention, in the P frame,
The conditions for forcibly correcting data are as follows.

【0027】1)8×8の量子化後のブロック内データ
をQijとしたとき、これらの最大値がα(αは0以上の
整数)以下であること。
1) When the data in the block after the 8 × 8 quantization is Qij, the maximum value thereof is α or less (α is an integer of 0 or more).

【0028】2)Oijの絶対値のマクロブロック内積算
値がβ(βは0以上の整数)以下であること。
2) The integrated value of the absolute value of Oij in the macroblock is not more than β (β is an integer of 0 or more).

【0029】3)符号化対象マクロブロックの動きベク
トルのx成分及びy成分が、共に0である。
3) The x component and the y component of the motion vector of the macroblock to be coded are both 0.

【0030】4)マクロブロックの符号化タイプがフレ
ーム間符号化ブロックに判定されていること。
4) The coding type of the macro block is determined to be an inter-frame coded block.

【0031】図2のフローチャートを用いて、スキップ
マクロブロックを強制的に発生させる手続きを説明す
る。本方式では、まず、符号化対象ブロックがフレーム
間符号化ブロックであるかを調べる(ステップ21)。
ここで符号化対象ブロックがフレーム間符号化ブロック
でないならば、対象ブロックは符号化マクロブロックに
すると決定する。フレーム間符号化ブロックであるなら
ば、続いて対象ブロックの動きベクトルのx成分
(vx )、y成分(vy )共に0であるかを調べる(ス
テップ22)。もし、x成分とy成分のいずれか一方で
も0以外である場合は、符号化対象マクロブロックは可
変長符号化を行うマクロブロックと判定する。
The procedure for forcibly generating a skipped macroblock will be described with reference to the flowchart of FIG. In this method, first, it is checked whether the current block is an inter-frame coded block (step 21).
If the current block is not an inter-frame coded block, the current block is determined to be a coded macroblock. If the block is an inter-frame coded block, it is checked whether both the x component (v x ) and the y component (v y ) of the motion vector of the target block are 0 (step 22). If at least one of the x component and the y component is other than 0, the current macroblock is determined to be a macroblock to be subjected to variable length coding.

【0032】x成分とy成分がともに0であるならば、
続いて量子化後の8×8の成分の値を調べる(ステップ
23)。ここで、量子化後の8×8ブロックの成分がす
べて0であるならばスキップマクロブロックと判定す
る。すべて0でない場合は、続いて量子化後の8×8ブ
ロックの成分を補正するかしないかの判定を行う。この
場合、まず8×8の成分の絶対値の最大値を求めこれが
α以下(例えば1以下)であるかを調べる(ステップ2
4)。ここで最大値がαを越えている場合は、そのブロ
ックはスキップマクロブロックとはしないで可変長符号
化処理を行う。最大値がα以下の場合は、続いて8×8
の成分の絶対値の総和を調べる(ステップ25)。ここ
で絶対値の総和がβ(例えば10)を越えている場合
は、そのブロックはスキップマクロブロックとはしない
で可変長符号化処理を行う。総和がβ以下の場合は、そ
のブロックは強制的にスキップマクロブロックとすると
判定し、8×8のすべてのデータを0にクリアし、可変
長符号化処理を行わないことにする。
If both the x component and the y component are 0,
Subsequently, the value of the 8 × 8 component after quantization is checked (step 23). Here, if the components of the 8 × 8 block after quantization are all 0, it is determined to be a skip macro block. If all are not 0, then it is determined whether or not to correct the 8 × 8 block components after quantization. In this case, first, the maximum value of the absolute value of the 8 × 8 component is obtained, and it is checked whether the maximum value is equal to or less than α (for example, 1 or less) (step 2).
4). Here, when the maximum value exceeds α, the block is not set as a skip macro block, and the variable length coding process is performed. If the maximum value is less than α, then 8 × 8
The sum of the absolute values of the components is examined (step 25). Here, if the sum of the absolute values exceeds β (for example, 10), the block is not set as a skip macro block, and the variable length coding process is performed. If the sum is equal to or smaller than β, the block is forcibly determined to be a skip macroblock, all data of 8 × 8 are cleared to 0, and the variable length coding process is not performed.

【0033】次に圧縮対象フレームがBフレームの場合
は、まず前記したフレームメモリ8に書き込まれたフレ
ームデータを参照フレームとして、マクロブロックの動
き量を動きベクトル検出部9で抽出し、検出した動き量
をもとにフレームメモリ8から参照すべき予測ブロック
データを出力する。DCT部2へは、この予測値と符号
化対象マクロブロックの差分を入力し、直交変換処理を
行い、量子化処理を行う。この量子化後のデータを基に
データ補正部4で、入力データが強制的にスキップマク
ロブロックにする方がよいと判定された場合にすべての
量子化後のデータを0のみのブロックにする。
Next, when the frame to be compressed is a B frame, the motion vector detecting unit 9 extracts the amount of motion of the macroblock by using the frame data written in the frame memory 8 as a reference frame. The predicted block data to be referenced is output from the frame memory 8 based on the amount. The DCT unit 2 receives the difference between the predicted value and the macroblock to be coded, performs orthogonal transform processing, and performs quantization processing. If it is determined by the data correction unit 4 based on the quantized data that the input data should be forced to be a skipped macroblock, all the quantized data is converted into a block of only 0.

【0034】BフレームにおけるMPEG1規格のスキ
ップマクロブロックの条件は以下のように定義されてい
る。
The conditions for the MPEG1 standard skip macroblock in the B frame are defined as follows.

【0035】第一に、8×8の量子化後のブロック内デ
ータのすべての要素が0であること、第二に、対象マク
ロブロックの動きベクトルの値がx方向とy方向ともに
最も最近に符号化を行ったマクロブロックの動きベクト
ルに一致すること、第三にマクロブロックの符号化タイ
プがフレーム間符号化ブロックでかつ、最も最近に符号
化を行ったマクロブロックの符号化タイプと同一に判定
されていることである。
First, all the elements of the 8 × 8 quantized intra-block data are 0. Second, the motion vector value of the target macroblock is the most recent in both the x and y directions. Third, the coding type of the macroblock is the same as the coding type of the most recently coded macroblock. That is, it has been determined.

【0036】本発明においては、Bフレームにおいて、
強制的にデータ補正を行う条件は次のようにする。
In the present invention, in the B frame,
The conditions for forcibly correcting data are as follows.

【0037】1)8×8の量子化後のブロック内データ
をQijとしたとき、これらの最大値がα(αは0以上の
整数)以下であること。
1) Assuming that the data in the block after the 8 × 8 quantization is Qij, the maximum value thereof is α or less (α is an integer of 0 or more).

【0038】2)Qijの絶対値のマクロブロック内総和
がβ(βは0以上の整数)以下であること。
2) The sum of absolute values of Qij in the macroblock is equal to or smaller than β (β is an integer of 0 or more).

【0039】3)最も最近に符号化したマクロブロック
の動きベクトル成分と符号化対象マクロブロックの動き
ベクトルのx成分及びy成分の差の絶対値が0以上の整
数γ以下である。
3) The absolute value of the difference between the x component and the y component of the motion vector component of the most recently coded macroblock and the motion vector of the macroblock to be coded is equal to or greater than 0 and equal to or less than the integer γ.

【0040】4)マクロブロックの符号化タイプが最も
最近に可変長符号化されたマクロブロックと同一の予測
方式を用いることと判定されていること。
4) It has been determined that the coding type of the macroblock uses the same prediction method as that of the most recently variable-length-coded macroblock.

【0041】図3のフローチャートを用いて、スキップ
マクロブロックを強制的に発生させる手続きを説明す
る。本方式では、まず、符号化対象ブロックがフレーム
間符号化ブロックでかつ最も最近に可変長符号化された
マクロブロックと同一の予測方式を用いることと判定さ
れているかを調べる(ステップ31)。
A procedure for forcibly generating a skipped macroblock will be described with reference to the flowchart of FIG. In this method, first, it is checked whether or not it is determined that the current block to be coded is an inter-frame coded block and that the same prediction method as that of the most recently variable-length coded macroblock is used (step 31).

【0042】ここで符号化対象ブロックがフレーム間符
号化ブロックでないあるいは最も最近に可変長符号化さ
れたマクロブロックと同一の予測方式を用いると判定さ
れていないならば、対象ブロックは符号化マクロブロッ
クにすると決定する。この条件にあうならば、続いて対
象ブロックの動きベクトルのx成分、y成分を調べ、最
も最近に可変長符号化したブロックにおける動きベクト
ル成分と差分をとり、差分の絶対値がx成分またはy成
分のいずれかがγ(例えば1)を越える場合は、符号化
対象マクロブロックは可変長符号化を行うマクロブロッ
クと判定する(ステップ32)。
If the current block is not an inter-frame coded block or has not been determined to use the same prediction method as the most recently variable-length coded macroblock, the current block is a coded macroblock. To decide. If this condition is met, the x and y components of the motion vector of the target block are checked, and the difference between the motion vector component and the motion vector component of the most recently variable-length coded block is calculated. If any of the components exceeds γ (for example, 1), the current macroblock is determined to be a macroblock to be subjected to variable-length coding (step 32).

【0043】前記した差分の絶対値がx成分とy成分の
いずれもγ以下の場合は、続いて量子化後の8×8の成
分の値を調べる(ステップ34)。ここで、量子化後の
8×8ブロックの成分がすべて0であるならばスキップ
マクロブロックと判定する。すべて0でない場合は、続
いて量子化後の8×8ブロックの成分を補正するかしな
いかの判定を行う。この場合、まず8×8の成分の絶対
値の最大値を求めこれがα以下(例えば1以下)である
かを調べる(ステップ35)。ここで最大値がαを越え
ている場合は、そのブロックはスキップマクロブロック
とはしないで可変長符号化処理を行う。最大値がα以下
の場合は、続いて8×8の成分の絶対値の総和を調べる
(ステップ36)。
If the absolute value of the difference is less than or equal to γ in both the x and y components, the value of the 8 × 8 component after quantization is checked (step 34). Here, if the components of the 8 × 8 block after quantization are all 0, it is determined to be a skip macro block. If all are not 0, then it is determined whether or not to correct the 8 × 8 block components after quantization. In this case, first, the maximum value of the absolute value of the 8 × 8 component is obtained, and it is checked whether the maximum value is equal to or less than α (for example, 1 or less) (step 35). Here, when the maximum value exceeds α, the block is not set as a skip macro block, and the variable length coding process is performed. If the maximum value is not more than α, the sum of the absolute values of the 8 × 8 components is checked (step 36).

【0044】ここで絶対値の総和がβ(例えば10)を
越えている場合は、そのブロックはスキップマクロブロ
ックとはしないで可変長符号化処理を行う。総和がβ以
下の場合は、そのブロックは強制的にスキップマクロブ
ロックにすると判定し、8×8のすべてのデータを0に
クリアし、可変長符号化処理を行わないことにする。
If the sum of the absolute values exceeds β (for example, 10), the block is subjected to variable-length coding without being a skipped macroblock. If the sum is equal to or smaller than β, it is determined that the block is forcibly set as a skip macroblock, all data of 8 × 8 are cleared to 0, and the variable length encoding process is not performed.

【0045】次に本発明の第2の実施例について図面を
参照して説明する。図13は本発明の第2の実施例を示
すブロック図である。図13では入力画像をDCT部及
び動きベクトル検出部へ出力する前段に、前処理フィル
タ1が設けられている。この前処理フィルタは、高能率
圧縮を行う時の空間及び時間方向の帯域制限による高周
波成分の除去とともに、本発明におけるスキップマクロ
ブロックへの補正条件を満たすブロック数を増加させる
ために使用するものである。
Next, a second embodiment of the present invention will be described with reference to the drawings. FIG. 13 is a block diagram showing a second embodiment of the present invention. In FIG. 13, a pre-processing filter 1 is provided before the input image is output to the DCT unit and the motion vector detection unit. This preprocessing filter is used to remove high frequency components due to band limitation in the spatial and temporal directions when performing high-efficiency compression, and to increase the number of blocks satisfying the correction condition for the skip macroblock in the present invention. is there.

【0046】図4を用いて本発明に係る前処理フィルタ
の一実施例の動作の流れを説明する。符号化対象フレー
ムデータと直前のフレームとの間で、フレーム差分をフ
レーム内の各画素について算出する(ステップ41)。
前記フレーム差分に対して図5で示すような特性を持つ
ノイズ除去フィルタを施す(ステップ42)。ノイズ除
去後のデータに関して動領域か静領域かの判定を行う
(ステップ43)。この動静の判定の閾値としては、図
5上で示される例においては、入力と出力で同じ値とす
る差分値(例えばプラスマイナス10)を用いる。ここ
で差分値がプラスマイナス10の範囲に入る場合は静領
域、範囲外の場合は動領域と判定する。続いて、前述の
動静判定(ステップ43)において動領域と判定された
場合と静領域と判定された場合で特性の違う空間帯域制
限フィルタを用いる。これは、人間の視覚特性上、画像
の止まっている領域においては、動いている領域に比べ
て、劣化に対して敏感であるため、帯域制限の度合いを
静領域においては、動領域と比較して弱めに行い、帯域
圧縮による画像のぼけを視覚上劣化を目立たせないよう
にする。例えば動領域においては、図6に示すように表
現帯域の高周波成分を完全に削減するフィルタを用い、
静領域においては、図7に示すように表現帯域の高周波
成分も幾分残存するような特性を持たせる。
The operation flow of one embodiment of the pre-processing filter according to the present invention will be described with reference to FIG. A frame difference is calculated for each pixel in the frame between the encoding target frame data and the immediately preceding frame (step 41).
A noise removal filter having the characteristics shown in FIG. 5 is applied to the frame difference (step 42). It is determined whether the data after noise removal is a moving area or a static area (step 43). In the example shown in FIG. 5, a difference value (for example, plus or minus 10) that sets the same value for the input and the output is used as the threshold for determining the movement. Here, when the difference value falls within the range of plus or minus 10, it is determined that the region is a static region, and when the difference value is out of the range, it is determined that the region is a moving region. Subsequently, a spatial band limiting filter having different characteristics depending on whether it is determined to be a moving area or not in the above-mentioned motion determination (step 43) is used. This is because, in terms of human visual characteristics, in areas where the image is stopped, the degree of band limitation is more sensitive to deterioration than in the moving area. To make the image blur due to the band compression less noticeable in visual deterioration. For example, in the dynamic region, as shown in FIG. 6, a filter that completely reduces high frequency components in the expression band is used.
In the static region, as shown in FIG. 7, a characteristic is provided such that some high-frequency components in the expression band remain.

【0047】図6、図7のフィルタの特性の例をz変換
式で示すと次のようになる。
The following is an example of the characteristics of the filter shown in FIGS.

【0048】 H(z)=−(1−α)+α{Z(−1)+2+z}/4 (1) ここで、動領域と判定された時に、αを0とし、静領域
と判定された時は、αを0から1までの値にする。αを
1に近づけるほど、高周波域における帯域制限の度合い
が強くなる。ここでZ(−1)は、Zの−1乗を示す。
H (z) = − (1−α) + α {Z (−1) + 2 + z} / 4 (1) Here, when it is determined that the moving area, α is set to 0, and the static area is determined. At this time, α is set to a value from 0 to 1. As α approaches 1, the degree of band limitation in the high frequency range increases. Here, Z (−1) indicates Z to the −1 power.

【0049】[0049]

【発明の効果】以上説明したように、本発明の動画像符
号化方式によれば、量子化後のデータ補正を用いてスキ
ップマクロブロックを発生させることにより、より効率
良い符号量の割り当てができるため、圧縮画像の画質向
上ができる。データ補正の手段が圧縮の過程で作成され
たデータを用い、強制的に非符号化ブロックに判定する
手段も簡単であるため、ソフトウェアによる実現も可能
である。
As described above, according to the moving picture coding method of the present invention, more efficient code amount allocation can be achieved by generating skipped macroblocks using data correction after quantization. Therefore, the image quality of the compressed image can be improved. Since the means for data correction uses the data created in the course of compression and the means for forcibly determining a non-encoded block is simple, it can be realized by software.

【0050】前処理フィルタを施すことで、帯域を制限
する、あるいはちらつきノイズを削減する以外に、スキ
ップマクロブロックの発生条件を満たすブロック数を増
加させる効果が得られ画質向上が可能となる。
Applying the pre-processing filter has the effect of increasing the number of blocks that satisfy the conditions for generating skipped macroblocks, in addition to limiting the band or reducing flicker noise, thereby improving image quality.

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

【図1】本発明で使用する動画像符号化方式を説明する
ブロック図である。
FIG. 1 is a block diagram illustrating a moving picture coding method used in the present invention.

【図2】本発明のデータ補正処理の一実施例の動作を示
すフローチャートである。
FIG. 2 is a flowchart showing the operation of one embodiment of the data correction processing of the present invention.

【図3】本発明のデータ補正処理の一実施例の動作を示
すフローチャートである。
FIG. 3 is a flowchart showing the operation of one embodiment of the data correction processing of the present invention.

【図4】本発明の前処理フィルタの動作を示すフローチ
ャートである。
FIG. 4 is a flowchart showing the operation of the pre-processing filter of the present invention.

【図5】本発明のノイズ除去フィルタの一実施例の特性
図である。
FIG. 5 is a characteristic diagram of an embodiment of the noise elimination filter of the present invention.

【図6】本発明の帯域制限フィルタの一実施例の特性図
である。
FIG. 6 is a characteristic diagram of an embodiment of the band limiting filter of the present invention.

【図7】本発明の帯域制限フィルタの一実施例の特性図
である。
FIG. 7 is a characteristic diagram of an embodiment of the band limiting filter of the present invention.

【図8】従来のフレーム間符号化処理のブロック図であ
る。
FIG. 8 is a block diagram of a conventional inter-frame encoding process.

【図9】従来のフレーム間符号化処理のブロック図であ
る。
FIG. 9 is a block diagram of a conventional inter-frame encoding process.

【図10】従来の有効無効判定回路のブロック図であ
る。
FIG. 10 is a block diagram of a conventional valid / invalid determination circuit.

【図11】MPEG1の階層符号化を述べるための、画
面分割の説明図である。
FIG. 11 is an explanatory diagram of screen division for describing hierarchical encoding of MPEG1.

【図12】本発明で使用する動画像符号化方式の第2の
実施例を説明するブロック図である。
FIG. 12 is a block diagram illustrating a second embodiment of the moving picture coding method used in the present invention.

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

1 前処理フィルタ部 2 DCT部 3 量子化部 4 データ補正部 5 可変長符号化部 6 逆量子化部 7 逆DCT部 8 フレームメモリ 9 動きベクトル検出部 10 符号量制御部 11 逆DCT部 31 判定部 32 データ処理部 DESCRIPTION OF SYMBOLS 1 Pre-processing filter part 2 DCT part 3 Quantization part 4 Data correction part 5 Variable length encoding part 6 Inverse quantization part 7 Inverse DCT part 8 Frame memory 9 Motion vector detection part 10 Code amount control part 11 Inverse DCT part 31 Judgment Part 32 Data processing part

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力画像信号を所定のサンプル数毎にブ
ロック分割し、該ブロックごとに一括して符号化処理を
行うフレーム間符号化処理方式において、 動き補償フレーム間予測を行うために、少なくとも1フ
レームの画像を参照フレームとして蓄積するフレームメ
モリと、前記参照フレームと前記該ブロックの間で該ブ
ロックと参照フレームとの差分が最も小さくなるような
参照フレーム内ブロックの検出を行う動きベクトル検出
手段を具備し、 分割した各ブロック毎において、動き補償予測を行った
フレーム間差分信号を離散コサイン変換する変換手段
と、 前記離散コサイン変換で得られた出力に対して量子化を
行う量子化器と、 前記量子化後のデータを符号化する可変長符号化器と、 前記可変長符号化前の前記量子化器の出力に対して、量
子化後のブロックデータの値と、前記該ブロック及び直
前の可変長符号化されたブロックの動き情報と、前記該
ブロックの予測方式によって、前記該ブロックの差分信
号を符号化すべき有効ブロックかあるいは、符号化の必
要のない無効ブロックかの判定をし、無効ブロックと判
定された場合は、前記量子化後のデータを強制的に0に
補正するデータ補正手段と、 を持つ動画像符号化方式において、 前記入力画像信号に対して、直前のフレームとの差分値
を求め、この差分値の絶対値が所定値以下の場合は、こ
の差分値の絶対値がより小となるようにこの入力画像信
号の値を補正するノイズ削減フィルタと、 前記ノイズ削減フィルタ出力のフレーム差分値が閾値以
上の場合に動領域と判定し、前記閾値未満の場合は静止
領域と判定する動静判定器と、 動静判定結果にもとづき、動領域と静領域で帯域制限特
性の異なるフレーム内の帯域制限を行うフィルタと、 をさらに備えたことを特徴とする動画像符号化方式。
In an inter-frame encoding method in which an input image signal is divided into blocks by a predetermined number of samples and encoding processing is performed collectively for each block, at least in order to perform motion-compensated inter-frame prediction, A frame memory for storing an image of one frame as a reference frame, and a motion vector detecting means for detecting a block in a reference frame that minimizes a difference between the reference frame and the block between the block and the reference frame A transforming means for performing discrete cosine transform of an inter-frame difference signal subjected to motion compensation prediction for each of the divided blocks, and a quantizer for performing quantization on an output obtained by the discrete cosine transform. A variable-length encoder that encodes the data after quantization, and an output of the quantizer before the variable-length encoding. , The value of the block data after quantization, the motion information of the block and the immediately preceding variable-length coded block, and the prediction method of the block. Or a data correction unit for determining whether the block is an invalid block that does not need to be coded and, when the block is determined to be invalid, forcibly correcting the quantized data to 0 . in method for the input image signal, a difference value between the previous frame
If the absolute value of the difference value is equal to or smaller than a predetermined value,
Input image signal so that the absolute value of the difference value of
A noise reduction filter that corrects the signal value, and a frame difference value of the output of the noise reduction filter is equal to or smaller than a threshold
If it is above, it is determined as a moving area, and if it is less than the threshold, it is stationary
A motion / non-motion judging device for judging an area and a band limiting function for a motion area and a static area based on the motion / motion judgment result
A moving image encoding method, further comprising: a filter for performing band limitation in frames having different genders .
JP18417095A 1995-07-20 1995-07-20 Video coding method Expired - Fee Related JP2795225B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18417095A JP2795225B2 (en) 1995-07-20 1995-07-20 Video coding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18417095A JP2795225B2 (en) 1995-07-20 1995-07-20 Video coding method

Publications (2)

Publication Number Publication Date
JPH0937268A JPH0937268A (en) 1997-02-07
JP2795225B2 true JP2795225B2 (en) 1998-09-10

Family

ID=16148596

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18417095A Expired - Fee Related JP2795225B2 (en) 1995-07-20 1995-07-20 Video coding method

Country Status (1)

Country Link
JP (1) JP2795225B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3209171B2 (en) 1998-01-08 2001-09-17 日本電気株式会社 Video encoding device
JP4537348B2 (en) * 2006-05-31 2010-09-01 シャープ株式会社 MPEG image quality correction apparatus and MPEG image quality correction method
JP4823150B2 (en) 2007-05-31 2011-11-24 キヤノン株式会社 Encoding apparatus and encoding method
JP4891938B2 (en) * 2008-02-28 2012-03-07 日本放送協会 Compression encoding preprocessing apparatus and compression encoding preprocessing program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
安田浩 「MPEG/マルチメディア符号化の国際標準」 (平成6−9−30) 丸善 P.10−34

Also Published As

Publication number Publication date
JPH0937268A (en) 1997-02-07

Similar Documents

Publication Publication Date Title
KR0141082B1 (en) Apparatus for coding image signal with adaptive edge part
US20090010556A1 (en) Image coding apparatus, image coding method, and image coding program for coding at least one still frame with still frame coding having a higher quality than normal frame coding of other frames
JPH0851626A (en) Method and device for quantizing transformation coefficient of moving picture signal and moving picture signal compression device
JPH07303254A (en) Image signal decoding using improved post-treatment method
US5844607A (en) Method and apparatus for scene change detection in digital video compression
EP0680217B1 (en) Video signal decoding apparatus capable of reducing blocking effects
JP3429429B2 (en) Visual error processing method and image coding apparatus using this method
JPH10126780A (en) Decoding video compensator
JP2000324494A (en) Animation encoding device
JP2004523985A (en) Video encoding method and corresponding encoding device
JP2795225B2 (en) Video coding method
JP3599942B2 (en) Moving picture coding method and moving picture coding apparatus
JP2000023162A (en) Device and method for encoding
JP4224662B2 (en) Image encoding apparatus and method, image decoding apparatus and method, and image processing apparatus
JPH09200769A (en) Inter-motion compensation frame encoding system
JP2820636B2 (en) Video compression device
JPH07336684A (en) Picture signal decoding device
JP4359273B2 (en) Coding mode selection method
JP4100067B2 (en) Image information conversion method and image information conversion apparatus
JPH08317387A (en) Dynamic image compression encoding system
JPH1066092A (en) Video data compressor and its method
JP2007516639A (en) Encoding method and encoding apparatus
KR100487363B1 (en) Pre-vlc processor in mpeg video decoder
KR100204473B1 (en) A dct of images by using pocs method
JPH10164594A (en) Compression encoding method for moving image and device therefor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980526

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080626

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090626

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100626

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100626

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110626

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110626

Year of fee payment: 13

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120626

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120626

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120626

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130626

Year of fee payment: 15

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130626

Year of fee payment: 15

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees