JP3257988B2 - Image signal encoding method and recording medium recording this method - Google Patents
Image signal encoding method and recording medium recording this methodInfo
- Publication number
- JP3257988B2 JP3257988B2 JP10084999A JP10084999A JP3257988B2 JP 3257988 B2 JP3257988 B2 JP 3257988B2 JP 10084999 A JP10084999 A JP 10084999A JP 10084999 A JP10084999 A JP 10084999A JP 3257988 B2 JP3257988 B2 JP 3257988B2
- Authority
- JP
- Japan
- Prior art keywords
- frame
- code amount
- generated code
- image signal
- encoding
- 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.)
- Expired - Lifetime
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明は、画像信号の符号化
方法に係り、特に復号側の受信データバッファの占有量
の推定から符号化対象フレームの発生符号量を制御する
符号化方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image signal encoding method, and more particularly to an encoding method for controlling a generated code amount of a frame to be encoded based on an estimation of an occupation amount of a reception data buffer on a decoding side.
【0002】[0002]
【従来の技術】ISO/IEC13818−2(MPE
G−2)では、復号側の受信データバッファのサイズを
考慮して、符号化時に復号側の受信データバッファ占有
量を推定する仕組みが採り入れられている。受信データ
バッファ占有量の変化を図4示す。この図では、復号フ
レームの符号化データは、復号時に瞬時に受信データバ
ッファから取り除かれると仮定している。2. Description of the Related Art ISO / IEC13818-2 (MPE)
In G-2), a mechanism for estimating the occupation amount of the reception data buffer on the decoding side during encoding is adopted in consideration of the size of the reception data buffer on the decoding side. FIG. 4 shows a change in the occupation amount of the reception data buffer. In this figure, it is assumed that the encoded data of the decoded frame is immediately removed from the received data buffer at the time of decoding.
【0003】今、伝送レートR(bits/sec)、
最大受信データバッファサイズBmax(bits)、フ
レーム間時間T(sec)の条件で符号化する場合を考
える。復号フレームftの発生符号量をGt、復号フレー
ムftを復号する直前の受信データバッファ占有量をBt
とすると、次の復号フレームft+1の最大発生符号量は
Lmaxt+1は、次式で表される。Now, a transmission rate R (bits / sec),
Consider a case where encoding is performed under the conditions of the maximum reception data buffer size Bmax (bits) and the inter-frame time T (sec). Decoded frame f t generated code amount G t, the decoded frame f t B the received data buffer fullness immediately before decoding the t
Then, the maximum generated code amount Lmax t + 1 of the next decoded frame f t + 1 is represented by the following equation.
【0004】[0004]
【数1】 Lmaxt+1=Bt+1=Bt−Gt+R・T …(1) また、復号フレームft+1の最小発生符号量はLmint+1
は、次式で表される。Lmax t + 1 = B t + 1 = B t -G t + RT (1) Further, the minimum generated code amount of the decoded frame f t + 1 is Lmin t + 1.
Is represented by the following equation.
【0005】[0005]
【数2】 Lmint+1=Bt−Gt+2R・T−Bmax …(2) =Bt+1+R・T−Bmax …(3) これらの結果から、復号フレームft+1の発生符号量G
t+1を、Lmint+1≦Gt+ 1≦Lmaxt+1の範囲に収まるよう
に制御することで、受信データのあふれや不足を防ぐこ
とができる。[Equation 2] Lmint + 1= Bt-Gt+ 2R · T−Bmax (2) = Bt + 1+ R · T−Bmax (3) From these results, the decoded frame ft + 1Generated code amount G of
t + 1Is Lmint + 1≤Gt + 1≤Lmaxt + 1Within the range of
Control to prevent overflow or lack of received data.
Can be.
【0006】この範囲に収まるように制御する方法とし
て、以下の方法が用いられている。[0006] The following method is used as a method for controlling so as to fall within this range.
【0007】(1)受信データのあふれ防止…受信デー
タのあふれは、復号フレームの符号量が、最小発生符号
量を下回った場合に発生する。そこで、余分な符号化デ
ータを付け加えることで発生符号量を増加させる。例え
ば、MPEG−2では、決められた場所であれば、任意
の長さの”0”を付加することができる。これは、ゼロ
スタックフィングと呼ばれ、付加された”0”は復号側
では無視される。(1) Prevention of overflow of received data: Overflow of received data occurs when the code amount of a decoded frame falls below the minimum generated code amount. Therefore, the amount of generated code is increased by adding extra encoded data. For example, in MPEG-2, "0" of an arbitrary length can be added at a predetermined location. This is called zero stacking, and the added “0” is ignored on the decoding side.
【0008】(2)受信データの不足防止…受信データ
の不足は、復号フレームの符号量が、最大発生符号量を
越えた場合に発生する。そこで、符号化時に、発生符号
量を抑える処理を行う。発生符号量の抑制方法として
は、条件を満たすまで、符号化フレームレートを下げる
方法、量子化幅を大きくする方法、小ブロックを符号化
しない方法などがある。(2) Prevention of lack of received data: The lack of received data occurs when the code amount of the decoded frame exceeds the maximum generated code amount. Therefore, at the time of encoding, processing for suppressing the generated code amount is performed. As a method of suppressing the generated code amount, there are a method of reducing the encoding frame rate, a method of increasing the quantization width, and a method of not encoding small blocks until the condition is satisfied.
【0009】[0009]
【発明が解決しようとする課題】MPEG−2をはじめ
とする動画像の符号化方式では、動き補償予測を行うこ
とで符号化効率を向上させている。特に、MPEG−2
では、この動き補償予測のタイプにより3種類の符号化
フレームタイプが存在する。動き補償予測を用いないフ
レーム内符号化タイプ(Iフレーム)、過去の画像フレ
ームから予測を行う片方向予測符号化タイプ(Pフレー
ム)、過去および未来の画像フレームから予測を行う両
方向予測符号化タイプ(Bフレーム)の3種類である。
これらのフレームタイプは、下記の表1に示す特徴があ
る。In a moving picture coding method such as MPEG-2, coding efficiency is improved by performing motion compensation prediction. In particular, MPEG-2
Then, there are three types of encoded frame types depending on the type of the motion compensation prediction. Intra-frame coding type (I frame) not using motion compensated prediction, unidirectional prediction coding type (P frame) for performing prediction from past image frames, bidirectional prediction coding type for performing prediction from past and future image frames (B frame).
These frame types have the characteristics shown in Table 1 below.
【0010】[0010]
【表1】 [Table 1]
【0011】各符号化フレームタイプの参照関係の例を
図5に示す。このように、符号化フレームタイプにより
参照関係が異なるため、符号化フレームの画像品質低下
が、他の符号化フレームに与える影響は異なる。例え
ば、あるPフレームで画像品質が低下した場合、このP
フレームを参照する全ての符号化フレームで画像品質が
低下する。逆に、Bフレームでの画像品質低下は、他の
符号化フレームへの影響は無い。FIG. 5 shows an example of a reference relationship between the respective coded frame types. As described above, since the reference relationship differs depending on the coded frame type, the influence of the deterioration of the image quality of the coded frame on other coded frames is different. For example, if the image quality deteriorates in a certain P frame,
Image quality is degraded for all encoded frames that reference the frame. Conversely, a decrease in image quality in a B frame does not affect other encoded frames.
【0012】発生符号量制御において、最大発生符号量
による制限は、発生符号量を低下させる処理を行うた
め、画像品質低下を伴う。従来の方法では、受信データ
バッファの占有量のみを考慮して、最小発生符号量を決
定している。このため、他の符号化フレームから参照さ
れる符号化フレームに対し、最大発生符号量による発生
符号量を低下させる処理を行った場合、この符号化フレ
ームを参照する全ての符号化フレームの画像品質が低下
する問題がある。In the control of the generated code amount, the limitation by the maximum generated code amount involves a process of reducing the generated code amount, and thus involves a reduction in image quality. In the conventional method, the minimum generated code amount is determined by considering only the occupation amount of the reception data buffer. For this reason, when a process of reducing the generated code amount by the maximum generated code amount is performed on a coded frame referred to from another coded frame, the image quality of all the coded frames referencing this coded frame is reduced. There is a problem that decreases.
【0013】本発明の目的は、受信データバッファのあ
ふれや不足を無くしながら画像品質の低下を最小限にで
きる画像信号の符号化方法を提供することにある。An object of the present invention is to provide an image signal encoding method capable of minimizing deterioration of image quality while preventing overflow or shortage of a reception data buffer.
【0014】[0014]
【課題を解決するための手段】本発明は、上記の問題点
を解決するためになされたものであり、以下の符号化方
法を特徴とする。SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and is characterized by the following encoding method.
【0015】(第1の発明) 画像信号を符号化する際、発生符号量を抑える処理の優
先順位を符号化フレーム毎に決定するステップと、前記
優先順位が符号化対象フレーム以下の未符号化フレーム
を検出するステップと、前記検出した未符号化フレーム
を復号する時の受信データバッファ占有量を推定するス
テップと、前記推定した受信データバッファ占有量から
符号化対象フレームの最大発生符号量を決定するステッ
プと、符号化対象フレームの発生符号量が前記最大発生
符号量を越えると判断された場合、該符号化対象フレー
ムの発生符号量を抑える処理を行うステップとを有する
ことを特徴とする。[0015] determining a (first invention) image signal when coding, the processing priority of suppressing the amount of generated code for each encoded frame, the
Uncoded frames whose priority is lower than the frame to be coded
And the detected uncoded frame
Estimating the received data buffer occupancy when decoding the data, determining the maximum generated code amount of the encoding target frame from the estimated received data buffer occupancy, and generating the encoding target frame. Performing a process of suppressing the generated code amount of the encoding target frame when it is determined that the code amount exceeds the maximum generated code amount.
【0016】本発明は、発生符号量を抑える処理の優先
順位を符号化フレーム毎に決定する。この優先順位は、
各符号化フレームの参照関係により、優先順位を決定す
る。また、両方向予測符号化フレーム(Bフレーム)、
片方向予測符号化フレーム(Pフレーム)、フレーム内
符号化フレーム(Iフレーム)の順で、高い優先順位と
する。According to the present invention, the priority of the processing for suppressing the generated code amount is determined for each encoded frame. This priority is
The priority is determined based on the reference relationship between the respective encoded frames. Also, bidirectional predictive coding frames (B frames),
The priority is set higher in the order of the unidirectional predictive coded frame (P frame) and the intra-coded frame (I frame).
【0017】また、符号化対象フレームの符号化時の処
理には、まず受信データバッファの占有量を推定し、先
に決定した優先順位に基づいて符号化対象フレームの最
大発生符号量を算出しておき、符号化対象フレームを小
ブロックに分割して小ブロック毎に符号化処理を行う
際、符号化対象フレームの発生符号量が最大発生符号量
を越えると判断された場合、符号化対象フレームの発生
符号量を抑える処理を行う。In the process of encoding the encoding target frame, first, the occupancy of the reception data buffer is estimated, and the maximum generated code amount of the encoding target frame is calculated based on the priority determined in advance. In addition, when the encoding target frame is divided into small blocks and the encoding process is performed for each small block, if it is determined that the generated code amount of the encoding target frame exceeds the maximum generated code amount, the encoding target frame is Is performed to suppress the generated code amount.
【0018】[0018]
【0019】また、前記最大発生符号量を決定する際、
優先順位が符号化対象フレーム以下の未符号化フレーム
を検出し、検出した未符号化フレームを復号する時の受
信データバッファ占有量を推定する。推定した該バッフ
ァ占有量から、符号化対象フレームの最大発生符号量を
決定する。例えば、3種類の符号化フレームタイプ
(I,P,B)の優先順位をPI,PP,PB(PI>PP
>PB、すなわち、B,P,Iの順に優先的に発生符号
量を抑える処理を行う)とした場合、Bフレームの最大
発生符号量GBは、未符号化のBフレームだけでなく、
未符号化のIフレームやPフレームのバッファ占有量も
推定し、符号化対象Bフレームの最大発生符号量を決定
する。 Further, when determining the maximum amount of generated code,
An unencoded frame having a priority lower than the encoding target frame is detected, and the occupation amount of the received data buffer when decoding the detected unencoded frame is estimated. From the estimated buffer occupancy, the maximum generated code amount of the encoding target frame is determined. For example, the priorities of three types of coded frame types (I, P, B) are P I , P P , P B (P I > P P)
> P B, i.e., B, if you P, performs processing to suppress preferentially generated code amount in the order of I) and, the maximum amount of generated code G B B frames, as well as B frames uncoded,
The buffer occupancy of the uncoded I frame and P frame is also estimated, and the maximum generated code amount of the encoding target B frame is determined.
【0020】また、将来、符号化する重要度が高い画像
に対して、発生符号量の抑制処理を行うことなく、残す
ことができる。例えば、符号化対象フレームがBフレー
ムで、未符号化フレームにPフレームを含むとき、後で
未符号化フレームを処理する際に受信データバッファに
余裕が無くなってスキップするようなことが無いよう
に、一見受信データバッファに余裕があるように見える
場合にも、現在の処理対象であるBフレームに対して符
号量を抑える処理を行う。Further, in the future, it is possible to leave an image having a high degree of importance to be encoded without performing the process of suppressing the generated code amount. For example, when the encoding target frame is a B frame and an unencoded frame includes a P frame, the received data buffer may not have enough room to skip when processing the unencoded frame later. Even if the received data buffer seems to have a margin at first glance, it performs processing to suppress the code amount for the B frame that is the current processing target.
【0021】(第2の発明) 前記未符号化フレームを復号するときの受信データバッ
ファ占有量を推定する際、前記未符号化フレームの発生
符号量を推定するステップと、前記推定した発生符号量
を用いて、前記未符号化フレームでの受信データバッフ
ァの占有量を推定するステップを有することを特徴とす
る。(Embodiment 2 ) A step of estimating a generated code amount of the uncoded frame when estimating a received data buffer occupancy when decoding the uncoded frame, And estimating the occupation amount of the reception data buffer in the uncoded frame using
【0022】本発明は、各未符号化フレームの発生符号
量を推定し、その推定発生符号量から各未符号化フレー
ムの受信データバッファの占有量を推定する。According to the present invention, the generated code amount of each uncoded frame is estimated, and the occupation amount of the received data buffer of each uncoded frame is estimated from the estimated generated code amount.
【0023】(第3の発明) 前記符号化対象フレームの最大発生符号量を決定する
際、前記未符号化フレーム毎の受信データバッファの推
定占有量から各未符号化フレームでの最大発生符号量を
算出するステップと、前記算出した各未符号化フレーム
での最大発生符号量から前記符号化対象フレームの最大
発生符号量を算出するステップとを有することを特徴と
する。( Third invention) When determining the maximum amount of generated code of the frame to be coded, the maximum amount of generated code in each uncoded frame is determined from the estimated occupancy of the received data buffer for each uncoded frame. And calculating a maximum generated code amount of the encoding target frame from the calculated maximum generated code amount of each uncoded frame.
【0024】[0024]
【発明の実施の形態】図1は、本発明の実施形態を示す
符号化方法の手順図である。本実施形態では、3種類の
符号化フレームタイプ(I,P,B)をもち、画像信号
をブロック単位に分割し、ブロック毎に符号化を行う方
法を想定している。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a flowchart showing an encoding method according to an embodiment of the present invention. In the present embodiment, it is assumed that there are three types of encoded frame types (I, P, B), a method of dividing an image signal into blocks, and performing encoding for each block.
【0025】符号化フレームの符号化構造は、図2に示
すように、IフレームをNフレームに1枚、IまたはP
フレームの間にBフレームをM枚とし、固定とする。各
符号化フレームタイプ(I,P,B)の優先順位は、P
I,PP,PB(PI>PP>PB)とする。As shown in FIG. 2, the coding structure of the coded frame is such that one I frame per N frame, I or P
The number of B frames is M between frames, and is fixed. The priority of each coded frame type (I, P, B) is P
Let I , P P , P B (P I > P P > P B ).
【0026】未符号化フレームの検出は、符号化対象フ
レームから、未符号化フレーム内符号化フレームの間で
行う。未符号化フレームの推定発生符号量は、過去に符
号化した同じフレームタイプの符号化フレームの発生符
号量を用いる。The detection of the uncoded frame is performed between the frame to be coded and the coded frame within the uncoded frame. As the estimated generated code amount of an uncoded frame, the generated code amount of a coded frame of the same frame type that has been coded in the past is used.
【0027】以下、図1の手順S1〜S6に従った処理
を詳細に説明する。Hereinafter, the processing according to steps S1 to S6 in FIG. 1 will be described in detail.
【0028】(手順S1)符号化フレームタイプのチェ
ック 符号化対象フレームft(t=0,1,2、…、N−
1)の符号化フレームタイプTiを調べる。(Procedure S1) Check of encoding frame type Encoding target frame f t (t = 0, 1, 2,..., N−
Check coding frame type T i 1).
【0029】(手順S2)未符号化フレームの検出 符号化対象フレームftから、次のIフレームまでの、
符号化フレームのうち、優先順位が符号化対象フレーム
以下の未符号化フレームを検出する。この検出は、 (a)符号化対象フレームftがBフレームの場合、次
のIフレームまでの全ての未符号化フレームを検出す
る。(Procedure S2) Detection of uncoded frame From the frame to be coded ft to the next I frame,
Among the encoded frames, an unencoded frame whose priority is equal to or lower than the encoding target frame is detected. This detection is as follows: (a) When the encoding target frame ft is a B frame, all uncoded frames up to the next I frame are detected.
【0030】(b)符号化対象フレームftがPフレー
ムの場合、次のIフレームまでのIおよびPフレームの
未符号化フレームを検出する。(B) If the encoding target frame ft is a P frame, uncoded frames of I and P frames up to the next I frame are detected.
【0031】(c)符号化対象フレームftがIフレー
ムの場合、検出する未符号化フレームは存在しないの
で、何も検出されない。(C) If the encoding target frame f t is an I frame, there is no unencoded frame to be detected, so nothing is detected.
【0032】(手順S3)未符号化フレームでの受信バ
ツファ占有量を推定 直前に符号化した同一フレームタイプの符号化フレーム
の発生符号量を、未符号化フレームの推定発生符号量と
する。この推定発生符号量を用いて、検出した各未符号
化フレームfs(s=t+1,t+2,…,N−1)で
のバッファ占有量Bsを推定する。符号化対象フレーム
ftの推定発生符号量をGt’,受信データバッファ占
有量をBt、伝送レートをR、フレーム間の時間をTと
する。このとき、検出された未符号化フレームを復号す
る時のバッファ占有量Bsは次式より求められる。(Procedure S3) Estimating the occupation amount of the reception buffer in the uncoded frame The code amount generated of the coded frame of the same frame type coded immediately before is used as the estimated code amount of the uncoded frame. Using this estimated generated code amount, the buffer occupancy Bs in each detected uncoded frame fs (s = t + 1, t + 2,..., N−1) is estimated. Assume that the estimated generated code amount of the encoding target frame f t is Gt ′, the received data buffer occupancy amount is Bt, the transmission rate is R, and the time between frames is T. At this time, the buffer occupancy Bs when decoding the detected uncoded frame is obtained by the following equation.
【0033】[0033]
【数3】 (Equation 3)
【0034】ここで、Gj’は未符号化フレームの推定
発生符号量である。ただし、手順S2で検出されなかっ
た未符号化フレームはGj’=0とする。Here, G j ′ is the estimated generated code amount of the uncoded frame. However, uncoded frames not detected in step S2 are set to G j ′ = 0.
【0035】(手順S4)各未符号化フレームでの最大
発生符号量を推定 手順S2で検出された未符号化フレームsの推定発生符
号量をGs’とすると、未符号化フレームsまで推定に
利用した場合の符号化対象フレームの最大発生符号量G
t,sは、次式から算出できる。(Procedure S4) Estimating the Maximum Generated Code Amount in Each Uncoded Frame Assuming that the estimated generated code amount of the uncoded frame s detected in the step S2 is G s ′, estimation is performed up to the uncoded frame s. Generated code amount G of the encoding target frame when used for
t and s can be calculated from the following equations.
【0036】[0036]
【数4】 (Equation 4)
【0037】(手順S5)最大発生符号量の最小値を検
出 手順S4で算出した最大発生符号量Gt,sの最小値を、
符号化対象フレームftの最大発生符号量Gtとする。(Step S5) Detecting the minimum value of the maximum generated code amount The minimum value of the maximum generated code amount G t , s calculated in step S4 is
The maximum amount of generated codes G t of the encoding target frame f t.
【0038】[0038]
【数5】Gt=min(Gt,s) …(7) (手順S6)符号化対象フレームを小ブロックに分割し
てブロック毎に符号化処理 符号化対象フレームを小ブロックに分割し、ブロック単
位で符号化処理を行い、符号化対象フレームの発生符号
量が最大発生符号量Gtを越えた時点で、符号化対象ブ
ロックの発生符号量を抑える処理を行う。G t = min (G t , s ) (7) (Procedure S6) The encoding target frame is divided into small blocks, and the encoding process is performed for each block. The encoding target frame is divided into small blocks. performs coding processing in block units, when the generated code amount of the encoding target frame exceeds the maximum amount of generated code G t, performs a process of suppressing the amount of code generated for the encoding target block.
【0039】本実施形態では、受信データの不足のみを
考慮しているが、受信データバッファのあふれを考慮す
る場合、図1の手順S3の未符号化フレームでのバッフ
ァ占有量の推定方法を、図3に手順S3’で示すように
変更すれば良い。In the present embodiment, only the shortage of the received data is considered, but when the overflow of the received data buffer is considered, the method of estimating the buffer occupancy in the uncoded frame in step S3 in FIG. What is necessary is just to change as shown by procedure S3 'in FIG.
【0040】図3において、直前に符号化した同一フレ
ームタイプの符号化フレームの発生符号量を、未符号化
フレームの推定発生符号量とする。この推定発生符号量
を用いて、検出した各未符号化フレームfs(s=t+
1,t+2,…,N−1)でのバッファ占有量Bsを推
定する。符号化対象フレームftの推定発生符号量をG
t’、受信データバッファ占有量をBt、伝送レートを
R、フレーム間の時間をTとする。このとき、検出され
た未符号化フレームを復号する時のバッファ占有量Bs
は、次の漸化式より求められる。In FIG. 3, the generated code amount of the immediately preceding encoded frame of the same frame type is assumed to be the estimated generated code amount of the uncoded frame. Using this estimated generated code amount, each detected uncoded frame f s (s = t +
1, t + 2,..., N−1). The estimated generated code amount of the encoding target frame ft is represented by G
t ′, the occupation amount of the received data buffer is Bt, the transmission rate is R, and the time between frames is T. At this time, the buffer occupancy Bs at the time of decoding the detected uncoded frame
Is obtained from the following recurrence formula.
【0041】[0041]
【数6】Bk=Bk-1−G'k-1+R・T …(8) ここでGj’は未符号化フレームの推定発生符号量であ
る。ただし、手順S2で検出されなかった未符号化フレ
ームは、Gj'=0とする。この漸化式をk=sとなるま
で計算を繰り返し、バッファ占有量Bsを算出する。計
算を繰り返している途中のバッファ占有量Bkが最大バ
ッファサイズBmaxを越えた場合、Bk=Bmaxとして、
計算を続ける。B k = B k−1 −G ′ k−1 + R · T (8) where G j ′ is the estimated generated code amount of the uncoded frame. However, the uncoded frames not detected in step S2 are set to G j ′ = 0. The calculation of this recurrence formula is repeated until k = s, and the buffer occupancy Bs is calculated. If the buffer occupancy B k during the repetition of the calculation exceeds the maximum buffer size B max , B k = B max
Continue the calculation.
【0042】この様な処理を行うことで、バッファ占有
量の推定に際して、受信データバッファのあふれを考慮
することができる。By performing such processing, overflow of the reception data buffer can be considered when estimating the buffer occupancy.
【0043】この処理は、受信データバッファのあふれ
を防止するためではなく、受信データバッファのあふれ
防止処理によるバッファ占有量の変動を、未符号化フレ
ームでのバッファ占有量推定に反映させるためのもので
ある。従って、符号化処理時に受信データバッファのあ
ふれを検出した場合は、MPEG−2のゼロスタックフ
ィングのように、余分なデータの付加などの処理を行う
必要がある。This process is not for preventing the overflow of the reception data buffer, but for reflecting the fluctuation of the buffer occupancy due to the process of preventing the overflow of the reception data buffer in the estimation of the buffer occupancy in the uncoded frame. It is. Therefore, when overflow of the reception data buffer is detected during the encoding process, it is necessary to perform a process such as addition of extra data, such as zero stacking of MPEG-2.
【0044】なお、図1又は図3に示した方法の一部又
は全部をコンピュータプログラムで記載してそれを実行
できるようにし、それをコンピュータが読み取り可能な
記録媒体、例えば、FD(フロッピーディスク)や、M
O、ROM、メモリカード、CD、DVD、リムーバブ
ルディスクなどに記録して提供し、配布することが可能
である。A part or all of the method shown in FIG. 1 or FIG. 3 is described in a computer program so that the method can be executed, and the method is executed by a computer-readable recording medium such as a floppy disk (FD). And M
It can be recorded on O, ROM, memory card, CD, DVD, removable disk, etc., provided, and distributed.
【0045】[0045]
【発明の効果】以上のとおり、本発明によれば、符号化
フレームタイプにより、発生符号量の抑制処理に対する
優先順位をつけることができ、結果として、画質に与え
る影響が少ない画像から優先的に発生符号量の抑制処理
を行うことができ、受信データバッファのあふれや不足
を無くしながら画像品質の低下を最小限にできる。As described above, according to the present invention, it is possible to give a priority to the processing of suppressing the amount of generated codes according to the coding frame type. As a result, images having little effect on image quality are given priority. It is possible to perform processing for suppressing the amount of generated codes, and it is possible to minimize deterioration of image quality while preventing overflow or shortage of the reception data buffer.
【図1】本発明の実施形態を示す符号化方法の処理手
順。FIG. 1 is a processing procedure of an encoding method according to an embodiment of the present invention.
【図2】実施形態における符号化フレーム構造。FIG. 2 illustrates an encoded frame structure according to the embodiment.
【図3】本発明の他の実施形態を示す符号化方法の要部
処理手順。FIG. 3 is a main processing procedure of an encoding method according to another embodiment of the present invention.
【図4】受信データバッファ占有量の推定例。FIG. 4 is an example of estimating a reception data buffer occupancy.
【図5】符号化フレームの参照関係。FIG. 5 is a reference relationship between encoded frames.
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平5−227524(JP,A) 特開 平6−350983(JP,A) 特開 平6−205393(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 7/24 - 7/68 ────────────────────────────────────────────────── ─── Continuation of front page (56) References JP-A-5-227524 (JP, A) JP-A-6-350983 (JP, A) JP-A-6-205393 (JP, A) (58) Field (Int.Cl. 7 , DB name) H04N 7/ 24-7/68
Claims (6)
抑える処理の優先順位を符号化フレーム毎に決定するス
テップと、前記優先順位が符号化対象フレーム以下の未符号化フレ
ームを検出するステップと、 前記検出した未符号化フレームを復号する時の 受信デー
タバッファ占有量を推定するステップと、前記推定した受信データバッファ占有量から 符号化対象
フレームの最大発生符号量を決定するステップと、 符号化対象フレームの発生符号量が前記最大発生符号量
を越えると判断された場合、該符号化対象フレームの発
生符号量を抑える処理を行うステップと、 を有することを特徴とする画像信号の符号化方法。When encoding an image signal, deciding a priority order of a process for suppressing a generated code amount for each encoded frame, and an unencoded frame whose priority order is equal to or less than a frame to be encoded.
Detecting the received data buffer occupancy when decoding the detected unencoded frame ; and determining the maximum generated code amount of the encoding target frame from the estimated received data buffer occupancy. Determining, and when it is determined that the generated code amount of the encoding target frame exceeds the maximum generated code amount, performing a process of suppressing the generated code amount of the encoding target frame. Encoding method of an image signal to be encoded.
において、前記未符号化フレームを復号するときの受信
データバッファ占有量を推定する際、前記未符号化フレ
ームの発生符号量を推定するステップと、前記推定した
発生符号量を用いて、前記未符号化フレームでの受信デ
ータバッファの占有量を推定するステップを有すること
を特徴とする画像信号の符号化方法。2. The coding method of an image signal according to claim 1 , wherein when estimating an occupation amount of a received data buffer when decoding the uncoded frame, an estimated code amount of the uncoded frame is estimated. And estimating the occupancy of the received data buffer in the uncoded frame using the estimated generated code amount.
において、前記符号化対象フレームの最大発生符号量を
決定する際、前記未符号化フレーム毎の受信データバッ
ファの推定占有量から各未符号化フレームでの最大発生
符号量を算出するステップと、前記算出した各未符号化
フレームでの最大発生符号量から前記符号化対象フレー
ムの最大発生符号量を算出するステップとを有すること
を特徴とする画像信号の符号化方法。3. The image signal encoding method according to claim 1 , wherein, when determining a maximum generated code amount of the encoding target frame, the maximum occupied amount of a received data buffer for each unencoded frame is determined. Calculating the maximum generated code amount in the uncoded frame, and calculating the maximum generated code amount of the encoding target frame from the calculated maximum generated code amount in each uncoded frame. An encoding method of a featured image signal.
において、発生符号量を抑える処理を行う優先順位を画
像フレーム毎に決定する際、各画像フレームの参照関係
により、優先順位を決定するステップを有することを特
徴とする画像信号の符号化方法。4. The image signal encoding method according to claim 1, wherein when the priority order for performing the process of suppressing the generated code amount is determined for each image frame, the priority order is determined based on a reference relationship between the image frames. Encoding a video signal.
において、発生符号量を抑える処理を行う優先順位を画
像フレーム毎に決定する際、両方向予測符号化フレー
ム、片方向予測符号化フレーム、フレーム内符号化フレ
ームの順で、高い優先順位とすることを特徴とする画像
信号の符号化方法。5. The encoding method for an image signal according to claim 4 , wherein when determining the priority order for performing the process of suppressing the generated code amount for each image frame, a bidirectional predictive encoded frame or a unidirectional predictive encoded frame is determined. A higher priority order in the order of intra-frame coding.
像信号の符号化方法における処理手順をコンピュータに
実行させるためのプログラムを、該コンピュータが読み
取り可能な記録媒体に記録したことを特徴とする画像信
号の符号化方法を記録した記録媒体。6. The program for executing the processing procedure in the coding method for an image signal according to any one of claims 1 to 5 computer, that the computer is recorded in a recording medium readable A recording medium on which a characteristic image signal encoding method is recorded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10084999A JP3257988B2 (en) | 1999-04-08 | 1999-04-08 | Image signal encoding method and recording medium recording this method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10084999A JP3257988B2 (en) | 1999-04-08 | 1999-04-08 | Image signal encoding method and recording medium recording this method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2000295612A JP2000295612A (en) | 2000-10-20 |
JP3257988B2 true JP3257988B2 (en) | 2002-02-18 |
Family
ID=14284779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP10084999A Expired - Lifetime JP3257988B2 (en) | 1999-04-08 | 1999-04-08 | Image signal encoding method and recording medium recording this method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3257988B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7268924B2 (en) * | 2001-01-22 | 2007-09-11 | Hand Held Products, Inc. | Optical reader having reduced parameter determination delay |
JP5355234B2 (en) * | 2009-06-04 | 2013-11-27 | キヤノン株式会社 | Encoding apparatus and encoding method |
-
1999
- 1999-04-08 JP JP10084999A patent/JP3257988B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JP2000295612A (en) | 2000-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2003018603A (en) | Method and device for encoding moving image | |
CN102870415B (en) | Video coding control method, video coding device, and video coding program | |
JP2970417B2 (en) | Video coding method | |
JP4358215B2 (en) | Video encoding apparatus and method | |
JP3960451B2 (en) | Scene characteristic detection type moving picture coding apparatus | |
JPH10336663A (en) | Pre-processor for mpeg2 coding | |
JP2871316B2 (en) | Video encoding device | |
JPH08163554A (en) | Video bit rate control method | |
JP4632049B2 (en) | Video coding method and apparatus | |
JP3187097B2 (en) | Code amount distribution method in moving picture coding and moving picture coding method and apparatus using the same | |
JP4828950B2 (en) | Video decoding device | |
JP4072859B2 (en) | Video information re-encoding device | |
US7274739B2 (en) | Methods and apparatus for improving video quality in statistical multiplexing | |
JP3257988B2 (en) | Image signal encoding method and recording medium recording this method | |
JP2001128179A (en) | Device and method for encoding moving picture | |
JP4668767B2 (en) | Moving picture coding apparatus and moving picture coding program | |
JP2005045736A (en) | Method and device for encoding image signal, encoding controller, and program | |
JP4073541B2 (en) | Video re-encoding device | |
JP2000032468A (en) | Image encoding method and recording medium recording motion compensation mode selection program | |
JP7001159B2 (en) | Video coding device, video coding method, program | |
JP4254784B2 (en) | Moving picture coding apparatus, method and program | |
JP3150627B2 (en) | Re-encoding method of decoded signal | |
JP2005303555A (en) | Moving picture coding apparatus and moving picture coding method | |
JPH10126792A (en) | Image coding method and apparatus | |
JP4285431B2 (en) | Video information editing apparatus, method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071207 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081207 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091207 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101207 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101207 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111207 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111207 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121207 Year of fee payment: 11 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121207 Year of fee payment: 11 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131207 Year of fee payment: 12 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
EXPY | Cancellation because of completion of term |