JP3804846B2 - Recording medium and image signal encoding apparatus - Google Patents

Recording medium and image signal encoding apparatus Download PDF

Info

Publication number
JP3804846B2
JP3804846B2 JP4562998A JP4562998A JP3804846B2 JP 3804846 B2 JP3804846 B2 JP 3804846B2 JP 4562998 A JP4562998 A JP 4562998A JP 4562998 A JP4562998 A JP 4562998A JP 3804846 B2 JP3804846 B2 JP 3804846B2
Authority
JP
Japan
Prior art keywords
encoding
parameter
recording medium
control
image signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP4562998A
Other languages
Japanese (ja)
Other versions
JPH11243529A (en
Inventor
田 基 晴 上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan Ltd
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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP4562998A priority Critical patent/JP3804846B2/en
Publication of JPH11243529A publication Critical patent/JPH11243529A/en
Application granted granted Critical
Publication of JP3804846B2 publication Critical patent/JP3804846B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、記録媒体に高能率符号化された画像情報の追加記録を行なう装置における、記録媒体及び画像信号符号化装置に関するものである。
【0002】
【従来の技術】
近年、ディジタル化された画像信号に対して高能率符号化による圧縮された情報を光ディスクや磁気媒体等のメディアに記録し、この記録メディアを再生した情報に対して復号処理を行ない画像信号を復元し再生する、記録再生システムが開発・実用化されている。このようなシステムの代表的なものとして、現在DVD−VIDEOが商品化されている。DVD−VIDEOは、動画像の高能率符号化方式の国際規格であるMPEG2を用い、高密度な光ディスクに圧縮情報を記録することによって、2時間を超える画像データを1枚のディスクに記録することができる。
【0003】
MPEG2等の画像フレーム間の予測処理を用いた高能率符号化を実現する符号化装置として、図5に示すような構成のものが知られている。入力されたディジタル画像信号はフレームメモリ2に記録され、符号化シンタックスに従って符号化される順番に並べ替えを行なうため遅延される。フレームメモリ2から出力されたディジタル信号は、基準フレームにおいては2次元ブロック変換回路4で垂直方向N画素・水平方向M画素(通常N,Mは8)の2次元ブロックに変換される。変換されたデータに対して直交変換回路6でDCT変換処理が施され量子化回路8に送られる。量子化回路8において量子化されたDCT変換係数に対し、符号化回路10において、符号化テーブル12の係数に対応したアドレスを参照することにより可変長または固定長の符号化が行われ、マルチプレクサ14により上記符号化データと画面内でのブロックの場所等を示す付加情報とが多重化され、ビットストリームとして記録媒体16、例えば光ディスクに出力される。
【0004】
以上の符号化処理と共に、量子化回路8で量子化されたDCT変換係数は逆量子化回路18、逆直交変換回路20においてそれぞれ逆量子化及び逆DCT変換が行われ、さらにデブロック回路22で非ブロック化され、符号化ビットストリームが復号された状態の画像信号に復元されて、予測メモリ24に格納される。
【0005】
続いて予測フレーム24においては、フレームメモリ2から出力される画像と予測メモリ24に格納されている画像との間での動きベクトルが動きベクトル検出回路26によって求められる。動きベクトル検出回路26は一般的にブロックマッチングにより求められ、符号化する画像と予測メモリ24の画像をそれぞれ2次元ブロック化し、画素毎の差分絶対値総和(もしくは差分二乗総和)の最も小さいブロックに対する画面内の動き成分を動きベクトルとして出力する。この出力された動きベクトルにより、予測ブロックが動き補償予測回路28により予測メモリ24から切り出される。動き補償予測回路28では予測モードの選択を行ない、符号化する画像ブロックとの差分を2次元ブロック変換回路4に送り出す。以降は、前記フレームの各ブロックと同様の処理が行なわれ、DCT変換係数が動きベクトルや予測モードと共にビットストリームとして出力される。
【0006】
符号量の制御に関しては、出力されたストリームの符号量がレートコントロール回路30において目標とする符号量との比較が行なわれ、目標符号量に近づけるために量子化回路8の量子化の細かさ(量子化スケール)を制御する。MPEG2の場合では基準フレーム(Iピクチャ)と2種類の予測フレーム(Pピクチャ:片方向予測、Bピクチャ:両方向予測)の3種類の情報量の異なるピクチャタイプが存在するため、予め設定された符号化レートに対して、3つのピクチャタイプの性質と出現頻度を用いて、各フレームに対する目標符号量を算出する。
【0007】
例えば、ある一定時間に割り与えられる総符号量をR、一定時間内のI,P,B各ピクチャのフレーム数をNI,NP,NB、また直前の各ピクチャの符号量をSI,SP,SB、その時の量子化スケールの平均値をQI,QP,QBとすると、乗算記号(乗算演算子)を*として、
XI=SI*QI
XP=SP*QP
XB=SB*QB …(式1)
上記XI,XP,XBが符号化難易度を表わす値となり、これから処理を行なうピクチャに対しては、この比率を用いて符号量を割り振ることにより、目標符号量を設定することができる。各ピクチャタイプの目標符号量をTI,TP,TBとすると、

Figure 0003804846
と算出することができる。なお、ここで、KP,KBは、それぞれP,Bに対する符号化処理を考慮した重みとする。
【0008】
ここで、先行する画像の複雑さ(アクティビティ)を予め算出しておき、そのアクティビティ値を各フレームに対する目標符号量の割り当てに反映させると、制御能力を高めることができる。
【0009】
例えば、各フレームタイプの直前のアクティビティをAI,AP,ABとし、これから符号化する画像のアクティビティがCAであった場合、これから符号化するフレームのフレームタイプの符号化難易度を、
XI=XI*CA/AI
XP=XP*CA/AP
XB=XB*CA/AB …(式3)
と更新することにより、これから符号化する画像の複雑さが符号量割り当てに反映され、画質の安定したストリームを出力することができる。
【0010】
目標符号量は、復号装置のストリームバッファを仮想的にシミュレートして、バッファのオーバーフロー/アンダーフローが起きないように制限される。量子化回路8における量子化スケールは、スケールと出力符号量とが一般的にほぼ反比例の関係にあることを利用して、各ピクチャタイプ毎に目標符号量に対する量子化スケール値CQを例えば以下のような計算式で求め、量子化処理を行なう。
【0011】
Figure 0003804846
符号化開始時には、基準となる画像がないため、一般的な画像を考慮したパラメータが初期値としてセットされる。そのため符号化開始時には符号量の制御能力が落ちるが、処理が進むと安定した制御を実現することができる。
【0012】
ピクチャ内での各ブロックでは、ブロック毎に目標符号量に近づく方向に量子化スケールを変動させることによって、目標符号量内に符号化ビットストリームを抑える。固定転送レート符号化の場合に、細かい量子化スケールを用いても符号化ストリームの量が設定した符号化レートに満たない場合には、1つのピクチャの区切りを示すヘッダコードの前に足りない符号量分のスタッフィングビットを詰め込むことにより、設定した符号化レートに合わせる。
【0013】
DVDビデオ等の読み出し専用記録媒体に対しては、記録イメージを作成してプレスすることにより生産されるため、一度に全てのデータエリアに画像情報が記録される。しかしながら、読み書き両用記録媒体においては、一度に全てのデータエリアに記録する必要は無く、必要に応じて追加記録を行なったり、符号化ストリームの途中から編集記録することが可能である。ビデオカメラ等の用途に使用する場合には、同一場所での撮影であっても構図を変更するために記録の一時停止を行なうことがあり、またバッテリー等を交換するためには一時的に電源をオフにしたりする必要がある。このような場合に、すでに記録された画像情報とこれから記録する画像情報を同一シーケンスとして再生させたい場合には、仮想ストリームバッファの制御を迫記される符号化処理に引き継ぐ必要がある。
【0014】
【発明が解決しようとする課題】
追加記録を行なう場合に、すでに記録されている符号化ストリームから、仮想ストリームバッファの制御を行なうためには、ストリームに記録されている仮想バッファの大きさ、符号化レートを読み取ると共に、最後のフレームのストリームの先頭を検出して、へッダ情報に記録されている仮想バッファのバッファ位置を読み込み、更に最後のフレームに要した符号量と、符号化レート、仮想バッファの大きさから、符号化終了時の仮想バッファの位置を計算し、その値を初期値として符号化処理を行なう必要がある。そのため、符号化開始時に特別な処理を必要とする欠点があった。また、すでに符号化された画像信号の符号化時に用いられた制御バラメータはストリーム上には記録されていないため、迫加記録時にパラメータが初期化され入力画像信号の特性に追従するまでに、数フレームの符号化処理を必要とし、特に、すでに記録された画像と特性の似ている画像の符号化処理を行ない追加記録をする場合に、繋ぎ目の部分で瞬間的に画質を劣化させる欠点があった。
【0015】
本発明は上記問題を解決するためになされたものであり、追加記録を行なう場合に、すでに符号化された画像との連続性を保証し、かつ画質劣化の少ない符号化処理を行なう、記録媒体及び画像信号符号化装置を提供することを目的とするものである。
【0016】
【課題を解決するための手段】
上記目的を達成するために、請求項1に係る発明は、ディジタル化された画像信号に対して、可変長符号化処理を施された信号を記録する記録媒体であって、一時記憶のためのデータエリアを持ち、このデータエリアに可変長符号化処理に用いられる制御用パラメータが記録されていることを特徴とするものである。
【0017】
請求項2に係る発明は、請求項1に記載の記録媒体において、制御用パラメータは、符号化処理を行なった際の復号装置の仮想バッファの位置、仮想バッファの大きさ、符号化レート、符号化制御方法を示す情報、及び追加記録可能な記録エリアの先頭アドレスを示す情報のうちの少なくとも一つを含むことを特徴とするものである。
【0018】
請求項3に係る発明は、請求項1又は2に記載の記録媒体において、制御用パラメータは、符号化装置の内部で符号量を制御するためのパラメータを含むことを特徴とするものである。
【0019】
請求項4に係る発明は、請求項1,2又は3に記載の記録媒体において、制御用パラメータは、符号化装置の機種を認識することのできるパラメータを含むことを特徴とするものである。
【0020】
請求項5に係る発明は、ディジタル化された画像信号に対して可変長符号化処理を施し、その結果生成された情報を記録媒体に記録する画像信号符号化装置において、符号化開始時に記録媒体の所定のエリアに記録された制御用パラメータを読み取り、その制御用パラメータを初期パラメータとして符号化処理を行なわせ、かつ、符号化終了時に記録媒体の所定のエリアに最終的な制御用パラメータを記録して符号化処理を終了させる符号化パラメータ処理手段を備えたことを特徴とするものである。
【0021】
請求項6に係る発明は、請求項5に記載の画像信号符号化装置において、制御用パラメータは、符号化処理を行なった際の復号装置の仮想バッファの位置、仮想バッファの大きさ、符号化レート、符号化制御方法を示す情報、及び追加記録可能な記録エリアの先頭アドレスを示す情報のうちの少なくとも一つを含むことを特徴とするものである。
【0022】
請求項7に係る発明は、請求項5又は6に記載の画像信号符号化装置において、制御用パラメータは、符号量を制御するための内部パラメータを含むことを特徴とするものである。
【0023】
請求項8に係る発明は、請求項5に記載の画像信号符号化装置において、符号化パラメータ処理手段は、符号化装置の機種を認識することのできるパラメータを記録再生すると共に、再生された機種を示すパラメータ及び符号量制御のための内部パラメータを入力として制御用パラメータに変換するパラメータ再生変換手段を含むことを特徴とするものである。
【0024】
【発明の実施の形態】
(実施の形態1)
図1は、本発明の画像信号符号化装置の第一の実施の形態を示すものである。この画像信号符号化装置は、フレームメモリ2、2次元ブロック変換回路4、直交変換回路6、量子化回路8、符号化回路10、符号化テーブル12、マルチプレクサ14、逆量子化回路18、逆直交変換回路20、デブロック回路22、予測メモリ24、動きベクトル検出回路26、動き補償予測回路28、レートコントロール回路30、符号化パラメータレジスタ32、及び符号化パラメータ記録再生回路34により構成されている。これらの要素のうち、フレームメモリ2からレートコントロール回路30までの装置部分に関しては、図5を参照して説明した従来装置と同様であり、その説明は省略する。
【0025】
マルチプレクサ14では多重化したビットストリームを記録媒体16に出力し記録すると共に、記録されたストリームの発生符号量をカウントしてレートコントロール回路30に出力する。レートコントロール回路30では、設定された符号化レートと発生符号量とピクチャタイプ(Iピクチャ又はPピクチャ又はBピクチャ)から、次のフレームの符号化の目標符号量を算出し、量子化スケールを決定して量子化回路8へ出力する。ここで、目標符号量算出に用いられるパラメータは、本発明に従い符号化パラメータレジスタ32に記憶される。符号化コントロールが従来例で示されたような方式で行われる場合には、記憶されるパラメータは、符号化難易度を示す各ピクチャP,I,B毎のパラメータXI,XP,XB、一定時間に割り当てられる総符号量を表わすR、一定時間内のフレーム総数を示すN(=NI+NP+NB)、各フレームタイプの最後のピクチャのアクティビティAI,AP,AB、仮想バッファの大きさVS、仮想バッファの現在の位置VC等である。上記パラメータはピクチャ毎に必要に応じて参照され、また更新される。
【0026】
符号化処理の終了時には、符号化パラメータ記録再生回路34が、記録媒体16の符号化データエリア以外の特定のエリアに上記パラメータを記録して処理を終了する。記録媒体のパラメータが記録されるエリアのデータフォーマットの一例を図2に示す。記録エリアの最初の位置にあるリードイン部40に続き、ディスク情報等が書かれているデータトラック42が存在する。ここには、媒体のID情報すなわちディスク識別情報420、ファイルフォーマット情報すなわちディスク管理情報422、再生開始ポイント情報424等を定義するへッダエリアが存在する。このヘッダエリアの次に上記パラメータが記録される符号化制御情報エリア426を設ける。ここで説明する符号化制御情報エリア426には、制御用パラメータのためのヘッダA1(32ビット)に続き、追加記録を行なうディスクエリアの先頭位置を示す追加記録先頭位置エリアA2(32ビット)、総符号量Rを示すRエリアA3(16ビット)、仮想バッファの大きさVSを示すVSエリアA4(16ビット)、仮想バッファの位置VCを示すVCエリアA5(16ビット)、一定時間内の各ピクチャのフレーム総数を示すNエリアA6(8ビット)、Iピクチャの符号化難易度XIを示すXIエリアA7(12ビット)、Pピクチャの符号化難易度XPを示すXPエリアA8(12ビット)、Bピクチャの符号化難易度XBを示すXBエリアA9(12ビット)、各フレームタイプの最後のIピクチャのアクティビティAIを示すAIエリアA10(12ビット)、同様にPピクチャのアクティビティAPを示すAPエリアA11(12ビット)、BピクチャのアクティビティABを示すABエリアA12(12ビット)の順で記録される。このデータエリアの後に、符号化情報が記録される符号化ストリームトラック44,46,48が存在する。
【0027】
符号化開始時には、まず制御用パラメータを示すへッダA1を探索し、追加記録先頭位置A2の内容を読み込み、その場所に記録位置を移動させる。また、符号化パラメータ記録再生回路34は、上記制御用パラメータを読み込み、符号化パラメータレジスタ32に記録する。この符号化装置は、通常の符号化処理と同様に符号化パラメータレジスタ32を参照して符号化処理を開始する。
【0028】
このようにして、すでに符号化された画像情報の制御用パラメータを読み込み追加記録を行なうことにより、すでに符号化された画像との連続性を保証することができると共に、符号化開始時のレート制御能力を向上させることができる。
【0029】
(実施の形態2)
次に、本発明の第二の実施の形態を示す符号化装置について説明する。この実施の形態では、符号化パラメータ記録再生回路34を符号化パラメータ記録回路36及び符号化パラメータ再生変換回路38に分離されている。符号化パラメータ記録回路36においては、第一の実施の形態と同様のパラメータと共に、符号化装置の識別を行なうための信号を記録する。識別信号を制御方法の異なる符号化装置で異なる信号を記録することにより、すでに記録された画像情報が、いかなる符号化装置で処理されたかを知ることができる。識別信号は、符号化装置に共通なパラメータ(一定時間に割り当てられる総符号量R、仮想バッファの大きさVS及び位置VC)に続いて記録され、以降に符号化に特有のパラメータが記録される。符号化開始時に、再生回路は識別信号を読み取り、それに続く制御用パラメータを読み取る。識別信号が、自己のものと同様であれば、制御パラメ一夕をそのまま符号化パラメータレジスタに記憶させ、符号化処理を開始する。自己のものと異なる識別信号の場合には、制御用パラメータの変換処理を行ない、使用可能なパラメータを符号化パラメータに記憶させ、他のエリアには初期値をセットする。
【0030】
異なるアルゴリズムの符号化装置で記録された画像信号に連続して追加記録を行ないたい場合に、仮想バッファ等の符号化装置に共通なパラメータは確実に読み込めるため、符号化ストリームの連続性を確保することができる。また、予め他のアルゴリズムの符号化装置の認識信号とパラメータの変換規則をメモリ等に貯えておき、認識信号とパラメータから、符号化処理に必要なパラメータを生成することにより、異なる装置間においても、符号化制御処理の安定性を向上させることができる。
【0031】
図2の記録媒体の例においては、記録媒体の先頭エリアにのみ上記パラメータ記録エリアを設けているが、複数のパラメータ記録エリアを設けることも可能である。図4に例示するように、編集可能なストリームの単位、例えば符号化ストリーム44に、ストリームデータB2,B4,B7に先立ちそれぞれパラメータ記録エリアすなわち制御情報エリアB1,B3,B6を設けておき、編集ポイントでパラメータを読み取ることにより、編集処理においても符号化ストリームの連続性と符号化制御の安定性を実現することができる。
【0032】
【発明の効果】
本発明の記録媒体及び画像信号符号化装置によれば、符号化終了時にディスク等の記録媒体の特定エリアに符号量を制御するための各種パラメータを記録しておき、追加記録や編集処理で符号化処理を行なう際に、上記パラメータを参照して符号化処理を開始することにより、符号化ストリームを同一シーケンスで扱うための仮想バッファ制御処理を容易に実現することができるとともに、符号化開始時のレート制御を安定化させることができる。
【図面の簡単な説明】
【図1】本発明の符号化装置の第1の実施の形態を示すブロック図である。
【図2】本発明の第1の実施の形態を実現する記録媒体のデータフォーマットの一例を示す図である。
【図3】本発明の符号化装置の第2の実施の形態を示すブロック図である。
【図4】制御データの格納エリアを複数所有する、記録媒体のデータフォーマットの一例を示す図である。
【図5】従来の画像符号化装置を示すブロック図である。
【符号の説明】
2 フレームメモリ
4 2次元ブロック変換回路
6 直交変換回路
8 量子化回路
10 符号化回路
12 符号化テーブル
14 マルチプレクサ
16 記録媒体
18 逆量子化回路
20 逆直交変換回路
22 デブロック回路
24 予測メモリ
26 動きベクトル検出回路
28 動き補償予測回路
30 レートコントロール回路
32 符号化パラメータレジスタ
34 符号化パラメータ記録再生回路
36 符号化パラメータ記録回路
38 符号化パラメータ再生変換回路[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a recording medium and an image signal encoding apparatus in an apparatus for additionally recording image information that has been highly efficient encoded on a recording medium.
[0002]
[Prior art]
In recent years, information compressed by high-efficiency encoding of digitized image signals is recorded on a medium such as an optical disk or a magnetic medium, and the information reproduced from the recording medium is decoded to restore the image signal. Recording and playback systems that play back and play back have been developed and put to practical use. As a representative of such a system, DVD-VIDEO is currently commercialized. DVD-VIDEO uses MPEG2 which is an international standard for high-efficiency encoding of moving images, and records compressed data on a high-density optical disc, thereby recording image data over two hours on a single disc. Can do.
[0003]
As an encoding device that realizes high-efficiency encoding using prediction processing between image frames such as MPEG2, a configuration as shown in FIG. 5 is known. The input digital image signal is recorded in the frame memory 2 and delayed in order to be rearranged in the order of encoding according to the encoding syntax. The digital signal output from the frame memory 2 is converted into a two-dimensional block of N pixels in the vertical direction and M pixels in the horizontal direction (usually N and M are 8) by the two-dimensional block conversion circuit 4 in the reference frame. The transformed data is subjected to DCT transformation processing by the orthogonal transformation circuit 6 and sent to the quantization circuit 8. The encoding circuit 10 performs variable length or fixed length encoding on the DCT transform coefficient quantized by the quantization circuit 8 by referring to an address corresponding to the coefficient of the encoding table 12, and the multiplexer 14. As a result, the encoded data and additional information indicating the location of the block in the screen are multiplexed and output as a bit stream to the recording medium 16, for example, an optical disc.
[0004]
Along with the above encoding process, the DCT transform coefficient quantized by the quantization circuit 8 is subjected to inverse quantization and inverse DCT transform in the inverse quantization circuit 18 and the inverse orthogonal transform circuit 20, respectively. It is deblocked and restored to an image signal in a state where the encoded bit stream is decoded and stored in the prediction memory 24.
[0005]
Subsequently, in the prediction frame 24, a motion vector between the image output from the frame memory 2 and the image stored in the prediction memory 24 is obtained by the motion vector detection circuit 26. The motion vector detection circuit 26 is generally obtained by block matching, and each of the image to be encoded and the image in the prediction memory 24 is converted into a two-dimensional block, and the block having the smallest difference absolute value sum (or difference sum of squares) for each pixel is obtained. The motion component in the screen is output as a motion vector. Based on the output motion vector, the prediction block is cut out from the prediction memory 24 by the motion compensation prediction circuit 28. The motion compensation prediction circuit 28 selects a prediction mode, and sends the difference from the image block to be encoded to the two-dimensional block conversion circuit 4. Thereafter, the same processing as that of each block of the frame is performed, and the DCT transform coefficient is output as a bit stream together with the motion vector and the prediction mode.
[0006]
Regarding the control of the code amount, the code amount of the output stream is compared with the target code amount in the rate control circuit 30, and the quantization level of the quantization circuit 8 (in order to approach the target code amount ( Control the quantization scale. In the case of MPEG2, there are three types of picture types having different information amounts, ie, a reference frame (I picture) and two types of prediction frames (P picture: unidirectional prediction, B picture: bidirectional prediction). The target code amount for each frame is calculated using the properties and appearance frequency of the three picture types with respect to the conversion rate.
[0007]
For example, R is the total code amount allocated for a certain time, NI, NP, NB is the number of frames of each picture of I, P, B within a certain time, and SI, SP, SB is the code amount of each previous picture. If the average value of the quantization scale at that time is QI, QP, QB, the multiplication symbol (multiplication operator) is set as *,
XI = SI * QI
XP = SP * QP
XB = SB * QB (Formula 1)
The above XI, XP, and XB are values representing the level of difficulty of encoding, and the target code amount can be set by allocating the code amount using this ratio for a picture to be processed from now on. When the target code amount of each picture type is TI, TP, TB,
Figure 0003804846
Can be calculated. Here, KP and KB are weights in consideration of encoding processing for P and B, respectively.
[0008]
Here, if the complexity (activity) of the preceding image is calculated in advance and the activity value is reflected in the allocation of the target code amount for each frame, the control capability can be enhanced.
[0009]
For example, if the activity immediately before each frame type is AI, AP, AB, and the activity of the image to be encoded is CA, the encoding difficulty level of the frame type of the frame to be encoded is
XI = XI * CA / AI
XP = XP * CA / AP
XB = XB * CA / AB (Formula 3)
Thus, the complexity of the image to be encoded is reflected in the code amount allocation, and a stream with stable image quality can be output.
[0010]
The target code amount is limited so that the overflow / underflow of the buffer does not occur by virtually simulating the stream buffer of the decoding device. The quantization scale in the quantization circuit 8 uses the fact that the scale and the output code amount are generally in an inversely proportional relationship, and sets the quantization scale value CQ for the target code amount for each picture type, for example: Quantization processing is performed using such a calculation formula.
[0011]
Figure 0003804846
Since there is no reference image at the start of encoding, a parameter considering a general image is set as an initial value. For this reason, the control capability of the code amount decreases at the start of encoding, but stable control can be realized as the processing proceeds.
[0012]
In each block in the picture, the coded bit stream is suppressed within the target code amount by changing the quantization scale in a direction approaching the target code amount for each block. In the case of fixed transfer rate encoding, if the amount of the encoded stream is less than the set encoding rate even if a fine quantization scale is used, a code that is insufficient before the header code indicating the delimiter of one picture By matching the amount of stuffing bits, it matches the set coding rate.
[0013]
A read-only recording medium such as a DVD video is produced by creating a recorded image and pressing it, so that image information is recorded in all data areas at once. However, in the read / write recording medium, it is not necessary to record in all the data areas at once, and additional recording can be performed as needed, and editing recording can be performed from the middle of the encoded stream. When used in applications such as video cameras, recording may be paused to change the composition even when shooting at the same location, and power may be temporarily turned off to replace batteries. Or need to turn off. In such a case, when it is desired to reproduce the already recorded image information and the image information to be recorded from now on as the same sequence, it is necessary to take over the control of the virtual stream buffer to the encoding process to be noted.
[0014]
[Problems to be solved by the invention]
When performing additional recording, in order to control the virtual stream buffer from the already recorded encoded stream, the size and encoding rate of the virtual buffer recorded in the stream are read and the last frame is read. Detects the beginning of the stream, reads the buffer position of the virtual buffer recorded in the header information, and further encodes from the amount of code required for the last frame, the encoding rate, and the size of the virtual buffer. It is necessary to calculate the position of the virtual buffer at the end and perform the encoding process using that value as an initial value. For this reason, there is a drawback that special processing is required at the start of encoding. In addition, since the control parameters used at the time of encoding the already encoded image signal are not recorded on the stream, the parameters are initialized at the time of urgent recording and before the parameters follow the characteristics of the input image signal. The frame encoding process is required, especially when performing additional recording by encoding an image that has similar characteristics to an already recorded image, and has the disadvantage of instantaneously degrading the image quality at the joint. there were.
[0015]
The present invention has been made in order to solve the above-described problem. When performing additional recording, the recording medium guarantees continuity with an already encoded image and performs encoding processing with little image quality deterioration. An object of the present invention is to provide an image signal encoding device.
[0016]
[Means for Solving the Problems]
In order to achieve the above object, the invention according to claim 1 is a recording medium for recording a signal obtained by subjecting a digitized image signal to variable length coding processing for temporary storage. It has a data area, and control parameters used for variable length coding processing are recorded in this data area.
[0017]
According to a second aspect of the present invention, in the recording medium according to the first aspect, the control parameters are the position of the virtual buffer of the decoding apparatus, the size of the virtual buffer, the coding rate, and the code when the coding process is performed. It includes at least one of information indicating a recording control method and information indicating a head address of a recording area that can be additionally recorded.
[0018]
According to a third aspect of the present invention, in the recording medium according to the first or second aspect, the control parameter includes a parameter for controlling a code amount inside the encoding device.
[0019]
According to a fourth aspect of the present invention, in the recording medium according to the first, second, or third aspect, the control parameter includes a parameter that can recognize a model of the encoding device.
[0020]
According to a fifth aspect of the present invention, there is provided an image signal encoding apparatus for performing variable-length encoding processing on a digitized image signal and recording information generated as a result on the recording medium. The control parameter recorded in the predetermined area is read, the encoding process is performed using the control parameter as an initial parameter, and the final control parameter is recorded in the predetermined area of the recording medium at the end of encoding. And encoding parameter processing means for ending the encoding process.
[0021]
According to a sixth aspect of the present invention, in the image signal encoding device according to the fifth aspect, the control parameters include the position of the virtual buffer of the decoding device, the size of the virtual buffer, and the encoding when the encoding process is performed. It includes at least one of information indicating a rate, an encoding control method, and information indicating a head address of a recording area that can be additionally recorded.
[0022]
The invention according to claim 7 is the image signal encoding device according to claim 5 or 6, wherein the control parameter includes an internal parameter for controlling the code amount.
[0023]
According to an eighth aspect of the present invention, in the image signal encoding device according to the fifth aspect, the encoding parameter processing means records and reproduces a parameter capable of recognizing the model of the encoding device, and the reproduced model. And a parameter reproduction conversion means for converting into an input parameter an internal parameter for code amount control and an internal parameter for code amount control.
[0024]
DETAILED DESCRIPTION OF THE INVENTION
(Embodiment 1)
FIG. 1 shows a first embodiment of an image signal encoding apparatus according to the present invention. The image signal encoding apparatus includes a frame memory 2, a two-dimensional block transform circuit 4, an orthogonal transform circuit 6, a quantization circuit 8, a coding circuit 10, a coding table 12, a multiplexer 14, an inverse quantization circuit 18, and an inverse orthogonal. The conversion circuit 20, the deblocking circuit 22, the prediction memory 24, the motion vector detection circuit 26, the motion compensation prediction circuit 28, the rate control circuit 30, the encoding parameter register 32, and the encoding parameter recording / reproducing circuit 34 are configured. Among these elements, the device portion from the frame memory 2 to the rate control circuit 30 is the same as that of the conventional device described with reference to FIG. 5, and the description thereof is omitted.
[0025]
The multiplexer 14 outputs and records the multiplexed bit stream on the recording medium 16, counts the generated code amount of the recorded stream, and outputs it to the rate control circuit 30. The rate control circuit 30 calculates a target code amount for encoding the next frame from the set encoding rate, generated code amount, and picture type (I picture, P picture, or B picture), and determines the quantization scale. And output to the quantization circuit 8. Here, the parameters used for calculating the target code amount are stored in the encoding parameter register 32 according to the present invention. When the encoding control is performed in the manner shown in the conventional example, the stored parameters are the parameters XI, XP, XB for each picture P, I, B indicating the encoding difficulty, and a fixed time. R indicating the total code amount allocated to N, N indicating the total number of frames in a certain time (= NI + NP + NB), activity AI, AP, AB of the last picture of each frame type, virtual buffer size VS, current virtual buffer Position VC. The above parameters are referred to and updated as necessary for each picture.
[0026]
At the end of the encoding process, the encoding parameter recording / reproducing circuit 34 records the parameters in a specific area other than the encoded data area of the recording medium 16 and ends the process. An example of the data format of the area where the parameters of the recording medium are recorded is shown in FIG. Following the lead-in section 40 at the first position of the recording area, there is a data track 42 in which disc information and the like are written. Here, there is a header area for defining medium ID information, that is, disc identification information 420, file format information, that is, disc management information 422, reproduction start point information 424, and the like. Next to this header area, an encoding control information area 426 in which the above parameters are recorded is provided. In the encoding control information area 426 described here, following the header A1 (32 bits) for control parameters, an additional recording head position area A2 (32 bits) indicating the head position of the disk area where additional recording is performed, R area A3 (16 bits) indicating the total code amount R, VS area A4 (16 bits) indicating the size VS of the virtual buffer, VC area A5 (16 bits) indicating the position VC of the virtual buffer, each within a fixed time N area A6 (8 bits) indicating the total number of frames of the picture, XI area A7 (12 bits) indicating the encoding difficulty XI of the I picture, XP area A8 (12 bits) indicating the encoding difficulty XP of the P picture, XB area A9 (12 bits) indicating the encoding difficulty level XB of B picture, activity AI of the last I picture of each frame type AI area A10 indicating (12 bits), likewise AP area A11 (12 bits) that indicates the activity AP P-picture, is recorded in the order of AB area A12 indicating the activity AB B picture (12 bits). After this data area, there are encoded stream tracks 44, 46, and 48 in which encoded information is recorded.
[0027]
At the start of encoding, first, a header A1 indicating a control parameter is searched, the contents of the additional recording head position A2 are read, and the recording position is moved to that position. The encoding parameter recording / reproducing circuit 34 reads the control parameter and records it in the encoding parameter register 32. This encoding apparatus starts the encoding process with reference to the encoding parameter register 32 in the same manner as the normal encoding process.
[0028]
In this way, by reading the control parameters of the already encoded image information and performing additional recording, continuity with the already encoded image can be ensured, and rate control at the start of encoding is possible. Ability can be improved.
[0029]
(Embodiment 2)
Next, an encoding apparatus showing a second embodiment of the present invention will be described. In this embodiment, the encoding parameter recording / reproduction circuit 34 is separated into an encoding parameter recording circuit 36 and an encoding parameter reproduction conversion circuit 38. The encoding parameter recording circuit 36 records a signal for identifying the encoding apparatus together with the same parameters as those in the first embodiment. By recording different signals with encoding devices having different control methods, it is possible to know which encoding device has processed the already recorded image information. The identification signal is recorded following parameters common to the encoding device (total code amount R assigned to a predetermined time, virtual buffer size VS and position VC), and parameters specific to encoding are recorded thereafter. . At the start of encoding, the reproducing circuit reads the identification signal and then reads the control parameters. If the identification signal is the same as its own, the control parameter is stored in the encoding parameter register as it is, and the encoding process is started. In the case of an identification signal different from the self signal, control parameter conversion processing is performed, usable parameters are stored in encoding parameters, and initial values are set in other areas.
[0030]
When it is desired to continuously perform additional recording on an image signal recorded by an encoding device of a different algorithm, parameters common to the encoding device such as a virtual buffer can be reliably read, so that the continuity of the encoded stream is ensured. be able to. In addition, the recognition signal and parameter conversion rule of the encoding device of another algorithm is stored in advance in a memory or the like, and a parameter necessary for the encoding process is generated from the recognition signal and the parameter, so that it can be used between different devices. The stability of the encoding control process can be improved.
[0031]
In the example of the recording medium in FIG. 2, the parameter recording area is provided only in the head area of the recording medium, but a plurality of parameter recording areas may be provided. As shown in FIG. 4, parameter recording areas, that is, control information areas B1, B3, and B6 are provided in the editable stream unit, for example, the encoded stream 44, prior to the stream data B2, B4, and B7, respectively. By reading the parameters at points, it is possible to realize the continuity of the encoded stream and the stability of the encoding control even in the editing process.
[0032]
【The invention's effect】
According to the recording medium and the image signal encoding device of the present invention, various parameters for controlling the amount of code are recorded in a specific area of the recording medium such as a disk at the end of encoding, and are encoded by additional recording or editing processing. When performing the encoding process, it is possible to easily realize the virtual buffer control process for handling the encoded stream in the same sequence by starting the encoding process with reference to the above parameters, and at the time of encoding start Rate control can be stabilized.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a first embodiment of an encoding apparatus according to the present invention.
FIG. 2 is a diagram showing an example of a data format of a recording medium that realizes the first embodiment of the present invention.
FIG. 3 is a block diagram showing a second embodiment of the encoding apparatus of the present invention.
FIG. 4 is a diagram illustrating an example of a data format of a recording medium having a plurality of control data storage areas.
FIG. 5 is a block diagram illustrating a conventional image encoding device.
[Explanation of symbols]
2 Frame memory 4 Two-dimensional block transform circuit 6 Orthogonal transform circuit 8 Quantization circuit 10 Encoding circuit 12 Encoding table 14 Multiplexer 16 Recording medium 18 Inverse quantization circuit 20 Inverse orthogonal transform circuit 22 Deblock circuit 24 Prediction memory 26 Motion vector Detection circuit 28 Motion compensation prediction circuit 30 Rate control circuit 32 Encoding parameter register 34 Encoding parameter recording / reproducing circuit 36 Encoding parameter recording circuit 38 Encoding parameter reproducing conversion circuit

Claims (8)

ディジタル化された画像信号に対して、可変長符号化処理を施された信号を記録する記録媒体であって、一時記憶のためのデータエリアを持ち、このデータエリアに可変長符号化処理に用いられる制御用パラメータが記録されていることを特徴とする記録媒体。A recording medium for recording a signal obtained by subjecting a digitized image signal to variable-length coding processing, and having a data area for temporary storage, which is used for variable-length coding processing. A recording medium on which recorded control parameters are recorded. 前記制御用パラメータは、符号化処理を行なった際の復号装置の仮想バッファの位置、仮想バッファの大きさ、符号化レート、符号化制御方法を示す情報、及び追加記録可能な記録エリアの先頭アドレスを示す情報のうちの少なくとも一つを含むことを特徴とする請求項1に記載の記録媒体。The control parameter includes the position of the virtual buffer of the decoding device when performing the encoding process, the size of the virtual buffer, the encoding rate, information indicating the encoding control method, and the start address of the recording area that can be additionally recorded The recording medium according to claim 1, further comprising at least one piece of information indicating 前記制御用パラメータは、符号化装置の内部で符号量を制御するためのパラメータを含むことを特徴とする請求項1又は2に記載の記録媒体。The recording medium according to claim 1, wherein the control parameter includes a parameter for controlling a code amount inside the encoding apparatus. 前記制御用パラメータは、符号化装置の機種を認識することのできるパラメータを含むことを特徴とする請求項1,2又は3に記載の記録媒体。The recording medium according to claim 1, wherein the control parameter includes a parameter capable of recognizing a model of the encoding device. ディジタル化された画像信号に対して可変長符号化処理を施し、その結果生成された情報を記録媒体に記録する画像信号符号化装置において、符号化開始時に記録媒体の所定のエリアに記録された制御用パラメータを読み取り、その制御用パラメータを初期パラメータとして符号化処理を行なわせ、かつ、符号化終了時に前記記録媒体の所定のエリアに最終的な制御用パラメータを記録して符号化処理を終了させる符号化パラメータ処理手段を備えたことを特徴とする画像信号符号化装置。In an image signal encoding apparatus that performs variable-length encoding processing on a digitized image signal and records the resulting information on a recording medium, the information is recorded in a predetermined area of the recording medium at the start of encoding The control parameter is read, and the encoding process is performed using the control parameter as an initial parameter. At the end of encoding, the final control parameter is recorded in a predetermined area of the recording medium, and the encoding process is terminated. An image signal encoding apparatus comprising encoding parameter processing means for causing the image signal to be encoded. 前記制御用パラメータは、符号化処理を行なった際の復号装置の仮想バッファの位置、仮想バッファの大きさ、符号化レート、符号化制御方法を示す情報、及び追加記録可能な記録エリアの先頭アドレスを示す情報のうちの少なくとも一つを含むことを特徴とする請求項5に記載の画像信号符号化装置。The control parameter includes the position of the virtual buffer of the decoding device when performing the encoding process, the size of the virtual buffer, the encoding rate, information indicating the encoding control method, and the start address of the recording area that can be additionally recorded The image signal encoding apparatus according to claim 5, further comprising at least one of information indicating 前記制御用パラメータは、符号量を制御するための内部パラメータを含むことを特徴とする請求項5又は6に記載の画像信号符号化装置。The image signal encoding apparatus according to claim 5 or 6, wherein the control parameter includes an internal parameter for controlling a code amount. 前記符号化パラメータ処理手段は、符号化装置の機種を認識することのできるパラメータを記録再生すると共に、再生された機種を示すパラメータ及び符号量制御のための内部パラメータを入力として制御用パラメータに変換するパラメータ再生変換手段を含むことを特徴とする請求項5に記載の画像信号符号化装置。The encoding parameter processing means records and reproduces a parameter capable of recognizing the model of the encoding device, and converts a parameter indicating the reproduced model and an internal parameter for code amount control into an input parameter for control. 6. The image signal encoding apparatus according to claim 5, further comprising parameter reproduction conversion means for performing the operation.
JP4562998A 1998-02-26 1998-02-26 Recording medium and image signal encoding apparatus Expired - Lifetime JP3804846B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4562998A JP3804846B2 (en) 1998-02-26 1998-02-26 Recording medium and image signal encoding apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4562998A JP3804846B2 (en) 1998-02-26 1998-02-26 Recording medium and image signal encoding apparatus

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP2004094874A Division JP3882826B2 (en) 2004-03-29 2004-03-29 Image signal encoding apparatus and image signal encoding method
JP2004094873A Division JP3882825B2 (en) 2004-03-29 2004-03-29 Image signal encoding apparatus and image signal encoding method

Publications (2)

Publication Number Publication Date
JPH11243529A JPH11243529A (en) 1999-09-07
JP3804846B2 true JP3804846B2 (en) 2006-08-02

Family

ID=12724674

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4562998A Expired - Lifetime JP3804846B2 (en) 1998-02-26 1998-02-26 Recording medium and image signal encoding apparatus

Country Status (1)

Country Link
JP (1) JP3804846B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4053668B2 (en) * 1998-09-16 2008-02-27 パイオニア株式会社 Information recording apparatus and information recording method
JP2008072718A (en) * 1999-09-20 2008-03-27 Matsushita Electric Ind Co Ltd Coding recorder
US7292782B2 (en) 2000-09-27 2007-11-06 Victor Company Of Japan, Limited MPEG picture data recording apparatus, MPEG picture data recording method, MPEG picture data recording medium, MPEG picture data generating apparatus, MPEG picture data reproducing apparatus, and MPEG picture data reproducing method
WO2007125697A1 (en) * 2006-04-26 2007-11-08 Panasonic Corporation Video processing device, recording medium, video signal processing method, video signal processing program, and integrated circuit
JP4656021B2 (en) * 2006-08-10 2011-03-23 ソニー株式会社 Information processing apparatus, information processing method, and computer program
JP2009088756A (en) * 2007-09-28 2009-04-23 Hitachi Ltd Content recording medium, content recording device and content reproducing device
JP5237222B2 (en) * 2009-08-19 2013-07-17 日本電信電話株式会社 Apparatus, method and program for quantifying video encoding difficulty

Also Published As

Publication number Publication date
JPH11243529A (en) 1999-09-07

Similar Documents

Publication Publication Date Title
JP3037407B2 (en) Digital signal processing system
US7406249B2 (en) Disk media, and method of and device for recording and playing back information on or from a disk media
JPH0879704A (en) Method and apparatus for coding fixed bit rate and tracking method for high speed search using them
JPS63274275A (en) Compression recording system for picture
JP2005109606A (en) Signal processing method, signal processing apparatus, recording apparatus, and reproducing apparatus
JP3804846B2 (en) Recording medium and image signal encoding apparatus
JPH08154230A (en) Method for storing moving image coded data on medium
JP3882825B2 (en) Image signal encoding apparatus and image signal encoding method
JP3882826B2 (en) Image signal encoding apparatus and image signal encoding method
JP3250260B2 (en) Image data recording device and image data reproducing device
JP3394102B2 (en) Optical disc reproducing method and reproducing apparatus
CN100417216C (en) Image data processing device and method
US7430325B2 (en) Encoding system conversion apparatus and method for same
JP2010050616A (en) Recording device and recording method, reproduction device and reproduction method, program, and recording/reproducing device
JP3307367B2 (en) Variable transfer rate coding device
US6993072B1 (en) Digital signal coding apparatus
JP3897783B2 (en) Image processing apparatus, control method therefor, computer program, and computer-readable storage medium
JP3206481B2 (en) Digital image signal recording device
JPH0378380A (en) Recordor for picture signal
JP3727236B2 (en) Video recording apparatus and video reproduction apparatus
US20030091341A1 (en) Image recording device and image reproducing device
JPH08331556A (en) Image coder and image coding method
JPH03129979A (en) Video signal recording disk
JPH05234261A (en) Recording system for digital vtr and device therefor
JP2763057B2 (en) Video coding and playback method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040330

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060412

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060504

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

Free format text: PAYMENT UNTIL: 20090519

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100519

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110519

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120519

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120519

Year of fee payment: 6

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20120519

Year of fee payment: 6

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20120519

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130519

Year of fee payment: 7

EXPY Cancellation because of completion of term