JP2004343279A - Image processing apparatus and method, information processing apparatus, recording medium, and program - Google Patents

Image processing apparatus and method, information processing apparatus, recording medium, and program Download PDF

Info

Publication number
JP2004343279A
JP2004343279A JP2003135349A JP2003135349A JP2004343279A JP 2004343279 A JP2004343279 A JP 2004343279A JP 2003135349 A JP2003135349 A JP 2003135349A JP 2003135349 A JP2003135349 A JP 2003135349A JP 2004343279 A JP2004343279 A JP 2004343279A
Authority
JP
Japan
Prior art keywords
quantization
information
quantization matrix
encoding
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2003135349A
Other languages
Japanese (ja)
Other versions
JP4539028B2 (en
JP2004343279A5 (en
Inventor
Hiromichi Ueno
弘道 上野
Yoshinori Suzuki
義則 鈴木
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 JP2003135349A priority Critical patent/JP4539028B2/en
Publication of JP2004343279A publication Critical patent/JP2004343279A/en
Publication of JP2004343279A5 publication Critical patent/JP2004343279A5/ja
Application granted granted Critical
Publication of JP4539028B2 publication Critical patent/JP4539028B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To prevent image quality deterioration in the case that a quantized value cannot be reused. <P>SOLUTION: A flowchart for explaining a quantization matrix determination processing 1 includes: a step S1 of discriminating whether or not past encoding information is reused for encoding; a step S2 of reading an intra quantization matrix used for ordinary encoding from a memory when the past encoding information is not reused for the encoding; a step S3 of discriminating whether or not the quantized value is reusable when the past encoding information is reused for the encoding; a step S4 of supplying the intra quantization matrix in the past encoding to a quantization section when the quantized value is reusable; and a step S5 of reading the intra quantization matrix comprising a sufficiently smaller (e.g., 32 or below) high frequency component such as a value twice the DC component from the memory when the quantized value is not reusable. The image processing apparatus or the like is applicable to SDTI-ASI converters or Long GOP encoders. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、画像処理装置および画像処理方法、情報処理装置、記録媒体、並びに、プログラムに関し、特に、対応するデータに対して過去に施された符号化に関する情報を用いて再符号化することが可能なようになされている場合に用いて好適な、画像処理装置および画像処理方法、情報処理装置、記録媒体、並びに、プログラムに関する。
【0002】
【従来の技術】
例えば、テレビ会議システム、テレビ電話システムなどのように、動画像信号を遠隔地に伝送するシステムにおいては、伝送路を効率良く利用するため、映像信号のライン相関やフレーム間相関が利用されて、画像信号が圧縮符号化される。
【0003】
画像信号が圧縮符号化される場合、生成されるビットストリームが、所定のビットレートになるように符号化が行われる。しかしながら、実運用上において、伝送路の都合により、ビットストリームのビットレートを変換する必要が生じることがある。
【0004】
また、例えば、伝送された画像信号が、放送局において編集される場合、編集は秒単位で行われるので、フレームの画像情報は、他のフレームの画像情報から独立しているほうがよい。そこで、低いビットレート(例えば、3乃至9Mbps)で転送しても画質が劣化しないように、情報が相関関係にあるフレームの集合であるGOP(Group of Picture)を構成するフレーム数が多いLong GOPと、高ビットレート(18乃至50Mbps)で転送される、GOPを構成するフレーム数が少ないShort GOPとを、相互に変換する必要があった。
【0005】
例えば、非圧縮のデータをMPEGのLong GOPのストリームデータに符号化した後、フレーム編集することが可能なシステムについて、図1を用いて説明する。
【0006】
SDI(Serial Digital Interface)−ASI(Asynchronous Serial Interface)変換装置1は、供給されたSDI入力画像を、MPEGのLong GOP(ASIストリーム)となるように符号化し、符号化されたMPEGのLong GOPのストリームデータを出力する。SDIとは、Point to Pointの伝送を基本に考えた、非圧縮のデジタルビデオ・オーディオの伝送方式であり、ANSI(American National Standards Institute)/SMPTE(Society of Motion Picture and Television Engineers)259Mに規定されている。
【0007】
ASI−SDTI CP(Serial Data Transport Interface Contents Package)変換装置2は、供給されたMPEGのLong GOPのストリームデータを、復号部21で一旦復号した後、符号化部22において、全てイントラフレーム(All Intra)となるように符号化し、符号化された全てイントラフレームのストリームデータ(SDTI CPストリーム)を、SDTI CPインタフェースのフレーム編集装置3に出力する。SDTI CPとは、Pro−MPEGフォーラムの推進でSMPTE326Mとして標準化された、MPEGデータをリアルタイムに伝送(同期転送)する伝送方式の世界標準規格である。
【0008】
フレーム編集装置3にてフレーム編集されたストリームデータは、SDTI CP−ASI変換装置4に供給される。SDTI CP−ASI変換装置4は、供給された全てイントラフレームのストリームデータを、復号部31で一旦復号した後、符号化部32において、MPEGのLong GOPとなるように符号化し、符号化されたMPEGのLong GOPのストリームデータ(ASIストリーム)を出力する。
【0009】
また、入力画像を高ビットレートでMPEGのLong GOPに符号化し、それを復号して低ビットレートのMPEGのLong GOPに再符号化することが可能なシステムについて、図2を用いて説明する。
【0010】
Long GOP符号化装置51は、供給されたSDI入力画像を、復号部61で一旦復号した後、符号化部62において、高ビットレートのMPEGのLong GOPとなるように符号化し、符号化されたMPEGのLong GOPのストリーム(ASIストリーム)データを出力する。Long GOP符号化装置52は、供給された高ビットレートのMPEGのLong GOPを、復号部71で一旦復号した後、符号化部72において、低ビットレートのMPEGのLong GOPとなるように符号化し、符号化された低ビットレートのMPEGのLong GOPのストリーム(ASIストリーム)データを出力する。
【0011】
このように、画像情報に対する符号化および復号が繰り返された場合、符号化の度に使用される符号化パラメータが変化してしまうと、画像情報が劣化してしまう。この画像情報の劣化を防止するため、ビットストリームのピクチャ層のユーザデータエリアに挿入された符号化履歴情報を用いることにより、再符号化に伴う画像の劣化を抑制することができる技術がある(例えば、特許文献1参照)。
【0012】
【特許文献1】
特開2000−059788号公報
【0013】
例えば、非圧縮のデータをMPEGのLong GOPのストリームデータに符号化した後、フレーム編集を行うことが可能なシステムにおいて、符号化履歴情報を利用する場合について、図3を用いて説明する。なお、図1における場合と対応する部分には同一の符号を付してあり、その説明は適宜省略する。
【0014】
すなわち、ASI−SDTI CP変換装置101は、図1と同様のSDI−ASI変換装置1により符号化されて生成された、MPEGのLong GOP(ASIストリーム)の供給を受ける。
【0015】
MPEGのLong GOPはそれぞれ符号化の素性の異なる3種類のピクチャタイプのピクチャ(Iピクチャ、Pピクチャ、および、Bピクチャ)により構成されるため、それを復号したビデオデータにも、フレームによってそれぞれIピクチャ、Pピクチャ、Bピクチャの素性を持ったものが存在する。したがって、このビデオデータをMPEGのLong GOPで再符号化する場合、Iピクチャ、Pピクチャ、または、Bピクチャの素性を持ったビデオデータに対して、それぞれ別のピクチャタイプで符号化してしまうと、画像劣化が発生する場合がある。例えば、復号前に、IピクチャおよびPピクチャより歪が多くなりやすいBピクチャであったビデオデータをIピクチャとして符号化してしまうと、その周辺のピクチャが、歪の多いIピクチャを参照画像として予測符号化されてしまうため、画質が劣化してしまう。
【0016】
このような再符号化による画質劣化を引き起こさないため、ASI−SDTICP変換装置101は、供給されたMPEGのLong GOPのストリームデータを、復号部111で一旦復号した後、符号化部112において、全てイントラフレームとなるように符号化するとき、過去に実行された符号化、すなわち、SDI−ASI変換装置1による符号化のピクチャタイプや量子化値などのパラメータを、全てイントラフレームのSDTI−CPストリーム上に、SMPTE328Mのヒストリー情報(History data)として付加し、フレーム編集装置3に供給する。
【0017】
フレーム編集装置3にてフレーム編集されたストリームデータは、SDTI CP−ASI変換装置102に供給される。SDTI CP−ASI変換装置102は、供給された、ヒストリー情報つきの全てイントラフレームのストリームデータを、復号部121で復号する。符号化部122は、復号されたヒストリー情報に含まれている、ピクチャタイプや量子化値等の必要なパラメータを使用して、Long GOPに再符号化して出力する。
【0018】
また、図2を用いて説明したように、入力画像を高ビットレートでMPEGのLongGOPに符号化し、それを復号して低ビットレートのMPEGのLongGOPに再符号化することが可能なシステムにおいて、再符号化のための画像劣化が発生しないようになされている場合について、図4を用いて説明する。なお、図2における場合と対応する部分には同一の符号を付してあり、その説明は適宜省略する。
【0019】
すなわち、LongGOP符号化装置51により符号化されたMPEGのLong GOPのストリーム(ASIストリーム)データの供給を受けたLongGOP符号化装置131は、高ビットレートのMPEGのLong GOPを、復号部141で復号するときに、必要な符号化パラメータを取得して、復号されたビデオデータと取得された符号化パラメータを符号化部142に供給する。符号化部142は、供給された符号化パラメータを用いて、ビデオデータを、低ビットレートのMPEGのLong GOPとなるように符号化し、符号化された低ビットレートのMPEGのLong GOPのストリーム(ASIストリーム)データを出力する。
【0020】
【発明が解決しようとする課題】
上述したように、ヒストリー情報、または、符号化パラメータを用いて、過去の符号化の情報(過去に行われた符号化のピクチャタイプ、動きベクトル、量子化値等)を再利用して符号化することにより、画質劣化を防ぐことが可能である。しかしながら、図4を用いて説明したシステムのように、再符号化によりビットレートを低くするような場合、量子化値をそのまま利用するとビットレートを低くすることができないため、量子化値を再利用することができない。また、図3を用いて説明したシステムにおいて、例えば、編集点を含むストリームの符号化時のVBVバッファ状態などによっては、量子化値を再利用して符号化を行うことができない場合がある。
【0021】
このように、ヒストリー情報、または、符号化パラメータを用いて、過去の符号化の情報を再利用して符号化するにあたって、ヒストリー情報、または、符号化パラメータに含まれる情報のうち、量子化値について再利用することができない場合、量子化値は、通常の符号化で用いるTM5等のレート制御により決定される。すなわち、符号化に用いられる量子化値は、過去の符号化の量子化値とは異なってくる。
【0022】
更に、過去に符号化が実行された符号化装置もしくはトランスコーダと、再符号化を行う符号化装置もしくはトランスコーダとが異なり、装置によってレート制御方法等が異なる場合、過去の符号化と次に実行される符号化において、量子化値が異なるものとなる可能性が高い。
【0023】
再符号化で用いられる量子化値が、過去の符号化における量子化値と異なる場合、その差分によっては、画質劣化を引き起こしてしまう。例えば、過去の符号化における量子化値に対して2倍前後の量子化値の差分を有している場合、顕著な画質劣化を引き起こしてしまい、過去の符号化における量子化値に対して2倍以上の量子化値の差分を有している場合、より一層顕著な画質劣化を引き起こしてしまう。
【0024】
この原因については、例えば、次にあげられるようなことが考えられる。
【0025】
符号化するビデオデータが、ノイズや細かいテクスチャ等の高周波成分を多く含む場合、量子化しても0にならないDCT係数が高次まで広く分布する。例えば、イントラマクロブロックのうちの、ある高次の係数を量子化した結果が1であった場合を考える。再符号化において、この部分を2倍の量子化値で量子化すると、その結果は0.5となり、丸めにより再び1となる。更に、復号時に逆量子化されて、2倍の量子化値が乗算されるため、その係数値は、過去の符号化時の係数値の2倍となる。したがって、逆DCTしたときに、ビデオデータのノイズや細かいテクスチャ等の高周波成分が、過去の符号化時の入力ビデオデータに比べて強調されてしまう。
【0026】
また、同様の部分に対して、再符号化において2倍を超える量子化値を用いて量子化が施された場合、その係数は0に丸められるので、解像度が落ちてしまう。このような場合、量子化計算を切捨てで行っている符号化装置においては、再符号化において用いられる量子化値が、過去の量子化値より僅かに大きくなるだけで、量子化結果が0となってしまうため、過去に1であるデータが、全て0となり、解像度が落ち、画像が劣化してしまう。
【0027】
特に、過去の符号化でIピクチャであった部分が、再びIピクチャとして再符号化される場合には、このような高周波成分の強調や解像度落ちの画質劣化が引き起こされやすい。したがって、再符号化後のビデオデータにおいて、Iピクチャの部分のみで高周波成分が強調されてしまったり、解像度が落ちてしまうため、再生されるビデオデータのうち、Iピクチャに対応する部分のみが強調されて、フリッカーが発生してしまう。
【0028】
ビットレートを小さくする場合、量子化値が大きくなりやすいために、上述した画質劣化が発生しやすい。また、ビットレートはそのままである場合であっても、再符号化時の入力ビデオデータが過去の符号化時の入力ビデオデータとは異なるものである場合、Iピクチャ、Pピクチャ、Bピクチャのビット発生量割り振りに、差が発生してしまう。このような場合も、過去の符号化時と比較して、量子化値が異なるものとなる可能性があるため、過去の量子化値との差異の大きさによっては、画質劣化が発生してしまう。
【0029】
本発明はこのような状況に鑑みてなされたものであり、過去の符号化におけるパラメータを再利用して符号化する場合において、量子化値を再利用できないときに、画質劣化が発生してしまうことを防ぐことができるようにするものである。
【0030】
【課題を解決するための手段】
本発明の第1の画像処理装置は、画像データに対して過去に行われた符号化に関する情報を取得する取得手段と、画像データを直交変換する直交変換手段と、高域成分が、255未満の値で構成されている第1の量子化マトリクスを記憶する記憶手段と、量子化に用いられる量子化値および量子化マトリクスを決定する決定手段と、決定手段により決定された量子化値および量子化マトリクスを用いて、量子化を実行する量子化手段とを備え、決定手段は、取得手段により取得された情報に含まれる量子化値が再利用可能である場合、取得手段により取得された情報に含まれる第2の量子化マトリクスを量子化に用いることを決定し、情報に含まれる量子化値が再利用可能ではない場合、記憶手段に記憶されている第1の量子化マトリクスを量子化に用いることを決定することを特徴とする。
【0031】
第1の量子化マトリクスは、高域成分が、DC成分の2倍以下の値で構成されているものとすることができる。
【0032】
第1の量子化マトリクスは、高域成分が、32以下の値で構成されているものとすることができる。
【0033】
量子化手段により量子化された量子化係数データを符号化する符号化手段を更に備えさせるようにすることができる。
【0034】
記憶手段に記憶されている第1の量子化マトリクスは、イントラマクロブロックの量子化に用いられる量子化マトリクスを含むものとすることができる。
【0035】
記憶手段に記憶されている第1の量子化マトリクスは、イントラマクロブロックの量子化に用いられる第3の量子化マトリクスおよび非イントラマクロブロックの量子化に用いられる第4の量子化マトリクスを含むものとすることができる。
【0036】
記憶手段には、量子化において、取得手段により取得された情報が再利用されない場合に用いられる第3の量子化マトリクスを更に記憶させるようにすることができ、決定手段には、取得手段により取得された情報が再利用されるか否かを更に判断させるようにすることができ、情報が再利用され、かつ、取得手段により取得された情報に含まれる量子化値が再利用可能である場合、決定手段には、取得手段により取得された情報に含まれる第2の量子化マトリクスを量子化に用いることを決定させるようにすることができ、情報が再利用され、かつ、情報に含まれる量子化値が再利用可能ではない場合、決定手段には、記憶手段に記憶されている第1の量子化マトリクスを量子化に用いることを決定させるようにすることができ、情報が再利用されない場合、決定手段には、記憶手段に記憶されている第3の量子化マトリクスを量子化に用いることを決定させるようにすることができる。
【0037】
記憶手段により記憶されている第1の量子化マトリクスのAC成分は、全て同一の値であるものとすることができる。
【0038】
本発明の第1の画像処理方法は、画像データに対して過去に行われた符号化に関する情報に含まれる量子化値が、量子化に用いられるか否かを判断する判断ステップと、判断ステップの処理により、量子化値が量子化に用いられないと判断された場合、高域成分が、255未満の値で構成されている第1の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第1の選択ステップと、判断ステップの処理により、量子化値が量子化に用いられると判断された場合、情報に含まれる第2の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第2の選択ステップとを含むことを特徴とする。
【0039】
本発明の第1の記録媒体に記録されているプログラムは、画像データに対して過去に行われた符号化に関する情報に含まれる量子化値が、量子化に用いられるか否かを判断する判断ステップと、判断ステップの処理により、量子化値が量子化に用いられないと判断された場合、高域成分が、255未満の値で構成されている第1の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第1の選択ステップと、判断ステップの処理により、量子化値が量子化に用いられると判断された場合、情報に含まれる第2の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第2の選択ステップとを含むことを特徴とする。
【0040】
本発明の第1のプログラムは、画像データに対して過去に行われた符号化に関する情報に含まれる量子化値が、量子化に用いられるか否かを判断する判断ステップと、判断ステップの処理により、量子化値が量子化に用いられないと判断された場合、高域成分が、255未満の値で構成されている第1の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第1の選択ステップと、判断ステップの処理により、量子化値が量子化に用いられると判断された場合、情報に含まれる第2の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第2の選択ステップとを含むことを特徴とする。
【0041】
本発明の第1の画像処理装置および画像処理方法、並びに、プログラムにおいては、画像データに対して過去に行われた符号化に関する情報が取得されて、この情報に含まれる量子化値が、量子化に用いられるか否かが判断され、情報に含まれる量子化値が量子化に用いられないと判断された場合、高域成分が、255未満の値で構成されている第1の量子化マトリクスが量子化に用いられ、情報に含まれる量子化値が量子化に用いられると判断された場合、情報に含まれる第2の量子化マトリクスが量子化に用いられる。
【0042】
本発明の第2の画像処理装置は、画像データに対して過去に行われた符号化に関する情報を取得する取得手段と、画像データを直交変換する直交変換手段と、量子化において、取得手段により取得された情報が再利用されない場合に用いられる第1の量子化マトリクス、および、各成分が第1の量子化マトリクス以下の値を有する第2の量子化マトリクスを記憶する記憶手段と、量子化に用いられる量子化値および量子化マトリクスを決定する決定手段と、決定手段により決定された量子化値および量子化マトリクスを用いて、量子化を実行する量子化手段とを備え、決定手段は、情報が再利用され、かつ、取得手段により取得された情報に含まれる量子化値が再利用可能である場合、取得手段により取得された情報に含まれる第3の量子化マトリクスを量子化に用いることを決定し、情報が再利用され、かつ、情報に含まれる量子化値が再利用可能ではない場合、記憶手段に記憶されている第2の量子化マトリクスを量子化に用いることを決定し、情報が再利用されない場合、記憶手段に記憶されている第1の量子化マトリクスを量子化に用いることを決定することを特徴とする。
【0043】
本発明の第2の画像処理方法は、画像データに対して過去に行われた符号化に関する情報を再利用するか否かを判断する第1の判断ステップと、第1の判断ステップの処理により、過去の符号化の情報が再利用されないと判断された場合、所定の第1の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第1の選択ステップと、第1の判断ステップの処理により、過去の符号化に関する情報が再利用されると判断された場合、情報に含まれる量子化値が、量子化に用いられるか否かを判断する第2の判断ステップと、第2の判断ステップの処理により、量子化値が量子化に用いられないと判断された場合、各成分が第1の量子化マトリクス以下の値を有する第2の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第2の選択ステップと、第2の判断ステップの処理により、量子化値が量子化に用いられると判断された場合、情報に含まれる第3の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第3の選択ステップとを含むことを特徴とする。
【0044】
本発明の第2の記録媒体に記録されているプログラムは、画像データに対して過去に行われた符号化に関する情報を再利用するか否かを判断する第1の判断ステップと、第1の判断ステップの処理により、過去の符号化の情報が再利用されないと判断された場合、所定の第1の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第1の選択ステップと、第1の判断ステップの処理により、過去の符号化に関する情報が再利用されると判断された場合、情報に含まれる量子化値が、量子化に用いられるか否かを判断する第2の判断ステップと、第2の判断ステップの処理により、量子化値が量子化に用いられないと判断された場合、各成分が第1の量子化マトリクス以下の値を有する第2の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第2の選択ステップと、第2の判断ステップの処理により、量子化値が量子化に用いられると判断された場合、情報に含まれる第3の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第3の選択ステップとを含むことを特徴とする。
【0045】
本発明の第2のプログラムは、画像データに対して過去に行われた符号化に関する情報を再利用するか否かを判断する第1の判断ステップと、第1の判断ステップの処理により、過去の符号化の情報が再利用されないと判断された場合、所定の第1の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第1の選択ステップと、第1の判断ステップの処理により、過去の符号化に関する情報が再利用されると判断された場合、情報に含まれる量子化値が、量子化に用いられるか否かを判断する第2の判断ステップと、第2の判断ステップの処理により、量子化値が量子化に用いられないと判断された場合、各成分が第1の量子化マトリクス以下の値を有する第2の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第2の選択ステップと、第2の判断ステップの処理により、量子化値が量子化に用いられると判断された場合、情報に含まれる第3の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第3の選択ステップとを含むことを特徴とする。
【0046】
本発明の第2の画像処理装置および画像処理方法、並びにプログラムにおいては、画像データに対して過去に行われた符号化に関する情報が取得されて、再利用されるか否かが判断され、過去の符号化の情報が再利用されないと判断された場合、所定の第1の量子化マトリクスが、量子化に用いる量子化マトリクスとして選択され、過去の符号化に関する情報が再利用されると判断された場合、情報に含まれる量子化値が、量子化に用いられるか否かが判断され、量子化値が量子化に用いられないと判断された場合、各成分が第1の量子化マトリクス以下の値を有する第2の量子化マトリクスが、量子化に用いる量子化マトリクスとして選択され、量子化値が量子化に用いられると判断された場合、情報に含まれる第3の量子化マトリクスが、量子化に用いる量子化マトリクスとして選択される。
【0047】
本発明の第1の情報処理装置は、供給された画像データを完全に、または不完全に復号する復号手段と、復号手段により完全に復号されたベースバンドの画像データ、または、復号手段により不完全に復号されて生成された、中途段階まで符号化された画像データを、中途段階まで、または、完全に符号化する符号化手段とを備え、符号化手段は、画像データに対して過去に行われた符号化に関する情報を取得する取得手段と、画像データを直交変換する直交変換手段と、高域成分が、255未満の値で構成されている第1の量子化マトリクスを記憶する記憶手段と、量子化に用いられる量子化値および量子化マトリクスを決定する決定手段と、決定手段により決定された量子化値および量子化マトリクスを用いて、量子化を実行する量子化手段とを備え、決定手段は、取得手段により取得された情報に含まれる量子化値が再利用可能である場合、取得手段により取得された情報に含まれる第2の量子化マトリクスを量子化に用いることを決定し、情報に含まれる量子化値が再利用可能ではない場合、記憶手段に記憶されている第1の量子化マトリクスを量子化に用いることを決定することを特徴とする。
【0048】
本発明の第1の情報処理装置においては、供給された画像データが完全または不完全に復号され、完全に復号されたベースバンドの画像データ、または、中途段階まで符号化された前記画像データが、中途段階まで、または、完全に符号化され、符号化において、画像データに対して過去に行われた符号化に関する情報が取得され、画像データが直交変換され、高域成分が、255未満の値で構成されている第1の量子化マトリクスが記憶され、量子化に用いられる量子化値および量子化マトリクスが決定され、決定された量子化値および量子化マトリクスが用いられて、量子化が実行され、量子化値および量子化マトリクスの決定においては、取得された情報に含まれる量子化値が再利用可能である場合、取得された情報に含まれる第2の量子化マトリクスを量子化に用いることが決定され、情報に含まれる量子化値が再利用可能ではない場合、記憶されている第1の量子化マトリクスを量子化に用いることが決定される。
【0049】
本発明の第2の情報処理装置は、供給された画像データを完全に、または、不完全に復号する復号手段と、復号手段により完全に、または、不完全に復号された画像データを、復号手段による復号の状態に対応する方法で符号化する符号化手段とを備え、符号化手段は、画像データに対して過去に行われた符号化に関する情報を取得する取得手段と、画像データを直交変換する直交変換手段と、量子化において、取得手段により取得された情報が再利用されない場合に用いられる第1の量子化マトリクス、および、各成分が第1の量子化マトリクス以下の値を有する第2の量子化マトリクスを記憶する記憶手段と、量子化に用いられる量子化値および量子化マトリクスを決定する決定手段と、決定手段により決定された量子化値および量子化マトリクスを用いて、量子化を実行する量子化手段とを備え、決定手段は、情報が再利用され、かつ、取得手段により取得された情報に含まれる量子化値が再利用可能である場合、取得手段により取得された情報に含まれる第3の量子化マトリクスを量子化に用いることを決定し、情報が再利用され、かつ、情報に含まれる量子化値が再利用可能ではない場合、記憶手段に記憶されている第2の量子化マトリクスを量子化に用いることを決定し、情報が再利用されない場合、記憶手段に記憶されている第1の量子化マトリクスを量子化に用いることを決定することを特徴とする。
【0050】
本発明の第2の情報処理装置においては、供給された画像データが完全または不完全に復号され、復号の状態に対応する方法で画像データが符号化され、符号化において、画像データに対して過去に行われた符号化に関する情報が取得され、画像データが直交変換され、量子化において、取得された情報が再利用されない場合に用いられる第1の量子化マトリクス、および、各成分が第1の量子化マトリクス以下の値を有する第2の量子化マトリクスが記憶され、量子化に用いられる量子化値および量子化マトリクスが決定され、決定された量子化値および量子化マトリクスを用いて、量子化が実行され、情報が再利用され、かつ、取得手段により取得された情報に含まれる量子化値が再利用可能である場合、取得された情報に含まれる第3の量子化マトリクスを量子化に用いることが決定され、情報が再利用され、かつ、情報に含まれる量子化値が再利用可能ではない場合、記憶されている第2の量子化マトリクスを量子化に用いることが決定され、情報が再利用されない場合、記憶されている第1の量子化マトリクスを量子化に用いることが決定される。
【0051】
【発明の実施の形態】
以下に本発明の実施の形態を説明するが、特許請求の範囲に記載の発明の各手段と以下の実施の形態との対応関係を明らかにするために、各手段またはステップなどの後の括弧内に、対応する実施の形態(但し一例)を付加して本発明の特徴を記述すると、次のようになる。ただし、もちろんこの記載は、各手段またはステップなどを記載したものに限定することを意味するものではない。
【0052】
請求項1に記載の画像処理装置(例えば、図5の符号化部161、図9の符号化部211、もしくは、図15の符号化装置252)は、画像データに対して過去に行われた符号化に関する情報(例えば、ヒストリー情報、または、パラメータ)を取得する取得手段(例えば、図6のヒストリー抽出部171、または、図10のパラメータ入力部221)と、画像データを直交変換する直交変換手段(例えば、図6または図10のDCT部175)と、高域成分が、255未満の値で構成されている第1の量子化マトリクス(例えば、図8または図13の量子化マトリクス)を記憶する記憶手段(例えば、図6または図10のメモリ185)と、量子化に用いられる量子化値および量子化マトリクスを決定する決定手段(例えば、図6または図10のレート設定部177)と、決定手段により決定された量子化値および量子化マトリクスを用いて、量子化を実行する量子化手段(例えば、図6、または、図10の量子化部176)とを備え、決定手段は、取得手段により取得された情報に含まれる量子化値が再利用可能である場合、取得手段により取得された情報に含まれる第2の量子化マトリクスを量子化に用いることを決定し、情報に含まれる量子化値が再利用可能ではない場合、記憶手段に記憶されている第1の量子化マトリクスを量子化に用いることを決定することを特徴とする。
【0053】
請求項4に記載の画像処理装置は、量子化手段により量子化された量子化係数データを符号化する符号化手段(例えば、図6、または、図10のVLC部178)を更に備えることを特徴とする。
【0054】
請求項7に記載の画像処理装置は、記憶手段が、量子化において、取得手段により取得された情報が再利用されない場合に用いられる第3の量子化マトリクス(例えば、図7または図12の量子化マトリクス)を更に記憶し、決定手段は、取得手段により取得された情報が再利用されるか否かを更に判断し、情報が再利用され、かつ、取得手段により取得された情報に含まれる量子化値が再利用可能である場合、決定手段は、取得手段により取得された情報に含まれる第2の量子化マトリクスを量子化に用いることを決定し、情報が再利用され、かつ、情報に含まれる量子化値が再利用可能ではない場合、決定手段は、記憶手段に記憶されている第1の量子化マトリクスを量子化に用いることを決定し、情報が再利用されない場合、決定手段は、記憶手段に記憶されている第3の量子化マトリクスを量子化に用いることを決定することを特徴とする。
【0055】
請求項9に記載の画像処理方法、請求項10に記載の記録媒体に記録されているプログラム、および、請求項11に記載のプログラムは、画像データに対して過去に行われた符号化に関する情報(例えば、ヒストリー情報、または、パラメータ)に含まれる量子化値が、量子化に用いられるか否かを判断する判断ステップ(例えば、図11のステップS3の処理、または、図14のステップS23の処理)と、判断ステップの処理により、量子化値が量子化に用いられないと判断された場合、高域成分が、255未満の値で構成されている第1の量子化マトリクス(例えば、図8または図13の量子化マトリクス)を、量子化に用いる量子化マトリクスとして選択する第1の選択ステップ(例えば、図11のステップS5の処理、または図14のステップS25の処理)と、判断ステップの処理により、量子化値が量子化に用いられると判断された場合、情報に含まれる第2の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第2の選択ステップ(例えば、図11のステップS4の処理、または図14のステップS24の処理)とを含むことを特徴とする。
【0056】
請求項12に記載の画像処理装置(例えば、図5の符号化部161、図9の符号化部211、もしくは、図15の符号化装置252、もしくは、図15のトランスコーダ261)は、画像データに対して過去に行われた符号化に関する情報(例えば、ヒストリー情報、または、パラメータ)を取得する取得手段(例えば、図6のヒストリー抽出部171、または、図10のパラメータ入力部221)と、画像データを直交変換する直交変換手段(例えば、図6または図10のDCT部175)と、量子化において、取得手段により取得された情報が再利用されない場合に用いられる第1の量子化マトリクス(例えば、図7または図12の量子化マトリクス)、および、各成分が第1の量子化マトリクス以下の値を有する第2の量子化マトリクス(例えば、図8または図13の量子化マトリクス)を記憶する記憶手段(例えば、図6または図10のメモリ185)と、量子化に用いられる量子化値および量子化マトリクスを決定する決定手段(例えば、図6または図10のレート設定部177)と、決定手段により決定された量子化値および量子化マトリクスを用いて、量子化を実行する量子化手段(例えば、図6、または、図10の量子化部176)とを備え、決定手段は、情報が再利用され、かつ、取得手段により取得された情報に含まれる量子化値が再利用可能である場合、取得手段により取得された情報に含まれる第3の量子化マトリクスを量子化に用いることを決定し、情報が再利用され、かつ、情報に含まれる量子化値が再利用可能ではない場合、記憶手段に記憶されている第2の量子化マトリクスを量子化に用いることを決定し、情報が再利用されない場合、記憶手段に記憶されている第1の量子化マトリクスを量子化に用いることを決定することを特徴とする。
【0057】
請求項13に記載の画像処理方法、請求項14に記載の記録媒体に記録されているプログラム、および、請求項15に記載のプログラムは、画像データに対して過去に行われた符号化に関する情報(例えば、ヒストリー情報、または、パラメータ)を再利用するか否かを判断する第1の判断ステップ(例えば、図11のステップS1の処理、または、図14のステップS21の処理)と、第1の判断ステップの処理により、過去の符号化の情報が再利用されないと判断された場合、所定の第1の量子化マトリクス(例えば、図7または図12の量子化マトリクス)を、量子化に用いる量子化マトリクスとして選択する第1の選択ステップ(例えば、図11のステップS2の処理、または、図14のステップS22の処理)と、第1の判断ステップの処理により、過去の符号化に関する情報が再利用されると判断された場合、情報に含まれる量子化値が、量子化に用いられるか否かを判断する第2の判断ステップ(例えば、図11のステップS3の処理、または、図14のステップS23の処理)と、第2の判断ステップの処理により、量子化値が量子化に用いられないと判断された場合、各成分が第1の量子化マトリクス以下の値を有する第2の量子化マトリクス(例えば、図8または図13の量子化マトリクス)を、量子化に用いる量子化マトリクスとして選択する第2の選択ステップ(例えば、図11のステップS5の処理、または図14のステップS25の処理)と、第2の判断ステップの処理により、量子化値が量子化に用いられると判断された場合、情報に含まれる第3の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第3の選択ステップ(例えば、図11のステップS4の処理、または図14のステップS24の処理)とを含むことを特徴とする。
【0058】
請求項16に記載の情報処理装置(例えば、図5の符号化部161、図9の符号化部211、もしくは、図15の符号化装置252、もしくは、図15のトランスコーダ261)は、供給された画像データを完全または不完全に復号する復号手段(例えば、図5の復号部121、図9の復号部141、もしくは、図15の復号装置251)と、復号手段により完全にまたは不完全に復号された画像データを、前記復号手段による復号の状態に対応する方法で符号化する符号化手段(例えば、図5の符号化部161、図9の符号化部211、もしくは、図15の符号化装置252)とを備え、符号化手段は、画像データに対して過去に行われた符号化に関する情報(例えば、ヒストリー情報、または、パラメータ)を取得する取得手段(例えば、図6のヒストリー抽出部171、または、図10のパラメータ入力部221)と、画像データを直交変換する直交変換手段(例えば、図6または図10のDCT部175)と、高域成分が、255未満の値で構成されている第1の量子化マトリクス(例えば、図8または図13の量子化マトリクス)を記憶する記憶手段(例えば、図6または図10のメモリ185)と、量子化に用いられる量子化値および量子化マトリクスを決定する決定手段(例えば、図6または図10のレート設定部177)と、決定手段により決定された量子化値および量子化マトリクスを用いて、量子化を実行する量子化手段(例えば、図6、または、図10の量子化部176)とを備え、決定手段は、取得手段により取得された情報に含まれる量子化値が再利用可能である場合、取得手段により取得された情報に含まれる第2の量子化マトリクスを量子化に用いることを決定し、情報に含まれる量子化値が再利用可能ではない場合、記憶手段に記憶されている第1の量子化マトリクスを量子化に用いることを決定することを特徴とする。
【0059】
請求項17に記載の情報処理装置(例えば、図5のSDIT CP−ASI変換装置151、もしくは、図9のLong GOP符号化装置201)は、供給された画像データを完全または不完全に復号する復号手段(例えば、図5の復号部121、図9の復号部141、もしくは、図15の復号装置251)と、復号手段により完全にまたは不完全に復号された画像データを、前記復号手段による復号の状態に対応する方法で符号化する符号化手段(例えば、図5の符号化部161、図9の符号化部211、もしくは、図15の符号化装置252)とを備え、符号化手段は、画像データに対して過去に行われた符号化に関する情報(例えば、ヒストリー情報、または、パラメータ)を取得する取得手段(例えば、図6のヒストリー抽出部171、または、図10のパラメータ入力部221)と、画像データを直交変換する直交変換手段(例えば、図6または図10のDCT部175)と、量子化において、取得手段により取得された情報が再利用されない場合に用いられる第1の量子化マトリクス(例えば、図7または図12の量子化マトリクス)、および、各成分が第1の量子化マトリクス以下の値を有する第2の量子化マトリクス(例えば、図8または図13の量子化マトリクス)を記憶する記憶手段(例えば、図6または図10のメモリ185)と、量子化に用いられる量子化値および量子化マトリクスを決定する決定手段(例えば、図6または図10のレート設定部177)と、決定手段により決定された量子化値および量子化マトリクスを用いて、量子化を実行する量子化手段(例えば、図6、または、図10の量子化部176)とを備え、決定手段は、情報が再利用され、かつ、取得手段により取得された情報に含まれる量子化値が再利用可能である場合、取得手段により取得された情報に含まれる第3の量子化マトリクスを量子化に用いることを決定し、情報が再利用され、かつ、情報に含まれる量子化値が再利用可能ではない場合、記憶手段に記憶されている第2の量子化マトリクスを量子化に用いることを決定し、情報が再利用されない場合、記憶手段に記憶されている第1の量子化マトリクスを量子化に用いることを決定することを特徴とする。
【0060】
以下、図を参照して、本発明の実施の形態について説明する。
【0061】
図5は、本発明を適用した、非圧縮のデータをMPEGのLong GOPのストリームデータに符号化した後、フレーム編集することが可能なシステムの構成を示すブロックである。
【0062】
なお、図3を用いて説明した従来の場合と対応する部分には同一の符号を付してあり、その説明は適宜省略する。すなわち、本発明を適用した、非圧縮のデータをMPEGのLong GOPのストリームデータに符号化した後、フレーム編集することが可能なシステムにおいては、SDTI CP−ASI変換装置102に代わって、SDTI CP−ASI変換装置151が設けられているほかは、図3を用いて説明した従来の場合と基本的に同様に構成されており、SDTI CP−ASI変換装置151は、符号化部122に代わって、量子化値が再利用できるか否かに基づいて、最適な量子化マトリクスを選択して量子化処理を実行することが可能な符号化部161が設けられているほかは、SDTI CP−ASI変換装置102と基本的に同様に構成されている。
【0063】
ASI−SDTI CP変換装置101は、SDI−ASI変換装置1により符号化されて生成された、MPEGのLong GOP(ASIストリーム)の供給を受ける。
【0064】
MPEGのLongGOPは、3種類のピクチャタイプのピクチャ(Iピクチャ、Pピクチャ、および、Bピクチャ)により構成される。ASI−SDTI CP変換装置101は、供給されたMPEGのLong GOPのストリームデータを、復号部111で一旦復号した後、符号化部112において、全てイントラフレームとなるように符号化する場合、その後の処理において、これらのストリームデータがLongGOPで再符号化されるにあたって、Iピクチャ、Pピクチャ、または、Bピクチャの素性を持ったビデオデータに対して、別のピクチャタイプで符号化されてしまうことを防ぐため、過去に実行された符号化、すなわち、SDI−ASI変換装置1による符号化のピクチャタイプや量子化値などのパラメータを、SMPTE328Mのヒストリー情報(History data)として、全てイントラフレームのSDTI−CPストリーム上に付加し、フレーム編集装置3に供給する。
【0065】
フレーム編集装置3にてフレーム編集された、ヒストリー情報付のストリームデータは、SDTI CP−ASI変換装置151に供給される。SDTI CP−ASI変換装置151は、供給された、ヒストリー情報付の全てイントラフレームのストリームデータを、復号部121で復号する。符号化部161は、復号されたヒストリー情報に含まれている、ピクチャタイプや量子化値等のパラメータを、必要に応じて使用して、LongGOPに再符号化して出力する。
【0066】
図6は、符号化部161の構成を示すブロック図である。
【0067】
ヒストリー抽出部171は、復号部121により復号された、SMPTE328Mのヒストリー情報付のSDIT CPストリームから、ヒストリー情報を抽出して、レート設定部177に供給するとともに、映像ストリームを映像並べ替え部172に供給する。ヒストリー情報には、例えば、ピクチャタイプ、量子化値、動きベクトル、または、量子化マトリクスなど、過去に実行された符号化に関する情報が含まれている。
【0068】
映像並べ替え部172は、順次入力される画像データの各フレーム画像を、必要に応じて、並べ替えたり、画像データの各フレーム画像を、16画素×16ラインの輝度信号、および輝度信号に対応する色差信号によって構成されるマクロブロックに分割したマクロブロックデータを生成して、演算部173、および、動きベクトル検出部174に供給する。
【0069】
動きベクトル検出部174は、マクロブロックデータの入力を受け、各マクロブロックの動きベクトルを、マクロブロックデータ、および、フレームメモリ183に記憶されている参照画像データを基に算出し、動きベクトルデータとして、動き補償部182に送出する。
【0070】
演算部173は、映像並べ替え部172から供給されたマクロブロックデータについて、各マクロブロックの画像タイプに基づいた動き補償を行う。具体的には、演算部173は、Iピクチャに対してはイントラモードで動き補償を行い、Pピクチャに対しては、順方向予測モードで動き補償を行い、Bピクチャに対しては、双方向予測モードで動き補償を行うようになされている。
【0071】
ここでイントラモードとは、符号化対象となるフレーム画像をそのまま伝送データとする方法であり、順方向予測モードとは、符号化対象となるフレーム画像と過去参照画像との予測残差を伝送データとする方法であり、双方向予測モードとは、符号化対象となるフレーム画像と、過去と将来の参照画像との予測残差を伝送データとする方法である。
【0072】
まず、マクロブロックデータがIピクチャであった場合、マクロブロックデータはイントラモードで処理される。すなわち、演算部173は、入力されたマクロブロックデータのマクロブロックを、そのまま演算データとしてDCT(Discrete Cosine Transform :離散コサイン変換)部175に送出する。DCT部175は、入力された演算データに対し、直交変換であるDCT変換処理を行うことによりDCT係数化し、これをDCT係数データとして、量子化部176に送出する。
【0073】
量子化部176は、レート設定部177から供給される量子化値Qおよび量子化マトリクスに基づいて、入力されたDCT係数データに対して量子化処理を行い、量子化DCT係数としてVLC(Variable Length Code;可変長符号化)部178および逆量子化部179に送出する。量子化部176は、次の式(1)を用いて、量子化DCT係数Sqを算出する。
【0074】
Sq=((32×S)/q)/(2×Q) ・・・(1)
【0075】
ただし、式(1)においては、量子化前のDCT係数成分値をSとし、量子化マトリクスの成分値をqとし、乗算の結果は、四捨五入するものとする。
【0076】
逆量子化部179に送出された量子化DCT係数データは、量子化部176と同じ量子化ステップサイズによる逆量子化処理を受け、DCT係数データとして、逆DCT部180に送出される。逆量子化部179は、次の式(2)を用いて、逆量子化DCT係数Siqを算出する。
【0077】
Siq=(2×Sq×q×Q)/32 ・・・(2)
【0078】
逆DCT部180は、供給されたDCT係数データに逆DCT処理を施し、生成された演算データは、演算部181に送出され、参照画像データとしてフレームメモリ183に記憶される。
【0079】
そして、演算部173は、マクロブロックデータがPピクチャであった場合、マクロブロックデータについて、順方向予測モードよる動き補償処理を行い、Bピクチャであった場合、マクロブロックデータについて、双方向予測モードによる動き補償処理を行う。
【0080】
動き補償部182は、フレームメモリ183に記憶されている参照画像データを、動きベクトルデータに応じて動き補償し、順方向予測画像データ、または、双方向予測画像データを算出する。演算部173は、マクロブロックデータについて、動き補償部182より供給される順方向予測画像データ、または、双方向予測画像データを用いて減算処理を実行する。
【0081】
すなわち、順方向予測モードにおいて、動き補償部182は、フレームメモリ183の読み出しアドレスを、動きベクトルデータに応じてずらすことによって、参照画像データを読み出し、これを順方向予測画像データとして演算部173および演算部181に供給する。演算部173は、供給されたマクロブロックデータから、順方向予測画像データを減算して、予測残差としての差分データを得る。そして、演算部173は、差分データをDCT部175に送出する。
【0082】
演算部181には、動き補償部182より順方向予測画像データが供給されており、演算部181は、逆DCT部から供給された演算データに、順方向予測画像データを加算することにより、参照画像データを局部再生し、フレームメモリ183に出力して記憶させる。
【0083】
また、双方向予測モードにおいて、動き補償部182は、フレームメモリ183の読み出しアドレスを、動きベクトルデータに応じてずらすことによって、参照画像データを読み出し、これを双方向予測画像データとして演算部173および演算部181に供給する。演算部173は、供給されたマクロブロックデータから、双方向予測画像データを減算して、予測残差としての差分データを得る。そして、演算部173は、差分データをDCT部175に送出する。
【0084】
演算部181には、動き補償部182より双方向予測画像データが供給されており、演算部181は、逆DCT部から供給された演算データに、双方向予測画像データを加算することにより、参照画像データを局部再生し、フレームメモリ183に出力して記憶させる。
【0085】
かくして、符号化部161に入力された画像データは、動き補償予測処理、DCT処理および量子化処理を受け、量子化DCT係数データとして、VLC部178に供給される。VLC部178は、量子化DCT係数データに対し、所定の変換テーブルに基づく可変長符号化処理を行い、その結果得られる可変長符号化データをバッファ184に送出する。バッファ184は、供給された可変長符号化データをバッファリングした後、出力する。
【0086】
レート設定部177は、バッファ184に格納される可変長符号化データの蓄積状態を常時監視しており、蓄積状態を表す占有量情報、または、ヒストリー抽出部171から供給されるヒストリー情報を基に量子化ステップサイズを決定するようになされている。
【0087】
このとき、レート設定部177は、ヒストリー抽出部171から供給されるヒストリー情報に含まれている量子化マトリクス、または、メモリ185に記憶されている複数の量子化マトリクスのうち、後述する符号化の条件に合致するものを選択するようになされている。
【0088】
メモリ185には、図7に示される、MPEG2においてデフォルトとされているイントラ量子化マトリクス、および、非イントラ(インター)量子化マトリクス(図12)以外に、図8に示される、過去の符号化の情報のうちの量子化値が再利用できない場合に用いられるイントラ量子化マトリクスが記憶されている。
【0089】
前述したように、過去の符号化の情報を用いて再符号化する場合に、例えば、再符号化によりビットレートが低くされたり、編集点を含むストリームの符号化時のVBVバッファの状態によっては、過去の符号化における量子化値を再利用することができない場合がある。過去の符号化における量子化値を再利用できないことにより発生する画質劣化を防ぐためには、AC成分の値を小さくして、その周波数成分を保護することができるイントラ量子化マトリクスを再符号化に用いるようにすればよい。
【0090】
図7に、MPEG2においてデフォルトとされているイントラ量子化マトリクスを示す。図7のイントラ量子化マトリクスは、高域のAC成分ほど大きな値となるように設定されている。これは、人間の視覚が、高域成分の画像の劣化に鈍感であるという特性を利用して、高域成分をより大きな値で除算することにより、画像の見た目を劣化させることなく、データを大きく削減することができるようにするためである。量子化前のDCT係数は、DC成分が大きな値となり、AC成分は小さな値となる傾向があるため、図7に示されるような、高域になるほど大きな値をとる量子化マトリクスを用いることにより、量子化後の係数は、高域成分がほとんど0となるような場合が多い。なお、MPEG2において、量子化マトリクスの各成分がとりえる値の最高値は255である。
【0091】
しかしながら、ビデオデータがノイズや細かいテクスチャ等の高周波成分を多く含む場合、量子化前のDCT係数の高域成分にも係数が残り、その値が1であるような場合が多く発生する。このようなビデオデータが、復号されて再符号化される場合、過去の符号化と同一の量子化マトリクスを用いる可能であり、かつ、量子化値も過去の符号化と同一であれば、量子化後の係数も1となって、元の値に再び復号することができる。しかしながら、上述したように、量子化値が、例えば、過去の符号化の2倍程度になってしまうと、再符号化後の復号後の値が、過去の符号化の前の値と大きく異なってしまう場合が発生する。
【0092】
このようにして、多くの成分において、値の変動が発生してしまうことにより、画質が著しく劣化してしまう。更に、このようなビデオデータに対して、再符号化が繰り返されてしまうと、同様の復号値の変動も繰り返されてしまうため、再符号化が施される毎に、更に画質が劣化してしまう。
【0093】
そこで、高域のAC成分においても、大きな値が設定されておらず、高域成分が低域成分と同一か、略同等の値で構成されている量子化マトリクスを使用することにより、再符号化時に、量子化値で除算する直前の値をある程度大きな値とすることができるので、上述した量子化値の変動による復号値の変動の影響を受けないようにすることができる。例えば、図8に示されるように、MPEG2の規格で「8」に定められているDC成分以外の全ての成分を、DC成分の2倍の値である16とした量子化マトリクスを使用することにより、上述した量子化値の変動による復号値の変動の影響を受けないようにすることができる。
【0094】
図7に示される、MPEG2においてデフォルトとされているイントラ量子化マトリクスが用いられた場合、過去の符号化時において量子化前のDCT係数成分値が9であり、対応する成分の量子化マトリクス値がq=34であり、量子化値がQ=4であれば、上述した式(1)より、量子化結果は、Sq=((32×9)/34)/(2×4)=1となり、逆量子化すると、上述した式(2)より、Siq=(2×1×34×4)/32=9となる。
【0095】
このとき、再符号化時に量子化値Qが、Q=4から、2倍のQ=8になった場合、量子化結果は、同様に、式(1)から、Sq=((32×9)/34)/(2×8)=1となり、逆量子化すると、式(2)から、Siq=(2×1×34×8)/32=17となり、量子化前のDCT係数成分値である9と、大きく異なる値となる。
【0096】
これに対して、例えば、図8の量子化マトリクスを再符号化に用いた場合、対応する成分の量子化マトリクス値がq=16であるため、量子化値Qが、Q=4から、2倍のQ=8になったとしても、再符号化時の量子化結果は、式(1)より、Sq=((32×9)/16)/(2×8)=1となり、逆量子化すると、式(2)より、Siq=(2×1×16×8)/32=8となる。すなわち、図8の量子化マトリクスを再符号化に用いた場合には、量子化前のDCT係数成分値である9と、大きく変わらない逆量子化結果を得ることができるため、量子化値の変動による復号値の変動に対して、影響を受けにくくなることが分かる。
【0097】
したがって、量子化値を再利用できない場合には、図8に示されるような、高域のAC成分においても大きな値が設定されていない(高域のAC成分の値が、DC成分の2倍以下に制限され、低域のAC成分の値と同一か、または、略等しい値となる)イントラ量子化マトリクスを使用することにより、再符号化後の画質劣化を抑制できる。
【0098】
ここでは、図8のイントラ量子化マトリクスを、高域のAC成分においても、大きな値が設定されておらず、高域成分が低域成分と同一か、略同等の値で構成されているイントラ量子化マトリクスの例として説明したが、本発明に用いられるイントラ量子化マトリクスは、図8のイントラ量子化マトリクスに限定されるものではなく、図8のイントラ量子化マトリクスのように、AC成分が全て同一の値でなくても、例えば、高域成分が、DC成分の2倍以下となるような、充分小さな値が用いられていればよい。
【0099】
レート設定部177は、図示しない操作入力部から供給されるユーザの操作入力を示す信号、または、ヒストリー抽出部171からヒストリー情報が供給されたか否かを基に、ヒストリー情報を用いて符号化を行うことが可能か否かを判断する。ヒストリー抽出部171から供給されるヒストリー情報には、上述したように、例えば、ピクチャタイプ、量子化値、動きベクトル、または、量子化マトリクスなどが含まれる。
【0100】
レート設定部177は、ヒストリー情報を用いて符号化を行うことができないと判断した場合、通常の符号化に用いられる、図7を用いて説明したイントラ量子化マトリクスを、メモリ185から読み出して、量子化部176に供給する。ヒストリー情報を用いて符号化を行うことができないと判断した場合の量子化値Qの決定方法については後述する。
【0101】
レート設定部177は、ヒストリー情報を用いて符号化を行うことが可能であると判断した場合、ヒストリー抽出部171から供給されるヒストリー情報を基に、量子化値を再利用することが可能か否かを判断する。
【0102】
ここで、量子化値を再利用することが可能であるか否かは、例えば、量子化値を再利用できるか否かを、ユーザによって予め設定可能なようにしても良いし、ヒストリー情報の中に、量子化値を再利用することが可能であるか否の情報が記載されているものとしても良いし、ヒストリー情報に示されている以前の符号化が実行された画像枠と、再符号化時の画像枠が、位置および大きさとも一致しているか否か、ヒストリー情報に示されている以前の符号化におけるビットレートが、今回の符号化のビットレートよりも小さいか否か、または、以前の符号化におけるクロマフォーマットが、今回のクロマフォーマットより大きいか否かなどの所定の条件により決定されるようにしても良い。
【0103】
そして、量子化値を再利用することが可能であると判断された場合、レート設定部177は、ヒストリー情報に含まれる量子化マトリクスを量子化部176に供給する。一方、量子化値を再利用することが可能ではないと判断された場合、レート設定部177は、画像の劣化を防ぐために、図8を用いて説明した量子化マトリクスを、メモリ185から読み出して、量子化部176に供給する。
【0104】
また、レート設定部177は、ヒストリー情報を利用しない場合、または、ヒストリー情報に含まれる量子化値を再利用することができない場合、目標発生符号量よりも実際に発生したマクロブロックの発生符号量が多いとき、発生符号量を減らすために量子化ステップサイズを大きくし、また目標発生符号量よりも実際の発生符号量が少ないとき、発生符号量を増やすために量子化ステップサイズを小さくするようになされている。
【0105】
すなわち、レート設定部177は、デコーダ側に設けられたVBVバッファに格納された可変長符号化データの蓄積状態の推移を想定することにより、仮想バッファのバッファ占有量を求めて、量子化値Qを算出し、通常の符号化に用いられる、図7を用いて説明した量子化マトリクスとともに、量子化部176に供給する。
【0106】
j番目のマクロブロックにおける仮想バッファのバッファ占有量d(j)は、次の式(3)によって表され、また、j+1番目のマクロブロックにおける仮想バッファのバッファ占有量d(j+1)は、次の式(4)によって表され、式(3)から式(4)を減算することにより、j+1番目のマクロブロックにおける仮想バッファのバッファ占有量d(j+1)は、次の式(5)として表される。
【0107】
d(j)=d(0)+B(j−1)−{T×(j−1)/MBcnt}・・・(3)
【0108】
ここで、d(0)は初期バッファ容量、B(j)は、j番目のマクロブロックにおける符号化発生ビット数、MBcntは、ピクチャ内のマクロブロック数、そして、Tは、ピクチャ単位の目標発生符号量である。
【0109】
d(j+1)=d(0)+B(j)−(T×j)/MBcnt・・・(4)
【0110】
d(j+1)=d(j)+{B(j)−B(j−1)}−T/MBcnt・・・(5)
【0111】
なお、レート設定部177は、ピクチャ内のマクロブロックが、例えば、イントラスライス部分とインタースライス部分とに分かれている場合には、イントラスライス部分のマクロブロックとインタースライス部分の各マクロブロックに割り当てる目標発生符号量TpiおよびTppをそれぞれ個別に設定することができる。
【0112】
したがって、レート設定部177は、バッファ占有量d(j+1)、および、式(6)に示される定数rを、式(7)に代入することにより、マクロブロック(j+1)の量子化インデックスデータQ(j+1)を算出し、これを量子化部176に供給する。
【0113】
r=(2×br)/pr ・・・(6)
Q(j+1)=d(j+1)×(31/r) ・・・(7)
ここで、brは、ビットレートであり、prは、ピクチャレートである。
【0114】
量子化部176は、レート設定部177から供給された量子化値Qに基づいて、次のマクロブロックにおける量子化ステップサイズを決定し、量子化ステップサイズによってDCT係数データを量子化する。
【0115】
これにより、量子化部176は、実際の発生符号量に基づいて算出された、次のピクチャの目標発生符号量にとって最適な量子化ステップサイズによって、DCT係数データを量子化することができる。
【0116】
かくして、量子化部176では、バッファ184のデータ占有量に応じて、バッファ184がオーバーフローまたはアンダーフローしないように量子化し得るとともに、デコーダ側のVBVバッファがオーバーフロー、またはアンダーフローしないように量子化した量子化DCT係数データを生成することができる。
【0117】
なお、以上においては、符号化処理を、ピクチャ単位で行う場合について説明したが、符号化処理が、ピクチャ単位ではなく、例えば、スライス単位や、マクロブロック単位で行われる場合にも、基本的に同様にして、符号化処理が実行される。
【0118】
また、図4を用いて説明した、入力画像を高ビットレートでMPEGのLongGOPに符号化し、それを復号して、低ビットレートのLongGOPに再符号化する場合に、再符号化のための画像劣化が発生しないようになされているシステムについても、同様にして本発明を適用することが可能である。図9は、本発明を適用した、入力画像を高ビットレートでMPEGのLongGOPに符号化し、それを復号して低ビットレートのLongGOPに再符号化する場合に、VBVバッファの破綻を防止しつつ、再符号化のための画像劣化が発生しないようになされているシステムの構成を示すブロック図である。なお、図4における場合と対応する部分には同一の符号を付してあり、その説明は適宜省略する。
【0119】
すなわち、図9のシステムは、LongGOP符号化装置131に代わって、LongGOP符号化装置201が備えられ、LongGOP符号化装置201は、符号化部142に代わって、最適な量子化マトリクスを用いて量子化を行うことが可能な符号化部211が設けられているほかは、基本的に、LongGOP符号化装置131と同様の構成を有する。
【0120】
LongGOP符号化装置51により符号化されたMPEGのLong GOPのストリーム(ASIストリーム)データの供給を受けたLongGOP符号化装置201は、高ビットレートのMPEGのLong GOPを、復号部141で復号するときに、必要な符号化パラメータを取得して、復号されたビデオデータと取得された符号化パラメータを符号化部211に供給する。符号化部211は、必要に応じて、供給された符号化パラメータを用いて、ビデオデータを、低ビットレートのMPEGのLong GOPとなるように符号化し、符号化された低ビットレートのMPEGのLong GOPのストリーム(ASIストリーム)データを出力する。
【0121】
図10は、符号化部211の構成を示すブロック図である。なお、図10においては、図6の符号化部161と対応する部分には同一の符号を付してあり、その説明は適宜省略する。
【0122】
すなわち、符号化部211は、ヒストリー抽出部171が省略され、復号部141から供給されるパラメータを取得してレート設定部177に供給する、パラメータ入力部221が設けられているほかは、図6の符号化部161と、基本的に同様の構成を有するものである。
【0123】
レート設定部177は、バッファ184に格納される可変長符号化データの蓄積状態を常時監視しており、蓄積状態を表す占有量情報、または、パラメータ入力部221から供給されるパラメータ情報を基に量子化ステップサイズを決定するようになされている。
【0124】
レート設定部177は、図示しない操作入力部から供給されるユーザの操作入力を示す信号、または、パラメータ入力部221からパラメータ情報が供給されたか否かを基に、パラメータ情報を用いて符号化を行うか否かを判断する。パラメータ入力部221から供給されるパラメータ情報には、上述したヒストリー情報と同様に、例えば、ピクチャタイプ、量子化値、動きベクトル、または、量子化マトリクスなどが含まれる。
【0125】
レート設定部177は、パラメータ情報を用いて符号化を行うことができないと判断した場合、通常の符号化に用いられる、図7を用いて説明した量子化マトリクスを、メモリ185から読み出して、量子化部176に供給する。
【0126】
レート設定部177は、パラメータ情報を用いて符号化を行うことが可能であると判断した場合、パラメータ入力部221から供給されるパラメータ情報を基に、量子化値を再利用することが可能か否かを判断する。
【0127】
ここで、量子化値を再利用することが可能であるか否かは、例えば、量子化値を再利用できるか否かを、ユーザによって予め設定可能なようにしても良いし、パラメータ情報の中に、量子化値を再利用することが可能であるか否の情報が記載されているものとしても良いし、パラメータ情報に示されている以前の符号化が実行された画像枠と、再符号化時の画像枠が、位置および大きさとも一致しているか否か、パラメータ情報に示されている以前の符号化におけるビットレートが、今回の符号化のビットレートよりも小さいか否か、または、以前の符号化におけるクロマフォーマットが、今回のクロマフォーマットより大きいか否かなどの所定の条件により決定される。
【0128】
そして、パラメータ情報を基に、量子化値を再利用することが可能であると判断された場合、レート設定部177は、パラメータ情報に含まれるイントラ量子化マトリクスを量子化部176に供給する。一方、量子化値を再利用することが可能ではないと判断された場合、レート設定部177は、画像の劣化を防ぐために、図8を用いて説明したイントラ量子化マトリクスを、メモリ185から読み出して、量子化部176に供給する。
【0129】
量子化部176は、レート設定部177から供給された量子化値および量子化マトリクスを基に、DCT部175から供給されたDCT係数を量子化する。
【0130】
次に、図11のフローチャートを参照して、図6の符号化部161、または、図10の符号化部211において実行される、量子化マトリクス決定処理1について説明する。
【0131】
ステップS1において、レート設定部177は、図示しない操作入力部から供給される、ユーザの操作入力を示す信号を基に、または、ヒストリー情報抽出部171からヒストリー情報、もしくは、パラメータ入力部221からパラメータの供給を受けるか否かなどを基に、ヒストリー情報もしくはパラメータに記載されている過去の符号化の情報を再利用して符号化が実行されるか否かを判断する。
【0132】
ステップS1において、過去の符号化の情報を再利用して符号化が実行されないと判断された場合、ステップS2において、レート設定部177は、通常の符号化において用いられる、図7を用いて説明したイントラ量子化マトリクスを、メモリ185から読み出して、量子化部176に供給して、処理が終了される。
【0133】
ステップS1において、過去の符号化の情報を再利用して符号化が実行されると判断された場合、ステップS3において、レート設定部177は、例えば、予め量子化値を再利用できないと設定されているか否か、ヒストリー情報やパラメータ情報の中に、量子化値を再利用することが可能であると記載されているか否か、ヒストリー情報やパラメータ情報に示されている以前の符号化が実行された画像枠と、再符号化時の画像枠が、位置および大きさとも一致しているか否か、ヒストリー情報やパラメータ情報に示されている以前の符号化におけるビットレートが、今回の符号化のビットレートよりも小さいか否か、または、以前の符号化におけるクロマフォーマットが、今回のクロマフォーマットより大きいか否かなどの所定の条件を満たしているか否かを基に、量子化値は再利用可能であるか否かを判断する。
【0134】
ステップS3において、量子化値は再利用可能であると判断された場合、ステップS4において、レート設定部177は、ヒストリー情報抽出部171から供給されたヒストリー情報、もしくは、パラメータ入力部221から供給されたパラメータに含まれている、過去の符号化におけるイントラ量子化マトリクスを、量子化部176に供給して、処理が終了される。
【0135】
ステップS3において、量子化値は再利用可能ではないと判断された場合、ステップS5において、レート設定部177は、メモリ185に保存されている、図8を用いて説明したイントラ量子化マトリクスを、量子化部176に供給して、処理が終了される。
【0136】
このような処理により、符号化に用いられる量子化値が、過去の符号化の量子化値と異なる場合において、ビットレートが小さくなるときや、再符号化時の入力ビデオデータが過去の符号化時の入力ビデオデータとは異なるものであるときでも、特に、Iピクチャにおいて、高周波成分が強調されたり、画像の解像度が落ちることなどにより発生するフリッカーを防ぐことができる。
【0137】
また、以上において説明した処理では、過去の符号化に関する情報のうち、量子化値が再利用可能ではない場合に、AC成分(特に、AC成分の高域部分)に大きな値が用いられていないイントラ量子化マトリクスが選択されて、量子化に用いられるものとして説明したが、イントラマトリクスのみならず、非イントラ(インター)量子化マトリクスについても、同様の処理により、量子化値が再利用可能であるか否かに基づいて、最適なものが選択されるようにしてもよい。
【0138】
すなわち、図6の符号化部161、または、図10の符号化部211のメモリ185に、図12に示される、MPEG2のTM5においてデフォルトとされている非イントラ量子化マトリクス以外に、図13に示される、高域のAC成分においても大きな値を用いない非イントラ量子化マトリクスとを更に保存させるようにし、レート制御部177によって、量子化値が再利用可能であるか否かに基づいて、最適なものが選択されるようにすることができる。
【0139】
図12に、MPEG2のTM5においてデフォルトとされている非イントラ量子化マトリクスを示す。図12の非イントラ量子化マトリクスも、人間の視覚が、高域成分の画像の劣化に鈍感であるという特性を利用して、高域成分をより大きな値で除算するようにするために、高域のAC成分ほど大きな値となるように設定されている。
【0140】
非イントラ量子化マトリクスにおいても、高域のAC成分においても大きな値を用いず、高域成分が低域成分と同一か、略同等の値で構成されている量子化マトリクスを使用することにより、再符号化時に、量子化値で除算する直前の値が大きくなるため、量子化値の変動による復号値の変動の影響を受けないようにすることができる。例えば、図13に示されるように、全ての成分を16とした量子化マトリクスを使用することにより、上述した量子化値の変動による復号値の変動の影響を受けないようにすることができる。
【0141】
ここでは、高域のAC成分においても大きな値を用いず、高域成分が低域成分と同一か、略同等の値で構成されている非イントラ量子化マトリクスの例として、図13に示される、全ての成分が同一である量子化マトリクスを用いて説明したが、本発明に用いられる非イントラ量子化マトリクスは、図13の非イントラ量子化マトリクスに限定されるものではなく、図13の非イントラ量子化マトリクスのように、全ての成分、または、全てのAC成分が同一の値でなくても、高域成分に、例えば、DC成分の2倍以下となるような充分小さな値や、図12を用いて説明した非イントラ量子化マトリクスよりも高域成分が小さな(例えば、32以下となる)値が用いられていればよい。
【0142】
次に、図14のフローチャートを参照して、図6の符号化部161、または、図10の符号化部211において実行される、量子化値が再利用可能であるか否かに基づいて、イントラ量子化マトリクスおよび非イントラ量子化マトリクスを選択するようになされている、量子化マトリクス決定処理2について説明する。
【0143】
ステップS21において、レート設定部177は、図示しない操作入力部から供給される、ユーザの操作入力を示す信号を基に、または、ヒストリー情報抽出部171からヒストリー情報、もしくは、パラメータ入力部221からパラメータの供給を受けるか否かなどを基に、ヒストリー情報もしくはパラメータに記載されている過去の符号化の情報を再利用して符号化が実行されるか否かを判断する。
【0144】
ステップS21において、過去の符号化の情報を再利用して符号化が実行されないと判断された場合、ステップS22において、レート設定部177は、通常の符号化において用いられる、図7を用いて説明したイントラ量子化マトリクスおよび図12を用いて説明した非イントラ量子化マトリクスを、メモリ185から読み出して、量子化部176に供給して、処理が終了される。
【0145】
ステップS21において、過去の符号化の情報を再利用して符号化が実行されると判断された場合、ステップS23において、レート設定部177は、例えば、予め量子化値を再利用できないと設定されているか否か、ヒストリー情報やパラメータ情報の中に、量子化値を再利用することが可能であると記載されているか否か、ヒストリー情報やパラメータ情報に示されている以前の符号化が実行された画像枠と、再符号化時の画像枠が、位置および大きさとも一致しているか否か、ヒストリー情報やパラメータ情報に示されている以前の符号化におけるビットレートが、今回の符号化のビットレートよりも小さいか否か、または、以前の符号化におけるクロマフォーマットが、今回のクロマフォーマットより大きいか否かなどの所定の条件を満たしているか否かを基に、量子化値は再利用可能であるか否かを判断する。
【0146】
ステップS23において、量子化値は再利用可能であると判断された場合、ステップS24において、レート設定部177は、ヒストリー情報抽出部171から供給されたヒストリー情報、もしくは、パラメータ入力部221から供給されたパラメータに含まれている、過去の符号化における、イントラ量子化マトリクスおよび非イントラ量子化マトリクスを、量子化部176に供給して、処理が終了される。
【0147】
ステップS23において、量子化値は再利用可能ではないと判断された場合、ステップS25において、レート設定部177は、メモリ185に保存されている、図8を用いて説明したイントラ量子化マトリクス、および、図13を用いて説明した非イントラ量子化マトリクスを、量子化部176に供給して、処理が終了される。
【0148】
このような処理により、符号化に用いられる量子化値が、過去の符号化の量子化値と異なる場合において、ビットレートが小さくなるときや、再符号化時の入力ビデオデータが過去の符号化時の入力ビデオデータとは異なるものであるときでも、特に、Iピクチャの画像の解像度が落ちることなどにより発生するフリッカーを防ぐことができるとともに、非イントラ部分においても、画像の劣化を防ぐようにすることができる。
【0149】
なお、以上においては、過去の符号化に関する情報が再利用されない場合に用いられる量子化マトリクスとして、符号化装置において標準的に用いられる量子化マトリクス(規格のディフォルト)が用いられるものとして説明したが、過去の符号化に関する情報が再利用されない場合に用いられる量子化マトリクス(例えば、量子化マトリクスA)がいかなる値を有するものであっても(例えば、高域成分にMPEGの規格において取りえる最高の値である255を有するものであっても)、本発明において、過去の符号化に関する情報を再利用するが、過去の符号化の量子化値を再利用しない場合に用いられる量子化マトリクス(例えば、量子化マトリクスB)が、量子化マトリクスAよりも高域成分の小さな量子化マトリクス(少なくとも、255未満の値で構成される量子化マトリクス)である場合、画像の劣化を防ぐという効果を奏することができる。
【0150】
すなわち、符号化に用いられる量子化値が、過去の符号化の量子化値と異なる場合において、量子化に量子化マトリクスBを用いることにより、量子化マトリクスAを用いる場合と比較して、ビットレートが小さくなるときや、再符号化時の入力ビデオデータが過去の符号化時の入力ビデオデータとは異なるものであるときでも、特に、Iピクチャの画像の解像度が落ちることなどにより発生するフリッカーを防ぐことができ、画像の劣化を防ぐようにすることができる。
【0151】
なお、本発明は、例えば、リオーダリングディレイの原因となるBピクチャ、および、発生符号量の多いIピクチャを使用せずに、Pピクチャのみを使用し、このPピクチャを、数スライスからなるイントラスライスと、残り全てのスライスからなるインタースライスとに区切ることにより、リオーダリングなしに符号化することができるようになされているローディレイエンコードを行う場合においても適用可能である。
【0152】
また、本発明は、ローディレイコーディングとして各フレーム画像を全てPピクチャとし、例えば、横45マクロブロック、縦24マクロブロックの画枠サイズの中でフレーム画像の上段から縦2マクロブロックおよび横45マクロブロック分の領域を1つのイントラスライス部分、他を全てインタースライス部分として設定するようにした場合においても、イントラスライス部分を縦1マクロブロック、横45マクロブロック分の領域とするなど、他の種々の大きさの領域で形成するようにした場合においても適用可能である。
【0153】
更に、上述の実施の形態においては、本発明をMPEG方式によって圧縮符号化する符号化部161、または、符号化部211に適用するようにした場合について述べたが、本発明はこれに限らず、他の種々の画像圧縮方式による符号化装置に適用するようにしても良い。
【0154】
なお、上述の実施の形態においては、ストリームデータを変換するそれぞれの変換装置やLongGOP符号化装置が、それぞれ、復号部と符号化部を有しているものとして説明したが、復号部および符号化部が、それぞれ、復号装置および符号化装置として、独立した装置として構成されている場合においても、本発明は適用可能である。
【0155】
すなわち、上述の実施の形態においては、それぞれの変換装置やLongGOP符号化装置が、ストリームデータを変換するものとして説明したが、例えば、図15に示されるように、ストリームデータを復号してベースバンド信号に変換する復号装置251、ベースバンド信号を符号化してストリームデータに変換する符号化装置252が、それぞれ独立した装置として構成されていても良い。更に、復号装置251が、供給されたストリームデータを完全に復号せず、対応する符号化装置252が、非完全に復号されたデータの対応する部分を部分的に符号化する場合においても、本発明は適用可能である。
【0156】
例えば、復号装置251が、VLC符号に対する復号および逆量子化のみを行い、逆DCT変換を実行していなかった場合、符号化装置252は、量子化および可変長符号化処理を行うが、DCT変換処理は行わない。このような部分的な符号化(中途段階からの符号化)を行う符号化装置252の量子化における量子化値を再利用するか否かの決定において、本発明を適用することができるのは言うまでもない。
【0157】
更に、復号装置251が完全に復号したベースバンド信号を、符号化装置252が中途段階まで符号化する場合(例えば、DCT変換および量子化を行うが可変長符号化処理を行わないなど)や、復号装置251が完全に復号していない(例えば、VLC符号に対する復号および逆量子化のみを行い、逆DCT変換を実行していない)ため、中途段階まで符号化されているデータに対して、符号化装置252が更に中途段階まで符号化する場合など(例えば、量子化を行うが可変長符号化処理を行わないなど)においても、本発明は適用可能である。
【0158】
更に、このような部分的な復号を行う符号化装置251と部分的な符号化を行う符号化装置252で構成されたトランスコーダ261においても、本発明は適用可能である。このようなトランスコーダ261は、例えば、スプライシングなどの編集を行う編集装置262が利用される場合などに用いられる。
【0159】
上述した一連の処理は、ハードウエアにより実行させることもできるが、ソフトウエアにより実行させることもできる。この場合、例えば、SDTI CP−ASI変換装置151や、Long GOP符号化装置201は、図16に示されるようなパーソナルコンピュータ301により構成される。
【0160】
図16において、CPU(Central Processing Unit)311は、ROM(Read Only Memory)312に記憶されているプログラム、または記憶部318からRAM(Random Access Memory)313にロードされたプログラムに従って、各種の処理を実行する。RAM313にはまた、CPU311が各種の処理を実行する上において必要なデータなども適宜記憶される。
【0161】
CPU311、ROM312、およびRAM313は、バス314を介して相互に接続されている。このバス314にはまた、入出力インタフェース315も接続されている。
【0162】
入出力インタフェース315には、キーボード、マウスなどよりなる入力部316、ディスプレイやスピーカなどよりなる出力部317、ハードディスクなどより構成される記憶部318、モデム、ターミナルアダプタなどより構成される通信部319が接続されている。通信部319は、インターネットを含むネットワークを介しての通信処理を行う。
【0163】
入出力インタフェース315にはまた、必要に応じてドライブ320が接続され、磁気ディスク331、光ディスク332、光磁気ディスク333、もしくは、半導体メモリ334などが適宜装着され、それらから読み出されたコンピュータプログラムが、必要に応じて記憶部318にインストールされる。
【0164】
一連の処理をソフトウエアにより実行させる場合には、そのソフトウエアを構成するプログラムが、専用のハードウエアに組み込まれているコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば汎用のパーソナルコンピュータなどに、ネットワークや記録媒体からインストールされる。
【0165】
この記録媒体は、図16に示されるように、装置本体とは別に、ユーザにプログラムを供給するために配布される、プログラムが記憶されている磁気ディスク331(フロッピディスクを含む)、光ディスク332(CD−ROM(Compact Disk−Read Only Memory),DVD(Digital Versatile Disk)を含む)、光磁気ディスク333(MD(Mini−Disk)(商標)を含む)、もしくは半導体メモリ334などよりなるパッケージメディアにより構成されるだけでなく、装置本体に予め組み込まれた状態でユーザに供給される、プログラムが記憶されているROM312や、記憶部318に含まれるハードディスクなどで構成される。
【0166】
なお、本明細書において、記録媒体に記憶されるプログラムを記述するステップは、含む順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的もしくは個別に実行される処理をも含むものである。
【0167】
なお、本明細書において、システムとは、複数の装置により構成される装置全体を表すものである。
【0168】
【発明の効果】
このように、本発明によれば、画像データを符号化することができる。特に、過去の符号化において用いられた量子化値が再利用できない場合に、高域成分が、255未満の値で構成されている量子化マトリクスを用いて量子化を実行することができるので、画質の劣化を防ぐようにすることができる。
【0169】
また、他の本発明によれば、画像データを符号化することができるほか、過去の符号化において用いられた情報を再利用するが、量子化値が再利用できない場合に、過去の符号化において用いられた情報を再利用できない場合に用いられる量子化マトリクスよりも小さな値で構成されている量子化マトリクスを用いて量子化を実行することができるので、画質の劣化を防ぐようにすることができる。
【0170】
また、他の本発明によれば、画像データを変換することができるほか、変換処理における符号化処理において、過去の符号化において用いられた量子化値が再利用できない場合に、高域成分が、255未満以下の値で構成されている量子化マトリクスを用いて量子化を実行することができるので、画質の劣化を防ぐようにすることができる。
【0171】
更に、他の本発明によれば、画像データを変換することができるほか、変換処理における符号化処理において、過去の符号化において用いられた情報を再利用するが、量子化値が再利用できない場合に、過去の符号化において用いられた情報を再利用できない場合に用いられる量子化マトリクスよりも小さな値で構成されている量子化マトリクスを用いて量子化を実行することができるので、画質の劣化を防ぐようにすることができる。
【図面の簡単な説明】
【図1】フレーム編集を行う場合の再符号化が行われる従来のシステムを説明するための図である。
【図2】MPEGのLong GOPのビットレートを変更して再符号化することが可能な従来のシステムについて説明するための図である。
【図3】フレーム編集を行う場合の再符号化が行われる従来のシステムにおいて、符号化履歴情報を利用する場合について、説明するための図である。
【図4】MPEGのLong GOPのビットレートを変更して再符号化することが可能な従来のシステムで符号化履歴情報を利用する場合について、説明するための図である。
【図5】本発明を適用した、フレーム編集を行う場合の再符号化が行われるシステムの構成を示すブロックである。
【図6】図5の符号化部の構成を示すブロック図である。
【図7】MPEG2においてデフォルトとされているイントラ量子化マトリクスについて説明するための図である。
【図8】本発明において用いられるイントラ量子化マトリクスについて説明するための図である。
【図9】本発明を適用した、MPEGのLong GOPのビットレートを変更して再符号化することが可能なシステムの構成を示すブロック図である。
【図10】図9の符号化部の構成を示すブロック図である。
【図11】量子化マトリクス決定処理1について説明するためのフローチャートである。
【図12】MPEG2においてデフォルトとされている非イントラ量子化マトリクスについて説明するための図である。
【図13】本発明において用いられる非イントラ量子化マトリクスについて説明するための図である。
【図14】量子化マトリクス決定処理2について説明するためのフローチャートである。
【図15】本発明を適用可能な異なる装置の構成について説明するための図である。
【図16】パーソナルコンピュータの構成を示すブロック図である。
【符号の説明】
1 SDI−ASI変換装置, 3 フレーム編集装置, 51 Long GOP符号化装置, 61 復号部, 62 符号化部, 101 ASI−SDTI変換装置, 111 復号部, 112 符号化部, 121 復号部, 141復号部, 151 SDTI CP−ASI変換部, 161 符号化部, 171 ヒストリー抽出部, 172 画像並べ替え部, 173 演算部, 174 動きベクトル検出部, 175 DCT部, 176 量子化部, 177 レート設定部, 178 VLC部, 179 逆量子化部, 180 逆DCT部, 181 演算部, 182 動き補償部, 183 フレームメモリ, 184 バッファ, 185 メモリ, 201 Long GOP符号化装置, 211 符号化部, 221 パラメータ入力部
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing device and an image processing method, an information processing device, a recording medium, and a program, and more particularly to re-encoding corresponding data using information on encoding performed in the past. The present invention relates to an image processing device and an image processing method, an information processing device, a recording medium, and a program that are suitable for use when possible.
[0002]
[Prior art]
For example, in a system for transmitting a moving image signal to a remote place such as a video conference system and a video telephone system, in order to efficiently use a transmission path, line correlation or inter-frame correlation of a video signal is used. The image signal is compression-encoded.
[0003]
When an image signal is compression-encoded, encoding is performed so that a generated bit stream has a predetermined bit rate. However, in actual operation, it may be necessary to convert the bit rate of the bit stream depending on the transmission path.
[0004]
Further, for example, when a transmitted image signal is edited in a broadcasting station, the editing is performed in units of seconds, so that the image information of a frame is preferably independent of the image information of another frame. Therefore, a long GOP having a large number of frames constituting a GOP (Group of Pictures), which is a set of frames having correlated information, so that image quality does not deteriorate even when transferred at a low bit rate (for example, 3 to 9 Mbps). And a Short GOP, which is transferred at a high bit rate (18 to 50 Mbps) and has a small number of frames constituting the GOP, needs to be mutually converted.
[0005]
For example, a system capable of editing a frame after encoding uncompressed data into MPEG Long GOP stream data will be described with reference to FIG.
[0006]
The SDI (Serial Digital Interface) -ASI (Asynchronous Serial Interface) converter 1 encodes the supplied SDI input image into an MPEG Long GOP (ASI stream), and encodes the encoded MPEG Long GOP. Output stream data. The SDI is an uncompressed digital video and audio transmission system based on the point-to-point transmission, and is defined in ANSI (American National Standards Institute) / SMPTE (Society of Motion picture rule in the 9th edition). ing.
[0007]
The ASI-SDTI CP (Serial Data Transport Content Contents Package) converter 2 temporarily decodes the supplied MPEG Long GOP stream data in the decoding unit 21, and then in the encoding unit 22, all the intra frames (All Intra ), And outputs the coded stream data (SDTI CP stream) of all the intra frames to the frame editing device 3 of the SDTI CP interface. SDTI CP is a global standard for a transmission method for transmitting (synchronous transfer) MPEG data in real time, which has been standardized as SMPTE 326M by the promotion of the Pro-MPEG Forum.
[0008]
The stream data edited by the frame editing device 3 is supplied to the SDTI CP-ASI conversion device 4. The SDTI CP-ASI conversion device 4 once decodes the supplied stream data of all the intra frames in the decoding unit 31, and then encodes the encoded data into the Long GOP of MPEG in the encoding unit 32, and performs the encoding. It outputs stream data (ASI stream) of MPEG Long GOP.
[0009]
A system that can encode an input image at a high bit rate into an MPEG Long GOP, decode it, and re-encode it into a low bit rate MPEG Long GOP will be described with reference to FIG.
[0010]
After the supplied SDI input image is once decoded by the decoding unit 61, the Long GOP encoding device 51 encodes the encoded SDI input image into a high bit rate MPEG Long GOP and encodes the encoded SDI image. It outputs MPEG Long GOP stream (ASI stream) data. The Long GOP encoding device 52 once decodes the supplied high bit rate MPEG Long GOP by the decoding unit 71, and then encodes the low bit rate MPEG Long GOP by the encoding unit 72. And outputs encoded low bit rate MPEG Long GOP stream (ASI stream) data.
[0011]
As described above, when the encoding and decoding of the image information are repeated, if the encoding parameter used for each encoding changes, the image information deteriorates. In order to prevent the deterioration of the image information, there is a technique capable of suppressing the deterioration of the image due to the re-encoding by using the encoding history information inserted in the user data area of the picture layer of the bit stream ( For example, see Patent Document 1).
[0012]
[Patent Document 1]
JP 2000-059788 A
[0013]
For example, a case where encoding history information is used in a system capable of performing frame editing after encoding uncompressed data into MPEG Long GOP stream data will be described with reference to FIG. The parts corresponding to those in FIG. 1 are denoted by the same reference numerals, and description thereof will be omitted as appropriate.
[0014]
That is, the ASI-SDTI CP converter 101 receives the supply of the MPEG Long GOP (ASI stream) generated by being encoded by the SDI-ASI converter 1 similar to FIG.
[0015]
Since the Long GOP of MPEG is composed of three types of pictures (I picture, P picture, and B picture) having different encoding characteristics, the video data obtained by decoding the picture and the I picture depend on the frame. Some have the features of pictures, P pictures, and B pictures. Therefore, when re-encoding this video data using the Long GOP of MPEG, if video data having the characteristics of I picture, P picture, or B picture is encoded with different picture types, Image degradation may occur. For example, before decoding, if video data that was a B-picture, which tends to have more distortion than an I-picture and a P-picture, is encoded as an I-picture, surrounding pictures are predicted using the I-picture with a large distortion as a reference picture. Since the image is coded, the image quality deteriorates.
[0016]
In order not to cause the image quality deterioration due to such re-encoding, the ASI-SDTICP conversion apparatus 101 once decodes the supplied MPEG Long GOP stream data in the decoding When encoding to be an intra frame, the encoding performed in the past, that is, the parameters such as the picture type and quantization value of the encoding by the SDI-ASI conversion device 1 are all performed in the SDTI-CP stream of the intra frame. The information is added to the above as history information (History data) of SMPTE 328M and supplied to the frame editing device 3.
[0017]
The stream data edited by the frame editing device 3 is supplied to the SDTI CP-ASI conversion device 102. In the SDTI CP-ASI conversion apparatus 102, the decoding unit 121 decodes the supplied stream data of all intra frames with history information. The encoding unit 122 re-encodes it into a Long GOP using necessary parameters such as a picture type and a quantization value included in the decoded history information, and outputs the Long GOP.
[0018]
Further, as described with reference to FIG. 2, in a system capable of encoding an input image at a high bit rate into an MPEG Long GOP, decoding the image, and re-encoding the input image into a low bit rate MPEG Long GOP, A case where image degradation for re-encoding is prevented from occurring will be described with reference to FIG. Parts corresponding to those in FIG. 2 are denoted by the same reference numerals, and description thereof will be omitted as appropriate.
[0019]
That is, the Long GOP encoding device 131, which receives the supply of the MPEG Long GOP stream (ASI stream) data encoded by the Long GOP encoding device 51, decodes the high bit rate MPEG Long GOP by the decoding unit 141. Then, necessary encoding parameters are acquired, and the decoded video data and the acquired encoding parameters are supplied to the encoding unit 142. The encoding unit 142 encodes the video data into a low bit rate MPEG Long GOP using the supplied encoding parameters, and encodes the encoded low bit rate MPEG Long GOP stream ( (ASI stream) data.
[0020]
[Problems to be solved by the invention]
As described above, coding is performed by reusing past coding information (picture type, motion vector, quantization value, etc. of coding performed in the past) using history information or coding parameters. By doing so, it is possible to prevent image quality deterioration. However, when the bit rate is reduced by re-encoding as in the system described with reference to FIG. 4, if the quantized value is used as it is, the bit rate cannot be reduced. Can not do it. In addition, in the system described with reference to FIG. 3, for example, depending on the state of the VBV buffer at the time of encoding a stream including an edit point, it may not be possible to perform encoding by reusing the quantization value.
[0021]
As described above, when the past information is reused and encoded using the history information or the encoding parameter, the quantization value of the history information or the information included in the encoding parameter is used. If cannot be reused, the quantization value is determined by rate control such as TM5 used in normal encoding. That is, the quantized value used for encoding differs from the quantized value of past encoding.
[0022]
Furthermore, when an encoding device or transcoder in which encoding has been performed in the past is different from an encoding device or transcoder that performs re-encoding and the rate control method or the like differs depending on the device, the past encoding and the next encoding are performed next. In the coding to be performed, the quantization values are likely to be different.
[0023]
If the quantized value used in the re-encoding is different from the quantized value in the past encoding, the difference may cause image quality degradation. For example, when there is a difference between the quantization value in the past encoding and the quantization value which is about twice as large, the image quality is remarkably degraded, and the quantization value in the past encoding is reduced by 2 times. When the difference of the quantization value is twice or more, the image quality is further remarkably deteriorated.
[0024]
The following can be considered as the cause, for example.
[0025]
When video data to be encoded contains many high-frequency components such as noise and fine texture, DCT coefficients which do not become 0 even after quantization are widely distributed to higher orders. For example, consider a case where a result of quantizing a certain higher-order coefficient in an intra macroblock is 1. In re-encoding, if this part is quantized with a double quantization value, the result will be 0.5 and will be 1 again due to rounding. Furthermore, since it is inversely quantized at the time of decoding and multiplied by twice the quantized value, the coefficient value is twice the coefficient value at the time of past encoding. Therefore, when inverse DCT is performed, high frequency components such as noise and fine texture of video data are emphasized as compared with input video data at the time of past encoding.
[0026]
Further, when the same part is quantized using a quantization value that is more than twice in the re-encoding, the coefficient is rounded to 0, and the resolution is reduced. In such a case, in an encoding apparatus that performs the quantization calculation by truncation, the quantization value used in the re-encoding becomes slightly larger than the past quantization value, and the quantization result becomes 0. Therefore, all data that is 1 in the past becomes 0, the resolution is reduced, and the image is degraded.
[0027]
In particular, when a portion that was an I-picture in the past encoding is re-encoded as an I-picture again, image quality degradation such as enhancement of high-frequency components and reduced resolution is likely to occur. Therefore, in the re-encoded video data, the high frequency component is emphasized only in the I picture portion or the resolution is reduced. Therefore, only the portion corresponding to the I picture in the reproduced video data is emphasized. As a result, flicker occurs.
[0028]
When the bit rate is reduced, the above-described image quality degradation is likely to occur because the quantization value is likely to increase. Even if the bit rate remains the same, if the input video data at the time of re-encoding is different from the input video data at the time of past encoding, the bit rate of the I picture, P picture, and B picture A difference occurs in the allocation of generation amount. Even in such a case, since the quantization value may be different from that at the time of the past encoding, image quality degradation may occur depending on the magnitude of the difference from the past quantization value. I will.
[0029]
The present invention has been made in view of such a situation, and in the case of encoding by reusing parameters in past encoding, when quantization values cannot be reused, image quality degradation occurs. It is to be able to prevent that.
[0030]
[Means for Solving the Problems]
A first image processing apparatus according to the present invention includes: an obtaining unit that obtains information related to encoding performed on image data in the past; an orthogonal transform unit that performs orthogonal transform on image data; Storage means for storing a first quantization matrix composed of the following values: determination means for determining a quantization value and a quantization matrix used for quantization; and a quantization value and a quantization value determined by the determination means. Using a quantization matrix, performing quantization, and determining the information obtained by the obtaining unit when the quantization value included in the information obtained by the obtaining unit is reusable. Is determined to be used for quantization, and if the quantization value included in the information is not reusable, the first quantization matrix stored in the storage unit is determined. And determining the use Coca.
[0031]
The first quantization matrix may be configured such that the high-frequency component has a value equal to or less than twice the DC component.
[0032]
In the first quantization matrix, the high-frequency component may be configured with a value of 32 or less.
[0033]
An encoding unit for encoding the quantized coefficient data quantized by the quantization unit may be further provided.
[0034]
The first quantization matrix stored in the storage unit may include a quantization matrix used for quantizing an intra macroblock.
[0035]
The first quantization matrix stored in the storage means includes a third quantization matrix used for quantization of intra macroblocks and a fourth quantization matrix used for quantization of non-intra macroblocks. be able to.
[0036]
The storage means may further store a third quantization matrix used when the information obtained by the obtaining means is not reused in the quantization, and the determining means may store the third quantization matrix obtained by the obtaining means. It is possible to further determine whether or not the obtained information is reused, when the information is reused and the quantization value included in the information obtained by the obtaining unit is reusable , The determining means can determine to use the second quantization matrix included in the information acquired by the acquiring means for quantization, and the information is reused and included in the information. If the quantized value is not reusable, the determining means may be caused to determine that the first quantization matrix stored in the storage means is used for quantization, and the information is re-used. If not use, the determining means, the third quantization matrix stored in the storage means may be adapted to determine that used in quantization.
[0037]
The AC components of the first quantization matrix stored by the storage unit can all have the same value.
[0038]
A first image processing method according to the present invention includes: a determination step of determining whether a quantization value included in information regarding encoding performed in the past on image data is used for quantization; When it is determined that the quantization value is not used for the quantization by the processing of the above, the first quantization matrix in which the high frequency component is configured with a value of less than 255 is used as the quantization matrix used for the quantization. When it is determined that the quantization value is used for the quantization by the processing of the first selection step of selecting and the determination step, the second quantization matrix included in the information is used as the quantization matrix used for the quantization. And a second selecting step of selecting.
[0039]
The program recorded on the first recording medium of the present invention determines whether or not a quantization value included in information on encoding performed in the past on image data is used for quantization. When it is determined that the quantization value is not used for the quantization by the processing of the step and the determination step, the first quantization matrix including the high-frequency component having a value less than 255 is converted to the quantization. When it is determined that the quantization value is used for quantization by the processing of the first selection step of selecting a quantization matrix to be used and the determination step, the second quantization matrix included in the information is used for quantization. And a second selection step of selecting a quantization matrix to be used.
[0040]
A first program according to the present invention includes a determining step of determining whether a quantization value included in information on encoding performed in the past on image data is used for quantization, and a processing of the determining step. , When the quantization value is determined not to be used for quantization, the first quantization matrix in which the high-frequency component is configured with a value less than 255 is selected as the quantization matrix used for quantization. When it is determined that the quantization value is used for the quantization by the processing of the first selection step and the determination step, the second quantization matrix included in the information is selected as the quantization matrix used for the quantization. And a second selecting step.
[0041]
According to the first image processing apparatus, the image processing method, and the program of the present invention, information relating to encoding performed on image data in the past is acquired, and a quantization value included in the information is determined by the quantization. If the quantization value included in the information is determined not to be used for the quantization, it is determined whether the high-frequency component is less than 255. If it is determined that the matrix is used for quantization and the quantization value included in the information is used for quantization, the second quantization matrix included in the information is used for quantization.
[0042]
A second image processing apparatus according to the present invention includes: an obtaining unit that obtains information regarding encoding performed in the past on image data; an orthogonal transform unit that performs orthogonal transform on the image data; Storage means for storing a first quantization matrix used when acquired information is not reused, and a second quantization matrix in which each component has a value equal to or smaller than the first quantization matrix; Determining means for determining a quantization value and a quantization matrix used for, and a quantization means for performing quantization using the quantization value and the quantization matrix determined by the determination means, When the information is reused and the quantization value included in the information acquired by the acquisition unit is reusable, the third quantization included in the information acquired by the acquisition unit If it is determined that the tricks are to be used for quantization and the information is reused and the quantization value included in the information is not reusable, the second quantization matrix stored in the storage means is quantized. If the information is not reused, it is determined that the first quantization matrix stored in the storage unit is used for quantization.
[0043]
A second image processing method according to the present invention includes a first determining step of determining whether to reuse information on encoding performed in the past on image data, and a process of the first determining step. If it is determined that the past coding information is not reused, a first selection step of selecting a predetermined first quantization matrix as a quantization matrix used for quantization, and a first determination step When it is determined by the processing that information on past encoding is to be reused, a second determination step of determining whether or not a quantization value included in the information is used for quantization; When it is determined by the processing of the determination step that the quantization value is not used for the quantization, the second quantization matrix having each component having a value equal to or less than the first quantization matrix is used for the quantization used for the quantization. Matrix and When it is determined that the quantized value is used for quantization by the processing of the second selection step of selecting by using and the second determination step, the third quantization matrix included in the information is used for quantization. And a third selecting step of selecting as a quantization matrix.
[0044]
The program recorded on the second recording medium according to the present invention includes a first determining step of determining whether or not information relating to encoding performed in the past on image data is to be reused; When it is determined by the processing of the determining step that the information of the past encoding is not reused, a first selecting step of selecting a predetermined first quantization matrix as a quantization matrix used for quantization; When it is determined by the processing of the first determining step that information on past encoding is reused, a second determining step of determining whether a quantization value included in the information is used for quantization. And when the second determination step determines that the quantized value is not used for quantization, the second quantized matrix having each component having a value equal to or less than the first quantized matrix is quantized. For conversion When it is determined that the quantization value is used for the quantization by the processing of the second selection step of selecting the quantization matrix to be used as the quantization matrix and the second determination step, the third quantization matrix included in the information is determined by: And a third selection step of selecting a quantization matrix used for quantization.
[0045]
According to a second program of the present invention, a first determining step of determining whether or not information relating to encoding performed in the past on image data in the past is to be reused, and a process of the first determining step include: Is determined not to be reused, the first selection step of selecting a predetermined first quantization matrix as a quantization matrix used for quantization and the processing of the first determination step A second determining step of determining whether or not the quantization value included in the information is used for quantization when it is determined that information on past encoding is reused; and a second determining step. When it is determined that the quantization value is not used for the quantization by the processing of the above, the second quantization matrix in which each component has a value equal to or less than the first quantization matrix is set as the quantization matrix used for the quantization. When it is determined that the quantization value is used for the quantization by the processing of the second selection step of selecting and the second determination step, the third quantization matrix included in the information is used for the quantization used for the quantization. And a third selecting step of selecting as a conversion matrix.
[0046]
According to the second image processing apparatus, the image processing method, and the program of the present invention, information on encoding performed on image data in the past is obtained, and whether or not the image data is reused is determined. Is determined not to be reused, a predetermined first quantization matrix is selected as a quantization matrix used for quantization, and it is determined that information related to past encoding is reused. In this case, it is determined whether or not the quantization value included in the information is used for quantization. If it is determined that the quantization value is not used for quantization, each component is equal to or smaller than the first quantization matrix. Is selected as the quantization matrix used for quantization, and when it is determined that the quantization value is used for quantization, the third quantization matrix included in the information is It is selected as the quantization matrix used in quantization.
[0047]
A first information processing apparatus according to the present invention includes decoding means for completely or incompletely decoding supplied image data, and baseband image data completely decoded by the decoding means, or unreadable by decoding means. Encoding means for completely encoding the image data that has been completely decoded and generated up to the intermediate stage, up to the intermediate stage or completely, Acquisition means for acquiring information on the performed encoding, orthogonal transformation means for orthogonally transforming the image data, and storage means for storing a first quantization matrix in which the high-frequency component is constituted by a value less than 255 Deciding means for deciding a quantization value and a quantization matrix used for quantization, and quantization for performing quantization using the quantization value and the quantization matrix decided by the deciding means. And determining the second quantization matrix included in the information obtained by the obtaining unit when the quantization value included in the information obtained by the obtaining unit is reusable. If it is determined that the quantization value included in the information is not reusable, it is determined that the first quantization matrix stored in the storage unit is used for quantization.
[0048]
In the first information processing apparatus of the present invention, the supplied image data is completely or incompletely decoded, and the completely decoded baseband image data or the image data encoded to an intermediate stage is , Up to an intermediate stage, or complete encoding, in the encoding, information about the encoding performed in the past on the image data is obtained, the image data is orthogonally transformed, and the high frequency component is less than 255 A first quantization matrix composed of values is stored, a quantization value and a quantization matrix used for quantization are determined, and the determined quantization value and quantization matrix are used to perform quantization. Executed, and in the determination of the quantization value and the quantization matrix, if the quantization value included in the obtained information is reusable, the second value included in the obtained information is used. Coca matrix to be determined to be used in quantization, the quantization value contained in the information may not be reusable, the first quantization matrix stored be used in quantization is determined.
[0049]
The second information processing apparatus of the present invention decodes the supplied image data completely or incompletely, and decodes the image data completely or incompletely decoded by the decoding means. Encoding means for encoding in a method corresponding to the state of decoding by the means, wherein the encoding means acquires information on encoding performed in the past on the image data, and orthogonalizes the image data. Orthogonal transformation means for transforming, a first quantization matrix used when information acquired by the acquisition means is not reused in quantization, and a second quantization matrix in which each component has a value equal to or less than the first quantization matrix. Storage means for storing the second quantization matrix, determination means for determining a quantization value and a quantization matrix used for quantization, and quantization value and quantization determined by the determination means. Using the tricks, comprising quantization means for performing quantization, the determination means, if the information is reused, and if the quantization value included in the information acquired by the acquisition means can be reused, It decides to use the third quantization matrix included in the information obtained by the obtaining means for quantization, and stores the information if the information is reused and the quantization value included in the information is not reusable. A decision is made to use the second quantization matrix stored in the means for quantization and, if the information is not reused, a decision is made to use the first quantization matrix stored in the storage means for quantization. It is characterized by doing.
[0050]
In the second information processing apparatus of the present invention, the supplied image data is completely or incompletely decoded, and the image data is encoded by a method corresponding to the decoding state. Information relating to encoding performed in the past is obtained, image data is orthogonally transformed, and in quantization, a first quantization matrix used when the obtained information is not reused, and each component is a first quantization matrix. Is stored, a quantization value and a quantization matrix used for quantization are determined, and using the determined quantization value and the quantization matrix, If the quantization is performed, the information is reused, and the quantization value included in the information acquired by the acquisition unit is reusable, the third information included in the acquired information is used. If it is determined that the quantization matrix is to be used for quantization, the information is reused, and the quantization value included in the information is not reusable, the stored second quantization matrix is used for quantization. If it is decided to use it and the information is not reused, it is decided to use the stored first quantization matrix for quantization.
[0051]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described. In order to clarify the correspondence between each means of the invention described in the claims and the following embodiments, parentheses after each means or step are described. The following describes the features of the present invention by adding corresponding embodiments (however, examples). However, of course, this description does not mean that the invention is limited to the description of each means or step.
[0052]
The image processing apparatus according to claim 1 (for example, the encoding unit 161 in FIG. 5, the encoding unit 211 in FIG. 9, or the encoding apparatus 252 in FIG. 15) performed image data in the past. An acquisition unit (for example, the history extraction unit 171 in FIG. 6 or the parameter input unit 221 in FIG. 10) for acquiring information (for example, history information or a parameter) related to encoding, and an orthogonal transform for orthogonally transforming image data Means (for example, the DCT unit 175 in FIG. 6 or FIG. 10) and a first quantization matrix (for example, the quantization matrix in FIG. 8 or FIG. 13) in which the high-frequency component is constituted by a value less than 255 Storage means for storing (for example, the memory 185 in FIG. 6 or FIG. 10) and determination means for determining the quantization value and the quantization matrix used for quantization (for example, FIG. 6 or FIG. 0 (a rate setting unit 177) and a quantization unit (for example, the quantization unit 176 in FIG. 6 or FIG. 10) that performs quantization using the quantization value and the quantization matrix determined by the determination unit. And the determining unit uses the second quantization matrix included in the information obtained by the obtaining unit for quantization when the quantization value included in the information obtained by the obtaining unit is reusable. If the quantization value included in the information is not reusable, it is determined that the first quantization matrix stored in the storage unit is used for quantization.
[0053]
The image processing apparatus according to claim 4, further comprising an encoding unit (for example, the VLC unit 178 in FIG. 6 or FIG. 10) for encoding the quantized coefficient data quantized by the quantization unit. Features.
[0054]
The image processing apparatus according to claim 7, wherein the storage unit is configured to store the third quantization matrix (for example, the quantization matrix of FIG. 7 or FIG. 12) used when the information acquired by the acquisition unit is not reused in the quantization. (Determination matrix), and the determining unit further determines whether the information acquired by the acquiring unit is reused, and the information is reused and included in the information acquired by the acquiring unit. When the quantized value is reusable, the deciding unit decides to use the second quantization matrix included in the information acquired by the acquiring unit for quantization, and the information is reused, and Is not reusable, the decision means decides to use the first quantization matrix stored in the storage means for quantization, and if the information is not reused, the decision means , The third quantization matrix stored in the storage means and determines that used in quantization.
[0055]
An image processing method according to claim 9, a program recorded on a recording medium according to claim 10, and a program according to claim 11, which are information relating to encoding performed on image data in the past. A determination step of determining whether or not a quantization value included in (for example, history information or a parameter) is used for quantization (for example, the processing in step S3 in FIG. 11 or the processing in step S23 in FIG. 14) Processing) and the determination step, when it is determined that the quantization value is not used for quantization, the first quantization matrix (for example, FIG. 8 or the quantization matrix of FIG. 13) as a quantization matrix used for quantization (for example, the processing of step S5 of FIG. 11 or FIG. 1). In the case where it is determined that the quantization value is used for quantization by the processing of step S25) and the determination step, the second quantization matrix included in the information is selected as the quantization matrix used for quantization. (For example, the process of step S4 in FIG. 11 or the process of step S24 in FIG. 14).
[0056]
The image processing device according to claim 12 (for example, the encoding unit 161 in FIG. 5, the encoding unit 211 in FIG. 9, the encoding device 252 in FIG. 15, or the transcoder 261 in FIG. 15) An acquisition unit (for example, the history extraction unit 171 in FIG. 6 or the parameter input unit 221 in FIG. 10) for acquiring information (for example, history information or a parameter) regarding encoding performed in the past on the data; An orthogonal transform unit for orthogonally transforming image data (for example, DCT unit 175 in FIG. 6 or 10), and a first quantization matrix used when information acquired by the acquisition unit is not reused in quantization. (For example, the quantization matrix of FIG. 7 or FIG. 12), and a second quantization matrix in which each component has a value equal to or less than the first quantization matrix. (For example, the memory 185 of FIG. 6 or FIG. 10), and a determination unit (for example, a memory 185 of FIG. 6 or FIG. 10) for determining a quantization value and a quantization matrix used for quantization. For example, a quantization unit (for example, FIG. 6 or FIG. 10) that performs quantization using the quantization value and the quantization matrix determined by the determination unit by the rate setting unit 177 of FIG. 6 or FIG. And a deciding unit 176), and when the information is reused and the quantized value included in the information acquired by the acquiring unit is reusable, the information acquired by the acquiring unit is Is determined to be used for quantization, and if the information is reused and the quantization value included in the information is not reusable, the third quantization matrix is stored in the storage unit. Determining that the second quantization matrix is used for quantization, and determining that the first quantization matrix stored in the storage unit is used for quantization when the information is not reused. I do.
[0057]
An image processing method according to claim 13, a program recorded on a recording medium according to claim 14, and a program according to claim 15, which are information relating to encoding performed on image data in the past. (For example, the process of step S1 in FIG. 11 or the process of step S21 in FIG. 14) for determining whether or not to reuse (for example, history information or a parameter); When it is determined that the information of the past encoding is not reused by the processing of the determining step of, the predetermined first quantization matrix (for example, the quantization matrix of FIG. 7 or 12) is used for quantization. A first selection step of selecting a quantization matrix (for example, the processing of step S2 in FIG. 11 or the processing of step S22 in FIG. 14) and a first determination step When it is determined that the information on the past encoding is reused by the processing of the step (a), a second determination step (for example, to determine whether or not the quantized value included in the information is used for the quantization (for example, If it is determined that the quantization value is not used for quantization by the processing of step S3 of FIG. 11 or the processing of step S23 of FIG. The second selection step of selecting a second quantization matrix having a value equal to or less than the quantization matrix (for example, the quantization matrix of FIG. 8 or 13) as a quantization matrix used for quantization (for example, FIG. 11). If the quantization value is determined to be used for quantization by the processing in step S5 of the above or the processing in step S25 in FIG. 14) and the processing in the second determination step, the third information included in the information is determined. The quantization matrix, characterized in that it comprises a third selection step of selecting a quantization matrix used for quantization (for example, step S4 in FIG. 11, or the process of step S24 in FIG. 14).
[0058]
The information processing device according to claim 16 (for example, the encoding unit 161 in FIG. 5, the encoding unit 211 in FIG. 9, the encoding device 252 in FIG. 15, or the transcoder 261 in FIG. 15) supplies Decoding means (for example, the decoding unit 121 in FIG. 5, the decoding unit 141 in FIG. 9, or the decoding device 251 in FIG. 15) for completely or incompletely decoding the decoded image data; Encoding means (for example, the encoding unit 161 in FIG. 5, the encoding unit 211 in FIG. 9, or the encoding unit 211 in FIG. Encoding device 252), and the encoding unit acquires information (for example, history information or a parameter) related to encoding performed on image data in the past. The history extracting unit 171 in FIG. 6 or the parameter input unit 221 in FIG. 10), orthogonal transform means for orthogonally transforming image data (for example, the DCT unit 175 in FIG. 6 or FIG. 10), and the high-frequency component is 255 A storage unit (for example, the memory 185 of FIG. 6 or 10) for storing a first quantization matrix (for example, the quantization matrix of FIG. 8 or 13) having a value less than Quantization is performed using a determination unit (for example, the rate setting unit 177 in FIG. 6 or FIG. 10) that determines a quantization value and a quantization matrix to be obtained, and the quantization value and the quantization matrix determined by the determination unit. (For example, the quantization unit 176 of FIG. 6 or FIG. 10), and the determination unit reuses the quantization value included in the information acquired by the acquisition unit. If the quantization value included in the information is not reusable, the second quantization matrix included in the information acquired by the acquisition unit is determined to be used for quantization. Determining that the first quantization matrix is used for quantization.
[0059]
The information processing device according to claim 17 (for example, the SDIT CP-ASI conversion device 151 in FIG. 5 or the Long GOP encoding device 201 in FIG. 9) decodes the supplied image data completely or incompletely. The decoding unit (for example, the decoding unit 121 in FIG. 5, the decoding unit 141 in FIG. 9, or the decoding device 251 in FIG. 15) and the image data completely or incompletely decoded by the decoding unit Encoding means (for example, the encoding unit 161 in FIG. 5, the encoding unit 211 in FIG. 9, or the encoding device 252 in FIG. 15) for encoding by a method corresponding to the state of decoding; Means for acquiring information (for example, history information or parameters) relating to encoding performed on image data in the past (for example, the history extracting unit 17 in FIG. 6) Or the parameter input unit 221 in FIG. 10), orthogonal transform means for orthogonally transforming the image data (for example, the DCT unit 175 in FIG. 6 or FIG. 10), and the information acquired by the acquisition means in the quantization is reproduced. A first quantization matrix used when not used (eg, the quantization matrix of FIG. 7 or FIG. 12) and a second quantization matrix (eg, each component having a value equal to or less than the first quantization matrix). , The quantization matrix of FIG. 8 or FIG. 13 (for example, the memory 185 of FIG. 6 or FIG. 10), and the determination unit for determining the quantization value and the quantization matrix used for quantization (for example, Using the rate setting unit 177) of FIG. 6 or FIG. 10 and the quantization value and the quantization matrix determined by the determination unit, the quantization for performing the quantization is performed. Means (for example, the quantizing unit 176 of FIG. 6 or FIG. 10), wherein the determining means enables the information to be reused and the quantized value included in the information acquired by the acquiring means to be reusable. If it is determined that the third quantization matrix included in the information acquired by the acquisition unit is used for quantization, the information is reused, and the quantization value included in the information is not reusable. If not, it is decided to use the second quantization matrix stored in the storage means for quantization, and if the information is not reused, the first quantization matrix stored in the storage means is used for quantization. Determining to use.
[0060]
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0061]
FIG. 5 is a block diagram showing a configuration of a system to which the present invention is applied, which can perform frame editing after encoding uncompressed data into MPEG Long GOP stream data.
[0062]
Parts corresponding to those in the conventional case described with reference to FIG. 3 are denoted by the same reference numerals, and description thereof will be omitted as appropriate. In other words, in a system to which the present invention is applied and in which frames can be edited after encoding uncompressed data into MPEG Long GOP stream data, the SDTI CP-ASI converter 102 is replaced with the SDTI CP The configuration is basically the same as the conventional case described with reference to FIG. 3 except that the -ASI conversion device 151 is provided. The SDTI CP-ASI conversion device 151 replaces the encoding unit 122. , An encoding unit 161 capable of selecting an optimal quantization matrix and executing a quantization process based on whether a quantized value can be reused is provided. The configuration is basically the same as that of the conversion device 102.
[0063]
The ASI-SDTI CP converter 101 receives supply of MPEG Long GOP (ASI stream) encoded and generated by the SDI-ASI converter 1.
[0064]
An MPEG Long GOP is composed of pictures of three types of pictures (I picture, P picture, and B picture). The ASI-SDTI CP converter 101 decodes the supplied MPEG Long GOP stream data once in the decoding unit 111, and then in the encoding unit 112, encodes all the data into intra frames. In the processing, when these stream data are re-encoded by Long GOP, it is assumed that video data having the feature of I picture, P picture, or B picture is encoded by another picture type. In order to prevent this, the parameters such as the picture type and the quantization value of the coding performed in the past, that is, the coding by the SDI-ASI conversion device 1 are all set as the SMPTE328M history information (History data), and the SDTI- of the intra frame is all used. Add on CP stream and Supplied to the arm editing apparatus 3.
[0065]
The stream data with the history information edited by the frame editing device 3 is supplied to the SDTI CP-ASI conversion device 151. In the SDTI CP-ASI conversion device 151, the decoding unit 121 decodes the supplied stream data of all intra frames with history information. The encoding unit 161 re-encodes it into a Long GOP using parameters such as a picture type and a quantization value included in the decoded history information as necessary, and outputs the Long GOP.
[0066]
FIG. 6 is a block diagram illustrating a configuration of the encoding unit 161.
[0067]
The history extracting unit 171 extracts the history information from the SDIT CP stream with the history information of SMPTE 328M decoded by the decoding unit 121 and supplies the history information to the rate setting unit 177, and also converts the video stream to the video rearranging unit 172. Supply. The history information includes, for example, information on encoding performed in the past, such as a picture type, a quantization value, a motion vector, or a quantization matrix.
[0068]
The video rearranging unit 172 rearranges each frame image of the sequentially input image data as necessary, and converts each frame image of the image data to a luminance signal of 16 pixels × 16 lines and a luminance signal. It generates macroblock data divided into macroblocks composed of color difference signals to be supplied to the calculation unit 173 and the motion vector detection unit 174.
[0069]
The motion vector detection unit 174 receives the input of the macroblock data, calculates a motion vector of each macroblock based on the macroblock data and the reference image data stored in the frame memory 183, and calculates the motion vector as motion vector data. , To the motion compensator 182.
[0070]
The calculation unit 173 performs motion compensation on the macroblock data supplied from the video rearrangement unit 172 based on the image type of each macroblock. Specifically, the operation unit 173 performs motion compensation on the I picture in the intra mode, performs motion compensation on the P picture in the forward prediction mode, and performs bidirectional motion on the B picture. Motion compensation is performed in the prediction mode.
[0071]
Here, the intra mode is a method in which a frame image to be encoded is directly used as transmission data, and the forward prediction mode is a method in which a prediction residual between the frame image to be encoded and a past reference image is transmitted data. The bidirectional prediction mode is a method in which a prediction residual between a frame image to be encoded and past and future reference images is used as transmission data.
[0072]
First, when the macroblock data is an I picture, the macroblock data is processed in the intra mode. That is, the arithmetic unit 173 sends the macroblock of the input macroblock data as it is to the DCT (Discrete Cosine Transform: discrete cosine transform) unit 175 as arithmetic data. The DCT unit 175 converts the input operation data into DCT coefficients by performing a DCT transform process, which is an orthogonal transform, and sends the result to the quantization unit 176 as DCT coefficient data.
[0073]
The quantization unit 176 performs quantization processing on the input DCT coefficient data based on the quantization value Q and the quantization matrix supplied from the rate setting unit 177, and obtains a VLC (Variable Length) as a quantization DCT coefficient. Code; variable length coding) section 178 and an inverse quantization section 179. The quantization unit 176 calculates the quantized DCT coefficient Sq using the following equation (1).
[0074]
Sq = ((32 × S) / q) / (2 × Q) (1)
[0075]
However, in equation (1), the DCT coefficient component value before quantization is S, the component value of the quantization matrix is q, and the result of the multiplication is rounded off.
[0076]
The quantized DCT coefficient data sent to the inverse quantization unit 179 undergoes an inverse quantization process using the same quantization step size as the quantization unit 176, and is sent to the inverse DCT unit 180 as DCT coefficient data. The inverse quantization unit 179 calculates the inverse quantized DCT coefficient Siq using the following equation (2).
[0077]
Siq = (2 × Sq × q × Q) / 32 (2)
[0078]
The inverse DCT unit 180 performs an inverse DCT process on the supplied DCT coefficient data, and the generated operation data is sent to the operation unit 181 and stored in the frame memory 183 as reference image data.
[0079]
When the macroblock data is a P-picture, the arithmetic unit 173 performs a motion compensation process in the forward prediction mode on the macroblock data. To perform motion compensation processing.
[0080]
The motion compensation unit 182 performs motion compensation on the reference image data stored in the frame memory 183 according to the motion vector data, and calculates forward predicted image data or bidirectional predicted image data. The calculation unit 173 performs a subtraction process on the macroblock data using the forward prediction image data or the bidirectional prediction image data supplied from the motion compensation unit 182.
[0081]
That is, in the forward prediction mode, the motion compensation unit 182 reads the reference image data by shifting the read address of the frame memory 183 in accordance with the motion vector data, and uses the read image data as the forward prediction image data. It is supplied to the arithmetic unit 181. The operation unit 173 subtracts the forward prediction image data from the supplied macroblock data to obtain difference data as a prediction residual. Then, the arithmetic unit 173 sends the difference data to the DCT unit 175.
[0082]
The calculation unit 181 is supplied with forward prediction image data from the motion compensation unit 182, and the calculation unit 181 adds the forward prediction image data to the calculation data supplied from the inverse DCT unit to perform reference. The image data is locally reproduced and output to the frame memory 183 for storage.
[0083]
Further, in the bidirectional prediction mode, the motion compensation unit 182 reads the reference image data by shifting the read address of the frame memory 183 according to the motion vector data, and uses this as the bidirectional prediction image data. It is supplied to the arithmetic unit 181. The operation unit 173 subtracts the bidirectional predicted image data from the supplied macroblock data to obtain difference data as a prediction residual. Then, the arithmetic unit 173 sends the difference data to the DCT unit 175.
[0084]
The operation unit 181 is supplied with bidirectional predicted image data from the motion compensation unit 182, and the operation unit 181 adds the bidirectional predicted image data to the operation data supplied from the inverse DCT unit to obtain a reference. The image data is locally reproduced and output to the frame memory 183 for storage.
[0085]
Thus, the image data input to the encoding unit 161 undergoes motion compensation prediction processing, DCT processing, and quantization processing, and is supplied to the VLC unit 178 as quantized DCT coefficient data. VLC section 178 performs variable-length encoding processing on the quantized DCT coefficient data based on a predetermined conversion table, and sends the resulting variable-length encoded data to buffer 184. The buffer 184 buffers the supplied variable-length coded data and then outputs the data.
[0086]
The rate setting unit 177 constantly monitors the accumulation state of the variable-length encoded data stored in the buffer 184, and based on the occupancy information indicating the accumulation state or the history information supplied from the history extraction unit 171. The quantization step size is determined.
[0087]
At this time, the rate setting unit 177 determines whether the quantization matrix included in the history information supplied from the history extraction unit 171 or the plurality of quantization matrices stored in the memory 185 has a coding An item that meets the conditions is selected.
[0088]
In the memory 185, in addition to the intra quantization matrix and the non-intra (inter) quantization matrix (FIG. 12) which are defaulted in MPEG2 shown in FIG. Intra-quantization matrices used when the quantization value of the information cannot be reused are stored.
[0089]
As described above, when re-encoding using past encoding information, for example, the bit rate may be reduced by re-encoding, or depending on the state of the VBV buffer at the time of encoding a stream including edit points. In some cases, it is not possible to reuse a quantization value in past encoding. In order to prevent image quality degradation caused by the inability to reuse quantization values in the past encoding, an intra quantization matrix capable of protecting the frequency component by reducing the value of the AC component is used for re-encoding. What is necessary is just to use it.
[0090]
FIG. 7 shows an intra quantization matrix set as a default in MPEG2. The intra quantization matrix of FIG. 7 is set so that the higher the AC component in the high frequency band, the larger the value. This utilizes the characteristic that human vision is insensitive to deterioration of the high-frequency component image, and divides the high-frequency component by a larger value without deteriorating the appearance of the image. This is because it is possible to greatly reduce the amount. As the DCT coefficient before quantization, the DC component tends to be a large value and the AC component tends to be a small value. Therefore, as shown in FIG. In many cases, the coefficients after quantization have almost zero high-frequency components. Note that, in MPEG2, the maximum value that can be taken by each component of the quantization matrix is 255.
[0091]
However, when the video data includes many high-frequency components such as noise and fine textures, the coefficients remain in the high-frequency components of the DCT coefficients before quantization, and the value of the coefficient is often 1. When such video data is decoded and re-encoded, it is possible to use the same quantization matrix as in the past encoding, and if the quantized value is the same as in the past encoding, The converted coefficient also becomes 1, and can be decoded again to the original value. However, as described above, when the quantized value becomes, for example, about twice as large as the past encoding, the value after decoding after re-encoding greatly differs from the value before decoding before. May occur.
[0092]
In this way, the value of many components fluctuates, so that the image quality is significantly degraded. Further, if the re-encoding is repeated for such video data, the same fluctuation of the decoded value is repeated, so that each time the re-encoding is performed, the image quality further deteriorates. I will.
[0093]
Therefore, even in the high-frequency AC component, a large value is not set, and the re-encoding is performed by using a quantization matrix in which the high-frequency component is equal to or substantially equal to the low-frequency component. At the time of quantization, the value immediately before division by the quantization value can be set to a somewhat large value, so that it is possible to prevent the above-mentioned influence of the fluctuation of the decoding value due to the fluctuation of the quantization value. For example, as shown in FIG. 8, using a quantization matrix in which all the components other than the DC component defined as “8” in the MPEG2 standard are set to 16 which is twice the value of the DC component. Thus, it is possible to prevent the influence of the fluctuation of the decoded value due to the fluctuation of the quantization value described above.
[0094]
When the intra quantization matrix that is the default in MPEG2 shown in FIG. 7 is used, the DCT coefficient component value before quantization is 9 in the past encoding, and the quantization matrix value of the corresponding component is 9 Is q = 34 and the quantized value is Q = 4, the quantization result is Sq = ((32 × 9) / 34) / (2 × 4) = 1 from the above equation (1). When inverse quantization is performed, Seq = (2 × 1 × 34 × 4) / 32 = 9 from the above equation (2).
[0095]
At this time, if the quantization value Q is doubled from Q = 4 to Q = 8 at the time of re-encoding, the quantization result is similarly calculated from Expression (1) as Sq = ((32 × 9 ) / 34) / (2 × 8) = 1, and when inversely quantized, from equation (2), Siq = (2 × 1 × 34 × 8) / 32 = 17, and the DCT coefficient component value before quantization 9 is a greatly different value.
[0096]
On the other hand, for example, when the quantization matrix of FIG. 8 is used for re-encoding, since the quantization matrix value of the corresponding component is q = 16, the quantization value Q is changed from Q = 4 to 2 Even if Q = 8 times, the quantization result at the time of re-encoding is Sq = ((32 × 9) / 16) / (2 × 8) = 1 from Expression (1), and the inverse quantum From the equation (2), Siq = (2 × 1 × 16 × 8) / 32 = 8. That is, when the quantization matrix shown in FIG. 8 is used for re-encoding, a DCT coefficient component value before quantization of 9 can be obtained, which is an inverse quantization result that does not change much. It turns out that it is hard to be influenced by the fluctuation of the decoded value due to the fluctuation.
[0097]
Therefore, when the quantized value cannot be reused, a large value is not set even in the high-frequency AC component as shown in FIG. 8 (the value of the high-frequency AC component is twice the value of the DC component). By using an intra quantization matrix that is limited to the following and has a value equal to or substantially equal to the value of the low-frequency AC component), image quality degradation after re-encoding can be suppressed.
[0098]
Here, a large value is not set for the high-frequency AC component, and the intra-quantization matrix of FIG. 8 is configured such that the high-frequency component has the same or substantially the same value as the low-frequency component. Although described as an example of the quantization matrix, the intra quantization matrix used in the present invention is not limited to the intra quantization matrix of FIG. 8, but has an AC component like the intra quantization matrix of FIG. Even if the values are not all the same, for example, a sufficiently small value may be used so that the high-frequency component is twice or less the DC component.
[0099]
The rate setting unit 177 performs encoding using history information based on a signal indicating a user operation input supplied from an operation input unit (not shown) or whether history information is supplied from the history extraction unit 171. Determine whether it is possible to do so. As described above, the history information supplied from the history extraction unit 171 includes, for example, a picture type, a quantization value, a motion vector, or a quantization matrix.
[0100]
If the rate setting unit 177 determines that encoding cannot be performed using the history information, the rate setting unit 177 reads the intra quantization matrix used in normal encoding described with reference to FIG. This is supplied to the quantization unit 176. A method of determining the quantization value Q when it is determined that encoding cannot be performed using the history information will be described later.
[0101]
If the rate setting unit 177 determines that encoding can be performed using the history information, whether the quantization value can be reused based on the history information supplied from the history extraction unit 171 Determine whether or not.
[0102]
Here, whether or not the quantized value can be reused may be determined by, for example, whether or not the quantized value can be reused by a user, or whether the quantized value can be reused. The information indicating whether or not the quantization value can be reused may be described therein, or the previously encoded image frame indicated in the history information and the Whether the image frame at the time of encoding matches the position and size, whether the bit rate in the previous encoding indicated in the history information is smaller than the bit rate of the current encoding, Alternatively, it may be determined according to a predetermined condition such as whether or not the chroma format in the previous encoding is larger than the current chroma format.
[0103]
Then, when it is determined that the quantization value can be reused, the rate setting unit 177 supplies the quantization matrix included in the history information to the quantization unit 176. On the other hand, if it is determined that it is not possible to reuse the quantization value, the rate setting unit 177 reads the quantization matrix described with reference to FIG. , To the quantization unit 176.
[0104]
Further, when the history information is not used, or when the quantized value included in the history information cannot be reused, the rate setting unit 177 determines the generated code amount of the macroblock actually generated from the target generated code amount. When the number of generated codes is large, the quantization step size is increased to reduce the generated code amount, and when the actual generated code amount is smaller than the target generated code amount, the quantization step size is reduced to increase the generated code amount. It has been made.
[0105]
That is, the rate setting unit 177 obtains the buffer occupancy of the virtual buffer by assuming the transition of the accumulation state of the variable-length coded data stored in the VBV buffer provided on the decoder side, and obtains the quantization value Q Is calculated and supplied to the quantization unit 176 together with the quantization matrix described with reference to FIG.
[0106]
The buffer occupancy d (j) of the virtual buffer in the j-th macroblock is expressed by the following equation (3). The buffer occupancy d (j + 1) of the virtual buffer in the j + 1-th macroblock is The buffer occupancy d (j + 1) of the virtual buffer in the (j + 1) th macroblock is expressed by the following expression (5) by expressing expression (4) and subtracting expression (4) from expression (3). You.
[0107]
d (j) = d (0) + B (j−1) − {T × (j−1) / MBcnt} (3)
[0108]
Here, d (0) is the initial buffer capacity, B (j) is the number of bits generated in the j-th macroblock, MBcnt is the number of macroblocks in the picture, and T is the target generation in picture units. The code amount.
[0109]
d (j + 1) = d (0) + B (j) − (T × j) / MBcnt (4)
[0110]
d (j + 1) = d (j) + {B (j) -B (j-1)}-T / MBcnt (5)
[0111]
When the macroblock in the picture is divided into, for example, an intra slice portion and an inter slice portion, the rate setting section 177 assigns the target to the macro block in the intra slice portion and each macro block in the inter slice portion. The generated code amounts Tpi and Tpp can be individually set.
[0112]
Therefore, the rate setting unit 177 substitutes the buffer occupation amount d (j + 1) and the constant r shown in the equation (6) into the equation (7) to obtain the quantization index data Q of the macroblock (j + 1). (J + 1) is calculated and supplied to the quantization unit 176.
[0113]
r = (2 × br) / pr (6)
Q (j + 1) = d (j + 1) × (31 / r) (7)
Here, br is a bit rate, and pr is a picture rate.
[0114]
The quantization unit 176 determines the quantization step size in the next macroblock based on the quantization value Q supplied from the rate setting unit 177, and quantizes the DCT coefficient data according to the quantization step size.
[0115]
Accordingly, the quantization unit 176 can quantize the DCT coefficient data by the quantization step size that is calculated based on the actual generated code amount and is optimal for the target generated code amount of the next picture.
[0116]
Thus, the quantization unit 176 can quantize the buffer 184 according to the data occupancy of the buffer 184 so that the buffer 184 does not overflow or underflow, and quantize the decoder-side VBV buffer so that it does not overflow or underflow. Quantized DCT coefficient data can be generated.
[0117]
In the above description, the case where the encoding process is performed in units of pictures has been described. However, even when the encoding process is performed not in units of pictures but in units of slices or macroblocks, basically, Similarly, an encoding process is performed.
[0118]
In addition, when the input image is encoded at a high bit rate into an MPEG Long GOP described with reference to FIG. 4 and then decoded and re-encoded to a low bit rate Long GOP, an image for re-encoding may be used. The present invention can be similarly applied to a system in which deterioration does not occur. FIG. 9 illustrates a case where an input image is encoded into an MPEG Long GOP at a high bit rate and decoded and re-encoded to a low bit rate Long GOP to which the present invention is applied. FIG. 1 is a block diagram showing a configuration of a system in which image degradation for re-encoding does not occur. Parts corresponding to those in FIG. 4 are denoted by the same reference numerals, and description thereof will be omitted as appropriate.
[0119]
That is, the system in FIG. 9 includes a Long GOP encoding device 201 instead of the Long GOP encoding device 131, and the Long GOP encoding device 201 replaces the encoding unit 142 with a quantization using an optimal quantization matrix. The configuration is basically the same as that of the Long GOP encoding device 131 except that an encoding unit 211 capable of performing encoding is provided.
[0120]
When the Long GOP encoding device 201 supplied with the MPEG Long GOP stream (ASI stream) data encoded by the Long GOP encoding device 51 decodes the high bit rate MPEG Long GOP by the decoding unit 141, Then, necessary encoding parameters are acquired, and the decoded video data and the acquired encoding parameters are supplied to the encoding unit 211. The encoding unit 211 encodes the video data using the supplied encoding parameters as necessary, so as to be a Long GOP of low bit rate MPEG, and encodes the encoded low bit rate MPEG. Outputs Long GOP stream (ASI stream) data.
[0121]
FIG. 10 is a block diagram illustrating a configuration of the encoding unit 211. Note that, in FIG. 10, the portions corresponding to the encoding unit 161 in FIG. 6 are denoted by the same reference numerals, and description thereof will be omitted as appropriate.
[0122]
That is, the encoding unit 211 includes a parameter input unit 221 that omits the history extraction unit 171 and obtains the parameters supplied from the decoding unit 141 and supplies the parameters to the rate setting unit 177. Has basically the same configuration as the encoding unit 161.
[0123]
The rate setting unit 177 constantly monitors the accumulation state of the variable-length encoded data stored in the buffer 184, and based on the occupancy information indicating the accumulation state or the parameter information supplied from the parameter input unit 221. The quantization step size is determined.
[0124]
The rate setting unit 177 performs encoding using parameter information based on a signal indicating a user operation input supplied from an operation input unit (not shown) or whether parameter information is supplied from the parameter input unit 221. It is determined whether or not to perform. The parameter information supplied from the parameter input unit 221 includes, for example, a picture type, a quantization value, a motion vector, or a quantization matrix, like the above-described history information.
[0125]
If the rate setting unit 177 determines that the encoding cannot be performed using the parameter information, the rate setting unit 177 reads out the quantization matrix described with reference to FIG. To the conversion unit 176.
[0126]
If the rate setting unit 177 determines that encoding can be performed using the parameter information, it is possible to reuse the quantization value based on the parameter information supplied from the parameter input unit 221. Determine whether or not.
[0127]
Here, whether or not the quantized value can be reused may be determined by, for example, whether or not the quantized value can be reused by a user, In the information, whether or not the quantization value can be reused may be described, or the previously encoded image frame indicated in the parameter information may be described. Whether the image frame at the time of encoding matches the position and size, whether the bit rate in the previous encoding indicated in the parameter information is smaller than the bit rate of the current encoding, Alternatively, it is determined by a predetermined condition such as whether or not the chroma format in the previous encoding is larger than the current chroma format.
[0128]
Then, when it is determined that the quantization value can be reused based on the parameter information, the rate setting unit 177 supplies the intra quantization matrix included in the parameter information to the quantization unit 176. On the other hand, if it is determined that the quantization value cannot be reused, the rate setting unit 177 reads the intra quantization matrix described with reference to FIG. Then, the signal is supplied to the quantization unit 176.
[0129]
The quantization unit 176 quantizes the DCT coefficient supplied from the DCT unit 175 based on the quantization value and the quantization matrix supplied from the rate setting unit 177.
[0130]
Next, with reference to the flowchart of FIG. 11, the quantization matrix determination processing 1 executed in the encoding unit 161 of FIG. 6 or the encoding unit 211 of FIG. 10 will be described.
[0131]
In step S 1, the rate setting unit 177 is based on a signal indicating a user operation input supplied from an operation input unit (not shown), or history information from the history information extraction unit 171, or a parameter from the parameter input unit 221. It is determined whether or not encoding is performed by reusing the past encoding information described in the history information or the parameter based on whether or not the encoding is supplied.
[0132]
If it is determined in step S1 that the information of the past encoding is not reused to perform the encoding, in step S2, the rate setting unit 177 uses the normal encoding, which will be described with reference to FIG. The obtained intra quantization matrix is read from the memory 185 and supplied to the quantization unit 176, and the processing is terminated.
[0133]
If it is determined in step S1 that the encoding is performed by reusing the information of the past encoding, in step S3, the rate setting unit 177 sets, for example, in advance that the quantization value cannot be reused. Whether the quantization value can be reused in the history information or the parameter information, and whether the previous coding indicated in the history information or the parameter information is executed. Whether or not the image frame at the time of re-encoding matches the position and size of the image frame, and the bit rate in the previous encoding indicated in the history information and the parameter information is the current encoding. Satisfies certain conditions, such as whether the bit rate is lower than the current bit rate, or whether the chroma format in the previous encoding is higher than the current chroma format. Based on whether or not the quantization value determines whether reusable.
[0134]
If it is determined in step S3 that the quantized value is reusable, in step S4, the rate setting unit 177 supplies the history information supplied from the history information extraction unit 171 or the history information supplied from the parameter input unit 221. The intra quantization matrix in the past encoding, which is included in the parameters, is supplied to the quantization unit 176, and the process ends.
[0135]
If it is determined in step S3 that the quantization value is not reusable, in step S5, the rate setting unit 177 converts the intra quantization matrix stored in the memory 185 and described with reference to FIG. The data is supplied to the quantization unit 176, and the processing ends.
[0136]
By such processing, when the quantization value used for encoding is different from the quantization value of the past encoding, when the bit rate becomes small or when the input video data at the time of re-encoding is Even when the input video data is different from the input video data, it is possible to prevent flicker caused by emphasizing high frequency components or reducing the resolution of an image, particularly in an I picture.
[0137]
Further, in the processing described above, if the quantization value is not reusable among the information on the past encoding, a large value is not used for the AC component (particularly, the high-frequency portion of the AC component). Although the intra quantization matrix is selected and described as being used for quantization, the quantization value can be reused not only for the intra matrix but also for the non-intra (inter) quantization matrix by the same processing. The best one may be selected based on whether or not there is.
[0138]
That is, in addition to the non-intra quantization matrix shown as a default in the MPEG2 TM5 shown in FIG. 12 in the encoding unit 161 of FIG. 6 or the memory 185 of the encoding unit 211 of FIG. The non-intra quantization matrix that does not use a large value in the high-frequency AC component is further stored, and the rate control unit 177 determines whether the quantization value can be reused based on whether the quantization value is reusable. The best one can be selected.
[0139]
FIG. 12 shows a non-intra quantization matrix set as a default in TM5 of MPEG2. The non-intra quantization matrix in FIG. 12 also uses the characteristic that human vision is insensitive to deterioration of the high-frequency component image, so that the high-frequency component is divided by a larger value. The AC component in the range is set to have a larger value.
[0140]
Even in the non-intra quantization matrix, a large value is not used even in the high-frequency AC component, and by using a quantization matrix in which the high-frequency component is equal to or substantially equal to the low-frequency component, At the time of re-encoding, the value immediately before the division by the quantization value increases, so that it is possible to prevent the influence of the fluctuation of the decoding value due to the fluctuation of the quantization value. For example, as shown in FIG. 13, by using a quantization matrix in which all the components are 16, it is possible to prevent the influence of the above-described fluctuation of the quantization value from the fluctuation of the decoded value.
[0141]
Here, FIG. 13 shows an example of a non-intra quantization matrix in which a large value is not used for the high-frequency AC component and the high-frequency component has the same or substantially the same value as the low-frequency component. Has been described using a quantization matrix in which all components are the same, but the non-intra quantization matrix used in the present invention is not limited to the non-intra quantization matrix of FIG. Even if not all the components or all the AC components have the same value as in the case of an intra quantization matrix, the high-frequency component has a sufficiently small value that is, for example, twice or less the DC component, It suffices that a value having a smaller high-frequency component (for example, 32 or less) than the non-intra quantization matrix described using No. 12 is used.
[0142]
Next, referring to the flowchart of FIG. 14, based on whether or not the quantized value, which is executed in the encoding unit 161 of FIG. 6 or the encoding unit 211 of FIG. 10, is reusable. The following describes a quantization matrix determination process 2 for selecting an intra quantization matrix and a non-intra quantization matrix.
[0143]
In step S <b> 21, the rate setting unit 177 is based on a signal indicating a user's operation input, which is supplied from an operation input unit (not shown), or history information from the history information extraction unit 171, or a parameter from the parameter input unit 221. It is determined whether or not encoding is performed by reusing the past encoding information described in the history information or the parameter based on whether or not the encoding is supplied.
[0144]
In step S21, when it is determined that the encoding is not performed by reusing the information of the past encoding, in step S22, the rate setting unit 177 is used in normal encoding, which will be described with reference to FIG. The obtained intra quantization matrix and the non-intra quantization matrix described with reference to FIG. 12 are read from the memory 185 and supplied to the quantization unit 176, and the process is terminated.
[0145]
If it is determined in step S21 that the encoding is performed by reusing the information of the past encoding, in step S23, the rate setting unit 177 sets, for example, in advance that the quantization value cannot be reused. Whether the quantization value can be reused in the history information or the parameter information, and whether the previous coding indicated in the history information or the parameter information is executed. Whether or not the image frame at the time of re-encoding matches the position and size of the image frame, and the bit rate in the previous encoding indicated in the history information and the parameter information is the current encoding. Predetermined conditions, such as whether the bit rate is lower than the bit rate of the previous or whether the chroma format in the previous encoding is higher than the current chroma format Based on whether or not satisfied, the quantization value determines whether reusable.
[0146]
If it is determined in step S23 that the quantized value is reusable, in step S24, the rate setting unit 177 supplies the history information supplied from the history information extracting unit 171 or the history information supplied from the parameter input unit 221. The intra-quantization matrix and the non-intra-quantization matrix in the past encoding, which are included in the parameters, are supplied to the quantization unit 176, and the process ends.
[0147]
If it is determined in step S23 that the quantization value is not reusable, in step S25, the rate setting unit 177 stores the intra quantization matrix stored in the memory 185 and described with reference to FIG. The non-intra quantization matrix described with reference to FIG. 13 is supplied to the quantization unit 176, and the process ends.
[0148]
By such processing, when the quantization value used for encoding is different from the quantization value of the past encoding, when the bit rate becomes small or when the input video data at the time of re-encoding is Even when the input video data is different from the input video data, it is possible to prevent the flicker caused by the reduction of the resolution of the image of the I picture, and to prevent the deterioration of the image even in the non-intra part. can do.
[0149]
Although the above description has been made on the assumption that a quantization matrix (standard default) used as a standard in an encoding device is used as a quantization matrix used when information on past encoding is not reused. Regardless of the value of the quantization matrix (for example, quantization matrix A) used when information on past encoding is not reused (for example, the highest possible high-frequency component in the MPEG standard). ), The present invention reuses information on past encoding but does not reuse quantization values of past encoding. For example, the quantization matrix B) has a smaller high-frequency component than the quantization matrix A (at least, Can achieve the effect that if a quantization matrix) composed of a value less than 255, to prevent image deterioration.
[0150]
That is, when the quantization value used for encoding is different from the quantization value of the past encoding, the quantization matrix B is used for the quantization, and the bit number is compared with the case where the quantization matrix A is used. Even when the rate becomes small or when the input video data at the time of re-encoding is different from the input video data at the time of past encoding, the flicker generated due to a decrease in the resolution of an I-picture image, etc. Can be prevented, and image degradation can be prevented.
[0151]
In the present invention, for example, only a P picture is used without using a B picture which causes a reordering delay and an I picture having a large generated code amount. The present invention is applicable to a case where low-delay encoding is performed so that encoding can be performed without reordering by dividing a slice into inter-slices including all remaining slices.
[0152]
In addition, the present invention employs all frame images as P pictures as low-delay coding. For example, within the picture frame size of 45 horizontal macroblocks and 24 vertical macroblocks, two macroblocks from the top of the frame image and 45 macroblocks Even when the area for a block is set as one intra-slice part and all the others are set as an inter-slice part, other various types such as setting the intra-slice part to an area for one vertical macroblock and 45 horizontal macroblocks are used. The present invention is also applicable to a case of forming a region having a size of
[0153]
Furthermore, in the above-described embodiment, a case has been described in which the present invention is applied to the encoding unit 161 or the encoding unit 211 that performs compression encoding by the MPEG method. However, the present invention is not limited to this. Alternatively, the present invention may be applied to an encoding device using various other image compression methods.
[0154]
Note that, in the above-described embodiment, the description has been made assuming that each of the conversion devices for converting stream data and the Long GOP encoding device has a decoding unit and an encoding unit, respectively. The present invention is applicable even when the units are configured as independent devices as a decoding device and an encoding device, respectively.
[0155]
That is, in the above-described embodiment, the description has been given assuming that each of the conversion devices and the Long GOP encoding device converts the stream data. However, for example, as shown in FIG. The decoding device 251 for converting to a signal and the coding device 252 for coding a baseband signal and converting it to stream data may be configured as independent devices. Further, even when the decoding device 251 does not completely decode the supplied stream data and the corresponding encoding device 252 partially encodes the corresponding portion of the incompletely decoded data, the present invention is also applicable. The invention is applicable.
[0156]
For example, if the decoding device 251 performs only decoding and inverse quantization on a VLC code and does not perform inverse DCT transform, the encoding device 252 performs quantization and variable length encoding processing. No processing is performed. The present invention can be applied to the determination of whether or not to reuse the quantization value in the quantization of the encoding device 252 that performs such partial encoding (encoding from an intermediate stage). Needless to say.
[0157]
Further, when the encoding device 252 encodes the baseband signal completely decoded by the decoding device 251 to an intermediate stage (for example, performs DCT transform and quantization but does not perform variable length encoding processing), Since the decoding device 251 has not completely decoded (for example, only performs decoding and inverse quantization on the VLC code and has not performed the inverse DCT transform), the decoding device 251 performs coding on data that has been encoded to an intermediate stage. The present invention can also be applied to a case where the encoding device 252 further encodes to an intermediate stage (for example, performs quantization but does not perform variable length encoding).
[0158]
Further, the present invention is also applicable to a transcoder 261 including an encoding device 251 for performing such partial decoding and an encoding device 252 for performing partial encoding. Such a transcoder 261 is used, for example, when an editing device 262 that performs editing such as splicing is used.
[0159]
The series of processes described above can be executed by hardware, but can also be executed by software. In this case, for example, the SDTI CP-ASI converter 151 and the Long GOP encoder 201 are configured by a personal computer 301 as shown in FIG.
[0160]
In FIG. 16, a CPU (Central Processing Unit) 311 performs various processes according to a program stored in a ROM (Read Only Memory) 312 or a program loaded from a storage unit 318 into a RAM (Random Access Memory) 313. Execute. The RAM 313 also appropriately stores data necessary for the CPU 311 to execute various processes.
[0161]
The CPU 311, the ROM 312, and the RAM 313 are mutually connected via a bus 314. The input / output interface 315 is also connected to the bus 314.
[0162]
The input / output interface 315 includes an input unit 316 including a keyboard and a mouse, an output unit 317 including a display and a speaker, a storage unit 318 including a hard disk, and a communication unit 319 including a modem and a terminal adapter. It is connected. The communication unit 319 performs communication processing via a network including the Internet.
[0163]
A drive 320 is connected to the input / output interface 315 as needed, and a magnetic disk 331, an optical disk 332, a magneto-optical disk 333, a semiconductor memory 334, or the like is appropriately mounted, and a computer program read out from these is loaded. Are installed in the storage unit 318 as necessary.
[0164]
When a series of processing is executed by software, a program constituting the software executes various functions by installing a computer built in dedicated hardware or installing various programs. For example, it is installed from a network or a recording medium into a general-purpose personal computer or the like.
[0165]
As shown in FIG. 16, this recording medium is distributed separately from the apparatus main body to supply the program to the user, and stores the program on a magnetic disk 331 (including a floppy disk) and an optical disk 332 ( A package medium including a CD-ROM (compact disk-only memory), a DVD (including a digital versatile disk), a magneto-optical disk 333 (including an MD (mini-disk) (trademark)), or a semiconductor memory 334 is used. In addition to the configuration, the storage unit 318 includes a ROM 312 in which a program is stored, a hard disk included in the storage unit 318, and the like, which are supplied to a user in a state of being incorporated in the apparatus main body in advance.
[0166]
In this specification, the steps of describing a program stored in a recording medium may be performed in chronological order according to the order in which they are included, or may be performed in parallel or individually even if not necessarily performed in chronological order. This includes the processing to be executed.
[0167]
In the present specification, the system represents the entire device including a plurality of devices.
[0168]
【The invention's effect】
As described above, according to the present invention, image data can be encoded. In particular, when the quantization value used in the past encoding cannot be reused, the quantization can be performed using the quantization matrix in which the high frequency component is configured with a value of less than 255, It is possible to prevent the image quality from deteriorating.
[0169]
According to another embodiment of the present invention, image data can be encoded, and information used in past encoding is reused. However, when quantization values cannot be reused, past encoding is performed. Quantization can be performed using a quantization matrix composed of smaller values than the quantization matrix used when the information used in cannot be reused, so that image quality degradation is prevented. Can be.
[0170]
According to another aspect of the present invention, image data can be converted, and in a coding process in a conversion process, when a quantization value used in a past coding cannot be reused, a high-frequency component is reduced. Since the quantization can be performed using a quantization matrix having a value of less than 255 or less, it is possible to prevent the image quality from deteriorating.
[0171]
Further, according to another aspect of the present invention, image data can be converted, and information used in past coding is reused in coding processing in conversion processing, but quantization values cannot be reused. In this case, quantization can be performed using a quantization matrix composed of smaller values than a quantization matrix used when information used in past encoding cannot be reused. Deterioration can be prevented.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a conventional system in which re-encoding is performed when performing frame editing.
FIG. 2 is a diagram for describing a conventional system capable of changing the bit rate of a Long GOP of MPEG and performing re-encoding.
FIG. 3 is a diagram for describing a case where encoding history information is used in a conventional system in which re-encoding is performed when performing frame editing.
FIG. 4 is a diagram for describing a case where encoding history information is used in a conventional system capable of changing the bit rate of a Long GOP of MPEG and performing re-encoding.
FIG. 5 is a block diagram illustrating a configuration of a system to which re-encoding is performed when performing frame editing, to which the present invention is applied.
FIG. 6 is a block diagram illustrating a configuration of an encoding unit in FIG. 5;
FIG. 7 is a diagram for describing an intra quantization matrix set as a default in MPEG2.
FIG. 8 is a diagram for describing an intra quantization matrix used in the present invention.
FIG. 9 is a block diagram showing the configuration of a system to which the present invention is applied and which can re-encode by changing the bit rate of an MPEG Long GOP.
FIG. 10 is a block diagram illustrating a configuration of an encoding unit in FIG. 9;
FIG. 11 is a flowchart illustrating a quantization matrix determination process 1;
FIG. 12 is a diagram for describing a non-intra quantization matrix that is set as a default in MPEG2.
FIG. 13 is a diagram illustrating a non-intra quantization matrix used in the present invention.
FIG. 14 is a flowchart illustrating a quantization matrix determination process 2;
FIG. 15 is a diagram for explaining a configuration of a different device to which the present invention can be applied.
FIG. 16 is a block diagram illustrating a configuration of a personal computer.
[Explanation of symbols]
1 SDI-ASI conversion device, 3 frame editing device, 51 Long GOP coding device, 61 decoding unit, 62 coding unit, 101 ASI-SDTI conversion device, 111 decoding unit, 112 coding unit, 121 decoding unit, 141 decoding Unit, 151 SDTI CP-ASI conversion unit, 161 encoding unit, 171 history extraction unit, 172 image rearrangement unit, 173 operation unit, 174 motion vector detection unit, 175 DCT unit, 176 quantization unit, 177 rate setting unit, 178 VLC section, 179 inverse quantization section, 180 inverse DCT section, 181 operation section, 182 motion compensation section, 183 frame memory, 184 buffer, 185 memory, 201 Long GOP encoding apparatus, 211 encoding section, 221 parameter input section

Claims (17)

画像データを符号化する画像処理装置において、
前記画像データに対して過去に行われた符号化に関する情報を取得する取得手段と、
前記画像データを直交変換する直交変換手段と、
高域成分が、255未満の値で構成されている第1の量子化マトリクスを記憶する記憶手段と、
量子化に用いられる量子化値および量子化マトリクスを決定する決定手段と、
前記決定手段により決定された前記量子化値および前記量子化マトリクスを用いて、量子化を実行する量子化手段と、
を備え、
前記決定手段は、前記取得手段により取得された前記情報に含まれる前記量子化値が再利用可能である場合、前記取得手段により取得された前記情報に含まれる第2の量子化マトリクスを量子化に用いることを決定し、前記情報に含まれる前記量子化値が再利用可能ではない場合、前記記憶手段に記憶されている前記第1の量子化マトリクスを量子化に用いることを決定する
ことを特徴とする画像処理装置。
In an image processing device that encodes image data,
Acquisition means for acquiring information on encoding performed in the past on the image data,
Orthogonal transformation means for orthogonally transforming the image data,
Storage means for storing a first quantization matrix in which the high-frequency component is configured with a value less than 255;
Determining means for determining a quantization value and a quantization matrix used for quantization;
Using the quantization value and the quantization matrix determined by the determination means, quantization means for performing quantization,
With
The determining unit quantizes a second quantization matrix included in the information obtained by the obtaining unit, when the quantization value included in the information obtained by the obtaining unit is reusable. And when the quantized value included in the information is not reusable, determining to use the first quantization matrix stored in the storage means for quantization. Characteristic image processing device.
前記第1の量子化マトリクスは、高域成分が、DC成分の2倍以下の値で構成されている
ことを特徴とする請求項1に記載の画像処理装置。
The image processing apparatus according to claim 1, wherein the first quantization matrix has a high-frequency component having a value equal to or less than twice a DC component.
前記第1の量子化マトリクスは、高域成分が、32以下の値で構成されている
ことを特徴とする請求項1に記載の画像処理装置。
The image processing device according to claim 1, wherein the first quantization matrix has a high-frequency component having a value of 32 or less.
前記量子化手段により量子化された量子化係数データを符号化する符号化手段を更に備える
ことを特徴とする請求項1に記載の画像処理装置。
The image processing apparatus according to claim 1, further comprising an encoding unit that encodes the quantized coefficient data quantized by the quantization unit.
前記記憶手段に記憶されている第1の量子化マトリクスは、イントラマクロブロックの量子化に用いられる量子化マトリクスを含む
ことを特徴とする請求項1に記載の画像処理装置。
The image processing apparatus according to claim 1, wherein the first quantization matrix stored in the storage unit includes a quantization matrix used for quantizing an intra macroblock.
前記記憶手段に記憶されている第1の量子化マトリクスは、イントラマクロブロックの量子化に用いられる第3の量子化マトリクスおよび非イントラマクロブロックの量子化に用いられる第4の量子化マトリクスを含む
ことを特徴とする請求項1に記載の画像処理装置。
The first quantization matrix stored in the storage means includes a third quantization matrix used for quantizing intra macroblocks and a fourth quantization matrix used for quantizing non-intra macroblocks. The image processing apparatus according to claim 1, wherein:
前記記憶手段は、量子化において、前記取得手段により取得された前記情報が再利用されない場合に用いられる第3の量子化マトリクスを更に記憶し、
前記決定手段は、前記取得手段により取得された前記情報が再利用されるか否かを更に判断し、
前記情報が再利用され、かつ、前記取得手段により取得された前記情報に含まれる前記量子化値が再利用可能である場合、前記決定手段は、前記取得手段により取得された前記情報に含まれる前記第2の量子化マトリクスを量子化に用いることを決定し、
前記情報が再利用され、かつ、前記情報に含まれる前記量子化値が再利用可能ではない場合、前記決定手段は、前記記憶手段に記憶されている前記第1の量子化マトリクスを量子化に用いることを決定し、
前記情報が再利用されない場合、前記決定手段は、前記記憶手段に記憶されている前記第3の量子化マトリクスを量子化に用いることを決定する
ことを特徴とする請求項1に記載の画像処理装置。
The storage unit further stores a third quantization matrix used when the information acquired by the acquisition unit is not reused in quantization,
The determining means further determines whether the information obtained by the obtaining means is reused,
When the information is reused and the quantized value included in the information acquired by the acquiring unit is reusable, the determining unit is included in the information acquired by the acquiring unit. Deciding to use said second quantization matrix for quantization,
When the information is reused and the quantized value included in the information is not reusable, the determining unit converts the first quantization matrix stored in the storage unit into a quantization. Decided to use
2. The image processing apparatus according to claim 1, wherein when the information is not reused, the determination unit determines to use the third quantization matrix stored in the storage unit for quantization. apparatus.
前記記憶手段により記憶されている前記第1の量子化マトリクスのAC成分は、全て同一の値である
ことを特徴とする請求項1に記載の画像処理装置。
2. The image processing apparatus according to claim 1, wherein all AC components of the first quantization matrix stored by the storage unit have the same value.
画像データを符号化する画像処理装置の画像処理方法において、
前記画像データに対して過去に行われた符号化に関する情報に含まれる量子化値が、量子化に用いられるか否かを判断する判断ステップと、
前記判断ステップの処理により、前記量子化値が量子化に用いられないと判断された場合、高域成分が、255未満の値で構成されている第1の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第1の選択ステップと、
前記判断ステップの処理により、前記量子化値が量子化に用いられると判断された場合、前記情報に含まれる第2の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第2の選択ステップと
を含むことを特徴とする画像処理方法。
In an image processing method of an image processing device that encodes image data,
A determination step of determining whether or not a quantization value included in information on encoding performed in the past on the image data is used for quantization;
When it is determined that the quantization value is not used for quantization by the processing of the determination step, a first quantization matrix in which a high-frequency component is configured with a value less than 255 is used for quantization. A first selection step of selecting as a quantization matrix;
When it is determined by the processing of the determination step that the quantization value is used for quantization, a second selection of selecting a second quantization matrix included in the information as a quantization matrix used for quantization And an image processing method.
画像データを符号化する処理をコンピュータに実行させるためのプログラムであって、
前記画像データに対して過去に行われた符号化に関する情報に含まれる量子化値が、量子化に用いられるか否かを判断する判断ステップと、
前記判断ステップの処理により、前記量子化値が量子化に用いられないと判断された場合、高域成分が、255未満の値で構成されている第1の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第1の選択ステップと、
前記判断ステップの処理により、前記量子化値が量子化に用いられると判断された場合、前記情報に含まれる第2の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第2の選択ステップと
を含むことを特徴とするコンピュータが読み取り可能なプログラムが記録されている記録媒体。
A program for causing a computer to execute a process of encoding image data,
A determination step of determining whether or not a quantization value included in information on encoding performed in the past on the image data is used for quantization;
When it is determined that the quantization value is not used for quantization by the processing of the determination step, a first quantization matrix in which a high-frequency component is configured with a value less than 255 is used for quantization. A first selection step of selecting as a quantization matrix;
When it is determined by the processing of the determination step that the quantization value is used for quantization, a second selection of selecting a second quantization matrix included in the information as a quantization matrix used for quantization And a recording medium on which a computer-readable program is recorded.
画像データを符号化する処理をコンピュータに実行させるためのプログラムであって、
前記画像データに対して過去に行われた符号化に関する情報に含まれる量子化値が、量子化に用いられるか否かを判断する判断ステップと、
前記判断ステップの処理により、前記量子化値が量子化に用いられないと判断された場合、高域成分が、255未満の値で構成されている第1の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第1の選択ステップと、
前記判断ステップの処理により、前記量子化値が量子化に用いられると判断された場合、前記情報に含まれる第2の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第2の選択ステップと
を含むことを特徴とするプログラム。
A program for causing a computer to execute a process of encoding image data,
A determination step of determining whether or not a quantization value included in information on encoding performed in the past on the image data is used for quantization;
When it is determined that the quantization value is not used for quantization by the processing of the determination step, a first quantization matrix in which a high-frequency component is configured with a value less than 255 is used for quantization. A first selection step of selecting as a quantization matrix;
When it is determined by the processing of the determining step that the quantized value is used for quantization, a second selection of selecting a second quantization matrix included in the information as a quantization matrix used for quantization And a step.
画像データを符号化する画像処理装置において、
前記画像データに対して過去に行われた符号化に関する情報を取得する取得手段と、
前記画像データを直交変換する直交変換手段と、
量子化において、前記取得手段により取得された前記情報が再利用されない場合に用いられる第1の量子化マトリクス、および、各成分が前記第1の量子化マトリクス以下の値を有する第2の量子化マトリクスを記憶する記憶手段と、
量子化に用いられる量子化値および量子化マトリクスを決定する決定手段と、
前記決定手段により決定された前記量子化値および前記量子化マトリクスを用いて、量子化を実行する量子化手段と
を備え、
前記決定手段は、
前記情報が再利用され、かつ、前記取得手段により取得された前記情報に含まれる前記量子化値が再利用可能である場合、前記取得手段により取得された前記情報に含まれる第3の量子化マトリクスを量子化に用いることを決定し、
前記情報が再利用され、かつ、前記情報に含まれる前記量子化値が再利用可能ではない場合、前記記憶手段に記憶されている前記第2の量子化マトリクスを量子化に用いることを決定し、
前記情報が再利用されない場合、前記記憶手段に記憶されている前記第1の量子化マトリクスを量子化に用いることを決定する
ことを特徴とする画像処理装置。
In an image processing device that encodes image data,
Acquisition means for acquiring information on encoding performed in the past on the image data,
Orthogonal transformation means for orthogonally transforming the image data,
In quantization, a first quantization matrix used when the information acquired by the acquisition unit is not reused, and a second quantization in which each component has a value equal to or less than the first quantization matrix. Storage means for storing the matrix;
Determining means for determining a quantization value and a quantization matrix used for quantization;
Using the quantization value and the quantization matrix determined by the determination unit, and a quantization unit that performs quantization,
The determining means comprises:
When the information is reused and the quantization value included in the information acquired by the acquisition unit is reusable, a third quantization included in the information acquired by the acquisition unit Decides to use the matrix for quantization,
When the information is reused and the quantization value included in the information is not reusable, it is determined that the second quantization matrix stored in the storage unit is used for quantization. ,
If the information is not reused, the image processing apparatus determines to use the first quantization matrix stored in the storage unit for quantization.
画像データを符号化する画像処理装置の画像処理方法において、
前記画像データに対して過去に行われた符号化に関する情報を再利用するか否かを判断する第1の判断ステップと、
前記第1の判断ステップの処理により、前記過去の符号化の情報が再利用されないと判断された場合、所定の第1の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第1の選択ステップと、
前記第1の判断ステップの処理により、前記過去の符号化に関する情報が再利用されると判断された場合、前記情報に含まれる量子化値が、量子化に用いられるか否かを判断する第2の判断ステップと、
前記第2の判断ステップの処理により、前記量子化値が量子化に用いられないと判断された場合、各成分が前記第1の量子化マトリクス以下の値を有する第2の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第2の選択ステップと、
前記第2の判断ステップの処理により、前記量子化値が量子化に用いられると判断された場合、前記情報に含まれる第3の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第3の選択ステップと
を含むことを特徴とする画像処理方法。
In an image processing method of an image processing device that encodes image data,
A first determining step of determining whether to reuse information on encoding performed in the past on the image data;
When it is determined by the processing of the first determination step that the information of the past encoding is not reused, a first quantization matrix for selecting a predetermined first quantization matrix as a quantization matrix used for quantization is used. A selection step;
When it is determined by the processing of the first determination step that the information on the past encoding is reused, it is determined whether a quantization value included in the information is used for quantization. 2 judgment steps;
When it is determined by the processing of the second determination step that the quantization value is not used for quantization, a second quantization matrix in which each component has a value equal to or less than the first quantization matrix is defined as: A second selection step of selecting as a quantization matrix used for quantization;
If it is determined by the processing of the second determination step that the quantization value is used for quantization, a third quantization matrix included in the information is selected as a quantization matrix used for quantization. 3. An image processing method, comprising:
画像データを符号化する処理をコンピュータに実行させるためのプログラムであって、
前記画像データに対して過去に行われた符号化に関する情報を再利用するか否かを判断する第1の判断ステップと、
前記第1の判断ステップの処理により、前記過去の符号化の情報が再利用されないと判断された場合、所定の第1の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第1の選択ステップと、
前記第1の判断ステップの処理により、前記過去の符号化に関する情報が再利用されると判断された場合、前記情報に含まれる量子化値が、量子化に用いられるか否かを判断する第2の判断ステップと、
前記第2の判断ステップの処理により、前記量子化値が量子化に用いられないと判断された場合、各成分が前記第1の量子化マトリクス以下の値を有する第2の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第2の選択ステップと、
前記第2の判断ステップの処理により、前記量子化値が量子化に用いられると判断された場合、前記情報に含まれる第3の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第3の選択ステップと
を含むことを特徴とするコンピュータが読み取り可能なプログラムが記録されている記録媒体。
A program for causing a computer to execute a process of encoding image data,
A first determining step of determining whether to reuse information on encoding performed in the past on the image data;
When it is determined by the processing of the first determination step that the information of the past encoding is not reused, a first quantization matrix for selecting a predetermined first quantization matrix as a quantization matrix used for quantization is used. A selection step;
When it is determined by the processing of the first determination step that the information on the past encoding is reused, it is determined whether a quantization value included in the information is used for quantization. 2 judgment steps;
When it is determined by the processing of the second determination step that the quantization value is not used for quantization, a second quantization matrix in which each component has a value equal to or less than the first quantization matrix is defined as: A second selection step of selecting as a quantization matrix used for quantization;
If it is determined by the processing of the second determination step that the quantized value is used for quantization, a third quantization matrix included in the information is selected as a quantization matrix used for quantization. 3. A recording medium on which a computer-readable program is recorded.
画像データを符号化する処理をコンピュータに実行させるためのプログラムであって、
前記画像データに対して過去に行われた符号化に関する情報を再利用するか否かを判断する第1の判断ステップと、
前記第1の判断ステップの処理により、前記過去の符号化の情報が再利用されないと判断された場合、所定の第1の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第1の選択ステップと、
前記第1の判断ステップの処理により、前記過去の符号化に関する情報が再利用されると判断された場合、前記情報に含まれる量子化値が、量子化に用いられるか否かを判断する第2の判断ステップと、
前記第2の判断ステップの処理により、前記量子化値が量子化に用いられないと判断された場合、各成分が前記第1の量子化マトリクス以下の値を有する第2の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第2の選択ステップと、
前記第2の判断ステップの処理により、前記量子化値が量子化に用いられると判断された場合、前記情報に含まれる第3の量子化マトリクスを、量子化に用いる量子化マトリクスとして選択する第3の選択ステップと
を含むことを特徴とするプログラム。
A program for causing a computer to execute a process of encoding image data,
A first determining step of determining whether to reuse information on encoding performed in the past on the image data;
When it is determined by the processing of the first determination step that the information of the past encoding is not reused, a first quantization matrix for selecting a predetermined first quantization matrix as a quantization matrix used for quantization is used. A selection step;
When it is determined by the processing of the first determination step that the information on the past encoding is reused, it is determined whether a quantization value included in the information is used for quantization. 2 judgment steps;
When it is determined by the processing of the second determination step that the quantization value is not used for quantization, a second quantization matrix in which each component has a value equal to or less than the first quantization matrix is defined as: A second selection step of selecting as a quantization matrix used for quantization;
If it is determined by the processing of the second determination step that the quantization value is used for quantization, a third quantization matrix included in the information is selected as a quantization matrix used for quantization. 3. A program comprising: (3) selecting steps.
画像データを変換する情報処理装置において、
供給された前記画像データを完全に、または、不完全に復号する復号手段と、
前記復号手段により完全に復号されたベースバンドの前記画像データ、または、前記復号手段により不完全に復号されて生成された、中途段階まで符号化された前記画像データを、中途段階まで、または、完全に符号化する符号化手段と
を備え、
前記符号化手段は、
前記画像データに対して過去に行われた符号化に関する情報を取得する取得手段と、
前記画像データを直交変換する直交変換手段と、
高域成分が、255未満の値で構成されている第1の量子化マトリクスを記憶する記憶手段と、
量子化に用いられる量子化値および量子化マトリクスを決定する決定手段と、
前記決定手段により決定された前記量子化値および前記量子化マトリクスを用いて、量子化を実行する量子化手段と、
を備え、
前記決定手段は、前記取得手段により取得された前記情報に含まれる前記量子化値が再利用可能である場合、前記取得手段により取得された前記情報に含まれる第2の量子化マトリクスを量子化に用いることを決定し、前記情報に含まれる前記量子化値が再利用可能ではない場合、前記記憶手段に記憶されている前記第1の量子化マトリクスを量子化に用いることを決定する
ことを特徴とする情報処理装置。
In an information processing apparatus for converting image data,
Decoding means for decoding the supplied image data completely or incompletely;
The image data of the baseband completely decoded by the decoding means, or generated incompletely decoded by the decoding means, the image data encoded to an intermediate stage, up to the intermediate stage, or, Encoding means for completely encoding,
The encoding means,
Acquisition means for acquiring information on encoding performed in the past on the image data,
Orthogonal transformation means for orthogonally transforming the image data,
Storage means for storing a first quantization matrix in which the high-frequency component is configured with a value less than 255;
Determining means for determining a quantization value and a quantization matrix used for quantization;
Using the quantization value and the quantization matrix determined by the determination means, quantization means for performing quantization,
With
The determining unit quantizes a second quantization matrix included in the information obtained by the obtaining unit when the quantized value included in the information obtained by the obtaining unit is reusable. And determining that the first quantization matrix stored in the storage unit is used for quantization when the quantization value included in the information is not reusable. Characteristic information processing device.
画像データを変換する情報処理装置において、
供給された前記画像データを完全に、または、不完全に復号する復号手段と、
前記復号手段により完全に、または、不完全に復号された前記画像データを、前記復号手段による復号の状態に対応する方法で符号化する符号化手段と
を備え、
前記符号化手段は、
前記画像データに対して過去に行われた符号化に関する情報を取得する取得手段と、
前記画像データを直交変換する直交変換手段と、
量子化において、前記取得手段により取得された前記情報が再利用されない場合に用いられる第1の量子化マトリクス、および、各成分が前記第1の量子化マトリクス以下の値を有する第2の量子化マトリクスを記憶する記憶手段と、
量子化に用いられる量子化値および量子化マトリクスを決定する決定手段と前記決定手段により決定された前記量子化値および前記量子化マトリクスを用いて、量子化を実行する量子化手段と
を備え、
前記決定手段は、
前記情報が再利用され、かつ、前記取得手段により取得された前記情報に含まれる前記量子化値が再利用可能である場合、前記取得手段により取得された前記情報に含まれる第3の量子化マトリクスを量子化に用いることを決定し、
前記情報が再利用され、かつ、前記情報に含まれる前記量子化値が再利用可能ではない場合、前記記憶手段に記憶されている前記第2の量子化マトリクスを量子化に用いることを決定し、
前記情報が再利用されない場合、前記記憶手段に記憶されている前記第1の量子化マトリクスを量子化に用いることを決定する
ことを特徴とする情報処理装置。
In an information processing apparatus for converting image data,
Decoding means for decoding the supplied image data completely or incompletely;
Encoding means for encoding the image data completely or incompletely decoded by the decoding means by a method corresponding to a state of decoding by the decoding means,
The encoding means,
Acquisition means for acquiring information on encoding performed in the past on the image data,
Orthogonal transformation means for orthogonally transforming the image data,
In quantization, a first quantization matrix used when the information acquired by the acquisition unit is not reused, and a second quantization in which each component has a value equal to or less than the first quantization matrix. Storage means for storing the matrix;
A determination unit that determines a quantization value and a quantization matrix used for quantization, and a quantization unit that performs quantization using the quantization value and the quantization matrix determined by the determination unit,
The determining means comprises:
When the information is reused and the quantization value included in the information acquired by the acquisition unit is reusable, a third quantization included in the information acquired by the acquisition unit Decides to use the matrix for quantization,
When the information is reused and the quantization value included in the information is not reusable, it is determined that the second quantization matrix stored in the storage unit is used for quantization. ,
If the information is not reused, the information processing apparatus determines to use the first quantization matrix stored in the storage unit for quantization.
JP2003135349A 2003-05-14 2003-05-14 Image processing apparatus, image processing method, recording medium, and program Expired - Fee Related JP4539028B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003135349A JP4539028B2 (en) 2003-05-14 2003-05-14 Image processing apparatus, image processing method, recording medium, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003135349A JP4539028B2 (en) 2003-05-14 2003-05-14 Image processing apparatus, image processing method, recording medium, and program

Publications (3)

Publication Number Publication Date
JP2004343279A true JP2004343279A (en) 2004-12-02
JP2004343279A5 JP2004343279A5 (en) 2006-06-15
JP4539028B2 JP4539028B2 (en) 2010-09-08

Family

ID=33525634

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003135349A Expired - Fee Related JP4539028B2 (en) 2003-05-14 2003-05-14 Image processing apparatus, image processing method, recording medium, and program

Country Status (1)

Country Link
JP (1) JP4539028B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006238375A (en) * 2005-02-28 2006-09-07 Sony Corp Apparatus and method for coding image data, apparatus and method for decoding image data, image processing system and method, recording medium, and program

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07312756A (en) * 1994-03-25 1995-11-28 Sanyo Electric Co Ltd Circuit, device and method for conversion of information quantity of compressed animation image code signal
JPH09294263A (en) * 1996-04-24 1997-11-11 Victor Co Of Japan Ltd Image information compressor
JPH11346365A (en) * 1998-04-03 1999-12-14 Matsushita Electric Ind Co Ltd Encoding/compression method and device
JP2000312362A (en) * 1999-02-23 2000-11-07 Matsushita Electric Ind Co Ltd Image encoding system conversion device and its method and recording medium
JP2000333182A (en) * 1999-05-18 2000-11-30 Sony Corp Image compressor, its method and medium
JP2001148852A (en) * 1999-11-18 2001-05-29 Sony Corp Image information converter and image information conversion method
JP2001333384A (en) * 1999-12-15 2001-11-30 Sanyo Electric Co Ltd Image processing method, image processor capable of utilizing the method and television receiver
JP2001339726A (en) * 1999-12-15 2001-12-07 Sanyo Electric Co Ltd Image processing method, and image processing apparatus and television receiver capable of using this method
JP2002354484A (en) * 2001-05-29 2002-12-06 Victor Co Of Japan Ltd Rate transforming method for encoded image and rate transforming apparatus for encoded image

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07312756A (en) * 1994-03-25 1995-11-28 Sanyo Electric Co Ltd Circuit, device and method for conversion of information quantity of compressed animation image code signal
JPH09294263A (en) * 1996-04-24 1997-11-11 Victor Co Of Japan Ltd Image information compressor
JPH11346365A (en) * 1998-04-03 1999-12-14 Matsushita Electric Ind Co Ltd Encoding/compression method and device
JP2000312362A (en) * 1999-02-23 2000-11-07 Matsushita Electric Ind Co Ltd Image encoding system conversion device and its method and recording medium
JP2000333182A (en) * 1999-05-18 2000-11-30 Sony Corp Image compressor, its method and medium
JP2001148852A (en) * 1999-11-18 2001-05-29 Sony Corp Image information converter and image information conversion method
JP2001333384A (en) * 1999-12-15 2001-11-30 Sanyo Electric Co Ltd Image processing method, image processor capable of utilizing the method and television receiver
JP2001339726A (en) * 1999-12-15 2001-12-07 Sanyo Electric Co Ltd Image processing method, and image processing apparatus and television receiver capable of using this method
JP2002354484A (en) * 2001-05-29 2002-12-06 Victor Co Of Japan Ltd Rate transforming method for encoded image and rate transforming apparatus for encoded image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006238375A (en) * 2005-02-28 2006-09-07 Sony Corp Apparatus and method for coding image data, apparatus and method for decoding image data, image processing system and method, recording medium, and program

Also Published As

Publication number Publication date
JP4539028B2 (en) 2010-09-08

Similar Documents

Publication Publication Date Title
KR100545145B1 (en) Method and apparatus for reducing breathing artifacts in compressed video
US7301999B2 (en) Quantization method and system for video MPEG applications and computer program product therefor
US9077968B2 (en) Image processing apparatus and method, and program
JP5429580B2 (en) Decoding device and method, program, and recording medium
JP4196726B2 (en) Image processing apparatus, image processing method, recording medium, and program
EP1833256B1 (en) Selection of encoded data, setting of encoded data, creation of recoded data, and recoding method and device
JPH07312756A (en) Circuit, device and method for conversion of information quantity of compressed animation image code signal
JP2006191253A (en) Rate converting method and rate converter
JPH09322176A (en) Encoding mode selecting method, moving image encoding device, encoding method, recording method and transmitting method
JP4224778B2 (en) STREAM CONVERTING APPARATUS AND METHOD, ENCODING APPARATUS AND METHOD, RECORDING MEDIUM, AND PROGRAM
JP2006295449A (en) Rate converting method and rate converter
JP2000324494A (en) Animation encoding device
JPWO2002080567A1 (en) Image signal quantization apparatus and method
JP4826533B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP4120934B2 (en) Image processing apparatus, image processing method, recording medium, and program
JP3818819B2 (en) Image coding method conversion apparatus, image coding method conversion method, and recording medium
JP2006279272A (en) Moving picture coder and coding control method thereof
JP3963296B2 (en) Video transmission rate conversion device
JP2012138661A (en) Image processing apparatus and method
JP4539028B2 (en) Image processing apparatus, image processing method, recording medium, and program
JP3800965B2 (en) Data rate converter
JPH10174106A (en) Video data compressor and its method
JP2001148852A (en) Image information converter and image information conversion method
JP2007020216A (en) Encoding apparatus, encoding method, filtering apparatus and filtering method
JP3770466B2 (en) Image coding rate conversion apparatus and image coding rate conversion method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060428

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060428

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080527

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080529

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080728

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090728

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091028

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20091112

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100323

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100514

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

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

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

Free format text: PAYMENT UNTIL: 20130702

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees