JP2001238215A - Moving picture coding apparatus and its method - Google Patents

Moving picture coding apparatus and its method

Info

Publication number
JP2001238215A
JP2001238215A JP2000042466A JP2000042466A JP2001238215A JP 2001238215 A JP2001238215 A JP 2001238215A JP 2000042466 A JP2000042466 A JP 2000042466A JP 2000042466 A JP2000042466 A JP 2000042466A JP 2001238215 A JP2001238215 A JP 2001238215A
Authority
JP
Japan
Prior art keywords
image
picture
scene change
code amount
detecting
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.)
Granted
Application number
JP2000042466A
Other languages
Japanese (ja)
Other versions
JP3812267B2 (en
Inventor
Kazuhiko Morita
一彦 森田
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 JP2000042466A priority Critical patent/JP3812267B2/en
Publication of JP2001238215A publication Critical patent/JP2001238215A/en
Application granted granted Critical
Publication of JP3812267B2 publication Critical patent/JP3812267B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a code quantity controller that is suitable for fixed bit rate and variable bit rate coding especially in real time with respect to high efficiency coding for a moving picture. SOLUTION: The moving picture coding apparatus that codes a moving picture is provided with a means 23 that detects a generated code amount of each picture, a means 22 that detects an average quantization scale of each picture, a measn 25 that detects a coding generating characteristic of at least a received picture in the received picture and a motion compensation prediction picture, a means 28 that detects a scene change from the coded picture characteristic, a means 24 that calculates image complexity on the basis of the generated code amount, the average quantization scale, the coded picture characteristic and the scene change information, and a means 14 that decides an assigned code amount of a picture to be succeedingly coded on the basis of the generated code amount, the image complexity, and the coded image characteristic and decides a quantization scale of a picture to be coded next from the assigned code amount.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、動画像の高能率符
号化に係り、特に、ほぼリアルタイムで固定ビットレー
ト及び可変ビットレート符号化を行う際に好適な符号量
制御装置及びその方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to high-efficiency coding of moving pictures, and more particularly to a code amount control apparatus and method suitable for performing fixed bit rate and variable bit rate coding in almost real time.

【0002】[0002]

【従来の技術】TV信号などの動画像を高能率に符号化す
る技術の国際標準として既にMPEG2が規定されている。
MPEG2は、動画像を構成する「フレーム」画像を「マクロ
ブロック」と呼ばれる16×16画素のブロックに分割
し、各マクロブロック単位に、時間的に前または後に所
定の数フレーム離れた参照画像と被符号化画像の間で
「動きベクトル」と呼ばれる動き量を求め、この動き量
を基に参照画像から被符号化画像を構成する「動き補償
予測」技術と、動き補償予測の誤差信号または符号化画
像そのものに対して、直交変換の一種であるDCT(離散コ
サイン変換)を用いて情報量を圧縮する「変換符号化」
技術の2つの画像符号化の要素技術をベースに規定され
ている。
2. Description of the Related Art MPEG2 has already been defined as an international standard for technology for efficiently encoding moving images such as TV signals.
MPEG2 divides a “frame” image that constitutes a moving image into 16 × 16 pixel blocks called “macroblocks”. Each macroblock unit includes a reference image separated by a predetermined number of frames before or after a predetermined number of frames. A motion amount called a "motion vector" is obtained between the encoded images, and a "motion compensation prediction" technique for constructing the encoded image from the reference image based on the motion amount, and an error signal or code of the motion compensated prediction. "Transform coding" that compresses the amount of information on the coded image itself using DCT (Discrete Cosine Transform), a type of orthogonal transform
The technology is defined based on two image coding element technologies.

【0003】従来のMPEG2の動画像符号化装置の一構成
例を図7に示す。また、符号化ピクチャ構造の一例を図
6に示す。動き補償予測では、図6に示した符号化ピク
チャ構造のように、Iピクチャ(フレーム内符号化)、P
ピクチャ(順方向予測符号化)、Bピクチャ(双方向予測符
号化)と呼ばれる、予測方法の異なる3種類のピクチャの
組合わせによって構成される。
FIG. 7 shows an example of the configuration of a conventional MPEG-2 moving picture coding apparatus. FIG. 6 shows an example of an encoded picture structure. In the motion-compensated prediction, as in the coded picture structure shown in FIG.
It is composed of a combination of three types of pictures with different prediction methods, called pictures (forward prediction coding) and B pictures (bidirectional prediction coding).

【0004】図7に示されるように、変換符号化では、
Iピクチャでは符号化画像そのものに対し、P、Bピクチ
ャでは動き補償器79による動き補償予測の誤差信号で
ある減算器71の出力に対して、DCTがDCT器72で夫々
施される。このDCT器72で得られたDCT係数に対して量
子化が、符号量制御部90の出力により制御されて量子
化器73によってなされた後に、動きベクトル等のその
他の付帯情報と共に可変長符号化が可変長符号化器75
でなされ、符号列が「ビットストリーム」としてバッフ
ァ76に記憶された後に出力される。この際、バッファ
76の充足度に応じて符号量制御部90で量子化スケー
ルが制御される。一方、量子化器73の出力係数は、逆
量子化器77、IDCT器78に供給されて、局部復号され
た後に、加算器80を介して、ブロック毎にフレームメ
モリ81に貯えられる。
As shown in FIG. 7, in transform coding,
The DCT unit 72 applies DCT to the coded image itself in the I picture, and to the output of the subtractor 71 which is the error signal of the motion compensation prediction by the motion compensator 79 in the P and B pictures. After the DCT coefficients obtained by the DCT unit 72 are quantized by the quantizer 73 under the control of the output of the code amount control unit 90, variable-length coding is performed together with other accompanying information such as motion vectors. Is the variable length encoder 75
The code string is output after being stored in the buffer 76 as a “bit stream”. At this time, the quantization scale is controlled by the code amount control unit 90 in accordance with the sufficiency of the buffer 76. On the other hand, the output coefficients of the quantizer 73 are supplied to an inverse quantizer 77 and an IDCT unit 78, and after being locally decoded, stored in a frame memory 81 for each block via an adder 80.

【0005】MPEG2は可変長符号化であるため、単位時
間当りの発生符号量(ビットレート)は一定ではない。そ
こで量子化器73での量子化の際の量子化スケールをマ
クロブロック単位に適宜変更することにより、所要のビ
ットレートに制御することが可能になっている。MPEG2
Test Model5では、GOP単位で発生符号量を一定にする
固定ビットレート制御方法が提案されている。この固定
ビットレート制御方法は、一定の転送レートが要求され
る用途に適した方法である。
[0005] Since MPEG2 is variable-length coding, the amount of generated code (bit rate) per unit time is not constant. Therefore, it is possible to control to a required bit rate by appropriately changing the quantization scale at the time of quantization in the quantizer 73 for each macroblock. MPEG2
Test Model 5 proposes a fixed bit rate control method for making the generated code amount constant in GOP units. This fixed bit rate control method is a method suitable for an application requiring a constant transfer rate.

【0006】Test Model 5における、図7の符号量制御
部の動作に相当する、固定ビットレート制御方法の概略
は次の通りである。目標ビットレートをBitRate、1秒
当りのフレーム数をPictureRate、1つの符号化単位で
ある1GOP(通常はIピクチャの間隔)のフレーム数をNと
すると、1GOPに割当てられる符号量Rは次式(1)で与え
られる。 R = (BitRate/PictureRate)・N (1)
An outline of a fixed bit rate control method corresponding to the operation of the code amount control unit in FIG. 7 in Test Model 5 is as follows. Assuming that the target bit rate is BitRate, the number of frames per second is PictureRate, and the number of frames of one GOP (usually the interval between I pictures) as one encoding unit is N, the code amount R allocated to one GOP is represented by the following equation ( Given in 1). R = (BitRate / PictureRate) N (1)

【0007】(1)式の符号量RをGOP内の各画像に配分す
ることになるが、ここで各ピクチャタイプの符号化直後
の画像について、1フレームの発生符号量と平均量子化
スケールの積を画面複雑度 (Complexity) Xi(Iピクチ
ャ)、Xp(Pピクチャ)、Xb(Bピクチャ)として求め、こ
れから符号化する画像を含むGOP内の画像が一様に前記
画面複雑度 (Complexity)に等しいと仮定して、これか
ら符号化する画像の目標割当符号量を決定する。
The code amount R in the equation (1) is allocated to each image in the GOP. Here, for the image immediately after coding of each picture type, the generated code amount of one frame and the average quantization scale are calculated. The product is obtained as screen complexity (Complexity) Xi (I picture), Xp (P picture), Xb (B picture), and the image in the GOP including the image to be encoded is uniformly the screen complexity (Complexity) Is determined, the target allocated code amount of the image to be encoded is determined.

【0008】現在のGOPで符号化の終了していないP、
Bピクチャのフレーム数をNp、Nb、Iピクチャに対する
P、Bピクチャの量子化スケールの設定比率をKp、Kbと
する。この時、I、P、B各ピクチャタイプの目標割当
符号量Ti, Tp, Tbは次式(2)(3)(4)で与えられる。な
お、MAX[A, B]はAとBのいずれか大きい方を選択する動
作を示す。
[0008] P, whose encoding is not completed in the current GOP,
It is assumed that the number of frames of the B picture is Np and Nb, and the setting ratio of the quantization scale of the P picture and the quantization scale of the B picture is Kp and Kb. At this time, the target allocation code amounts Ti, Tp, and Tb of the I, P, and B picture types are given by the following equations (2), (3), and (4). MAX [A, B] indicates an operation of selecting the larger one of A and B.

【0009】 (Iピクチャ) Ti = MAX[ A , B ] A = R / ( 1+Np・Xp/(Xi・Kp)+Nb・Xb/(Xi・Kb) ) B = BitRate / (8・PictureRate) (2) (Pピクチャ) Tp = MAX[ C , D ] C = R / ( Np+Nb・Kp・Xb/(Xp・Kb) ) D = BitRate / (8・PictureRate) (3) (Bピクチャ) Tb = MAX[ E , F ] E = R / ( Nb+Np・Kb・Xp/(Xb・Kp) ) F = BitRate / (8・PictureRate) (4)(I picture) Ti = MAX [A, B] A = R / (1 + Np.Xp / (Xi.Kp) + Nb.Xb / (Xi.Kb)) B = BitRate / (8.PictureRate) ) (2) (P picture) Tp = MAX [C, D] C = R / (Np + Nb · Kp · Xb / (Xp · Kb)) D = BitRate / (8 · PictureRate) (3) (B picture ) Tb = MAX [E, F] E = R / (Nb + Np ・ Kb ・ Xp / (Xb ・ Kp)) F = BitRate / (8 ・ PictureRate) (4)

【0010】なお、符号量Rの値は1フレーム符号化が
終了する毎に、そのフレームの発生符号量を減算し、GO
Pの先頭(Iピクチャ)において、(1)式の値を加算する。
つぎに、上式(2)(3)(4)で決定した目標割当符号量と、
バッファ76で検出される各マクロブロックの発生符号
量をもとに、各マクロブロックの量子化スケールを決定
する。
Note that the value of the code amount R is calculated by subtracting the generated code amount of the frame every time one frame coding is completed.
At the beginning of P (I picture), the value of equation (1) is added.
Next, the target allocation code amount determined by the above equations (2), (3), (4),
The quantization scale of each macroblock is determined based on the generated code amount of each macroblock detected by the buffer 76.

【0011】一方、DVD-Videoのように可変転送レート
が可能な用途に適した方法として、可変ビットレート制
御方法がある。特開平6−141298号公報には、可変
ビットレート制御による符号化装置が開示されている。
この装置では、最初に入力動画像に対して固定量子化ス
ケールによって仮符号化を行い、単位時間毎に発生符号
量がカウントされる。次に入力動画像全体の発生符号量
が所要値になるように、仮符号化時の発生符号量に基づ
いて各部分の目標転送レートを設定する。そしてこの目
標転送レートに合致するように制御を行いながら、入力
動画像に対して2回目の符号化、言い換えると実符号化
が行われる。
On the other hand, there is a variable bit rate control method as a method suitable for applications in which a variable transfer rate is possible such as DVD-Video. JP-A-6-141298 discloses an encoding device using variable bit rate control.
In this device, first, provisional encoding is performed on an input moving image using a fixed quantization scale, and the generated code amount is counted for each unit time. Next, the target transfer rate of each part is set based on the generated code amount at the time of provisional encoding so that the generated code amount of the entire input moving image becomes a required value. Then, while performing control so as to match the target transfer rate, the second encoding, that is, actual encoding, is performed on the input moving image.

【0012】しかし、上記従来例では、出力ビットスト
リームを得るためには少なくとも2回の符号化を行わな
ければならず、リアルタイム性を要求されるような用途
ではこの装置のような2パス方式の可変ビットレート制
御は使用出来ない。
However, in the above-mentioned conventional example, encoding must be performed at least twice in order to obtain an output bit stream. In applications requiring real-time performance, a two-pass system such as this apparatus is used. Variable bit rate control cannot be used.

【0013】これに対し、動画像をほぼリアルタイムで
符号化するための可変ビットレート制御方法、すなわち
1パス方式の可変ビットレート制御方法も存在する。特
開平10−164577号公報には、1パス方式の可変
ビットレート制御方法による符号化装置が前記公報の図
6等に開示されている。この従来例における動画像符号
化装置の一構成例を図8に示す。なお、図7と同一構成
部材に対しては同一符号を付してその説明は省略する。
On the other hand, there is also a variable bit rate control method for encoding a moving picture almost in real time, that is, a variable bit rate control method of a one-pass system. Japanese Patent Application Laid-Open No. H10-164577 discloses an encoding apparatus using a one-pass variable bit rate control method, for example, in FIG. FIG. 8 shows an example of the configuration of a moving picture coding apparatus in this conventional example. The same components as those in FIG. 7 are denoted by the same reference numerals, and description thereof will be omitted.

【0014】この従来例の装置では、バッファ76に記
憶した符号量を発生符号量検出器83に供給し、この発
生符号量検出器83による発生符号量と、量子化器73
からの量子化スケールを平均量子化スケール検出器82
に供給し、この平均量子化スケール検出器82による画
面内の量子化スケールの平均値との積を、「画面複雑
度」として画面複雑度検出器84で求め、過去の画面複
雑度の平均値に対する現在の画面複雑度の割合を基に、
画面の目標発生符号量または目標量子化スケールを決定
することにより、可変ビットレート制御を符号量制御器
74で実現している。
In this conventional apparatus, the code amount stored in the buffer 76 is supplied to a generated code amount detector 83, and the generated code amount by the generated code amount detector 83 and the quantizer 73
Quantized scale from the average quantized scale detector 82
And the product of the average quantization scale in the screen by the average quantization scale detector 82 and the average value of the quantization scale in the screen is calculated as “screen complexity” by the screen complexity detector 84, and the average value of the past screen complexity is calculated. Based on the current screen complexity ratio to
The variable bit rate control is realized by the code amount controller 74 by determining the target generated code amount or the target quantization scale of the screen.

【0015】[0015]

【発明が解決しようとする課題】上記従来例においては
これから符号化する画像の画面複雑度が、直前に符号化
した同じピクチャタイプの画面複雑度と同程度であると
仮定して符号化制御が行われている。しかしながら、入
力動画像にシーンチェンジのような大きな変化が生じた
場合、変化点の前後で画像の性質が変わるため画面複雑
度自体が変化するばかりでなく、予測符号化を行うP及
びBピクチャでは、変化の生じた前と後の画像の間では
予測がほとんど当たらないため、変化直後の画像ではほ
とんどのマクロブロックが面内符号化を行うイントラに
なる場合が多い。
In the above conventional example, the coding control is performed on the assumption that the screen complexity of an image to be coded is about the same as the screen complexity of the same picture type coded immediately before. Is being done. However, when a large change such as a scene change occurs in the input moving image, not only does the screen complexity itself change because the nature of the image changes before and after the change point, but also in P and B pictures for which predictive coding is performed. In addition, since almost no prediction is made between the image before and after the change occurs, almost all macroblocks in the image immediately after the change often become intras for performing intra-frame coding.

【0016】そのような画像では変化前の画像に比べ、
実際の画面複雑度が極端に高くなるのにも関らず上記従
来例では、変化前の画像の画面複雑度を基準にして符号
量割当が行われるため、割当符号量が不足して、量子化
スケールが上昇し、結果として変化点の直後で画質劣化
が生じてしまうという問題があった。
In such an image, compared to the image before the change,
In the above-described conventional example, the code amount is allocated based on the screen complexity of the image before the change, despite the fact that the actual screen complexity becomes extremely high. There is a problem that the image scale is increased, and as a result, the image quality is deteriorated immediately after the change point.

【0017】一方、変化直後の画像から次に予測を行う
画像では、画像が小刻みに変化する場合を除いては比較
的予測が当たりやすくなり、実際の画面複雑度は変化直
後の画像よりも低くなるにも関らず、上記従来例では変
化直後の高い画面複雑度を基準にして符号量割当が行わ
れるため、割当符号量が過剰となって量子化スケールが
不必要に下降し、符号量に無駄が生じてしまうという問
題があった。本発明は以上の問題を解決して、入力動画
像にシーンチェンジのような大きな変化が発生した場合
でも、より適切な符号量割当を行うことが出来る固定ビ
ットレート及び1パス方式の可変ビットレート制御方法
を実現することを目的とするものである。
On the other hand, in an image to be predicted next from the image immediately after the change, the prediction becomes relatively easy except when the image changes little by little, and the actual screen complexity is lower than that of the image immediately after the change. Nevertheless, in the above conventional example, the code amount is allocated based on the high screen complexity immediately after the change, so that the allocated code amount becomes excessive and the quantization scale drops unnecessarily, and the code amount is reduced. However, there is a problem that waste occurs. The present invention solves the above-described problems, and enables a fixed bit rate and a variable bit rate of a one-pass method to perform more appropriate code amount allocation even when a large change such as a scene change occurs in an input moving image. It is intended to realize a control method.

【0018】[0018]

【課題を解決するための手段】上記の課題を解決する為
に、請求項1の発明は、入力動画像を動き補償予測手
段、直交変換手段、量子化手段、及び可変長符号化手段
を有して符号化する動画像符号化装置において、前記入
力動画像の各画像の発生符号量を検出する手段と、前記
入力動画像の各画像の平均量子化スケールを検出する手
段と、前記入力動画像及び前記動き補償予測手段によっ
て生成される動き補償予測画像のうち少なくとも前記入
力動画像の符号化画像特性を検出する手段と、前記符号
化画像特性を検出する手段によって検出された符号化画
像特性からシーンチェンジ画像情報を検出する手段と、
前記発生符号量を検出する手段によって検出された発生
符号量、前記平均量子化スケールを検出する手段によっ
て検出された平均量子化スケールから、過去の画像の実
測画面複雑度を算出し、前記算出した過去の画像の実測
画面複雑度と、前記符号化画像特性を検出する手段によ
って検出された符号化画像特性と、前記シーンチェンジ
画像情報を検出する手段によって検出されたシーンチェ
ンジ画像情報から現在の画像の推定画面複雑度を算出す
る手段と、前記実測画面複雑度を算出する手段によって
算出された過去の画像の実測画面複雑度、もしくは前記
現在の画像の推定画面複雑度を算出する手段によって算
出された現在の画像の推定画面複雑度と、前記発生符号
量を検出する手段によって検出された発生符号量、前記
平均量子化スケールを検出する手段によって検出された
平均量子化スケール、前記符号化画像特性を検出する手
段によって検出された符号化画像特性から、次に符号化
する画像の割当符号量を決定し、前記割当符号量から前
記次に符号化する画像の量子化スケールを決定する手段
とを備えたことを特徴とする動画像符号化装置を提供
し、請求項2の発明は、請求項1に記載された動画像符
号化装置において、前記現在の画像の推定画面複雑度を
算出する手段は、前記検出された現在の画像の符号化画
像特性と、それと同じピクチャタイプ(Iピクチャ、P
ピクチャ、Bピクチャ)の直前の画像において検出され
た符号化画像特性との比を因数とする所定の関数を、前
記直前の画像における前記実測画面複雑度に乗算するこ
とによって前記推定画面複雑度を算出することを特徴と
する動画像符号化装置を提供し、請求項3の発明は、請
求項1に記載された動画像符号化装置において、前記現
在の画像が前記検出されたシーンチェンジ画像情報によ
ってシーンチェンジ画像、またはシーンチェンジ画像の
次の画像と判定された場合は、前記符号化画像特性との
比を因数とする所定の関数を変更し、前記現在の画像が
シーンチェンジ画像の次の画像と判定された場合は、前
記現在の画像と同じピクチャタイプ(Iピクチャ、Pピ
クチャ、Bピクチャ)の直前の画像を、前記現在の画像
と同じピクチャタイプのシーンチェンジ画像の前の画像
に変更することを特徴とする動画像符号化装置を提供
し、請求項4の発明は、請求項1に記載された動画像符
号化装置において、前記次に符号化する画像の割当符号
量を決定する手段において使用する画面複雑度は、少な
くとも前記現在の画像が前記検出されたシーンチェンジ
画像情報によってシーンチェンジ画像、またはシーンチ
ェンジ画像の次の画像と判定された場合は、前記現在の
画像の推定画面複雑度を使用することを特徴とする動画
像符号化装置を提供し、請求項5の発明は、請求項1乃
至請求項4のいずれかに記載された動画像符号化装置に
おいて、前記発生符号量と前記実測画面複雑度、もしく
は前記推定画面複雑度から次に符号化する画像の割当符
号量を決定する手段は、前記実測画面複雑度の一定期間
における平均値に対する前記推定画面複雑度の割合を、
平均割当符号量に乗ずることによって前記割当符号量を
決定することを特徴とする動画像符号化装置を提供し、
請求項6の発明は、請求項1乃至請求項5のいずれかに
記載された動画像符号化装置において、前記入力動画像
または動き補償予測画像の符号化画像特性を検出する手
段は、前記入力動画像の画像特性を検出する手段、動き
補償予測画像の誤差画像の画像特性を検出する手段、及
び動き補償予測における動きベクトル特性を検出する手
段より構成され、ピクチャタイプ(Iピクチャ、Pピク
チャ、Bピクチャ)別及び予測モード別の定数を、前記
検出した入力動画像の画像特性、動き補償予測画像の誤
差画像の画像特性、及び動き補償予測における動きベク
トル特性の前記各特性値に対して乗じた上で加算するこ
とによって、前記符号化画像特性を決定し、前記シーン
チェンジ画像情報を検出する手段は、前記現在の画像と
前記それと同じピクチャタイプ(Iピクチャ、Pピクチ
ャ、Bピクチャ)の直前の画像の間で、前記符号化画像
特性を検出する手段によって検出された前記入力動画像
の画像特性、動き補償予測画像の誤差画像の画像特性、
及び動き補償予測における動きベクトル特性の前記各特
性値の比を計算をし、前記特性値の比が各特性値毎に定
めた一定範囲を超えた場合に、前記現在の画像をシーン
チェンジ画像と判定し、前記シーンチェンジ画像と同じ
ピクチャタイプ(Iピクチャ、Pピクチャ、Bピクチャ)
の次の画像をシーンチェンジ画像の次の画像と定めるこ
とを特徴とする動画像符号化装置を提供し、請求項7の
発明は、入力動画像を動き補償予測ステップ、直交変換
ステップ、量子化ステップ、及び可変長符号化ステップ
を有して符号化する動画像符号化方法において、前記入
力動画像の各画像の発生符号量を検出するステップと、
前記入力動画像の各画像の平均量子化スケールを検出す
るステップと、前記入力動画像及び前記動き補償予測ス
テップによって生成される動き補償予測画像のうち少な
くとも前記入力動画像の符号化画像特性を検出するステ
ップと、前記符号化画像特性を検出するステップによっ
て検出された符号化画像特性からシーンチェンジ画像情
報を検出するステップと、前記発生符号量を検出するス
テップによって検出された発生符号量、前記平均量子化
スケールを検出するステップによって検出された平均量
子化スケールから、過去の画像の実測画面複雑度を算出
し、前記算出した過去の画像の実測画面複雑度と、前記
符号化画像特性を検出するステップによって検出された
符号化画像特性と、前記シーンチェンジ画像情報を検出
するステップによって検出されたシーンチェンジ画像情
報から現在の画像の推定画面複雑度を算出するステップ
と、前記実測画面複雑度を算出するステップによって算
出された過去の画像の実測画面複雑度、もしくは前記現
在の画像の推定画面複雑度を算出するステップによって
算出された現在の画像の推定画面複雑度と、前記発生符
号量を検出するステップによって検出された発生符号
量、前記平均量子化スケールを検出するステップによっ
て検出された平均量子化スケール、前記符号化画像特性
を検出するステップによって検出された符号化画像特性
から、次に符号化する画像の割当符号量を決定し、前記
割当符号量から前記次に符号化する画像の量子化スケー
ルを決定するステップとを備えたことを特徴とする動画
像符号化方法を提供し、請求項8の発明は、請求項7に
記載された動画像符号化方法において、前記現在の画像
の推定画面複雑度を算出するステップは、前記検出され
た現在の画像の符号化画像特性と、それと同じピクチャ
タイプ(Iピクチャ、Pピクチャ、Bピクチャ)の直前の画
像において検出された符号化画像特性との比を因数とす
る所定の関数を、前記直前の画像における前記実測画面
複雑度に乗算することによって前記推定画面複雑度を算
出することを特徴とする動画像符号化方法を提供し、請
求項9の発明は、請求項7に記載された動画像符号化方
法において、前記現在の画像が前記検出されたシーンチ
ェンジ画像情報によってシーンチェンジ画像、またはシ
ーンチェンジ画像の次の画像と判定された場合は、前記
符号化画像特性との比を因数とする所定の関数を変更
し、前記現在の画像がシーンチェンジ画像の次の画像と
判定された場合は、前記現在の画像と同じピクチャタイ
プ(Iピクチャ、Pピクチャ、Bピクチャ)の直前の画像
を、前記現在の画像と同じピクチャタイプのシーンチェ
ンジ画像の前の画像に変更することを特徴とする動画像
符号化方法を提供し、請求項10の発明は、請求項7に
記載された動画像符号化方法において、前記次に符号化
する画像の割当符号量を決定するステップにおいて使用
する画面複雑度は、少なくとも前記現在の画像が前記検
出されたシーンチェンジ画像情報によってシーンチェン
ジ画像、またはシーンチェンジ画像の次の画像と判定さ
れた場合は、前記現在の画像の推定画面複雑度を使用す
ることを特徴とする動画像符号化方法を提供し、請求項
11の発明は、請求項7乃至請求項10のいずれかに記
載された動画像符号化方法において、前記発生符号量と
前記実測画面複雑度、もしくは前記推定画面複雑度から
次に符号化する画像の割当符号量を決定するステップ
は、前記実測画面複雑度の一定期間における平均値に対
する前記推定画面複雑度の割合を、平均割当符号量に乗
ずることによって前記割当符号量を決定することを特徴
とする動画像符号化方法を提供し、請求項12の発明
は、請求項7乃至請求項11のいずれかに記載された動
画像符号化方法において、前記入力動画像または動き補
償予測画像の符号化画像特性を検出するステップは、前
記入力動画像の画像特性を検出するステップ、動き補償
予測画像の誤差画像の画像特性を検出するステップ、及
び動き補償予測における動きベクトル特性を検出するス
テップより構成され、ピクチャタイプ(Iピクチャ、P
ピクチャ、Bピクチャ)別及び予測モード別の定数を、
前記検出した入力動画像の画像特性、動き補償予測画像
の誤差画像の画像特性、及び動き補償予測における動き
ベクトル特性の前記各特性値に対して乗じた上で加算す
ることによって、前記符号化画像特性を決定し、前記シ
ーンチェンジ画像情報を検出するステップは、前記現在
の画像と前記それと同じピクチャタイプ(Iピクチャ、
Pピクチャ、Bピクチャ)の直前の画像の間で、前記符
号化画像特性を検出するステップによって検出された前
記入力動画像の画像特性、動き補償予測画像の誤差画像
の画像特性、及び動き補償予測における動きベクトル特
性の前記各特性値の比を計算をし、前記特性値の比が各
特性値毎に定めた一定範囲を超えた場合に、前記現在の
画像をシーンチェンジ画像と判定し、前記シーンチェン
ジ画像と同じピクチャタイプ(Iピクチャ、Pピクチ
ャ、Bピクチャ)の次の画像をシーンチェンジ画像の次
の画像と定めることを特徴とする動画像符号化方法を提
供するものである。
According to a first aspect of the present invention, there is provided an image processing apparatus comprising a motion compensation predicting means, an orthogonal transform means, a quantizing means, and a variable length coding means. A moving image encoding apparatus for detecting and encoding a generated code amount of each image of the input moving image; a unit for detecting an average quantization scale of each image of the input moving image; Means for detecting at least an encoded image characteristic of the input moving image out of an image and a motion-compensated predicted image generated by the motion-compensated predicted image, and an encoded image characteristic detected by the means for detecting the encoded image characteristic Means for detecting scene change image information from
From the generated code amount detected by the means for detecting the generated code amount, from the average quantization scale detected by the means for detecting the average quantization scale, the actual screen complexity of a past image is calculated, and the calculated From the actual screen complexity of the past image, the coded image characteristic detected by the coded image characteristic detecting means, and the scene change image information detected by the scene change image information detecting means, the current image is obtained. Means for calculating the estimated screen complexity of the image, and means for calculating the estimated screen complexity of the past image calculated by the means for calculating the actually measured screen complexity, or the means for calculating the estimated screen complexity of the current image. The estimated screen complexity of the current image, the generated code amount detected by the means for detecting the generated code amount, and the average quantization scale. From the average quantization scale detected by the means for detecting the coded image characteristic and the coded image characteristic detected by the means for detecting the coded image characteristic. Means for determining a quantization scale of the image to be coded next, and a moving picture coding apparatus according to claim 2, wherein In the encoding apparatus, the means for calculating the estimated screen complexity of the current image includes: a coded image characteristic of the detected current image; and a picture type (I picture, P picture
Picture, B-picture) by multiplying the actually measured screen complexity in the immediately preceding image by a predetermined function having a ratio to the coded image characteristic detected in the image immediately before the previous image. The present invention provides a moving picture coding apparatus for calculating the scene change picture information in which the current picture is the detected scene change picture information in the moving picture coding apparatus according to claim 1. When it is determined that the current image is a scene change image or a next image after the scene change image, a predetermined function having a factor of the ratio with the encoded image characteristic is changed, and the current image is changed to a next image of the scene change image. If the image is determined to be an image, the immediately preceding image of the same picture type (I picture, P picture, B picture) as the current image is replaced with the same picture type as the current image. A moving image encoding apparatus characterized in that the moving image is changed to an image before a scene change image of the moving image. The invention according to claim 4 is the moving image encoding apparatus according to claim 1, wherein The screen complexity used in the means for determining the assigned code amount of the image to be encoded is determined at least as the current image is a scene change image or the next image of the scene change image according to the detected scene change image information. In this case, the present invention provides a moving picture coding apparatus characterized by using the estimated screen complexity of the current picture, and the invention of claim 5 is described in any one of claims 1 to 4. Means for determining an assigned code amount of an image to be encoded next from the generated code amount and the actually measured screen complexity or the estimated screen complexity. The ratio of the estimated picture complexity to the average value in a certain period of time,
Providing a moving image encoding apparatus characterized by determining the allocated code amount by multiplying the average allocated code amount,
According to a sixth aspect of the present invention, in the moving image encoding apparatus according to any one of the first to fifth aspects, the means for detecting an encoded image characteristic of the input moving image or the motion-compensated predicted image includes the input image characteristic. A picture type (I-picture, P-picture, and P-picture), comprising: means for detecting image characteristics of a moving image; means for detecting image characteristics of an error image of a motion-compensated prediction image; and means for detecting a motion vector characteristic in motion-compensated prediction. (B picture) and a constant for each prediction mode are multiplied by the respective characteristic values of the detected image characteristics of the input moving image, the image characteristics of the error image of the motion compensated prediction image, and the motion vector characteristics in the motion compensation prediction. Means for determining the coded image characteristic and detecting the scene change image information, the current image and the same picture Image characteristics of the input moving image detected by the means for detecting the coded image characteristics and image characteristics of an error image of the motion-compensated predicted image between images immediately before the current type (I picture, P picture, B picture). ,
And calculate the ratio of the respective characteristic values of the motion vector characteristics in the motion compensation prediction, if the ratio of the characteristic values exceeds a certain range determined for each characteristic value, the current image and the scene change image Determined and the same picture type as the scene change image (I picture, P picture, B picture)
A moving picture coding apparatus characterized in that a next picture of a moving picture is determined as a next picture of a scene change picture. And a moving image encoding method for encoding having a variable length encoding step, wherein a step of detecting a generated code amount of each image of the input moving image,
Detecting an average quantization scale of each image of the input moving image; and detecting at least an encoded image characteristic of the input moving image among the input moving image and the motion-compensated predicted image generated by the motion-compensated prediction step. , Detecting scene change image information from the coded image characteristics detected by the step of detecting the coded image characteristics, generating code amounts detected by detecting the generated code amounts, and averaging the generated code amounts. From the average quantization scale detected by the step of detecting the quantization scale, the actually measured screen complexity of the past image is calculated, and the actually measured screen complexity of the calculated past image and the encoded image characteristic are detected. Detecting the encoded image characteristics detected in the step and the scene change image information. Calculating the estimated screen complexity of the current image from the scene change image information detected by the method, and the measured screen complexity of the past image calculated by the step of calculating the measured screen complexity, or the current image. The estimated screen complexity of the current image calculated by the step of calculating the estimated screen complexity, the generated code amount detected by the step of detecting the generated code amount, and the average quantization scale are detected by the step of detecting the average quantization scale. The average quantization scale obtained, and the allocated code amount of the image to be next encoded is determined from the encoded image characteristics detected by the step of detecting the encoded image characteristics, and the next encoding is performed based on the allocated code amount. Determining a quantization scale of an image to be encoded. In the moving picture coding method according to claim 7, the step of calculating the estimated screen complexity of the current image includes the step of calculating the coded image characteristic of the detected current image and the same picture type ( (I picture, P picture, B picture) The estimation is performed by multiplying the measured screen complexity in the immediately preceding image by a predetermined function having a ratio to the coded image characteristic detected in the image immediately before the previous image. A moving picture coding method comprising calculating screen complexity is provided. According to a ninth aspect of the present invention, in the moving picture coding method according to the seventh aspect, the current image is detected. If it is determined by the scene change image information that the image is a scene change image or an image next to the scene change image, a predetermined function having a ratio to the encoded image characteristic as a factor is changed, and If the current image is determined to be the next image of the scene change image, the image immediately before the same picture type (I picture, P picture, B picture) as the current image is replaced with the same picture type as the current image. A moving picture coding method characterized by changing to a picture before a scene change picture of the moving picture coding method according to the present invention. The screen complexity used in the step of determining the allocated code amount of the image to be converted is at least that the current image is determined to be a scene change image or an image next to the scene change image by the detected scene change image information. In such a case, the present invention provides a moving picture coding method characterized by using the estimated screen complexity of the current picture. 11. The moving image encoding method according to claim 10, wherein an allocated code amount of an image to be encoded next is determined from the generated code amount and the measured screen complexity or the estimated screen complexity. A moving image coding method, wherein a ratio of the estimated screen complexity to an average value of the measured screen complexity for a certain period is multiplied by an average allocated code amount to determine the allocated code amount. According to a twelfth aspect of the present invention, in the moving image encoding method according to any one of the seventh to eleventh aspects, the step of detecting an encoded image characteristic of the input moving image or the motion-compensated predicted image includes: Detecting an image characteristic of the input moving image, detecting an image characteristic of an error image of the motion-compensated prediction image, and detecting a motion vector characteristic in the motion-compensated prediction. It is composed of that step, picture type (I picture, P
Picture, B picture) and prediction mode.
The coded image is obtained by multiplying each of the detected image characteristics of the input moving image, the image characteristics of the error image of the motion-compensated prediction image, and the respective characteristic values of the motion vector characteristics in the motion-compensated prediction, and adding the product. Determining a characteristic and detecting the scene change image information may include determining the current image and the same picture type (I picture,
(P picture, B picture), the image characteristics of the input moving image detected by the step of detecting the encoded image characteristics, the image characteristics of the error image of the motion compensated prediction image, and the motion compensation prediction Calculate the ratio of the respective characteristic values of the motion vector characteristics in, when the ratio of the characteristic values exceeds a certain range determined for each characteristic value, determine the current image as a scene change image, It is an object of the present invention to provide a moving picture coding method characterized in that the next picture of the same picture type (I picture, P picture, B picture) as a scene change picture is determined as the next picture of the scene change picture.

【0019】よつて、本発明では、MPEG2等の動き補償
予測、直交変換、量子化、可変長符号化の各手段を備え
た動画像符号化装置において、各画像の発生符号量と平
均量子化スケールを検出し、所定区間内の割当符号量を
その間の各画像に配分するために、各画像の発生符号量
と平均量子化スケールの積に対して所定の操作を施して
既に符号化した画像の実測画面複雑度を求める。それと
同時に、各画像の符号化画像特性(アクティビティ)を検
出し、同じピクチャタイプの直前の画像との符号化画像
特性の比が算出されると共に、この符号化画像特性から
シーンチェンジ検出を行う。
Therefore, according to the present invention, in a moving picture coding apparatus provided with means for motion compensation prediction such as MPEG2, orthogonal transformation, quantization and variable length coding, the generated code amount of each picture and the average quantization In order to detect the scale and distribute the allocated code amount in a predetermined section to each image in between, a predetermined operation is performed on the product of the generated code amount of each image and the average quantization scale, and the already coded image is Obtain the actual measurement screen complexity. At the same time, the coded image characteristics (activity) of each image are detected, the ratio of the coded image characteristics to the immediately preceding image of the same picture type is calculated, and a scene change is detected from the coded image characteristics.

【0020】各画像の符号化画像特性としては入力画像
のアクティビティの他に、P及びBピクチャについては
動き補償予測における誤差画像または動きベクトル検出
における符号化画像と参照画像の差分画像、及び動きベ
クトルのアクティビティを用い、その中から1つあるい
は複数を組合せて使用する。符号化画像特性の各要素の
値が所定の範囲を超えた場合、その画像をシーンチェン
ジ画像と判定する。
The coded image characteristics of each image include, in addition to the activity of the input image, an error image in motion compensation prediction or a difference image between an encoded image and a reference image in motion vector detection, and a motion vector for P and B pictures. And one or more of them are used in combination. If the value of each element of the encoded image characteristic exceeds a predetermined range, the image is determined to be a scene change image.

【0021】各ピクチャタイプにおいてシーンチェンジ
画像と判定された画像では、前記した符号化画像特性の
比を因数とする所定の関数と直前の画像の実測画面複雑
度から、推定画面複雑度が算出され、推定画面複雑度が
実測画面複雑度よりも大きな値となるため、シーンチェ
ンジ画像により多くの符号量を割当てることが出来るよ
うにする。
For an image determined to be a scene change image for each picture type, an estimated screen complexity is calculated from a predetermined function having the above-described ratio of the coded image characteristics as a factor and the actually measured screen complexity of the immediately preceding image. Since the estimated screen complexity is larger than the actually measured screen complexity, a larger code amount can be allocated to the scene change image.

【0022】逆に直前の画像がシーンチェンジ画像であ
った場合は、実測画面複雑度を用いるのではなく、直前
の画像の符号量割当の際に算出する実測画面複雑度、す
なわちシーンチェンジ前の画像の画面複雑度に対し、シ
ーンチェンジ前の画像とこれから符号化する画像の符号
化画像特性の比を因数とする所定の関数とから、これか
ら符号化する画像の画面複雑度の推定を行うことによ
り、シーンチェンジ画像の次の画像に不必要に多くの符
号量を割当てることが防止される。
Conversely, if the immediately preceding image is a scene change image, the actually measured screen complexity calculated when assigning the code amount of the immediately preceding image, that is, the complexity before the scene change, is used instead of using the actually measured screen complexity. Estimating the screen complexity of an image to be encoded from the image before the scene change and a predetermined function whose factor is the ratio of the encoded image characteristic of the image to be encoded to the image to be encoded. Accordingly, it is possible to prevent an unnecessarily large code amount from being allocated to the image next to the scene change image.

【0023】また、1パス方式の可変ビットレート制御
の場合は、符号化画像特性の比と直前の画像の実測画面
複雑度から、これから符号化する画像の推定画面複雑度
が算出されるが、各ピクチャタイプにおいてシーンチェ
ンジ画像と判定された画像では、前記した符号化画像特
性の比を因数とする所定の関数と直前の画像の実測画面
複雑度から推定画面複雑度が算出され、推定画面複雑度
が通常の場合より加算される。
In the case of one-pass variable bit rate control, the estimated screen complexity of the image to be encoded is calculated from the ratio of the encoded image characteristics and the actually measured image complexity of the immediately preceding image. For an image determined to be a scene change image in each picture type, an estimated screen complexity is calculated from a predetermined function having the above-described ratio of encoded image characteristics as a factor and the actual measured screen complexity of the immediately preceding image. The degree is added more than usual.

【0024】逆に直前の画像がシーンチェンジ画像であ
った場合は実測画面複雑度の代りに、直前の画像の符号
量割当の際に算出する、シーンチェンジ前の画像の実測
画面複雑度、またはシーンチェンジ画像における加算前
の推定画面複雑度を用いて、符号化画像の画面複雑度の
推定を行うことにより、シーンチェンジ画像の次の画像
における画面複雑度の値を適正化出来る。
Conversely, when the immediately preceding image is a scene change image, instead of the actually measured screen complexity, the actually measured screen complexity of the image before the scene change is calculated when assigning the code amount of the immediately preceding image, or By estimating the screen complexity of the encoded image using the estimated screen complexity before addition in the scene change image, the value of the screen complexity in the image following the scene change image can be optimized.

【0025】さらに1パス方式の可変ビットレート制御
では、算出された推定画面複雑度と一定区間内のピクチ
ャタイプ別平均画面複雑度の割合を目標ビットレートに
よる所定区間の符号量割当に反映させることにより、シ
ーンチェンジに対応した所定区間の符号量割当が可能に
なる。
In the variable bit rate control of the one-pass method, the calculated estimated screen complexity and the ratio of the average screen complexity for each picture type in a certain section are reflected in the code amount allocation in a predetermined section based on the target bit rate. Accordingly, it is possible to allocate a code amount in a predetermined section corresponding to a scene change.

【0026】[0026]

【発明の実施の形態】( 第1の実施例 )本発明の動
画像符号化装置及びその方法の第1の実施例について、
図と共に以下に説明する。図1に示されている本発明の
動画像符号化装置の第1の実施例は、減算器11、DC
T器12、量子化器13、符号量制御器14、可変長符
号化器15、バッファ16、 逆量子化器17、IDC
T器18、動き補償予測器19、加算器20、フレーム
メモリ21、平均量子化スケール検出器22、発生符号
量検出器23、画面複雑度算出器24、画面複雑度メモ
リ24M、画像特性検出器25、及びシーンチェンジ検
出器28より構成されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS (First Embodiment) A first embodiment of a moving picture coding apparatus and method according to the present invention will be described.
This will be described below with reference to the drawings. The first embodiment of the moving picture coding apparatus of the present invention shown in FIG.
T unit 12, quantizer 13, code amount controller 14, variable length encoder 15, buffer 16, inverse quantizer 17, IDC
T unit 18, motion compensation predictor 19, adder 20, frame memory 21, average quantization scale detector 22, generated code amount detector 23, screen complexity calculator 24, screen complexity memory 24M, image characteristic detector 25, and a scene change detector 28.

【0027】第1の実施例は本発明を固定ビットレート
符号化に適用した場合である。なお、以下の説明におい
て、iはIピクチャ、pはPピクチャ、bはBピクチャ
と対応している。原動画像は画像ブロック分割器(図示
されていない)によって、予めマクロブロック単位に分
割されているものとする。分割された原動画像は、Iピ
クチャについては動き補償予測が行われず、原動画像ブ
ロックそのものが減算器11を介してDCT器12に送ら
れ、DCTされた後に量子化器13で符号量制御器14か
ら送られる量子化スケールによって量子化される。
The first embodiment is a case where the present invention is applied to constant bit rate coding. In the following description, i corresponds to an I picture, p corresponds to a P picture, and b corresponds to a B picture. It is assumed that the original image has been previously divided into macroblock units by an image block divider (not shown). With respect to the divided source image, the motion compensation prediction is not performed for the I picture, and the source image block itself is sent to the DCT unit 12 via the subtractor 11, and after the DCT, the quantizer 13 controls the code amount controller 14. Quantized by the quantization scale sent from.

【0028】その量子化された信号は、可変長符号化器
15で符号に変換されて、次のバッファ16で調整され
た後に符号が出力される。一方、量子化器13の出力係
数は逆量子化器17、IDCT器18で局部復号されて、動
き補償予測器19の出力が加算器20で加算されること
なく、ブロック毎にフレームメモリ21に貯えられる。
The quantized signal is converted into a code by the variable-length encoder 15 and adjusted by the next buffer 16 to output the code. On the other hand, the output coefficient of the quantizer 13 is locally decoded by the inverse quantizer 17 and the IDCT unit 18, and the output of the motion compensation predictor 19 is added to the frame memory 21 for each block without being added by the adder 20. Can be stored.

【0029】P及びBピクチャについては、分割された原
動画像とフレームメモリ21に貯えられた所定の局部復
号画像ブロックが動き補償予測器19に供給され、ここ
で動きベクトル検出及び動き補償が行われて、予測画像
ブロックが減算器11で原画像ブロックとの間で画素間
差分が取られ、差分値である誤差画像ブロックがDCT器
13に供給される。
As for the P and B pictures, the divided original moving picture and predetermined locally decoded picture blocks stored in the frame memory 21 are supplied to the motion compensation predictor 19, where the motion vector detection and motion compensation are performed. Then, the pixel difference between the predicted image block and the original image block is calculated by the subtractor 11, and the error image block as the difference value is supplied to the DCT unit 13.

【0030】この後はIピクチャと同様にして、DCT器1
2で差分値がDCTされ、量子化器13で符号量制御器1
4から送られる量子化スケールによって量子化された後
に、可変長符号化器15で符号に変換されて、次のバッ
ファ16で調整された後に符号が出力される。一方、量
子化器13の出力係数は、逆量子化器17とIDCT器18
とで局部復号された後に前記予測画像ブロックが加算器
20によって画素毎に加算され、ブロック毎にフレーム
メモリ21に貯えられる。
Thereafter, the DCT unit 1 operates similarly to the I picture.
2, the difference value is subjected to DCT, and the quantizer 13 controls the code amount controller 1.
After being quantized by the quantization scale sent from 4, it is converted into a code by the variable-length encoder 15, adjusted by the next buffer 16, and output. On the other hand, the output coefficient of the quantizer 13 is the inverse quantizer 17 and the IDCT
After the local decoding in (1) and (2), the predicted image block is added for each pixel by the adder 20 and stored in the frame memory 21 for each block.

【0031】また、各ピクチャについて、量子化器13
からマクロブロック毎の量子化スケールが平均量子化ス
ケール検出器22に送られ、そこで1フレーム分の量子
化スケールが加算され、1フレームの平均量子化スケー
ルが算出される。一方、バッファ16において発生符号
量が監視され、その値が発生符号量検出器23に供給さ
れる。この発生符号量検出器23において、発生符号量
がフレーム単位に加算され、1フレームの発生符号量が
検出される。
For each picture, the quantizer 13
Is sent to the average quantization scale detector 22, where the quantization scale for one frame is added, and the average quantization scale for one frame is calculated. On the other hand, the generated code amount is monitored in the buffer 16, and the value is supplied to the generated code amount detector 23. The generated code amount detector 23 adds the generated code amount for each frame, and detects the generated code amount for one frame.

【0032】フレーム毎について検出された平均量子化
スケール、及び発生符号量は各々画面複雑度算出器24
にフレーム毎に供給される。画面複雑度算出器24で
は、供給された各フレームの平均量子化スケールと発生
符号量が乗じられた後に所定の操作を施して、MPEG2Te
st Model 5におけるComplexityに相当する各フレームの
実測画面複雑度Xi-p, Xp-p, Xb-pが求められる。
The average quantization scale and generated code amount detected for each frame are respectively calculated by the screen complexity calculator 24.
Is supplied for each frame. The screen complexity calculator 24 performs a predetermined operation after multiplying the average quantization scale of each supplied frame by the generated code amount, and performs MPEG2Te
The measured screen complexity Xi-p, Xp-p, Xb-p of each frame corresponding to Complexity in st Model 5 is obtained.

【0033】一方、画像特性検出器25では、入力時に
原画像を分割した原動画像が供給され、原動画像の各フ
レームについてマクロブロック単位に画像特性を示すパ
ラメータであるアクティビティが検出され、フレーム単
位に加算されて、その結果が1フレーム毎に画面複雑度
算出器24及びシーンチェンジ検出器28に供給され
る。
On the other hand, the image characteristic detector 25 supplies a moving image obtained by dividing the original image at the time of input, detects an activity which is a parameter indicating image characteristics for each frame of the moving image in units of macroblocks, and for each frame. The result is added to the screen complexity calculator 24 and the scene change detector 28 for each frame.

【0034】ここで、画像特性検出器25で画像特性を
検出する動作は、実際の符号化動作に先行して検出して
いる。画像特性を示すパラメータとしては輝度値の分
散、画素間差分値などが考えられるが、画像特性を示す
ものであれば、その他のパラメータでも当然よい。
Here, the operation of detecting the image characteristics by the image characteristic detector 25 is performed prior to the actual encoding operation. As parameters indicating the image characteristics, variance of luminance values, difference values between pixels, and the like can be considered, but other parameters may be used as long as they indicate image characteristics.

【0035】シーンチェンジ検出器28では、これから
符号化する現在の画像のアクティビティACTi, ACTp, AC
Tbと、直前に符号化した同じピクチャタイプの画像のア
クティビティACTi-p, ACTp-p, ACTb-pの比率(ACTi / AC
Ti-p),(ACTp / ACTp-p),(ACTb / ACTb-p)が計算され
る。
In the scene change detector 28, the activities ACTi, ACTp, AC of the current image to be encoded are
Tb and the ratio of the activities ACTi-p, ACTp-p, and ACTb-p of the previously encoded image of the same picture type (ACTi / AC
Ti-p), (ACTp / ACTp-p), and (ACTb / ACTb-p) are calculated.

【0036】そして、この計算された比率(現在のアク
ティビティ/直前のアクティビティ)が一定範囲を超え
た時、例えば、 (比率)<Amin または (比率)>Amax ( 0<Ami
n<1, Amax>1 ) の場合、これら2つの画像の間でシーンチェンジが起こ
ったとシーンチェンジ検出器28は判定し、このフレー
ムの位置情報を画面複雑度算出器24に送る。シーンチ
ェンジが起こったと判定された時、これから符号化する
現在の画像を以後、シーンチェンジ画像と呼ぶ。
When the calculated ratio (current activity / previous activity) exceeds a certain range, for example, (Ratio) <Amin or (Ratio)> Amax (0 <Ami
In the case of n <1, Amax> 1), the scene change detector 28 determines that a scene change has occurred between these two images, and sends the position information of this frame to the screen complexity calculator 24. When it is determined that a scene change has occurred, the current image to be encoded is hereinafter referred to as a scene change image.

【0037】シーンチェンジが発生したというフレーム
の位置情報が画面複雑度算出器24に送られると、画面
複雑度算出器24では、P及びBピクチャについて、シ
ーンチェンジ画像における発生符号量の増加を補うため
の画面複雑度の推定(割増し)が行われる。
When the position information of the frame indicating that the scene change has occurred is sent to the screen complexity calculator 24, the screen complexity calculator 24 compensates for the increase in the amount of codes generated in the scene change image for the P and B pictures. (Compensation) of the screen complexity is performed.

【0038】ここで、先に求めた実測画面複雑度は、そ
の次の同じピクチャタイプの画面複雑度の推定に使用す
るため、画面複雑度メモリ24Mに貯えられる。シーン
チェンジ画像における推定画面複雑度Xp, Xbは次式(5)
〜(8)の通りになる。なお、f1〜f4はアクティビティの
比率(ACTp / ACTp-p),(ACTb / ACTb-p)を因数とする所
定の関数である。前記の所定の関数の一実施例として、
f1〜f4=(ACTk / ACTk-p)・Ck1+ Ck2(但し k=p or
b)が適当であるが、これに限定されるものではない。
Here, the measured screen complexity previously obtained is stored in the screen complexity memory 24M for use in estimating the screen complexity of the next same picture type. The estimated screen complexity Xp, Xb in the scene change image is given by the following equation (5)
~ (8) Note that f1 to f4 are predetermined functions having factors of the activity ratio (ACTp / ACTp-p) and (ACTb / ACTb-p). As an example of the predetermined function,
f1 to f4 = (ACTk / ACTk-p) · Ck1 + Ck2 (where k = p or
b) is suitable, but not limiting.

【0039】 (Pピクチャ) (ACTp / ACTp-p)>Amaxの場合 推定画面複雑度 Xp=Xp-p・f1 (5) (ACTp / ACTp-p)<Aminの場合 推定画面複雑度 Xp=Xp-p・f2 (6) (Bピクチャ) (ACTb / ACTb-p)>Amaxの場合 推定画面複雑度 Xb=Xb-p・f3 (7) (ACTb / ACTb-p)<Aminの場合 推定画面複雑度 Xb=Xb-p・f4 (8)(P picture) When (ACTp / ACTp-p)> Amax Estimated screen complexity Xp = Xp-p · f1 (5) When (ACTp / ACTp-p) <Amin Estimated screen complexity Xp = Xp -p · f2 (6) (B picture) When (ACTb / ACTb-p)> Amax Estimated screen complexity Xb = Xb-p · f3 (7) When (ACTb / ACTb-p) <Amin Estimated screen complexity Degree Xb = Xb-p ・ f4 (8)

【0040】例えば、Amax=1.5, Amin=0.67, f1=(AC
Tp / ACTp-p)・2, f2=1,f3=(ACTb / ACTb-p)・2, f4
=1と設定することにより、アクティビティが増加する
場合はアクティビティの比率の2倍の値を推定画面複雑
度として与え、アクティビティが減少する場合はシーン
チェンジ前と同程度の画面複雑度を推定画面複雑度とし
て与えることにより、シーンチェンジによってP及びB
ピクチャでイントラマクロブロックの増大による発生符
号量の増加を補うことが出来る。
For example, Amax = 1.5, Amin = 0.67, f1 = (AC
Tp / ACTp-p) ・ 2, f2 = 1, f3 = (ACTb / ACTb-p) ・ 2, f4
By setting = 1, if the activity increases, a value twice the activity ratio is given as the estimated screen complexity, and if the activity decreases, the same screen complexity as before the scene change is estimated. P and B by scene change
An increase in the amount of generated code due to an increase in intra macroblocks can be compensated for in the picture.

【0041】また、シーンチェンジ画像の次の同じピク
チャタイプのPまたはBピクチャについては、シーンチ
ェンジ画像の増加した発生符号量から計算される画面複
雑度Xp-p, Xb-pを基準として画面複雑度を計算すると、
必要以上に大きな値となってしまう。
For the P or B picture of the same picture type following the scene change image, the screen complexity is calculated based on the screen complexity Xp-p, Xb-p calculated from the increased generated code amount of the scene change image. When calculating the degree,
The value becomes larger than necessary.

【0042】そこで、Xp-p, Xb-pの代りに、シーンチェ
ンジ画像の時に使用した、(画面複雑度メモリ24Mに貯
えられた)実測画面複雑度Xp-pold, Xb-poldと、その実
測画面複雑度の対象となった画像のアクティビティACTp
-pold, ACTb-poldと、これから符号化する現在の画像の
アクティビティACTp, ACTbから、(9)(10)式によって画
面複雑度を推定することにより、画面複雑度の適正化が
図られる。
Therefore, instead of Xp-p and Xb-p, actual screen complexity Xp-pold and Xb-pold (stored in screen complexity memory 24M) used for the scene change image, Activity ACTp of the image targeted for screen complexity
-pold, ACTb The screen complexity is optimized by estimating the screen complexity from Equations (9) and (10) from the activity ACTp, ACTb of the current image to be coded, and the current image activity ACTp, ACTb.

【0043】 (Pピクチャ) Xp=Xp-pold・(ACTp / ACTp-pold) (9) (Bピクチャ) Xb=Xb-pold・(ACTb / ACTb-pold) (10) なお、画面複雑度メモリ24Mには、シーンチェンジ画
像における実測画面複雑度の他に、各ピクチャタイプに
おける直前数フレームの画像のアクティビティが貯えら
れる。
(P picture) Xp = Xp-pold · (ACTp / ACTp-pold) (9) (B picture) Xb = Xb-pold · (ACTb / ACTb-pold) (10) The screen complexity memory 24M Stores the activity of the image of the last several frames of each picture type, in addition to the actually measured screen complexity in the scene change image.

【0044】第1の実施例においては、P、Bピクチャ
のシーンチェンジ画像、シーンチェンジ画像の次の画像
では推定画面複雑度、それ以外の通常のP、Bピクチャ
及びIピクチャについては、実測画面複雑度をMPEG2Te
st Model5の(2)〜(4)式のXi, Xp, Xbに代入して、これ
から符号化する画像の目標割当符号量Ti, Tp, Tbを決定
することにより、シーンチェンジに対応した符号量割当
を行うことが出来る。この目標割当符号量と、バッファ
16で検出される各マクロブロックの発生符号量をもと
に、MPEG2Test Model5の方法を用いて各マクロブロッ
クの量子化スケールを決定する。
In the first embodiment, the scene change image of the P and B pictures, the estimated screen complexity for the image following the scene change image, and the actual measurement screen for the other normal P, B and I pictures MPEG2Te complexity
By substituting into Xi, Xp, and Xb of equations (2) to (4) of st Model 5 and determining the target allocation code amounts Ti, Tp, and Tb of the image to be coded, the code amount corresponding to the scene change is obtained. Assignments can be made. Based on the target allocated code amount and the generated code amount of each macroblock detected by the buffer 16, the quantization scale of each macroblock is determined using the method of MPEG2 Test Model 5.

【0045】なお、画像特性検出器25からは符号量制
御器14へも各マクロブロックのアクティビティが送ら
れ、MPEG2Test Model5におけるアクティビティに基づ
いて各マクロブロックの量子化スケールを変更する適応
量子化制御に使用されるが、この適応量子化制御は行わ
なくてもよい。
The activity of each macroblock is also sent from the image characteristic detector 25 to the code amount controller 14, and the adaptive quantization control for changing the quantization scale of each macroblock based on the activity in the MPEG2 Test Model 5 is performed. Although used, this adaptive quantization control need not be performed.

【0046】符号量制御器14から出力される各マクロ
ブロックの量子化スケールが量子化器13に送られ、現
在の画像(DCT後の分割された原動画像または動き補償予
測の誤差画像ブロック)がこの量子化スケールで量子化
器13で量子化され、可変長符号化器15で可変長符号
化されて、次のバッファ16で調整された後に符号が出
力される。量子化器13のマクロブロック毎の量子化ス
ケール、バッファ16で監視される発生符号量がそれぞ
れ、平均量子化スケール検出器22、発生符号量検出器
23に送られ、次のピクチャの符号量制御に使用され
る。
The quantization scale of each macroblock output from the code amount controller 14 is sent to the quantizer 13, and the current image (a divided original image after DCT or an error image block for motion compensation prediction) is obtained. After being quantized by the quantizer 13 at this quantization scale, variable-length encoded by the variable-length encoder 15 and adjusted by the next buffer 16, the code is output. The quantization scale for each macroblock of the quantizer 13 and the generated code amount monitored by the buffer 16 are sent to the average quantization scale detector 22 and the generated code amount detector 23, respectively, and the code amount control of the next picture is performed. Used for

【0047】なお、本実施例ではMPEG2Test Model5に
本発明を適用した例であるが、本発明はそれに限らず、
他のレート制御にも適用可能である。例えばアクティビ
ティがACTk-p(k=i,p,b)である同じピクチャタイプの過
去の画像の発生符号量から、次に符号化する画像の割当
符号量Skが定まる場合、アクティビティがACTkである
その画像がシーンチェンジ画像だとすると、補正割当符
号量Sk'は次の(11)式の通りになる。 Sk' = Sk・fk(ACTk / ACTk-p) (11) 但し、 k=i,p,b fkは(ACTk / ACTk-p)を因数とする関
Although the present embodiment is an example in which the present invention is applied to the MPEG2 Test Model 5, the present invention is not limited to this.
It is applicable to other rate controls. For example, if the allocated code amount Sk of the next image to be encoded is determined from the generated code amount of a past image of the same picture type whose activity is ACTk-p (k = i, p, b), the activity is ACTk. Assuming that the image is a scene change image, the corrected allocated code amount Sk 'is expressed by the following equation (11). Sk ′ = Sk · fk (ACTk / ACTk-p) (11) where k = i, p, b fk is a function with (ACTk / ACTk-p) as a factor

【0048】( 第2の実施例 )つぎに、本発明の動
画像符号化装置の第2の実施例について、図2と共に以
下に説明する。第2の実施例は本発明を1パス方式の可
変ビットレート符号化に適用した場合であり、第1の実
施例と比較して、平均画面複雑度算出器29が追加さ
れ、画面複雑度算出器24と符号量制御器14の構成及
びその動作のみが異なるので、それ以外の部分について
の説明は省略する。
(Second Embodiment) Next, a second embodiment of the moving picture coding apparatus according to the present invention will be described below with reference to FIG. The second embodiment is a case where the present invention is applied to one-pass variable bit rate encoding. Compared with the first embodiment, an average screen complexity calculator 29 is added, and the screen complexity calculation is performed. Since only the configuration and operation of the code amount controller 14 and the code amount controller 14 are different, the description of the other parts is omitted.

【0049】第1の実施例と同様に、画面複雑度算出器
24には各フレームの平均量子化スケールと発生符号
量、シーンチェンジが発生したというフレームの位置情
報、及び各フレームの画像特性、すなわちアクティビテ
ィが供給される。画面複雑度算出器24では、供給され
た各フレームの平均量子化スケールと発生符号量が乗じ
られた後に乗算結果に所定の変換が施されて、それを基
準として各フレームの実測画面複雑度が求められる。
As in the first embodiment, the screen complexity calculator 24 calculates the average quantization scale and generated code amount of each frame, the position information of the frame at which a scene change has occurred, the image characteristics of each frame, and the like. That is, an activity is supplied. The screen complexity calculator 24 multiplies the average quantization scale of each supplied frame by the generated code amount and then performs a predetermined conversion on the multiplication result. Based on this, the measured screen complexity of each frame is calculated. Desired.

【0050】実測画面複雑度は平均画面複雑度算出器に
送られ、ここで符号化ピクチャタイプ別に一定期間内の
値が加算された後に、その期間内の同じピクチャタイプ
のフレーム数で除算されて、I、P、B各ピクチャタイ
プの平均画面複雑度 Xi-ave(Iピクチャ)、Xp-ave(Pピ
クチャ)、Xb-ave(Bピクチャ) が算出される。
The measured screen complexity is sent to the average screen complexity calculator, where the values within a certain period are added for each coded picture type, and then divided by the number of frames of the same picture type within that period. , I, P, and B picture types, the average screen complexity Xi-ave (I picture), Xp-ave (P picture), and Xb-ave (B picture) are calculated.

【0051】ここで言う一定期間内は、符号化の終了し
たばかりの画像から時間的に前に予め定めるフレーム
数、例えば15フレームとか、300フレームといった
一定のフレーム数の場合もあり、符号化開始フレームか
ら符号化の終了したばかりの画像までのように、順次フ
レーム数が増加する場合もある。なお、前者の一定フレ
ーム数の場合でも、符号化したフレーム数が定めた一定
期間を満たさない場合は後者と同様に順次フレーム数が
増加していくことになる。
In the above-mentioned fixed period, there may be a fixed number of frames, for example, 15 frames or 300 frames, which are predetermined in time before the picture for which encoding has just been completed. In some cases, such as from a frame to an image for which encoding has just finished, the number of frames is sequentially increased. Note that, even in the case of the former fixed number of frames, if the number of encoded frames does not satisfy the predetermined certain period, the number of frames is sequentially increased similarly to the latter.

【0052】つぎに画面複雑度算出器24では、求めた
実測画面複雑度と平均画面複雑度算出器29で求めた平
均画面複雑度、及びアクティビティから画面複雑度の推
定を行う。これから符号化する現在の画像の画面複雑度
Xi, Xp, Xb は、現在の画像のアクティビティACTi, AC
Tp, ACTb、直前に符号化した同じピクチャタイプの画像
の画面複雑度Xi-p, Xp-p, Xb-p、直前に符号化した同じ
ピクチャタイプの画像のアクティビティACTi-p, ACTp-
p, ACTb-pより、次式(12)(13)(14)で推定出来る。
Next, the screen complexity calculator 24 estimates the screen complexity from the measured screen complexity calculated, the average screen complexity calculated by the average screen complexity calculator 29, and the activity. Screen complexity of the current image to be encoded
Xi, Xp, Xb are the current image activities ACTi, AC
Tp, ACTb, screen complexity Xi-p, Xp-p, Xb-p of the previously coded image of the same picture type, activity ACTi-p, ACTp- of the previously coded image of the same picture type
From p and ACTb-p, it can be estimated by the following equations (12), (13), and (14).

【0053】 (Iピクチャ) 現在の画像の画面複雑度Xi=Xi-p・(ACTi / ACTi-p) (12) (Pピクチャ) 現在の画像の画面複雑度Xp=Xp-p・(ACTp / ACTp-p) (13) (Bピクチャ) 現在の画像の画面複雑度Xb=Xb-p・(ACTb / ACTb-p) (14) (I picture) Screen complexity of current image Xi = Xi-p · (ACTi / ACTi-p) (12) (P picture) Screen complexity of current image Xp = Xp-p · (ACTp / (ACTp-p) (13) (B picture) Screen complexity of the current image Xb = Xb-p · (ACTb / ACTb-p) (14)

【0054】なお、初期状態において、同じピクチャタ
イプの符号化の終了したフレームが存在しない場合は予
め幾つかの画像で各ピクチャタイプの画像の画面複雑度
とアクティビティを求めておき、それを平均的な動画像
の発生頻度に合わせて統計的に平均してそれを初期値と
すればよい。
In the initial state, if there is no frame for which the same picture type has been coded, the screen complexity and activity of each picture type image are obtained in advance for some images, and the average is calculated. The average value may be statistically averaged in accordance with the frequency of occurrence of a moving image, and may be used as an initial value.

【0055】一方、これから符号化する現在の画像がシ
ーンチェンジ画像の場合、より多くの符号量を割当てる
ため、P及びBピクチャでは画面複雑度算出器24にお
いて推定画面複雑度の再計算が行われる。ここで、直前
に符号化した同じピクチャタイプの画像の実測画面複雑
度は、その次の同じピクチャタイプの画面複雑度の推定
に使用するため、画面複雑度メモリ24Mに貯えられ
る。
On the other hand, if the current image to be encoded is a scene change image, the screen complexity calculator 24 recalculates the estimated screen complexity for P and B pictures in order to allocate a larger amount of code. . Here, the actually measured screen complexity of the image of the same picture type encoded immediately before is stored in the screen complexity memory 24M for use in estimating the screen complexity of the next same picture type.

【0056】シーンチェンジ画像における推定画面複雑
度Xp, Xbは第1の実施例の(5)〜(8)式と同様にして求め
る。なお、f1〜f4はアクティビティの比率(ACTp / ACTp
-p),(ACTb / ACTb-p)を因数とする所定の関数である
が、これを第1の実施例とは異なる関数を使用してもよ
い。
The estimated screen complexity Xp, Xb in the scene change image is obtained in the same manner as in the equations (5) to (8) of the first embodiment. Note that f1 to f4 are the activity ratios (ACTp / ACTp
-p) and (ACTb / ACTb-p) are the predetermined functions, but a function different from that of the first embodiment may be used.

【0057】さらに、シーンチェンジ画像の次の同じピ
クチャタイプのPまたはBピクチャについては、第1の
実施例の(9)(10)式と同様に、画面複雑度メモリ24M
に貯えられた実測画面複雑度Xp-pold, Xb-poldと、その
実測画面複雑度の対象になった画像のアクティビティAC
Tp-pold, ACTb-pold、これから符号化する現在の画像の
アクティビティACTp, ACTbから、画面複雑度を推定する
ことにより、画面複雑度の適正化が図られる。
Further, for the P or B picture of the same picture type following the scene change image, the screen complexity memory 24M is used in the same manner as in the equations (9) and (10) of the first embodiment.
Screen complexity Xp-pold and Xb-pold stored in the screen, and the activity AC of the image subject to the measured screen complexity
By estimating the screen complexity from Tp-pold, ACTb-pold, and the current image activity ACTp, ACTb to be encoded, the screen complexity is optimized.

【0058】なお、第2の実施例においては、シーンチ
ェンジの有無に関らず推定画面複雑度の計算を行うの
で、シーンチェンジ画像の際に画面複雑度メモリ24M
に貯える値を実測画面複雑度ではなく、前記(13)(14)式
で求めた再計算前の推定画面複雑度Xp-old, Xb-oldに変
更し、またシーンチェンジ画像のつぎの同じピクチャタ
イプの画像における画面複雑度の推定では、次の(15)(1
6)式によって計算してもよい。この場合、アクティビテ
ィを画面複雑度メモリ24Mに貯える画像をシーンチェ
ンジの有無によって切り替える必要がないため、装置の
簡略化が出来る。
In the second embodiment, the estimated screen complexity is calculated regardless of the presence or absence of a scene change.
Is not the measured screen complexity, but is changed to the estimated screen complexity Xp-old, Xb-old before recalculation obtained by the above formulas (13) and (14), and the same picture following the scene change image The following (15) (1)
It may be calculated by the formula 6). In this case, it is not necessary to switch the images stored in the screen complexity memory 24M depending on the presence or absence of a scene change, so that the apparatus can be simplified.

【0059】 (Pピクチャ) 現在の画像の画面複雑度Xp=Xp-old・(ACTp / ACTp-p) (15) (Bピクチャ) 現在の画像の画面複雑度Xb=Xb-old・(ACTb / ACTb-p) (16)(P picture) Screen complexity of the current image Xp = Xp-old · (ACTp / ACTp-p) (15) (B picture) Screen complexity of the current image Xb = Xb-old · (ACTb / ACTb-p) (16)

【0060】このようにして計算された、これから符号
化する現在の画像の推定画面複雑度Xi, Xp, Xbと、各ピ
クチャタイプの平均画面複雑度 Xi-ave, Xp-ave, Xb-av
eは符号量制御器14に送られる。
The estimated screen complexity Xi, Xp, Xb of the current image to be encoded, calculated in this way, and the average screen complexity Xi-ave, Xp-ave, Xb-av of each picture type
e is sent to the code amount controller 14.

【0061】符号量制御器14では、つぎに(これから)
符号化する画像の割当符号量の設定(決定)、及び可変ビ
ットレート制御のための量子化スケールの設定(決定)が
行われる。目標平均ビットレートをBitRate、1秒当りの
フレーム数をPictureRate、1つの符号化単位である1GOP
(通常はIピクチャの間隔)のフレーム数をNとすると、1G
OPの平均割当符号量Raveは次式(17)で与えられる。
Next, the code amount controller 14 (from now on)
The setting (determination) of the allocated code amount of the image to be encoded and the setting (determination) of the quantization scale for variable bit rate control are performed. The target average bit rate is BitRate, the number of frames per second is PictureRate, and one encoding unit is 1 GOP
If the number of frames (usually the interval between I pictures) is N, 1G
The average allocated code amount Rave of the OP is given by the following equation (17).

【0062】 1GOPの平均割当符号量Rave=(BitRate/PictureRate)・N (17) 上式のRaveは平均画面複雑度の時の1GOPの必要割当符号
量とすると、これから符号化する現在の画像を含む1GOP
の画像が一様に前記画面複雑度算出器24で求めた現在
の画像の推定画面複雑度に等しいと仮定すると、画質を
一定に保持する場合に必要な1GOPの必要割当符号量Rcは
次式(18)(19)(20)で与えられる。
Average allocated code amount of 1 GOP Rave = (BitRate / PictureRate) · N (17) If Rave in the above equation is the required allocated code amount of 1 GOP at the time of average screen complexity, the current image to be encoded is 1GOP including
Is assumed to be uniformly equal to the estimated screen complexity of the current image obtained by the screen complexity calculator 24, the required allocated code amount Rc of 1 GOP required to keep the image quality constant is (18) (19) (20)

【0063】 (Iピクチャ) 必要割当符号量Rc = Rave・( Xi / Xi-ave ) (18) (Pピクチャ) 必要割当符号量Rc = Rave・( Xp / Xp-ave ) (19) (Bピクチャ) 必要割当符号量Rc = Rave・( Xb / Xb-ave ) (20)(I picture) Required allocated code amount Rc = Rave · (Xi / Xi-ave) (18) (P picture) Required allocated code amount Rc = Rave · (Xp / Xp-ave) (19) (B picture ) Necessary allocated code amount Rc = Rave ・ (Xb / Xb-ave) (20)

【0064】これら上式の必要割当符号量Rcを1GOPの各
ピクチャに適切に割り振ることにより、これから符号化
する現在の画像の目標符号量を算出し、各マクロブロッ
クの量子化スケールを決定する。例えばMPEG2Test Mod
el5の方法を用いると、上で求めた現在の画像の推定画
面複雑度 Xi, Xp, Xbを(2)〜(4)式のXi, Xp, Xbに、割
当符号量Rcを(2)〜(4)式のRに代入して、これから符号
化する画像の目標割当符号量Ti, Tp, Tbを決定する。
By appropriately allocating the required allocated code amount Rc in the above equation to each picture of 1 GOP, the target code amount of the current image to be coded is calculated, and the quantization scale of each macroblock is determined. For example, MPEG2 Test Mod
Using the method of el5, the estimated screen complexity Xi, Xp, Xb of the current image obtained above is replaced by Xi, Xp, Xb in equations (2) to (4), and the allocated code amount Rc is assigned by (2) to Substituting into R in equation (4), the target allocated code amounts Ti, Tp, Tb of the image to be encoded are determined.

【0065】但し、第2の実施例においては、GOP毎に
一定符号量にする必要がないので、Rcの値は(2)〜(4)式
のRのように各フレームの発生符号量で減算したり、GO
Pの先頭で加算する必要はない。また(2)〜(4)式のNp, N
bは常に一定値(GOP先頭での値)となる。
However, in the second embodiment, since it is not necessary to set a constant code amount for each GOP, the value of Rc is determined by the generated code amount of each frame as shown by R in equations (2) to (4). Subtract or go
There is no need to add at the beginning of P. Also, Np, N in equations (2) to (4)
b is always a constant value (the value at the beginning of the GOP).

【0066】その後は第1の実施例と同様に、目標割当
符号量と、バッファ16で検出される各マクロブロック
の発生符号量をもとに、各マクロブロックの量子化スケ
ールを決定し、必要に応じて各マクロブロックのアクテ
ィビティによって量子化スケールを変更する適応量子化
制御を行う。このようにして、1パス方式の可変ビット
レート制御においても、シーンチェンジに対応した符号
量割当が可能になる。
Thereafter, as in the first embodiment, the quantization scale of each macro block is determined based on the target allocated code amount and the generated code amount of each macro block detected by the buffer 16, and Adaptive quantization control for changing the quantization scale in accordance with the activity of each macroblock according to. In this way, even in the variable bit rate control of the one-pass method, it is possible to allocate the code amount corresponding to the scene change.

【0067】( 第3の実施例 )つぎに、本発明の動
画像符号化装置の第3の実施例について、図3と共に以
下に説明する。第3の実施例も、本発明を1パス方式の
可変ビットレート符号化に適用した場合であるが、第2
の実施例と比較して、図4に示す画像特性検出器25及
びシーンチェンジ検出器28の構成及びその動作及び、
画像特性検出器25からシーンチェンジ検出器28に送
られるアクティビティの信号と、シーンチェンジ検出器
28から画面複雑度算出器24に送られるシーンチェン
ジ情報の内容のみが異なる。また、図3は画像特性検出
器25に対して動き補償予測器19より動き補償信号が
供給されている点が図2と異なっており、それ以外の部
分についての説明は省略する。
Third Embodiment Next, a third embodiment of the moving picture coding apparatus according to the present invention will be described below with reference to FIG. The third embodiment is also a case where the present invention is applied to one-pass variable bit rate coding.
As compared with the embodiment, the configuration and operation of the image characteristic detector 25 and the scene change detector 28 shown in FIG.
Only the content of the activity signal sent from the image characteristic detector 25 to the scene change detector 28 and the content of the scene change information sent from the scene change detector 28 to the screen complexity calculator 24 are different. FIG. 3 is different from FIG. 2 in that a motion compensation signal is supplied from the motion compensation predictor 19 to the image characteristic detector 25, and description of other parts is omitted.

【0068】図4に示す画像特性検出器25は、ACTcur
検出器25A、ACTpred検出器25B、ACTmv検出器25
Cと各々の累積器25D,25E,25F、及びピクチャ
アクティビティ算出器25Gより構成されている。ま
た、シーンチェンジ検出器28は、SCcur検出器28
A、SCpred検出器28B、SCmv検出器28C、及びシー
ンチェンジ判定器28Dより構成されている。
The image characteristic detector 25 shown in FIG.
Detector 25A, ACTpred detector 25B, ACTmv detector 25
C, accumulators 25D, 25E, and 25F, and a picture activity calculator 25G. The scene change detector 28 is a SCcur detector 28.
A, an SCpred detector 28B, an SCmv detector 28C, and a scene change determiner 28D.

【0069】図3、図4の実施例において、画像特性検
出器25への入力は、Iピクチャの場合は動き補償予測
が行われないため、第2の実施例と同じくマクロブロッ
ク単位に分割された原動画像のみが入力され、マクロブ
ロック単位に画像特性を示すパラメータであるアクティ
ビティ(ACTcur)が検出され、フレーム単位に加算され、
IピクチャのアクティビティACTiとして画面複雑度算出
器24に送られる。また、ACTcur検出器25Aの出力値
は累積器25Dによってフレーム単位に加算された後に
シーンチェンジ検出器28に送られ、シーンチェンジ判
定に使用される。
In the embodiment shown in FIGS. 3 and 4, the input to the image characteristic detector 25 is divided into macroblock units as in the second embodiment, since no motion compensation prediction is performed for an I picture. Is input, only activity (ACTcur), which is a parameter indicating image characteristics in macroblock units, is detected and added in frame units.
It is sent to the screen complexity calculator 24 as an I-picture activity ACTi. The output value of the ACTcur detector 25A is added to each frame by the accumulator 25D, sent to the scene change detector 28, and used for scene change determination.

【0070】一方、図4に示す画像特性検出器25への
入力は、P及びBピクチャの場合は分割された原動画像
の他に、マクロブロック単位の動き補償予測における誤
差画像または動きベクトル検出における符号化画像と参
照画像との差分画像と、動き補償予測で使用した動きベ
クトルが図3に示す動き補償予測器19から入力され
る。分割された原動画像からはIピクチャの場合と同様
にマクロブロック単位に(原画像)アクティビティACTcur
が検出される。
On the other hand, the input to the image characteristic detector 25 shown in FIG. 4 is, in the case of P and B pictures, an error image in macroblock-based motion compensation prediction or a motion vector detection in addition to the divided original moving image. The difference image between the coded image and the reference image and the motion vector used in the motion compensation prediction are input from the motion compensation predictor 19 shown in FIG. From the divided original image, the activity (actual image) ACTcur
Is detected.

【0071】一方、マクロブロック単位の動き補償予測
における誤差画像または動きベクトル検出における符号
化画像と参照画像との差分画像は、その中で絶対値和ま
たは2乗誤差和がとられ、予測アクティビティACTpred
として検出される。さらに、動き補償予測で使用した動
きベクトルの方は、隣接マクロブロックとの間で各成分
毎に差分の絶対値がとられるなどして、動きベクトルア
クティビティACTmvとして検出される。
On the other hand, an error image in motion compensation prediction in macroblock units or a difference image between a coded image in motion vector detection and a reference image is subjected to a sum of absolute values or a sum of squared errors in the error image.
Is detected as Further, the motion vector used in the motion compensation prediction is detected as a motion vector activity ACTmv, for example, by taking the absolute value of a difference between each component and an adjacent macroblock.

【0072】そして、各マクロブロック毎に次式(21)の
演算により、マクロブロックアクティビティACTmbが算
出され、それが1フレーム分加算されて、P及びBピク
チャのアクティビティACTp及びACTbとして画面複雑度算
出器24に送られる。また、ACTcur、ACTpred、ACTmv検
出器25A,25B,25Cの値は各々累積器25D,2
5E,25Fによってフレーム単位に加算された後にシ
ーンチェンジ検出器28に送られ、シーンチェンジ判定
に使用される。 マクロブロックアクティビティACTmb =a・ACTcur +b・ACTpred +c・ACTmv (21)
Then, the macroblock activity ACTmb is calculated for each macroblock by the operation of the following equation (21), and it is added for one frame to calculate the screen complexity as the P and B picture activities ACTp and ACTb. To the vessel 24. The values of the ACTcur, ACTpred, and ACTmv detectors 25A, 25B, and 25C are stored in accumulators 25D and 25C, respectively.
After being added for each frame by 5E and 25F, it is sent to the scene change detector 28 and used for scene change determination. Macro block activity ACTmb = a ACTcur + b ACTpred + c ACTmv (21)

【0073】なお、各定数a、b、cの値はピクチャ
別、マクロブロックの予測モード別(イントラか片方向
予測か双方向予測か)などで変化させる。例えばイント
ラの場合はIピクチャと同様に予測を行わないので、b
=c=0となり、予測を行うブロックに比べて発生符号
量が多くなると考えられるので、aの値を大きくする。
このように、予測モード等に即したアクティビティ検出
を行うことにより、第2の実施例に比べ、より符号化特
性に即した画面複雑度の推定が可能になる。
The values of the constants a, b, and c are changed for each picture, each macroblock prediction mode (intra, unidirectional prediction, or bidirectional prediction). For example, in the case of intra, prediction is not performed as in the case of an I picture.
= C = 0, and it is considered that the generated code amount is larger than that of the block to be predicted. Therefore, the value of a is increased.
As described above, by performing the activity detection in accordance with the prediction mode or the like, it is possible to estimate the screen complexity more in accordance with the encoding characteristics than in the second embodiment.

【0074】また、シーンチェンジ検出器28には画像
特性検出器25から、フレーム単位に加算されたACTcu
r、ACTpred、ACTmvの値が送られる。Iピクチャの場合
はACTcurしか送られないので、ACTcurについて第2の実
施例と同様に、これから符号化する現在の画像のアクテ
ィビティと、直前に符号化したIピクチャのアクティビ
ティの比率が計算される。そしてこのアクティビティの
比率が一定範囲を超えた時、例えば、 (比率)<Amin または (比率)>Amax 但し、(比率)=(符号化画像のアクティビティ) / (直前
の画像のアクティビティ) 0<Amin<1, Amax>1 の場合、これら2つの画像の間でシーンチェンジが起こ
ったと判定する。
The ACTcu added from the image characteristic detector 25 to the scene change detector 28 on a frame-by-frame basis.
The values of r, ACTpred, and ACTmv are sent. In the case of an I-picture, only ACTcur is sent, so that the ratio of the activity of the current picture to be encoded to the activity of the I-picture just encoded is calculated for ACTcur as in the second embodiment. When the ratio of this activity exceeds a certain range, for example, (ratio) <Amin or (ratio)> Amax where (ratio) = (activity of coded image) / (activity of previous image) 0 <Amin If <1, Amax> 1, it is determined that a scene change has occurred between these two images.

【0075】一方、P及びBピクチャの場合はACTcur、
ACTpred、ACTmvの3つの値が画像特性検出器25から送
られてくるので、3つの値各々について、これから符号
化する現在の画像のアクティビティと、直前に符号化し
た同じピクチャタイプの画像のアクティビティの比率を
計算する。そして、 ・(ACTcurの比率) <A1min または (ACTcurの比率)
>A1max ・(ACTpredの比率)<A2min または (ACTpredの比率)
>A2max ・(ACTmvの比率) <A3min または (ACTmvの比率) >
A3max 但し、(比率)=(符号化画像のアクティビティ) / (直前
の画像のアクティビティ) 0<A1min, A2min, A3min<1, A1max, A2max, A3max,
>1 のいずれかを満たす時、これら2つの画像の間でシーン
チェンジが起こったと判定する。
On the other hand, in the case of P and B pictures, ACTcur,
Since three values of ACTpred and ACTmv are sent from the image characteristic detector 25, for each of the three values, the activity of the current image to be encoded and the activity of the image of the same picture type encoded immediately before are calculated. Calculate the ratio. And ・ (Ratio of ACTcur) <A1min or (Ratio of ACTcur)
> A1max ・ (Ratio of ACTpred) <A2min or (Ratio of ACTpred)
> A2max • (ACTmv ratio) <A3min or (ACTmv ratio)>
A3max where (ratio) = (activity of coded image) / (activity of previous image) 0 <A1min, A2min, A3min <1, A1max, A2max, A3max,
When any one of> 1 is satisfied, it is determined that a scene change has occurred between these two images.

【0076】なお、1つの判定方法では誤判定する可能
性が高いと判断した場合は、2つまたは3つ全ての条件
を満たす場合のみシーンチェンジが起こったと判定する
ように条件を限定してもよい。
If it is determined that the possibility of erroneous determination is high with one determination method, the condition may be limited so that it is determined that a scene change has occurred only when all two or all three conditions are satisfied. Good.

【0077】シーンチェンジ画像の位置情報は、ACTcu
r、ACTpred、ACTmvのどの判定でシーンチェンジと判断
したかという情報も同時に、画面複雑度算出器24に送
られる。また、画面複雑度算出器24では、どのアクテ
ィビティ判定でシーンチェンジと判断したかによって、
(5)〜(8)式のf1〜f4の関数を変更する。
The position information of the scene change image is ACTcu
Information indicating which of r, ACTpred, and ACTmv has been determined as a scene change is also sent to the screen complexity calculator 24 at the same time. In addition, the screen complexity calculator 24 determines, based on which activity determination the scene change is determined,
Modify the functions of f1 to f4 in equations (5) to (8).

【0078】このように第3の実施例では、原動画像の
アクティビティACTcurだけでなく、動き補償予測におけ
る誤差画像や動きベクトルのアクティビティACTpred、A
CTmvもシーンチェンジ判定に使用することにより、シー
ンチェンジ判定の精度を向上させることが出来る。な
お、以上の第3の実施例では、第2の実施例の1パス方
式の可変ビットレート符号化に対して適用したが、同様
な方法を第1の実施例である固定ビットレート符号化に
適用してもよい。
As described above, in the third embodiment, not only the activity ACTcur of the original image but also the activities ACTpred, A of the error image and the motion vector in the motion compensation prediction.
By using CTmv for scene change determination, the accuracy of scene change determination can be improved. In the third embodiment, the method is applied to the one-pass variable bit rate encoding of the second embodiment. However, the same method is applied to the fixed bit rate encoding of the first embodiment. May be applied.

【0079】なお、以上の実施例では、ピクチャ符号化
構造が図6のようなIピクチャ、Pピクチャ、Bピクチ
ャの3種類存在するとして説明したが、IピクチャとP
ピクチャ、IピクチャとBピクチャのような2種類のみ
であってもよい。また、全てのピクチャが動き補償予測
が行われないIピクチャであってもよい。但し、このI
ピクチャのみの場合における第3の実施例は、画像特性
検出部25への入力が分割された原動画像のみとなるた
め、第2の実施例と全く同一になる。
In the above embodiment, three types of picture coding structures, i.e., I picture, P picture, and B picture as shown in FIG.
There may be only two types such as a picture, an I picture and a B picture. Also, all pictures may be I pictures for which motion compensation prediction is not performed. However, this I
The third embodiment in the case of only pictures is exactly the same as the second embodiment because the input to the image characteristic detecting unit 25 is only the divided moving image.

【0080】また、以上の実施例ではI、P、B各々の
ピクチャタイプについて、別々にシーンチェンジ判定を
行い、シーンチェンジ画像を決定していた。しかしなが
ら、M>2の場合で、図5に示されるように、Bピクチ
ャを挟むPまたはIピクチャの間でシーンチェンジが生
じた場合は、その間の複数のBピクチャ全てが通常の場
合より予測が当たりにくくなる可能性がある。
Further, in the above-described embodiment, scene change determination is separately performed for each of the I, P, and B picture types to determine a scene change image. However, in the case of M> 2, as shown in FIG. 5, when a scene change occurs between P or I pictures sandwiching a B picture, prediction of all of a plurality of B pictures therebetween is less than normal. It may be difficult to hit.

【0081】そこで、図5のように、入力画像順でBピ
クチャの直後となるPまたはIピクチャ、及び、前記B
ピクチャの直後となるPまたはIピクチャと直前のPま
たはIピクチャに挟まれるBピクチャのいずれかでシー
ンチェンジ画像と判定された場合、間のBピクチャを全
てシーンチェンジ画像と判定してもよい。
Therefore, as shown in FIG. 5, the P or I picture immediately after the B picture in the order of the input image,
When a P or I picture immediately following a picture and a B picture sandwiched between the immediately preceding P or I pictures are determined to be scene change images, all B pictures in between may be determined to be scene change images.

【0082】このように連続するBピクチャを全てシー
ンチェンジ画像と判定した場合は、それらのBピクチャ
について、最初のシーンチェンジ画像における「直前
の」Bピクチャをシーンチェンジ直前の画像として、そ
の後のBピクチャでも共通に使用する。シーンチェンジ
画像の次の画像は最後のシーンチェンジ画像の次のBピ
クチャとし、比較するシーンチェンジ直前の画像は前記
した最初のシーンチェンジ画像における直前のBピクチ
ャを用いる。
When all the consecutive B pictures are determined to be scene change images, the B picture “just before” in the first scene change image is regarded as the image immediately before the scene change, and the subsequent B pictures are determined. Also commonly used for pictures. The image following the scene change image is the B picture next to the last scene change image, and the image immediately before the scene change to be compared uses the B picture immediately before the first scene change image.

【0083】但しこの場合は、シーンチェンジ画像の次
のBピクチャにおける画面複雑度の推定で(15)(16)式を
使用する場合でも、そのBピクチャの画面複雑度の推定
が終了するまで、最初のシーンチェンジ画像の直前のB
ピクチャのアクティビティ・実測画面複雑度を画面複雑
度メモリ24Mに保持しておく必要があるため、アクテ
ィビティを画面複雑度メモリ24Mに貯える画像をシー
ンチェンジの有無、シーンチェンジ画像の構成によって
適宜切り替える必要がある。
However, in this case, even when the equations (15) and (16) are used in estimating the screen complexity of the next B picture of the scene change image, the estimation is not performed until the estimation of the screen complexity of the B picture is completed. B just before the first scene change image
Since the activity of the picture and the actually measured screen complexity need to be stored in the screen complexity memory 24M, it is necessary to appropriately switch the image stored in the activity in the screen complexity memory 24M depending on the presence or absence of a scene change and the configuration of the scene change image. is there.

【0084】なお、第2、第3の実施例において、1GOP
の必要割当符号量Rcを求める際に必要となる平均画面複
雑度は符号化ピクチャタイプ別に求めていたが、これを
ピクチャタイプで区別せず、一定期間内における各フレ
ームの画面複雑度を加算した後にその期間内のフレーム
数で除算した値を平均画面複雑度 X-ave として求め、
それと現在の画像の推定画面複雑度Xk(k= i or p or
b)から、次式(22)によって1GOPの必要割当符号量Rcを求
めてもよい。
In the second and third embodiments, 1 GOP
The average screen complexity required when calculating the required allocated code amount Rc of each frame was obtained for each coded picture type, but this was not distinguished by the picture type, and the screen complexity of each frame within a certain period was added. Later, the value divided by the number of frames during the period is calculated as the average screen complexity X-ave,
And the estimated screen complexity of the current image Xk (k = i or p or
From b), the required allocated code amount Rc of one GOP may be calculated by the following equation (22).

【0085】 必要割当符号量Rc = Rave・(Xk / X-ave) (但しk= i or p or b) (22)Required code amount Rc = Rave · (Xk / X-ave) (where k = i or p or b) (22)

【0086】[0086]

【発明の効果】以上のように本発明によると、固定ビッ
トレート制御または1パス方式の可変ビットレート制御
で動画像を符号化する際に、符号化の終了した一定区間
の画像の発生符号量と平均量子化スケールと、一定区間
及びこれから符号化する現在の画像の符号化画像特性
(アクティビティ)を検出し、発生符号量と平均量子化ス
ケールの積に対して所定の操作を施すことによって得ら
れる値を実測画面複雑度として求めた上で、同じピクチ
ャタイプの直前の画像に対する、現在の画像のアクティ
ビティの比率からシーンチェンジの有無を判定し、これ
から符号化する画像の画面複雑度を、シーンチェンジ画
像については前記アクティビティの比率を因数とする所
定の関数を実測画面複雑度に乗算することによって推定
し、またシーンチェンジ画像の次の画像については、シ
ーンチェンジ直前の画像に対する、現在の画像のアクテ
ィビティの比率をシーンチェンジ画像における実測画面
複雑度に乗算することによって推定して、この推定画面
複雑度を用いてシーンチェンジ時の符号量割当を行うこ
とにより、シーンチェンジといった画像の変化点の直後
で、画像劣化が発生せず、逆に符号量に無駄も発生せず
に、対応した過不足のない符号量割当を行うことが可能
になる。
As described above, according to the present invention, when a moving image is encoded by fixed bit rate control or variable bit rate control of the one-pass method, the amount of generated code of an image in a fixed section in which encoding has been completed. , Average quantization scale, coded image characteristics of the fixed interval and the current image to be coded
(Activity) is detected, a value obtained by performing a predetermined operation on the product of the generated code amount and the average quantization scale is obtained as the actually measured screen complexity, and then, for the immediately preceding image of the same picture type, The presence / absence of a scene change is determined based on the activity ratio of the current image, and the screen complexity of the image to be encoded is multiplied by a predetermined function having the activity ratio as a factor for the scene change image. For the next image of the scene change image, the ratio of the activity of the current image to the image immediately before the scene change image is estimated by multiplying the actually measured screen complexity in the scene change image. By performing code amount allocation at the time of a scene change using the estimated screen complexity, the scene Immediately after the change point of the image such Enji, image deterioration is not generated, without also not occur waste code amount Conversely, it is possible to perform the code amount allocation without the corresponding excess and deficiency.

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

【図1】本発明の動画像符号化装置及びその方法の第1
の実施例のブロック構成を示した図である。
FIG. 1 is a first embodiment of a moving picture coding apparatus and method according to the present invention.
FIG. 3 is a diagram showing a block configuration of the example of FIG.

【図2】本発明の動画像符号化装置及びその方法の第2
の実施例のブロック構成を示した図である。
FIG. 2 shows a second example of the moving picture coding apparatus and method according to the present invention.
FIG. 3 is a diagram showing a block configuration of the example of FIG.

【図3】本発明の動画像符号化装置及びその方法の第3
の実施例のブロック構成を示した図である。
FIG. 3 is a third embodiment of the moving picture coding apparatus and method according to the present invention;
FIG. 3 is a diagram showing a block configuration of the example of FIG.

【図4】本発明の第3の実施例における画像特性検出器
とシーンチェンジ検出器の一実施例のブロック構成を示
した図である。
FIG. 4 is a diagram showing a block configuration of an embodiment of an image characteristic detector and a scene change detector according to a third embodiment of the present invention.

【図5】本発明におけるBピクチャのシーンチェンジ判
定の一実施例を説明した図である。
FIG. 5 is a diagram illustrating an embodiment of a scene change determination for a B picture according to the present invention.

【図6】符号化ピクチャ構造の一例を示した図である。FIG. 6 is a diagram illustrating an example of a coded picture structure.

【図7】一般的な動画像符号化装置の一構成例のブロッ
ク構成を示した図である。
FIG. 7 is a diagram illustrating a block configuration of a configuration example of a general moving image encoding device.

【図8】従来における動画像符号化装置の一構成例のブ
ロック構成を示した図である。
FIG. 8 is a diagram illustrating a block configuration of a configuration example of a conventional moving picture encoding device.

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

11 減算器 12 DCT器(直交変換器) 13 量子化器 14 符号量制御器 15 可変長符号化器 16 バッファ 17 逆量子化器 18 IDCT器 19 動き補償予測器 20 加算器 21 フレームメモリ 22 平均量子化スケール検出器 23 発生符号量検出器 24 画面複雑度算出器 24M 画面複雑度メモリ 25 画像特性検出器 25A ACTcur検出器 25B ACTpred検出器 25C ACTmv検出器 25D,25E,25F 累積器 25G ピクチャアクティビティ算出器 28 シーンチェンジ検出器 28A SCcur検出器 28B SCpred検出器 28C SCmv検出器 28D シーンチェンジ判定器 29 平均画面複雑度算出器 ACTcur 原画像アクティビティ ACTi, ACTp, ACTb 現在の画像のアクティビティ ACTi-p, ACTp-p, ACTb-p 直前に符号化した同じピクチ
ャタイプの画像のアクティビティ ACTmb マクロブロックアクティビティ ACTmv 動きベクトル特性 ACTp-pold, ACTb-pold 実測画面複雑度の対象になった
画像のアクティビティ ACTpred 誤差画像アクティビティ R 符号量 Rave 平均割当符号量 Rc 画像の割当符号量 Xi, Xp, Xb 現在の画像の画面複雑度 Xi-ave, Xp-ave, Xb-ave 平均画面複雑度 Xi-p, Xp-p, Xb-p 各フレームの実測画面複雑度 Xp-pold, Xb-pold 実測画面複雑度
Reference Signs List 11 subtracter 12 DCT unit (orthogonal transformer) 13 quantizer 14 code amount controller 15 variable length encoder 16 buffer 17 inverse quantizer 18 IDCT unit 19 motion compensation predictor 20 adder 21 frame memory 22 average quantum Scaled scale detector 23 Generated code amount detector 24 Screen complexity calculator 24M Screen complexity memory 25 Image characteristic detector 25A ACTcur detector 25B ACTpred detector 25C ACTmv detector 25D, 25E, 25F Accumulator 25G Picture activity calculator 28 Scene Change Detector 28A SCcur Detector 28B SCpred Detector 28C SCmv Detector 28D Scene Change Detector 29 Average Screen Complexity Calculator ACTcur Original Image Activity ACTi, ACTp, ACTb Current Image Activity ACTi-p, ACTp-p , ACTb-p Activates the previously coded image of the same picture type. Activity ACTmb Macroblock activity ACTmv Motion vector characteristics ACTp-pold, ACTb-pold Activity of image subject to measured screen complexity ACTpred Error image activity R Code amount Rave Average allocated code amount Rc Average allocated code amount Xi, Xp, Xb Screen complexity of current image Xi-ave, Xp-ave, Xb-ave Average screen complexity Xi-p, Xp-p, Xb-p Actual measurement screen complexity of each frame Xp-pold, Xb-pold Actual measurement screen Complexity

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】入力動画像を動き補償予測手段、直交変換
手段、量子化手段、及び可変長符号化手段を有して符号
化する動画像符号化装置において、 前記入力動画像の各画像の発生符号量を検出する手段
と、 前記入力動画像の各画像の平均量子化スケールを検出す
る手段と、 前記入力動画像及び前記動き補償予測手段によって生成
される動き補償予測画像のうち少なくとも前記入力動画
像の符号化画像特性を検出する手段と、 前記符号化画像特性を検出する手段によって検出された
符号化画像特性からシーンチェンジ画像情報を検出する
手段と、 前記発生符号量を検出する手段によって検出された発生
符号量、前記平均量子化スケールを検出する手段によっ
て検出された平均量子化スケールから、過去の画像の実
測画面複雑度を算出し、 前記算出した過去の画像の実測画面複雑度と、前記符号
化画像特性を検出する手段によって検出された符号化画
像特性と、前記シーンチェンジ画像情報を検出する手段
によって検出されたシーンチェンジ画像情報から現在の
画像の推定画面複雑度を算出する手段と、 前記実測画面複雑度を算出する手段によって算出された
過去の画像の実測画面複雑度、もしくは前記現在の画像
の推定画面複雑度を算出する手段によって算出された現
在の画像の推定画面複雑度と、前記発生符号量を検出す
る手段によって検出された発生符号量、前記平均量子化
スケールを検出する手段によって検出された平均量子化
スケール、前記符号化画像特性を検出する手段によって
検出された符号化画像特性から、次に符号化する画像の
割当符号量を決定し、前記割当符号量から前記次に符号
化する画像の量子化スケールを決定する手段とを備えた
ことを特徴とする動画像符号化装置。
1. A moving picture coding apparatus for coding an input moving picture by including a motion compensation predicting means, an orthogonal transform means, a quantizing means, and a variable length coding means, comprising the steps of: Means for detecting a generated code amount; means for detecting an average quantization scale of each image of the input moving image; and at least the input among the input moving image and the motion-compensated predicted image generated by the motion-compensated predicting means. Means for detecting a coded image characteristic of a moving image, means for detecting scene change image information from the coded image characteristic detected by the means for detecting the coded image characteristic, and means for detecting the generated code amount From the detected generated code amount and the average quantization scale detected by the means for detecting the average quantization scale, the actually measured screen complexity of the past image is calculated. From the calculated actual screen complexity of the past image, the coded image characteristic detected by the coded image characteristic detecting means, and the scene change image information detected by the scene change image information detecting means, Means for calculating the estimated screen complexity of the image, and means for calculating the estimated screen complexity of the past image calculated by the means for calculating the actually measured screen complexity, or the estimated screen complexity of the current image. The calculated estimated screen complexity of the current image, the generated code amount detected by the means for detecting the generated code amount, the average quantization scale detected by the means for detecting the average quantization scale, the coding From the encoded image characteristics detected by the image characteristic detecting means, the allocated code amount of the next image to be encoded is determined, and the allocated code amount is determined. Video encoding apparatus characterized by comprising a means for determining the quantization scale of the image to be the next coded from the amount.
【請求項2】請求項1に記載された動画像符号化装置に
おいて、 前記現在の画像の推定画面複雑度を算出する手段は、 前記検出された現在の画像の符号化画像特性と、それと
同じピクチャタイプ(Iピクチャ、Pピクチャ、Bピクチ
ャ)の直前の画像において検出された符号化画像特性と
の比を因数とする所定の関数を、前記直前の画像におけ
る前記実測画面複雑度に乗算することによって前記推定
画面複雑度を算出することを特徴とする動画像符号化装
置。
2. The moving picture coding apparatus according to claim 1, wherein the means for calculating the estimated screen complexity of the current image includes: a coded image characteristic of the detected current image; Multiplying the measured screen complexity in the immediately preceding picture by a predetermined function having a factor of a ratio with a coded image characteristic detected in the picture immediately before the picture type (I picture, P picture, B picture). A moving image encoding apparatus for calculating the estimated screen complexity by using the method.
【請求項3】請求項1に記載された動画像符号化装置に
おいて、 前記現在の画像が前記検出されたシーンチェンジ画像情
報によってシーンチェンジ画像、またはシーンチェンジ
画像の次の画像と判定された場合は、前記符号化画像特
性との比を因数とする所定の関数を変更し、 前記現在の画像がシーンチェンジ画像の次の画像と判定
された場合は、前記現在の画像と同じピクチャタイプ
(Iピクチャ、Pピクチャ、Bピクチャ)の直前の画像
を、前記現在の画像と同じピクチャタイプのシーンチェ
ンジ画像の前の画像に変更することを特徴とする動画像
符号化装置。
3. The video encoding apparatus according to claim 1, wherein the current image is determined to be a scene change image or an image next to the scene change image based on the detected scene change image information. Changes a predetermined function whose factor is a ratio with the coded image characteristic. If the current image is determined to be the next image of the scene change image, the same picture type (I A moving picture encoding apparatus for changing a picture immediately before a picture, a P picture, and a B picture into a picture preceding a scene change picture of the same picture type as the current picture.
【請求項4】請求項1に記載された動画像符号化装置に
おいて、 前記次に符号化する画像の割当符号量を決定する手段に
おいて使用する画面複雑度は、 少なくとも前記現在の画像が前記検出されたシーンチェ
ンジ画像情報によってシーンチェンジ画像、またはシー
ンチェンジ画像の次の画像と判定された場合は、前記現
在の画像の推定画面複雑度を使用することを特徴とする
動画像符号化装置。
4. The moving picture coding apparatus according to claim 1, wherein the screen complexity used in said means for determining the assigned code amount of the picture to be coded next is at least said current picture being said detected. A moving picture encoding apparatus characterized in that, when it is determined based on the obtained scene change picture information that the picture is a scene change picture or an image next to the scene change picture, the estimated screen complexity of the current picture is used.
【請求項5】請求項1乃至請求項4のいずれかに記載さ
れた動画像符号化装置において、 前記発生符号量と前記実測画面複雑度、もしくは前記推
定画面複雑度から次に符号化する画像の割当符号量を決
定する手段は、前記実測画面複雑度の一定期間における
平均値に対する前記推定画面複雑度の割合を、平均割当
符号量に乗ずることによって前記割当符号量を決定する
ことを特徴とする動画像符号化装置。
5. The moving picture coding apparatus according to claim 1, wherein an image to be coded next based on said generated code amount and said measured screen complexity or said estimated screen complexity. Means for determining the allocated code amount, the ratio of the estimated screen complexity to the average value of the measured screen complexity in a certain period, the average allocated code amount is multiplied to determine the allocated code amount. Video encoding device.
【請求項6】請求項1乃至請求項5のいずれかに記載さ
れた動画像符号化装置において、 前記入力動画像または動き補償予測画像の符号化画像特
性を検出する手段は、前記入力動画像の画像特性を検出
する手段、動き補償予測画像の誤差画像の画像特性を検
出する手段、及び動き補償予測における動きベクトル特
性を検出する手段より構成され、 ピクチャタイプ(Iピクチャ、Pピクチャ、Bピクチャ)
別及び予測モード別の定数を、前記検出した入力動画像
の画像特性、動き補償予測画像の誤差画像の画像特性、
及び動き補償予測における動きベクトル特性の前記各特
性値に対して乗じた上で加算することによって、前記符
号化画像特性を決定し、 前記シーンチェンジ画像情報を検出する手段は、前記現
在の画像と前記それと同じピクチャタイプ(Iピクチ
ャ、Pピクチャ、Bピクチャ)の直前の画像の間で、 前記符号化画像特性を検出する手段によって検出された
前記入力動画像の画像特性、動き補償予測画像の誤差画
像の画像特性、及び動き補償予測における動きベクトル
特性の前記各特性値の比を計算をし、前記特性値の比が
各特性値毎に定めた一定範囲を超えた場合に、前記現在
の画像をシーンチェンジ画像と判定し、 前記シーンチェンジ画像と同じピクチャタイプ(Iピク
チャ、Pピクチャ、Bピクチャ)の次の画像をシーンチ
ェンジ画像の次の画像と定めることを特徴とする動画像
符号化装置。
6. The moving picture coding apparatus according to claim 1, wherein said means for detecting a coded picture characteristic of the input moving picture or the motion-compensated predicted picture comprises: A picture type (I picture, P picture, B picture) comprising: means for detecting an image property of an error image of a motion compensated prediction image; and means for detecting a motion vector property in motion compensation prediction. )
Constants for different and prediction modes, the image characteristics of the detected input moving image, the image characteristics of the error image of the motion compensated prediction image,
By multiplying and adding each of the characteristic values of the motion vector characteristic in the motion compensation prediction, the encoded image characteristic is determined, and the means for detecting the scene change image information includes the current image and the current image. Between the immediately preceding pictures of the same picture type (I picture, P picture, B picture), the picture characteristics of the input moving picture detected by the means for detecting the coded picture properties, the error of the motion compensated prediction picture Image characteristics of the image, and calculate the ratio of the respective characteristic values of the motion vector characteristics in the motion compensation prediction, when the ratio of the characteristic values exceeds a certain range determined for each characteristic value, the current image Is determined to be a scene change image, and the next image of the same picture type (I picture, P picture, B picture) as the scene change image is next to the scene change image. A moving picture coding apparatus characterized in that it is defined as an image.
【請求項7】入力動画像を動き補償予測ステップ、直交
変換ステップ、量子化ステップ、及び可変長符号化ステ
ップを有して符号化する動画像符号化方法において、 前記入力動画像の各画像の発生符号量を検出するステッ
プと、 前記入力動画像の各画像の平均量子化スケールを検出す
るステップと、 前記入力動画像及び前記動き補償予測ステップによって
生成される動き補償予測画像のうち少なくとも前記入力
動画像の符号化画像特性を検出するステップと、 前記符号化画像特性を検出するステップによって検出さ
れた符号化画像特性からシーンチェンジ画像情報を検出
するステップと、 前記発生符号量を検出するステップによって検出された
発生符号量、前記平均量子化スケールを検出するステッ
プによって検出された平均量子化スケールから、過去の
画像の実測画面複雑度を算出し、 前記算出した過去の画像の実測画面複雑度と、前記符号
化画像特性を検出するステップによって検出された符号
化画像特性と、前記シーンチェンジ画像情報を検出する
ステップによって検出されたシーンチェンジ画像情報か
ら現在の画像の推定画面複雑度を算出するステップと、 前記実測画面複雑度を算出するステップによって算出さ
れた過去の画像の実測画面複雑度、もしくは前記現在の
画像の推定画面複雑度を算出するステップによって算出
された現在の画像の推定画面複雑度と、前記発生符号量
を検出するステップによって検出された発生符号量、前
記平均量子化スケールを検出するステップによって検出
された平均量子化スケール、前記符号化画像特性を検出
するステップによって検出された符号化画像特性から、
次に符号化する画像の割当符号量を決定し、前記割当符
号量から前記次に符号化する画像の量子化スケールを決
定するステップとを備えたことを特徴とする動画像符号
化方法。
7. A moving picture coding method for coding an input moving picture by including a motion compensation prediction step, an orthogonal transformation step, a quantization step, and a variable length coding step, comprising the steps of: Detecting a generated code amount; detecting an average quantization scale of each image of the input moving image; at least the input of the motion compensated prediction image generated by the input moving image and the motion compensation prediction step Detecting an encoded image characteristic of the moving image; detecting scene change image information from the encoded image characteristic detected by the detecting the encoded image characteristic; and detecting the generated code amount. The detected generated code amount and the average quantization scale detected by the step of detecting the average quantization scale. Calculating the actually measured screen complexity of the past image from the previous image, calculating the actually measured screen complexity of the past image, the coded image characteristic detected by the step of detecting the coded image characteristic, and the scene change. Calculating the estimated screen complexity of the current image from the scene change image information detected by the image information detecting step; and the measured screen complexity of the past image calculated by calculating the measured screen complexity Or the estimated screen complexity of the current image calculated by the step of calculating the estimated screen complexity of the current image, the generated code amount detected by the step of detecting the generated code amount, the average quantization scale Detecting the average quantization scale detected by the step of detecting the encoded image characteristic, From out encoded image characteristics,
Determining an assigned code amount of an image to be encoded next, and determining a quantization scale of the image to be encoded next from the assigned code amount.
【請求項8】請求項7に記載された動画像符号化方法に
おいて、 前記現在の画像の推定画面複雑度を算出するステップ
は、 前記検出された現在の画像の符号化画像特性と、それと
同じピクチャタイプ(Iピクチャ、Pピクチャ、Bピクチ
ャ)の直前の画像において検出された符号化画像特性と
の比を因数とする所定の関数を、前記直前の画像におけ
る前記実測画面複雑度に乗算することによって前記推定
画面複雑度を算出することを特徴とする動画像符号化方
法。
8. The moving picture coding method according to claim 7, wherein the step of calculating the estimated screen complexity of the current image includes the steps of: determining a coded image characteristic of the detected current image; Picture type (I picture, P picture, B picture) multiplying the measured screen complexity in the immediately preceding image by a predetermined function having a factor of a ratio with an encoded image characteristic detected in the immediately preceding image. A video encoding method for calculating the estimated screen complexity.
【請求項9】請求項7に記載された動画像符号化方法に
おいて、 前記現在の画像が前記検出されたシーンチェンジ画像情
報によってシーンチェンジ画像、またはシーンチェンジ
画像の次の画像と判定された場合は、前記符号化画像特
性との比を因数とする所定の関数を変更し、 前記現在の画像がシーンチェンジ画像の次の画像と判定
された場合は、前記現在の画像と同じピクチャタイプ
(Iピクチャ、Pピクチャ、Bピクチャ)の直前の画像
を、前記現在の画像と同じピクチャタイプのシーンチェ
ンジ画像の前の画像に変更することを特徴とする動画像
符号化方法。
9. The moving picture encoding method according to claim 7, wherein the current image is determined to be a scene change image or an image next to the scene change image based on the detected scene change image information. Changes a predetermined function having a ratio to the encoded image characteristic as a factor, and when the current image is determined to be the next image of the scene change image, the same picture type as the current image
A moving picture coding method, wherein an image immediately before (I picture, P picture, B picture) is changed to a picture before a scene change picture of the same picture type as the current picture.
【請求項10】請求項7に記載された動画像符号化方法
において、 前記次に符号化する画像の割当符号量を決定するステッ
プにおいて使用する画面複雑度は、 少なくとも前記現在の画像が前記検出されたシーンチェ
ンジ画像情報によってシーンチェンジ画像、またはシー
ンチェンジ画像の次の画像と判定された場合は、 前記現在の画像の推定画面複雑度を使用することを特徴
とする動画像符号化方法。
10. The moving picture coding method according to claim 7, wherein the screen complexity used in the step of determining the assigned code amount of the picture to be coded next is at least that the current picture is the detected picture. A moving image encoding method, characterized in that when it is determined based on the obtained scene change image information that the image is a scene change image or an image next to the scene change image, the estimated screen complexity of the current image is used.
【請求項11】請求項7乃至請求項10のいずれかに記
載された動画像符号化方法において、 前記発生符号量と前記実測画面複雑度、もしくは前記推
定画面複雑度から次に符号化する画像の割当符号量を決
定するステップは、前記実測画面複雑度の一定期間にお
ける平均値に対する前記推定画面複雑度の割合を、平均
割当符号量に乗ずることによって前記割当符号量を決定
することを特徴とする動画像符号化方法。
11. The moving picture coding method according to claim 7, wherein an image to be coded next based on the generated code amount and the measured screen complexity or the estimated screen complexity. Determining the allocated code amount of, the ratio of the estimated screen complexity to the average value of the measured screen complexity for a certain period, the average allocated code amount is determined by multiplying the average allocated code amount is determined. Moving image encoding method.
【請求項12】請求項7乃至請求項11のいずれかに記
載された動画像符号化方法において、 前記入力動画像または動き補償予測画像の符号化画像特
性を検出するステップは、前記入力動画像の画像特性を
検出するステップ、動き補償予測画像の誤差画像の画像
特性を検出するステップ、及び動き補償予測における動
きベクトル特性を検出するステップより構成され、 ピクチャタイプ(Iピクチャ、Pピクチャ、Bピクチャ)
別及び予測モード別の定数を、前記検出した入力動画像
の画像特性、動き補償予測画像の誤差画像の画像特性、
及び動き補償予測における動きベクトル特性の前記各特
性値に対して乗じた上で加算することによって、前記符
号化画像特性を決定し、 前記シーンチェンジ画像情報を検出するステップは、前
記現在の画像と前記それと同じピクチャタイプ(Iピク
チャ、Pピクチャ、Bピクチャ)の直前の画像の間で、 前記符号化画像特性を検出するステップによって検出さ
れた前記入力動画像の画像特性、動き補償予測画像の誤
差画像の画像特性、及び動き補償予測における動きベク
トル特性の前記各特性値の比を計算をし、前記特性値の
比が各特性値毎に定めた一定範囲を超えた場合に、前記
現在の画像をシーンチェンジ画像と判定し、 前記シーンチェンジ画像と同じピクチャタイプ(Iピク
チャ、Pピクチャ、Bピクチャ)の次の画像をシーンチ
ェンジ画像の次の画像と定めることを特徴とする動画像
符号化方法。
12. The moving picture coding method according to claim 7, wherein the step of detecting a coded picture characteristic of the input moving picture or the motion-compensated predicted picture comprises the step of: Detecting an image characteristic of an error image of the motion-compensated prediction image, and detecting a motion vector characteristic in the motion-compensated prediction. The picture type (I picture, P picture, B picture) )
Constants for different and prediction modes, the image characteristics of the detected input moving image, the image characteristics of the error image of the motion compensated prediction image,
By multiplying and adding each of the characteristic values of the motion vector characteristic in the motion compensation prediction, the encoded image characteristic is determined, and the step of detecting the scene change image information includes: The image characteristics of the input moving image detected by the step of detecting the coded image characteristics between the immediately preceding images of the same picture type (I picture, P picture, B picture), errors in the motion compensated prediction image The image characteristics of the image, and calculate the ratio of the respective characteristic values of the motion vector characteristics in the motion compensation prediction, if the ratio of the characteristic values exceeds a certain range defined for each characteristic value, the current image Is determined as a scene change image, and the next image of the same picture type (I picture, P picture, B picture) as the scene change image is determined as the scene change image. A moving picture coding method characterized in that it is determined as the next picture of an image.
JP2000042466A 2000-02-21 2000-02-21 Video encoding apparatus and method Expired - Fee Related JP3812267B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000042466A JP3812267B2 (en) 2000-02-21 2000-02-21 Video encoding apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000042466A JP3812267B2 (en) 2000-02-21 2000-02-21 Video encoding apparatus and method

Publications (2)

Publication Number Publication Date
JP2001238215A true JP2001238215A (en) 2001-08-31
JP3812267B2 JP3812267B2 (en) 2006-08-23

Family

ID=18565541

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000042466A Expired - Fee Related JP3812267B2 (en) 2000-02-21 2000-02-21 Video encoding apparatus and method

Country Status (1)

Country Link
JP (1) JP3812267B2 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100468726B1 (en) * 2002-04-18 2005-01-29 삼성전자주식회사 Apparatus and method for performing variable bit rate control in real time
WO2007116539A1 (en) 2006-03-30 2007-10-18 Fujitsu Limited Data transferring apparatus and data transferring method
WO2008053557A1 (en) * 2006-11-02 2008-05-08 Pioneer Corporation Moving picture re-encoding device, moving picture re-encoding method, moving picture re-encoding program, and recording medium containing the moving picture re-encoding program
JP2009232148A (en) * 2008-03-24 2009-10-08 Mega Chips Corp Transcoder
US7903732B2 (en) 2004-11-04 2011-03-08 Victor Company Of Japan, Ltd. Method and apparatus for encoding a moving-picture signal by calculating the complexity of the moving-picture signal
US8085679B2 (en) 2006-03-25 2011-12-27 Samsung Electronics Co., Ltd. Apparatuses and methods for controlling bit rates in variable bit rate video coding
JP2013128189A (en) * 2011-12-19 2013-06-27 Canon Inc Image encoder
US11323703B2 (en) 2018-07-03 2022-05-03 Nec Corporation Moving-image encoding device, moving-image encoding method, and program

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100468726B1 (en) * 2002-04-18 2005-01-29 삼성전자주식회사 Apparatus and method for performing variable bit rate control in real time
US7903732B2 (en) 2004-11-04 2011-03-08 Victor Company Of Japan, Ltd. Method and apparatus for encoding a moving-picture signal by calculating the complexity of the moving-picture signal
US8085679B2 (en) 2006-03-25 2011-12-27 Samsung Electronics Co., Ltd. Apparatuses and methods for controlling bit rates in variable bit rate video coding
WO2007116539A1 (en) 2006-03-30 2007-10-18 Fujitsu Limited Data transferring apparatus and data transferring method
WO2008053557A1 (en) * 2006-11-02 2008-05-08 Pioneer Corporation Moving picture re-encoding device, moving picture re-encoding method, moving picture re-encoding program, and recording medium containing the moving picture re-encoding program
JPWO2008053557A1 (en) * 2006-11-02 2010-02-25 パイオニア株式会社 Moving image re-encoding device, moving image re-encoding method, moving image re-encoding program, and recording medium storing moving image re-encoding program
JP2009232148A (en) * 2008-03-24 2009-10-08 Mega Chips Corp Transcoder
JP2013128189A (en) * 2011-12-19 2013-06-27 Canon Inc Image encoder
US11323703B2 (en) 2018-07-03 2022-05-03 Nec Corporation Moving-image encoding device, moving-image encoding method, and program

Also Published As

Publication number Publication date
JP3812267B2 (en) 2006-08-23

Similar Documents

Publication Publication Date Title
JP3954656B2 (en) Image coding apparatus and method
KR100391027B1 (en) A method and apparatus for predictive encoding of video information
EP1063851B1 (en) Apparatus and method of encoding moving picture signal
US7903732B2 (en) Method and apparatus for encoding a moving-picture signal by calculating the complexity of the moving-picture signal
JPH11346362A (en) Real time single path variable bit rate control method, and encoder
US20090097546A1 (en) System and method for enhanced video communication using real-time scene-change detection for control of moving-picture encoding data rate
JPH10336663A (en) Pre-processor for mpeg2 coding
JP2002010259A (en) Image encoding apparatus and its method and recording medium recording image encoding program
JP2001008215A (en) Dynamic image encoder and method therefor
JPH08102938A (en) Image coder
JP4362795B2 (en) Video encoding apparatus and method
JP4525878B2 (en) Video coding method
JP2001238215A (en) Moving picture coding apparatus and its method
JP3480067B2 (en) Image coding apparatus and method
JPH0998427A (en) Dynamic image encoding device
JP4362794B2 (en) Video encoding apparatus and method
JP3858520B2 (en) Video encoding apparatus and method
JP3812269B2 (en) Video encoding apparatus and method
US20060008004A1 (en) Video encoder
JP4362793B2 (en) Video encoding apparatus and method
US7133448B2 (en) Method and apparatus for rate control in moving picture video compression
JP2009188826A (en) Moving image encoder
KR100336497B1 (en) Rate Control Apparatus and Method Using Spatial Prediction Error Model for Moving Picture Coding
JP3428332B2 (en) Image encoding method and apparatus, and image transmission method
JP4142497B2 (en) Intra-frame rate control method, intra-frame rate control apparatus, moving picture encoding apparatus, and intra-frame rate control program in moving picture coding

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041124

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050405

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050606

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060509

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060522

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

Free format text: PAYMENT UNTIL: 20090609

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100609

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110609

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120609

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120609

Year of fee payment: 6

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20120609

Year of fee payment: 6

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: 20120609

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130609

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees