JP2000270333A - Image signal coder - Google Patents

Image signal coder

Info

Publication number
JP2000270333A
JP2000270333A JP7517999A JP7517999A JP2000270333A JP 2000270333 A JP2000270333 A JP 2000270333A JP 7517999 A JP7517999 A JP 7517999A JP 7517999 A JP7517999 A JP 7517999A JP 2000270333 A JP2000270333 A JP 2000270333A
Authority
JP
Japan
Prior art keywords
frame
buffer
bit stream
code amount
case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7517999A
Other languages
Japanese (ja)
Inventor
Takamizu Niihara
高水 新原
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan 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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP7517999A priority Critical patent/JP2000270333A/en
Publication of JP2000270333A publication Critical patent/JP2000270333A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a coder in which a still picture from the coder does not cause a picture different from each GOP. SOLUTION: This coder has a coding section 11, a buffer 12 that stores 1 frames, a discrimination section 13 that discriminates a still/moving area from a preceding I frame stored in the buffer 12 and a current I frame in the unit of macro blocks, a buffer 14 that stores a bit stream in the unit of macro blocks outputted from the coding section in the case of I frames, a buffer 15 that stores a code quantity produced in the unit of macro blocks in the case of I frames, a calculation discrimination section 16 for a generated code quantity in the case of replacing a macro block discriminated to be a still area with a code of a preceding I frame in the case of I frames, and a bit stream generating section 17 for I frames from a header of the I frames outputted from the buffer 14 and a bit stream in the unit of macro blocks. Thus, the macro blocks discriminated to be a still area replaced with a bit stream of a preceding I frame.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、MPEGを用いた画像
の符号化装置に関し、背景等の静止部分が、GOP毎に異
なる画像とならない符号化装置を提供する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding apparatus using MPEG, and provides an encoding apparatus in which a still portion such as a background does not become an image different for each GOP.

【0002】[0002]

【従来の技術】MPEGを用いた画像符号化のシーケンスの
一例を図2に示す。ここでは、数フレームをGOPとよば
れる単位で構成し、このうちの1フレームをIフレーム
と呼ばれるフレーム内符号化を行ない、その他のフレー
ムを前方向予測を行なうPフレーム、及び両方向予測を
行なうBフレーム符号化をそれぞれ行なう。各フレーム
は、マクロブロックと呼ばれる単位に分割され、Pフレ
ーム、Bフレームの場合は、各マクロブロック毎に動き
ベクトルの検出を行ない、符号化モードの決定をし、量
子化値の決定を行ない、予測誤差と動きベクトルと符号
化モードの符号化を行なう。Iフレームの場合は、各マ
クロブロック毎に量子化値の決定を行ない、符号化をす
る。
2. Description of the Related Art FIG. 2 shows an example of an image encoding sequence using MPEG. Here, several frames are composed of units called GOPs, one of which is subjected to intra-frame encoding called an I-frame, and the other frames are P-frames for performing forward prediction and B-frames for performing bidirectional prediction. Each frame is encoded. Each frame is divided into units called macroblocks. In the case of a P frame or a B frame, a motion vector is detected for each macroblock, a coding mode is determined, and a quantization value is determined. The prediction error, the motion vector, and the encoding mode are encoded. In the case of an I frame, a quantization value is determined for each macroblock, and coding is performed.

【0003】静止部分に対しては、Pフレームでは、動
きベクトルをゼロとし予測誤差を符号化しないNoMCNotC
odedを選択することで、デコードされた画像では、先の
Iフレームの同一位置の画像がコピーされて出力され
る。また、Bフレームでは、動きベクトルをゼロとし、
予測誤差を送らないことで、同様にデコードされた画像
は、先のIフレームと同一の画像を再生することが可能
である。この様に、GOP内の全フレームを静止部分に関
しては、Iフレームと同一のデコード画像を得るように
符号化を行なうことが可能である。
[0003] For a stationary part, in a P frame, a motion vector is set to zero and no prediction error is coded.
By selecting oded, in the decoded image, the image at the same position of the previous I frame is copied and output. In the B frame, the motion vector is set to zero,
By not sending the prediction error, it is possible to reproduce the same image as the previous I frame from the similarly decoded image. As described above, it is possible to encode all the frames in the GOP so as to obtain the same decoded image as that of the I frame for the stationary portion.

【0004】しかし、次のIフレームに関しては、先の
Iフレームとは無関係に符号化が行なわれる。このた
め、静止部分に関して、量子化値が符号量制御により異
なった値になる場合や、また、画像中のノイズ等により
同一の量子化値であっても、異なったデコード画像とな
ることがある。この様な場合、静止部分が、GOP毎に異
なる画像となるため、GOPの単位でその変化が視覚上目
立つこととなり、視覚上の劣化を引き起こしていた。
However, the next I frame is coded independently of the previous I frame. For this reason, regarding the stationary portion, the quantized value may be different due to code amount control, or the decoded image may be different even if the quantized value is the same due to noise or the like in the image. . In such a case, since the still portion becomes a different image for each GOP, the change becomes visually conspicuous in GOP units, causing visual deterioration.

【0005】[0005]

【発明が解決しようとする課題】本発明は上記課題を解
決して、静止部分が、GOP毎に異なる画像とならないよ
うにし、GOPの単位でその変化が視覚上目立つことな
く、視覚上の劣化も引き起こさないように、静止部分に
関して、GOP間で同一のデコード画像を生成可能とした
ものである。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and has been made so that a still portion does not become a different image for each GOP. The same decoded image can be generated between GOPs with respect to a still portion so as not to cause the same.

【0006】[0006]

【課題を解決するための手段】上記課題を解決するため
に、本発明は、MPEGを用いて符号化をする画像信号符号
化装置において、入力画像に対してMPEGの符号化を行な
う符号化部11と、Iフレームの場合、前記入力画像を
蓄積するフレームバッファ12と、前記フレームバッフ
ァに蓄積されている以前のIフレームと現在のIフレー
ムとよりマクロブロック単位に静止・動領域判定を行な
う判定部13と、Iフレームの場合、前記MPEG符号化部
から出力されるマクロブロック単位のビットストリーム
を蓄積するビットストリームバッファ14と、Iフレー
ムの場合、マクロブロック単位に発生する符号量を蓄積
する符号量バッファ15と、Iフレームの場合、前記判
定部で静止領域と判定されたマクロブロックを以前のI
フレームの符号に置換する場合の発生符号量を算出する
符号量判定部16と、前記ビットストリームバッファか
ら出力されるIフレームのヘッダとマクロブロック単位
のビットストリームからIフレームのビットストリーム
を形成するビットストリーム生成部17を有し、Iフレ
ームの場合、静止領域と判定されたマクロブロックに関
して、仮想バッファ値がアンダーフローしない場合、以
前のIフレームのマクロブロックのビットストリームに
置換することを特徴とする画像信号符号化装置として、
静止部分に関して、GOP間で同一のデコード画像を生成
可能とした。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention relates to an image signal encoding apparatus which performs encoding using MPEG, an encoding unit which performs MPEG encoding on an input image. 11, in the case of an I frame, a frame buffer 12 for storing the input image, and a determination of performing a still / moving area determination on a macroblock basis from the previous I frame and the current I frame stored in the frame buffer. A bit stream buffer 14 for storing a macroblock unit bit stream output from the MPEG encoding unit in the case of an I frame, and a code for storing a code amount generated in a macroblock unit in the case of an I frame. Amount buffer 15 and, in the case of an I frame, the macroblock determined as a still area by the determination unit
A code amount determination unit 16 for calculating a generated code amount when replacing with a frame code; and a bit for forming an I frame bit stream from an I frame header and a macro block unit bit stream output from the bit stream buffer. It has a stream generation unit 17, and in the case of an I-frame, for a macroblock determined to be a still area, if the virtual buffer value does not underflow, it is replaced with a bitstream of the macroblock of the previous I-frame. As an image signal encoding device,
Regarding the still part, the same decoded image can be generated between GOPs.

【0007】( 作 用 )本発明は、MPEGを用い
た画像の符号化において、隣り合ったGOPのIフレー
ムに関して、マクロブロック単位で静止/動領域判定を
行ない、静止領域の場合は、先のIフレームのマクロブ
ロックのビットストリームを現在のIフレームのマクロ
ブロックのビットストリームの代わりの出力すること
で、静止領域の視覚上の画質の向上を図る。
(Operation) According to the present invention, in encoding of an image using MPEG, a still / moving area is determined for each I-frame of an adjacent GOP in macroblock units. By outputting the bit stream of the macro block of the I frame instead of the bit stream of the macro block of the current I frame, the visual quality of the still area is improved.

【0008】[0008]

【発明の実施の形態】本発明による符号化装置の一実施
例について図1と共に以下に説明する。図1に示した本
発明による符号化装置は、MPEG符号化部11、Iフレー
ムバッファ12、符号量判定部13、ビットストリーム
バッファ14、符号量バッファ15、符号量判定部1
6、及びビットストリーム形成部17を有して構成され
ている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of an encoding apparatus according to the present invention will be described below with reference to FIG. The encoding apparatus according to the present invention shown in FIG. 1 includes an MPEG encoding unit 11, an I frame buffer 12, a code amount determination unit 13, a bit stream buffer 14, a code amount buffer 15, and a code amount determination unit 1.
6 and a bit stream forming unit 17.

【0009】入力画像は、MPEG符号化部11に供給さ
れ、一般的なMPEG符号化(MPEG1、MPEG2、MPEG4の符号
化)がなされる。また、入力画像がIフレームの場合
は、Iフレームバッファ12にも蓄積される。入力され
た画像は、MPEG符号化部11にて符号化が行なわれ、P
フレーム及びBフレームの場合は、生成されたビットス
トリームがビットストリーム形成部17に出力される。
[0009] The input image is supplied to an MPEG encoding unit 11 and subjected to general MPEG encoding (encoding of MPEG1, MPEG2 and MPEG4). If the input image is an I frame, the input image is also stored in the I frame buffer 12. The input image is encoded by the MPEG encoding unit 11, and P
In the case of a frame and a B frame, the generated bit stream is output to the bit stream forming unit 17.

【0010】入力画像がIフレームの場合は、マクロブ
ロック単位のビットストリームがビットストリームバッ
ファ14へ出力され、マクロブロック単位の符号量が、
符号量バッファ15に出力される。Iフレームの場合、
Iフレームバッファ12に既に蓄積されている以前のIフ
レームと、処理を行なうIフレームとが共に静止領域判
定部13に供給される。
When the input image is an I frame, a bit stream in units of macro blocks is output to the bit stream buffer 14, and the code amount in units of macro blocks is
Output to the code amount buffer 15. For I-frames,
Both the previous I frame already stored in the I frame buffer 12 and the I frame to be processed are supplied to the still area determination unit 13.

【0011】この静止領域判定部13では、マクロブロ
ック単位に、2個のIフレームの比較をマクロブロック
単位で行ない、静止もしくは動領域かの判定を行なう。
その判定結果は符号量判定部16に供給される。符号量
判定部16では、以前のIフレームの各マクロブロック
の符号量と、現在のIフレームの各マクロブロックの符
号量を、符号量バッファ15より読み出す。
The static region determination unit 13 compares two I frames in macroblock units for each macroblock, and determines whether the region is a still or moving region.
The result of the determination is supplied to the code amount determination unit 16. The code amount determination unit 16 reads the code amount of each macroblock of the previous I frame and the code amount of each macroblock of the current I frame from the code amount buffer 15.

【0012】以前のIフレームの符号量は、ヘッダ部分
(Ih)、動領域部分のマクロブロックの符号量(Im(n-
1))、静止領域部分のマクロブロックの符号量(Is(n-
1))からなり、従って、総符号量は Ih+Im(n-1)+Is
(n -1) である。現在処理を行っているIフレームの符
号量はヘッ部分(Ih)、動領域部分のマクロブロックの
符号量(Im(n))、静止領域部分のマクロブロックの符
号量(Is(n))からなり、従って、総符号量は Ih+Im
(n)+Is(n) となる。
[0012] The code amount of the previous I frame is represented by the code amount (Im (n-
1)), the code amount of the macroblock in the still area (Is (n-
1)), so the total code amount is Ih + Im (n-1) + Is
(n -1). The code amount of the I frame currently being processed is calculated from the head part (Ih), the code amount of the macroblock in the moving area part (Im (n)), and the code amount of the macroblock in the still area part (Is (n)). Therefore, the total code amount is Ih + Im
(n) + Is (n).

【0013】ここで、静止領域と判定された場合、以前
のIフレームのマクロブロックの符号に置き換えた場合
のIフレームの総符号量は Ih+Im(n)+Is(n-1) であ
る。この値が、MPEG符号化部11より入力されるアンダ
ーフローを起こさない仮想バッファ(VBV(Video Buffe
ring Verifier)バッファ)値より少なければ、符号の
置き換えが可能であるため、この判定を行なう。
Here, when it is determined that the area is a still area, the total code amount of the I frame when it is replaced with the code of the macroblock of the previous I frame is Ih + Im (n) + Is (n-1). This value is input to the virtual buffer (VBV (Video Buffe
If the value is smaller than the value of the ring verifier (buffer), the code can be replaced, so this determination is made.

【0014】符号量判定部16からは、各マクロブロッ
ク単位に、現在のIフレームの符号を出力するか、以前
のIフレームのマクロブロックの符号を出力するかの制
御をビットストリームバッファ14に対して行なう。VB
Vバッファが、アンダーフローを起こす場合は、全マク
ロブロックに対して、現在のIフレームの符号を出力さ
せる。
The code amount determination unit 16 controls the bit stream buffer 14 to control whether the code of the current I frame or the code of the macro block of the previous I frame is output for each macroblock. Do it. VB
If the V-buffer causes an underflow, the code of the current I frame is output for all macroblocks.

【0015】このVBVバッファがアンダーフローを起こ
さない場合は、静止領域と判定されたマクロブロックに
対しては、以前のIフレームの符号を出力させ、動領域
と判定されたマクロブロックに対しては、現在のIフレ
ームの符号を出力させる。
If the VBV buffer does not cause underflow, the code of the previous I frame is output for the macroblock determined as the still area, and the macroblock determined as the moving area is output for the macroblock determined as the still area. , To output the code of the current I frame.

【0016】また、静止領域と判定されたマクロブロッ
クに関しては、符号量バッファ部15に対して、以前の
Iフレームのマクロブロックの発生符号量を、現在のIフ
レームのマクロブロックの発生符号量に上書きを行な
う。
For the macroblock determined to be a still area, the code amount buffer unit 15
The generated code amount of the macroblock of the I frame is overwritten with the generated code amount of the current macroblock of the I frame.

【0017】同様に、ビットストリームバッファ部14
に対して、以前のIフレームのマクロブロックのビット
ストリームを、現在のIフレームのマクロブロックのビ
ットストリームに上書きを行なう。同様に、静止領域判
定部13に対して、以前の Iフレームのマクロブロック
の画像データをIフレームバッファ12から読み出し、I
フレームバッファ中の現在のIフレームのマクロブロッ
クの画像データに対して上書きを行なわせる。また、符
号量判定部16は、出力を行なうIフレームの総符号量
を、MPEG符号化部11に出力し、次のフレームの符号
量制御に用いさせる。
Similarly, the bit stream buffer unit 14
, The bit stream of the macroblock of the previous I frame is overwritten with the bit stream of the macroblock of the current I frame. Similarly, the image data of the macroblock of the previous I frame is read out from the I frame buffer
The image data of the macroblock of the current I frame in the frame buffer is overwritten. In addition, the code amount determination unit 16 outputs the total code amount of the I frame to be output to the MPEG encoding unit 11 so as to be used for the code amount control of the next frame.

【0018】ビットストリーム形成部17は、Pフレー
ム及びBフレームの場合は、MPEG符号化部11からのビ
ットストリームをそのまま出力し、Iフレームの場合
は、ビットストリームバッファ14から入力されるヘッ
ダ、及び、マクロブロック単位のビットストリームか
ら、Iフレームのビットストリームを形成し出力する。
The bit stream forming unit 17 outputs the bit stream from the MPEG encoding unit 11 as it is for a P frame and a B frame, and outputs a header input from the bit stream buffer 14 for an I frame. A bit stream of an I frame is formed from the bit stream in units of macroblocks and output.

【0019】以上の様に、入力画像に対して静止領域と
判定されたマクロブロックの符号化を行なわず、蓄積さ
れている先のIフレームの符号を出力する機能を有する
ことで、静止部分に関して、GOP間で同一のデコード画
像を生成可能とする処理を行なうことにより、背景等の
静止領域部分に関して、Iフレームのデコード画像差に
より起きていた画像の変化が無くなり、視覚上の画質が
向上する。
As described above, the function of outputting the code of the preceding I frame stored without performing the coding of the macroblock determined as the still area in the input image is provided. , The same decoded image can be generated between GOPs, thereby eliminating the change in the image caused by the difference between the decoded image of the I frame and the still area such as the background, thereby improving the visual image quality. .

【0020】[0020]

【発明の効果】本発明により、背景等の静止領域部分に
関して、Iフレームのデコード画像差により起きていた
画像の変化が無くなり、視覚上の画質の向上が行なえ
る。
According to the present invention, the change of the image caused by the difference between the decoded image of the I frame and the still area such as the background can be eliminated, and the visual image quality can be improved.

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

【図1】本発明の符号化装置の一実施例を示す構成図で
ある。
FIG. 1 is a configuration diagram showing an embodiment of an encoding device of the present invention.

【図2】MPEGを用いた画像符号化のシーケンスを示した
図である。
FIG. 2 is a diagram showing a sequence of image encoding using MPEG.

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

11 MPEG符号化部 12 Iフレームバッファ 13 静止領域判定部 14 ビットストリームバッファ 15 符号量バッファ 16 符号量判定部 17 ビットストリーム形成部 Reference Signs List 11 MPEG encoding section 12 I frame buffer 13 Still area determination section 14 Bit stream buffer 15 Code amount buffer 16 Code amount determination section 17 Bit stream formation section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】MPEGを用いて符号化をする画像信号符号化
装置において、 入力画像に対してMPEGの符号化を行なう符号化部と、 Iフレームの場合、前記入力画像を蓄積するフレームバ
ッファと、 前記フレームバッファに蓄積されている以前のIフレー
ムと現在のIフレームとよりマクロブロック単位に静止
・動領域判定を行なう判定部と、 Iフレームの場合、前記MPEG符号化部から出力されるマ
クロブロック単位のビットストリームを蓄積するビット
ストリームバッファと、 Iフレームの場合、マクロブロック単位に発生する符号
量を蓄積する符号量バッファと、 Iフレームの場合、前記判定部で静止領域と判定された
マクロブロックを以前のIフレームの符号に置換する場
合の発生符号量を算出する符号量判定部と、 前記ビットストリームバッファから出力されるIフレー
ムのヘッダとマクロブロック単位のビットストリームか
らIフレームのビットストリームを形成するビットスト
リーム生成部を有し、 Iフレームの場合、静止領域と判定されたマクロブロッ
クに関して、仮想バッファ値がアンダーフローしない場
合、以前のIフレームのマクロブロックのビットストリ
ームに置換することを特徴とする画像信号符号化装置。
1. An image signal encoding apparatus for encoding using MPEG, comprising: an encoding unit for performing MPEG encoding on an input image; and in the case of an I frame, a frame buffer for storing the input image. A determination unit for determining a still / moving region in macroblock units based on a previous I frame and a current I frame stored in the frame buffer; and in the case of an I frame, a macro output from the MPEG encoding unit. A bit stream buffer for accumulating a bit stream in block units; a code amount buffer for accumulating a code amount generated in macro block units in the case of an I frame; A code amount determining unit for calculating a generated code amount when a block is replaced with a code of a previous I frame; A bit stream generator for forming an I-frame bit stream from an I-frame header and a macro-block-based bit stream output from a buffer, and in the case of an I-frame, a virtual buffer for a macro block determined to be a still area. An image signal encoding apparatus characterized in that when a value does not underflow, it is replaced with a bit stream of a macroblock of a previous I frame.
JP7517999A 1999-03-19 1999-03-19 Image signal coder Pending JP2000270333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7517999A JP2000270333A (en) 1999-03-19 1999-03-19 Image signal coder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7517999A JP2000270333A (en) 1999-03-19 1999-03-19 Image signal coder

Publications (1)

Publication Number Publication Date
JP2000270333A true JP2000270333A (en) 2000-09-29

Family

ID=13568732

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7517999A Pending JP2000270333A (en) 1999-03-19 1999-03-19 Image signal coder

Country Status (1)

Country Link
JP (1) JP2000270333A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7072574B2 (en) * 2001-02-05 2006-07-04 Hitachi, Ltd. Method and apparatus for recording and playing back moving picture data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7072574B2 (en) * 2001-02-05 2006-07-04 Hitachi, Ltd. Method and apparatus for recording and playing back moving picture data
KR100789507B1 (en) * 2001-02-05 2007-12-28 가부시키가이샤 히타치세이사쿠쇼 Method and Apparatus for Recording and Playing back Moving Picture Data

Similar Documents

Publication Publication Date Title
KR100592651B1 (en) Transcoding
KR100495716B1 (en) Apparatus and method for encoding images and medium in which image encoding program has been recorded
JP3358835B2 (en) Image coding method and apparatus
KR101122898B1 (en) Sgnaling valid entry points in a video stream
JP3976942B2 (en) Image processing apparatus and method, and computer-readable recording medium on which an image processing program is recorded
JPH11275580A (en) Image data processor, image data decoder, image data coder and their methods
US20080025408A1 (en) Video encoding
JP2002016929A (en) Encoder and encoding method
JP3778208B2 (en) Image coding apparatus and image coding method
JPH06350995A (en) Moving picture processing method
JP3599942B2 (en) Moving picture coding method and moving picture coding apparatus
JP3895414B2 (en) Video decoding device
JPH08251582A (en) Encoded data editing device
WO1999038262A1 (en) Variable-length encoder
JP2000197010A (en) Picture data editing device
JP2002199408A (en) Moving image coding method and moving image coder
JP2000270333A (en) Image signal coder
JPH114445A (en) Image coder and its method
JP3690259B2 (en) High-speed moving image encoding apparatus and high-speed moving image encoding method
JPH08154250A (en) Moving image coder
JP2009246489A (en) Video-signal switching apparatus
JPH11289515A (en) Picture signal processor and its method, picture signal recorder and its method and recording medium
JPH0537786A (en) Picture data encoder and decoder
JPH09238353A (en) Image coding method and device, image transmission method, and image recording medium
JP3356413B2 (en) Image decoding method and apparatus