JP4517468B2 - Image information converting apparatus and method, and encoding apparatus and method - Google Patents

Image information converting apparatus and method, and encoding apparatus and method Download PDF

Info

Publication number
JP4517468B2
JP4517468B2 JP2000208932A JP2000208932A JP4517468B2 JP 4517468 B2 JP4517468 B2 JP 4517468B2 JP 2000208932 A JP2000208932 A JP 2000208932A JP 2000208932 A JP2000208932 A JP 2000208932A JP 4517468 B2 JP4517468 B2 JP 4517468B2
Authority
JP
Japan
Prior art keywords
code amount
image
information
compression information
pixel block
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 - Fee Related
Application number
JP2000208932A
Other languages
Japanese (ja)
Other versions
JP2002027465A (en
Inventor
数史 佐藤
武文 名雲
邦明 高橋
輝彦 鈴木
陽一 矢ケ崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2000208932A priority Critical patent/JP4517468B2/en
Publication of JP2002027465A publication Critical patent/JP2002027465A/en
Application granted granted Critical
Publication of JP4517468B2 publication Critical patent/JP4517468B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、画像情報を変換する画像情報変換装置及び方法並びに符号化装置及び方法に関し、詳しくは、離散コサイン変換等の直交変換と動き補償によって圧縮されたMPEG等の画像情報(ビットストリーム)を衛星放送、ケーブルTV、インターネット等のネットワークメディアを介して受信する際に、若しくは光、磁気ディスクのような記憶メディア上で処理する際に用いられる画像情報を変換する画像情報変換装置及び方法並びに符号化装置及び方法に関する。
【0002】
【従来の技術】
近年、画像情報をディジタルとして取り扱い、効率の高い情報の伝送、蓄積を目的とし、画像情報特有の冗長性を利用して、離散コサイン変換等の直交変換と動き補償により圧縮するMPEGなどの画像情報圧縮方式が提供されている。そして、このような画像情報圧縮方法に準拠した装置は、放送局などの情報配信、及び一般家庭における情報受信の双方において普及しつつある。
【0003】
特に、MPEG2(ISO/IEC 13818−2)は、飛び越し走査画像及び順次走査画像の双方、並びに標準解像度画像及び高精細画像を網羅する、汎用画像符号化方式として定義されている。
【0004】
すなわち、MPEG2符号化圧縮方式によれば、例えば、720×480画素を持つ標準解像度の飛び越し走査画像に4〜8Mbpsの符号量(ビットレート)を割り当て、1920×1088画素を持つ高解像度の飛び越し走査画像に対して18〜22Mbpsの符号量(ビットレート)を割り当てることにより、高い圧縮率と良好な画質の実現が可能となる。
【0005】
このようなことから、MPEG2は、プロフェッショナル用途及びコンシューマー用途の広範なアプリケーションに今後とも用いられるものと予想される。
しかし、MPEG2は、主として放送用に適合する高画質符号化を対象としており、例えばMPEG1より低い符号量(ビットレート)、つまりより高い圧縮率の符号化方式には対応していなかった。
【0006】
一方で、近年の携帯端末の普及により、今後とも高い圧縮率の符号化方式のニーズは高まると思われ、これに対応して、高い圧縮率を有するMPEG4符号化方式の標準化が行われている。この画像符号化方式に関しては、1998年12月にISO/IEC 14496−2として国際標準の規格が承認された。
【0007】
ところで、ディジタル放送用に一度符号化されたMPEG2画像圧縮情報(ビットストリーム)を、携帯端末上等で処理するのにより適した、より低い符号量(ビットレート)の画像圧縮情報(ビットストリーム)に変換したいというニーズがある。
【0008】
かかる目的を達成するために、“Field-to-Frame Transcoding with Spatial and Temporal Downsampling”(Susie L Wee, John G. Apostolopoulos, and Nick Feamster, ICIP 99、以下これを文献1と呼ぶ)において画像情報変換装置(トランスコーダ)が提供されている。
【0009】
この文献1において提供された画像情報変換装置(トランスコーダ)は、図6に示すように、ピクチャタイプ判別部1と、MPEG2画像情報復号化部(I/Pピクチャ)2と、間引き部3と、MPEG4画像情報符号化部(I/P−VOP)4と、動きベクトル合成部5と、動きベクトル検出部6とから構成されている。
【0010】
この画像情報変換装置には、フレーム内で符号化されたイントラ符号化画像(Iピクチャ;I)、表示順序で順方向を参照して予測符号化された順方向予測符号化画像(Pピクチャ;P)及び表示順序で順方向及び逆方向を参照して予測符号化された双方向予測符号化画像(Bピクチャ;B)から構成される飛び越し走査のMPEG2画像圧縮情報(ビットストリーム)が入力される。
【0011】
このMPEG2画像圧縮情報(ビットストリーム)は、ピクチャタイプ判別部1において、I/Pピクチャに関するものか、Bピクチャに関するものであるかを判別され、I/Pピクチャのみ後続のMPEG2画像情報復号化部(I/Pピクチャ)2に出力され、Bピクチャは破棄される。
【0012】
MPEG2画像情報復号化部(I/Pピクチャ)2における処理は通常のMPEG2画像情報復号化装置と同様に、MPEG2画像圧縮情報(ビットストリーム)を画像信号に復号するものである。
【0013】
MPEG2画像情報復号化部(I/Pピクチャ)2の出力となる画素値は、間引き部3に入力される。間引き部3は、水平方向には1/2の間引き処理を施し、垂直方向には、第一フィールド若しくは第二フィールドのどちらか一方のデータのみを残し、もう一方を廃棄する。このような間引きによって、入力となる画像情報の1/4の大きさを持つ順次走査画像を生成する。
【0014】
間引き部3によって生成された順次走査画像はMPEG4画像情報符号化部(I/P−VOP)4によってフレーム内で符号化されたI−VOP及び表示順序で順方向を参照して予測符号化されたP−VOPに符号化され、MPEG4画像圧縮情報(ビットストリーム)として出力される。尚、VOPはVideo object Planeを意味し、MPEG2におけるフレームに相当するものである。
【0015】
その際、入力となるMPEG2画像圧縮情報(ビットストリーム)中の動きベクトル情報は、動きベクトル合成部5において間引き後の画像情報に対する動きベクトルにマッピングされ、動きベクトル検出部6においては、動きベクトル合成部5において合成された動きベクトル値を元に高精度の動きベクトルを検出する。
【0016】
文献1は、入力となるMPEG2画像圧縮情報(ビットストリーム)の1/2×1/2の大きさを持つ順次走査画像のMPEG4画像圧縮情報(ビットストリーム)を生成する画像情報変換装置に関して記述している。すなわち、例えば入力となるMPEG2画圧縮情報(ビットストリーム)がNTSC(National Television System Committee)の規格に準拠したものであった場合、出力となるMPEG4画像圧縮情報はSIFサイズ(352×240画素)ということになる。
【0017】
ところで、図6に示した画像情報変換装置においては、MPEG4画像情報符号化部(I/P−VOP)4における符号量制御が、出力となるMPEG4画像圧縮情報(ビットストリーム)における画質を決定する大きな要因となる。ISO/IEC 14496−2においては、符号量制御の方式に関しては特に規定されておらず、各ベンダが、アプリケーションに応じて、演算量及び出力画質の観点から最適と考えられる方式を用いることが出来る。以下では、代表的な符号量制御方式として、MPEG2 Test Model 5(ISO/IEC JTC1/SC29/WG11 N0400)で述べられている方式について述べる。
【0018】
この符号量制御のフローを図7に示すフローを用いて説明する。最初のステップS11において、画像情報符号化部(I/P−VOP)4は、目標符号量(ターゲットビットレート)、及び、GOP(group of pictures)構成を入力変数として、各ピクチャへのビット配分を行う。ここで、GOPとは、ランダムアクセス可能なピクチャの組である。
【0019】
すなわち、ステップS11において、画像情報符号化部(I/P−VOP)4は、GOP内の各ピクチャに対する割り当てビット量を、割り当て対象ピクチャを含めGOP内でまだ復号化されていないピクチャに対して割り当てられるビット量(以下、これをRとする)を基に配分する。この配分をGOP内の符号化ピクチャ順に繰り返す。その際、以下に述べる2つの仮定を用いて各ピクチャへの符号量割り当てを行う。
【0020】
まず、第一に、各ピクチャを符号化する際に用いる平均量子化スケールコードと発生符号量の積は、画面が変化しない限り、ピクチャタイプ毎に一定値となると仮定する。そこで、各ピクチャを符号化した後、各ピクチャタイプ毎に、画面の複雑さを示す変数Xi,Xp,Xb(grobal complelxity measure)を次の式(1)によって更新する。
【0021】
【数4】

Figure 0004517468
【0022】
ここでSi,Sp,Sbはピクチャ符号化時の発生符号ビット量であり、Qi,Qp,Qbは、ピクチャ符号化時の平均量子化スケールコードである。また、初期値は、目標符号量(ターゲットビットレート)bit_rate[bits/sec]を用いて、式(2)で示される値とする。
【0023】
【数5】
Figure 0004517468
【0024】
第二に、Iピクチャの量子化スケールコードを基準としたP,Bピクチャの量子化スケールコードの比率Kp,Kbが式(3)に定めた値となる場合に常に全体の画質が最適化されると仮定する。
【0025】
【数6】
Figure 0004517468
【0026】
すなわち、Bピクチャの量子化スケールコードは、I,Pピクチャの量子化スケールコードの常に1.4倍としている。これは、BピクチャをI,Pピクチャに比較して多少粗めに符号化することにより、Bピクチャで節約できる符号量をI,Pピクチャに加えると、I,Pピクチャの画質が改善され、これを参照するBピクチャの画質も改善されることを想定している。
【0027】
上記2つの仮定より、GOPの各ピクチャに対する割り当てビット量(Ti,Tp,Tb)は式(4)に示す値とする。
【0028】
【数7】
Figure 0004517468
【0029】
ここでNp,NbはGOP内でまだ符号化されていないP,Bピクチャの枚数である。
【0030】
このようにして求めた割当符号量を基にして、各ピクチャをステップS11,S12に従って符号化する毎に、GOP内の未符号化ピクチャに対して割り当てられるビット量Rを式(5)で更新する。
【0031】
【数8】
Figure 0004517468
【0032】
また、GOPの最初のピクチャを符号化する際には、式(6)によりRを更新する。
【0033】
【数9】
Figure 0004517468
【0034】
NはGOP内のピクチャ数である。また、シーケンスの最初でのRの初期値は0とする。
【0035】
次に、ステップS12において、画像情報符号化装置(I/P−VOP)4は、仮想バッファを用いたレート制御を行う。すなわち、ステップS12において、画像情報符号化装置(I/P−VOP)4は、ステップS11で式(4)により求められた各ピクチャに対する割当ビット量(Ti,Tp,Tb)と、実際の発生符号量を一致させるため、各ピクチャ毎に独立に設定した3種類の仮想バッファの容量を基に、量子化スケールコードを、マクロブロック単位のフィードバック制御で求める。
【0036】
まず、j番目のマクロブロック符号化に先立ち、仮想バッファの占有量を式(7)によって求める。
【0037】
【数10】
Figure 0004517468
【0038】
ここで、d0 i,d0 p,d0 bは各仮想バッファの初期占有量、Bjはピクチャの先頭からj番目のマクロブロックまでの発生ビット量、MB_cntは1ピクチャ内のマクロブロック数である。各ピクチャ符号化終了時の仮想バッファ占有量(dMB_cnt i,dMB_cnt p,dMB_cnt b)は、それぞれ同一のピクチャタイプで、次のピクチャに対する仮想バッファ占有量の初期値(d0 i,d0 p,d0 b)として用いられる。
【0039】
次に、j番目のマクロブロックに対する量子化スケールコードを式(8)により計算する。
【0040】
【数11】
Figure 0004517468
【0041】
ここで、rはリアクションパラメーターと呼ばれるフィードバックループの応答を制御する変数であり、式(9)により与えられる。
【0042】
【数12】
Figure 0004517468
【0043】
尚、符号化開始時における仮想バッファの初期値は式(10)で与えられる。
【0044】
【数13】
Figure 0004517468
【0045】
最後に、ステップS13において、画像情報符号化装置(I/P−VOP)4は、視覚特性を考慮したマクロブロック毎の適応量子化を行う。すなわち、ステップS13において、画像情報符号化部(I/P−VOP)4は、ステップS12で求められた量子化スケールコードを、視覚的に劣化の目立ちやすい平坦部でより細かく量子化し、劣化の比較的目立ちにくい絵柄の複雑な部分で粗く量子化するように、各マクロブロック毎のアクティビティと呼ばれる変数によって変化させている。
【0046】
アクティビティは、原画の輝度信号画素値を用い、フレーム離散コサイン変換モードにおける4個のブロックと、フィールド離散コサイン変換モードにおける4個のブロックとの、合計8ブロックの画素値を用いて式(11)で与えられる。
【0047】
【数14】
Figure 0004517468
【0048】
ここで、Pkは原画の輝度信号ブロック内画素値である。式(11)において最小値を採るのは、マクロブロック内の一部だけでも平坦部分のある場合には量子化を細かくするためである。
【0049】
更に、式(12)によりその値が0.5〜2の範囲を取る正規化アクティビティNactjを求める。
【0050】
【数15】
Figure 0004517468
【0051】
ここで、avg_actは、直前に符号化したピクチャでのactjの平均値である。
【0052】
視覚特性を考慮した量子化スケールコードmquantjはステップS12で得られた量子化スケールコードQjを基に式(13)で与えられる。
【0053】
【数16】
Figure 0004517468
【0054】
MPEG2 Test Model 5において定められた上記符号量制御方式には以下の制限のあることが知られており、実際の制御を行う場合には、これらの制限に対する対策が必要となる。すなわち、第一の制限は、第一ステップS11はシーンチェンジに対応出来ず、また、シーンチェンジ後には第三ステップS13で用いる媒介変数avg_actが間違った値となるということである。第二の制限は、MPEG2及びMPEG4において規定されているVBV(Video Buffer Verifier)の拘束条件を満たす保証がないことである。
【0055】
ところで、文献”MPEG圧縮効率の理論解析とその符号量制御への応用”(信学技報、IE−95, DSP95−10, 1995年5月、以下これを文献2と呼ぶ)でも述べられている通り、Test Model 5で定められている符号量制御方式は、MPEG−2画像符号化装置において、必ずしも良好な画質を与えるものではない。
【0056】
この文献2では、特に、良好な画質を与えるための、GOP内における各フレーム毎の最適な符号量配分を与える手法として以下の方式を提案している。すなわち、NI,NP,NBを、GOP内においてまだ符号化されていないI,P,Bピクチャの枚数として、これらに割り当てられる符号量をRI,RP,RBとする。また、式(14)で与えられる固定レート条件の下に、それぞれにおける量子化ステップサイズをQI,QP,QBとし、mを、量子化ステップサイズと再生誤差分散を関係付ける次数(すなわち、量子化ステップサイズをm乗したものの平均値の最小化が再生誤差分散を最低にすると仮定する)とする。そして、式(15)を最小にすることを考える。
【0057】
【数17】
Figure 0004517468
【0058】
【数18】
Figure 0004517468
【0059】
尚、それぞれのフレームにおける平均量子化スケールQ、及び符号量Rは、Test Model 5でも用いられる媒体変数である各フレームのコンプレキシティXと、式(16)のように関係づけられる。
【0060】
【数19】
Figure 0004517468
【0061】
式(16)の関係も考慮しつつ、式(14)の拘束条件の元に式(15)を最小にするRI,RP,RBを、ラグランジェの未定乗数法を用いて算出すると、最適なRI,RP,RBとして以下の式のような値が求められる。
【0062】
【数20】
Figure 0004517468
【0063】
α=1として、式(17)と、MPEG2 Test Model 5で定められた符号量制御方式における式(4)との関係は以下の通りであると言える。すなわち、式(17)は、符号量制御の媒介変数であるKp,Kbを、各フレームのコンプレキシティXI,XP,XBに応じて、式(18)のように適応的に算出していることに他ならない。
【0064】
【数21】
Figure 0004517468
【0065】
文献2では、1/(1+m)の値として、0.6〜1.2程度に設定することで良好な画質が得られることが示されている。
【0066】
図6に示した画像情報変換装置内で、MPEG4画像情報符号化装置(I/P−VOP)4において、MPEG2 Test Model 5において定められたのと同様な手法を用いて符号量制御を行った場合、シーンチェンジ等に起因する、GOP内でのコンプレキシティの変化に対応することが不可能であるため、安定した符号量制御が困難となり、画質劣化を引き起こすことが考えられる。MPEG2画像情報復号化部(I/Pピクチャ)2において抽出される、入力となるMPEG2画像圧縮情報(ビットストリーム)内の情報をMPEG4画像圧縮情報符号化部(I/P−VOP)4において利用することでこの問題を回避することが可能であると期待される。
【0067】
かかる問題を解決するため、本願出願人は、先に図8に示すような画像情報変換装置を提案した。
【0068】
この画像情報変換装置は、ピクチャタイプ判別部7と、圧縮情報解析部8と、MPEG2画像情報復号化部(I/Pピクチャ)9と、間引き部10と、MPEG4画像情報符号化部(I/P−VOP)11と、動きベクトル合成部12と、動きベクトル検出部13と、情報バッファ14と、コンプレキシティ算出部15とから構成される。
【0069】
この画像情報変換装置は、圧縮情報解析部8、情報バッファ14、コンプレキシティ算出部15及びMPEG4画像情報符号化部(I/P−VOP)11における符号量制御以外の動作原理については、図6に示した画像情報変換装置と同様であるため、以下では、圧縮情報解析部8、情報バッファ14、コンプレキシティ算出部15における動作原理及びMPEG4画像情報符号化部(I/P−VOP)11における符号量制御について述べることにする。
【0070】
圧縮情報解析部8において、復号処理に用いられた量子化スケールのフレーム全体に渡る平均値Q、及び、入力となるMPEG2画像圧縮情報(ビットストリーム)において、当該フレームに割り当てられた総符号量(ビット数)Bは、情報バッファ14に格納される。
【0071】
コンプレキシティ算出部15においては、情報バッファ14に格納されたフレーム毎の情報Q及びBから、当該フレームに対するコンプレキシティXを式(19)により算出する。
【0072】
【数22】
Figure 0004517468
【0073】
式(19)によって算出された、当該フレームに対するコンプレキシティXは、1GOV(group of VOPs)分バッファリングされた後、MPEG4画像情報符号化部(I/P−VOP)11に符号量制御のための媒介変数として伝送される。このため、1GOV分の遅延が必要となる。この遅延は図示しない遅延バッファを用いて実現される。ここで、GOVとは、ランダムアクセス可能なVOPの組である。
【0074】
以下では、式(19)において算出された、GOV内の各フレームに対するコンプレキシティXが、MPEG4画像情報符号化部(I/P−VOP)11においてどのように用いられるかについて述べる。尚、以下では、ピクチャタイプ判別部7がこの画像情報変換装置内に存在せず、フレームレートの変換を行わない場合をも考慮することにする。
【0075】
式(18)によって求められたKP,KBの意味するところは、I−VOPに対する理想的な平均量子化スケールQi_idealに対するP−VOP/B−VOPに対する理想的な平均量子化スケールQp_ideal,Qb_idealの比が、式(20)によって与えられるということである。
【0076】
【数23】
Figure 0004517468
【0077】
MPEG2 Test Model 5においては、式(18)のように適応的にKp,Kbを算出することを行わず、式(3)に示したような固定値を用いている。
【0078】
式(18)及び式(20)から、或るVOP1と、或るVOP2に対するコンプレキシティをそれぞれX1,X2とし、理想的な量子化スケールをQ1_ideal,Q2_idealとすれば、式(21)のようになる。
【0079】
【数24】
Figure 0004517468
【0080】
或いはまた、MPEG2 Test Model 5のように、式(3)に示した固定値を用いたい場合には、式(21)に代えて、式(22)のようにすれば良い。
【0081】
【数25】
Figure 0004517468
【0082】
今、GOV内の未符号化されたVOPに対して割り当てられる総符号量(ビット数)をRとし、Rが、各VOPに対して、R1,R2,…Rnといったように割り当てられる時、当該GOVに対する画質が最適化されるものとする。ここでRとR1,R2,…Rnの間には式(23)のような関係式が成り立つ。
【0083】
【数26】
Figure 0004517468
【0084】
或るVOPkに対する平均量子化スケールQk、割当符号量Rk、コンプレキシティXkの間には式(24)なる関係があることにも注意して、式(23)を変形すれば式(25)が得られる。
【0085】
【数27】
Figure 0004517468
【0086】
【数28】
Figure 0004517468
【0087】
式(25)において、K(X1,X2)に関しては、式(21)に示した値を用いても、式(22)に示した値を用いても良いが、前者の方が、画像に応じた、より最適な符号量配分を実現することが可能である。その際、1/(1+m)の値を1.0と設定することで、指数演算を行うことが不要となり、高速な実行が可能となる。また、1/(1+m)の値を1.0以外に設定する場合にも、予めテーブルを持ち、これを参照して指数演算を行うことで高速な実行が可能となる。
【0088】
式(25)における各VOPに対するコンプレキシティXkはMPEG4画像符号化によるものであるが、MPEG2画像符号化による各フレームに対するコンプレキシティと、MPEG4画像符号化による各フレームに対するコンプレキシティが等しいと仮定すれば、コンプレキシティ算出部15に格納されたXkを用いることで、式(25)によって当該VOPに対する目標符号量を算出することが可能である。
【0089】
この目標符号量の算出のフローを図9に示す。最初のステップS21において、圧縮情報解析部8は、MPEG2画像情報復号化部9における復号処理に用いられるGOP内の各フレームに対する平均量子化スケールQ,及び割当符号量(ビット数)Bを抽出する。
【0090】
ステップS22において、コンプレキシティ算出部15は、平均量子化スケールQ及び割当符号量(ビット数)Bの積で与えられるコンプレキシティXを算出する。
【0091】
ステップS23において、MPEG4画像符号化部(I/P−VOP)11は、コンプレキシティXに応じた目標符号量(ターゲットビット)を算出する。
【0092】
MPEG2 Test Model 5では、GOP内におけるI,P,Bピクチャに対するコンプレキシティXi,Xp,Xbは一定であると仮定しているが実際にはシーンチェンジをGOP内に含む場合や、GOP内で背景が著しく変化する場合等ではこの仮定が成り立たず、安定した符号量制御の妨げとなり、画質劣化の要因ともなる。図8に示した画像情報変換装置においては、そのような場合にも、入力となるMPEG2画像圧縮情報(ビットストリーム)における、各フレームに対するコンプレキシティに基づいた符号量制御を行うため、画質劣化を引き起こすことなく、安定した符号量制御を行うことが可能である。
【0093】
【発明が解決しようとする課題】
ところで、図7に示した符号量制御方式において、ステップS13における適応量子化が有効に作用するためには、j番目のマクロブロックに対する量子化スケールコード、つまり式(8)におけるQJがフレーム全体に渡って均一な値を取ることが望ましい。そこで、CCIR(Comite Consultantif Internationale des Radio Communications)テストシーケンスの一つである“Flower Garden”を、n=15;m=3の条件の元、4Mbpsに圧縮したMPEG2画像圧縮情報(ビットストリーム)を、図8に示した画像情報変換装置を用いて、n=5;m=1のMPEG4画像圧縮情報(ビットストリーム)に変換する際の、あるVOPに対するQJがどのような値を取るかを図10に示す。
【0094】
先述の通り、理想的にはQJがVOP全体に渡って均一な値を取ることが望ましいが、実際には、式(7)における仮想バッファ占有量(dj i,dj p,dj b)がマクロブロック毎に変化するため、VOP全体に渡って均一な値とならない。
【0095】
本発明は、上述の実情に鑑みて提案されるものであって、Qjの変動を抑制して符号量を制御するような画像情報変換装置及び方法並びに符号化装置及び方法を提供することを目的とする。
【0096】
【課題を解決するための手段】
上述の課題を解決するために、本発明は、第1の圧縮符号化方式で圧縮された飛び越し走査の入力画像圧縮情報を、第2の圧縮符号化方式で圧縮された順次走査の出力画像圧縮情報に変換するものであって、上記入力画像圧縮情報及び上記出力画像圧縮情報を構成する符号化画像は、それぞれ複数の画素からなる画素ブロックから構成され、上記出力画像圧縮情報の符号化画像における水平方向一列分の画素ブロック群からなる疑似画素ブロック列を構成する画素ブロックに対応する上記入力画像圧縮情報の符号化画像における画素ブロック群の平均量子化スケール及び割当符号量を上記入力画像圧縮情報から抽出する解析手段と、この解析手段で検出した平均量子化スケール及び割当符号量を格納する情報バッファと、上記疑似画素ブロック列に対する目標符号量を算出する目標符号量算出手段と、上記目標符号量算出手段で算出した目標符号量を用い、画像情報を上記出力画像圧縮情報に符号化する符号化手段とを有し、上記解析手段は、上記情報バッファに格納した平均量子化スケール及び割当符号量を用いて、上記出力画像圧縮情報及び符号化画像における疑似画素ブロック列に対するコンプレキシティを算出し、上記目標符号量算出手段は、上記出力画像圧縮情報を構成する符号化画像に対する目標符号量及び各疑似画素ブロック列に対するコンプレキシティを用いて、上記出力画像圧縮情報を構成する符号化画像を構成する疑似画素ブロック列に対する目標符号量を算出する。
また、本発明にかかる符号化装置は、第1の圧縮符号化方式で圧縮された飛び越し走査の入力画像圧縮情報を復号して得られる画像情報を、第2の圧縮符号化方式で圧縮された順次走査の出力画像圧縮情報に符号化する符号化装置において、上記入力画像圧縮情報及び上記出力画像圧縮情報を構成する符号化画像は、それぞれ複数の画素からなる画素ブロックから構成され、上記入力画像圧縮情報から抽出され、上記出力画像圧縮情報の符号化画像における水平方向一列分の画素ブロック群からなる疑似画素ブロック列を構成する画素ブロックに対応する上記入力画像圧縮情報の符号化画像における画素ブロック群の平均量子化スケール及び割当符号量を受け取る受取手段と、この受取手段からの平均量子化スケール及び割当符号量を格納する情報バッファと、上記疑似画素ブロック列に対する目標符号量を算出する目標符号量算出手段と、上記目標符号量算出手段で算出した目標符号量を用い、画像情報を上記出力画像圧縮情報に符号化する符号化手段とを有し、上記受取手段は、上記情報バッファに格納した平均量子化スケール及び割当符号量を用いて算出された上記出力画像圧縮情報及び符号化画像における疑似画素ブロック列に対するコンプレキシティを受け取り、上記目標符号量算出手段は、上記出力画像圧縮情報を構成する符号化画像に対する目標符号量及び各疑似画素ブロック列に対するコンプレキシティを用いて算出された上記出力画像圧縮情報を構成する符号化画像を構成する疑似画素ブロック列に対する目標符号量を算出する
【0097】
本発明は、飛び越し走査のMPEG2画像圧縮情報(ビットストリーム)を入力画像圧縮情報とし、順次操作のMPEG4画像圧縮情報(ビットストリーム)を出力画像圧縮情報とする。これらMPEG2画像圧縮情報(ビットストリーム)及びMPEG4画像圧縮情報は、複数の画素から構成される画素ブロックすなわちマクロブロックから構成され、疑似画素ブロック列すなわち疑似スライスを利用している。
【0098】
また、MPEG2画像圧縮情報(ビットストリーム)及びMPEG4画像圧縮情報(ビットストリーム)は、画像群すなわちGOP(group of pictures)及びGOV(group of VOPs)からそれぞれ構成されている。そして、画像群であるGOP及びGOVは、複数の符号化画像すなわちピクチャ(picture)及びVOP(video object plane)からそれぞれ構成されている。
【0099】
すなわち、本発明は、飛び越し走査のMPEG2画像情報圧縮情報(ビットストリーム)を入力とし、ピクチャタイプ判別部、圧縮情報解析部、MPEG2画像情報復号化部(I/Pピクチャ)、間引き部、MPEG4画像情報符号化部(I/P−VOP)、動きベクトル合成部、動きベクトル検出部、情報バッファ、VOPコンプレキシテイ算出部、擬似スライスコンプレキシティ算出部、VOP目標符号量算出部、擬似スライス目標符号量算出部を兼ね備え、入力となるMPEG2画像圧縮情報(ビットストリーム)における、各スライスに対するコンプレキシティ情報を用いて、MPEG4画像符号化の際に擬似スライス単位の目標符号量(ターゲットビット)を与えることで、符号量制御のステップ2に伴う参照量子化スケールの変動を最小限に抑え、各マクロブロックに対する符号量割当が画像に対して最適化された状態で、順次走査のMPEG4画像圧縮情報(ビットストリーム)を出力する手段を提供するものである。
【0100】
上記構成において、ピクチャタイプ判別部は、入力となるMPEG2画像圧縮情報(ビットストリーム)内で、I/Pピクチャに関するものだけ残してBピクチャに関するものは廃棄する。圧縮情報解析部は、1GOP分の遅延を実現すると同時に、入力となるMPEG2画像圧縮情報(ビットストリーム)内で、各フレームに対して割り当てられた符号量(ビット数)及び各フレームにおける平均量子化スケール、並びに、各フレームにおいて、後段のMPEG4画像圧縮情報でそれぞれの擬似スライスを構成するマクロブロック全体に渡る平均量子化スケール及び発生符号量(ビット数)を抽出する。MPEG2画像情報復号化部(I/Pピクチャ)は、ピクチャタイプ判別部の出力となる、I/Pピクチャに関する圧縮情報(ビットストリーム)を、水平方向垂直方向ともに、8次の離散コサイン係数全てを用いた、若しくはその低域成分のみを用いた復号処理を行う。間引き部は、MPEG2画像情報復号化部(I/Pピクチャ)の出力である画像情報の第一フィールド若しくは第二フイールドのみを取り出して順次走査画像への変換を行うと同時に、所望の画枠サイズに変換するためのダウンサンプリングを行う。MPEG4画像情報符号化部(I/P−VOP)は、間引き部の出力となる画像情報をMPEG4符号化方式により符号化する。動きベクトル合成部は、MPEG2画像情報復号化部(I/Pピクチャ)で検出された、入力となる画像圧縮情報(ビットストリーム)内の動きベクトル値を元に、走査変換後の画像データに対する動きベクトル値にマッピングを行う。動きベクトル検出部は、動きベクトル合成部から出力される動きベクトル値を元に、高精度の動きベクトル検出を行う。情報バッファは、圧縮情報解析部において抽出された、入力となるMPEG2画像圧縮情報(ビットストリーム)における各フレームに割り当てられた符号量(ビット数)及び各フレームに対する平均量子化スケール、並びに、各フレームにおいて、後段のMPEG4画像圧縮情報でそれぞれの擬似スライスを構成するマクロブロック全体に渡る平均量子化スケール及び発生符号量(ビット数)を格納する。VOPコンプレキシテイ算出部は、情報バッファに格納された、入力となるMPEG2画像圧縮情報(ビットストリーム)における、各フレームに割り当てられた符号量(ビット数)、及び各フレームに対する平均量子化スケールから、出力となるMPEG4画像圧縮情報(ビットストリーム)における各VOPに対するコンプレキシティの推定値を算出する。擬似スライスコンプレキシティ算出部においては、情報バッファに格納された、入力となるMPEG2画像圧縮情報(ビットストリーム)における、各擬似スライスに割り当てられた符号量(ビット数)、及び各擬似スライスに対する平均量子化スケールから、出力となるMPEG4画像圧縮情報(ビットストリーム)における各擬似スライスに対するコンプレキシティの推定値を算出する。VOP目標符号量算出部は、VOPコンプレキシティ算出部において算出された、各VOPに対するコンプレキシティに基づいて、各VOPに対する目標符号量(ターゲットビット)の算出を行い、擬似スライス目標符号量算出部においては、VOP目標符号量算出部において算出された各VOPに対する目標符号量(ターゲットビット)、及び擬似スライスコンプレキシティ算出部において算出された、各擬似スライスに対するコンプレキシティから、各擬似スライスに対する目標符号量(ターゲットビット)を算出し、その情報をMPEG4画像情報符号化装置(I/P−VOP)に伝送する。
【0101】
なお、ピクチャタイプ判別部を持たず、フレームレートの変換を行わない装置構成も可能である。また、VOP目標符号量算出部において、入力となるMPEG2画像圧縮情報(ビットストリーム)における各フレームに対するコンプレキシティを用いず、MPEG2 Test Model 5に定められているのと同様の方式により各VOPに対する目標符号量を算出する装置構成も考えられる。
【0102】
【発明の実施の形態】
以下、図面を参照し、本発明の実施例について説明する。
【0103】
まず、本発明を適用した第1の実施の形態の画像情報変換装置について、図1を参照して説明する。
【0104】
この画像情報処理装置は、ピクチャタイプ判別部16と、圧縮情報解析部17と、MPEG2画像情報復号化部(I/Pピクチャ)18と、間引き部19と、MPEG4画像情報符号化部(I/P−VOP)20と、動きベクトル合成部21と、動きベクトル検出部22と、情報バッファ23と、VOPコンプレキシティ算出部24と、擬似スライスコンプレキシティ算出部25と、VOP目標符号量算出部26と、擬似スライス目標符号量算出部27とから構成される。
【0105】
この画像情報変換装置には、フレーム内で符号化されたイントラ符号化画像(Iピクチャ;I)、表示順序で順方向を参照して予測符号化された順方向予測符号化画像(Pピクチャ;P)及び表示順序で順方向及び逆方向を参照して予測符号化された双方向予測符号化画像(Bピクチャ;B)から構成される飛び越し走査のMPEG2画像圧縮情報(ビットストリーム)が入力される。
【0106】
このMPEG2画像圧縮情報(ビットストリーム)は、ピクチャタイプ判別部16において、I/Pピクチャに関するものか、Bピクチャに関するものであるかを判別され、I/Pピクチャのみ後続の圧縮情報解析部17に出力され、Bピクチャは破棄される。
【0107】
圧縮情報解析部17において、MPEG2画像情報復号化装置(I/Pピクチャ)18における復号処理に用いられる量子化スケールのフレーム全体に渡る平均値Q、及び、入力となるMPEG2画像圧縮情報(ビットストリーム)において、当該フレームに割り当てられた総符号量(ビット数)Bは、情報バッファ23に格納される。
【0108】
MPEG2画像情報復号化部(I/Pピクチャ)18における処理は通常のMPEG2画像情報復号化装置と同様に、MPEG2画像圧縮情報(ビットストリーム)を画像信号に復号するものである。ここで、Bピクチャに関するデータはピクチャタイプ判別部16において廃棄されているので、MPEG2画像情報復号化部(I/Pピクチャ)18は、I/Pピクチャのみを復号化出来る機能を有すればよい。
【0109】
MPEG2画像情報復号化部(I/Pピクチャ)18の出力となる画素値は、間引き部19に入力される。間引き部19は、水平方向には1/2の間引き処理を施し、垂直方向には、第一フィールド若しくは第二フィールドのどちらか一方のデータのみを残し、もう一方を廃棄する。このような間引きによって、入力となる画像情報の1/4の大きさを持つ順次走査画像を生成する。
【0110】
ところで、間引き部19から出力された画像をMPEG4画像情報符号化部(I/P−VOP)20において16×16画素で構成されるマクロブロック単位で符号化するためには、水平方向、垂直方向ともに、その画素数が16の倍数である必要が有る。間引き部19においては、このための画素の補填若しくは廃棄を、間引きと同時に行う。
【0111】
例えば、入力となるMPEG2画像圧縮情報(ビットストリーム)がNTSC(National Television System Committee)の規格に準拠したもの、つまり720×480画素、30Hzの飛び越し走査画像であった場合、間引き後の画枠はSIF(360×240画素)サイズということになる。この画像に対して、間引き部19において、例えば水平方向の右端若しくは左端の8ラインを廃棄して352×240画素とする。
【0112】
なお、間引き部19における動作の変更を行うことで、これ以外の画枠、例えば上記の例で、約1/4×1/4の画枠であるQSIF(176×112画素)サイズの画像に変換することも可能である。
【0113】
更に、上述した文献1は、MPEG2画像情報復号化部(I/Pピクチャ)18における処理として、水平方向、垂直方向それぞれについて、入力となるMPEG2画像圧縮情報(ビットストリーム)内の、8次の離散コサイン変換係数すべてを用いた復号処理を行う画像情報変換装置について述べられているが、図1に示した装置に関してはその限りではなく、水平方向のみ、或いは水平方向、垂直方向ともに、8次の離散コサイン変換係数のうちの低域成分のみを用いた復号処理を行い、画質劣化を最小限に抑えながら、復号処理に伴う演算量とビデオメモリ容量を削減することが可能である。
【0114】
間引き部19によって生成された順次走査画像はMPEG4画像情報符号化部(I/P−VOP)20によってフレーム内で符号化されたI−VOP及び表示順序で順方向を参照して予測符号化されたP−VOPに符号化され、MPEG4画像圧縮情報(ビットストリーム)として出力される。
【0115】
尚、VOPはVideo object Planeを意味し、MPEG2におけるフレームに相当するものである。また、I−VOPはIピクチャに対応するイントラ符号化VOP、P−VOPはPピクチャに対応する順方向予測符号化VOP、B−VOPはBピクチャに対応する双方向予測符号化VOPである。
【0116】
MPEG4画像情報符号化部(I/P−VOP)20における符号化の際には、入力となるMPEG2画像圧縮情報(ビットストリーム)中の動きベクトル情報は、動きベクトル合成部21において間引き後の画像情報に対する動きベクトルにマッピングされ、動きベクトル検出部22においては、動きベクトル合成部21において合成された動きベクトル値を元に高精度の動きベクトルを検出する。
【0117】
ここで、本実施の形態の画像情報変換装置で用いられる、擬似スライスの概念について述べる。
【0118】
MPEG2画像圧縮情報(ビットストリーム)には、図2に示すようなスライス層が存在する。すなわち、スライス層では、画面内で図2のように横長の帯状の領域を示し、(図2のa,b,c…の領域)画面を複数のスライスで構成することにより、あるスライス層でエラーが発生しても、次のスライス層の開始(slice_start_code)からの同期でエラー回復が可能となる。スライス層は1個以上のマクロブロックから構成され、ラスタスキャンオーダで、左から右、上から下に並び、その長さや開始位置は自由で、画面毎に変更可能である。但し、並列処理や効果的なエラー耐性を目的として、一つのスライスは右方向にのみ伸び、下方にまで伸びることはない。
【0119】
MPEG4画像圧縮情報(ビットストリーム)においては、低ビットレートにおける符号化効率を考慮して、図2に示したようなスライス層は構文上定義されていないが、本実施の形態においては、MPEG4画像情報符号化部(I/P−VOP)20における符号化処理のため、図3に示すような擬似スライスを定義する。すなわち、例えば、図1に示した画像情報変換装置によって、入力となる、飛び越し走査のMPEG2画像圧縮情報(ビットストリーム)が、1/2×1/2の画枠を持つ順次走査のMPEG4画像圧縮情報(ビットストリーム)に変換される場合を考える。この時、図3のAにおける入力となるMPEG2画像圧縮情報(ビットストリーム)内の4つのマクロブロックMB0,MB1,MB2m,MB2m+1が、図3のBに示す出力となるMPEG4画像圧縮情報(ビットストリーム)においては1つのマクロブロックMb0に対応することになる。この時、図3のAにおいてマクロブロックMB0,MB1,…MB4m-1から構成される領域aに対応して、図3のBに示す出力となるMPEG4画像圧縮情報(ビットストリーム)における、マクロブロックMb0,Mb1,…,Mbm-1から構成されるマクロブロック群aを擬似スライス0と定義する。疑似スライス1以降に関しても同様である。
【0120】
圧縮情報解析部17においては、入力となるMPEG2画像圧縮情報(ビットストリーム)内の、各フレームに対する割当符号量(ビット数)Bk、及び各フレームにおける平均量子化スケールQkに関する情報を抽出し、情報バッファ23に格納する。同時に、各フレームにおいて、出力となるMPEG4画像圧縮情報(ビットストリーム)において擬似スライス1を構成するマクロブロック群に対する割当符号量(ビット数)Bpseudo_slice1,及び平均量子化スケールQpseudo_slice1を情報バッファ23に格納する。図3のAにおいて、nを整数として、入力となる画像圧縮情報(ビットストリーム)内のあるマクロブロックMBnに対する発生符号量及び量子化スケールをそれぞれBMBn,QMBnとすれば、擬似スライス0に対して、次の式(26)が成り立つ。
【0121】
【数29】
Figure 0004517468
【0122】
擬似スライス1以降に関しても同様である。但し、mが奇数の場合、例えば入力となる飛び越し走査のMPEG2画像圧縮情報(ビットストリーム)の画枠が720×480画素であった場合、その1/2×1/2は360×240画素ということになるが、後続のMPEG4画像情報符号化装置(I/P−VOP)20においてマクロブロック単位の処理を行うためには、間引き部19において、例えば画枠に対する右4画素を破棄して、352×240画素とする必要がある。この場合には、式(26)に示した値をとしてBpseudo_slice0,Qpseudo_slice0として用いても良いし、次の式(27)のようにしても良い。
【0123】
【数30】
Figure 0004517468
【0124】
VOPコンプレキシティ算出部24においては、情報バッファ23に格納された、入力となるMPEG2画像圧縮情報(ビットストリーム)内の、各フレームに対する割当符号量(ビット数)Bk及び各フレームにおける平均量子化スケールQkに関する情報から、各VOPに対するコンプレキシティの推測値Xkを次の式(28)のように1GOV分算出する。
【0125】
【数31】
Figure 0004517468
【0126】
VOP目標符号量算出部26においては、VOPコンプレキシテイ算出部24を用いて、式(25)により、各VOPに対する目標符号量(ターゲットビット)を算出する。以下では、式(25)によつて求められる各VOPに対する目標符号量(式ではR1)をTvopと表す。
【0127】
擬似スライスコンプレキシティ算出部25においては、情報バッファ23に格納された、出力となるMPEG4画像圧縮情報(ビットストリーム)において擬似スライス1を構成するマクロブロック群に対する割当符号量(ビット数)Bpseudo_slice1及び平均量子化スケールQpseudo_slice1に関する情報から、各擬似スライスに対するコンプレキシティXpseudo_slice1を、次の式(29)のように算出する。
【0128】
【数32】
Figure 0004517468
【0129】
今、当該VOPが、擬似スライス0,擬似スライス1,…擬似スライスN−1から構成されているとすれば、疑似スライス目標量算出部27においては、疑似スライス1に対する目標符号量Tpseudo_slice1が、次の式(30)のように算出され、MPEG4画像情報符号化部(I/P−VOP)20に伝送される。
【0130】
【数33】
Figure 0004517468
【0131】
I−VOP,P−VOP,B−VOPに対するTpseudo_slice1をそれぞれTi_pseudo_slice1,Tp_pseudo_slice1,Tb_pseudo_slice1とすれば、MPEG4画像情報符号化部(I/P−VOP)20において、仮想バッファ(dj i,dj p,dj b)の占有量を、式(27)に対応して、次の式(31)のように算出する。
【0132】
【数34】
Figure 0004517468
【0133】
ここで、d0 i,d0 p,d0 bは、擬似スライス先頭における各仮想バッファの占有量であり、Bpseudo_slice_jは、擬似スライス先頭からj番目のマクロブロックでの発生符号量である。P_SLICE_CNTは1擬似スライスに含まれるマクロブロックの個数で、各擬似スライス符号化終了時における仮想バッファの占有量(dP_SLICE_CNT i,dP_SLICE_CNT p,dP_SLICE_CNT ib)は、次の擬似スライスに対する仮想バッファの占有量の初期値(d0 i,d0 p,d0 b)として用いられる。
【0134】
以上のようなMPEG4画像情報符号化部(I/P−VOP)20における一連の符号量制御の動作原理について、図4を参照して説明する。
【0135】
最初のステップS31において、圧縮情報解析部17は、ピクチャタイプ判別部16を介して入力されたMPEG2画像圧縮情報(ビットストリーム)の構文を解析し、各フレームに対する割当符号量(ビット数)Bk、及び各フレームにおける平均量子化スケールQkに関する情報を抽出し、情報バッファ23に格納する。同時に、各フレームにおいて、出力となるMPEG4画像圧縮情報(ビットストリーム)において疑似スライス1を構成するマクロブロック群に対する割当符号量(ビット数)Bpseudo_slice1、及び平均量子化スケールQpseudo_slice1を情報バッファ23に格納する。
【0136】
ステップS32において、VOPコンプレキシティ算出部24は、情報バッファ23に格納された、入力となるMPEG2画像圧縮情報(ビットストリーム)内の、各フレームに対する割当符号量(ビット数)Bk、及び各フレームにおける平均量子化スケールQkに関する情報から、各VOPに対するコンプレキシティの推測値Xkを1GOV分算出する。
【0137】
ステップS33において、VOP目標符号量算出部26は、各VOPに対する目標符号量(ターゲットビット)を算出する。
【0138】
ステップS34において、疑似スライスコンプレキシティ算出部25は、情報バッファ23に格納された、出力となるMPEG4画像圧縮情報(ビットストリーム)において疑似スライス1を構成するマクロブロック群に対する割当符号量(ビット数)Bpseudo_slice1、及び平均量子化スケールQpseudo_slice1に関する情報から、各疑似スライスに対するコンプレキシティXpseudo_slice1を算出する。
【0139】
ステップS35において、疑似スライス目標符号量算出部27は、各疑似スライスに対応する目標符号量(ターゲットビット)を算出し、MPEG4画像情報符号化部(I/P−VOP)20に伝送する。
【0140】
ステップS36において、MPEG4画像情報符号化部(I/P−VOP)20は、仮想バッファを用いたレート制御を行う。ステップS37において、MPEG4画像情報符号化部(I/P−VOP)20は、視角特性を考慮したマクロブロックごとの適応量子化を行う。
【0141】
次に、本発明を適用した第2の実施の形態の画像情報変換装置について、図5を参照して説明する。
【0142】
この画像情報装置は、ピクチャタイプ判別部28と、圧縮情報解析部29と、MPEG2画像情報復号化部(I/Pピクチャ)30と、間引き部31と、MPEG4画像情報符号化部(I/P−VOP)32と、動きベクトル合成部33と、動きベクトル検出部34と、情報バッファ35と、擬似スライスコンプレキシティ算出部36と、VOP目標符号量算出部37と、擬似スライス目標符号量算出部38とから構成される。
【0143】
図1に示した画像情報変換装置と図5に示した画像情報変換装置における相違点は、図1に示した画像情報変換装置においては、MPEG4画像情報符号化部(I/P−VOP)20における、各VOPに対する目標符号量(ターゲットビット)を式(25)により算出するのに対し、図5に示した画像情報変換装置においては、MPEG4画像情報符号化部(I/P−VOP)32における、各VOPに対する目標符号量(ターゲットビット)を式(4)により算出する点にある。すなわち、図5に示した画像情報変換装置においては、圧縮情報解析部29において、入力となるMPEG2画像圧縮情報(ビットストリーム)におけるGOP構造を抽出してこれを情報バッファ35に格納し、これより、VOP目標符号量算出部37においては、出力となるMPEG4画像圧縮情報(ビットストリーム)におけるGOV構造を決定し、式(4)に基づいて各VOPに対する目標符号量(ターゲットビット)の算出を行う。
【0144】
以上、入力としてMPEG2画像圧縮情報(ビットストリーム)を、出力としてMPEG4画像圧縮情報(ビットストリーム)を対象としてきたが、入力、出力ともこれに限らず、例えばMPEG−1やH.263などの画像圧縮情報(ビツトストリーム)でも良い。
【0145】
【発明の効果】
以上述べてきた様に、本発明は、飛び越し走査のMPEG2画像圧縮情報(ビットストリーム)を入力とし、入力となるMPEG2画像圧縮情報(ビットストリーム)における、各スライスに対するコンプレキシティ情報を用いて、MPEG4画像符号化の際に擬似スライス単位の目標符号量(ターゲットビット)を与えることで、符号量制御におけるコンプレキシティを算出するステップに伴う参照量子化スケールの変動を最小限に抑え、各マクロブロックに対する符号量割当が画像に対して最適化された状態で順次走査のMPEG4画像圧縮情報(ビツトストリーム)に変換して出力する手段を提供するものである。
【図面の簡単な説明】
【図1】第1の実施の形態の画像情報変換装置の構成を示すブロック図である。
【図2】MPEG2画像圧縮情報(ビットストリーム)におけるスライス層の概念を説明する図である。
【図3】MPEG4画像圧縮情報(ビットストリーム)における疑似スライスの概念を示す図である。
【図4】コンプレキシティを用いて符号量制御を行う動作フローを示す図である。
【図5】第2の実施の形態の画像情報変換装置の構成を示すブロック図である。
【図6】従来の画像情報変換装置の構成を示すブロック図である。
【図7】MPEG2 Test Mode1 5(ISO/IEC JTC1/SC29/WG11 N0400)で述べられている符号量制御方式の動作原理を示すフローチャートである。
【図8】本願出願人が提案した画像情報変換装置の構成を示す図である。
【図9】図8の画像情報変換装置における符号量制御の動作を示すフローチャートである。
【図10】CCIRテストシーケンスの一つである“Flower Garden”を、n=15;m=3の条件の元、4Mbpsに圧縮したMPEG2画像圧縮情報(ビットストリーム)を、図8に示した画像情報変換装置を用いて、n=5;m=1のMPEG4画像圧縮情報(ビットストリーム)に変換する際の、あるVOPに対するQjがどのような値を取るかを示した図である。
【符号の説明】
16 ピクチャタイプ判別部、17 圧縮情報解析部、18 MPEG2画像情報復号化部(I/Pピクチャ)、19 間引き部、20 MPEG4画像情報符号化部(I/P−VOP)、21 動きベクトル合成部、22 動きベクトル検出部、23 情報バッファ、24 VOPコンプレキシテイ算出部、25 擬似スライスコンプレキシティ算出部、26 VOP目標符号量算出部、27 擬似スライス目標符号量算出部[0001]
BACKGROUND OF THE INVENTION
  The present invention relates to an image information conversion apparatus and method for converting image information.And encoding apparatus and methodSpecifically, when receiving image information (bitstream) such as MPEG compressed by orthogonal transform such as discrete cosine transform and motion compensation via network media such as satellite broadcasting, cable TV, the Internet, or optical Image information conversion apparatus and method for converting image information used when processing on a storage medium such as a magnetic diskAnd encoding apparatus and methodAbout.
[0002]
[Prior art]
In recent years, image information such as MPEG that handles image information as digital, compresses by orthogonal transform such as discrete cosine transform and motion compensation, utilizing the unique redundancy of image information for the purpose of efficient transmission and storage of information. A compression scheme is provided. And an apparatus conforming to such an image information compression method is becoming widespread in both information distribution such as broadcasting stations and information reception in general households.
[0003]
In particular, MPEG2 (ISO / IEC 13818-2) is defined as a general-purpose image encoding method that covers both interlaced scanning images and progressive scanning images, as well as standard resolution images and high-definition images.
[0004]
That is, according to the MPEG2 coding compression method, for example, a code amount (bit rate) of 4 to 8 Mbps is assigned to a standard resolution interlaced scan image having 720 × 480 pixels, and a high resolution interlace scan having 1920 × 1088 pixels is assigned. By assigning a code amount (bit rate) of 18 to 22 Mbps to an image, a high compression rate and good image quality can be realized.
[0005]
For this reason, MPEG2 is expected to be used in a wide range of applications for professional use and consumer use.
However, MPEG2 is mainly intended for high-quality encoding suitable for broadcasting, and for example, does not support encoding methods with a lower code amount (bit rate) than MPEG1, that is, a higher compression rate.
[0006]
On the other hand, with the spread of mobile terminals in recent years, it seems that the need for an encoding method with a high compression rate will continue to increase, and in response to this, standardization of an MPEG4 encoding method with a high compression rate is being carried out. . Regarding this image encoding system, an international standard was approved as ISO / IEC 14496-2 in December 1998.
[0007]
By the way, MPEG2 image compression information (bit stream) once encoded for digital broadcasting is converted into image compression information (bit stream) having a lower code amount (bit rate) that is more suitable for processing on a portable terminal or the like. There is a need to convert.
[0008]
To achieve this purpose, image information conversion in “Field-to-Frame Transcoding with Spatial and Temporal Downsampling” (Susie L Wee, John G. Apostolopoulos, and Nick Feamster, ICIP 99, hereinafter referred to as Reference 1) An apparatus (transcoder) is provided.
[0009]
As shown in FIG. 6, the image information conversion apparatus (transcoder) provided in this document 1 includes a picture type determination unit 1, an MPEG2 image information decoding unit (I / P picture) 2, a thinning unit 3, and , An MPEG4 image information encoding unit (I / P-VOP) 4, a motion vector synthesis unit 5, and a motion vector detection unit 6.
[0010]
This image information conversion apparatus includes an intra-encoded image (I picture; I) encoded within a frame, and a forward predictive encoded image (P picture; encoded with reference to the forward direction in the display order). P) and interlaced scanning MPEG2 image compression information (bitstream) composed of bi-predictive encoded images (B pictures; B) that are predictively encoded with reference to the forward and reverse directions in the display order are input. The
[0011]
This MPEG2 image compression information (bitstream) is determined by the picture type determination unit 1 as to whether it is related to an I / P picture or a B picture. Only the I / P picture is followed by an MPEG2 image information decoding unit. (I / P picture) 2 is output, and the B picture is discarded.
[0012]
The processing in the MPEG2 image information decoding unit (I / P picture) 2 is to decode MPEG2 image compression information (bitstream) into an image signal in the same manner as a normal MPEG2 image information decoding apparatus.
[0013]
The pixel value to be output from the MPEG2 image information decoding unit (I / P picture) 2 is input to the thinning unit 3. The thinning unit 3 performs a half thinning process in the horizontal direction, leaves only data in either the first field or the second field in the vertical direction, and discards the other. By such decimation, a sequentially scanned image having a size that is 1/4 of the input image information is generated.
[0014]
The progressive scan image generated by the thinning unit 3 is predictively encoded with reference to the forward direction in the I-VOP encoded in the frame and the display order by the MPEG4 image information encoding unit (I / P-VOP) 4. Encoded into P-VOP and output as MPEG4 image compression information (bitstream). VOP means Video object Plane and corresponds to a frame in MPEG2.
[0015]
At that time, the motion vector information in the input MPEG2 image compression information (bitstream) is mapped to the motion vector for the image information after the thinning by the motion vector synthesizing unit 5, and the motion vector detecting unit 6 A highly accurate motion vector is detected based on the motion vector value synthesized in the unit 5.
[0016]
Reference 1 describes an image information conversion apparatus that generates MPEG4 image compression information (bitstream) of a progressively scanned image having a size of 1/2 × 1/2 of MPEG2 image compression information (bitstream) as input. ing. That is, for example, if the input MPEG2 image compression information (bitstream) conforms to the NTSC (National Television System Committee) standard, the output MPEG4 image compression information is called SIF size (352 × 240 pixels). It will be.
[0017]
By the way, in the image information conversion apparatus shown in FIG. 6, the code amount control in the MPEG4 image information encoding unit (I / P-VOP) 4 determines the image quality in the MPEG4 image compression information (bitstream) to be output. It becomes a big factor. In ISO / IEC 14496-2, the code amount control method is not specified in particular, and each vendor can use a method that is considered optimal from the viewpoint of calculation amount and output image quality, depending on the application. . Hereinafter, as a typical code amount control method, a method described in MPEG2 Test Model 5 (ISO / IEC JTC1 / SC29 / WG11 N0400) will be described.
[0018]
The code amount control flow will be described with reference to the flow shown in FIG. In the first step S11, the image information encoding unit (I / P-VOP) 4 uses the target code amount (target bit rate) and GOP (group of pictures) configuration as input variables to allocate bits to each picture. I do. Here, GOP is a set of randomly accessible pictures.
[0019]
That is, in step S11, the image information encoding unit (I / P-VOP) 4 determines the allocation bit amount for each picture in the GOP for pictures that have not yet been decoded in the GOP including the allocation target picture. Allocation is performed based on the allocated bit amount (hereinafter referred to as R). This distribution is repeated in the order of the coded pictures in the GOP. At that time, code amount allocation to each picture is performed using the following two assumptions.
[0020]
First, it is assumed that the product of the average quantization scale code used when encoding each picture and the generated code amount is a constant value for each picture type unless the screen changes. Therefore, after encoding each picture, for each picture type, a variable X indicating the complexity of the screen.i, Xp, Xb(Global complelxity measure) is updated by the following equation (1).
[0021]
[Expression 4]
Figure 0004517468
[0022]
Where Si, Sp, SbIs the amount of generated code bits at the time of picture encoding, and Qi, Qp, QbIs an average quantization scale code at the time of picture encoding. The initial value is set to a value represented by Expression (2) using a target code amount (target bit rate) bit_rate [bits / sec].
[0023]
[Equation 5]
Figure 0004517468
[0024]
Second, the ratio K of the quantization scale code of the P and B pictures based on the quantization scale code of the I picturep, KbAssume that the overall image quality is always optimized when becomes the value defined in equation (3).
[0025]
[Formula 6]
Figure 0004517468
[0026]
That is, the quantization scale code for B pictures is always 1.4 times the quantization scale code for I and P pictures. This is because the B picture is encoded somewhat coarsely compared to the I and P pictures, and when the code amount that can be saved in the B picture is added to the I and P pictures, the image quality of the I and P pictures is improved. It is assumed that the image quality of the B picture that refers to this is also improved.
[0027]
Based on the above two assumptions, the allocated bit amount (Ti, Tp, Tb) Is a value shown in Equation (4).
[0028]
[Expression 7]
Figure 0004517468
[0029]
Where Np, NbIs the number of P and B pictures that have not yet been encoded in the GOP.
[0030]
Based on the allocated code amount obtained in this manner, the bit amount R allocated to the uncoded picture in the GOP is updated by Expression (5) every time each picture is encoded according to steps S11 and S12. To do.
[0031]
[Equation 8]
Figure 0004517468
[0032]
In addition, when the first picture of the GOP is encoded, R is updated by Expression (6).
[0033]
[Equation 9]
Figure 0004517468
[0034]
N is the number of pictures in the GOP. The initial value of R at the beginning of the sequence is 0.
[0035]
Next, in step S12, the image information encoding device (I / P-VOP) 4 performs rate control using a virtual buffer. That is, in step S12, the image information encoding device (I / P-VOP) 4 assigns the allocated bit amount (Ti, Tp, Tb) And the actual generated code amount, the quantization scale code is obtained by macroblock unit feedback control based on the capacities of three types of virtual buffers set independently for each picture.
[0036]
First, prior to encoding the j-th macroblock, the occupancy amount of the virtual buffer is obtained by Expression (7).
[0037]
[Expression 10]
Figure 0004517468
[0038]
Where d0 i, D0 p, D0 bIs the initial occupancy of each virtual buffer, BjIs the amount of generated bits from the beginning of the picture to the jth macroblock, and MB_cnt is the number of macroblocks in one picture. Virtual buffer occupancy at the end of each picture encoding (dMB_cnt i, DMB_cnt p, DMB_cnt b) Are the same picture type, and the initial virtual buffer occupancy for the next picture (d0 i, D0 p, D0 b).
[0039]
Next, the quantization scale code for the j-th macroblock is calculated according to equation (8).
[0040]
## EQU11 ##
Figure 0004517468
[0041]
Here, r is a variable that controls the response of the feedback loop, called a reaction parameter, and is given by equation (9).
[0042]
[Expression 12]
Figure 0004517468
[0043]
The initial value of the virtual buffer at the start of encoding is given by equation (10).
[0044]
[Formula 13]
Figure 0004517468
[0045]
Finally, in step S13, the image information encoding device (I / P-VOP) 4 performs adaptive quantization for each macroblock in consideration of visual characteristics. That is, in step S13, the image information encoding unit (I / P-VOP) 4 finely quantizes the quantization scale code obtained in step S12 with a flat part that is visually noticeable, and the deterioration It is changed by a variable called activity for each macroblock so that it is roughly quantized in a complicated part of a relatively inconspicuous pattern.
[0046]
The activity uses the luminance signal pixel value of the original picture, and uses the pixel values of a total of 8 blocks of 4 blocks in the frame discrete cosine transform mode and 4 blocks in the field discrete cosine transform mode. Given in.
[0047]
[Expression 14]
Figure 0004517468
[0048]
Where PkIs the pixel value in the luminance signal block of the original image. The reason why the minimum value is taken in equation (11) is to make the quantization fine when only a part of the macroblock has a flat part.
[0049]
Furthermore, the normalized activity Nact whose value is in the range of 0.5 to 2 according to equation (12)jAsk for.
[0050]
[Expression 15]
Figure 0004517468
[0051]
Here, avg_act is the act in the picture encoded immediately beforejIs the average value.
[0052]
Quantization scale code mquant considering visual characteristicsjIs the quantization scale code Q obtained in step S12.jIs given by formula (13).
[0053]
[Expression 16]
Figure 0004517468
[0054]
It is known that the code amount control method defined in the MPEG2 Test Model 5 has the following restrictions. When actual control is performed, measures against these restrictions are required. That is, the first limitation is that the first step S11 cannot cope with the scene change, and the parameter avg_act used in the third step S13 becomes an incorrect value after the scene change. The second limitation is that there is no guarantee that satisfies the constraint conditions of VBV (Video Buffer Verifier) defined in MPEG2 and MPEG4.
[0055]
By the way, it is also described in the document "Theoretical analysis of MPEG compression efficiency and its application to code amount control" (Science Technical Report, IE-95, DSP 95-10, May 1995, hereinafter referred to as Document 2). As described above, the code amount control method defined in Test Model 5 does not necessarily provide a good image quality in the MPEG-2 image encoding device.
[0056]
This reference 2 proposes the following method as a method for giving an optimal code amount distribution for each frame in a GOP, in particular, in order to give good image quality. That is, NI, NP, NBIs the number of I, P and B pictures that have not yet been encoded in the GOP, and the code amount assigned to them is RI, RP, RBAnd Further, under the fixed rate condition given by Equation (14), the quantization step size in each is expressed as QI, QP, QBAnd m is the order relating the quantization step size and the reproduction error variance (that is, assuming that minimizing the average value of the quantization step size raised to the mth power minimizes the reproduction error variance). Then, consider minimizing equation (15).
[0057]
[Expression 17]
Figure 0004517468
[0058]
[Expression 18]
Figure 0004517468
[0059]
The average quantization scale Q and the code amount R in each frame are related to the complexity X of each frame, which is a medium variable also used in Test Model 5, as shown in Expression (16).
[0060]
[Equation 19]
Figure 0004517468
[0061]
R which minimizes the expression (15) under the constraint condition of the expression (14) while considering the relationship of the expression (16)I, RP, RBIs calculated using the Lagrange's undetermined multiplier method, the optimal RI, RP, RBAs such, a value like the following formula is obtained.
[0062]
[Expression 20]
Figure 0004517468
[0063]
With α = 1, it can be said that the relationship between the equation (17) and the equation (4) in the code amount control method defined in the MPEG2 Test Model 5 is as follows. That is, Equation (17) is a parameter for controlling the amount of code, Kp, KbFor each frame complexity XI, XP, XBAccordingly, the calculation is adaptively performed as shown in Expression (18).
[0064]
[Expression 21]
Figure 0004517468
[0065]
Document 2 shows that a good image quality can be obtained by setting the value of 1 / (1 + m) to about 0.6 to 1.2.
[0066]
In the image information conversion apparatus shown in FIG. 6, the MPEG4 image information encoding apparatus (I / P-VOP) 4 performs code amount control using a method similar to that defined in the MPEG2 Test Model 5. In this case, since it is impossible to cope with the complexity change in the GOP due to a scene change or the like, stable code amount control becomes difficult, and image quality deterioration may be caused. Information in the input MPEG2 image compression information (bitstream) extracted in the MPEG2 image information decoding unit (I / P picture) 2 is used in the MPEG4 image compression information encoding unit (I / P-VOP) 4. It is expected that this problem can be avoided.
[0067]
In order to solve such a problem, the applicant of the present application has previously proposed an image information conversion apparatus as shown in FIG.
[0068]
This image information conversion apparatus includes a picture type determination unit 7, a compression information analysis unit 8, an MPEG2 image information decoding unit (I / P picture) 9, a thinning unit 10, and an MPEG4 image information encoding unit (I / P). P-VOP) 11, a motion vector synthesis unit 12, a motion vector detection unit 13, an information buffer 14, and a complexity calculation unit 15.
[0069]
This image information conversion apparatus has an operation principle other than the code amount control in the compression information analysis unit 8, the information buffer 14, the complexity calculation unit 15, and the MPEG4 image information encoding unit (I / P-VOP) 11. 6 is the same as the image information conversion apparatus shown in FIG. 6, and the operation principle in the compression information analysis unit 8, the information buffer 14, and the complexity calculation unit 15 and the MPEG4 image information encoding unit (I / P-VOP) are described below. 11 will be described.
[0070]
In the compression information analysis unit 8, in the average value Q over the entire quantization scale frame used in the decoding process, and the MPEG2 image compression information (bit stream) to be input, the total code amount ( The number of bits (B) is stored in the information buffer 14.
[0071]
The complexity calculation unit 15 calculates the complexity X for the frame from the information Q and B for each frame stored in the information buffer 14 using Equation (19).
[0072]
[Expression 22]
Figure 0004517468
[0073]
The complexity X for the frame calculated by equation (19) is buffered by 1 GOV (group of VOPs), and then the MPEG4 image information encoding unit (I / P-VOP) 11 performs code amount control. Is transmitted as a parameter for For this reason, a delay of 1 GOV is required. This delay is realized using a delay buffer (not shown). Here, GOV is a set of randomly accessible VOPs.
[0074]
Hereinafter, how the complexity X calculated for each frame in the GOV calculated in Expression (19) is used in the MPEG4 image information encoding unit (I / P-VOP) 11 will be described. In the following, the case where the picture type determination unit 7 does not exist in the image information conversion apparatus and the frame rate is not converted will be considered.
[0075]
K obtained by equation (18)P, KBMeans the ideal average quantization scale Q for I-VOPi_idealIdeal average quantization scale Q for P-VOP / B-VOPp_ideal, Qb_idealIs given by equation (20).
[0076]
[Expression 23]
Figure 0004517468
[0077]
In MPEG2 Test Model 5, K is adaptively expressed as Equation (18).p, KbIs not calculated, and a fixed value as shown in Expression (3) is used.
[0078]
From the equations (18) and (20), the complexity for a certain VOP1 and a certain VOP2 is expressed as X1, X2And the ideal quantization scale is Q1_ideal, Q2_idealThen, the equation (21) is obtained.
[0079]
[Expression 24]
Figure 0004517468
[0080]
Alternatively, when it is desired to use the fixed value shown in the equation (3) as in MPEG2 Test Model 5, the equation (22) may be used instead of the equation (21).
[0081]
[Expression 25]
Figure 0004517468
[0082]
Now, let R be the total code amount (number of bits) allocated to unencoded VOPs in the GOV, and R is R for each VOP.1, R2, ... RnIt is assumed that the image quality for the GOV is optimized. Where R and R1, R2, ... RnA relational expression such as Expression (23) is established between.
[0083]
[Equation 26]
Figure 0004517468
[0084]
A VOPkMean quantization scale Q fork, Assigned code amount Rk, Complexity XkNote that there is a relationship of formula (24) between the two, and if formula (23) is modified, formula (25) is obtained.
[0085]
[Expression 27]
Figure 0004517468
[0086]
[Expression 28]
Figure 0004517468
[0087]
In formula (25), K (X1, X2), The value shown in Equation (21) or the value shown in Equation (22) may be used, but the former realizes more optimal code amount distribution according to the image. Is possible. At that time, by setting the value of 1 / (1 + m) to 1.0, it is not necessary to perform exponential calculation, and high-speed execution is possible. Even when the value of 1 / (1 + m) is set to a value other than 1.0, high-speed execution is possible by having a table in advance and performing exponential operation with reference to this table.
[0088]
Complexity X for each VOP in equation (25)kIs based on MPEG4 image coding, but if the complexity for each frame by MPEG2 image coding and the complexity for each frame by MPEG4 image coding are assumed to be equal, they are stored in the complexity calculation unit 15. XkBy using, it is possible to calculate the target code amount for the VOP by the equation (25).
[0089]
FIG. 9 shows a flow for calculating the target code amount. In the first step S21, the compression information analysis unit 8 extracts the average quantization scale Q and the allocated code amount (number of bits) B for each frame in the GOP used for the decoding process in the MPEG2 image information decoding unit 9. .
[0090]
In step S <b> 22, the complexity calculation unit 15 calculates the complexity X given by the product of the average quantization scale Q and the assigned code amount (number of bits) B.
[0091]
In step S23, the MPEG4 image encoding unit (I / P-VOP) 11 calculates a target code amount (target bit) corresponding to the complexity X.
[0092]
In MPEG2 Test Model 5, complexity X for I, P, B pictures in GOPi, Xp, XbHowever, this assumption does not hold when scene changes are included in the GOP, or when the background changes significantly in the GOP, which hinders stable code amount control. It becomes a factor of deterioration. In the image information conversion apparatus shown in FIG. 8, even in such a case, since the code amount control based on the complexity for each frame in the input MPEG2 image compression information (bit stream) is performed, the image quality deterioration is caused. It is possible to perform stable code amount control without causing any problems.
[0093]
[Problems to be solved by the invention]
By the way, in the code amount control method shown in FIG. 7, in order for the adaptive quantization in step S13 to work effectively, the quantization scale code for the j-th macroblock, that is, the Q in equation (8).JIt is desirable to take a uniform value over the entire frame. Therefore, MPEG2 image compression information (bitstream) obtained by compressing “Flower Garden”, which is one of CCIR (Comite Consultantif Internationale des Radio Communications) test sequences, into 4 Mbps under the condition of n = 15; m = 3, Q for a certain VOP when converting to MPEG4 image compression information (bitstream) of n = 5; m = 1 using the image information conversion apparatus shown in FIG.JFIG. 10 shows what value is taken.
[0094]
As mentioned earlier, ideally QJIs preferably uniform across the entire VOP, but in practice, the virtual buffer occupancy (d in equation (7))j i, Dj p, Dj b) Varies from macroblock to macroblock, and does not have a uniform value over the entire VOP.
[0095]
  The present invention has been proposed in view of the above-described circumstances, and an image information conversion apparatus and method for controlling a code amount by suppressing variation in Qj.And encoding apparatus and methodThe purpose is to provide.
[0096]
[Means for Solving the Problems]
  In order to solve the above-described problems, the present invention is directed to interlaced scanning input image compression information compressed by the first compression coding method, and progressive scanning output image compression compressed by the second compression coding method. The encoded image that constitutes the input image compression information and the output image compression information is composed of pixel blocks each composed of a plurality of pixels, and is encoded in the encoded image of the output image compression information. The input image compression information indicates the average quantization scale and the assigned code amount of the pixel block group in the encoded image of the input image compression information corresponding to the pixel block constituting the pseudo pixel block sequence composed of the pixel block group for one horizontal column. Analyzing means extracted from the information buffer, an information buffer for storing an average quantization scale and an assigned code amount detected by the analyzing means, and the pseudo pixel block. A target code amount calculating means for calculating a target code amount for a sequence; and an encoding means for encoding image information into the output image compression information using the target code amount calculated by the target code amount calculating means, The analysis means calculates the complexity for the pseudo pixel block sequence in the output image compression information and the encoded image using the average quantization scale and the allocated code amount stored in the information buffer,The target code amount calculation means includes:Using the target code amount for the encoded image constituting the output image compression information and the complexity for each pseudo pixel block sequence, for the pseudo pixel block sequence constituting the encoded image constituting the output image compression informationTarget code amountIs calculated.
  In addition, the encoding apparatus according to the present invention compresses image information obtained by decoding input image compression information of interlaced scanning compressed by the first compression encoding method using the second compression encoding method. In the encoding device that encodes the progressively scanned output image compression information, each of the input image compression information and the encoded image constituting the output image compression information is composed of a pixel block including a plurality of pixels, and the input image Pixel blocks in the encoded image of the input image compression information corresponding to the pixel blocks that constitute the pseudo pixel block sequence that is extracted from the compression information and that are composed of pixel block groups for one horizontal column in the encoded image of the output image compression information Receiving means for receiving the average quantization scale and assigned code amount of the group, and storing the average quantization scale and assigned code amount from the receiving means; Using the information buffer, the target code amount calculating means for calculating the target code amount for the pseudo pixel block sequence, and the target code amount calculated by the target code amount calculating means, the image information is encoded into the output image compression information. And encoding means for the output image compression information calculated using the average quantization scale and the assigned code amount stored in the information buffer and the pseudo pixel block sequence in the encoded image. Receive city,The target code amount calculation means includes:For the pseudo pixel block sequence constituting the encoded image constituting the output image compression information calculated using the target code amount for the encoded image constituting the output image compression information and the complexity for each pseudo pixel block sequenceCalculate the target code amount.
[0097]
In the present invention, MPEG2 image compression information (bitstream) for interlaced scanning is used as input image compression information, and MPEG4 image compression information (bitstream) for sequential operation is used as output image compression information. These MPEG2 image compression information (bit stream) and MPEG4 image compression information are composed of pixel blocks, that is, macroblocks composed of a plurality of pixels, and use pseudo pixel block sequences, that is, pseudo slices.
[0098]
In addition, MPEG2 image compression information (bit stream) and MPEG4 image compression information (bit stream) are composed of image groups, that is, GOP (group of pictures) and GOV (group of VOPs), respectively. The GOP and GOV that are image groups are each composed of a plurality of encoded images, that is, a picture and a VOP (video object plane).
[0099]
That is, the present invention receives interlaced scanning MPEG2 image information compression information (bitstream) as an input, a picture type discrimination unit, a compression information analysis unit, an MPEG2 image information decoding unit (I / P picture), a thinning unit, an MPEG4 image Information encoding unit (I / P-VOP), motion vector synthesis unit, motion vector detection unit, information buffer, VOP complexity calculation unit, pseudo slice complexity calculation unit, VOP target code amount calculation unit, pseudo slice target It also has a code amount calculation unit, and uses the complexity information for each slice in the input MPEG2 image compression information (bit stream) to calculate a target code amount (target bit) in units of pseudo slices when MPEG4 image is encoded. By changing the reference quantization scale in step 2 of the code amount control, Minimizing, with the code amount allocation for each macroblock is optimized for the image, and provides a means for outputting an MPEG4 image compression information progressive scan (bit stream).
[0100]
In the above configuration, the picture type determination unit leaves only the one relating to the I / P picture and discarding the one relating to the B picture in the input MPEG2 image compression information (bitstream). The compression information analysis unit realizes a delay of 1 GOP, and at the same time, the code amount (number of bits) allocated to each frame and the average quantization in each frame in the input MPEG2 image compression information (bit stream) In each frame, the average quantization scale and the generated code amount (number of bits) over the entire macroblocks constituting each pseudo slice are extracted from the scale and each MPEG4 image compression information in each frame. The MPEG2 image information decoding unit (I / P picture) outputs the compression information (bitstream) related to the I / P picture, which is the output of the picture type discrimination unit, all the 8th order discrete cosine coefficients in both the horizontal and vertical directions. The decoding process which used or used only the low-frequency component is performed. The decimation unit extracts only the first field or the second field of the image information that is the output of the MPEG2 image information decoding unit (I / P picture) and converts it into a sequentially scanned image, and at the same time, the desired image frame size Downsampling to convert to. The MPEG4 image information encoding unit (I / P-VOP) encodes the image information that is output from the thinning unit using the MPEG4 encoding method. The motion vector synthesizing unit performs motion on the image data after the scan conversion based on the motion vector value in the input image compression information (bit stream) detected by the MPEG2 image information decoding unit (I / P picture). Map to a vector value. The motion vector detection unit performs high-precision motion vector detection based on the motion vector value output from the motion vector synthesis unit. The information buffer includes a code amount (number of bits) allocated to each frame in the input MPEG2 image compression information (bit stream) extracted by the compression information analysis unit, an average quantization scale for each frame, and each frame. The MPEG4 image compression information in the subsequent stage stores the average quantization scale and the amount of generated codes (number of bits) over the entire macroblocks constituting each pseudo slice. The VOP complexity calculation unit calculates the amount of code (number of bits) assigned to each frame and the average quantization scale for each frame in the input MPEG2 image compression information (bit stream) stored in the information buffer. Then, an estimated value of complexity for each VOP in the MPEG4 image compression information (bit stream) to be output is calculated. In the pseudo slice complexity calculation unit, the code amount (number of bits) assigned to each pseudo slice and the average for each pseudo slice in the input MPEG2 image compression information (bit stream) stored in the information buffer. From the quantization scale, an estimate of complexity for each pseudo slice in the MPEG4 image compression information (bit stream) to be output is calculated. The VOP target code amount calculation unit calculates a target code amount (target bit) for each VOP based on the complexity for each VOP calculated by the VOP complexity calculation unit, and calculates a pseudo slice target code amount. In the unit, each pseudo slice is calculated from the target code amount (target bit) for each VOP calculated in the VOP target code amount calculation unit and the complexity for each pseudo slice calculated in the pseudo slice complexity calculation unit. A target code amount (target bit) is calculated and the information is transmitted to the MPEG4 image information encoding device (I / P-VOP).
[0101]
An apparatus configuration that does not have a picture type determination unit and that does not perform frame rate conversion is also possible. In addition, the VOP target code amount calculation unit does not use the complexity for each frame in the input MPEG2 image compression information (bitstream), and uses the same method as defined in MPEG2 Test Model 5 for each VOP. A device configuration for calculating the target code amount is also conceivable.
[0102]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
[0103]
First, an image information conversion apparatus according to a first embodiment to which the present invention is applied will be described with reference to FIG.
[0104]
This image information processing apparatus includes a picture type determination unit 16, a compression information analysis unit 17, an MPEG2 image information decoding unit (I / P picture) 18, a thinning unit 19, and an MPEG4 image information encoding unit (I / P). P-VOP) 20, motion vector synthesis unit 21, motion vector detection unit 22, information buffer 23, VOP complexity calculation unit 24, pseudo slice complexity calculation unit 25, and VOP target code amount calculation And a pseudo slice target code amount calculation unit 27.
[0105]
This image information conversion apparatus includes an intra-encoded image (I picture; I) encoded within a frame, and a forward predictive encoded image (P picture; encoded with reference to the forward direction in the display order). P) and interlaced scanning MPEG2 image compression information (bitstream) composed of bi-predictive encoded images (B pictures; B) that are predictively encoded with reference to the forward and reverse directions in the display order are input. The
[0106]
The MPEG2 image compression information (bitstream) is discriminated in the picture type discrimination unit 16 as to whether it relates to an I / P picture or B picture, and only the I / P picture is sent to the subsequent compression information analysis unit 17. The B picture is output and discarded.
[0107]
In the compression information analysis unit 17, the average value Q over the entire frame of the quantization scale used for the decoding process in the MPEG2 image information decoding device (I / P picture) 18, and the MPEG2 image compression information (bitstream) as input ), The total code amount (number of bits) B allocated to the frame is stored in the information buffer 23.
[0108]
The processing in the MPEG2 image information decoding unit (I / P picture) 18 is to decode MPEG2 image compression information (bitstream) into an image signal in the same manner as a normal MPEG2 image information decoding apparatus. Here, since the data relating to the B picture is discarded in the picture type determination unit 16, the MPEG2 image information decoding unit (I / P picture) 18 only needs to have a function capable of decoding only the I / P picture. .
[0109]
The pixel value that is output from the MPEG2 image information decoding unit (I / P picture) 18 is input to the thinning unit 19. The thinning unit 19 performs a half thinning process in the horizontal direction, leaves only the data of either the first field or the second field in the vertical direction, and discards the other. By such decimation, a sequentially scanned image having a size that is 1/4 of the input image information is generated.
[0110]
By the way, in order to encode the image output from the thinning unit 19 in units of macroblocks composed of 16 × 16 pixels in the MPEG4 image information encoding unit (I / P-VOP) 20, the horizontal direction and the vertical direction In both cases, the number of pixels needs to be a multiple of 16. The thinning unit 19 performs pixel compensation or discarding simultaneously with the thinning.
[0111]
For example, if the input MPEG2 image compression information (bitstream) conforms to the NTSC (National Television System Committee) standard, that is, a 720 × 480 pixel, 30 Hz interlaced scanned image, the image frame after thinning is This is the SIF (360 × 240 pixels) size. For this image, the thinning unit 19 discards, for example, 8 lines at the right end or left end in the horizontal direction to obtain 352 × 240 pixels.
[0112]
It should be noted that by changing the operation in the thinning-out unit 19, other image frames, for example, in the above example, an image of QSIF (176 × 112 pixels) size, which is an image frame of about 1/4 × 1/4, is obtained. It is also possible to convert.
[0113]
Furthermore, the above-mentioned document 1 describes the 8th order in the MPEG2 image compression information (bit stream) as input in the horizontal direction and the vertical direction as processing in the MPEG2 image information decoding unit (I / P picture) 18. An image information conversion apparatus that performs a decoding process using all the discrete cosine transform coefficients is described. However, the apparatus shown in FIG. 1 is not limited to this, and only the horizontal direction or the eighth order in both the horizontal direction and the vertical direction is described. It is possible to reduce the amount of calculation and the video memory capacity associated with the decoding process while performing the decoding process using only the low-frequency component of the discrete cosine transform coefficients and minimizing image quality degradation.
[0114]
The progressive scan image generated by the thinning-out unit 19 is predictively encoded with reference to the forward direction in the I-VOP encoded in the frame and the display order by the MPEG4 image information encoding unit (I / P-VOP) 20. Encoded into P-VOP and output as MPEG4 image compression information (bitstream).
[0115]
VOP means Video object Plane and corresponds to a frame in MPEG2. Further, I-VOP is an intra-coded VOP corresponding to an I picture, P-VOP is a forward predictive coded VOP corresponding to a P picture, and B-VOP is a bi-directional predictive coded VOP corresponding to a B picture.
[0116]
When encoding in the MPEG4 image information encoding unit (I / P-VOP) 20, the motion vector information in the input MPEG2 image compression information (bitstream) is converted into an image after decimation in the motion vector synthesis unit 21. The motion vector is mapped to the motion vector for the information, and the motion vector detection unit 22 detects a highly accurate motion vector based on the motion vector value synthesized by the motion vector synthesis unit 21.
[0117]
Here, the concept of the pseudo slice used in the image information conversion apparatus of the present embodiment will be described.
[0118]
The MPEG2 image compression information (bit stream) has a slice layer as shown in FIG. That is, in the slice layer, a horizontally long band-like region is shown in the screen as shown in FIG. 2, and the screen is composed of a plurality of slices (regions a, b, c... In FIG. 2). Even if an error occurs, it is possible to recover the error by synchronization from the start of the next slice layer (slice_start_code). The slice layer is composed of one or more macroblocks, arranged in a raster scan order from left to right, and from top to bottom. Its length and start position are arbitrary and can be changed for each screen. However, for the purpose of parallel processing and effective error tolerance, one slice extends only to the right and does not extend downward.
[0119]
In MPEG4 image compression information (bitstream), the slice layer as shown in FIG. 2 is not syntactically defined in consideration of encoding efficiency at a low bit rate, but in this embodiment, an MPEG4 image is not defined. For the encoding process in the information encoding unit (I / P-VOP) 20, a pseudo slice as shown in FIG. 3 is defined. That is, for example, the interlaced scanning MPEG2 image compression information (bit stream) input by the image information conversion apparatus shown in FIG. 1 is progressively scanned MPEG4 image compression having 1/2 × 1/2 image frames. Consider a case where information is converted into information (bitstream). At this time, four macroblocks MB in the MPEG2 image compression information (bitstream) to be input in A of FIG.0, MB1, MB2m, MB2m + 1Is one macroblock Mb in the MPEG4 image compression information (bitstream) that is the output shown in FIG.0It will correspond to. At this time, in FIG.B0, MB1, ... MB4m-1Corresponding to the area a composed of the macro block Mb in the MPEG4 image compression information (bit stream) that is the output shown in B of FIG.0, Mb1, ..., Mbm-1Is defined as pseudo slice 0. The same applies to pseudo slices 1 and later.
[0120]
In the compression information analysis unit 17, the allocated code amount (number of bits) B for each frame in the input MPEG2 image compression information (bit stream)k, And the average quantization scale Q in each framekThe information regarding is extracted and stored in the information buffer 23. At the same time, in each frame, the allocated code amount (number of bits) B for the macroblock group constituting the pseudo slice 1 in the output MPEG4 image compression information (bitstream)pseudo_slice1, And average quantization scale Qpseudo_slice1Is stored in the information buffer 23. 3A, n is an integer, and a certain macroblock MB in the input image compression information (bitstream)nThe generated code amount and quantization scale for BMBn, QMBnThen, the following equation (26) holds for pseudo slice 0.
[0121]
[Expression 29]
Figure 0004517468
[0122]
The same applies to pseudo slices 1 and later. However, when m is an odd number, for example, when the image frame of MPEG2 image compression information (bit stream) for interlaced scanning to be input is 720 × 480 pixels, 1/2 × 1/2 is 360 × 240 pixels. However, in order to perform macroblock unit processing in the subsequent MPEG4 image information encoding device (I / P-VOP) 20, the thinning unit 19 discards, for example, the right four pixels for the image frame, 352 × 240 pixels are required. In this case, let B be the value shown in equation (26).pseudo_slice0, Qpseudo_slice0It may be used as the following equation (27).
[0123]
[30]
Figure 0004517468
[0124]
In the VOP complexity calculation unit 24, an allocated code amount (number of bits) B for each frame in the input MPEG2 image compression information (bit stream) stored in the information buffer 23 is stored.kAnd the average quantization scale Q in each framekFrom the information about the complexity X for each VOPkIs calculated for 1 GOV as shown in the following equation (28).
[0125]
[31]
Figure 0004517468
[0126]
The VOP target code amount calculation unit 26 uses the VOP complexity calculation unit 24 to calculate a target code amount (target bit) for each VOP using Equation (25). In the following, the target code amount for each VOP obtained by equation (25) (R in the equation)1) TvopIt expresses.
[0127]
In the pseudo slice complexity calculation unit 25, the allocated code amount (number of bits) B for the macroblock group constituting the pseudo slice 1 in the output MPEG4 image compression information (bit stream) stored in the information buffer 23.pseudo_slice1And average quantization scale Qpseudo_slice1Complexity X for each pseudo slicepseudo_slice1Is calculated as in the following equation (29).
[0128]
[Expression 32]
Figure 0004517468
[0129]
Now, assuming that the VOP is composed of pseudo slice 0, pseudo slice 1,..., Pseudo slice N-1, the pseudo slice target amount calculation unit 27 uses the target code amount T for pseudo slice 1.pseudo_slice1Is calculated as in the following equation (30) and transmitted to the MPEG4 image information encoding unit (I / P-VOP) 20.
[0130]
[Expression 33]
Figure 0004517468
[0131]
T for I-VOP, P-VOP, B-VOPpseudo_slice1Ti_pseudo_slice1, Tp_pseudo_slice1, Tb_pseudo_slice1Then, in the MPEG4 image information encoding unit (I / P-VOP) 20, a virtual buffer (dj i, Dj p, Dj b) Is calculated according to the following equation (31) corresponding to the equation (27).
[0132]
[Expression 34]
Figure 0004517468
[0133]
Where d0 i, D0 p, D0 bIs the occupation amount of each virtual buffer at the head of the pseudo slice, and Bpseudo_slice_jIs a generated code amount in the j-th macroblock from the top of the pseudo slice. P_SLICE_CNT is the number of macroblocks included in one pseudo slice, and the virtual buffer occupancy at the end of each pseudo slice encoding (dP_SLICE_CNT i, DP_SLICE_CNT p, DP_SLICE_CNT ib) Is the initial value of the virtual buffer occupancy for the next pseudo slice (d0 i, D0 p, D0 b).
[0134]
The operation principle of a series of code amount control in the MPEG4 image information encoding unit (I / P-VOP) 20 will be described with reference to FIG.
[0135]
In the first step S31, the compression information analysis unit 17 analyzes the syntax of the MPEG2 image compression information (bit stream) input via the picture type determination unit 16, and allocates the code amount (number of bits) B for each frame.k, And the average quantization scale Q in each framekThe information regarding is extracted and stored in the information buffer 23. At the same time, in each frame, the allocated code amount (number of bits) B for the macroblock group constituting the pseudo slice 1 in the output MPEG4 image compression information (bitstream)pseudo_slice1, And average quantization scale Qpseudo_slice1Is stored in the information buffer 23.
[0136]
In step S <b> 32, the VOP complexity calculation unit 24 assigns an allocated code amount (number of bits) B for each frame in the input MPEG2 image compression information (bit stream) stored in the information buffer 23.k, And the average quantization scale Q in each framekFrom the information about the complexity X for each VOPkIs calculated for 1 GOV.
[0137]
In step S33, the VOP target code amount calculation unit 26 calculates a target code amount (target bit) for each VOP.
[0138]
In step S <b> 34, the pseudo slice complexity calculation unit 25 allocates an amount of code (number of bits) to the macroblock group constituting the pseudo slice 1 in the output MPEG4 image compression information (bit stream) stored in the information buffer 23. ) Bpseudo_slice1, And average quantization scale Qpseudo_slice1Complexity X for each pseudo slicepseudo_slice1Is calculated.
[0139]
In step S <b> 35, the pseudo slice target code amount calculation unit 27 calculates a target code amount (target bit) corresponding to each pseudo slice, and transmits the target code amount (target bit) to the MPEG4 image information encoding unit (I / P-VOP) 20.
[0140]
In step S36, the MPEG4 image information encoding unit (I / P-VOP) 20 performs rate control using a virtual buffer. In step S37, the MPEG4 image information encoding unit (I / P-VOP) 20 performs adaptive quantization for each macroblock in consideration of viewing angle characteristics.
[0141]
Next, an image information conversion apparatus according to a second embodiment to which the present invention is applied will be described with reference to FIG.
[0142]
This image information apparatus includes a picture type determination unit 28, a compression information analysis unit 29, an MPEG2 image information decoding unit (I / P picture) 30, a thinning unit 31, and an MPEG4 image information encoding unit (I / P). -VOP) 32, motion vector synthesis unit 33, motion vector detection unit 34, information buffer 35, pseudo slice complexity calculation unit 36, VOP target code amount calculation unit 37, and pseudo slice target code amount calculation Part 38.
[0143]
A difference between the image information conversion apparatus shown in FIG. 1 and the image information conversion apparatus shown in FIG. 5 is that the MPEG4 image information encoding unit (I / P-VOP) 20 is different in the image information conversion apparatus shown in FIG. In FIG. 5, the target code amount (target bit) for each VOP is calculated by the equation (25). In the image information conversion apparatus shown in FIG. 5, the MPEG4 image information encoding unit (I / P-VOP) 32 is used. In this case, the target code amount (target bit) for each VOP is calculated by equation (4). That is, in the image information conversion apparatus shown in FIG. 5, the compression information analysis unit 29 extracts the GOP structure in the input MPEG2 image compression information (bitstream) and stores it in the information buffer 35. The VOP target code amount calculation unit 37 determines the GOV structure in the MPEG4 image compression information (bit stream) to be output, and calculates the target code amount (target bit) for each VOP based on Expression (4). .
[0144]
As described above, MPEG2 image compression information (bit stream) is used as an input and MPEG4 image compression information (bit stream) is used as an output. However, input and output are not limited to this. It may be image compression information (bit stream) such as H.263.
[0145]
【The invention's effect】
As described above, the present invention uses MPEG2 image compression information (bitstream) for interlaced scanning as input, and uses the complexity information for each slice in the MPEG2 image compression information (bitstream) to be input, By providing a target code amount (target bit) in units of pseudo slices during MPEG4 image encoding, fluctuations in the reference quantization scale associated with the step of calculating complexity in code amount control are minimized, and each macro The present invention provides means for converting to MPEG4 image compression information (bit stream) for progressive scanning and outputting in a state where the code amount allocation for the block is optimized for the image.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image information conversion apparatus according to a first embodiment.
FIG. 2 is a diagram for explaining a concept of a slice layer in MPEG2 image compression information (bit stream).
FIG. 3 is a diagram showing a concept of a pseudo slice in MPEG4 image compression information (bit stream).
FIG. 4 is a diagram illustrating an operation flow for performing code amount control using complexity.
FIG. 5 is a block diagram illustrating a configuration of an image information conversion apparatus according to a second embodiment.
FIG. 6 is a block diagram illustrating a configuration of a conventional image information conversion apparatus.
FIG. 7 is a flowchart showing an operation principle of a code amount control method described in MPEG2 Test Mode 15 (ISO / IEC JTC1 / SC29 / WG11 N0400).
FIG. 8 is a diagram showing a configuration of an image information conversion apparatus proposed by the present applicant.
FIG. 9 is a flowchart showing an operation of code amount control in the image information conversion apparatus of FIG. 8;
FIG. 10 shows MPEG2 image compression information (bit stream) obtained by compressing “Flower Garden”, which is one of the CCIR test sequences, to 4 Mbps under the condition of n = 15; m = 3, and the image shown in FIG. Q for a certain VOP when converting to MPEG4 image compression information (bitstream) of n = 5; m = 1 using an information conversion devicejIt is the figure which showed what kind of value it takes.
[Explanation of symbols]
16 picture type determination unit, 17 compression information analysis unit, 18 MPEG2 image information decoding unit (I / P picture), 19 decimation unit, 20 MPEG4 image information encoding unit (I / P-VOP), 21 motion vector synthesis unit , 22 motion vector detection unit, 23 information buffer, 24 VOP complexity calculation unit, 25 pseudo slice complexity calculation unit, 26 VOP target code amount calculation unit, 27 pseudo slice target code amount calculation unit

Claims (11)

第1の圧縮符号化方式で圧縮された飛び越し走査の入力画像圧縮情報を、第2の圧縮符号化方式で圧縮された順次走査の出力画像圧縮情報に変換する画像情報変換装置において、
上記入力画像圧縮情報及び上記出力画像圧縮情報を構成する符号化画像は、それぞれ複数の画素からなる画素ブロックから構成され、
上記出力画像圧縮情報の符号化画像における水平方向一列分の画素ブロック群からなる疑似画素ブロック列を構成する画素ブロックに対応する上記入力画像圧縮情報の符号化画像における画素ブロック群の平均量子化スケール及び割当符号量を上記入力画像圧縮情報から抽出する解析手段と、
この解析手段で検出した平均量子化スケール及び割当符号量を格納する情報バッファと、
上記疑似画素ブロック列に対する目標符号量を算出する目標符号量算出手段と、
上記目標符号量算出手段で算出した目標符号量を用い、画像情報を上記出力画像圧縮情報に符号化する符号化手段とを有し、
上記解析手段は、上記情報バッファに格納した平均量子化スケール及び割当符号量を用いて、上記出力画像圧縮情報及び符号化画像における疑似画素ブロック列に対するコンプレキシティを算出し、
上記目標符号量算出手段は、上記出力画像圧縮情報を構成する符号化画像に対する目標符号量及び各疑似画素ブロック列に対するコンプレキシティを用いて、上記出力画像圧縮情報を構成する符号化画像を構成する疑似画素ブロック列に対する目標符号量を算出する
画像情報変換装置。
In an image information conversion apparatus for converting input image compression information of interlaced scanning compressed by a first compression encoding method into output image compression information of sequential scanning compressed by a second compression encoding method.
The encoded image constituting the input image compression information and the output image compression information is composed of pixel blocks each consisting of a plurality of pixels,
The average quantization scale of the pixel block group in the encoded image of the input image compression information corresponding to the pixel block constituting the pseudo pixel block sequence composed of the pixel block group for one horizontal column in the encoded image of the output image compression information And an analyzing means for extracting the allocated code amount from the input image compression information;
An information buffer for storing an average quantization scale and an assigned code amount detected by the analysis means;
Target code amount calculating means for calculating a target code amount for the pseudo pixel block sequence;
Encoding means for encoding image information into the output image compression information using the target code amount calculated by the target code amount calculation means;
The analysis means calculates the complexity for the pseudo pixel block sequence in the output image compression information and the encoded image using the average quantization scale and the allocated code amount stored in the information buffer,
The target code amount calculation means configures an encoded image constituting the output image compression information by using a target code amount for the encoded image constituting the output image compression information and a complexity for each pseudo pixel block sequence. An image information conversion apparatus for calculating a target code amount for a pseudo pixel block sequence to be performed.
上記解析手段は、上記情報バッファに格納した平均量子化スケール及び割当符号量を用いて、上記出力画像圧縮情報及び符号化画像におけるk番目の疑似画素ブロック列に対するコンプレキシティを次の式によって算出する請求項1記載の画像情報変換装置。
Figure 0004517468
ただし、k番目の疑似画素ブロック列に対する平均量子化スケールをQpseudo_slicekと、割当符号量をBpseudo_slicekと、コンプレキシティをXpseudo_slicekとする。
The analysis means uses the average quantization scale and the assigned code amount stored in the information buffer to calculate the complexity for the kth pseudo pixel block sequence in the output image compression information and the encoded image by the following equation: The image information conversion apparatus according to claim 1.
Figure 0004517468
However, it is assumed that the average quantization scale for the kth pseudo pixel block sequence is Q pseudo_slicek , the assigned code amount is B pseudo_slicek, and the complexity is X pseudo_slicek .
上記目標符号量算出手段は、上記出力画像圧縮情報を構成する符号化画像に対する目標符号量及び各疑似画素ブロック列に対するコンプレキシティを用いて、上記出力画像圧縮情報を構成する符号化画像を構成するk番目の疑似画素ブロック列に対する目標符号量を次の式によって算出する請求項2記載の画像情報変換装置。
Figure 0004517468
ただし、当該符号化画像に対する目標符号量をTvopと、l番目の疑似画素ブロック列に対するコンプレキシティをXpseudo_slicelと、目標符号量をTpseudo_slicekとする。
The target code amount calculation means configures an encoded image constituting the output image compression information by using a target code amount for the encoded image constituting the output image compression information and a complexity for each pseudo pixel block sequence. The image information conversion apparatus according to claim 2, wherein a target code amount for the k-th pseudo pixel block sequence to be calculated is calculated by the following equation.
Figure 0004517468
However, the target code amount for the encoded image is T vop , the complexity for the l-th pseudo pixel block sequence is X pseudo_slice, and the target code amount is T pseudo_slicek .
上記入力画像圧縮情報は、フレーム内で符号化されたイントラ符号化画像、表示順序で順方向を参照して符号化された順方向予測符号化画像、表示順序で順方向及び逆方向を参照して符号化された双方向予測符号化画像から構成され、
上記入力画像圧縮情報は複数の符号化画像からなる画像群から構成され、上記解析手段は、上記入力画像圧縮情報を構成する画像群の構造を解析し、上記入力画像圧縮情報を構成する各フレームに対するコンプレキシティを抽出し、上記目標符号量算出手段は、このコンプレキシティを利用して上記出力画像圧縮情報の符号化画像に対する目標符号量を算出する請求項3記載の画像情報変換装置。
The input image compression information refers to an intra-encoded image encoded within a frame, a forward-predicted encoded image that is encoded with reference to the forward direction in the display order, and refers to the forward and reverse directions in the display order. Is composed of bi-predictive encoded images encoded by
The input image compression information is composed of an image group consisting of a plurality of encoded images, and the analysis means analyzes the structure of the image group constituting the input image compression information, and each frame constituting the input image compression information extract the complexity for the above target code amount calculating means, the image information converting apparatus according to claim 3, wherein by utilizing the complexity for calculating a target code amount for the coded image of the output image compression information.
上記出力画像圧縮情報は、フレーム内で符号化されたイントラ符号化画像、表示順序で順方向を参照して符号化された順方向予測符号化画像、表示順序で順方向及び逆方向を参照して符号化された双方向予測符号化画像から構成され、上記変換手段は、各種類の符号化画像を構成するj番目の画素ブロックにおける仮想バッファの占有量をそれぞれ次の式によって与える請求項3記載の画像情報変換装置。
Figure 0004517468
ただし、イントラ符号化画像、順方向予測符号化画像、双方向予測符号化画像に対するl番目の目標符号量Tpseudo_slicelをそれぞれTi_pseudo_slicel,Tp_pseudo_slicel,Tb_pseudo_slicelと、j番目の画素ブロックに対する仮想バッファの占有量をd ,d ,d と、仮想バッファの占有量の初期値をd ,d ,d とする。また、疑似画素ブロック列の先頭からj番目のマクロブロックまでに発生した符号量(ビット数)をBpseudo_slicejと、疑似画素ブロック列を構成する画素ブロックの個数をP_SLICE_CNTとする。
The output image compression information refers to an intra-encoded image encoded within a frame, a forward-predicted encoded image that is encoded with reference to the forward direction in the display order, and refers to the forward and reverse directions in the display order. 4. The virtual predictor occupying amount of the virtual buffer in the j-th pixel block constituting each type of encoded image is given by the following equation: The image information conversion apparatus described.
Figure 0004517468
However, the l-th target code amount T pseudo_slicel for the intra coded image, the forward predictive coded image, and the bi-directional predictive coded image is Ti_pseudo_slicel, Tp_pseudo_slicel , and T b_pseudo_slicel , respectively , and the virtual buffer occupancy for the jth pixel block Let d j i , d j p , d j b be the amounts, and d 0 i , d 0 p , d 0 b be the initial values of the virtual buffer occupation amounts. In addition, the code amount (number of bits) generated from the beginning of the pseudo pixel block sequence to the j-th macro block is B pseudo_slicej, and the number of pixel blocks constituting the pseudo pixel block sequence is P_SLICE_CNT.
上記変換手段は、各疑似画素ブロック列の処理終了時における上記仮想バッファの占有量を、次の疑似画素ブロック列に対する上記仮想バッファの占有量の初期値とする請求項5記載の画像情報変換装置。  6. The image information conversion apparatus according to claim 5, wherein the conversion means uses the occupation amount of the virtual buffer at the end of the processing of each pseudo pixel block sequence as an initial value of the occupation amount of the virtual buffer for the next pseudo pixel block sequence. . 上記入力画像圧縮情報は、フレーム内で符号化されたイントラ符号化画像、表示順序で順方向を参照して符号化された順方向予測符号化画像、表示順序で順方向及び逆方向を参照して符号化された双方向予測符号化画像から構成され、上記イントラ符号化画像及び上記順方向予測符号化画像を通過させるが、上記双方向予測符号化画像を破棄する判別手段を有する請求項1記載の画像情報変換装置。  The input image compression information refers to an intra-encoded image encoded within a frame, a forward-predicted encoded image that is encoded with reference to the forward direction in the display order, and refers to the forward and reverse directions in the display order. And a determination unit configured to pass the intra-coded image and the forward-predicted encoded image, but discard the bi-directional predictive-coded image. The image information conversion apparatus described. 上記第1の圧縮符号化方式はMPEG2であり、上記第2の圧縮符号化方式はMPEG4である請求項1記載の画像情報変換装置。  2. The image information conversion apparatus according to claim 1, wherein the first compression encoding method is MPEG2, and the second compression encoding method is MPEG4. 第1の圧縮符号化方式で圧縮された飛び越し走査の入力画像圧縮情報を、第2の圧縮符号化方式で圧縮された順次走査の出力画像圧縮情報に変換する画像情報変換方法において、
上記入力画像圧縮情報及び上記出力画像圧縮情報を構成する符号化画像は、それぞれ複数の画素からなる画素ブロックから構成され、
上記出力画像圧縮情報の符号化画像における水平方向一列分の画素ブロック群からなる疑似画素ブロック列を構成する画素ブロックに対応する上記入力画像圧縮情報の符号化画像における画素ブロック群の平均量子化スケール及び割当符号量を上記入力画像圧縮情報から抽出する解析工程と、
この解析手段で検出した平均量子化スケール及び割当符号量を情報バッファに格納する工程と、
上記出力画像圧縮情報の符号化画像における画素ブロックからなる疑似画素ブロック列に対する目標符号量を算出する工程と、
上記目標符号量を用い、画像情報を上記出力画像圧縮情報に符号化する符号化工程とを有し、
上記解析工程では、上記情報バッファに格納した平均量子化スケール及び割当符号量を用いて、上記出力画像圧縮情報及び符号化画像における疑似画素ブロック列に対するコンプレキシティを算出し、
上記目標符号量算出工程では、上記出力画像圧縮情報を構成する符号化画像に対する目標符号量及び各疑似画素ブロック列に対するコンプレキシティを用いて、上記出力画像圧縮情報を構成する符号化画像を構成する疑似画素ブロック列に対する目標符号量を算出する
画像情報変換方法。
In an image information conversion method for converting input image compression information of interlaced scanning compressed by a first compression encoding method into output image compression information of sequential scanning compressed by a second compression encoding method,
The encoded image constituting the input image compression information and the output image compression information is composed of pixel blocks each consisting of a plurality of pixels,
The average quantization scale of the pixel block group in the encoded image of the input image compression information corresponding to the pixel block constituting the pseudo pixel block sequence composed of the pixel block group for one horizontal column in the encoded image of the output image compression information And an analysis step of extracting the allocated code amount from the input image compression information;
Storing an average quantization scale and an assigned code amount detected by the analyzing means in an information buffer;
Calculating a target code amount for a pseudo pixel block sequence composed of pixel blocks in the encoded image of the output image compression information;
Using the target code amount, and encoding the image information into the output image compression information,
In the analysis step, using the average quantization scale and the allocated code amount stored in the information buffer, the complexity for the pseudo pixel block sequence in the output image compression information and the encoded image is calculated,
In the target code amount calculation step, the encoded image constituting the output image compression information is configured using the target code amount for the encoded image constituting the output image compression information and the complexity for each pseudo-pixel block sequence. An image information conversion method for calculating a target code amount for a pseudo pixel block sequence.
第1の圧縮符号化方式で圧縮された飛び越し走査の入力画像圧縮情報を復号して得られる画像情報を、第2の圧縮符号化方式で圧縮された順次走査の出力画像圧縮情報に符号化する符号化装置において、
上記入力画像圧縮情報及び上記出力画像圧縮情報を構成する符号化画像は、それぞれ複数の画素からなる画素ブロックから構成され、
上記入力画像圧縮情報から抽出され、上記出力画像圧縮情報の符号化画像における水平方向一列分の画素ブロック群からなる疑似画素ブロック列を構成する画素ブロックに対応する上記入力画像圧縮情報の符号化画像における画素ブロック群の平均量子化スケール及び割当符号量を受け取る受取手段と、
この受取手段からの平均量子化スケール及び割当符号量を格納する情報バッファと、
上記疑似画素ブロック列に対する目標符号量を算出する目標符号量算出手段と、
上記目標符号量算出手段で算出した目標符号量を用い、画像情報を上記出力画像圧縮情報に符号化する符号化手段とを有し、
上記受取手段は、上記情報バッファに格納した平均量子化スケール及び割当符号量を用いて算出された上記出力画像圧縮情報及び符号化画像における疑似画素ブロック列に対するコンプレキシティを受け取り、
上記目標符号量算出手段は、上記出力画像圧縮情報を構成する符号化画像に対する目標符号量及び各疑似画素ブロック列に対するコンプレキシティを用いて算出された上記出力画像圧縮情報を構成する符号化画像を構成する疑似画素ブロック列に対する目標符号量を算出する
符号化装置。
The image information obtained by decoding the interlaced scan input image compression information compressed by the first compression encoding method is encoded into the progressive scan output image compression information compressed by the second compression encoding method. In the encoding device,
The encoded image constituting the input image compression information and the output image compression information is composed of pixel blocks each consisting of a plurality of pixels,
The encoded image of the input image compression information corresponding to the pixel block that is extracted from the input image compression information and constitutes a pseudo pixel block sequence composed of a pixel block group for one horizontal column in the encoded image of the output image compression information Receiving means for receiving an average quantization scale and an assigned code amount of the pixel block group in
An information buffer for storing the average quantization scale and the assigned code amount from the receiving means;
Target code amount calculating means for calculating a target code amount for the pseudo pixel block sequence;
Encoding means for encoding image information into the output image compression information using the target code amount calculated by the target code amount calculation means;
The receiving means receives the output image compression information calculated using the average quantization scale and the assigned code amount stored in the information buffer and the complexity for the pseudo pixel block sequence in the encoded image,
The target code amount calculation means is a coded image constituting the output image compression information calculated using the target code amount for the coded image constituting the output image compression information and the complexity for each pseudo pixel block sequence. An encoding device that calculates a target code amount for a pseudo pixel block sequence that constitutes.
第1の圧縮符号化方式で圧縮された飛び越し走査の入力画像圧縮情報を復号して得られる画像情報を、第2の圧縮符号化方式で圧縮された順次走査の出力画像圧縮情報に符号化する符号化方法において、
上記入力画像圧縮情報及び上記出力画像圧縮情報を構成する符号化画像は、それぞれ複数の画素からなる画素ブロックから構成され、
上記入力画像圧縮情報から抽出され、上記出力画像圧縮情報の符号化画像における水平方向一列分の画素ブロック群からなる疑似画素ブロック列を構成する画素ブロックに対応する上記入力画像圧縮情報の符号化画像における画素ブロック群の平均量子化スケール及び割当符号量を受け取る受取工程と、
この受取工程からの平均量子化スケール及び割当符号量を格納する情報バッファと、
上記疑似画素ブロック列に対する目標符号量を算出する目標符号量算出工程と、
上記目標符号量算出工程で算出した目標符号量を用い、画像情報を上記出力画像圧縮情報に符号化する符号化工程とを有し、
上記受取工程では、上記情報バッファに格納した平均量子化スケール及び割当符号量を用いて算出された上記出力画像圧縮情報及び符号化画像における疑似画素ブロック列に対するコンプレキシティを受け取り、
上記目標符号量算出工程では、上記出力画像圧縮情報を構成する符号化画像に対する目標符号量及び各疑似画素ブロック列に対するコンプレキシティを用いて算出された上記出力画像圧縮情報を構成する符号化画像を構成する疑似画素ブロック列に対する目標符号量を算出する
符号化方法。
The image information obtained by decoding the interlaced scan input image compression information compressed by the first compression encoding method is encoded into the progressive scan output image compression information compressed by the second compression encoding method. In the encoding method,
The encoded image constituting the input image compression information and the output image compression information is composed of pixel blocks each consisting of a plurality of pixels,
The encoded image of the input image compression information corresponding to the pixel block that is extracted from the input image compression information and constitutes a pseudo pixel block sequence composed of a pixel block group for one horizontal column in the encoded image of the output image compression information A receiving step of receiving an average quantization scale and an assigned code amount of a pixel block group in
An information buffer for storing an average quantization scale and an assigned code amount from the reception process;
A target code amount calculating step of calculating a target code amount for the pseudo pixel block sequence;
Using the target code amount calculated in the target code amount calculation step, and encoding the image information into the output image compression information,
In the receiving step, the output image compression information calculated using the average quantization scale and the assigned code amount stored in the information buffer and the complexity for the pseudo pixel block sequence in the encoded image are received,
In the target code amount calculation step, the encoded image constituting the output image compression information calculated using the target code amount for the encoded image constituting the output image compression information and the complexity for each pseudo pixel block sequence An encoding method for calculating a target code amount for a pseudo-pixel block sequence that constitutes.
JP2000208932A 2000-07-10 2000-07-10 Image information converting apparatus and method, and encoding apparatus and method Expired - Fee Related JP4517468B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000208932A JP4517468B2 (en) 2000-07-10 2000-07-10 Image information converting apparatus and method, and encoding apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000208932A JP4517468B2 (en) 2000-07-10 2000-07-10 Image information converting apparatus and method, and encoding apparatus and method

Publications (2)

Publication Number Publication Date
JP2002027465A JP2002027465A (en) 2002-01-25
JP4517468B2 true JP4517468B2 (en) 2010-08-04

Family

ID=18705426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000208932A Expired - Fee Related JP4517468B2 (en) 2000-07-10 2000-07-10 Image information converting apparatus and method, and encoding apparatus and method

Country Status (1)

Country Link
JP (1) JP4517468B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4833923B2 (en) 2007-06-15 2011-12-07 富士通セミコンダクター株式会社 Transcoding device, transcoder, decoder and transcoding method
US9838684B2 (en) * 2012-04-11 2017-12-05 Qualcomm Incorporated Wavefront parallel processing for video coding

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09512410A (en) * 1995-02-15 1997-12-09 フィリップス エレクトロニクス ネムローゼ フェンノートシャップ Video signal transcoding method and apparatus
JPH11205803A (en) * 1998-01-19 1999-07-30 Sony Corp Encoding device and encoding method therefor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09512410A (en) * 1995-02-15 1997-12-09 フィリップス エレクトロニクス ネムローゼ フェンノートシャップ Video signal transcoding method and apparatus
JPH11205803A (en) * 1998-01-19 1999-07-30 Sony Corp Encoding device and encoding method therefor

Also Published As

Publication number Publication date
JP2002027465A (en) 2002-01-25

Similar Documents

Publication Publication Date Title
JP4517495B2 (en) Image information conversion apparatus, image information conversion method, encoding apparatus, and encoding method
Tudor MPEG-2 video compression
US7170938B1 (en) Rate control method for video transcoding
JP3979897B2 (en) Video coding bitstream transcoding method
US6870886B2 (en) Method and apparatus for transcoding a digitally compressed high definition television bitstream to a standard definition television bitstream
US7787541B2 (en) Dynamic pre-filter control with subjective noise detector for video compression
US20070098078A1 (en) Method and apparatus for video encoding/decoding
US20040120398A1 (en) System and method for adaptive field and frame video encoding using rate-distortion characteristics
JPH07264580A (en) Method for transmitting video signal and video signal transmitter and receiver
JP2002152759A (en) Image information converter and image information conversion method
EP1575294B1 (en) Method and apparatus for improving the average image refresh rate in a compressed video bitstream
JP2004289796A (en) System and method for adaptively encoding sequence of image
JP4517475B2 (en) Image information converting apparatus and method, and encoding apparatus and method
JP2000236547A (en) Image information converter and image information conversion method
JP4517453B2 (en) Image information converting apparatus and method, and encoding apparatus and method
US6040875A (en) Method to compensate for a fade in a digital video input sequence
JPH10271494A (en) Moving picture code converter
JP2002125227A (en) Image information converter and image information converting method
JP4608801B2 (en) Image information conversion apparatus and method
JP4517468B2 (en) Image information converting apparatus and method, and encoding apparatus and method
JP4517465B2 (en) Image information converting apparatus and method, and encoding apparatus and method
KR100770873B1 (en) Method and apparatus of controling bit rate in image encoding
JP4292659B2 (en) Image information conversion apparatus and image information conversion method
JP2001346214A (en) Image information transform device and method
US7012959B2 (en) Picture information conversion method and apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070126

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081110

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081202

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090202

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100112

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100218

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100427

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100510

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

Free format text: PAYMENT UNTIL: 20130528

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees