JP2001028753A - Dynamic image coder and its method - Google Patents

Dynamic image coder and its method

Info

Publication number
JP2001028753A
JP2001028753A JP19867299A JP19867299A JP2001028753A JP 2001028753 A JP2001028753 A JP 2001028753A JP 19867299 A JP19867299 A JP 19867299A JP 19867299 A JP19867299 A JP 19867299A JP 2001028753 A JP2001028753 A JP 2001028753A
Authority
JP
Japan
Prior art keywords
code amount
image
allocated
quantization scale
picture
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
JP19867299A
Other languages
Japanese (ja)
Other versions
JP4362795B2 (en
Inventor
Kazuhiko Morita
一彦 森田
Mitsuaki Fujiwara
光章 藤原
Takayuki Sugawara
隆幸 菅原
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 JP19867299A priority Critical patent/JP4362795B2/en
Publication of JP2001028753A publication Critical patent/JP2001028753A/en
Application granted granted Critical
Publication of JP4362795B2 publication Critical patent/JP4362795B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a method by which a code amount is assigned more properly between picture types even when an object average bit rate is closer to a maximum transfer rate in a variable bit rate control method adopting a 1-path or 2-path method for a dynamic image coder. SOLUTION: The dynamic image coder encoding a dynamic image is provided with a means 23 that detects a code quantity generated from the dynamic image, a means 22 that detects a mean quantization scale of the dynamic image, a means 25 that detects a coding image characteristic of at least the dynamic image in the dynamic image and a motion compensation prediction image generated by a motion compensation prediction means, a 1st code quantity control means 51 that calculates a 1st assignment code quantity of the image to be coded next on the basis of the generated code quantity and the average quantization scale, a 2nd code quantity control means 52 that calculates a 2nd assigned code quantity placing a limit onto the 1st assigned code quantity and a means 51 that decides the quantization scale of the image to be coded next on the basis of the 1st and 2nd assigned code quantities.

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 images, and more particularly to a code amount control apparatus and method suitable for performing variable bit rate coding.

【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”, and for each macroblock unit, a reference image separated by a predetermined number of frames before or after a time frame. A motion amount called a “motion vector” is obtained between encoded images, and “motion compensation prediction” is used to construct an encoded image from a reference image based on the motion amount.
Two types of image coding: a technology and a "transform coding" technology that compresses the amount of information using DCT (Discrete Cosine Transform), which is a type of orthogonal transform, for the error signal of motion compensation prediction or the coded image itself. It is stipulated based on the elemental technology.

【0003】従来のMPEG2の動画像符号化装置の一構成
例を図7に、また、符号化ピクチャ構造の一例を図6に
示す。動き補償予測では、図7に示した符号化ピクチャ
構造のように、 Iピクチャ(フレーム内符号化)、Pピク
チャ(順方向予測符号化)、Bピクチャ(双方向予測符号
化)と呼ばれる、予測方法の異なる3種類のピクチャの
組合せによって構成される。図7に示されるように、変
換符号化では、Iピクチャでは符号化画像そのものに対
し、P,Bピクチャでは動き補償予測器77による動き
補償予測の誤差信号である減算器71の出力に対して、
DCTがDCT器72で施される。
FIG. 7 shows an example of a configuration of a conventional MPEG2 moving image encoding apparatus, and FIG. 6 shows an example of an encoded picture structure. In the motion compensated prediction, as shown in the coded picture structure shown in FIG. 7, prediction called I picture (intra-frame coding), P picture (forward prediction coding), and B picture (bidirectional prediction coding) It is composed of a combination of three types of pictures different in method. As shown in FIG. 7, in the transform coding, the output of the subtracter 71 which is the error signal of the motion compensation prediction by the motion compensation predictor 77 is applied to the coded image itself in the case of the I picture and to the coded image itself in the case of the P and B pictures. ,
DCT is performed by the DCT unit 72.

【0004】このDCT器72で得られたDCT係数に
対して量子化が、符号量制御部90の出力により制御し
て量子化器73によってなされた後に、動きベクトル等
のその他の付帯情報と共に可変長符号化が可変長符号化
器75でなされ、符号列が「ビットストリーム」として
バッファ76に記憶された後に出力される。この際、バ
ッファ76の充足度に応じて符号量制御部90で量子化
スケールが制御される。一方、量子化器73の出力係数
は、逆量子化器77、IDCT器78に供給さて、局部
復号されてブロック毎にフレームメモリ81に貯えられ
る。
[0004] After the DCT coefficient obtained by the DCT unit 72 is quantized by the quantizer 73 under the control of the output of the code amount control unit 90, it is changed together with other accompanying information such as a motion vector. The long coding is performed by the variable length coder 75, and the coded sequence 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, locally decoded, and stored in a frame memory 81 for each block.

【0005】MPEG2は可変長符号化であるため、単位時
間当りの発生符号量(ビットレート)は一定ではない。そ
こで、量子化器73での量子化の際の量子化スケールを
マクロブロック単位に適宜変更することにより、所要の
ビットレートに制御することが可能になっている。MPEG
2 Test Model 5では、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 the bit rate to a required bit rate by appropriately changing the quantization scale at the time of quantization in the quantizer 73 for each macroblock. MPEG
2 In Test Model 5, a fixed bit rate control method that makes the generated code amount constant in GOP units has been proposed.

【0006】Test Model 5ではピクチャタイプによって
異なる符号量割当が行われる。フレーム内符号化が行わ
れるIピクチャに対しては最も多くの符号量を割り当て
る一方、復号画像が再度予測に使われることのないBピ
クチャの量子化スケールをI及びPピクチャの1.4倍にし
て、割り当てる符号量を一層少なくすることによって、
Bピクチャに対する符号量を削減し、その分を復号画像
が予測に使われるI及びPピクチャに多く割り当てて、
復号画像の画質がピクチャタイプ間で一定になるよう
に、ピクチャタイプによる符号量割当の最適化を図って
いる。
In Test Model 5, a different code amount is assigned depending on the picture type. While assigning the largest amount of code to I-pictures in which intra-frame encoding is performed, the quantization scale of B-pictures in which decoded images are not used for prediction again is set to 1.4 times that of I- and P-pictures. By reducing the amount of code to be allocated,
By reducing the amount of code for the B picture and allocating that much to the I and P pictures for which the decoded image is used for prediction,
Optimization of code amount allocation according to the picture type is performed so that the image quality of the decoded image is constant among the picture types.

【0007】このTest Model 5における固定ビットレー
ト制御方法は、一定の転送レートが要求される用途に対
しては有効な方法である。しかし、動画像シーケンスの
どの部分に対してもほぼ同じ符号量が割り当てられるた
め、情報量を多く含む複雑なシーンに対しては十分な符
号量が与えられずに画質劣化が生じてしまう。これに対
して、情報量が少ない単純なシーンの場合には符号量が
余剰になって無駄が生じ、DVD-Videoのように可変転送
レートが可能な用途に対しては、適切なレート制御方法
とは言えなかった。
[0007] The fixed bit rate control method in Test Model 5 is an effective method for applications requiring a constant transfer rate. However, since almost the same code amount is assigned to any part of the moving image sequence, a sufficient code amount is not provided to a complex scene including a large amount of information, resulting in image quality deterioration. On the other hand, in the case of a simple scene with a small amount of information, the code amount becomes excessive and wasteful, and an appropriate rate control method is used for applications where a variable transfer rate is possible such as DVD-Video. I couldn't say.

【0008】以上のような問題を解決するレート制御方
法が可変ビットレート制御方法である。特開平6−14
1298号公報には、可変ビットレート制御による符号
化装置が開示されている。この装置では、最初に、入力
動画像に対して固定量子化スケールによって仮符号化を
行い、単位時間毎に発生符号量がカウントされる。つぎ
に、入力動画像全体の発生符号量が所要値になるよう
に、仮符号化時の発生符号量に基づいて各部分の目標転
送レートを設定する。そしてこの目標転送レートに合致
するように制御を行いながら、入力動画像に対して2回
目の符号化、言い換えると実符号化が行われる。
[0008] A variable bit rate control method is a rate control method that solves the above problems. JP-A-6-14
No. 1298 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.

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

【0010】これに対し、動画像をほぼリアルタイムで
符号化するための可変ビットレート制御方法、すなわち
1パス方式の可変ビットレート制御方法も存在する。特
開平10−164577号公報には、1パス方式の可変
ビットレート制御方法による符号化装置が前記公報の図
6等に開示されている。
On the other hand, there is also a variable bit rate control method for encoding a moving picture in almost 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.

【0011】この従来例における動画像符号化装置の一
構成例を図8に示す。なお、図7と同一構成部に対して
は同一符号を付してその説明は省略する。この従来例の
装置では、バッファ76に記憶した符号量を発生符号量
検出器83に供給し、この発生符号量検出器83による
発生符号量と、量子化器73からの量子化スケールを平
均量子化スケール検出器82に供給し、この平均量子化
スケール検出器82による画面内の量子化スケールの平
均値との積を「画面複雑度」として画面複雑度算出器8
4で求め、過去の画面複雑度の平均値に対する現在の画
面複雑度の割合を基に、画面の目標発生符号量または目
標量子化スケールを決定することにより、可変ビットレ
ート制御を符号量制御器74で実現している。
FIG. 8 shows an example of the configuration of the conventional moving picture coding apparatus. The same components as those in FIG. 7 are denoted by the same reference numerals, and description thereof will be omitted. In this conventional device, the code amount stored in the buffer 76 is supplied to the generated code amount detector 83, and the generated code amount by the generated code amount detector 83 and the quantization scale from the quantizer 73 are averaged. Is supplied to the quantization scale detector 82, and the product of the average quantization scale detector 82 and the average value of the quantization scales in the screen is defined as "screen complexity".
4 to determine a target code amount or a target quantization scale of the screen based on the ratio of the current screen complexity to the average value of the past screen complexity, thereby performing variable bit rate control on the code amount controller. 74.

【0012】[0012]

【発明が解決しようとする課題】しかしながら可変ビッ
トレート制御の場合、多くの場合は最大転送レートによ
る制限を受ける。目標平均ビットレートが最大転送レー
トより充分に小さい場合は、Test Model 5のようにBピ
クチャに対する符号量割当をI及びPピクチャよりも小
さくして、ピクチャタイプ間の符号量割当を最適化する
ことが可能である。
However, variable bit rate control is often limited by the maximum transfer rate. If the target average bit rate is sufficiently smaller than the maximum transfer rate, optimize the code amount allocation between picture types by making the code amount allocation for B pictures smaller than I and P pictures as in Test Model 5. Is possible.

【0013】目標平均ビットレートが最大転送レートに
近くなると、I及びPピクチャの割当符号量が最大転送
レートによる制限を受けるようになり、Bピクチャとの
割当符号量の差が縮小し、時には割当符号量がピクチャ
タイプ間でほとんど同じになってしまう。割当符号量の
差が小さくなってしまうと、Bピクチャに比べ、I及び
Pピクチャの画質が相対的に悪くなり、目標平均ビット
レートが高いにもかかわらず、不適切な符号量配分に起
因する画質の差によって画質劣化が知覚されてしまうと
いった問題があった。
When the target average bit rate approaches the maximum transfer rate, the allocated code amounts of the I and P pictures are restricted by the maximum transfer rate, and the difference between the allocated code amounts with the B pictures is reduced. The code amount becomes almost the same between picture types. If the difference in the allocated code amount becomes small, the image quality of the I and P pictures becomes relatively worse than that of the B picture, and this is caused by inappropriate code amount distribution despite the high target average bit rate. There is a problem that image quality degradation is perceived due to the difference in image quality.

【0014】そこで本発明は、動画像符号化装置におけ
る1パス及び2パス方式の可変ビットレート制御方法に
おいて、目標平均ビットレートが最大転送レートに近い
場合においても、ピクチャタイプ間でより適切な符号量
割当を実現する方法を提供することを目的とする。
Accordingly, the present invention provides a method for controlling a variable bit rate of a one-pass or two-pass scheme in a moving picture coding apparatus, wherein even if a target average bit rate is close to a maximum transfer rate, more appropriate codes can be used between picture types. It is an object to provide a method for realizing a quota.

【0015】[0015]

【課題を解決するための手段】本発明では、MPEG2等の
動き補償予測、直交変換、量子化、及び可変長符号化の
各手段を備えた動画像符号化装置において、各画像の発
生符号量と平均量子化スケールを検出する手段、得られ
た発生符号量と平均量子化スケールから次に符号化する
画像の割当符号量を決定する第1の符号量制御手段と、
ピクチャタイプ毎に第1の符号量制御手段で得られる割
当符号量に制限を加えるための第2の符号量制御手段を
有することを特徴とする。例えば、可変ビットレート制
御による符号量割当を行う場合、第1の符号量制御手段
では可変ビットレート制御による割当符号量を求め、第
2の符号量制御手段では最高転送レートの固定ビットレ
ート制御による割当符号量の上限を求める。実際に各画
像に割当てる符号量は、第1の符号量制御手段で得られ
た割当符号量が第2の符号量制御手段で得られる割当符
号量の上限を上回った場合のみ、その上限を実際の割当
符号量とし、それ以外の場合は第1の符号量制御手段で
得られた割当符号量を実際の割当符号量とする。これに
よって、目標平均ビットレートが最大転送レートに近い
場合においても、Bピクチャに不必要に多くの符号量を
与えることもなく、ピクチャタイプ間の符号量割当を最
適に保持することが可能になる。
According to the present invention, there is provided a moving picture coding apparatus having motion compensation prediction such as MPEG2, orthogonal transform, quantization, and variable length coding. Means for detecting an average quantization scale, first code amount control means for determining an assigned code amount of an image to be encoded next from the obtained generated code amount and the average quantization scale,
The present invention is characterized in that it has a second code amount control means for limiting the allocated code amount obtained by the first code amount control means for each picture type. For example, when code amount allocation is performed by variable bit rate control, the first code amount control means obtains the allocated code amount by variable bit rate control, and the second code amount control means performs fixed bit rate control of the maximum transfer rate. The upper limit of the allocated code amount is obtained. The code amount actually allocated to each image is set to the upper limit only when the allocated code amount obtained by the first code amount control means exceeds the upper limit of the allocated code amount obtained by the second code amount control means. In other cases, the allocated code amount obtained by the first code amount control means is set as the actual allocated code amount. As a result, even when the target average bit rate is close to the maximum transfer rate, it is possible to optimally hold the code amount allocation between picture types without giving an unnecessarily large code amount to the B picture. .

【0016】また、上記の動画像符号化装置で、各画像
の発生符号量と平均量子化スケールの積に所定の操作を
施して得られる画面複雑度を用いて、1パス方式の可変
ビットレート制御を行う場合、画面複雑度を因数とする
所定の関数を設定し、この関数を前記の第2の符号量制
御手段で得られる割当符号量の上限に乗じて割当符号量
の上限を変更することにより、割当符号量の上限に近い
部分における符号量の増大を抑制すると共に、割当符号
量の上限を超えた点での画質変動を緩和することが可能
になる。
In the above moving picture coding apparatus, a variable bit rate of a one-pass system is obtained by using a screen complexity obtained by performing a predetermined operation on a product of a generated code amount of each picture and an average quantization scale. When performing control, a predetermined function having the screen complexity as a factor is set, and this function is multiplied by the upper limit of the allocated code amount obtained by the second code amount control means to change the upper limit of the allocated code amount. Accordingly, it is possible to suppress an increase in the code amount in a portion near the upper limit of the allocated code amount, and to alleviate a change in image quality at a point where the upper limit of the allocated code amount is exceeded.

【0017】また、上記の動画像符号化装置を応用し
て、1つの符号化ビットストリームを2つの復号系で共
用する場合、例えばビットストリーム全体ではI, P,
Bピクチャ全て使った通常の符号化で、1つの復号系は
ビットストリーム全体を復号し、もう1つの復号系では
IとPピクチャのみを復号する時、第1の符号量制御手
段ではビットストリーム全体の符号量を制御し、第2の
符号量制御手段ではIとPピクチャのみのビットストリ
ーム部分の符号量を制御して、I,Pピクチャの符号量
を第2の符号量制御手段で得られる割当符号量に制限し
ながら、第1の符号量制御手段の符号量割当を行うこと
により、1つの符号化装置で2つの復号系において復号
可能な符号化を行うことが可能である。
Further, when one coded bit stream is shared by two decoding systems by applying the above moving picture coding apparatus, for example, I, P,
In normal coding using all B pictures, one decoding system decodes the entire bit stream, and the other decoding system decodes only I and P pictures. And the second code amount control means controls the code amount of the bit stream portion of only the I and P pictures, and the code amounts of the I and P pictures can be obtained by the second code amount control means. By performing the code amount allocation of the first code amount control means while limiting to the allocated code amount, it is possible to perform coding that can be decoded by two decoding systems with one coding device.

【0018】[0018]

【発明の実施の形態】本発明の動画像符号化装置の第1
の実施例について、図1と共に以下に説明する。図1に
示したように、本発明の動画像符号化装置及びその方法
の第1の実施例は、減算器11、DCT器12、量子化
器13、可変長符号化器15、バッファ16、逆量子化
器17、IDCT器18、動き補償予測器19、加算器
20、フレームメモリ21、平均量子化スケール検出器
22、発生符号量検出器23、画面複雑度算出器24、
画像特性検出器25、VBR符号量制御器51、及びC
BR符号量制御器52より構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First Embodiment
Will be described below with reference to FIG. As shown in FIG. 1, a first embodiment of the moving picture coding apparatus and method according to the present invention includes a subtractor 11, a DCT unit 12, a quantizer 13, a variable length coder 15, a buffer 16, Inverse quantizer 17, IDCT unit 18, motion compensation predictor 19, adder 20, frame memory 21, average quantizer scale detector 22, generated code amount detector 23, screen complexity calculator 24,
Image characteristic detector 25, VBR code amount controller 51, and C
A BR code amount controller 52 is provided.

【0019】原動画像は画像ブロック分割器(図示せ
ず)によって、予めマクロブロック単位に分割されてい
るものとする。分割された原動画像は、Iピクチャにつ
いては動き補償予測が行われず、原動画像ブロックその
ものが減算器11を介して直交変換器の一種であるDC
T器12に送られ、DCTされた後に量子化器13で符
号量制御器14から送られる量子化スケールによって量
子化される。
It is assumed that the original image is divided in advance into macroblock units by an image block divider (not shown). With respect to the divided source image, motion compensation prediction is not performed for an I picture, and the source image block itself passes through a subtractor 11 to a DC which is a type of an orthogonal transformer.
After being sent to the T unit 12 and subjected to DCT, it is quantized by the quantizer 13 by the quantization scale sent from the code amount controller 14.

【0020】その量子化された信号は、可変長符号化器
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 not added by the adder 20. Stored in

【0021】P及びBピクチャについては、分割された
原動画像とフレームメモリ21に貯えられた所定の局部
復号画像ブロックが動き補償予測器19に供給され、こ
こで動きベクトル検出及び動き補償が行われて、予測画
像ブロックが減算器11で原画像ブロックとの間で画素
間差分が取られ、差分値である誤差画像ブロックがDC
T器12に送られる。
For the P and B pictures, the divided original moving picture and a predetermined locally decoded picture block 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, a difference between pixels of the predicted image block and the original image block is calculated by the subtractor 11, and the error image block, which is the difference value, is calculated by DC.
It is sent to the T unit 12.

【0022】この後はIピクチャと同様にして、DCT
器12で差分値がDCTされ、量子化器13で符号量制
御器14から送られる量子化スケールによって量子化さ
れた後に、可変長符号化器15で符号に変換されて、つ
ぎのバッファ16で調整された後に符号が出力される。
Thereafter, the DCT is performed in the same manner as the I picture.
The difference value is subjected to DCT by the encoder 12, quantized by the quantizer 13 by the quantization scale sent from the code amount controller 14, converted into a code by the variable length encoder 15, and then converted by the next buffer 16. The code is output after the adjustment.

【0023】量子化器13の出力係数は、逆量子化器1
7とIDCT器18とで局部復号された後に、動き補償
予測器19からの前記予測画像ブロックが加算器20に
よって画素毎に加算され、ブロック毎にフレームメモリ
21に貯えられる。また、各ピクチャについて、量子化
器13からマクロブロック毎の量子化スケールが平均量
子化スケール検出器22に送られ、そこで1フレーム分
の量子化スケールが加算され、1フレームの平均量子化
スケールが算出される。
The output coefficient of the quantizer 13 is the inverse quantizer 1
After local decoding by the IDCT unit 7 and the IDCT unit 18, the predicted image block from the motion compensation predictor 19 is added for each pixel by an adder 20, and is stored in the frame memory 21 for each block. For each picture, the quantizer 13 sends the quantization scale for each macroblock 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. Is calculated.

【0024】一方、バッファ16においては、発生符号
量が監視され、その値が発生符号量検出器23に送られ
る。この発生符号量検出器23において、発生符号量が
フレーム単位に加算され、1フレームの発生符号量が検
出される。フレーム毎について検出された平均量子化ス
ケール、発生符号量は画面複雑度算出器24とCBR符
号量制御器52に夫々送られる。
On the other hand, the generated code amount is monitored in the buffer 16, and the value is sent 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. The average quantization scale and the generated code amount detected for each frame are sent to the screen complexity calculator 24 and the CBR code amount controller 52, respectively.

【0025】一方、画像特性検出器25では、分割され
た原画像が入力され、原画像の各フレームについてマク
ロブロック単位に画像特性を示すパラメータ、すなわち
アクティビティが検出され、フレーム単位に加算されて
その結果が画面複雑度算出器24に送られる。
On the other hand, the image characteristic detector 25 receives the divided original image, detects a parameter indicating an image characteristic for each frame of the original image in units of macroblocks, that is, an activity, adds the parameters for each frame, and adds the activity. The result is sent to the screen complexity calculator 24.

【0026】すなわち、画像特性検出器25への入力
は、Iピクチャの場合は動き補償予測が行われないた
め、マクロブロック単位に分割された原動画像のみが入
力され、マクロブロック単位に画像特性を示すパラメー
タであるアクティビティ(ACTcur)が検出され、フレーム
単位に加算され、IピクチャのアクティビティACTiとし
て画面複雑度算出器24に送られる。
That is, as for the input to the image characteristic detector 25, since motion compensation prediction is not performed in the case of an I picture, only the original moving image divided in macroblock units is input, and the image characteristics are determined in macroblock units. The activity (ACTcur), which is a parameter to be indicated, is detected, added for each frame, and sent to the screen complexity calculator 24 as an I-picture activity ACTi.

【0027】アクティビティ(ACTcur)としては輝度値の
分散、画素間差分値などが考えられるが、画像特性を示
すものであればその他のパラメータでも良い。
As the activity (ACTcur), variance of luminance value, difference value between pixels and the like can be considered, but other parameters may be used as long as they show image characteristics.

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

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

【0030】そして、各マクロブロック毎に次式(1)の
演算により、ACTmbが算出され、それが1フレーム分加算
されて、P及びBピクチャのアクティビティACTp及びAC
Tbとして画面複雑度算出器24に送られる。
Then, ACTmb is calculated for each macroblock by the operation of the following equation (1), and ACTmb is added for one frame, and the activities ACTp and AC of the P and B pictures are calculated.
It is sent to the screen complexity calculator 24 as Tb.

【0031】 ACTmb=a・ACTcur+b・ACTpred +c・ACTmv (1)ACTmb = a · ACTcur + b · ACTpred + c · ACTmv (1)

【0032】なお、各定数a、b、cの値はピクチャ
別、マクロブロックの予測モード別(イントラか片方向
予測か双方向予測か)などで変化させる。例えば、イン
トラの場合はIピクチャと同様に予測を行わないので、
b=c=0となり、予測を行うブロックに比べて発生符
号量が多くなると考えられるので、aの値を大きくす
る。
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 like an I picture.
Since b = c = 0, and it is considered that the generated code amount is larger than that of the block to be predicted, the value of a is increased.

【0033】このように、予測モード等に即したアクテ
ィビティ検出を行うことにより、より符号化特性に即し
た画面複雑度の推定が可能になる。
As described above, by detecting the activity in accordance with the prediction mode or the like, it is possible to estimate the screen complexity more in accordance with the encoding characteristics.

【0034】画面複雑度算出器24では供給された各フ
レームの平均量子化スケールと発生符号量が乗算された
後に乗算結果に所定の変換が施されて、各フレームの
(過去の)画面複雑度として求められる。画面複雑度は符
号化ピクチャタイプ別に一定期間内の値が加算された後
にその期間内の同じピクチャタイプのフレーム数で除算
されて、各ピクチャタイプの平均画面複雑度 Xi-ave, X
p-ave, Xb-ave が算出される。
The screen complexity calculator 24 multiplies the supplied average quantization scale of each frame by the generated code amount, performs a predetermined conversion on the multiplication result, and performs
Required as (past) screen complexity. The screen complexity is calculated by adding the value within a certain period for each coded picture type and then dividing by the number of frames of the same picture type within that period, and the average screen complexity of each picture type Xi-ave, X
p-ave and Xb-ave are calculated.

【0035】ここで言う一定期間内は、符号化の終了し
たばかりの画像から時間的に前に予め定めるフレーム
数、例えば15フレームとか、300フレームといった
一定のフレーム数の場合もあり、符号化開始フレームか
ら符号化の終了したばかりの画像までのように、順次フ
レーム数が増加する場合もある。なお、前者の一定フレ
ーム数の場合でも、符号化したフレーム数が定めた一定
期間を満たさない場合は後者と同様に順次フレーム数が
増加していくことになる。
During the certain period, the number of frames predetermined in time before the picture for which coding has just been completed, for example, a certain number of frames such as 15 frames or 300 frames, may be used. 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.

【0036】これから符号化する現在の画像の画面複雑
度Xk-c (k= i, p, b) は、現在の画像のアクティビテ
ィをACTk (k= i, p, b)、直前に符号化した同じピクチ
ャタイプの画像の画面複雑度 Xk-p (k= i, p, b)、ア
クティビティACTk-p (k= i,p, b)より下記の式(2)で推
定出来る。
The screen complexity Xk-c (k = i, p, b) of the current image to be encoded is obtained by encoding the activity of the current image immediately before ACTk (k = i, p, b). The screen complexity Xk-p (k = i, p, b) and the activity ACTk-p (k = i, p, b) of an image of the same picture type can be estimated by the following equation (2).

【0037】 Xk-c= Xk-p・ACTk/ACTk-p (2)Xk-c = Xk-p · ACTk / ACTk-p (2)

【0038】なお、初期状態において、同じピクチャタ
イプの符号化の終了したフレームが存在しない場合は予
めいくつかの画像で各ピクチャタイプの画像の画面複雑
度とアクティビティを求めておき、それを平均的な動画
像の発生頻度に合わせて統計的に平均してそれを初期値
とすればよい。
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 picture are obtained in advance for some pictures, and these are averaged. 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.

【0039】各ピクチャタイプの平均画面複雑度 Xi-av
e, Xp-ave, Xb-aveと、これから符号化する現在の画像
の推定画面複雑度 Xi-c, Xp-c, Xb-c はVBR符号量制御
器51に送られ、ここで可変ビットレート制御のための
量子化スケールの設定が行われる。目標平均ビットレー
トをBitRate、1秒当りのフレーム数をPictureRate、1
つの符号化単位である1GOP(通常はIピクチャの間隔)の
フレーム数をNとすると、1GOPの平均割当符号量Raveは
次式(3)で与えられる。
Average screen complexity of each picture type Xi-av
e, Xp-ave, Xb-ave and the estimated screen complexity Xi-c, Xp-c, Xb-c of the current image to be encoded are sent to the VBR code amount controller 51, where the variable bit rate The quantization scale for control is set. Target average bit rate is BitRate, number of frames per second is PictureRate, 1
Assuming that the number of frames in one GOP (usually the interval between I pictures), which is one coding unit, is N, the average allocated code amount Rave of one GOP is given by the following equation (3).

【0040】 Rave = (BitRate/PictureRate)・N (3)Rave = (BitRate / PictureRate) · N (3)

【0041】上式のRaveは平均画面複雑度の時の1GOPの
必要割当符号量とすると、これから符号化する現在の画
像を含む1GOPの画像が一様に前記画面複雑度算出器24
で求めた現在の画像の推定画面複雑度に等しいと仮定す
ると、画質を一定に保持す場合に必要な1GOPの必要割当
符号量Rck (k= i, p, b) は次式(4)で与えられる。
If Rave in the above equation is the required allocated code amount of 1 GOP at the time of the average screen complexity, the 1 GOP image including the current image to be coded from now on is uniformly calculated by the screen complexity calculator 24.
Assuming that it is equal to the estimated screen complexity of the current image obtained in the above, the required allocated code amount Rck (k = i, p, b) of 1 GOP required to keep the image quality constant is given by the following equation (4). Given.

【0042】 Rck= Rave・Xk-c/Xk-ave (4)Rck = Rave · Xk-c / Xk-ave (4)

【0043】上式のRck (k= i, p, b)を1GOPの各ピク
チャに適切に割り振ることにより、これから符号化する
現在の画像の第1の符号量制御手段における目標符号量
を算出する。例としてMPEG2 Test Model 5の目標符号量
割当方法を以下に挙げるが、これ以外の方法を用いても
よい。
By appropriately allocating Rck (k = i, p, b) in the above equation to each picture of 1 GOP, the target code amount in the first code amount control means of the current image to be encoded is calculated. . As an example, a target code amount allocation method of MPEG2 Test Model 5 is described below, but other methods may be used.

【0044】1GOPに含まれるP、Bピクチャのフレーム数
をNp、Nb、Iピクチャに対するP、Bピクチャの量子化
スケールの設定比率をKp、Kbとする。この時、各ピクチ
ャタイプの目標割当符号量Ti, Tp, Tbは次式(5)(6)(7)
で与えられる。なお、MAX[a, b]はaとbのいずれか大
きい方を選択する動作を示す。また、Xi, Xp, Xbはここ
では直前に符号化したピクチャの画面複雑度(当該ピク
チャの平均量子化スケールと発生符号量の積)である。
It is assumed that the number of frames of P and B pictures included in one GOP is Np and Nb, and the quantization scale setting ratio of P and B pictures to I picture is Kp and Kb. At this time, the target allocation code amounts Ti, Tp, and Tb of each picture type are expressed by the following equations (5), (6), and (7).
Given by Note that MAX [a, b] indicates an operation of selecting the larger one of a and b. Xi, Xp, and Xb are the screen complexity (product of the average quantization scale of the picture and the generated code amount) of the picture coded immediately before.

【0045】 (Iピクチャ) Ti= MAX[ A , B ] A = Rc / ( 1+Np・Xp/(Xi・Kp)+Nb・Xb/(Xi・Kb) ) B = BitRate /(8・PictureRate) (5)(I picture) Ti = MAX [A, B] A = Rc / (1 + Np.Xp / (Xi.Kp) + Nb.Xb / (Xi.Kb)) B = BitRate / (8.PictureRate ) (Five)

【0046】 (Pピクチャ) Tp= MAX[ C ,D ] C = Rc / ( Np+Nb・Kp・Xb / (Kb・Xp) ) D = BitRate /(8・PictureRate) (6)(P picture) Tp = MAX [C, D] C = Rc / (Np + NbKpXb / (KbXp)) D = BitRate / (8PictureRate) (6)

【0047】 (Bピクチャ) Tb= MAX[ E , F ] E = Rc /( Np+Np・Kb・Xp/(Kp・Kb) ) F = BitRate /(8・PictureRate) (7)(B picture) Tb = MAX [E, F] E = Rc / (Np + NpKbXp / (KpKb)) F = BitRate / (8PictureRate) (7)

【0048】一方、CBR符号量制御器52ではフレーム
単位の平均量子化スケール、発生符号量が入力され、両
者の積から直前に符号化したピクチャの画面複雑度Xi,
Xp,Xbを求めて、BitRateが最高転送レート(BitRateMax)
の時の各ピクチャタイプの目標割当符号量Ti-max, Tp-m
ax, Tb-maxを第1の符号量制御手段における目標割当符
号量Ti, Tp, Tbと同様に求める。ここで、1GOPの平均割
当符号量Rav-maxは各ピクチャ共通で、次式(8)で与えら
れる。
On the other hand, the CBR code amount controller 52 receives the average quantization scale and the generated code amount for each frame, and calculates the screen complexity Xi,
BitRate is the highest transfer rate (BitRateMax) in search of Xp and Xb
Target code amount Ti-max, Tp-m for each picture type
ax, Tb-max are obtained in the same manner as the target assigned code amounts Ti, Tp, Tb in the first code amount control means. Here, the average allocated code amount Rav-max of one GOP is common to each picture and is given by the following equation (8).

【0049】 Rav-max= (BitRateMax/PictureRate)・N (8) よって、Rav-max = (BitRateMax / PictureRate) · N (8)

【0050】 (Iピクチャ) Ti-max= MAX[ A , B ] A = Rav-max / ( 1+Np・Xp/(Xi・Kp)+Nb・Xb/(Xi・Kb) ) B = BitRateMax /(8・PictureRate) (9)(I picture) Ti-max = MAX [A, B] A = Rav-max / (1 + Np.Xp / (Xi.Kp) + Nb.Xb / (Xi.Kb)) B = BitRateMax / (8 · PictureRate) (9)

【0051】 (Pピクチャ) Tp-max = MAX[ C ,D ] C = Rav-max / ( Np+Nb・Kp・Xb / (Kb・Xp) ) D = BitRateMax /(8・PictureRate) (10)(P picture) Tp-max = MAX [C, D] C = Rav-max / (Np + Nb · Kp · Xb / (Kb · Xp)) D = BitRateMax / (8 · PictureRate) (10)

【0052】 (Bピクチャ) Tb-max = MAX[ E , F ] E = Rav-max /( Np+Np・Kb・Xp/(Kp・Kb) ) F = BitRateMax /(8・PictureRate) (11)(B picture) Tb-max = MAX [E, F] E = Rav-max / (Np + NpKbXp / (KpKb)) F = BitRateMax / (8PictureRate) (11)

【0053】上式のTi-max, Tp-max, Tb-maxは、すなわ
ち、第2の符号量制御手段における目標割当符号量の上
限であり、これらの値はVBR符号量制御器51に送られ
て、前記した符号化する現在の画像の当該ピクチャタイ
プについて、前記したTi, Tp, Tbの値はTi-max, Tp-ma
x, Tb-maxの値でリミッタがかけられ、現在の画像の目
標割当符号量が決定する。
In the above equation, Ti-max, Tp-max, and Tb-max are the upper limits of the target allocated code amount in the second code amount control means, and these values are transmitted to the VBR code amount controller 51. The value of Ti, Tp, Tb is Ti-max, Tp-ma for the picture type of the current image to be encoded.
A limiter is applied based on the values of x and Tb-max, and the target assigned code amount of the current image is determined.

【0054】上のようにして決定した目標割当符号量
と、バッファ16で検出される各マクロブロックの発生
符号量をもとに、MPEG2 Test Model 5の方法を用いて各
マクロブロックの量子化スケールを決定する。
Based on the target allocated code amount determined as described above and the generated code amount of each macroblock detected in the buffer 16, the quantization scale of each macroblock is determined using the MPEG2 Test Model 5 method. To determine.

【0055】なお、画像特性検出器25からは符号量制
御器51へも各マクロブロックのアクティビティACTcur
が送られ、MPEG2 Test Model 5におけるアクティビティ
に基づいて各マクロブロックの量子化スケールを変更す
る適応量子化制御に使用されるが、この適応量子化制御
は行わなくてもよい。またこれとは全く異なる方法で各
マクロブロックの量子化スケールを決定してもよい。
The activity ACTcur of each macroblock is also transmitted from the image characteristic detector 25 to the code amount controller 51.
Is transmitted and used for adaptive quantization control that changes the quantization scale of each macroblock based on the activity in MPEG2 Test Model 5, but this adaptive quantization control may not be performed. Alternatively, the quantization scale of each macroblock may be determined by a completely different method.

【0056】符号量制御器51から出力される各マクロ
ブロックの量子化スケールが量子化器13に送られ、現
在の画像(DCT後の分割された原画像または動き補償
予測の誤差画像ブロック)がこの量子化スケールで量子
化され、可変長符号化されてバッファ16で調整された
後に符号が出力される。
The quantization scale of each macroblock output from the code amount controller 51 is sent to the quantizer 13, and the current image (an original image after DCT or an error image block for motion compensation prediction) is converted After being quantized by this quantization scale, variable-length coded and adjusted by the buffer 16, a code is output.

【0057】マクロブロック毎の量子化スケール、バッ
ファ16で監視される発生符号量がそれぞれ、平均量子
化スケール検出器22、発生符号量検出器23に送ら
れ、次のピクチャの符号量制御に使用される。
The quantization scale for each macroblock 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 are used for controlling the code amount of the next picture. Is done.

【0058】なお、上の説明では、CBR符号量制御器52
における1GOPの平均割当符号量Rav-maxを、単純に最高
転送レート(BitRateMax)の時に1GOPに割当てられる符号
量として計算していた。これに対して、これから符号化
する現在の画像の推定画面複雑度Xk-c (k= i,p, b)を
因数とする、図2 (a)のような所定の関数、例えば、現
在の画像の推定画面複雑度Xk-cが増大するとその値が限
りなく1に近付く関数f(Xk-c)を設定する。
In the above description, the CBR code amount controller 52
, The average allocated code amount Rav-max of one GOP is simply calculated as the code amount allocated to one GOP at the maximum transfer rate (BitRateMax). On the other hand, a predetermined function as shown in FIG. 2 (a), which is based on the estimated screen complexity Xk-c (k = i, p, b) of the current image to be encoded, When the estimated screen complexity Xk-c of the image increases, a function f (Xk-c) whose value approaches 1 infinitely is set.

【0059】ピクチャタイプ毎にこの関数を乗算した次
式(12)のRav-max'をRav-maxの代りに使用することによ
り、図2(b)に示されるように、各ピクチャタイプの最
高転送レートに近い場合の発生符号量を徐々に押さえる
と共に、最高転送レートを超えた点で画面複雑度と割当
符号量の関係が不連続になることから生ずる、当該ピク
チャタイプの画質劣化が顕著になる問題を押えることも
可能となる。
By using Rav-max ′ in the following equation (12) obtained by multiplying this function for each picture type instead of Rav-max, as shown in FIG. Along with gradually reducing the amount of generated code when the transfer rate is close to the transfer rate, image quality degradation of the picture type caused by the discontinuity of the relationship between the screen complexity and the allocated code amount at the point where the maximum transfer rate is exceeded is remarkable. It is also possible to suppress certain problems.

【0060】 Rav-max' =f(Xk-c)・(BitRateMax/PictureRate)・N ここでf(Xk-c)は図2(a)に示す関数(k=i, p, b) (12)Rav-max ′ = f (Xk−c) · (BitRateMax / PictureRate) · N where f (Xk−c) is a function (k = i, p, b) shown in FIG. )

【0061】つぎに、本発明の動画像符号化装置の第2
の実施例について、以下に図3と共に説明する。第2の
実施例では、2パス方式の可変ビットレート符号量制御
に本発明を適用した場合である。原画像入力〜可変長符
号化器15で符号に変換されるまでの基本的な符号化部
分は第1の実施例と同一である。大きく異なるのは1つ
の画像について、符号化動作が2回(またはそれ以上)行
われ、最初に仮符号化が行われ、その発生符号量の結果
を基に2回目の符号化が行われるため、両者の符号化動
作に異なる部分があることである。
Next, the second embodiment of the moving picture coding apparatus of the present invention will be described.
Will be described below with reference to FIG. In the second embodiment, the present invention is applied to variable bit rate code amount control of the two-pass system. The basic encoding portion from the input of the original image to the conversion to the code by the variable length encoder 15 is the same as that of the first embodiment. The major difference is that, for one image, the encoding operation is performed twice (or more), the temporary encoding is performed first, and the second encoding is performed based on the result of the generated code amount. And that there is a difference between the two encoding operations.

【0062】1回目の符号化では、量子化器13に送ら
れる量子化スケールはVBR符号量制御器51から送られ
るのではなく、スイッチSW1を介して仮符号化量子化ス
ケール設定器56から一定の値(6とか8といった値)が
送られ、これにより固定値の量子化が行われる。そして
可変長符号化器15において可変長符号化が行われた後
のビットストリームはそれを外部に出力するためのバッ
ファ16に送られず、スイッチSW2を介して仮符号化発
生符号量検出器53に送られて、1回目の符号化におけ
る各画像の発生符号量が検出される。
In the first encoding, the quantization scale sent to the quantizer 13 is not sent from the VBR code amount controller 51 but is fixed from the provisional encoding quantization scale setting unit 56 via the switch SW1. (A value such as 6 or 8) is sent, and thereby a fixed value is quantized. Then, the bit stream after the variable length encoding is performed in the variable length encoder 15 is not sent to the buffer 16 for outputting the bit stream to the outside, and the provisional encoding generated code amount detector 53 is output via the switch SW2. And the generated code amount of each image in the first encoding is detected.

【0063】発生符号量は順次仮符号化発生符号量検出
器53から仮転送レートメモリ54に送られ、所定期間
毎に加算されて、仮転送レートが算出される。この操作
が1つの画像シーケンスの符号化が終了するまで行わ
れ、仮転送レートメモリ54には所定期間毎の仮転送レ
ートが蓄積される。
The generated code amount is sequentially sent from the temporary encoding generated code amount detector 53 to the temporary transfer rate memory 54, and is added every predetermined period to calculate the temporary transfer rate. This operation is performed until the encoding of one image sequence is completed, and the temporary transfer rate memory 54 stores the temporary transfer rate for each predetermined period.

【0064】1回目の符号化が終了すると、画像シーケ
ンス全体の仮発生符号量または平均仮転送レートが算出
され、この値と所定期間毎の仮転送レートが目標転送レ
ート算出器55に送られ、2回目の符号化(実符号化)に
おける所定期間毎の目標転送レートが算出される。
When the first encoding is completed, the temporary code amount or the average temporary transfer rate of the entire image sequence is calculated, and this value and the temporary transfer rate for each predetermined period are sent to the target transfer rate calculator 55. A target transfer rate for each predetermined period in the second encoding (actual encoding) is calculated.

【0065】なお、1回目の符号化における所定期間毎
の仮転送レートRtと2回目の符号化の目標転送レートR
との関係は、予め所定の関数を設定しておく。例えば次
の(13)のような関数が考えられる。
The provisional transfer rate Rt for each predetermined period in the first encoding and the target transfer rate R for the second encoding
Is set in advance with a predetermined function. For example, the following function (13) can be considered.

【0066】 R=a・(Rt)b ( a, bは定数, a>0, 0<b<1 ) (13)R = a · (Rt) b (where a and b are constants, a> 0, 0 <b <1) (13)

【0067】1回目の仮符号化が終了し、2回目の符号
化の目標転送レートが決定するとその目標転送レートに
従って2回目の符号化(実符号化)が開始される。2回目
の符号化では、量子化器13に送られる量子化スケール
はVBR符号量制御器51で得られた値が送られる。
When the first provisional encoding is completed and the target transfer rate for the second encoding is determined, the second encoding (actual encoding) is started according to the target transfer rate. In the second encoding, the value obtained by the VBR code amount controller 51 is sent to the quantization scale sent to the quantizer 13.

【0068】ここで、VBR符号量制御器51では、平均
量子化スケール検出器22、発生符号量検出器23で検
出された各フレームの平均量子化スケール、発生符号量
と、目標転送レート算出器55で仮符号化結果から算出
された所定期間毎の目標転送レートから、これから符号
化する画像の目標割当符号量が求められる。
Here, in the VBR code amount controller 51, the average quantization scale and the generated code amount of each frame detected by the average quantization scale detector 22 and the generated code amount detector 23, and the target transfer rate calculator From 55, the target assigned code amount of the image to be encoded is obtained from the target transfer rate for each predetermined period calculated from the provisional encoding result.

【0069】一方、CBR符号量制御器52で算出された
(第2の符号量制御手段における)目標割当符号量の上限
もVBR符号量制御器51に入力され、前記目標割当符号
量にリミッタがかけられ、目標割当符号量が決定する。
CBR符号量制御器52における目標割当符号量の上限は
第1の実施例における (Rav-maxによる) Ti-max, Tp-ma
x, Tb-maxと同一である。
On the other hand, the CBR code amount controller 52 calculates
The upper limit of the target allocated code amount (in the second code amount control means) is also input to the VBR code amount controller 51, and the target allocated code amount is limited to determine the target allocated code amount.
The upper limit of the target allocation code amount in the CBR code amount controller 52 is Ti-max, Tp-ma (based on Rav-max) in the first embodiment.
Same as x, Tb-max.

【0070】以上のようにして決定した目標割当符号量
と、バッファ16で検出される各マクロブロックの発生
符号量をもとに、第1の実施例と同様にMPEG2 Test Mod
el 5等の方法を用いて各マクロブロックの量子化スケー
ルを決定する。
Based on the target allocated code amount determined as described above and the generated code amount of each macroblock detected in the buffer 16, the MPEG2 Test Mod as in the first embodiment.
The quantization scale of each macroblock is determined using a method such as el5.

【0071】このようにして決定された各マクロブロッ
クの量子化スケールが量子化器13に送られ、これから
符号化する画像(DCT後の分割された原画像または動
き補償予測の誤差画像ブロック)がこの量子化スケール
で量子化され、可変長符号化される。
The quantization scale of each macroblock determined in this way is sent to the quantizer 13, and an image to be coded therefrom (an original image after DCT or an error image block for motion compensation prediction) is obtained. Quantization is performed using this quantization scale and variable-length encoding is performed.

【0072】ここで発生するビットストリームは、2回
目の符号化ではバッファ16に供給され、ここで目標転
送レート算出器55で算出された所定期間毎の目標転送
レートによって調整された後に符号が出力される。マク
ロブロック毎の量子化スケール、バッファ16で監視さ
れる発生符号量がそれぞれ、平均量子化スケール検出器
22、発生符号量検出器23に送られ、次のピクチャの
符号量制御に使用される。
The bit stream generated here is supplied to the buffer 16 in the second encoding, where the bit stream is adjusted by the target transfer rate for each predetermined period calculated by the target transfer rate calculator 55, and then the code is output. Is done. The quantization scale for each macroblock 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 used for the code amount control of the next picture.

【0073】更に、本発明の動画像符号化装置の第3の
実施例について、以下に図4、図5と共に説明する。以
上の第1及び第2の実施例は可変ビットレート符号量制
御に本発明を適用した場合であるが、本発明はそれに限
定されず、幅広い応用が可能である。図4に示される動
画像符号化装置のように、バッファ16の出力の符号化
ビットストリームをストリーム分割器59で2つに分け
る。その一方の出力は図5のようなI,P,Bピクチャ全
てを使用した符号化ビットストリーム全体を出力し、も
う一方はそのうちIとPピクチャのみを使用した符号化
ビットストリームを出力する。
Further, a third embodiment of the moving picture coding apparatus according to the present invention will be described below with reference to FIGS. The first and second embodiments described above are cases where the present invention is applied to variable bit rate code amount control, but the present invention is not limited to this, and can be applied to a wide range of applications. As in the moving picture coding apparatus shown in FIG. 4, the coded bit stream output from the buffer 16 is divided into two by a stream divider 59. One output outputs the entire coded bit stream using all the I, P, and B pictures as shown in FIG. 5, and the other outputs the coded bit stream using only the I and P pictures.

【0074】I,Pピクチャのみの出力は、ここでは図
示していないヘッダ変換器で、ヘッダ部分のパラメータ
等が適切な値に書き換えられているものとする。図4の
符号量制御器1(51A)はビットストリーム全体の符
号量を制御し、符号量制御器2(52A)はIとPピク
チャのみのビットストリームの符号量を制御する。
It is assumed that the output of only the I and P pictures is a header converter (not shown) in which the parameters and the like of the header portion have been rewritten to appropriate values. The code amount controller 1 (51A) of FIG. 4 controls the code amount of the entire bit stream, and the code amount controller 2 (52A) controls the code amount of the bit stream of only I and P pictures.

【0075】ここで、符号量制御器1(51A)と符号
量制御器2(52A)で各ピクチャタイプの平均割当符
号量が比較的近い値となるように、両者の平均ビットレ
ートが設定されているものとする。2つのビットストリ
ームの符号量制御を同時に満足するために、符号量制御
器2(52A)におけるI,Pピクチャの符号量割当結
果を符号量制御器1(51A)に送り、符号量制御器1
(51A)ではI,Pピクチャについては符号量制御器
2(52A)の結果のI,Pピクチャの符号量割当をそ
のまま適用し、Bピクチャについては新たに符号量割当
を行って、符号量制御器1(51A)の制御を実現す
る。
Here, the code amount controller 1 (51A) and the code amount controller 2 (52A) set the average bit rates of both picture types so that the average allocated code amount of each picture type is relatively close. It is assumed that In order to simultaneously satisfy the code amount control of the two bit streams, the code amount control result of the I and P pictures in the code amount controller 2 (52A) is sent to the code amount controller 1 (51A).
In (51A), the code amount allocation of the I and P pictures resulting from the code amount controller 2 (52A) is directly applied to the I and P pictures, and the code amount is newly allocated to the B picture and the code amount control is performed. Control of the container 1 (51A) is realized.

【0076】これによりビットストリーム全体では符号
量制御器1(51A)による制御が行われると同時に、
ストリーム分割器59でビットストリームのI,Pピク
チャ部分を取り出した場合は符号量制御器2(52A)
で制御されたビットストリームを得ることが出来る。
As a result, the entire bit stream is controlled by the code amount controller 1 (51A).
When the I / P picture portion of the bit stream is extracted by the stream divider 59, the code amount controller 2 (52A)
The bit stream controlled by can be obtained.

【0077】なお、ストリーム分割器59でIとPピク
チャのみのビットストリームを出力する必要のない場合
は、符号量制御器2(52A)による符号量割当は行わ
ずに、符号量制御器1(51A)において、I、P、B
ピクチャ各々について、通常の符号量割当を行う。符号
量制御器2(52A)による符号量割当は行わない場合
は、それを示す信号をストリーム分割器59に送り、そ
こでIとPピクチャのみのビットストリームを出力を止
める。
When it is not necessary for the stream divider 59 to output a bit stream consisting of only I and P pictures, the code amount controller 1 (52A) does not perform code amount allocation, and the code amount controller 1 ( 51A), I, P, B
Normal code amount allocation is performed for each picture. When the code amount is not allocated by the code amount controller 2 (52A), a signal indicating this is sent to the stream divider 59, and the output of the bit stream of only I and P pictures is stopped.

【0078】図4の実施例に限らず、本発明は2つの符
号量制御器を有する符号量制御形態において、主たる方
の符号量制御器51Aに対して、従なる方の符号量制御
器52Aの各ピクチャタイプ毎の符号量割当結果によっ
て制限を加えることによって、各ピクチャタイプの符号
量割当の適正化を図り、もしくは1つの符号化ビットス
トリームに対して2つの復号系に対応した、動画像符号
化装置を実現することが出来る。
The present invention is not limited to the embodiment shown in FIG. 4, but in the code amount control mode having two code amount controllers, the main code amount controller 51A is replaced with the subordinate code amount controller 52A. Of the picture amount of each picture type by applying a restriction based on the result of the code amount assignment for each picture type, or a moving picture corresponding to two decoding systems for one encoded bit stream. An encoding device can be realized.

【0079】[0079]

【発明の効果】以上のように本発明によると、符号化画
像の割当符号量を決定する第1の符号量制御手段と、第
1の符号量制御手段の符号量割当に制限を加える第2の
符号量制御手段を有し、例えば可変ビットレート制御の
場合、第1の符号量制御手段では可変ビットレート制
御、第2の符号量制御手段では最高転送レートの固定ビ
ットレート制御により割当符号量を求め、実際の割当符
号量は、第1の符号量制御手段で得られる割当符号量が
第2の符号量制御手段で得られる割当符号量を上回った
場合のみ、第2の符号量制御手段で得られる割当符号量
を適用し、それ以外の場合は第1の符号量制御手段で得
られる割当符号量を適用する。これによって、目標平均
ビットレートが最大転送レートに近い場合においても、
Bピクチャに不必要に多くの符号量を与えることもな
く、ピクチャタイプ間の符号量割当を最適に保持するこ
とが可能になる。
As described above, according to the present invention, the first code amount control means for determining the allocated code amount of the coded image, and the second code amount control means for limiting the code amount allocation of the first code amount control means. For example, in the case of variable bit rate control, the first code amount control means uses a variable bit rate control, and the second code amount control means uses a fixed bit rate control with a maximum transfer rate. And the actual allocated code amount is determined by the second code amount control means only when the allocated code amount obtained by the first code amount control means exceeds the allocated code amount obtained by the second code amount control means. Is applied, otherwise, the assigned code amount obtained by the first code amount control means is applied. Thus, even when the target average bit rate is close to the maximum transfer rate,
It is possible to optimally maintain the code amount allocation between picture types without giving an unnecessarily large code amount to the B picture.

【0080】また、1パス方式の可変ビットレート制御
で、各画像の発生符号量と平均量子化スケールの積に所
定の操作を施して得られる画面複雑度を用いた制御を行
う場合、画面複雑度を因数とする所定の関数を設定し、
この関数を前記の第2の符号量制御手段で得られる割当
符号量の上限に乗じて割当符号量の上限を変更すること
により、割当符号量の上限に近い部分における符号量の
増大を抑制すると共に、割当符号量の上限を超えた点で
の画質変動を緩和することが可能になる。
When the control using the screen complexity obtained by performing a predetermined operation on the product of the generated code amount of each image and the average quantization scale is performed by the variable bit rate control of the 1-pass method, Set a predetermined function with degree as a factor,
This function is multiplied by the upper limit of the allocated code amount obtained by the second code amount control means to change the upper limit of the allocated code amount, thereby suppressing an increase in the code amount in a portion near the upper limit of the allocated code amount. At the same time, it is possible to mitigate image quality fluctuation at a point where the allocated code amount exceeds the upper limit.

【0081】また、上記の動画像符号化装置を応用し
て、1つの符号化ビットストリームを2つの復号系で共
用する場合においても、第2の符号量制御手段で得られ
る符号量割当によって第1の符号量制御手段の符号量割
当を制限することにより、1つの符号化装置で2つの復
号系において復号可能な符号化を行うことが可能とな
る。
Also, in the case where one coded bit stream is shared by two decoding systems by applying the above-mentioned moving picture coding apparatus, the coding amount allocation obtained by the second coding amount control means can reduce By limiting the code amount allocation of one code amount control unit, it becomes possible to perform coding that can be decoded by two decoding systems with one coding device.

【図面の簡単な説明】[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. 2 is a block diagram showing an embodiment of the present invention.

【図2】本発明の第1の実施例のRav-max'算出の際の関
数及びXk-cと割当符号量の関係を示した図である。
FIG. 2 is a diagram illustrating a function for calculating Rav-max ′ and a relationship between Xk-c and an allocated code amount according to the first embodiment of the present invention.

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

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

【図5】本発明の第3の実施例のストリーム分割手段に
よるビットストリーム分割の様子を示した図である。
FIG. 5 is a diagram illustrating a state of bit stream division by a stream division unit according to a third embodiment of 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 configuration example of a general moving image encoding device.

【図8】従来の動画像符号化装置の一構成例を示した図
である。
FIG. 8 is a diagram illustrating an example of a configuration of a conventional video encoding device.

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

11 減算器 12 DCT器(直交変換器) 13 量子化器 14 符号量制御器 15 可変長符号化器 16 バッファ 17 逆量子化器 18 IDCT器 19 動き補償予測器 20 加算器 21 フレームメモリ 22 平均量子化スケール検出器 23 発生符号量検出器 24 画面複雑度算出器 25 画像特性検出器 51 VBR符号量制御器 52 CBR符号量制御器 51A 符号量制御器1 52A 符号量制御器2 53 仮符号化発生符号量検出器 54 仮転送レートメモリ 55 目標転送レート算出器 56 仮符号化量子化スケール設定器 59 ストリーム分割器 Rav-max BitRateが最高転送レート(BitRateMax)の時
の1GOPの平均割当符号量 Rck 1GOPの必要割当符号量(k= i, p, b) SW1,SW2 スイッチ Tk 各ピクチャタイプの目標割当符号量(k= i, p, b) Tk-max BitRateが最高転送レート(BitRateMax)の時の
各ピクチャタイプの目標割当符号量(k= i, p, b) Xk 現在の画像の画面複雑度(k= i, p, b) Xk-c 現在の画像の推定画面複雑度(k= i, p, b)
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 25 image characteristic detector 51 VBR code amount controller 52 CBR code amount controller 51A code amount controller 1 52A code amount controller 2 53 provisional coding generation Code amount detector 54 Temporary transfer rate memory 55 Target transfer rate calculator 56 Temporary coding quantization scale setting unit 59 Stream splitter Rav-max Average allocated code amount of 1GOP when BitRate is at maximum transfer rate (BitRateMax) Rck 1GOP Required allocated code amount (k = i, p, b) SW1, SW2 switch Tk Target allocated code amount of each picture type (k = i, p, b) Tk-max BitRate is the highest transfer rate (BitRateMax), target allocated code amount of each picture type (k = i, p, b) Xk Screen complexity of current image (k = i, p, b) Xk-c Estimated screen of current image Complexity (k = i, p, b)

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C059 KK01 KK22 MA00 MA23 MC11 MC38 ME01 NN01 NN28 PP05 PP06 PP07 SS11 TA60 TC02 TC10 TC18 UA02 UA33  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5C059 KK01 KK22 MA00 MA23 MC11 MC38 ME01 NN01 NN28 PP05 PP06 PP07 SS11 TA60 TC02 TC10 TC18 UA02 UA33

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】入力動画像を、動き補償予測手段、直交変
換手段、量子化手段、及び可変長符号化手段によって符
号化を行う動画像符号化装置において、 前記入力動画像の各画像の発生符号量を検出する手段
と、 前記入力動画像の各画像の平均量子化スケールを検出す
る手段と、 前記入力動画像及び前記動き補償予測手段によって生成
される動き補償予測画像のうち少なくとも前記入力動画
像の符号化画像特性を検出する手段と、 前記発生符号量を検出する手段によって検出された発生
符号量、前記平均量子化スケールを検出する手段によっ
て検出された平均量子化スケールから、次に符号化する
画像の第1の割当符号量を算出する第1の符号量制御手
段と、 前記第1の割当符号量に制限を加えるための第2の割当
符号量を算出する第2の符号量制御手段と、 前記第1及び第2の符号量制御手段で算出した割当符号
量から、前記次に符号化する画像の量子化スケールを決
定する手段とを備えたことを特徴とする動画像符号化装
置。
1. A moving picture coding apparatus for coding an input moving picture by 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 code amount; means for detecting an average quantization scale of each image of the input moving image; and at least the input moving image of 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 an image; and a generated code amount detected by the means for detecting the generated code amount and an average quantization scale detected by the means for detecting the average quantization scale. A first code amount control unit for calculating a first allocated code amount of an image to be converted, and a second code amount calculating unit for calculating a second allocated code amount for limiting the first allocated code amount. A moving picture, comprising: a code amount control means; and a means for determining a quantization scale of the next image to be coded from the allocated code amounts calculated by the first and second code amount control means. Image coding device.
【請求項2】請求項1に記載された動画像符号化装置に
おいて、 前記第2の割当符号量は、ピクチャタイプ(Iピクチ
ャ、Pピクチャ、Bピクチャ)別に割当符号量の上限が
算出され、前記第1の符号量制御手段において実際の割
当符号量を決定する際に、 算出された前記第1の割当符号量が、前記第2の割当符
号量で設定された割当符号量の上限を超えた場合は第2
の割当符号量を、それ以外の場合は前記第1の割当符号
量を実際の割当符号量として決定することを特徴とする
動画像符号化装置。
2. The moving picture coding apparatus according to claim 1, wherein an upper limit of the allocated code amount is calculated for each picture type (I picture, P picture, B picture), When determining the actual allocated code amount in the first code amount control means, the calculated first allocated code amount exceeds the upper limit of the allocated code amount set in the second allocated code amount. If the second
A moving image coding apparatus characterized in that, in other cases, the first allocated code amount is determined as an actual allocated code amount.
【請求項3】請求項1または請求項2に記載された動画
像符号化装置において、 前記第2の符号量制御手段は固定ビットレートの符号量
制御方法であり、 前記第1の符号量制御手段は可変ビットレートの符号量
制御方法であることを特徴とする動画像符号化装置。
3. The moving picture coding apparatus according to claim 1, wherein said second code amount control means is a fixed bit rate code amount control method, and wherein said first code amount control is performed. The means is a variable bit rate code amount control method.
【請求項4】請求項1乃至請求項3のいずれかに記載さ
れた動画像符号化装置において、 前記検出された各画像の発生符号量、平均量子化スケー
ル、及び符号化画像特性を検出する手段で検出される画
像特性パラメータから画面複雑度を算出する手段を有
し、 前記画面複雑度を因数とする所定の関数によって、前記
第2の割当符号量を変更することを特徴とする動画像符
号化装置。
4. The moving picture coding apparatus according to claim 1, wherein a generated code amount, an average quantization scale, and a coded image characteristic of each of the detected images are detected. Means for calculating screen complexity from image characteristic parameters detected by the means, wherein the second assigned code amount is changed by a predetermined function having the screen complexity as a factor. Encoding device.
【請求項5】請求項1乃至請求項4のいずれかに記載さ
れた動画像符号化装置において、 前記可変長符号化手段によって符号化された出力符号列
の一部を取り出すストリーム分割手段を有し、 前記第1の符号量制御手段は前記出力符号列全体の符号
量を制御し、 前記第2の符号量制御手段では前記ストリーム分割手段
から取り出した前記出力符号列の一部の符号量を制御す
ることを特徴とする動画像符号化装置。
5. A moving picture coding apparatus according to claim 1, further comprising a stream dividing means for extracting a part of the output code string coded by said variable length coding means. The first code amount control means controls the code amount of the entire output code string, and the second code amount control means determines a code amount of a part of the output code string extracted from the stream division means. A moving picture coding apparatus characterized by controlling.
【請求項6】入力動画像を、動き補償予測ステップ、直
交変換ステップ、量子化ステップ、及び可変長符号化ス
テップによって符号化を行う動画像符号化方法におい
て、 前記入力動画像の各画像の発生符号量を検出するステッ
プと、 前記入力動画像の各画像の平均量子化スケールを検出す
るステップと、 前記入力動画像及び前記動き補償予測ステップによって
生成される動き補償予測画像のうち少なくとも前記入力
動画像の符号化画像特性を検出するステップと、 前記発生符号量を検出するステップによって検出された
発生符号量、前記量子化スケールを検出するステップに
よって検出された平均量子化スケールから、次に符号化
する画像の割当符号量を算出する第1の符号量制御ステ
ップと、 前記第1の割当符号量に制限を加えるための第2の割当
符号量を算出する第2の符号量制御ステップと、 前記第1及び第2の符号量制御ステップで算出した割当
符号量から、前記次に符号化する画像の量子化スケール
を決定するステップとを備えたことを特徴とする動画像
符号化方法。
6. A moving picture coding method for coding an input moving picture by a motion compensation prediction step, an orthogonal transformation step, a quantization step, and a variable length coding step. Detecting a code amount; detecting an average quantization scale of each image of the input moving image; and at least the input moving image of the input moving image and the motion compensated prediction image generated by the motion compensation prediction step. Detecting the encoded image characteristic of the image; and the generated code amount detected by the step of detecting the generated code amount; and the average quantization scale detected by the step of detecting the quantization scale. A first code amount control step of calculating an allocated code amount of an image to be performed, and a step of restricting the first allocated code amount. A second code amount control step of calculating a second allocated code amount; and a quantization scale of the next image to be encoded is determined from the allocated code amounts calculated in the first and second code amount control steps. A moving image encoding method.
【請求項7】請求項6に記載された動画像符号化方法に
おいて、 前記第2の割当符号量は、ピクチャタイプ(Iピクチ
ャ、Pピクチャ、Bピクチャ)別に割当符号量の上限が
算出され、前記第1の符号量制御ステップにおいて実際
の割当符号量を決定する際に、 算出された前記第1の割当符号量が、前記第2の割当符
号量で設定された割当符号量の上限を超えた場合は第2
の割当符号量を、それ以外の場合は前記第1の割当符号
量を実際の割当符号量として決定することを特徴とする
動画像符号化方法。
7. The moving picture coding method according to claim 6, wherein an upper limit of the allocated code amount is calculated for each picture type (I picture, P picture, B picture), When determining the actual allocated code amount in the first code amount control step, the calculated first allocated code amount exceeds the upper limit of the allocated code amount set by the second allocated code amount. If the second
A moving picture coding method characterized in that, in other cases, the first allocated code amount is determined as an actual allocated code amount.
【請求項8】請求項6または請求項7に記載された動画
像符号化方法において、 前記検出された各画像の発生符号量、平均量子化スケー
ル、及び符号化画像特性を検出するステップで検出され
る画像特性パラメータから画面複雑度を算出するステッ
プを有し、 前記画面複雑度を因数とする所定の関数によって、前記
第2の割当符号量を変更することを特徴とする動画像符
号化方法。
8. The moving picture coding method according to claim 6, wherein the detected code amount, the average quantization scale, and the coded image characteristics of each of the detected images are detected. Calculating the screen complexity from the image characteristic parameters to be obtained, and changing the second allocated code amount by a predetermined function having the screen complexity as a factor. .
【請求項9】請求項6乃至請求項8のいずれかに記載さ
れた動画像符号化方法において、 前記可変長符号化ステップによって符号化された出力符
号列の一部を取り出すストリーム分割ステップを有し、 前記第1の符号量制御ステップは前記出力符号列全体の
符号量を制御し、 前記第2の符号量制御ステップでは前記ストリーム分割
手段から取り出した前記出力符号列の一部の符号量を制
御することを特徴とする動画像符号化方法。
9. The moving picture encoding method according to claim 6, further comprising a stream dividing step of extracting a part of the output code string encoded by said variable length encoding step. The first code amount control step controls the code amount of the entire output code string, and the second code amount control step calculates a code amount of a part of the output code string extracted from the stream division unit. A moving picture coding method characterized by controlling.
JP19867299A 1999-07-13 1999-07-13 Video encoding apparatus and method Expired - Lifetime JP4362795B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19867299A JP4362795B2 (en) 1999-07-13 1999-07-13 Video encoding apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19867299A JP4362795B2 (en) 1999-07-13 1999-07-13 Video encoding apparatus and method

Publications (2)

Publication Number Publication Date
JP2001028753A true JP2001028753A (en) 2001-01-30
JP4362795B2 JP4362795B2 (en) 2009-11-11

Family

ID=16395137

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19867299A Expired - Lifetime JP4362795B2 (en) 1999-07-13 1999-07-13 Video encoding apparatus and method

Country Status (1)

Country Link
JP (1) JP4362795B2 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003005730A1 (en) * 2001-07-06 2003-01-16 Sony Corporation Image encoding method and image encoding apparatus
JP2006506896A (en) * 2002-11-15 2006-02-23 トムソン ライセンシング Method and system for staggered array statistical multiplexing
JP2006246276A (en) * 2005-03-07 2006-09-14 Sony Corp Method and apparatus for encoding, program for encoding processing, and recording medium stored with encoding processing program
JP2007028156A (en) * 2005-07-15 2007-02-01 Sony Corp Encoding apparatus, encoding method, program, and recording medium
JP2007074634A (en) * 2005-09-09 2007-03-22 Matsushita Electric Ind Co Ltd Moving image compressing apparatus
JP2007522724A (en) * 2004-01-30 2007-08-09 トムソン ライセンシング Encoder with adaptive rate control
WO2007116539A1 (en) 2006-03-30 2007-10-18 Fujitsu Limited Data transferring apparatus and data transferring method
JP2009055262A (en) * 2007-08-27 2009-03-12 Nippon Telegr & Teleph Corp <Ntt> Image encoding control device, image encoding control method, image encoding control program, and computer-readable medium recorded with the program
WO2011142236A1 (en) * 2010-05-12 2011-11-17 日本電信電話株式会社 Code amount control method and apparatus
US8116577B2 (en) 2005-03-07 2012-02-14 Sony Corporation Encoding method, encoding device, encoding process program, and recording medium on which encoding process program is recorded
WO2012121211A1 (en) * 2011-03-10 2012-09-13 日本電信電話株式会社 Quantization control device and method, and quantization control program
CN101305617B (en) * 2005-11-09 2013-02-20 佳能株式会社 Image signal processing apparatus

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003005730A1 (en) * 2001-07-06 2003-01-16 Sony Corporation Image encoding method and image encoding apparatus
JP2003023637A (en) * 2001-07-06 2003-01-24 Sony Corp Image coding method and image coding device
JP2006506896A (en) * 2002-11-15 2006-02-23 トムソン ライセンシング Method and system for staggered array statistical multiplexing
US9084010B2 (en) 2002-11-15 2015-07-14 Thomson Licensing Method and system for staggered statistical multiplexing
US9071840B2 (en) 2004-01-30 2015-06-30 Thomson Licensing Encoder with adaptive rate control for H.264
JP2007522724A (en) * 2004-01-30 2007-08-09 トムソン ライセンシング Encoder with adaptive rate control
WO2006095501A1 (en) * 2005-03-07 2006-09-14 Sony Corporation Encoding method, encoding device, processing program for encoding, and recording medium having the processing program for encoding recorded therein
JP2006246276A (en) * 2005-03-07 2006-09-14 Sony Corp Method and apparatus for encoding, program for encoding processing, and recording medium stored with encoding processing program
AU2006221586B2 (en) * 2005-03-07 2010-09-16 Sony Corporation Encoding method, encoding device, processing program for encoding, and recording medium having the processing program for encoding recorded therein
US8116577B2 (en) 2005-03-07 2012-02-14 Sony Corporation Encoding method, encoding device, encoding process program, and recording medium on which encoding process program is recorded
JP4543971B2 (en) * 2005-03-07 2010-09-15 ソニー株式会社 Encoding method, encoding apparatus, encoding processing program, and recording medium recording the encoding processing program
JP2007028156A (en) * 2005-07-15 2007-02-01 Sony Corp Encoding apparatus, encoding method, program, and recording medium
JP4517963B2 (en) * 2005-07-15 2010-08-04 ソニー株式会社 Encoding apparatus, encoding method, program, and recording medium
JP2007074634A (en) * 2005-09-09 2007-03-22 Matsushita Electric Ind Co Ltd Moving image compressing apparatus
JP4648805B2 (en) * 2005-09-09 2011-03-09 パナソニック株式会社 Video compression device
CN101305617B (en) * 2005-11-09 2013-02-20 佳能株式会社 Image signal processing apparatus
WO2007116539A1 (en) 2006-03-30 2007-10-18 Fujitsu Limited Data transferring apparatus and data transferring method
JP4527756B2 (en) * 2007-08-27 2010-08-18 日本電信電話株式会社 Video encoding control apparatus, video encoding control method, video encoding control program, and computer-readable recording medium recording the program
JP2009055262A (en) * 2007-08-27 2009-03-12 Nippon Telegr & Teleph Corp <Ntt> Image encoding control device, image encoding control method, image encoding control program, and computer-readable medium recorded with the program
WO2011142236A1 (en) * 2010-05-12 2011-11-17 日本電信電話株式会社 Code amount control method and apparatus
JPWO2011142236A1 (en) * 2010-05-12 2013-07-22 日本電信電話株式会社 Code amount control method and apparatus
US9131236B2 (en) 2010-05-12 2015-09-08 Nippon Telegraph And Telephone Corporation Code amount control method and apparatus
KR101391397B1 (en) 2010-05-12 2014-05-07 니폰덴신뎅와 가부시키가이샤 code amount control method and apparatus
JP5580887B2 (en) * 2010-05-12 2014-08-27 日本電信電話株式会社 Code amount control method and apparatus
WO2012121211A1 (en) * 2011-03-10 2012-09-13 日本電信電話株式会社 Quantization control device and method, and quantization control program
JP5410638B2 (en) * 2011-03-10 2014-02-05 日本電信電話株式会社 Quantization control apparatus and method, and quantization control program
US9906803B2 (en) 2011-03-10 2018-02-27 Nippon Telegraph And Telephone Corporation Quantization control apparatus and method, and quantization control program

Also Published As

Publication number Publication date
JP4362795B2 (en) 2009-11-11

Similar Documents

Publication Publication Date Title
US6141380A (en) Frame-level rate control for video compression
US6823008B2 (en) Video bitrate control method and device for digital video recording
US7903732B2 (en) Method and apparatus for encoding a moving-picture signal by calculating the complexity of the moving-picture signal
EP1063851B1 (en) Apparatus and method of encoding moving picture signal
JPH11346362A (en) Real time single path variable bit rate control method, and encoder
JPH10336663A (en) Pre-processor for mpeg2 coding
JP2002010259A (en) Image encoding apparatus and its method and recording medium recording image encoding program
JP3259702B2 (en) Moving picture variable bit rate coding apparatus and method
JPH07184196A (en) Picture coder
JP2001008215A (en) Dynamic image encoder and method therefor
JP4362795B2 (en) Video encoding apparatus and method
JP3508916B2 (en) Moving image variable bit rate encoding method and apparatus
JPH10164577A (en) Dynamic image encoder
KR20000070810A (en) Encoder and encoding method
JP4362794B2 (en) Video encoding apparatus and method
JP3812267B2 (en) Video encoding apparatus and method
JP2004328150A (en) Moving picture coding apparatus and method
JP3858520B2 (en) Video encoding apparatus and method
JP4362793B2 (en) Video encoding apparatus and method
JP3812269B2 (en) Video encoding apparatus and method
JP2005045736A (en) Method and device for encoding image signal, encoding controller, and program
JP2007116655A (en) Moving picture coding apparatus
KR100949755B1 (en) A method and an apparatus for controlling the rate of a video sequence, a video encoding device
JP3918208B2 (en) Video data compression apparatus and method
JPH0775095A (en) Rate control circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060331

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080116

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080226

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080424

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090428

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090625

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090806

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

Free format text: PAYMENT UNTIL: 20120828

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4362795

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20120828

Year of fee payment: 3

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

Year of fee payment: 3

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130828

Year of fee payment: 4

EXPY Cancellation because of completion of term