JPH10191337A - Video coding apparatus and method and video multiplexing apparatus and method - Google Patents
Video coding apparatus and method and video multiplexing apparatus and methodInfo
- Publication number
- JPH10191337A JPH10191337A JP15628997A JP15628997A JPH10191337A JP H10191337 A JPH10191337 A JP H10191337A JP 15628997 A JP15628997 A JP 15628997A JP 15628997 A JP15628997 A JP 15628997A JP H10191337 A JPH10191337 A JP H10191337A
- Authority
- JP
- Japan
- Prior art keywords
- moving picture
- signals
- code amount
- multiplexing
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Television Systems (AREA)
Abstract
(57)【要約】
【課題】 複数の動画像信号を符号化、多重化し、固定
ビットレートで出力する動画像符号化装置において、出
力動画像の画質を各々均一にする。
【解決手段】 量子化制御部4は、蓄積部2−1〜2−
Nに蓄積されている動画像符号化信号の符号量の総和に
基づき量子化幅を求め、同じ量子化幅で符号化部1−1
〜1−Nを制御する。多重化制御部7は、復号遅延時間
演算部5と、フレーム符号量演算部6が求めた値に基づ
いて、復号化装置でオーバーフローやアンダーフローが
発生しないよう、符号化部が1−1〜1−N可変ビット
レートで出力した動画像符号化信号を多重化する。
(57) Abstract: A moving picture coding apparatus for coding and multiplexing a plurality of moving picture signals and outputting the same at a fixed bit rate has a uniform quality of output moving pictures. SOLUTION: A quantization control unit 4 includes storage units 2-1 to 2-
A quantization width is obtained based on the sum total of the coding amounts of the moving picture coded signals accumulated in N, and the coding unit 1-1 uses the same quantization width.
.About.1-N. The multiplexing control unit 7 controls the encoding unit 1-1 to 1-1 based on the values obtained by the decoding delay time operation unit 5 and the frame code amount operation unit 6 so that overflow and underflow do not occur in the decoding device. The encoded video signal output at the 1-N variable bit rate is multiplexed.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、映像信号の圧縮符
号化装置、及び圧縮符号化された映像信号の多重化装置
に関するものであり、特に、複数の映像信号を圧縮符号
化の後多重化し、ビットレートが一定の符号化信号を生
成する際に、出力映像の画質向上を図る符号化制御、多
重化制御に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for compression-encoding a video signal and an apparatus for multiplexing the compression-encoded video signal. The present invention relates to encoding control and multiplexing control for improving the quality of an output video when a coded signal having a constant bit rate is generated.
【0002】[0002]
【従来の技術】複数の映像を圧縮符号化し、それらを多
重化してある一定の出力ビットレートの一つのビットス
トリームにする方法の一つに、圧縮符号化された複数の
動画像の総和が出力ビットレートになるよう、各動画像
に固定のビットレートを割り当てる方法がある。この方
法では、割り当てられたビットレートに対して複雑度の
高い映像が入力されると、画質の大きな劣化が生じる。
また、複雑度の低い映像が入力されると、スタッフィン
グが多くなり、帯域が無駄になる。従って、帯域を有効
に利用しようとすると画質が低くなり、画質を高くしよ
うとすると、帯域の有効利用ができず、多重化できる映
像数が少なくなるという、相反する問題が生じる。そこ
で、この問題点を解決する装置として、特開平8−23
540号公報に、出力動画像信号のビットレートを可変
にし、出力映像の画質を向上させる、映像符号化器系の
制御装置が開示されている。この装置では、符号化され
た動画像と原画像を比較し、歪みが大きい動画像に対し
てはビットレートを増やし、同時に歪みが小さい動画像
のビットレートを減らすことで、各動画像の画質を均一
にし、全体としての画質を向上させている。2. Description of the Related Art One of the methods of compression-encoding a plurality of videos and multiplexing them into one bit stream at a certain output bit rate is to output a sum of a plurality of compression-encoded moving images. There is a method of allocating a fixed bit rate to each moving image so that the bit rate is obtained. In this method, when a video having a high degree of complexity with respect to the assigned bit rate is input, a large deterioration in image quality occurs.
Also, when a video having a low complexity is input, stuffing increases and a band is wasted. Therefore, there is a contradictory problem that the image quality decreases when trying to effectively use the band, and the band cannot be effectively used and the number of multiplexable images decreases when trying to increase the image quality. Therefore, as an apparatus for solving this problem, Japanese Patent Application Laid-Open No.
Japanese Patent Publication No. 540 discloses a video encoder-based control device that makes the bit rate of an output moving image signal variable and improves the image quality of an output video. This device compares the coded video with the original video, increases the bit rate for video with large distortion, and at the same time reduces the bit rate of video with low distortion, thereby improving the image quality of each video. And the image quality as a whole is improved.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、このよ
うな構成では、歪み量を求めてからビットレートを変更
するため、ある映像でシーンチェンジなどで急激に画像
が複雑になった場合には、シーンチェンジ直後の映像だ
け画質の劣化が生じる。However, in such a configuration, the bit rate is changed after the distortion amount is obtained. The image quality deteriorates only in the video immediately after the change.
【0004】また、圧縮符号化された動画像のビットレ
ートが可変である場合、単純な多重化、例えばある一定
時間でのビット発生量に比例させるようなを行った場合
には、動画像符号化信号を受ける復号化装置の入力バッ
ファがオーバーフローやアンダーフローを起こす場合が
ある。When the bit rate of a compression-encoded moving image is variable, simple multiplexing is performed, for example, when the bit rate is proportional to the amount of bits generated in a certain period of time. In some cases, the input buffer of the decoding device that receives the coded signal overflows or underflows.
【0005】本発明はこの点に鑑み、常に各出力動画像
の画質が均一で、かつシーンチェンジなどで急激に画像
が複雑になった直後でも画質が大きく劣化しない動画像
符号化装置と、復号化装置の入力バッファがオーバーフ
ローやアンダーフローを起こさない動画像多重化信号を
出力する動画像多重化装置を提供することを目的とす
る。In view of this point, the present invention provides a moving picture encoding apparatus in which the picture quality of each output moving picture is always uniform, and the picture quality is not greatly degraded immediately after the picture is suddenly complicated by a scene change or the like. It is an object of the present invention to provide a video multiplexing device that outputs a video multiplexed signal in which an input buffer of the multiplexing device does not cause overflow or underflow.
【0006】[0006]
【課題を解決するための手段】本発明の動画像符号化装
置は、複数の動画像信号を符号化する動画像符号化装置
であって、前記動画像信号を所定のパラメータで量子化
する量子化手段をそれぞれ有し、かつ、前記複数の動画
像信号を符号化する複数の符号化手段と、前記各量子化
手段が用いるパラメータを同時に制御する量子化制御手
段を備えたことを特徴とするものである。これによれ
ば、各出力動画像の画質を各々均一にすることができ
る。A moving picture coding apparatus according to the present invention is a moving picture coding apparatus for coding a plurality of moving picture signals, wherein the moving picture coding apparatus quantizes the moving picture signals with predetermined parameters. And a plurality of encoding means for encoding the plurality of video signals, and a quantization control means for simultaneously controlling parameters used by each of the quantization means. Things. According to this, the image quality of each output moving image can be made uniform.
【0007】また本発明の動画像多重化装置は、動画像
信号を符号化することにより得られる複数の動画像符号
化信号を多重化する動画像多重化装置であって、前記複
数の動画像符号化信号をそれぞれ一時的に蓄積する複数
の蓄積手段と、前記複数の蓄積手段に蓄積されている前
記複数の動画像符号化信号を多重化し、一定のビットレ
ートで出力する多重化手段と、前記複数の動画像符号化
信号のそれぞれの特定のビットが復号化装置に入力され
てから復号されるまでの時間を演算する復号遅延時間演
算手段と、前記複数の蓄積手段に蓄積されている、前記
複数の動画像符号化信号のそれぞれの前記特定のビット
が属するフレームの符号量を演算するフレーム符号量演
算手段と、前記復号遅延時間演算手段と前記フレーム符
号量演算手段の演算結果に基づいて前記複数の蓄積手段
から前記多重化手段に入力される前記複数の動画像符号
化信号の符号量である複数の第1の入力符号量を制御す
る多重化制御手段を備えたことを特徴とするものであ
る。これによれば復号化装置の復号遅延時間を常に考慮
しながら多重化を行うことができるため、復号化装置が
動画像符号化信号を復号化している際の、オーバーフロ
ーやアンダーフローの発生を防ぐことができる。Further, the moving picture multiplexing apparatus of the present invention is a moving picture multiplexing apparatus for multiplexing a plurality of coded moving picture signals obtained by coding a moving picture signal, A plurality of storage means for temporarily storing coded signals, and multiplexing means for multiplexing the plurality of moving picture coded signals stored in the plurality of storage means and outputting the multiplexed signal at a constant bit rate, Decoding delay time calculating means for calculating a time from when a specific bit of each of the plurality of moving picture coded signals is input to a decoding device until decoding is performed, and stored in the plurality of storage means, The operation of the frame code amount calculating means for calculating the code amount of the frame to which the specific bit of each of the plurality of encoded video signals belongs, the decoding delay time calculating means and the frame code amount calculating means. Multiplexing control means for controlling a plurality of first input code amounts which are code amounts of the plurality of encoded video signals input from the plurality of storage means to the multiplexing means based on the result. It is characterized by the following. According to this, multiplexing can be performed while always taking the decoding delay time of the decoding device into consideration, so that occurrence of overflow or underflow when the decoding device decodes the coded video signal is prevented. be able to.
【0008】また本発明の動画像多重化方法は、複数の
動画像符号化信号を多重化する動画像多重化方法であっ
て、あらかじめ前記複数の動画像符号化信号に対応する
複数の多重符号量をゼロに設定しておき、前記複数の動
画像符号化信号それぞれの特定のビットが属するフレー
ムのフレーム符号量を演算する第一のステップと、前記
複数の動画像符号化信号のそれぞれが復号されるまでの
時間を演算する第二のステップと、第二のステップで求
めた前記復号されるまでの時間が所定の時間値より小さ
い動画像符号化信号を選択する第三のステップと、第三
のステップで選択された動画像符号化信号の前記フレー
ム符号量に基づき複数の第1の多重化符号量を求める第
四のステップと、前記複数の第1の多重化符号量の和を
求める第五のステップと、前記複数の多重符号量にそれ
ぞれ前記複数の第1の多重化符号量を加える第六のステ
ップと、前記所定の時間値を更新する第七のステップと
からなり、前記第一から第七までのステップを繰り返し
て、前記複数の第1の多重化符号量の和が所定の符号量
以上であれば、複数の第2の多重化符号量を求めて前記
複数の多重符号量に加え、前記複数の多重符号量のそれ
ぞれの前記動画像符号化信号を多重化することを特徴と
するものである。これによればできるだけ復号化までの
時間が小さいフレームから先に多重化するため、復号化
装置が動画像符号化信号を復号化している際の、アンダ
ーフローの発生を防ぐことができる。The moving picture multiplexing method according to the present invention is a moving picture multiplexing method for multiplexing a plurality of coded moving picture signals, wherein a plurality of multiplexed codes corresponding to the plurality of coded moving picture signals are previously stored. Setting the amount to zero, calculating a frame code amount of a frame to which a specific bit of each of the plurality of encoded video signals belongs, and decoding each of the plurality of encoded video signals. A second step of calculating the time until the decoding, the third step of selecting a moving picture coded signal whose time until the decoding obtained in the second step is smaller than a predetermined time value, A fourth step of obtaining a plurality of first multiplexed code amounts based on the frame code amount of the moving picture coded signal selected in the third step; and obtaining a sum of the plurality of first multiplexed code amounts. Fifth stay And a sixth step of adding the plurality of first multiplexed code amounts to the plurality of multiplexed code amounts, respectively, and a seventh step of updating the predetermined time value. If the sum of the plurality of first multiplexed code amounts is equal to or more than a predetermined code amount, a plurality of second multiplexed code amounts are obtained and added to the plurality of multiplexed code amounts. And multiplexing the moving picture coded signals of the plurality of multiplexed code amounts. According to this, since the frames until the decoding time are as short as possible are multiplexed first, it is possible to prevent underflow when the decoding device is decoding the moving picture coded signal.
【0009】また本発明の動画像多重化方法は、複数の
動画像符号化信号を多重化する動画像多重化方法であっ
て、復号化装置に送信されていない前記複数の動画像符
号化信号のフレーム毎の符号量と、前記複数の動画像符
号化信号のフレーム毎の復号されるまでの時間とに基づ
いて、前記復号化装置の複数の入力バッファのアンダー
フロー回避のために必要な複数の最低送信量を求め、前
記複数の最低送信量に基づき複数の送信符号量下限値を
求め、前記複数の動画像符号化信号を多重化する前に、
前記複数の送信符号量下限値を先に多重化することを特
徴とするものである。これによればアンダーフローを発
生させないために必要な符号量は優先的に出力させるた
め、復号化装置が動画像符号化信号を復号化している際
の、アンダーフローの発生を防ぐことができる。Further, the moving picture multiplexing method of the present invention is a moving picture multiplexing method for multiplexing a plurality of coded moving picture signals, wherein the plurality of coded moving picture signals not transmitted to a decoding device are provided. Based on the amount of code per frame and the time until the plurality of encoded video signals are decoded for each frame, based on a plurality of input buffers of the decoding device necessary for avoiding underflow. Determine the minimum transmission amount of, determine a plurality of transmission code amount lower limit based on the plurality of minimum transmission amount, before multiplexing the plurality of moving picture encoded signals,
The transmission code amount lower limit is multiplexed first. According to this, since the code amount necessary for preventing the occurrence of underflow is preferentially output, it is possible to prevent the occurrence of underflow when the decoding device is decoding the coded video signal.
【0010】また本発明の動画像符号化方法は、複数の
動画像信号を符号化することにより発生した複数の動画
像符号化信号の符号量の総和と、前記複数の動画像符号
化信号を一旦蓄積して出力する出力符号量との差に基づ
いた所定の量子化幅を用いて前記複数の動画像信号を同
時に符号化する動画像符号化方法であって、一旦蓄積さ
れている複数の符号化バッファ占有量を各動画像符号化
信号について求め、所定の時間復号化装置の複数の入力
バッファに前記各動画像符号化信号が入力されないとし
た時の、前記所定の時間後の前記各入力バッファの空き
容量を前記各動画像符号化信号について求め、前記各符
号化バッファ占有量から前記各入力バッファの空き容量
を差し引いたそれぞれのバッファ差分値が所定の値より
小さい前記各動画像符号化信号に対して、前記所定の量
子化幅よりも小さい量子化幅を用いて各動画像信号を符
号化することを特徴とするものである。これによれば、
入力される複数の動画像信号の一部で、映像の複雑さが
非常に大きくなり発生符号量が急に増大した場合でも、
復号化装置が動画像符号化信号を復号化している際の、
入力バッファのアンダーフローの発生を防ぐことができ
る。The moving picture coding method according to the present invention further comprises the steps of: summing up the code amounts of the plurality of moving picture coding signals generated by coding a plurality of moving picture signals; A moving image coding method for simultaneously coding the plurality of moving image signals using a predetermined quantization width based on a difference between an output code amount temporarily stored and output, wherein a plurality of once stored multiple The encoding buffer occupancy is determined for each moving picture encoded signal, and when the moving picture encoded signals are not input to a plurality of input buffers of a predetermined time decoding device, the respective ones after the predetermined time The amount of free space in the input buffer is obtained for each of the moving picture encoded signals, and the respective buffer difference values obtained by subtracting the free space of each of the input buffers from the respective occupied amounts of each of the coding buffers are smaller than the predetermined value. The coded signal, and is characterized in that coding each moving image signal by using a small quantization width than said predetermined quantization width. According to this,
Even if the complexity of the video is extremely large and the generated code amount is suddenly increased in a part of the plurality of input moving image signals,
When the decoding device is decoding the video encoded signal,
It is possible to prevent underflow of the input buffer.
【0011】[0011]
【発明の実施の形態】以下、本発明の実施の形態を図面
を用いて説明する。Embodiments of the present invention will be described below with reference to the drawings.
【0012】(実施の形態1)図1は本発明の動画像符
号化装置及び動画像多重化装置の一実施の形態のブロッ
ク図である。(Embodiment 1) FIG. 1 is a block diagram showing an embodiment of a moving picture coding apparatus and a moving picture multiplexing apparatus according to the present invention.
【0013】1−1〜1−N(Nは自然数)入力動画像
を信号変換と量子化によって圧縮符号化を行う符号化
部、2−1〜2−Nは符号化部1−1〜1−Nが出力し
た動画像符号化信号を蓄積する蓄積部、3は動画像符号
化信号を多重化して、一定のビットレートで出力する多
重化部、4は符号化部1−1〜1−Nで行う量子化にお
ける量子化幅を制御する量子化制御部、5は動画像符号
化信号のあるビットが復号化装置に入力されてから復号
化されるまでの時間(復号遅延時間)を求める復号遅延
時間演算部、6は蓄積部2−1〜2−Nに蓄積されてい
る動画像符号化信号のフレーム毎の符号量を求めるフレ
ーム符号量演算部、7は多重化部3を制御する多重化制
御部、8は蓄積部2−1〜2−Nに蓄積されている動画
像符号化信号の符号量を加算する加算器である。1-1 to 1-N (N is a natural number) An encoding unit for compressing and encoding an input moving image by signal conversion and quantization. 2-1 to 2-N are encoding units 1-1 to 1--1. -N, a storage unit for storing the encoded video signal output from the multiplexing unit; 3, a multiplexing unit for multiplexing the encoded video signal and outputting the multiplexed video signal at a constant bit rate; The quantization control unit 5 that controls the quantization width in the quantization performed by N calculates a time (decoding delay time) from when a certain bit of the moving picture coded signal is input to the decoding device to when it is decoded. A decoding delay time calculation unit 6 is a frame code amount calculation unit that calculates the code amount of each frame of the moving picture coded signal stored in the storage units 2-1 to 2-N, and 7 controls the multiplexing unit 3. The multiplexing control unit 8 is configured to code the moving image coded signals stored in the storage units 2-1 to 2-N. An adder for adding the.
【0014】図15は、図1の符号化部1−1の一例の
詳細図である。符号化部1−2〜1−Nについても同じ
構成である。符号化部1−1に入力された動画像信号
は、差分器101−1によりフレームメモリ108−1
に蓄積されているフレーム画像との差分画像に変換され
る。差分画像は、DCT(離散コサイン変換)手段10
2−1によりDCT係数に変換される。DCT係数は量
子化手段103−1により、量子化手段103−1に入
力された量子化幅で量子化された後、可変長符号化手段
104−1により動画像符号化信号に変換され、出力さ
れる。また、量子化手段103−1の出力信号は逆量子
化手段105−1にも出力され、逆量子化された後、逆
DCT手段106−1により復号差分画像に変換され
る。復号差分画像は、加算器107−1によりフレーム
メモリ108−1に蓄積されているフレーム画像と加算
され、復号画像に変換された後、フレームメモリ108
−1に蓄積される。FIG. 15 is a detailed diagram of an example of the encoding unit 1-1 of FIG. Encoding sections 1-2 to 1-N have the same configuration. The moving image signal input to the encoding unit 1-1 is converted into a frame memory 108-1 by a differentiator 101-1.
Is converted into a difference image from the frame image stored in the. The difference image is converted by DCT (discrete cosine transform) means 10
It is converted to DCT coefficients by 2-1. The DCT coefficient is quantized by the quantization means 103-1 with the quantization width input to the quantization means 103-1 and then converted into a moving picture coded signal by the variable length coding means 104-1. Is done. The output signal of the quantization means 103-1 is also output to the inverse quantization means 105-1, and after being inversely quantized, converted into a decoded difference image by the inverse DCT means 106-1. The decoded difference image is added to the frame image stored in the frame memory 108-1 by the adder 107-1 and converted into a decoded image.
-1.
【0015】以上のような構成において、その動作を以
下に説明する。符号化部1−1〜1−Nが出力した動画
像符号化信号は一時的に蓄積部2−1〜2−Nに蓄積さ
れる。蓄積部2−1〜2−Nに蓄積されている動画像符
号化信号の符号量は、加算器8により全て加算された
後、量子化制御部4に出力される。量子化制御部4は、
加算器8が出力した符号量を、量子化幅に変換する。図
2は、この変換方法の一例をグラフで表したものであ
る。横軸は蓄積部2−1〜2−Nに蓄積されている動画
像符号化信号の符号量の総和であり、この値は、符号化
により発生した動画像符号化信号の符号量の総和と、出
力ビットレートより換算した出力符号量との差に相当す
る。また、縦軸は量子化幅である。この実施の形態で
は、符号量が多いほど量子化幅が大きく、符号量が少な
いほど量子化幅が小さくなるようにしている。量子化制
御部4は、この様にして求めた一つの量子化幅の値を、
符号化部1−1〜1−N全てに対して出力する。即ち、
符号化部1−1〜1−Nには全て同じ量子化幅が設定さ
れ、符号化部1−1〜1−Nはこの量子化幅を用いて量
子化を行う。The operation of the above configuration will be described below. The encoded video signals output from the encoding units 1-1 to 1-N are temporarily stored in the storage units 2-1 to 2-N. The code amounts of the encoded moving image signals stored in the storage units 2-1 to 2-N are all added by the adder 8, and then output to the quantization control unit 4. The quantization control unit 4
The code amount output from the adder 8 is converted into a quantization width. FIG. 2 is a graph showing an example of this conversion method. The horizontal axis is the sum of the code amounts of the encoded video signals stored in the storage units 2-1 to 2-N. This value is the sum of the code amounts of the encoded video signals generated by encoding. , And the output code rate converted from the output bit rate. The vertical axis is the quantization width. In this embodiment, the larger the code amount, the larger the quantization width, and the smaller the code amount, the smaller the quantization width. The quantization control unit 4 calculates the value of one quantization width obtained in this manner,
Output to all encoding units 1-1 to 1-N. That is,
The same quantization width is set in all of the encoding units 1-1 to 1-N, and the encoding units 1-1 to 1-N perform quantization using this quantization width.
【0016】以上のように本発明では、入力された動画
像に対して、同じ量子化幅を用いて圧縮符号化を行うた
め、複数の出力動画像の画質を常に各々均一にすること
ができる。また量子化制御を、蓄積部2−1〜2−Nに
蓄積されている動画像符号化信号の符号量の総和に基づ
いて行うため、出力帯域を有効に利用することができ
る。As described above, according to the present invention, since the input moving image is compression-coded using the same quantization width, the image quality of a plurality of output moving images can always be made uniform. . In addition, since the quantization control is performed based on the total code amount of the encoded moving image signals stored in the storage units 2-1 to 2-N, the output band can be used effectively.
【0017】なお、本実施の形態では全ての符号化部1
−1〜1−Nを、同一の量子化幅で制御するようにした
が、各符号化部に優先度や出力ビットレートの上限を設
けるなどの制約により、量子化幅が異なるようにして
も、本発明の趣旨に外れるものではない。In this embodiment, all encoding units 1
Although -1 to 1-N are controlled with the same quantization width, even if the quantization widths are made different due to restrictions such as setting a priority or an upper limit of the output bit rate for each encoding unit. However, this does not depart from the spirit of the present invention.
【0018】復号遅延時間演算部5は、蓄積部2−1〜
2−Nにそれぞれについて、蓄積されている動画像符号
化信号の中で、最初に多重化部3に送られるビットの復
号遅延時間を求める。初期値は、符号化部1−1〜1−
Nが最初に出力するビットの復号遅延時間であり、復号
化装置の入力バッファの大きさや多重化部3の出力ビッ
トレートなどから予め定める。その後は、復号化装置の
復号手順に従って、値を更新する。The decoding delay time calculation section 5 includes storage sections 2-1 to 2-1.
2-N, the decoding delay time of the bit transmitted first to the multiplexing unit 3 among the accumulated moving picture coded signals is obtained. The initial values are defined by the encoding units 1-1 to 1-
N is the decoding delay time of the first output bit, and is determined in advance from the size of the input buffer of the decoding device, the output bit rate of the multiplexing unit 3, and the like. After that, the value is updated according to the decoding procedure of the decoding device.
【0019】フレーム符号量演算部6は、蓄積部2−1
〜2−Nに蓄積されている動画像符号化信号の中で、最
初に多重化部3に送られるビットが含まれるフレームの
符号量を求める。多重化制御部7は、復号遅延時間演算
部5と、フレーム符号量演算部6が求めた値を用いて、
一定の周期で、蓄積部2−1〜2−Nそれぞれから多重
化部3に送る符号量の演算を繰り返す。多重化部3は、
多重化制御部7が求めた符号量に基づいて動画像符号化
信号を多重化して、一定のビットレートで出力する。The frame code amount calculation unit 6 includes a storage unit 2-1.
In the moving picture coded signal stored in .about.2-N, the code amount of the frame including the bit transmitted to the multiplexing unit 3 first is obtained. The multiplexing control unit 7 uses the values obtained by the decoding delay time calculation unit 5 and the frame code amount calculation unit 6 to calculate
The calculation of the code amount to be sent from each of the storage units 2-1 to 2-N to the multiplexing unit 3 is repeated at a constant cycle. The multiplexing unit 3
The multiplexed video signal is multiplexed based on the code amount obtained by the multiplexing control unit 7 and output at a constant bit rate.
【0020】図17は、図1の多重化制御部7の一例の
詳細図である。第一パラメータ生成部71には、蓄積部
2−1〜2−Nに蓄積されている動画像符号化信号の中
で、最初に多重化部3に送られるビットが含まれるフレ
ームの符号量と復号遅延時間が入力される。第一パラメ
ータ生成部71は、このフレーム符号量を復号遅延時間
で割った値を求める。第二パラメータ生成部72は、蓄
積部2−1〜2−Nに関して第一パラメータ生成部71
が求めた値の和を求める。第三パラメータ生成部73
は、蓄積部2−1〜2−Nに関して第一パラメータ生成
部71が求めた値それぞれに対して、第二パラメータ生
成部72が求めた値で割った値を求める。多重符号量演
算部74には、蓄積部2−1〜2−Nそれぞれから多重
化部3に送る符号量の演算を行う周期の間に、多重化部
から出力する動画像信号の出力ビット数が与えられてお
り、このビット数と蓄積部2−1〜2−Nそれぞれに関
して第三パラメータ生成部73が求めた値との積を求
め、この値を、蓄積部2−1〜2−Nそれぞれから多重
部3に送る符号量として多重部3に出力する。FIG. 17 is a detailed diagram of an example of the multiplexing control section 7 of FIG. The first parameter generation unit 71 determines the code amount of a frame including bits to be transmitted to the multiplexing unit 3 first among the moving image coded signals stored in the storage units 2-1 to 2-N. The decoding delay time is input. The first parameter generation unit 71 obtains a value obtained by dividing the frame code amount by the decoding delay time. The second parameter generation unit 72 includes a first parameter generation unit 71 for the storage units 2-1 to 2-N.
Find the sum of the values found by. Third parameter generator 73
Calculates a value obtained by dividing each of the values obtained by the first parameter generation unit 71 with respect to the accumulation units 2-1 to 2-N by the value obtained by the second parameter generation unit 72. The number of output bits of the moving image signal output from the multiplexing unit during the cycle of calculating the amount of code sent from each of the storage units 2-1 to 2-N to the multiplexing unit 3 is stored in the multiplexed code amount calculating unit 74. Is obtained, and the product of the number of bits and the value obtained by the third parameter generation unit 73 for each of the storage units 2-1 to 2-N is obtained. This value is stored in the storage units 2-1 to 2-N Each of them is output to the multiplexing unit 3 as a code amount to be sent to the multiplexing unit 3.
【0021】また図18は、本実施の形態の別の多重符
号化装置及び動画像多重化装置のブロック図であり、図
1のブロック図に、現時刻の復号化装置の入力バッファ
の空き容量を求める復号バッファ空き容量演算部9と、
蓄積部2−1〜2−Nそれぞれに蓄積されているビット
数を求める蓄積符号量演算部12を追加したものであ
る。復号バッファ空き容量演算部9はタイマーを備えて
いる。復号バッファ空き容量演算部9は、多重化制御部
7より多重ビット数を入力し、これを各復号化装置の入
力バッファ占有量に加える。また、各復号化装置の入力
バッファに入力されるフレーム毎の符号量をフレーム符
号量演算部6より、またそのフレームの復号遅延時間を
復号遅延時間演算部5より入力する。そして、タイマー
の値が、フレームが復号化される時刻の値になると、復
号化されるフレームの符号量を復号化装置の入力バッフ
ァ占有量から差し引く。そして、各復号化装置の入力バ
ッファの容量から、入力バッファ占有量を差し引いた値
を、現時刻の復号バッファ空き容量として、多重化制御
部7に出力する。FIG. 18 is a block diagram of another multiplex coding apparatus and a moving picture multiplex apparatus according to the present embodiment. In the block diagram of FIG. 1, the free space of the input buffer of the decoding apparatus at the current time is shown. A decoding buffer free space calculation unit 9 for calculating
A storage code amount calculation unit 12 for calculating the number of bits stored in each of the storage units 2-1 to 2-N is added. The decoding buffer free space calculation unit 9 includes a timer. The decoding buffer free space calculation unit 9 receives the number of multiplexed bits from the multiplexing control unit 7 and adds this to the input buffer occupancy of each decoding device. Also, the code amount for each frame input to the input buffer of each decoding device is input from the frame code amount calculation unit 6 and the decoding delay time of the frame is input from the decoding delay time calculation unit 5. When the value of the timer reaches the value of the time at which the frame is decoded, the code amount of the decoded frame is subtracted from the input buffer occupancy of the decoding device. Then, a value obtained by subtracting the input buffer occupancy from the input buffer capacity of each decoding device is output to the multiplexing control unit 7 as the decoding buffer free space at the current time.
【0022】図19は、図18の多重化制御部7の一例
の詳細図であり、図17の多重符号量演算部74の後段
に最小値選択手段75を追加したものである。最小値選
択手段75は、蓄積部2−1〜2−Nそれぞれに関して
多重符号量演算部74が求めた値と、復号バッファ空き
容量演算部9が求めた現時刻の復号バッファ空き容量
と、蓄積符号量演算部が求めた蓄積部2−1〜2−Nそ
れぞれの蓄積符号量の3つの値の中で最も小さい値を多
重ビット数として多重化部3に出力する。FIG. 19 is a detailed view of an example of the multiplexing control section 7 shown in FIG. 18, in which a minimum value selecting means 75 is added at a stage subsequent to the multiplexed code amount calculating section 74 shown in FIG. The minimum value selecting means 75 calculates the value obtained by the multiplexed code amount calculation unit 74 for each of the storage units 2-1 to 2-N, the decoding buffer free space at the current time obtained by the decoding buffer free space calculation unit 9, and The smallest value among the three values of the stored code amounts of the storage units 2-1 to 2-N obtained by the code amount calculation unit is output to the multiplexing unit 3 as the number of multiplexed bits.
【0023】図3は本発明の動画像多重化方法の第1の
実施の実態のフローチャートであり、多重化制御部7
が、蓄積部2−1〜2−Nから多重化部3に送る動画像
符号化信号の符号量を決定する動作を示す。多重化制御
部7は、まず予め定められた出力ビットレートと、多重
化符号量演算の周期から、多重化部3より出力する動画
像符号化信号のビット数を求める(201)。次に復号
遅延時間演算部5から復号遅延時間を読み込む(20
2)。次にフレーム符号量演算部6からフレームビット
数を読み込む(203)。次に、後に説明する手順で、
第一次の多重ビット数を求める(204)。次に、蓄積
部2−1〜2−Nそれぞれに蓄積されている動画像符号
化信号の符号量を求める(205)。次に、復号化装置
の入力バッファの容量から入力バッファに蓄積されてい
る符号量を引き、入力バッファの空き容量を求める(2
06)。次に、動画像符号化信号それぞれについて、ス
テップ204で求めた第一次の多重ビット数と、ステッ
プ205で求めた符号量と、ステップ206で求めた入
力バッファの空き容量の最小値を求め、第二次の多重ビ
ット数とする(207)。最後に後に説明する手順で蓄
積部2−1〜2−Nから多重化部3に送る動画像符号化
信号のビット数を求める(208)。以上の手順を順に
繰り返す。FIG. 3 is a flow chart of the first embodiment of the moving picture multiplexing method according to the present invention.
Shows the operation of determining the code amount of the moving picture coded signal sent from the storage units 2-1 to 2-N to the multiplexing unit 3. First, the multiplexing control unit 7 obtains the number of bits of the encoded video signal output from the multiplexing unit 3 from the predetermined output bit rate and the cycle of the multiplexed code amount calculation (201). Next, the decoding delay time is read from the decoding delay time calculation unit 5 (20).
2). Next, the number of frame bits is read from the frame code amount calculator 6 (203). Next, in the procedure described later,
A first-order multiplex bit number is obtained (204). Next, the code amount of the encoded video signal stored in each of the storage units 2-1 to 2-N is obtained (205). Next, the amount of codes stored in the input buffer is subtracted from the capacity of the input buffer of the decoding device to determine the free space of the input buffer (2).
06). Next, for each of the moving picture encoded signals, the primary multiplexed bit number obtained in step 204, the code amount obtained in step 205, and the minimum value of the free space of the input buffer obtained in step 206 are obtained. The second-order multiplex bit number is set (207). Finally, the number of bits of the moving picture coded signal to be sent from the storage units 2-1 to 2-N to the multiplexing unit 3 is determined by the procedure described later (208). The above procedure is repeated in order.
【0024】図4は、図3における第一次の多重ビット
数を求めるステップ204を詳細に説明するフローチャ
ートである。まず、各動画像符号化信号について、フレ
ームビット数を復号遅延時間で割った値を求め、これを
Ri(i=1〜N)とする(301)。次に、このR1
からRNまでの総和Rを求める(302)。次に、各動
画像符号化信号について、次式により、第一次の多重ビ
ット数P1iを求める(303)。FIG. 4 is a flowchart for explaining in detail the step 204 for obtaining the first-order multiplexed bit number in FIG. First, a value obtained by dividing the number of frame bits by the decoding delay time is obtained for each encoded moving image signal, and this value is defined as Ri (i = 1 to N) (301). Next, this R1
To RN are obtained (302). Next, the first-order multiplexed bit number P1i is obtained for each moving picture encoded signal by the following equation (303).
【0025】[0025]
【数1】 (Equation 1)
【0026】次に、動画像符号化信号それぞれについ
て、第一次の多重ビット数P1iと、ステップ205で
求めた符号量と、ステップ206で求めた入力バッファ
の空き容量の最小値を求め、第二次の多重ビット数P2
iとする。Next, for each of the moving picture coded signals, the first-order multiplexed bit number P1i, the code amount obtained in step 205, and the minimum value of the free space of the input buffer obtained in step 206 are obtained. Secondary multiplex bit number P2
i.
【0027】図5は、図3における蓄積部2−1〜2−
Nから多重化部3に送る動画像符号化信号のビット数を
求めるステップ208を詳細に説明するフローチャート
である。全ての動画像符号化信号において、P1iとP
2i(i=1〜N)が同一であれば終了する(40
1)。そうでなければ、各動画像符号化信号について、
P1iとP2i(i=1〜N)が同一かどうかを調べ
(402)、同一であれば次式により、ステップ207
で求めた第二次の多重ビット数に加えてさらに多重可能
なビット数P3iを求める(403)。FIG. 5 shows the storage units 2-1 to 2- in FIG.
6 is a flowchart illustrating in detail a step 208 for calculating the number of bits of a coded video signal to be transmitted to the multiplexing unit 3 from N. P1i and P1
If 2i (i = 1 to N) are the same, the process ends (40)
1). Otherwise, for each video encoded signal,
It is checked whether or not P1i and P2i (i = 1 to N) are the same (402).
The number of bits P3i that can be further multiplexed is obtained in addition to the number of secondary multiplexed bits obtained in (403).
【0028】[0028]
【数2】 (Equation 2)
【0029】ここで、minはステップ205で求めた
符号量とステップ206で求めた入力バッファの空き容
量の小さい方の値である。Here, min is the smaller of the code amount obtained in step 205 and the free space of the input buffer obtained in step 206.
【0030】また、P1iとP2iが同一でなければ、
P3iを0とする(404)。次に、ステップ207で
求めた第二次の多重ビット数の総和が、出力ビット数に
対して不足しているビット数Dを次式により求める(4
05)。次に、ステップ403と404で求めたP3i
(i=1〜N)の総和Sを求める(406)。次に、S
がDより大きいかどうかを調べ(407)、大きければ
動画像符号化信号の多重化ビット数を、If P1i and P2i are not the same,
P3i is set to 0 (404). Next, the total number of secondary multiplex bits obtained in step 207 is used to determine the number of bits D that is insufficient for the number of output bits by the following equation (4
05). Next, P3i obtained in steps 403 and 404
The sum S of (i = 1 to N) is obtained (406). Next, S
Is checked to see if is larger than D (407), and if it is larger, the number of multiplexed bits of the moving picture coded signal is
【0031】[0031]
【数3】 (Equation 3)
【0032】とし(408)、SがDより大きくなけれ
ば、(408), if S is not greater than D,
【0033】[0033]
【数4】 (Equation 4)
【0034】とする(409)。以上のように本発明に
よれば、各動画像のフレーム符号量及び、フレームが復
号化装置に入力されなければいけない時刻に基づき、多
重化を制御するため、復号化装置の入力バッファのアン
ダーフローを防ぐことができる。また、常に復号化装置
の入力バッファに蓄積されている符号量を演算し、空き
容量を超える符号量を送信しないように多重化を制御す
るため、復号化装置の入力バッファのオーバーフローを
防ぐことができる。(409). As described above, according to the present invention, the multiplexing is controlled based on the frame code amount of each moving image and the time at which the frame must be input to the decoding device. Can be prevented. Also, since the amount of code stored in the input buffer of the decoding device is always calculated and multiplexing is controlled so as not to transmit the amount of code exceeding the free space, it is possible to prevent the overflow of the input buffer of the decoding device. it can.
【0035】(実施の形態2)第2の実施の形態におい
ても、図1に示した動画像符号化装置及び動画像多重化
装置を用いる。(Embodiment 2) Also in the second embodiment, the moving picture coding apparatus and the moving picture multiplexing apparatus shown in FIG. 1 are used.
【0036】図6は本発明の動画像多重化方法の第2の
実施の形態のフローチャートであり、多重化制御部7
が、蓄積部2−1〜2−Nから多重化部3に送る動画像
符号化信号の符号量である多重ビット数を決定する動作
を示す。多重化制御部7は、まず予め定められた出力ビ
ットレートと、多重化符号量演算の周期から、多重化部
3より出力する動画像符号化信号の全ビット数を求める
(501)。次に、後に説明する手順で動画像符号化信
号それぞれについて送信量の下限値を算出し(50
2)、その下限値のビット数の動画像符号化信号を、蓄
積部1−1〜1−Nから多重化部3に出力する。次に、
復号遅延時間が小さいフレームから順に選択するため
に、比較の基準とする基準時間に初期値を設定する(5
03)。次に、フレーム符号量演算部6から蓄積部1−
1〜1−Nの先頭フレームのビット数を読み込む(50
4)。次に、復号遅延時間演算部5から蓄積部1−1〜
1−Nの先頭フレームの復号遅延時間を読み込む(50
5)。次に、動画像符号化信号それぞれの復号遅延時間
と、基準時間を比較する(506)。そして、復号遅延
時間が基準時間より小さい動画像符号化信号について、
まず復号化器の入力バッファの空き容量を求め(50
7)、504で読み込んだフレームビット数と、507
で求めた入力バッファ空き容量と、動画像符号化信号の
最大出力ビットレートから決まる最大送信符号量のう
ち、最も小さい値を第一次多重ビット数とし復号遅延時
間が基準時間以上の動画像符号化信号については、第一
次多重ビット数は0とする(508)。次に、この第一
次多重ビット数の和を求め、0であれば、多重化符号量
演算の周期を終了する(509)。出力ビット数の残り
ビット数より小さければ(510)、508で求めた第
一次多重ビット数をそれぞれ動画像符号化信号の多重ビ
ット数に加算し(511)、基準時間に例えばフレーム
周期時間を加えて基準時間を更新する(512)。この
とき、第一次多重ビット数の動画像符号化信号をそれぞ
れ、蓄積部1−1〜1−Nから多重化部3に出力する。
また、第一次多重ビット数が出力ビット数の残りビット
数以上であれば、出力ビット数の残りビット数を第一次
多重ビット数に応じて比例配分した値を第二次多重ビッ
ト数とし(513)、求めた第二次多重ビット数をそれ
ぞれ動画像符号化信号の多重ビット数に加算し(51
4)、多重化符号量演算の周期を終了する。このとき、
第二次多重ビット数の動画像符号化信号をそれぞれ、蓄
積部1−1〜1−Nから多重化部3に出力する。以上の
手順を順に繰り返す。FIG. 6 is a flow chart of a second embodiment of the moving picture multiplexing method according to the present invention.
Shows an operation of determining the number of multiplexed bits, which is the code amount of the moving picture coded signal transmitted from the storage units 2-1 to 2-N to the multiplexing unit 3. The multiplexing control unit 7 first obtains the total number of bits of the moving picture coded signal output from the multiplexing unit 3 from the predetermined output bit rate and the cycle of the multiplexed code amount calculation (501). Next, the lower limit value of the transmission amount is calculated for each of the moving picture coded signals by a procedure described later (50).
2) The moving image coded signal having the lower limit of the number of bits is output from the storage units 1-1 to 1-N to the multiplexing unit 3. next,
In order to select frames in ascending decoding delay time, an initial value is set to a reference time as a reference for comparison (5).
03). Next, from the frame code amount calculation unit 6 to the storage unit 1-
The number of bits of the first frame of 1 to 1-N is read (50
4). Next, from the decoding delay time calculation unit 5 to the storage units 1-1 to 1
Read the decoding delay time of the first frame of 1-N (50
5). Next, the decoding delay time of each of the encoded video signals is compared with the reference time (506). Then, for a video encoded signal whose decoding delay time is smaller than the reference time,
First, the free space of the input buffer of the decoder is obtained (50
7) the number of frame bits read in 504 and 507
In the maximum transmission code amount determined from the input buffer free space obtained in the above and the maximum output bit rate of the moving picture coded signal, the smallest value is defined as the number of primary multiplex bits and the moving picture code having a decoding delay time equal to or longer than the reference time For the coded signal, the first-order multiplex bit number is set to 0 (508). Next, the sum of the first-order multiplexed bit numbers is calculated. If the sum is 0, the cycle of the multiplexed code amount calculation ends (509). If the number of remaining output bits is smaller than the number of remaining bits (510), the number of primary multiplexed bits obtained in 508 is added to the number of multiplexed bits of the video encoded signal (511), and a frame period time is added to the reference time, for example. In addition, the reference time is updated (512). At this time, the encoded video signals of the first multiplex bit number are output from the storage units 1-1 to 1-N to the multiplexing unit 3, respectively.
If the number of primary multiplex bits is equal to or greater than the number of remaining bits of the number of output bits, a value obtained by proportionally distributing the number of remaining bits of the number of output bits according to the number of primary multiplex bits is defined as the number of secondary multiplex bits. (513) The obtained number of secondary multiplex bits is added to the number of multiplex bits of the video encoded signal, respectively (51).
4), the multiplex code amount calculation cycle ends. At this time,
The moving image coded signals having the number of secondary multiplex bits are output from the storage units 1-1 to 1-N to the multiplexing unit 3, respectively. The above procedure is repeated in order.
【0037】図7は、図6における送信量の下限値を算
出するステップ502を説明するグラフである。横軸は
時間軸であり、バッファ内のフレームが復号化されるま
での時間を示す。一目盛りが1フレーム周期時間であ
る。縦軸はビット数であり、0以上は符号化器、0より
下は復号化器のバッファ内の各フレームビット数を示
す。グラフXは、各動画像符号化信号のフレームビット
数に基づき、点Aを起点として、フレーム周期時間毎の
フレームビットの累積数を示したものである。点Aの時
間軸の値は次に復号化されるフレームの復号化までの時
間、ビット数軸の値は復号化器入力バッファの符号占有
量である。グラフYは、アンダーフロー回避のために必
要な最低送信量を示す。グラフYは、符号化中のフレー
ムのビット発生量を示す点Bを起点として、グラフXよ
り常に上側に接し、最大の傾きが動画像符号化装置の最
大出力ビットレートを超えないよう、0以上の範囲で引
かれた折れ線である。そして、横軸が多重化符号量演算
の周期時間におけるビット数が、ステップ502で求め
る送信量の下限値である。図7(a)では下限値が0、
(b)では下限値がL(L>0、(c)は(b)の拡大
図)である。この下限値は、動画像符号化信号を多重化
する前に多重化される。FIG. 7 is a graph for explaining step 502 for calculating the lower limit value of the transmission amount in FIG. The horizontal axis is the time axis, which indicates the time until the frame in the buffer is decoded. One scale is one frame cycle time. The vertical axis indicates the number of bits, where 0 or more indicates the number of bits of each frame in the encoder buffer, and 0 or less indicates the number of bits of each frame in the buffer of the decoder. The graph X shows the cumulative number of frame bits for each frame cycle time starting from the point A based on the number of frame bits of each moving picture encoded signal. The value on the time axis at point A is the time until decoding of the next frame to be decoded, and the value on the bit number axis is the code occupancy of the decoder input buffer. A graph Y shows a minimum transmission amount necessary for avoiding underflow. The graph Y is always tangent to the upper side of the graph X with the point B indicating the bit generation amount of the frame being encoded as a starting point, and 0 or more so that the maximum gradient does not exceed the maximum output bit rate of the video encoding device. Is a polygonal line drawn in the range. The number of bits in the cycle time of the multiplex code amount calculation on the horizontal axis is the lower limit value of the transmission amount obtained in step 502. In FIG. 7A, the lower limit is 0,
In (b), the lower limit is L (L> 0, (c) is an enlarged view of (b)). This lower limit is multiplexed before multiplexing the moving picture coded signal.
【0038】以上のように本多重化方法によれば、でき
るだけ復号化までの時間が小さいフレームから先に出力
し、またアンダーフローを発生させないために必要な符
号量は優先的に出力させるため、復号化装置の入力バッ
ファのアンダーフローを防ぐことができる。As described above, according to the present multiplexing method, a frame having a shortest decoding time is output first, and a code amount necessary for preventing occurrence of underflow is output with priority. The underflow of the input buffer of the decoding device can be prevented.
【0039】先に説明した本発明の動画像符号化装置及
び動画像符号化方法の第1の実施の形態では、動画像符
号化信号の最大出力ビットレートや、復号化器の入力バ
ッファの容量に制限がない場合は有効である。しかし、
最大出力ビットレートや入力バッファ容量に制限がある
場合は、第1の実施の形態では動画像符号化信号の送信
が間に合わず、復号化器においてバッファのアンダーフ
ローが発生することがある。一例として、入力される複
数の動画像信号の一部で、映像の複雑さが非常に大きく
なり発生符号量が急に増大した場合を考える。このと
き、発生符号量が増大した動画像符号化信号を復号化す
る復号化器では、復号化されるフレームの符号量に対し
て発生するフレームの符号量が大きいため、入力バッフ
ァが一杯の状態となる。そのため、発生符号量が大きく
増大していない動画像符号化信号の出力符号量が増え、
符号化器後段の蓄積部に蓄積される動画像符号化信号が
減少していく。そして、出力可能な動画像符号化信号の
符号量が減少し、その結果、多重部からの出力ビットレ
ートが不足することになる。量子化制御は常に多重部か
らの出力ビットレートが一定であるとしているため、送
信量の減少により復号化器においてバッファのアンダー
フローが発生することになる。そこで、復号化器におい
てバッファのアンダーフローが発生しないようにするた
めには、予め復号に影響しない信号を挿入する(スタッ
フィングを行う)ことが必要となる。これを実現する本
発明の動画像符号化装置及び動画像符号化方法の実施の
形態を以下に示す。In the first embodiment of the moving picture coding apparatus and the moving picture coding method of the present invention described above, the maximum output bit rate of a coded moving picture signal and the capacity of an input buffer of a decoder are described. It is effective if there is no limit. But,
If the maximum output bit rate or the input buffer capacity is limited, in the first embodiment, the transmission of the moving picture coded signal cannot be made in time, and the buffer may underflow in the decoder. As an example, consider a case where a part of a plurality of input moving image signals has a very large video complexity and a generated code amount suddenly increases. At this time, in the decoder that decodes the coded video signal with the generated code amount increased, the input buffer is full because the code amount of the generated frame is larger than the code amount of the decoded frame. Becomes Therefore, the output code amount of the moving picture coded signal in which the generated code amount has not greatly increased,
The moving image coded signal stored in the storage unit downstream of the encoder decreases. Then, the code amount of the encoded video signal that can be output decreases, and as a result, the output bit rate from the multiplexing unit becomes insufficient. Since the quantization control always assumes that the output bit rate from the multiplexing unit is constant, a buffer underflow occurs in the decoder due to a decrease in the amount of transmission. Therefore, in order to prevent buffer underflow from occurring in the decoder, it is necessary to insert a signal that does not affect decoding (perform stuffing) in advance. Embodiments of the moving picture coding apparatus and the moving picture coding method of the present invention for realizing this will be described below.
【0040】(実施の形態3)次に本発明の第3の実施
の形態について説明する。図8は本発明の動画像符号化
装置及び動画像多重化装置の一実施の形態のブロック図
である。2−1〜2−N、3〜8については、図1と同
様である。9は復号化器の入力バッファに蓄積されてい
るビット数を演算し、入力バッファの空き容量を求める
復号バッファ空き容量演算部、10は蓄積部2−1〜2
−Nに蓄積されているそれぞれの動画像符号化信号の符
号量と、復号バッファ空き容量演算部9が求めた、蓄積
部2−1〜2−Nにそれぞれ対応する復号バッファ空き
容量の差分を求める符号量差分演算部、11は符号量差
分演算部10が求めた差分値に基づき、符号化部1−1
〜1−Nが符号化時に動画像符号化信号に行うスタッフ
ィングの符号量を制御するスタッフィング制御部であ
る。(Embodiment 3) Next, a third embodiment of the present invention will be described. FIG. 8 is a block diagram of an embodiment of the moving picture coding apparatus and the moving picture multiplexing apparatus according to the present invention. 2-1 to 2-N and 3 to 8 are the same as those in FIG. Reference numeral 9 denotes a decoding buffer free space calculation unit for calculating the number of bits stored in the input buffer of the decoder, and obtaining a free space of the input buffer.
−N and the difference between the code amount of each moving picture coded signal stored in the decoding buffer free space calculation unit 9 and the decoding buffer free space corresponding to each of the storage units 2-1 to 2-N. The code amount difference calculation unit 11 to be determined is based on the difference value obtained by the code amount difference calculation unit 10, and the coding unit 1-1
Reference numerals 1 to 1-N denote stuffing control units that control the amount of stuffing performed on a coded video signal during encoding.
【0041】図16は、図8の符号化部1−1の一例の
詳細図であり、図15の可変長符号化手段104−1の
後段にスタッフィング手段109−1を追加したもので
ある。符号化部1−2〜1−Nについても同じ構成であ
る。スタッフィング手段109−1は、可変長符号化手
段104−1の出力信号に対し、スタッフィング制御部
11から与えられたスタッフィング量のスタッフィング
ビットを挿入し、出力するものである。FIG. 16 is a detailed diagram of an example of the encoding unit 1-1 in FIG. 8, in which a stuffing unit 109-1 is added at the subsequent stage of the variable length encoding unit 104-1 in FIG. Encoding sections 1-2 to 1-N have the same configuration. The stuffing unit 109-1 inserts a stuffing bit of the stuffing amount given from the stuffing control unit 11 into the output signal of the variable length coding unit 104-1 and outputs the signal.
【0042】以上のような構成において、その動作を以
下に説明する。復号遅延時間演算部5は、図1と同様、
蓄積部2−1〜2−Nにそれぞれについて、蓄積されて
いる動画像符号化信号の中で、最初に多重化部3に送ら
れるビットの復号遅延時間を求め、復号バッファ空き容
量演算部9に出力する。また、フレーム符号量演算部6
は、図1と同様、蓄積部2−1〜2−Nに蓄積されてい
る動画像符号化信号の中で、最初に多重化部3に送られ
るビットが含まれるフレームの符号量を求め、復号バッ
ファ空き容量演算部9に出力する。また、蓄積部2−1
〜2−Nに蓄積されている動画像符号化信号の符号量
は、加算器8により全て加算された後、復号バッファ空
き容量演算部9に出力される。The operation of the above configuration will be described below. The decoding delay time calculation unit 5 is similar to FIG.
For each of the storage units 2-1 to 2-N, the decoding delay time of the bit transmitted to the multiplexing unit 3 in the moving picture coded signal stored first is determined, and the decoding buffer free space calculation unit 9 Output to Further, the frame code amount calculation unit 6
As in FIG. 1, the code amount of a frame including bits to be sent to the multiplexing unit 3 first among the moving picture coded signals stored in the storage units 2-1 to 2-N is calculated. Output to the decoding buffer free space calculation unit 9. The storage unit 2-1
The code amount of the moving picture coded signal stored in .about.2-N is all added by the adder 8, and then output to the decoding buffer free space calculation unit 9.
【0043】復号バッファ空き容量演算部9はタイマー
を備え、また予め多重化部からの出力ビットレートのう
ち、動画像符号化信号に割り当てられているビットレー
トである動画像出力ビットレートが記憶されている。復
号バッファ空き容量演算部9はまず、入力された複数の
動画像符号化信号のフレームそれぞれの復号遅延時間と
符号量、及びタイマーの値から現在の復号バッファの空
き容量を求める。次に、蓄積部2−1〜2−Nに蓄積さ
れている動画像符号化信号の符号量の総和と、多重部か
ら出力される動画像符号化信号の動画像出力ビットレー
トに基づき、蓄積部2−1〜2−Nに蓄積されている全
ての動画像符号化信号の符号量の動画像符号化信号を動
画像出力ビットレートで送信する時間Tを、次式により
求める。The decoding buffer free space calculating section 9 has a timer, and stores a moving picture output bit rate which is a bit rate assigned to a moving picture coded signal among output bit rates from the multiplexing section in advance. ing. First, the decoding buffer free space calculation unit 9 obtains the current free space of the decoding buffer from the decoding delay time and the code amount of each of the frames of the plurality of input moving picture encoded signals and the timer value. Next, based on the sum total of the code amounts of the moving picture coded signals stored in the storage units 2-1 to 2-N and the moving picture output bit rate of the moving picture coded signal output from the multiplexing unit, The time T for transmitting the moving picture encoded signals of the coding amounts of all the moving picture encoded signals stored in the units 2-1 to 2-N at the moving picture output bit rate is obtained by the following equation.
【0044】[0044]
【数5】 (Equation 5)
【0045】そして、現在から時間Tの間、復号化器の
入力バッファに動画像符号化信号が入力されなかったと
仮定した場合の、時間T経過後の復号化器の入力バッフ
ァの空き容量を求める。図9は復号バッファ空き容量演
算部9が行う演算の説明図である。図9(a)は現在の
蓄積部、及び復号化器入力バッファの状態であり、A1
は現在の蓄積部内の符号量、B1は復号バッファ空き容
量演算部9が求めた現在の復号化器入力バッファの空き
容量である。そして、現在から時間Tの間に、復号化器
で3フレーム復号化されるとすると、復号バッファ空き
容量演算部9は、B1に入力バッファの先頭から3フレ
ームの符号量を加えたB2を、結果として出力する(図
9(b))。Then, assuming that no moving picture coded signal has been input to the input buffer of the decoder during the time T from the present time, the free space of the input buffer of the decoder after the lapse of the time T is determined. . FIG. 9 is an explanatory diagram of the calculation performed by the decoding buffer free space calculation unit 9. FIG. 9A shows the current state of the storage unit and the input buffer of the decoder.
Is the current code amount in the storage unit, and B1 is the current free space in the decoder input buffer calculated by the decoding buffer free space calculation unit 9. Then, assuming that three frames are decoded by the decoder during the time T from the present time, the decoding buffer free space calculation unit 9 calculates B2 obtained by adding the code amount of three frames from the head of the input buffer to B1. The result is output (FIG. 9B).
【0046】符号量差分演算部10は、蓄積部2−1〜
2−Nに蓄積されているそれぞれの動画像符号化信号の
符号量と、復号バッファ空き容量演算部9が求めた、蓄
積部2−1〜2−Nにそれぞれ対応する復号バッファ空
き容量の差分をN個求め、N個の差分値をスタッフィン
グ制御部11に出力する。The code amount difference calculating section 10 includes storage sections 2-1 to 2-1.
Difference between the code amount of each moving picture coded signal stored in 2-N and the decoding buffer free space corresponding to each of the storage units 2-1 to 2-N calculated by the decoding buffer free space calculating unit 9. And outputs the N difference values to the stuffing control unit 11.
【0047】図10は、スタッフィング制御部11の動
作を示すフローチャートである。まず、符号量差分演算
部10が求めたN個の差分値をそれぞれGi(i=1〜
N)とし、その値の和を求めるためのSpとSmを0に
する(601)。次に、G1からGNがそれぞれ0以上
か否かを調べ(602)、0以上であればSpに加算し
(603)、0より小さければ絶対値をSmに加算する
(604)。次に、Spが0より大きいか否かを調べ、
Spが0より大きければスタッフィングビット数を求め
るステップ605〜611に進み、Spが0であればス
タッフィングを行わずに終了する(612)。次に、S
mがSp以上か否かを調べる(605)。SmがSp以
上であれば、G1からGNがそれぞれ0より小さいか否
かを調べ(606)、小さければGiに対応する動画像
符号化信号に対するスタッフィングビット数を次式によ
り求め(607)、FIG. 10 is a flowchart showing the operation of the stuffing control unit 11. First, the N difference values obtained by the code amount difference calculation unit 10 are respectively represented by Gi (i = 1 to
N), and Sp and Sm for obtaining the sum of the values are set to 0 (601). Next, it is checked whether or not each of G1 to GN is 0 or more (602). If it is 0 or more, it is added to Sp (603). If it is smaller than 0, the absolute value is added to Sm (604). Next, it is checked whether Sp is greater than 0,
If Sp is greater than 0, the process proceeds to steps 605 to 611 for calculating the number of stuffing bits, and if Sp is 0, the process ends without performing stuffing (612). Next, S
It is checked whether m is equal to or greater than Sp (605). If Sm is equal to or greater than Sp, it is checked whether each of G1 to GN is smaller than 0 (606), and if smaller, the number of stuffing bits for the moving picture coded signal corresponding to Gi is obtained by the following equation (607).
【0048】[0048]
【数6】 (Equation 6)
【0049】大きければスタッフィングビット数を0と
する(608)。また、SmがSpより小さければ、G
1からGNがそれぞれ0より小さいか否かを調べ(60
9)、小さければGiに対応する動画像符号化信号に対
するスタッフィングビット数をGiの絶対値とし(61
0)、大きければスタッフィングビット数を0とする
(611)。If it is larger, the number of stuffing bits is set to 0 (608). If Sm is smaller than Sp, G
It is checked whether GN is smaller than 0 from 1 (60).
9) If the number is small, the number of stuffing bits for the video encoded signal corresponding to Gi is set as the absolute value of Gi (61).
0), and if larger, the number of stuffing bits is set to 0 (611).
【0050】以上のように本実施の形態では、動画像符
号化信号にスタッフィングを行うことにより、一部の動
画像符号化信号の発生ビット数が急激に増加した場合、
スタッフィングを行わなかったときに復号化装置で発生
するアンダーフローを防止することができる。As described above, in this embodiment, by performing stuffing on a coded video signal, if the number of generated bits of some coded video signals increases rapidly,
It is possible to prevent underflow that occurs in the decoding device when stuffing is not performed.
【0051】なお、本実施の形態のスタッフィングビッ
ト数の求め方は一例であり、動画像符号化信号のバイト
アライン等のためにそれぞれのスタッフィングビット数
を増減させたり、Spに係数をかけるなどしてスタッフ
ィングビットの総数を増減させたり、Smが0より小さ
い動画像符号化信号にSpを均等に割り当てたりしても
よい。また、本実施の形態では、符号量差分演算部10
で求めた値を0以上か否かでスタッフィングするか否か
を決めたが、0以外の値を用いてもよい。The method of determining the number of stuffing bits according to the present embodiment is merely an example. For example, the number of stuffing bits may be increased or decreased for byte alignment of a coded video signal, or a coefficient may be applied to Sp. Alternatively, the total number of stuffing bits may be increased or decreased, or Sp may be uniformly allocated to a moving picture coded signal having Sm smaller than 0. In the present embodiment, the code amount difference calculation unit 10
Although whether or not to perform stuffing is determined based on whether or not the value obtained in step 2 is 0 or more, a value other than 0 may be used.
【0052】(実施の形態4)次に本発明の第4の実施
の形態について説明する。図11は本発明の動画像符号
化装置及び動画像多重化装置の一実施の形態のブロック
図である。図11では、図8と異なる点として、符号量
差分演算部10がバッファの差分値を量子化制御部4に
出力するようにしている。他は図8と同様である。以上
のような構成において、その動作を以下に説明する。本
実施の形態において量子化制御部4は、第3の実施の形
態でスタッフィングを行う条件が満たされた場合、符号
化部1−1〜1−Nのうちスタッフィングするよう制御
をしていた符号化部に対し、与える量子化幅の値を小さ
くする。すなわち、加算器8の出力した符号量から量子
化制御部4が求めた量子化幅をQとすると、符号化部1
−1〜1−Nのうちスタッフィングするよう制御をして
いた符号化部に対しては例えば、量子化幅を[k×Q]
とする。ここで、kは1より小さい正の数であり、
[n]はnを超えない最大の整数を表す。量子化制御部
4は、符号量差分演算部10よりバッファの差分値を入
力し、図10と同様の動作を行う。但し、ステップ60
7とステップ610では量子化幅の値を小さくする動作
を行い、ステップ608とステップ611では、量子化
幅の値をそのままとする動作を行う。(Embodiment 4) Next, a fourth embodiment of the present invention will be described. FIG. 11 is a block diagram of an embodiment of the moving picture coding apparatus and the moving picture multiplexing apparatus according to the present invention. 11 is different from FIG. 8 in that the code amount difference calculation unit 10 outputs the difference value of the buffer to the quantization control unit 4. Others are the same as FIG. The operation of the above configuration will be described below. In the present embodiment, when the condition for performing the stuffing is satisfied in the third embodiment, the quantization control unit 4 controls the stuffing control of the encoding units 1-1 to 1-N to perform the stuffing. The value of the quantization width given to the quantization unit is reduced. That is, if the quantization width obtained by the quantization control unit 4 from the code amount output from the adder 8 is Q, the encoding unit 1
For example, for a coding unit that has been controlled to perform stuffing among −1 to 1−N, the quantization width is set to [k × Q].
And Where k is a positive number less than 1;
[N] represents the largest integer not exceeding n. The quantization control unit 4 receives the buffer difference value from the code amount difference calculation unit 10 and performs the same operation as in FIG. However, step 60
In steps 7 and 610, an operation of reducing the value of the quantization width is performed, and in steps 608 and 611, an operation of keeping the value of the quantization width as it is is performed.
【0053】以上のように本実施の形態では、動画像符
号化信号にスタッフィングを行う代わりに、符号化で用
いる量子化幅を小さくして符号量を増加させることによ
り、復号化装置で発生するアンダーフローを防止するこ
とができるとともに、動画像符号化信号の画質を向上さ
せることができる。As described above, in the present embodiment, instead of performing stuffing on a coded moving picture signal, the quantization width used in coding is reduced to increase the amount of codes, thereby generating a decoding device. The underflow can be prevented, and the image quality of the encoded moving image signal can be improved.
【0054】(実施の形態5)次に本発明の第5の実施
の形態について説明する。装置構成は第4の実施の形態
と同じである。本実施の形態において量子化制御部4
は、第3の実施の形態で符号化部1〜Nのうちスタッフ
ィングするよう制御をしていなかった符号化部に対し
て、与える量子化幅の値を大きくする。すなわち、加算
器8の出力した符号量から量子化制御部4が求めた量子
化幅をQとすると、符号化部1〜Nのうちスタッフィン
グするよう制御をしていなかった符号化部に対しては例
えば、量子化幅を[k×Q]とする。ここで、kは1よ
り大きい正の数であり、[n]はnを超えない最大の整
数を表す。(Embodiment 5) Next, a fifth embodiment of the present invention will be described. The device configuration is the same as that of the fourth embodiment. In the present embodiment, the quantization control unit 4
Increases the value of the quantization width given to the encoding unit that is not controlled to perform stuffing in the encoding units 1 to N in the third embodiment. That is, assuming that the quantization width obtained by the quantization control unit 4 from the code amount output from the adder 8 is Q, the encoding unit which is not controlled to perform stuffing among the encoding units 1 to N For example, the quantization width is [k × Q]. Here, k is a positive number greater than 1, and [n] represents the largest integer not exceeding n.
【0055】量子化制御部4は、符号量差分演算部10
よりバッファの差分値を入力し、図10と同様の動作を
行う。但し、ステップ607とステップ610では量子
化幅の値を大きくする動作を行い、ステップ608とス
テップ611では、量子化幅の値をそのままとする動作
を行う。The quantization controller 4 includes a code amount difference calculator 10
The difference value of the buffer is input, and the same operation as in FIG. 10 is performed. However, in steps 607 and 610, an operation of increasing the value of the quantization width is performed, and in steps 608 and 611, an operation of maintaining the value of the quantization width is performed.
【0056】以上のように本実施の形態では、第4の実
施の形態とは逆に、スタッフィングを行っていなかった
動画像信号に対して、発生符号量を減少させるよう制御
することで、第4の実施の形態と同様の効果を得ること
ができる。なお、第4の実施の形態と第5の実施の形態
を組み合わせ、発生符号量が増加した動画像信号の量子
化幅を大きくすると同時に、それ以外の動画像信号の量
子化幅を小さくしてもよい。As described above, in the present embodiment, in contrast to the fourth embodiment, control is performed to reduce the generated code amount for a moving image signal on which stuffing has not been performed. The same effect as that of the fourth embodiment can be obtained. It should be noted that the fourth embodiment and the fifth embodiment are combined to increase the quantization width of a moving image signal having an increased amount of generated codes and to reduce the quantization width of other moving image signals. Is also good.
【0057】(実施の形態6)次に本発明の第6の実施
の形態について説明する。図12は本発明の動画像符号
化装置及び動画像多重化装置の一実施の形態のブロック
図である。図12では、図11からスタッフィング制御
部11を取り除いている。また、多重化部3に対して必
要なスタッフィング制御を行う多重化制御部7が、スタ
ッフィング符号量を量子化制御部4に出力するようにし
ている。(Embodiment 6) Next, a sixth embodiment of the present invention will be described. FIG. 12 is a block diagram of an embodiment of the video encoding device and the video multiplexing device of the present invention. 12, the stuffing control unit 11 is removed from FIG. A multiplexing control unit 7 that performs necessary stuffing control on the multiplexing unit 3 outputs a stuffing code amount to the quantization control unit 4.
【0058】以上のような構成において、その動作を以
下に説明する。本実施の形態において量子化制御部4
は、加算器8により加算された、蓄積部2−1〜2−N
に蓄積されている動画像符号化信号の符号量と、符号量
差分演算部10の演算結果に基づき量子化幅を求める。
本実施の形態では、量子化制御部4は、図10のステッ
プ601からステップ604を実行し、Spを求める。
次に、このSpを、蓄積部2−1〜2−Nに蓄積されて
いる動画像符号化信号の符号量の和に加算する。そし
て、第1の実施の形態と同様に量子化幅を求める。ま
た、必要なスタッフィングは多重化制御部7の制御によ
り多重化部3で行う。量子化制御部4はスタッフィング
符号量を多重化制御部7から受け取り、Spと比較す
る。そして、Spの累積値とスタッフィング符号量の累
積値の誤差が一定の範囲に収まるよう、Spを調整す
る。以上のように本実施の形態では、第3の実施の形態
と比較してより簡易な装置構成で、同様の効果を得るこ
とができる。The operation of the above configuration will be described below. In the present embodiment, the quantization control unit 4
Are the accumulation units 2-1 to 2-N added by the adder 8
The quantization width is obtained based on the code amount of the moving picture coded signal stored in the.
In the present embodiment, the quantization control unit 4 executes Steps 601 to 604 in FIG. 10 to obtain Sp.
Next, this Sp is added to the sum of the code amounts of the encoded video signals stored in the storage units 2-1 to 2-N. Then, the quantization width is obtained in the same manner as in the first embodiment. The necessary stuffing is performed by the multiplexing unit 3 under the control of the multiplexing control unit 7. The quantization control unit 4 receives the stuffing code amount from the multiplexing control unit 7 and compares it with Sp. Then, Sp is adjusted so that the error between the cumulative value of Sp and the cumulative value of the stuffing code amount falls within a certain range. As described above, in the present embodiment, similar effects can be obtained with a simpler device configuration than in the third embodiment.
【0059】(実施の形態7)次に本発明の第7の実施
の形態について説明する。(Embodiment 7) Next, a seventh embodiment of the present invention will be described.
【0060】入力される動画像信号の1画面を構成する
画素数が多い場合、1台の符号化装置では処理速度が足
りない場合がある。そのような入力動画像信号を符号化
する手段の一つとして、画面分割符号化がある。When the number of pixels constituting one screen of an input moving image signal is large, the processing speed may not be sufficient with one encoding device. One of the means for encoding such an input moving image signal is screen division encoding.
【0061】第1から第6の実施の形態では、各符号化
部は異なる動画像を符号化したが、本発明は画面分割符
号化にも適用できる。図13は本発明の動画像符号化装
置及び動画像多重化装置の一実施の形態のブロック図で
ある。図13では、図1の符号化部1−1〜1−Nの前
段に画面分割部12を備えている。画面分割部12は、
入力された動画像信号の画面全体を、図14に示すよう
に、複数の部分画面に分割し、部分画面の動画像信号を
符号化部1−1〜1−Nに出力する。符号化部1−1〜
1−Nは入力された動画像信号を、量子化制御部4が出
力する量子化幅を用いて符号化する。このとき、符号化
部1−1〜1−Nには全て同じ値の量子化幅が与えられ
る。符号化部1−1〜1−Nが出力した動画像符号化信
号は一時的に蓄積部2−1〜2−Nに蓄積される。蓄積
部2−1〜2−Nに蓄積されている動画像符号化信号の
符号量は、加算器8により全て加算された後、量子化制
御部4に出力される。量子化制御部4は、加算器8が出
力した符号量を、量子化幅に変換する。In the first to sixth embodiments, each encoder encodes a different moving image. However, the present invention can be applied to screen division encoding. FIG. 13 is a block diagram of an embodiment of the moving picture coding apparatus and the moving picture multiplexing apparatus according to the present invention. In FIG. 13, a screen division unit 12 is provided at a stage preceding the encoding units 1-1 to 1-N in FIG. The screen division unit 12
As shown in FIG. 14, the entire screen of the input moving image signal is divided into a plurality of partial screens, and the moving image signals of the partial screens are output to the encoding units 1-1 to 1-N. Encoding unit 1-1
1-N encodes the input video signal using the quantization width output from the quantization control unit 4. At this time, the encoding units 1-1 to 1-N are all given the same quantization width. The encoded video signals output from the encoding units 1-1 to 1-N are temporarily stored in the storage units 2-1 to 2-N. The code amounts of the encoded moving image signals stored in the storage units 2-1 to 2-N are all added by the adder 8, and then output to the quantization control unit 4. The quantization control unit 4 converts the code amount output from the adder 8 into a quantization width.
【0062】フレーム符号量演算部6は、蓄積部2−1
〜2−Nに蓄積されている動画像符号化信号の中で、最
初に多重化部3に送られるビットが含まれるフレームの
符号量を求める。多重化制御部7は、フレーム符号量演
算部6が求めた値のビット数だけ、また、画面の分割方
法に基づく順序で、動画像符号化信号が蓄積部2−1〜
2−Nそれぞれから多重化部3に送られるよう、多重部
3を制御する。多重化部3は、多重化制御部7の制御に
基づき、1画面の符号化信号が構成されるよう、動画像
符号化信号を多重化して、一定のビットレートで出力す
る。The frame code amount calculation section 6 includes a storage section 2-1.
In the moving picture coded signal stored in .about.2-N, the code amount of the frame including the bit transmitted to the multiplexing unit 3 first is obtained. The multiplexing control unit 7 stores the encoded video signals in the storage units 2-1 to 2-1 in the order of the number of bits of the value obtained by the frame code amount calculation unit 6 and in the order based on the screen division method.
The multiplexing unit 3 is controlled so as to be transmitted from each of the 2-N to the multiplexing unit 3. The multiplexing unit 3 multiplexes the coded moving image signal to form a coded signal of one screen based on the control of the multiplexing control unit 7 and outputs the multiplexed moving image signal at a constant bit rate.
【0063】以上のように本実施の形態では、画面を分
割して符号化する場合に、全ての部分画面を同じ量子化
幅で符号化するため、画面内での画質のばらつきを抑え
ることができる。As described above, in the present embodiment, when a screen is divided and coded, all partial screens are coded with the same quantization width, so that variations in image quality within the screen can be suppressed. it can.
【0064】なお、本実施の形態では一つの画面を横方
向に4つに分割したが、分割方法は横方向だけでなく縦
方向や縦横組み合わせての分割でもよく、分割数も4以
外の自然数でもよい。In the present embodiment, one screen is divided into four in the horizontal direction. However, the division method may be not only the horizontal direction but also the vertical or horizontal / vertical combination. May be.
【0065】[0065]
【発明の効果】以上のように本発明によれば、全ての入
力動画像に対して同じ量子化幅で圧縮符号化するため、
符号化された動画像の画質評価を行うことなく、複数の
出力動画像の画質を常に均一にすることができる。ま
た、シーンチェンジなどで急激に画像が複雑になった直
後でも、符号化された動画像の画質が大きく劣化しな
い。また、復号化装置の入力バッファがオーバーフロー
やアンダーフローを発生しない、動画像符号化信号を生
成することができる。As described above, according to the present invention, all the input moving pictures are compression-coded with the same quantization width.
The image quality of a plurality of output moving images can always be made uniform without evaluating the image quality of the encoded moving image. Further, even immediately after the image is rapidly complicated due to a scene change or the like, the image quality of the encoded moving image does not significantly deteriorate. Further, it is possible to generate a coded moving image signal in which the input buffer of the decoding device does not cause overflow or underflow.
【図1】本発明の第1の実施の形態における動画像符号
化装置及び動画像多重化装置のブロック図FIG. 1 is a block diagram of a video encoding device and a video multiplexing device according to a first embodiment of the present invention.
【図2】蓄積部に蓄積されている符号化量から量子化幅
を求める方法の実施の形態を説明する図FIG. 2 is a view for explaining an embodiment of a method for obtaining a quantization width from a coding amount stored in a storage unit;
【図3】本発明の動画像多重化方法の第1の実施の形態
のフローチャートFIG. 3 is a flowchart of a moving image multiplexing method according to a first embodiment of the present invention;
【図4】図3のステップ204の第一次多重ビット数の
求め方の、詳細なフローチャートFIG. 4 is a detailed flowchart of a method of obtaining the number of primary multiplex bits in step 204 of FIG. 3;
【図5】図3のステップ208の多重ビット数の求め方
の、詳細なフローチャートFIG. 5 is a detailed flowchart of a method of calculating the number of multiplexed bits in step 208 of FIG. 3;
【図6】本発明の動画像多重化方法の第2の実施の形態
のフローチャートFIG. 6 is a flowchart of a moving image multiplexing method according to a second embodiment of the present invention;
【図7】図6における送信量の下限値を算出するステッ
プ502を説明する図FIG. 7 is a view for explaining step 502 of calculating the lower limit value of the transmission amount in FIG. 6;
【図8】本発明の第3の実施の形態における動画像符号
化装置及び動画像多重化装置のブロック図FIG. 8 is a block diagram of a video encoding device and a video multiplexing device according to a third embodiment of the present invention.
【図9】復号バッファ空き容量演算部9が行う演算の説
明図FIG. 9 is an explanatory diagram of a calculation performed by a decoding buffer free space calculation unit 9;
【図10】スタッフィング制御部11の動作を示すフロ
ーチャートFIG. 10 is a flowchart showing the operation of the stuffing control unit 11;
【図11】本発明の第4、第5の実施の形態における動
画像符号化装置及び動画像多重化装置のブロック図FIG. 11 is a block diagram of a moving picture coding apparatus and a moving picture multiplexing apparatus according to fourth and fifth embodiments of the present invention.
【図12】本発明の第6の実施の形態における動画像符
号化装置及び動画像多重化装置のブロック図FIG. 12 is a block diagram of a video encoding device and a video multiplexing device according to a sixth embodiment of the present invention.
【図13】本発明の第7の実施の形態における動画像符
号化装置及び動画像多重化装置のブロック図FIG. 13 is a block diagram of a video encoding device and a video multiplexing device according to a seventh embodiment of the present invention.
【図14】本発明の第7の実施の形態における画面分割
方法の一例の模式図FIG. 14 is a schematic diagram illustrating an example of a screen division method according to the seventh embodiment of the present invention.
【図15】符号化部1−1の一例の詳細図FIG. 15 is a detailed diagram of an example of an encoding unit 1-1.
【図16】符号化部1−1の一例の詳細図FIG. 16 is a detailed diagram of an example of an encoding unit 1-1.
【図17】多重化制御部7の一例の詳細図FIG. 17 is a detailed diagram of an example of the multiplexing control section 7;
【図18】本発明の第1の実施の形態の別の多重符号化
装置及び動画像多重化装置のブロック図FIG. 18 is a block diagram of another multiplex encoding device and a moving image multiplexing device according to the first embodiment of the present invention.
【図19】多重化制御部7の一例の詳細図FIG. 19 is a detailed diagram of an example of the multiplexing control section 7.
1−1〜1−N 符号化部 2−1〜2−N 蓄積部 3 多重化部 4 量子化制御部 5 復号遅延時間演算部 6 フレーム符号量演算部 7 多重化制御部 8 加算器 9 復号バッファ空き容量演算部 10 符号量差分演算部 11 スタッフィング制御部 12 画面分割部 1-1 to 1-N encoding unit 2-1 to 2-N storage unit 3 multiplexing unit 4 quantization control unit 5 decoding delay time calculation unit 6 frame code amount calculation unit 7 multiplex control unit 8 adder 9 decoding Buffer free space calculation unit 10 Code amount difference calculation unit 11 Stuffing control unit 12 Screen division unit
Claims (23)
号化装置であって、前記動画像信号を所定の量子化幅で
量子化する量子化手段をそれぞれ有し、かつ、前記複数
の動画像信号を符号化する複数の符号化手段と、前記各
量子化手段が用いる量子化幅を同時に制御する量子化制
御手段を備えたことを特徴とする動画像符号化装置。1. A moving picture coding apparatus for coding a plurality of moving picture signals, the apparatus further comprising quantization means for quantizing the moving picture signals with a predetermined quantization width, and A moving picture coding apparatus comprising: a plurality of coding means for coding a moving picture signal; and a quantization control means for simultaneously controlling a quantization width used by each of the quantization means.
て同じ値であることを特徴とする請求項1記載の動画像
符号化装置。2. The moving picture coding apparatus according to claim 1, wherein the quantization widths used by said quantization means are all the same value.
された複数の動画像符号化信号を一時的に蓄積する複数
の蓄積手段をさらに備え、前記量子化制御手段が、前記
蓄積手段に蓄積されている前記複数の動画像符号化信号
の符号量の総和に基づいて、前記各量子化手段が用いる
量子化幅を決定することを特徴とする請求項1記載の動
画像符号化装置。3. The image processing apparatus according to claim 1, further comprising a plurality of storage units for temporarily storing a plurality of encoded video signals in which the plurality of video signals are encoded, wherein the quantization control unit stores the encoded video signals in the storage unit. 2. The moving picture coding apparatus according to claim 1, wherein a quantization width used by each of the quantizing means is determined based on a total sum of code amounts of the plurality of coded moving picture signals.
れる複数の動画像符号化信号を多重化する動画像多重化
装置であって、前記複数の動画像符号化信号をそれぞれ
一時的に蓄積する複数の蓄積手段と、前記複数の蓄積手
段に蓄積されている前記複数の動画像符号化信号を多重
化し、一定のビットレートで出力する多重化手段と、前
記複数の動画像符号化信号のそれぞれの特定のビットが
復号化装置に入力されてから復号されるまでの時間を演
算する復号遅延時間演算手段と、前記複数の蓄積手段に
蓄積されている、前記複数の動画像符号化信号のそれぞ
れの前記特定のビットが属するフレームの符号量を演算
するフレーム符号量演算手段と、前記復号遅延時間演算
手段と前記フレーム符号量演算手段の演算結果に基づい
て前記複数の蓄積手段から前記多重化手段に入力される
前記複数の動画像符号化信号の符号量である複数の第1
の入力符号量を制御する多重化制御手段を備えたことを
特徴とする動画像多重化装置。4. A moving picture multiplexing apparatus for multiplexing a plurality of coded moving picture signals obtained by coding a moving picture signal, wherein each of the plurality of coded moving picture signals is temporarily stored. A plurality of storage means, a multiplexing means for multiplexing the plurality of encoded video signals stored in the plurality of storage means, and outputting the multiplexed video signals at a constant bit rate; Decoding delay time calculating means for calculating the time from when each specific bit is input to the decoding device to when it is decoded, and the plurality of moving picture encoded signals stored in the plurality of storing means, Frame code amount calculating means for calculating the code amount of the frame to which each of the specific bits belongs; and the plurality of storage means based on the calculation results of the decoding delay time calculating means and the frame code amount calculating means. A plurality of first codes, each of which is a code amount of the plurality of moving picture encoded signals input to the multiplexing unit from a stage;
A multiplexing control means for controlling the input code amount of the moving image.
演算手段が演算した符号量と、前記復号遅延時間演算手
段が演算した時間との比である複数の第一のパラメータ
を求める第一のパラメータ生成手段と、前記複数の第一
のパラメータの総和である第二のパラメータを求める第
二のパラメータ生成手段と、第二のパラメータに対する
前記複数の第一のパラメータの割合である複数の第三の
パラメータを、前記複数の蓄積手段に蓄積されている前
記複数の動画像符号化信号について求める第三のパラメ
ータ生成手段と、前記複数の第三のパラメータに基づい
て前記複数の第1の入力符号量を求める多重符号量演算
手段を備えたことを特徴とする請求項4記載の動画像多
重化装置。5. A multiplexing control means, wherein a first parameter for calculating a plurality of first parameters, which is a ratio between a code amount calculated by the frame code amount calculation means and a time calculated by the decoding delay time calculation means, is obtained. Parameter generating means, second parameter generating means for obtaining a second parameter which is a sum of the plurality of first parameters, and a plurality of third parameters which are ratios of the plurality of first parameters to second parameters. Parameter generation means for obtaining the parameters of the plurality of encoded video signals stored in the plurality of storage means, and the plurality of first input codes based on the plurality of third parameters. 5. The moving picture multiplexing apparatus according to claim 4, further comprising multiplex code amount calculating means for calculating the amount.
動画像符号化信号の符号量を演算する蓄積符号量演算手
段と、前記各動画像符号化信号の特定のビットが復号化
装置に入力される直前の復号化装置の各入力バッファの
空き容量を演算する空き容量演算手段をさらに備え、前
記多重符号量演算手段が複数の第2の入力符号量を、前
記各動画像符号化信号について、(1)前記第三のパラ
メータに基づいて求めた前記第1の入力符号量と、
(2)前記蓄積符号量演算手段が求めた前記動画像符号
化信号の符号量と、(3)前記空き容量演算手段が求め
た前記復号化装置の入力バッファの空き容量の最小値と
し、前記複数の第2の入力符号量を用いて前記各蓄積手
段から前記多重化手段に入力される前記各動画像符号化
信号の符号量を制御することを特徴とする請求項5記載
の動画像多重化装置。6. A stored code amount calculating means for calculating a code amount of each of the moving picture coded signals stored in each of the storing means, and a specific bit of each of the moving picture coded signals is transmitted to a decoding device. A vacant capacity calculating means for calculating a vacant capacity of each input buffer of the decoding apparatus immediately before being inputted, wherein the multiplexed code amount calculating means converts a plurality of second input code amounts into the respective moving image coded signals; (1) the first input code amount obtained based on the third parameter;
(2) the code amount of the moving picture coded signal obtained by the accumulated code amount calculation means, and (3) the minimum value of the free space of the input buffer of the decoding device obtained by the free space calculation means, 6. The moving image multiplexing method according to claim 5, wherein a code amount of each of the moving image coded signals input from each of the storage units to the multiplexing unit is controlled using a plurality of second input code amounts. Device.
数の第2の入力符号量がそれに対応する前記第1の符号
量と異なる場合、前記多重符号量演算手段が前記第2の
入力符号量を増加させることを特徴とする請求項6記載
の動画像多重化装置。7. When the plurality of second input code amounts obtained by the multiplex code amount calculating means are different from the corresponding first code amount, the multiplex code amount calculating means sets the second input code amount. The moving picture multiplexing apparatus according to claim 6, wherein the amount is increased.
画像符号化方法であって、全ての前記複数の動画像信号
を同じ量子化幅を用いて符号化することを特徴とする動
画像符号化方法。8. A moving picture coding method for coding a plurality of moving picture signals at the same time, wherein all the plurality of moving picture signals are coded using the same quantization width. Encoding method.
画像符号化方法であって、前記複数の動画像信号を符号
化することにより発生した複数の動画像符号化信号の符
号量の総和と、前記複数の動画像符号化信号を一旦蓄積
して出力する出力符号量との差に基づいた量子化幅を用
いて符号化することを特徴とする動画像符号化方法。9. A moving picture coding method for coding a plurality of moving picture signals simultaneously, wherein a total sum of code amounts of a plurality of coded moving picture signals generated by coding the plurality of moving picture signals. And encoding using a quantization width based on a difference between an output code amount for temporarily storing and outputting the plurality of encoded video signals.
手段に蓄積し、多重化する動画像多重化方法であって、
前記複数の動画像符号化信号のそれぞれの特定のビット
が入力バッファを有する復号化装置に入力されてから復
号されるまでの時間を演算する第一のステップと、前記
複数の蓄積手段に蓄積されている前記複数の動画像符号
化信号のそれぞれの前記特定のビットが属するフレーム
の符号量を演算する第二のステップと、前記第一のステ
ップと前記第二のステップの演算結果に基づいて、前記
複数の動画像符号化信号のそれぞれが多重化される符号
量である、複数の多重化符号量を求める第三のステップ
からなることを特徴とする動画像多重化方法。10. A video multiplexing method for storing and multiplexing a plurality of video encoded signals in a plurality of storage means,
A first step of calculating a time from when a specific bit of each of the plurality of encoded video signals is input to a decoding device having an input buffer to when it is decoded, and stored in the plurality of storage units. The second step of calculating the code amount of the frame to which each of the specific bits of the plurality of moving picture encoded signals belongs, based on the calculation results of the first step and the second step, A moving image multiplexing method, comprising: a third step of obtaining a plurality of multiplexed code amounts, each of which is a code amount with which each of the plurality of coded video signals is multiplexed.
テップで求めた符号量と、前記第一のステップで求めた
時間との比である複数の第一のパラメータを求める第四
のステップと、前記第一のパラメータの総和である第二
のパラメータを求める第五のステップと、第二のパラメ
ータに対する第一のパラメータの割合である複数の第三
のパラメータを、前記複数の動画像符号化信号のそれぞ
れについて求める第六のステップと、前記複数の第三の
パラメータのそれぞれに基づいて前記複数の多重化符号
量を求める第七のステップからなることを特徴とする請
求項10記載の動画像多重化方法。11. The third step is a fourth step of obtaining a plurality of first parameters, which is a ratio between the code amount obtained in the second step and the time obtained in the first step. And a fifth step of obtaining a second parameter that is a sum of the first parameters; and a plurality of third parameters that are a ratio of the first parameter to the second parameter, The moving image according to claim 10, further comprising: a sixth step of obtaining each of the multiplexed signals; and a seventh step of obtaining the plurality of multiplexed code amounts based on each of the plurality of third parameters. Image multiplexing method.
るのに用いる各入力多重化符号量を、(1)前記第三の
パラメータに基づいて求めた多重化符号量と、(2)前
記蓄積手段に蓄積されている前記動画像符号化信号の符
号量と、(3)前記復号化装置の入力バッファの空き容
量の最小値とし、前記各入力多重化符号量を用いて前記
多重化される符号量を制御することを特徴とする請求項
11記載の動画像多重化方法。12. An input multiplex code amount used for multiplexing the plurality of encoded video signals, wherein: (1) a multiplex code amount obtained based on the third parameter; The code amount of the coded video signal stored in the storage means and (3) the minimum value of the free space of the input buffer of the decoding device, and the multiplexing is performed using the input multiplexed code amounts. 12. The moving picture multiplexing method according to claim 11, wherein a code amount is controlled.
量がそれに対応する前記多重化符号量と異なる場合、前
記入力多重化符号量を増加させることを特徴とする請求
項12記載の動画像多重化方法。13. The moving picture multiplexing method according to claim 12, wherein the input multiplexing code amount is increased when at least one of the input multiplexing code amounts is different from the corresponding multiplexing code amount. Method.
動画像多重化方法であって、あらかじめ前記複数の動画
像符号化信号に対応する複数の多重符号量をゼロに設定
しておき、 前記複数の動画像符号化信号それぞれの特定のビットが
属するフレームのフレーム符号量を演算する第一のステ
ップと、前記複数の動画像符号化信号のそれぞれが復号
されるまでの時間を演算する第二のステップと、第二の
ステップで求めた前記復号されるまでの時間が所定の時
間値より小さい動画像符号化信号を選択する第三のステ
ップと、第三のステップで選択された動画像符号化信号
の前記フレーム符号量に基づき複数の第1の多重化符号
量を求める第四のステップと、前記複数の第1の多重化
符号量の和を求める第五のステップと、前記複数の多重
符号量にそれぞれ前記複数の第1の多重化符号量を加え
る第六のステップと、前記所定の時間値を更新する第七
のステップとからなり、 前記第一から第七までのステップを繰り返して、前記複
数の第1の多重化符号量の和が所定の符号量以上であれ
ば、複数の第2の多重化符号量を求めて前記複数の多重
符号量に加え、前記複数の多重符号量のそれぞれの前記
動画像符号化信号を多重化することを特徴とする動画像
多重化方法。14. A moving image multiplexing method for multiplexing a plurality of coded video signals, wherein a plurality of multiplexed code amounts corresponding to the plurality of coded video signals are set to zero in advance, A first step of calculating a frame code amount of a frame to which a specific bit of each of the plurality of encoded video signals belongs, and a second step of calculating a time until each of the plurality of encoded video signals is decoded. A second step, a third step of selecting a moving picture coded signal whose time until the decoding obtained in the second step is smaller than a predetermined time value, and a moving picture selected in the third step A fourth step of obtaining a plurality of first multiplexed code amounts based on the frame code amount of the coded signal; a fifth step of obtaining a sum of the plurality of first multiplexed code amounts; Multiple code amount A sixth step of adding the plurality of first multiplexed code amounts, and a seventh step of updating the predetermined time value, wherein the first to seventh steps are repeated, and If the sum of the first multiplexed code amounts is equal to or greater than a predetermined code amount, a plurality of second multiplexed code amounts are obtained and added to the plurality of multiplexed code amounts. A moving picture multiplexing method, comprising multiplexing the moving picture coded signal.
動画像多重化方法であって、復号化装置に送信されてい
ない前記複数の動画像符号化信号のフレーム毎の符号量
と、前記複数の動画像符号化信号のフレーム毎の復号さ
れるまでの時間とに基づいて、前記復号化装置の複数の
入力バッファのアンダーフロー回避のために必要な複数
の最低送信量を求め、前記複数の最低送信量に基づき複
数の送信符号量下限値を求め、前記複数の動画像符号化
信号を多重化する前に、前記複数の送信符号量下限値を
先に多重化することを特徴とする動画像多重化方法。15. A moving picture multiplexing method for multiplexing a plurality of coded moving picture signals, wherein a code amount per frame of the plurality of coded moving picture signals not transmitted to a decoding device, A plurality of minimum transmission amounts necessary for avoiding underflow of a plurality of input buffers of the decoding device, based on a time until decoding of each of the plurality of encoded video signals for each frame, Determining a plurality of transmission code amount lower limit values based on the minimum transmission amount of the plurality of encoded video signals, and multiplexing the plurality of transmission code amount lower limit values before multiplexing the plurality of video coding signals. Video multiplexing method.
符号化装置であって、前記動画像信号を所定のパラメー
タで量子化する量子化手段と量子化された動画像信号を
所定のスタッフィング量でスタッフィングするスタッフ
ィング手段とを共に有し、かつ、前記複数の動画像信号
を符号化する複数の符号化手段と、前記各量子化手段が
用いるパラメータを同時に制御する量子化制御手段と、
前記複数の動画像信号がそれぞれ符号化された複数の動
画像符号化信号を一時的に蓄積する複数の蓄積手段と、
前記複数の蓄積手段に蓄積されている前記複数の動画像
符号化信号を多重化し、一定のビットレートで出力する
多重化手段と、前記各スタッフィング手段が用いるスタ
ッフィング量を制御するスタッフィング制御手段と、所
定の時間復号化装置の複数の入力バッファに前記複数の
動画像符号化信号が入力されないとした時の、前記所定
の時間後の前記各入力バッファの空き容量を求める仮想
空き容量演算手段とを備え、 前記量子化制御手段が、前記複数の動画像符号化信号の
符号量の総和に基づいて、前記各量子化手段が用いるパ
ラメータを決定し、前記スタッフィング制御手段が、前
記複数の蓄積手段に蓄積されている動画像符号化信号の
符号量の総和と、前記一定のビットレートと、前記各蓄
積手段に蓄積されている動画像符号化信号のそれぞれの
符号量と前記仮想空き容量演算手段が求めた前記各入力
バッファのそれぞれの空き容量とのそれぞれの差分値に
基づいて、前記各スタッフィング手段を制御することを
特徴とする動画像符号化装置。16. A moving picture coding apparatus for coding a plurality of moving picture signals, comprising: a quantizing means for quantizing the moving picture signal with a predetermined parameter; and a stuffing means for coding the quantized moving picture signal with a predetermined stuffing. Having both stuffing means to stuff by amount, and a plurality of encoding means for encoding the plurality of video signals, and a quantization control means for simultaneously controlling the parameters used by each quantization means,
A plurality of storage means for temporarily storing a plurality of moving image encoded signals in which the plurality of moving image signals are respectively encoded,
Multiplexing means for multiplexing the plurality of moving picture coded signals stored in the plurality of storage means and outputting at a constant bit rate, and a stuffing control means for controlling a stuffing amount used by each of the stuffing means, Virtual free space calculating means for obtaining free space of each of the input buffers after the predetermined time, when the plurality of moving image encoded signals are not input to the plurality of input buffers of the predetermined time decoding device. Wherein the quantization control means determines a parameter used by each of the quantization means based on the sum of the code amounts of the plurality of encoded video signals, and the stuffing control means The sum total of the code amount of the encoded moving image signal, the constant bit rate, and the number of encoded moving image signals stored in each of the storage units. A moving image coding apparatus for controlling each of the stuffing means based on a difference value between each code amount and each free space of each of the input buffers obtained by the virtual free space calculating means. .
より発生した複数の動画像符号化信号の符号量の総和
と、前記複数の動画像符号化信号を一旦蓄積して出力す
る出力符号量との差に基づいた所定の量子化幅を用いて
前記複数の動画像信号を同時に符号化する動画像符号化
方法であって、 一旦蓄積されている複数の符号化バッファ占有量を各動
画像符号化信号について求め、所定の時間復号化装置の
複数の入力バッファに前記各動画像符号化信号が入力さ
れないとした時の、前記所定の時間後の前記各入力バッ
ファの空き容量を前記各動画像符号化信号について求
め、前記各符号化バッファ占有量から前記各入力バッフ
ァの空き容量を差し引いたそれぞれのバッファ差分値が
所定の値より小さい前記各動画像符号化信号に対して、
前記所定の値より大きい前記バッファ差分値を足し合わ
せた符号量の復号に影響しない信号を、前記バッファ差
分値が前記所定の値より小さい前記動画像符号化信号に
分配してスタッフィングすることを特徴とする動画像符
号化方法。17. A total sum of code amounts of a plurality of encoded video signals generated by encoding a plurality of video signals, and an output code amount for temporarily storing and outputting the plurality of encoded video signals. A video encoding method for simultaneously encoding the plurality of video signals using a predetermined quantization width based on a difference between the video data and the video data. When an encoded signal is obtained, and when the moving image encoded signals are not input to the plurality of input buffers of the decoding device for a predetermined time, the free space of each input buffer after the predetermined time is calculated for each of the moving images. For each of the moving picture coded signals, the respective buffer difference values obtained by subtracting the free space of each of the input buffers from the respective coded buffer occupancy amounts are smaller than a predetermined value.
A signal which does not affect the decoding of the code amount obtained by adding the buffer difference value larger than the predetermined value is distributed to the video encoded signal whose buffer difference value is smaller than the predetermined value and stuffing is performed. Moving image encoding method.
符号化装置であって、前記動画像信号を所定のパラメー
タで量子化する量子化手段をそれぞれ有し、かつ、前記
複数の動画像信号を符号化する複数の符号化手段と、前
記各量子化手段が用いるパラメータを同時に制御する量
子化制御手段と、前記複数の動画像信号がそれぞれ符号
化された複数の動画像符号化信号を一時的に蓄積する複
数の蓄積手段と、前記複数の蓄積手段に蓄積されている
前記複数の動画像符号化信号を多重化し、一定のビット
レートで出力する多重化手段と、所定の時間復号化装置
の複数の入力バッファに前記複数の動画像符号化信号が
入力されないとした時の、前記所定の時間後の前記各入
力バッファの空き容量を求める仮想空き容量演算手段と
を備え、 前記量子化制御手段が、前記複数の蓄積手段に蓄積され
ている動画像符号化信号の符号量の総和と、前記一定の
ビットレートと、前記各蓄積手段に蓄積されている動画
像符号化信号のそれぞれの符号量と前記仮想空き容量演
算手段が求めた前記各入力バッファのそれぞれの空き容
量とのそれぞれの差分値に基づいて、前記各量子化手段
が用いるパラメータを決定することを特徴とする動画像
符号化装置。18. A moving picture coding apparatus for coding a plurality of moving picture signals, the apparatus further comprising quantization means for quantizing the moving picture signals with predetermined parameters, and further comprising: A plurality of encoding means for encoding a signal, a quantization control means for simultaneously controlling parameters used by each of the quantization means, and a plurality of moving picture encoded signals in which the plurality of moving picture signals are respectively encoded. A plurality of storage means for temporarily storing, a multiplexing means for multiplexing the plurality of encoded video signals stored in the plurality of storage means, and outputting the multiplexed video signal at a constant bit rate; Virtual free space calculating means for obtaining free space of each of the input buffers after the predetermined time when the plurality of moving picture coded signals are not input to the plurality of input buffers of the device; The control means controls the sum of the code amounts of the moving picture coded signals stored in the plurality of storing means, the constant bit rate, and the moving picture coded signals stored in each of the storing means. A moving picture code, wherein a parameter used by each quantization means is determined based on a difference value between a code amount and each free capacity of each input buffer obtained by the virtual free capacity calculation means. Device.
より発生した複数の動画像符号化信号の符号量の総和
と、前記複数の動画像符号化信号を一旦蓄積して出力す
る出力符号量との差に基づいた所定の量子化幅を用いて
前記複数の動画像信号を同時に符号化する動画像符号化
方法であって、 一旦蓄積されている複数の符号化バッファ占有量を各動
画像符号化信号について求め、所定の時間復号化装置の
複数の入力バッファに前記各動画像符号化信号が入力さ
れないとした時の、前記所定の時間後の前記各入力バッ
ファの空き容量を前記各動画像符号化信号について求
め、前記各符号化バッファ占有量から前記各入力バッフ
ァの空き容量を差し引いたそれぞれのバッファ差分値が
所定の値より小さい前記各動画像符号化信号に対して、
前記所定の量子化幅よりも小さい量子化幅を用いて各動
画像信号を符号化することを特徴とする動画像符号化方
法。19. A sum of code amounts of a plurality of encoded video signals generated by encoding a plurality of video signals, and an output code amount for temporarily storing and outputting the plurality of encoded video signals. A video encoding method for simultaneously encoding the plurality of video signals using a predetermined quantization width based on a difference between the video data and the video data. When an encoded signal is obtained, and when the moving image encoded signals are not input to the plurality of input buffers of the decoding device for a predetermined time, the free space of each input buffer after the predetermined time is calculated for each of the moving images. For each of the moving picture coded signals, the respective buffer difference values obtained by subtracting the free space of each of the input buffers from the respective coded buffer occupancy amounts are smaller than a predetermined value.
A moving picture coding method comprising coding each moving picture signal using a quantization width smaller than the predetermined quantization width.
より発生した複数の動画像符号化信号の符号量の総和
と、前記複数の動画像符号化信号を一旦蓄積して出力す
る出力符号量との差に基づいた所定の量子化幅を用いて
前記複数の動画像信号を同時に符号化する動画像符号化
方法であって、 一旦蓄積されている複数の符号化バッファ占有量を各動
画像符号化信号について求め、所定の時間復号化装置の
複数の入力バッファに前記各動画像符号化信号が入力さ
れないとした時の、前記所定の時間後の前記各入力バッ
ファの空き容量を前記各動画像符号化信号について求
め、前記各符号化バッファ占有量から前記各入力バッフ
ァの空き容量を差し引いたそれぞれのバッファ差分値が
所定の値より大きい前記各動画像符号化信号に対して、
前記所定の量子化幅よりも大きい量子化幅を用いて各動
画像信号を符号化することを特徴とする動画像符号化方
法。20. A sum of code amounts of a plurality of encoded video signals generated by encoding a plurality of video signals, and an output code amount for temporarily storing and outputting the encoded video signals. A video encoding method for simultaneously encoding the plurality of video signals using a predetermined quantization width based on a difference between the video data and the video data. When an encoded signal is obtained, and when the moving image encoded signals are not input to the plurality of input buffers of the decoding device for a predetermined time, the free space of each input buffer after the predetermined time is calculated for each of the moving images. For each of the moving picture coded signals, the respective buffer difference values obtained by subtracting the free space of each of the input buffers from each of the coded buffer occupancy amounts are larger than a predetermined value.
A moving picture coding method comprising coding each moving picture signal using a quantization width larger than the predetermined quantization width.
より発生した複数の動画像符号化信号の符号量の総和
と、前記複数の動画像符号化信号を一旦蓄積して出力す
る出力符号量との差に基づいた所定の量子化幅を用いて
前記複数の動画像信号を同時に符号化する動画像符号化
方法であって、 一旦蓄積されている複数の符号化バッファ占有量を各動
画像符号化信号について求め、所定の時間復号化装置の
複数の入力バッファに前記各動画像符号化信号が入力さ
れないとした時の、前記所定の時間後の前記各入力バッ
ファの空き容量を前記各動画像符号化信号について求
め、前記各符号化バッファ占有量から前記各入力バッフ
ァの空き容量を差し引いたそれぞれのバッファ差分値を
前記各動画像符号化信号に対して求め、前記それぞれの
バッファ差分値が所定の値より大きい前記各バッファ差
分値を足し合わせた値を、前記符号量の総和に足し合わ
せることを特徴とする動画像符号化方法。21. A sum of code amounts of a plurality of encoded video signals generated by encoding a plurality of video signals, and an output code amount for temporarily storing and outputting the encoded video signals. A video encoding method for simultaneously encoding the plurality of video signals using a predetermined quantization width based on a difference between the video data and the video data. When an encoded signal is obtained, and when the moving image encoded signals are not input to the plurality of input buffers of the decoding device for a predetermined time, the free space of each input buffer after the predetermined time is calculated for each of the moving images. For each of the video encoded signals, a buffer difference value obtained by subtracting the free space of each of the input buffers from the encoding buffer occupancy is obtained for each of the video encoded signals. Moving picture coding method in which the difference value is a value obtained by adding a predetermined value greater than the respective buffers difference value, and wherein the summing to the sum of the amount of codes.
する請求項17、19、20、21いずれかに記載の動
画像符号化方法。22. The moving picture coding method according to claim 17, wherein the predetermined value is 0.
動画像信号を複数の動画像信号に分割する画面分割手段
を備えたことを特徴とする請求項1記載の動画像符号化
装置。23. The moving picture coding apparatus according to claim 1, further comprising a screen dividing means for dividing an input moving picture signal into a plurality of moving picture signals at a stage preceding said plurality of coding means.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP15628997A JPH10191337A (en) | 1996-11-08 | 1997-06-13 | Video coding apparatus and method and video multiplexing apparatus and method |
EP97119430A EP0841820A3 (en) | 1996-11-08 | 1997-11-06 | Method and apparatus for encoding, multiplexing and transmitting a video signal |
US08/967,351 US6381254B1 (en) | 1996-11-08 | 1997-11-07 | Moving image encoding device/method, moving image multiplexing device/method, and image transmission device |
CNB971264694A CN1162001C (en) | 1996-11-08 | 1997-11-07 | Motion picture coding apparatus and method for coding a plurality of moving pictures |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP29610296 | 1996-11-08 | ||
JP8-296102 | 1996-11-08 | ||
JP15628997A JPH10191337A (en) | 1996-11-08 | 1997-06-13 | Video coding apparatus and method and video multiplexing apparatus and method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH10191337A true JPH10191337A (en) | 1998-07-21 |
Family
ID=26484097
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP15628997A Pending JPH10191337A (en) | 1996-11-08 | 1997-06-13 | Video coding apparatus and method and video multiplexing apparatus and method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH10191337A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010118795A (en) * | 2008-11-11 | 2010-05-27 | Nippon Telegr & Teleph Corp <Ntt> | System for encoding parallel-distribution information source, and method of encoding/decoding parallel-distribution information source |
-
1997
- 1997-06-13 JP JP15628997A patent/JPH10191337A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010118795A (en) * | 2008-11-11 | 2010-05-27 | Nippon Telegr & Teleph Corp <Ntt> | System for encoding parallel-distribution information source, and method of encoding/decoding parallel-distribution information source |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4624321B2 (en) | Transcoder and coded image conversion method | |
US5592302A (en) | Coding method for coding pixel blocks and apparatus therefor | |
US6587508B1 (en) | Apparatus, method and computer program product for transcoding a coded moving picture sequence | |
US20010031002A1 (en) | Image encoding apparatus and method of same, image decoding apparatus and method of same, image recording apparatus, and image transmitting apparatus | |
JP2003018603A (en) | Method and device for encoding moving image | |
JPH10107644A (en) | Quantization device and method, and coder and method | |
JP2000197049A (en) | Dynamic image variable bit rate encoding device and method therefor | |
JP2003032677A (en) | Video compression encoding device | |
US7714751B2 (en) | Transcoder controlling generated codes of an output stream to a target bit rate | |
US5202770A (en) | Picture coding apparatus including a coding controller for selecting coding between blocks and frames of image data | |
JPH08130746A (en) | Coefficient quantization processing method | |
US8780977B2 (en) | Transcoder | |
US20050220352A1 (en) | Video encoding with constrained fluctuations of quantizer scale | |
JPH10191337A (en) | Video coding apparatus and method and video multiplexing apparatus and method | |
JP3889552B2 (en) | Code amount allocation apparatus and method | |
JP3902948B2 (en) | Video encoding device | |
JP2001078193A (en) | Moving picture compression coded signal conversion method and device | |
JP3149673B2 (en) | Video encoding device, video encoding method, video reproducing device, and optical disc | |
JP3014548B2 (en) | Video encoding device | |
JP3128336B2 (en) | Video encoding device | |
JP2001078194A (en) | Moving picture compressing and encoding control method and moving picture compressing and encoding device | |
JP4239734B2 (en) | Encoding apparatus, encoding method, and program | |
JP4007398B2 (en) | Quantization control apparatus and method | |
JP4035747B2 (en) | Encoding apparatus and encoding method | |
JP4127006B2 (en) | Image signal encoding apparatus and encoding method |