JPH10336649A - Dynamic image encoding method and device - Google Patents
Dynamic image encoding method and deviceInfo
- Publication number
- JPH10336649A JPH10336649A JP14221597A JP14221597A JPH10336649A JP H10336649 A JPH10336649 A JP H10336649A JP 14221597 A JP14221597 A JP 14221597A JP 14221597 A JP14221597 A JP 14221597A JP H10336649 A JPH10336649 A JP H10336649A
- Authority
- JP
- Japan
- Prior art keywords
- code amount
- quantization step
- generated code
- memory
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、発生符号量の値か
ら直交変換係数の量子化ステップを決定する動画像符号
化方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture coding method for determining a quantization step of an orthogonal transform coefficient from a value of a generated code amount.
【0002】[0002]
【従来の技術】従来の動画像符号化方法では、量子化ス
テップを固定させて動画像シーケンス全体を符号化し、
発生符号量を検査して、発生符号量の総和が目標値未満
であれば量子化ステップを小さく設定し、逆に目標値以
上であれば、量子化ステップを大きく設定して、再び最
初から符号化を繰り返す方法がとられていた。2. Description of the Related Art In a conventional moving picture encoding method, an entire moving picture sequence is encoded with a fixed quantization step.
The generated code amount is checked, and if the total sum of the generated code amounts is less than the target value, the quantization step is set smaller. The method of repeating the conversion was adopted.
【0003】[0003]
【発明が解決しようとする課題】従来の動画像符号化方
法では、符号化を複数回繰り返すことによって、最適な
量子化ステップを求める必要があるため、オフラインで
の符号化処理に用いることができても、リアルタイム符
号化には用いることができなかった。In the conventional moving picture coding method, it is necessary to obtain an optimum quantization step by repeating coding a plurality of times, so that it can be used for off-line coding processing. However, it could not be used for real-time encoding.
【0004】本発明の目的は、リアルタイムで可変速符
号化が可能な動画像符号化方法および装置を提供するこ
とにある。An object of the present invention is to provide a moving picture coding method and apparatus capable of performing variable-speed coding in real time.
【0005】[0005]
【課題を解決するための手段】本発明の動画像符号化方
法は、発生符号量と目標符号量の差に応じて直前の画像
の符号化に用いられた量子化ステップの値を更新する際
に、発生符号量と目標符号量の差分絶対値または2乗誤
差が大きい場合には量子化ステップの変更分の絶対値を
大きく設定し、発生符号量と目標符号量の差分絶対値が
小さい場合には量子化ステップの変更分の絶対値を小さ
く設定するものである。According to the moving picture coding method of the present invention, the value of the quantization step used for coding the immediately preceding picture is updated according to the difference between the generated code quantity and the target code quantity. When the absolute value of the difference between the generated code amount and the target code amount or the square error is large, the absolute value of the change in the quantization step is set large, and when the difference absolute value between the generated code amount and the target code amount is small. Is to set the absolute value of the change of the quantization step small.
【0006】また、本発明の動画像符号化装置は、直前
の発生符号量を記憶する発生符号量メモリと、時間情報
と平均符号量の積を計算し、直前までの目標符号量を得
る乗算手段と、発生符号量メモリに記憶されている発生
符号量と目標符号量の差である符号量差分データを求め
る減算手段と、符号量差分データを、その絶対値が大き
い場合には絶対値が大きい量子化ステップ更新値に変換
し、前記符号量差分データの絶対値が小さい場合には絶
対値が小さい量子化ステップ更新値に変換する変換テー
ブルと、現在の量子化ステップを記憶する量子化ステッ
プメモリと、前記変換メモリから出力された量子化ステ
ップ更新値と前記量子化ステップメモリに記憶されてい
る量子化ステップを加算し、前記量子化ステップメモリ
に蓄える第1の加算手段と、第1の加算手段で求められ
た現在の量子化ステップを符号化処理する符号化器と、
符号化器から出力された符号化データと前記発生符号量
メモリに記憶されている発生符号量を加算し、前記発生
符号量メモリに記憶する第2の加算手段を有する。The moving picture coding apparatus according to the present invention further comprises a generated code amount memory for storing the immediately preceding generated code amount, a product of the time information and the average code amount, and a multiplication for obtaining the immediately preceding target code amount. Means, a subtraction means for obtaining code amount difference data which is a difference between the generated code amount stored in the generated code amount memory and the target code amount, and a code amount difference data having an absolute value when the absolute value is large. A conversion table for converting to a large quantization step update value and, when the absolute value of the code amount difference data is small, to a quantization step update value having a small absolute value, and a quantization step for storing the current quantization step A first step of adding a quantization step update value output from the transformation memory and a quantization step stored in the quantization step memory and storing the result in the quantization step memory; Means, and encoder of the current quantization step obtained by the first addition means for encoding processing,
There is provided second adding means for adding the encoded data output from the encoder to the generated code amount stored in the generated code amount memory and storing the added data in the generated code amount memory.
【0007】本発明の他の動画像符号化装置は、直前の
発生符号量を記憶する発生符号量メモリと、時間情報と
平均符号量の積を計算し、直前までの目標符号量を得る
第1の乗算手段と、発生符号量メモリに記憶されている
発生符号量と目標符号量の差である符号量差分データを
求める減算手段と、符号量差分データを2乗し、2乗誤
差を求める第2の乗算手段と、符号量差分データを、2
乗誤差が大きい場合には絶対値が大きい量子化ステップ
更新値に変換し、2乗誤差が小さい場合には絶対値が小
さい量子化ステップ更新値に変換する変換テーブルと、
現在の量子化ステップを記憶する量子化ステップメモリ
と、変換メモリから出力された量子化ステップ更新値と
前記量子化ステップメモリに記憶されている量子化ステ
ップを加算し、前記量子化ステップメモリに蓄える第1
の加算手段と、前記第1の加算手段で求められた現在の
量子化ステップを符号化処理する符号化器と、符号化器
から出力された符号化データと前記発生符号量メモリに
記憶されている発生符号量を加算し、前記発生符号量メ
モリに記憶する第2の加算手段を有する。In another moving picture coding apparatus of the present invention, a generated code amount memory for storing a generated code amount immediately before, a product of time information and an average code amount are calculated, and a target code amount obtained immediately before is calculated. 1 multiplication means, subtraction means for obtaining code amount difference data which is the difference between the generated code amount stored in the generated code amount memory and the target code amount, and squaring the code amount difference data to obtain a square error The second multiplication means and the code amount difference data
A conversion table for converting an absolute value into a large quantization step update value when the square error is large, and converting the absolute value into a small quantization step update value when the square error is small;
A quantization step memory for storing the current quantization step, a quantization step update value output from the transformation memory and a quantization step stored in the quantization step memory are added, and the result is stored in the quantization step memory. First
, An encoder for encoding the current quantization step obtained by the first addition means, encoded data output from the encoder, and stored in the generated code amount memory. And a second adder for adding the generated code amount and storing the generated code amount in the generated code amount memory.
【0008】本発明の実施態様によれば、発生符号量と
目標符号量の差分絶対値また2乗誤差がしきい値以下で
あれば、量子化ステップの変更分の絶対値を非常に小さ
く設定する。According to the embodiment of the present invention, if the absolute value of the difference between the generated code amount and the target code amount or the square error is equal to or smaller than the threshold value, the absolute value of the change in the quantization step is set very small. I do.
【0009】本発明の実施態様によれば、発生符号量と
目標符号量の差分絶対値または2乗誤差がしきい値以下
であれば、量子化ステップを変更しない。According to the embodiment of the present invention, if the difference absolute value or the square error between the generated code amount and the target code amount is equal to or less than the threshold value, the quantization step is not changed.
【0010】本発明の実施態様によれば、発生符号量と
目標符号量の差分が正であるか負であるかによって異な
った量子化ステップの変更幅を用いる。According to the embodiment of the present invention, a different quantization step change width is used depending on whether the difference between the generated code amount and the target code amount is positive or negative.
【0011】本発明は、発生符号量と目標符号量の差に
比例して量子化ステップの値を決定するフィードバック
型の固定速度符号化方法を修正し、発生符号量と目標符
号量の差に対して量子化ステップの値を決めるのではな
く、直前の量子化ステップからの更新分を決定する。固
定速度符号化方法における符号化速度と歪みの関係を図
3に示す。量子化ステップの大きさと歪みは1:1に対
応する。図3においては、Dは量子化歪み、qoは平均
的な量子化ステップ、Rは符号化速度、roは平均符号
化速度である。いま、量子化ステップがqoであると
き、画像が複雑なために符号化の結果rpなる符号量が
発生したとする。ここで、rp>roである。このとき、
通常の符号化方法では、量子化ステップを大きくし、q
pに設定する。ここで、qp>qoである。その結果、発
生符号量がroに向かって減少する。逆に、量子化ステ
ップがqoであるとき、画像が単純なために符号化の結
果rmなる符号量が発生したとする。ここで、rm<ro
である。このとき、通常の符号化方法では、量子化ステ
ップを小さくし、qmに設定する。ここで、qm<qoで
ある。その結果、発生符号量がroに向かって増加す
る。The present invention modifies a feedback-type fixed-rate encoding method for determining a quantization step value in proportion to a difference between a generated code amount and a target code amount. On the other hand, instead of determining the value of the quantization step, the update amount from the immediately preceding quantization step is determined. FIG. 3 shows the relationship between the coding rate and the distortion in the fixed rate coding method. The magnitude and distortion of the quantization step correspond to 1: 1. In FIG. 3, D is the quantization distortion, q o average quantization step, R represents the encoding rate, r o is the average coding rate. Now, the quantization step when a q o, the image is the result r p becomes the code amount of the encoding occurs because complex. Here is a r p> r o. At this time,
In a normal encoding method, the quantization step is increased and q
Set to p . Here, q p > q o . As a result, the generated code amount decreases toward ro . Conversely, a quantization step when a q o, the code amount image is the result r m of encoded for simple occurred. Where r m <r o
It is. In this case, in the conventional coding method, to reduce the quantization step is set to q m. Here, q m <q o . As a result, the generated code amount increases toward ro .
【0012】発生符号量と目標符号量の差に対する量子
化ステップの関係を図3に示す。図4において、qoは
初期値である。発生情報量FIG. 3 shows the relationship between the quantization step and the difference between the generated code amount and the target code amount. In FIG. 4, q o is an initial value. Generated information volume
【0013】[0013]
【数1】 は時刻1から時刻Tまでの画像フレームあたりの発生符
号量riを積分したもの、roはフレーム当りの平均符号
利用量(目標値)である。(Equation 1) Is the integral of the generated code amount r i per image frame from time 1 to time T, and r o is the average code usage per frame (target value).
【0014】一般に、固定速度符号化方法では、一定符
号化速度に漸近するように動作する。一方、可変速度符
号化では、複雑な画像に対しては多くの符号量を与え、
逆に単純な画像に対しては少い符号量を与えることがで
きる。従来の可変速度符号化方法では、固定的に何通り
かの量子化テスップを用いて一連の動画像を符号化し、
発生符号量の総和が目標符号量に最も近いものを選び出
す。しかしこの処理では動画像の符号化を最初から繰り
返すことに相当し、リアルタイムで処理することができ
ない。そこで、本発明では、リアルタイムに制御する手
法を考案した。図2に示した符号化制御方法では、発生
符号量と目標符号量の差が小さい場合にも量子化ステッ
プが変化してしまう。そこで、発生符号量と目標符号量
の差がある範囲内にあれば量子化ステップをほとんど変
化させないように設定する。発生符号量と目標符号量の
差が設定したしきい値を越えたときには、量子化ステッ
プを大きくし、発生符号量を抑制する。この抑制の強さ
は発生符号量と目標符号量の差が大きいほど強くなるよ
うに設定する。In general, the fixed rate coding method operates so as to approach a constant coding rate. On the other hand, in variable-rate encoding, a large amount of code is given to a complex image,
Conversely, a small code amount can be given to a simple image. In the conventional variable rate encoding method, a series of moving images is encoded using a fixed number of quantization tests,
A code whose sum of generated code amounts is closest to the target code amount is selected. However, this process is equivalent to repeating coding of a moving image from the beginning, and cannot be performed in real time. Therefore, the present invention has devised a technique for controlling in real time. In the coding control method shown in FIG. 2, the quantization step changes even when the difference between the generated code amount and the target code amount is small. Therefore, if the difference between the generated code amount and the target code amount is within a certain range, the quantization step is set so as to hardly change. When the difference between the generated code amount and the target code amount exceeds a set threshold value, the quantization step is increased to suppress the generated code amount. The strength of the suppression is set so as to increase as the difference between the generated code amount and the target code amount increases.
【0015】図5に本発明による可変速度符号化制御の
符号化速度と歪みの関係を示す。図5において、発生符
号量と目標符号量の差がrt1とrt2の間にあれば量子化
ステップをほとんど変更せず、rt1を越えた時点で、量
子化ステップを大きくする。例えばrpに対して、qoか
らqpに大きくする。これにより発生符号量と目標符号
量の差がrt1まで低下してくるのを待つ。発生符号量と
目標符号量の差がrt1以下になれば、量子化ステップは
変化させないか、あるいは変化させてもほんのわずかに
とどめる。次に、発生符号量と目標符号量の差がマイナ
ス値になる場合を考える。発生符号量と目標符号量の差
がrt2以下になれば量子化ステップを小さくする。例え
ばrmに対して、qoからqmに小さくする。FIG. 5 shows the relationship between the coding speed and the distortion in the variable speed coding control according to the present invention. In FIG. 5, if the difference between the generated code amount and the target code amount is between rt1 and rt2 , the quantization step is hardly changed, and when the difference exceeds rt1 , the quantization step is increased. For example, the value of r p is increased from q o to q p . Thus the difference between the generated code amount and the target code amount, waiting for one dropped to r t1. If the difference between the generated code amount and the target code amount becomes equal to or less than r t1, the quantization step is either not changed, or be changed kept to only slightly. Next, consider a case where the difference between the generated code amount and the target code amount becomes a negative value. Difference in generated code amount and the target code amount to reduce the quantization step if the following r t2. For example, for r m, to reduce the q o to q m.
【0016】発生符号量と目標符号量の差に対して量子
化ステップの変更幅△qを対応させる。新たな量子化ス
テップは qnew=qold+△q となる。量子化ステップの算出に用いる発生符号量と目
標符号量の差と量子化ステップの対応関係を図6に示
す。発生符号量と目標符号量の差が小さいときには△q
の値も小さく、この差が拡大するにつれて指数関数的に
△qが増大するような設定とする。これにより、発生符
号量が目標値からあまり離れていない場合には、量子化
ステップはほぼ固定値に近くなる。逆に、発生符号量が
大きく目標値からはずれた場合には、強いフィードバッ
クをかけることができ、発生符号量と目標符号量の差が
一定以下になるように動作する。The change width Δq of the quantization step is made to correspond to the difference between the generated code amount and the target code amount. The new quantization step is q new = q old + q. FIG. 6 shows the correspondence between the difference between the generated code amount and the target code amount used for the calculation of the quantization step and the quantization step. When the difference between the generated code amount and the target code amount is small, △ q
Is set to be small, and Δq increases exponentially as the difference increases. As a result, when the generated code amount is not so far from the target value, the quantization step becomes almost close to the fixed value. Conversely, when the generated code amount deviates greatly from the target value, strong feedback can be applied, and the operation is performed so that the difference between the generated code amount and the target code amount becomes equal to or less than a certain value.
【0017】図5では発生符号量と目標符号量の差の正
負に関してほとんど対称的な特性を示したが、非対称で
もかまわない。また、実現に際しては発生符号量と目標
符号量の差の値に対して、△qを出力するテーブルをメ
モリに記憶しておけばよい。Although FIG. 5 shows almost symmetric characteristics with respect to the sign of the difference between the generated code amount and the target code amount, the difference may be asymmetric. Further, in realizing this, a table for outputting Δq for the value of the difference between the generated code amount and the target code amount may be stored in the memory.
【0018】本発明は動画像の直交変換係数について示
したが、サブバンドフィルタを用いる符号化方式におい
てもその出力を量子化する際に適用することができる。
また動画像を1フレームごとに静止画として符号化する
場合だけでなく、フレーム間予測符号化や動き補償フレ
ーム間予測符号化の中で使用することができる。Although the present invention has been described with respect to the orthogonal transform coefficients of a moving image, the present invention can also be applied to a coding method using a subband filter when quantizing the output.
Further, the present invention can be used not only in encoding a moving image as a still image for each frame, but also in inter-frame prediction encoding and motion compensation inter-frame prediction encoding.
【0019】本発明では、発生符号量と目標符号量の差
の積分値がある範囲内にあればほぼ量子化ステップ固定
で動作するため、入力画像が複雑なものであっても量子
化ステップが大きくならず、画品質が向上する。また、
発生符号量が目標符号量から大きく離れる場合には、発
生符号量が目標値に接近するように制御することができ
る。In the present invention, if the integrated value of the difference between the generated code amount and the target code amount is within a certain range, the operation is almost fixed at the quantization step. Therefore, even if the input image is complicated, the quantization step is performed. The image quality is improved without increasing the size. Also,
When the generated code amount largely deviates from the target code amount, control can be performed such that the generated code amount approaches the target value.
【0020】[0020]
【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。Next, embodiments of the present invention will be described with reference to the drawings.
【0021】図1は本発明の一実施形態の動画像符号化
装置のブロック図である。FIG. 1 is a block diagram of a moving picture coding apparatus according to an embodiment of the present invention.
【0022】本実施形態の動画像符号化装置は乗算器3
と減算器5と変換テーブル8と加算器10と量子化ステ
ップメモリ12と符号化器14と加算器17と発生符号
量メモリ18を有している。The moving picture coding apparatus according to the present embodiment comprises a multiplier 3
It has a subtractor 5, a conversion table 8, an adder 10, a quantization step memory 12, an encoder 14, an adder 17, and a generated code amount memory 18.
【0023】変換テーブル8は、減算器5で求められた
符号量差分データ7を、量子化差分データ7の値が正の
大きな値の場合には正の大きな量子化ステップ更新値9
に、正の小さな値の場合には正の小さな量子化ステップ
更新値9に変換し、符号量差分データ7の値が負で、そ
の絶対値が大きな値の場合には、絶対値が大きな負の量
子化ステップ更新値9に、符号量差分データ7の値が負
で、その絶対値が小さな値の場合には絶対値が小さな負
の量子化ステップ更新値9に変換するように、量子化ス
テップ更新値9を記憶している。量子化ステップメモリ
12は加算器10で求められた現在の量子化ステップ1
3を記憶する。発生符号量メモリ19は加算器17で求
められた、直前までの発生符号量18を記憶する。The conversion table 8 converts the code amount difference data 7 obtained by the subtractor 5 into a large positive quantization step update value 9 when the value of the quantized difference data 7 is a large positive value.
On the other hand, if the value is a small positive value, it is converted to a small positive quantization step update value 9, and if the value of the code amount difference data 7 is negative and the absolute value is large, the absolute value is large negative. When the value of the code amount difference data 7 is negative and the absolute value is small, the quantization step update value 9 is converted to a negative quantization step update value 9 having a small absolute value. The step update value 9 is stored. The quantization step memory 12 stores the current quantization step 1 obtained by the adder 10.
3 is stored. The generated code amount memory 19 stores the generated code amount 18 immediately before obtained by the adder 17.
【0024】次に、本実施形態の動作を説明する。Next, the operation of this embodiment will be described.
【0025】時間情報1と平均符号量2の積が乗算器3
において計算され、直前までの目標符号量4が得られ
る。これに対して、直前までの発生符号量6が発生符号
量メモリ19から読み出され、減算器5において発生符
号量6−目標符号量4が計算され、符号量差分データ7
が得られる。符号量差分データ7は変換テーブル8にお
いて対応する量子化ステップ更新値9に変換される。量
子化ステップ更新値9は直前の量子化ステップ11に加
算器10において加えられ、現在の量子化ステップ13
となる。現在の量子化ステップ13は量子化ステップメ
モリ12に蓄えられるとともに、符号化器14に入力さ
れる。符号化器14において符号化処理が実行され、符
号化データ15が出力されるとともの、フレーム当たり
の発生符号量16が計算され、加算器17において現在
までの発生符号量18に加えられ、発生符号量メモリ1
9に蓄えられる。The product of the time information 1 and the average code amount 2 is a multiplier 3
And the target code amount 4 up to immediately before is obtained. On the other hand, the generated code amount 6 up to immediately before is read from the generated code amount memory 19, the generated code amount 6 -the target code amount 4 is calculated in the subtractor 5, and the code amount difference data 7 is calculated.
Is obtained. The code amount difference data 7 is converted to a corresponding quantization step update value 9 in the conversion table 8. The quantization step update value 9 is added to the immediately preceding quantization step 11 in the adder 10, and the current quantization step 13
Becomes The current quantization step 13 is stored in the quantization step memory 12 and input to the encoder 14. The encoding process is executed in the encoder 14, the encoded data amount 16 is output, and the generated code amount 16 per frame is calculated, and is added to the generated code amount 18 up to the present time in the adder 17. Generated code amount memory 1
9 is stored.
【0026】図2は本発明の他の実施形態の符号化装置
の構成図である。FIG. 2 is a block diagram of an encoding apparatus according to another embodiment of the present invention.
【0027】本実施形態では、図1中の減算器5の後に
乗算器20を設けて発生符号量6と目標符号量4の2乗
誤差20を求め、第1の実施形態と同様に、2乗誤差2
0と符号量差分データ7の正負に応じて変換テーブル8
で符号量差分データ7を量子化ステップ更新値9に変換
する。In the present embodiment, a multiplier 20 is provided after the subtractor 5 in FIG. 1 to obtain a square error 20 between the generated code amount 6 and the target code amount 4, and as in the first embodiment, 2 Squared error 2
0 and the conversion table 8 according to the sign of the code amount difference data 7
Converts the code amount difference data 7 into a quantization step update value 9.
【0028】[0028]
【発明の効果】以上説明したように、本発明によれば、
リアルタイムな可変速度符号化が可能となるため、固定
速度符号化に比べて同じ符号化レートであれば画品質を
改善することができる。As described above, according to the present invention,
Since real-time variable rate coding is possible, image quality can be improved at the same coding rate as compared to fixed rate coding.
【図1】本発明の一実施形態の符号化装置のブロック図
である。FIG. 1 is a block diagram of an encoding device according to an embodiment of the present invention.
【図2】本発明の他の実施形態の符号化装置のブロック
図である。FIG. 2 is a block diagram of an encoding device according to another embodiment of the present invention.
【図3】固定速度符号化制御における量子化歪みDと符
号化速度度Rの関係を示すグラフである。FIG. 3 is a graph showing a relationship between quantization distortion D and coding rate R in fixed rate coding control.
【図4】発生符号量と目標符号量の差に対する量子化ス
テップの関係を示すグラフである。FIG. 4 is a graph showing a relationship between a quantization step and a difference between a generated code amount and a target code amount.
【図5】可変速度符号化制御における量子化歪みDと符
号化速度Rの関係を示すグラフである。FIG. 5 is a graph showing a relationship between a quantization distortion D and a coding rate R in variable rate coding control.
【図6】発生符号量と目標符号量の差に対する量子化ス
テップの関係を示すグラフである。FIG. 6 is a graph illustrating a relationship between a quantization step and a difference between a generated code amount and a target code amount.
1 時間情報 2 平均符号量 3 乗算器 4 目標符号量 5 減算器 6 直前での発生符号量 7 符号量差分データ 8 変換テーブル 9 量子化ステップ更新値 10 加算器 11 直前の量子化ステップ 12 量子化ステップメモリ 13 現在の量子化ステップ 14 符号化器 15 符号化データ 16 フレーム当たりの発生符号量 17 加算器 18 現在までの発生符号量 19 発生符号量メモリ 20 乗算器 21 2乗誤差 1 Time information 2 Average code amount 3 Multiplier 4 Target code amount 5 Subtractor 6 Code amount generated immediately before 7 Code amount difference data 8 Conversion table 9 Quantization step update value 10 Adder 11 Quantization step immediately before 12 Quantization Step memory 13 Current quantization step 14 Encoder 15 Encoded data 16 Generated code amount per frame 17 Adder 18 Generated code amount up to now 19 Generated code amount memory 20 Multiplier 21 Square error
Claims (6)
化ステップを決定する動画像符号化方法において、 発生符号量と目標符号量の差に応じて直前の画像の符号
化に用いられた量子化ステップの値を更新する際に、発
生符号量と目標符号量の差分絶対値または2乗誤差が大
きい場合には量子化ステップの変更分の絶対値を大きく
設定し、発生符号量と目標符号量の差分絶対値が小さい
場合には量子化ステップの変更分の絶対値を小さく設定
することを特徴とする動画像符号化方法。In a moving picture coding method for determining a quantization step of an orthogonal transform coefficient from a value of a generated code amount, the method is used for coding the immediately preceding image in accordance with a difference between the generated code amount and a target code amount. When updating the value of the quantization step, if the difference absolute value or the square error between the generated code amount and the target code amount is large, the absolute value of the change in the quantization step is set to be large, and the generated code amount and the target A moving picture coding method characterized in that when the difference absolute value of the code amount is small, the absolute value of the change in the quantization step is set small.
たは2乗誤差がしきい値以下であれば、量子化ステップ
の変更分の絶対値を非常に小さく設定する、請求項1記
載の動画像符号化方法。2. The method according to claim 1, wherein when a difference absolute value or a square error between a generated code amount and a target code amount is equal to or smaller than a threshold value, the absolute value of the change in the quantization step is set to be very small. Video encoding method.
たは2乗誤差がしきい値以下であれば、量子化ステップ
を変更しない、請求項1記載の動画像符号化方法。3. The moving picture coding method according to claim 1, wherein the quantization step is not changed if the difference absolute value or the square error between the generated code amount and the target code amount is equal to or smaller than a threshold value.
るか負であるかによって異なった量子化ステップの変更
幅を用いる、請求項1記載の動画像符号化方法。4. The moving picture coding method according to claim 1, wherein a different quantization step change width is used depending on whether the difference between the generated code amount and the target code amount is positive or negative.
化ステップを決定する動画像符号化装置において、 直前の発生符号量を記憶する発生符号量メモリと、 時間情報と平均符号量の積を計算し、直前までの目標符
号量を得る乗算手段と、 前記発生符号量メモリに記憶されている発生符号量と前
記目標符号量の差である符号量差分データを求める減算
手段と、 前記符号量差分データを、その絶対値が大きい場合には
絶対値が大きい量子化ステップ更新値に変換し、前記符
号量差分データの絶対値が小さい場合には絶対値が小さ
い量子化ステップ更新値に変換する変換テーブルと、 現在の量子化ステップを記憶する量子化ステップメモリ
と、 前記変換メモリから出力された量子化ステップ更新値と
前記量子化ステップメモリに記憶されている量子化ステ
ップを加算し、前記量子化ステップメモリに蓄える第1
の加算手段と、 前記第1の加算手段で求められた現在の量子化ステップ
を符号化処理する符号化器と、 前記符号化器から出力された符号化データと前記発生符
号量メモリに記憶されている発生符号量を加算し、前記
発生符号量メモリに記憶する第2の加算手段を有するこ
とを特徴とする動画像符号化装置。5. A moving picture coding apparatus for determining a quantization step of an orthogonal transform coefficient from a value of a generated code amount, comprising: a generated code amount memory for storing a generated code amount immediately before; a product of time information and an average code amount. Multiplying means for calculating a target code amount until immediately before; subtracting means for obtaining code amount difference data which is a difference between the generated code amount stored in the generated code amount memory and the target code amount; If the absolute value is large, the amount difference data is converted to a large quantization step update value, and if the absolute value of the code amount difference data is small, the amount difference data is converted to a small quantization step update value. A quantization table that stores the current quantization step; a quantization step update value that is output from the conversion memory; and a quantization table that is stored in the quantization step memory. A first step of adding a quantization step and storing the result in the quantization step memory
An encoding unit that encodes the current quantization step obtained by the first adding unit; and encoded data output from the encoder and stored in the generated code amount memory. A moving image coding apparatus comprising: a second adding unit that adds the generated code amount and stores the generated code amount in the generated code amount memory.
化ステップを決定する動画像符号化装置において、 直前の発生符号量を記憶する発生符号量メモリと、 時間情報と平均符号量の積を計算し、直前までの目標符
号量を得る第1の乗算手段と、 前記発生符号量メモリに記憶されている発生符号量と前
記目標符号量の差である符号量差分データを求める減算
手段と、 前記符号量差分データを2乗し、2乗誤差を求める第2
の乗算手段と、 前記符号量差分データを、前記2乗誤差が大きい場合に
は絶対値が大きい量子化ステップ更新値に変換し、前記
2乗誤差が小さい場合には絶対値が小さい量子化ステッ
プ更新値に変換する変換テーブルと、 現在の量子化ステップを記憶する量子化ステップメモリ
と、 前記変換メモリから出力された量子化ステップ更新値と
前記量子化ステップメモリに記憶されている量子化ステ
ップを加算し、前記量子化ステップメモリに蓄える第1
の加算手段と、 前記第1の加算手段で求められた現在の量子化ステップ
を符号化処理する符号化器と、 前記符号化器から出力された符号化データと前記発生符
号量メモリに記憶されている発生符号量を加算し、前記
発生符号量メモリに記憶する第2の加算手段を有するこ
とを特徴とする動画像符号化装置。6. A moving picture coding apparatus for determining a quantization step of an orthogonal transform coefficient from a value of a generated code amount, comprising: a generated code amount memory for storing a generated code amount immediately before; a product of time information and an average code amount. First multiplication means for calculating the target code amount immediately before; and subtraction means for obtaining code amount difference data that is a difference between the generated code amount stored in the generated code amount memory and the target code amount. A second square of the code amount difference data to obtain a square error
Converting the code amount difference data into a quantization step update value having a large absolute value if the square error is large, and a quantization step having a small absolute value if the square error is small. A conversion table for converting to an update value, a quantization step memory for storing a current quantization step, and a quantization step update value output from the conversion memory and a quantization step stored in the quantization step memory. Add and store in the quantization step memory
An encoding unit that encodes the current quantization step obtained by the first adding unit; and encoded data output from the encoder and stored in the generated code amount memory. A moving image coding apparatus comprising: a second adding unit that adds the generated code amount and stores the generated code amount in the generated code amount memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP14221597A JPH10336649A (en) | 1997-05-30 | 1997-05-30 | Dynamic image encoding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP14221597A JPH10336649A (en) | 1997-05-30 | 1997-05-30 | Dynamic image encoding method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH10336649A true JPH10336649A (en) | 1998-12-18 |
Family
ID=15310088
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP14221597A Pending JPH10336649A (en) | 1997-05-30 | 1997-05-30 | Dynamic image encoding method and device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH10336649A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006109420A (en) * | 2004-09-10 | 2006-04-20 | Matsushita Electric Ind Co Ltd | Animation coding apparatus and animation coding method and animation imaging apparatus |
US7747095B2 (en) | 2004-10-08 | 2010-06-29 | Nvidia Corporation | Methods and systems for rate control in image compression |
WO2011086779A1 (en) * | 2010-01-14 | 2011-07-21 | 株式会社メガチップス | Image processing device |
JP2011171855A (en) * | 2010-02-16 | 2011-09-01 | Mega Chips Corp | Image encoder and image converter |
JP2011205381A (en) * | 2010-03-25 | 2011-10-13 | Canon Inc | Encoding apparatus, control method of encoding apparatus, and program |
-
1997
- 1997-05-30 JP JP14221597A patent/JPH10336649A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006109420A (en) * | 2004-09-10 | 2006-04-20 | Matsushita Electric Ind Co Ltd | Animation coding apparatus and animation coding method and animation imaging apparatus |
US7747095B2 (en) | 2004-10-08 | 2010-06-29 | Nvidia Corporation | Methods and systems for rate control in image compression |
WO2011086779A1 (en) * | 2010-01-14 | 2011-07-21 | 株式会社メガチップス | Image processing device |
US9661333B2 (en) | 2010-01-14 | 2017-05-23 | Megachips Corporation | Image processor for code amount control |
JP2011171855A (en) * | 2010-02-16 | 2011-09-01 | Mega Chips Corp | Image encoder and image converter |
US9807390B2 (en) | 2010-02-16 | 2017-10-31 | Megachips Corporation | Image coding apparatus for correcting coarseness and encoding uncompressed data |
JP2011205381A (en) * | 2010-03-25 | 2011-10-13 | Canon Inc | Encoding apparatus, control method of encoding apparatus, and program |
US8923391B2 (en) | 2010-03-25 | 2014-12-30 | Canon Kabushiki Kaisha | Encoding apparatus, control method for encoding apparatus and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2801559B2 (en) | Motion compensation coding method and apparatus adapted to the magnitude of motion | |
US4727422A (en) | Method and apparatus for efficiently communicating image sequence having improved motion compensation | |
US5542008A (en) | Method of and apparatus for compressing image representing signals | |
EP0625854A1 (en) | Image coding and decoding system | |
JP2970417B2 (en) | Video coding method | |
JPH1169345A (en) | Inter-frame predictive dynamic image encoding device and decoding device, inter-frame predictive dynamic image encoding method and decoding method | |
JPH05219492A (en) | Method and device for coding image | |
JPH03133297A (en) | Video signal coding circuit | |
JPH09271026A (en) | Image encoding device | |
JPH07107300A (en) | Picture encoding device | |
US5521643A (en) | Adaptively coding method and apparatus utilizing variation in quantization step size | |
EP1445961B1 (en) | Noise estimation method and apparatus based on motion compensation | |
JPH07203449A (en) | Dynamic image coding device | |
US7451080B2 (en) | Controlling apparatus and method for bit rate | |
TWI436648B (en) | Bitrate control method for video coding, bitrate control apparatus for video coding, bitrate control program for video coding, and computer-readable recording medium for recording the program | |
US6385241B1 (en) | Method and apparatus for video rate control using a radial basis function rate estimator | |
JP2968666B2 (en) | Image coding method and apparatus | |
JPH10336649A (en) | Dynamic image encoding method and device | |
JP3362463B2 (en) | Frame interpolation device | |
US7885335B2 (en) | Variable shape motion estimation in video sequence | |
JPH06121171A (en) | Picture encoder | |
JP3032213B2 (en) | Image encoding device and image decoding device | |
JP2002204449A (en) | Quantization unit setting device, quantization unit setting method, coder and coding method, and information recording medium | |
JPH07147679A (en) | Moving image compressing/coding method | |
KR100207419B1 (en) | Method and apparatus for controlling generation of bit rate in video encoding |