JP2004173117A - Device and method for decoding encoded data - Google Patents

Device and method for decoding encoded data Download PDF

Info

Publication number
JP2004173117A
JP2004173117A JP2002338672A JP2002338672A JP2004173117A JP 2004173117 A JP2004173117 A JP 2004173117A JP 2002338672 A JP2002338672 A JP 2002338672A JP 2002338672 A JP2002338672 A JP 2002338672A JP 2004173117 A JP2004173117 A JP 2004173117A
Authority
JP
Japan
Prior art keywords
decoding
time
data
encoded data
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002338672A
Other languages
Japanese (ja)
Inventor
Katsumi Hoashi
克己 帆足
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2002338672A priority Critical patent/JP2004173117A/en
Publication of JP2004173117A publication Critical patent/JP2004173117A/en
Pending 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)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a device for decoding encoded data which can seamlessly reproduce an editing point of compressed encoded data. <P>SOLUTION: This decoding device reproduces data edited by connecting two pieces of compressed image encoded data with an optional frame. A decoding time allocating means 12 controls the time of a difference between the display time and the decoding time of image encoded data before the editing point, to be reproduced temporally ahead, so as to be allocated to the decoding of image encoded data after the editing point, to be reproduced temporally behind. In addition, a decoding position managing means 13 stores to which position of a frame the image encoded data after the editing point, to reproduced temporally behind, has been decoded by the preceding decoding and controls decoding so as to be started from the point of time when the preceding decoding has been completed in the next decoding. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、デジタル符号化された画像符号化データを復号する復号化装置および復号化方法に関するものであり、特に画像符号化データにおける編集点での再生制御に関する。
【0002】
【従来の技術】
従来よりデジタル画像信号を圧縮する符号化方式として、ISO/IEC11172,13818で規定されるMPEG(Moving Picture Experts Group)方式が提案されている。このMPEG方式の代表的なデータ構造を図7に示す。この図において、動画の1シーケンスを分割した符号化の単位であるGOP(GroupOf Pictures)は、Iピクチャが1フレーム、Pピクチャが4フレーム、Bピクチャが10フレームで合計15フレームから構成されている。ここで、Iピクチャは、フレーム内符号化画像、Pピクチャはフレーム間順方向予測符号化画像で、Bピクチャは、フレーム間双方向予測符号化画像である。具体的には、図7(a)の矢印で図示する通り、I2はI2のフレームだけでフレーム内符号化され、P5はI2、P8はP5を参照してフレーム間予測符号化されており、B0およびB1はP′14とI2を、B3およびB4はI2とP5を参照してフレーム間予測符号化されている。実際の符号化データは、図7(b)のような順番で符号化されている。これは、復号の際に必要とされるフレームを先に復号しておけるようにするためのものである。
【0003】
ここで、MPEG圧縮方式を用いたDVDビデオレコーディング規格における再生について、図8および図9を用いて説明する。DVDビデオレコーディング規格においては、MPEG圧縮技術を用いて符号化された動画像データを任意のポイントで編集して、画像をつないでいくエントリーポイント再生が存在しており、図8にその編集点におけるフレームスキップを示す。図中のVOBUは、Video OBject Unitの略語で、1つまたは複数のGOPで構成されるシーケンスの単位である。図8に示すような、VOBUのP′5(図中のStop Point)で再生が終了して、その後にVOBU1のB6(図中のStart Point)を再生するような編集が行われた場合、VOBU0のP′5の再生が終了した後に、B6の表示を行うために、VOBU1のI2、P5、P8を復号する必要がある。図8中のSkipの範囲に含まれるピクチャの表示は行わない。図9は、編集点における一般的な復号化装置における復号のタイミング図である。VOBU0のP′5の表示が終了した時点で、次のVOBUの再生を行い、I2、P5、P8と復号を行った時点で表示をB6へと切り替えられる。なお、この図9においては、SYNCとは、ビデオの垂直同期信号のことで、2垂直同期信号(2V)を1単位としている。
【0004】
【特許文献1】
DVD Specifications for Read−only Disk Parts3 VIDEO SPECIFICATIONS Version1.0 August 1996(VI5−32〜VI5−37)
【0005】
【発明が解決しようとする課題】
MPEG方式を用いた規格の中には、録画可能な規格が成立しており、それらの規格における録画においては、ユーザーはフレーム単位での編集が可能となっている。
【0006】
前述したように、MPEG方式の特性として、符号化の際に、フレームは、フレーム間予測をされて圧縮されている可能性があるため、GOP(またはVOBU)の中で、時間的に後方のフレームについては、自身を復号するまでに時間を要する。例えば、図7に示すGOP構造において、B6を復号する場合には、I2、P5、P8およびB6の自身を含めて、計4枚のフレームを復号して、初めて復号が完了することになる。
【0007】
そこで、今度は、図9を用いて表示時間を考えてみると、例えば、図8に示すように、VOBU0のP′5で再生が終了して、VOBU1のB6から再生が再開されるような編集が行われたとすると、VOBU0のP′5からVOBU1のB6へフレームを切り替える際にVOBU1のB6の復号が完了するまでに、P′5が3フレーム時間出力されてしまい、結果的に、編集点においては同画面の繰り返し出力が行われることになりシームレス再生が行われないことになる。
【0008】
そこで、もう1つ復号化装置を用いることにより、編集点における再生の際に、予め、編集点後のデータ(I2、P5、P8まで)の復号を完了しておけば、編集点における切り替えがスムーズに行われることとなる。
【0009】
しかし、このよう手段を用いる場合には、コストの増加やオーバースペックによる資源の非効率的使用や消費電力の増加が考えられ、得策ではない。
そこで、本発明は、圧縮された符号化データの編集点の再生において可能な限りシームレス再生が可能となるように、1つの復号化装置だけを用いて、編集点後のデータを予め復号するために、編集点後の符号化データを、編集点前の符号化データの復号で余った時間を利用して復号を行い得る符号化データの復号化装置および復号方法を提供することを目的とする。
【0010】
【課題を解決するための手段】
上記課題を解決するために、本発明の請求項1に係る符号化データの復号化装置は、画像符号化データを任意のフレームで繋いで編集されたデータを再生する際に用いられる符号化データの復号化装置であって、
入力された画像符号化データを復号する復号手段と、前記復号手段から出力された復号データを表示および他の画像符号化データの復号のために記憶する記憶手段と、時間的に前に再生される編集点前の画像符号化データの表示時間と復号時間の差分の時間を時間的に後に再生される編集点後の画像符号化データの復号にあてるように制御する復号時間割り当て手段と、時間的に後に再生される編集点後の画像符号化データが前回の復号でフレームのどの位置まで復号されたかを記憶し、次の復号の際には、前回復号が完了した時点から復号を開始するよう制御する復号位置管理手段とを具備したものである。
【0011】
また、請求項2に係る符号化データの復号化装置は、請求項1に記載の復号化装置において、画像符号化データは、ISO/IEC11172または13818で規定されるMPEG方式とし、時間的に後に再生される編集点後の画像符号化データの復号位置管理単位は、スライスまたはマクロブロック単位としたものである。
【0012】
また、請求項3に係る符号化データの復号化装置は、請求項1に記載の復号化装置において、復号の際に、復号した符号化データのサイズをカウントする手段を有し、前記カウンタの値を用いて、時間的に後に再生される画像符号化データの復号位置を計算するようにしたものである。
【0013】
また、請求項4に係る符号化データの復号化方法は、画像符号化データを任意のフレームで繋いで編集されたデータを再生する際の符号化データの復号方法であって、
入力された画像符号化データを復号する復号ステップと、前記復号ステップから出力された復号データを表示および他の画像符号化データの復号のために記憶する記憶ステップと、時間的に前に再生される編集点前の画像符号化データの表示時間と復号時間の差分の時間を時間的に後に再生される編集点後の画像符号化データの復号にあてるように制御する復号時間割り当てステップと、時間的に後に再生される編集点後の画像符号化データが前回の復号でフレームのどの位置まで復号されたかを記憶し、次の復号の際には、前回復号が完了した時点から復号を開始するよう制御する復号位置管理ステップとを備える復号化方法である。
【0014】
また、請求項5に係る符号化データの復号化方法は、請求項4に記載の復号化方法において、画像符号化データは、ISO/IEC11172または13818で規定されるMPEG方式とし、時間的に後に再生される編集点後の画像符号化データの復号位置管理単位を、スライスまたはマクロブロック単位とする復号化方法である。
【0015】
さらに、請求項6に係る符号化データの復号化方法は、請求項4に記載の復号化方法において、復号の際に、復号した符号化データのサイズをカウントするステップを有し、前記カウンタの値を用いて、時間的に後に再生される画像符号化データの復号位置を計算する復号化方法である。
【0016】
上記復号化装置および復号化方法によれば、圧縮された画像符号化データの編集点の再生において、編集点後の符号化データの復号を、編集点前の符号化データの復号で余った時間を利用して予め行っておくことにより、1つの復号化装置だけでシームレス再生が可能となる。
【0017】
【発明の実施の形態】
以下、本発明の実施の形態に係る符号化データの復号化装置および復号化方法について、添付図面を用いてDVDビデオレコーディング規格を例にとって説明する。
【0018】
本実施の形態に係る符号化データの復号化装置は、圧縮された2本の画像符号化データを任意のフレームで繋いで編集されたデータを再生するもので、少なくとも、符号化データ管理部と、符号化データ復号部とが具備されており、符号化データ管理部にて取り出された画像符号化データが、符号化データ復号部に入力されて、所定の出力データが得られるものである。
【0019】
説明の順序が逆になるが、まず、図1に基づき、符号化データ復号部について説明する。
この符号化データ復号部には、符号化データ管理部にて取り出された画像符号化データ(以下、単に、符号化データともいう)を復号する復号手段10と、この復号手段10から出力された復号データを表示するためおよび他の符号化データを復号するために当該復号データを記憶する記憶手段11と、圧縮された2本の画像符号化データを任意のフレームで繋いで編集された符号化データを再生する場合において、その再生順序などを示すナビゲーションデータの解析手段からの外部制御信号に基づき時間的に前に再生される編集点前の符号化データの表示時間と復号時間の差分の時間を、時間的に後に再生される編集点後の符号化データの復号に当てるように制御する復号時間割り当て手段12と、時間的に後に再生される編集点後の符号化データが前回の復号でフレームのどの位置まで復号されたかを記憶して、次の復号の際に前回復号が完了した時点から復号を開始するよう制御する復号位置管理手段13とが具備されている。
【0020】
次に、図2に基づき、符号化データ管理部について説明する。
この符号化データ管理部は、上記と同様にナビゲーションデータの解析手段からの外部制御信号に基づき、入力された符号化データが編集点前のものか編集点後のものかを判断して振り分けるための分離手段20と、この分離手段20にて振り分けられたものの内、編集点前の符号化データを記憶する第1の符号化データ記憶手段21と、同じく編集点後の符号化データを記憶する第2の符号化データ記憶手段22と、前記復号時間割り当て手段12からの制御信号に基づき、第1の符号化データ記憶手段21および第2の符号化データ記憶手段22のどちらの符号化データを必要とするかを判断するとともに、前記復号位置管理手段13からの制御信号に基づき、符号化データの読み出し位置を決定して符号化データの出力を行う符号化データ読み出し手段23とが具備されている。
【0021】
上記構成において、編集点の再生時に、シームレス再生を実現させるためには、予め、編集点後の符号化データを復号しておくことが必要となる。
そのためには、まず編集点後の符号化データを前もって、復号化装置に取り込んでおく必要がある。なお、転送の手段としては、符号化データ記憶手段21,22のサイズを通常より大きめに確保して、編集点前の符号化データの転送が完了した段階で、編集点後の符号化データの転送を開始する方法や、編集点前のデータと編集点後の符号化データを時分割多重して転送する方法があるが、編集点でのシームレス再生を実現するためには、下記(1)式および(2)式で示される時間T1,T2を考慮する必要がある。
【0022】
【数1】
T1=Vs×(Td×N)/(Vs−Td)+(M/R)・・・(1)
T2={(Td×N)/(Vs−Td)}×Vs ・・・(2)
但し、上記式中、各記号は下記の内容を表す。
【0023】
Vs:1フレーム時間
Td:1フレームを復号するのに要する時間
N:編集点後の出力ピクチャに到達するまでに復号が必要なフレーム数
M:1フレームの最大ビット数
R:転送ビットレート
すなわち、編集点におけるシームレス再生を確実に行うには、編集点よりも(1)式で示すT1時間より前に、編集点後の符号化データの先送りが開始され、且つ(2)式で示すT2時間より前に編集点後の符号化データの復号が開始される必要がある。
【0024】
ここで、図3に基づき、符号化データの復号化装置における復号タイミングについて説明する。
この場合の編集点は、従来の技術にて説明した図8に示されるように、VOBU0のP′5とVOBU1のB6であり、図3に基づき、編集点におけるシームレス再生について説明する。
【0025】
まず、編集点前のVOBU0のB′0フレームの復号を行う。ここで、復号化装置は、必ず、少なくとも1フレーム時間内で1フレームの復号を完了させる復号能力を有しているため、B′0のフレームの復号が完了した時点では、まだ、次に復号するVOBU0のB′1フレームの復号開始までは、時間的に余裕がある可能性が高い。時間的に余裕がある場合には、その時間を使って編集点後のVOBU1の復号を開始する。この例では、VOBU1のI2の復号を行う。そのVOBU1のI2の復号の途中に、編集点前のVOBU1のB′1のフレームの復号を開始する時間(復号化装置は、1フレーム時間単位で復号を開始する必要がある)がきた段階で、復号位置管理手段13にてVOBU1のI2のどのスライスまで復号を完了したのかを記憶し、さらにそのスライスの符号化データ記憶手段22内でのポインタ位置も記憶しておく。次に、VOBU0のB′1の復号を行い、B′1の復号が完了した段階で、途中で終了したVOBU1のI2の復号を先ほど記憶しておいたスライス番号とスライスの符号化データ記憶手段22でのポインタ位置を利用して、I2の復号を途中から開始する。以後、同様に、編集点前の符号化データの復号で余った時間を利用して、I2の復号、B0、B1のスキップ、P5の復号、B3およびB4のスキップ、P8の復号を行う。このように、編集点前のVOBU1のP8の復号までを先行的に完了させておくことにより、編集点での切り替えをシームレスに行うことができる。
【0026】
次に、図4に基づき、符号化データ復号化装置における復号時間割り当て手段12での制御フローについて説明する。
まず、ステップS400にて処理が開始されると、ステップS401で編集点前のVOBUの復号を行う。次に、ステップS402においては、編集点後のVOBUの復号が必要かどうかを判断して、編集点の再生でない場合や既に編集点後のVOBUの必要な復号が完了しており、編集点後のVOBUの復号が必要でない場合には、ステップS406で処理を終了する。
【0027】
ステップS402において、編集点後のVOBUの復号が必要である場合には、ステップS403で時間(編集点前のVOBUのフレームの表示時間−編集点前のVOBUのフレームの復号時間)が余っているかどうかを判断し、時間が余っていない場合には、ステップS406で処理を終了する。
【0028】
ステップ403で時間が余っている場合には、ステップS404にて、編集点後のVOBUの復号を行う。その後、ステップS405にて、時間(編集点前のVOBUのフレームの表示時間−編集点前のVOBUのフレームの復号時間−編集点後のVOBUの復号時間)が余っているかどうかを判断し、時間が余っていない場合には、ステップS406で処理を終了する。
【0029】
ステップS405で時間が余っている場合には、再度、ステップS404に戻り編集点後のVOBUの復号を行い、以後、次の編集点前のVOBUの復号の時間が来るまで、この処理を繰り返す。
【0030】
次に、図5に基づき、符号化データ復号化装置における編集点後のデータの先行復号ステップS404での制御フローについて説明する。
まず、ステップS500において、処理が開始されると、ステップS501で、編集点であることを示す編集点再生開始時間と復号したPTS(PresentationTime Stamp)を比較してPTSの方が大きければ、編集点後のVOBU1の先行復号が終了点に達していると判断ができるために、ステップS507で処理を終了する。
【0031】
ステップS501でPTSの方が小さい場合には、まだ、編集点後のVOBU1の先行復号を行う必要があると判断して、ステップS502で現在復号の途中かどうかを判断する。復号の途中で無い場合には、ステップS503にて、次に復号するピクチャがBピクチャであるかどうかを判断して、Bピクチャである場合には、復号する必要が無いために、ステップS505にてピクチャスキップを行いステップS507にて処理を終了する。
【0032】
ステップS503で、次に復号するピクチャがBピクチャで無い場合には、復号を行う必要があるために、ステップS506にて復号を行い、スライスの復号完了後、ステップS507にて処理を完了する。
【0033】
ステップS502で、復号の途中であると判断された場合には、ステップS504にて、復号が完了しているスライスの次のスライスヘッダまで画像の符号化データ記憶手段22のリードポインタを引き戻して、ステップS506にて復号を行い、スライスの復号完了後、ステップS507にて処理を完了する。
【0034】
次に、図6に基づき、符号化データ復号化装置における編集点後のデータの復号位置管理についての、すなわち復号位置管理手段13における制御フローについて説明する。
【0035】
まず、ステップS600において、処理が開始されると、ステップS601において、検出したスライスヘッダのスライス番号を記憶する。次に、ステップS602で検出したスライスヘッダの符号化データ記憶手段22でのポインタ位置を記憶する。ここで、スライスヘッダの位置を正確に把握するために、復号中に、復号した符号化データのデータサイズをカウントする手段(機構)を設けておき、そのデータサイズと前回の符号化データ記憶手段22でのポインタ位置を用いることにより、位置の把握を行う。最後に、ステップS603にてスライスの復号を行い、復号完了後、ステップS604にて処理を完了する。
【0036】
ここで、復号化方法の主要ステップを明記しておく。
すなわち、本実施の形態に係る復号化方法は、画像符号化データを任意のフレームで繋いで編集されたデータを再生する際の復号化方法であって、入力された画像符号化データを復号する復号ステップと、前記復号ステップから出力された復号データを表示および他の画像符号化データの復号のために記憶する記憶ステップと、時間的に前に再生される編集点前の画像符号化データの表示時間と復号時間の差分の時間を、時間的に後に再生される編集点後の画像符号化データの復号にあてるように制御する復号時間割り当てステップと、時間的に後に再生される編集点後の画像符号化データが前回の復号でフレームのどの位置まで復号されたかを記憶し、次の復号の際には、前回復号が完了した時点から復号を開始するよう制御する復号位置管理ステップとを備える方法であり、
また上記復号化方法における画像符号化データは、ISO/IEC11172または13818で規定されるMPEG方式とし、時間的に後に再生される編集点後の画像符号化データの復号位置管理単位は、スライスまたはマクロブロック単位である方法であり、
さらに上記復号化方法における復号の際に、復号データのサイズをカウントするステップを有し、前記カウンタの値を用いて、時間的に後に再生される画像符号化データの復号位置を計算する方法である。
【0037】
上述したように、圧縮された画像符号化データの編集点の再生において、編集点後の符号化データの復号を、編集点前の符号化データの復号で余った時間を利用して予め行っておくことにより1つの復号化装置だけでシームレス再生が可能となる。したがって、2つの復号化装置を用いる場合に比べて、コストの増加やオーバースペックになるのを防止することができる。
【0038】
ところで、上記実施の形態では、編集点後のデータの先行復号をスライス単位で管理するように説明したが、フレーム、ピクチャ、またはマクロブロック単位で管理を行うことができる。
【0039】
また、上記実施の形態では、復号化装置は、ストリームのサイズをカウントする手段を用いて、スライスヘッダを検出するたびに、検出したスライスのビデオのビットバッファでの位置を記憶するように説明したが、フレーム、ピクチャ、またはマクロブロック単位でビットバッファの位置を記憶することもできる。
【0040】
また、上記実施の形態では、復号の完了確認をPTSで管理するようにしたが、Temporal Referenceを用いて復号の完了確認を行うこともできる。
【0041】
また、上記実施の形態では、符号化データ記憶手段でのポインタ位置の管理をカウンタとポインタとを用いることによって実現したが、ポインタだけを用いて行うこともできる。但し、この場合には、符号化データ記憶手段と復号手段との間に配置されている全てのバッファの残量を考慮する必要がある。
【0042】
さらに、上記実施の形態では、編集点前、編集点後のストリームの管理単位をVOBUで行っているが、GOPで行うこともできる。
【0043】
【発明の効果】
以上のように本発明の復号化装置および復号化方法によれば、画像符号化データの編集点の再生において、編集点後の符号化データの復号を、編集点前の符号化データの復号で余った時間を利用して予め行っておくことにより、1つの復号化装置だけでシームレス再生が可能となる。
【図面の簡単な説明】
【図1】本発明の実施の形態に係る符号化データの復号化装置における符号化データ復号部の構成例を示すブロック図である。
【図2】同符号化データ復号化装置における符号化データ管理部の構成例を示すブロック図である。
【図3】同符号化データ復号化装置における復号タイミングチャートを示す図である。
【図4】同符号化データ復号化装置における復号時間割り当て手段での制御フローを示す図である。
【図5】同符号化データ復号化装置における編集点後のデータの先行復号での制御フローを示す図である。
【図6】同符号化データ復号化装置における編集点後のデータの復号位置管理での制御フローを示す図である。
【図7】MPEG方式におけるフレーム間構造を示す図である。
【図8】編集点のデータ構造例を示す図である。
【図9】編集点における復号タイミングチャートを示す図である。
【符号の説明】
10 復号手段
11 記憶手段
12 復号時間割り当て手段
13 復号位置管理手段
20 分離手段
21 符号化データ記憶手段
22 符号化データ記憶手段
23 符号化データ読み出し手段
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a decoding device and a decoding method for decoding digitally encoded image encoded data, and more particularly to a reproduction control at an editing point in image encoded data.
[0002]
[Prior art]
Conventionally, as a coding method for compressing a digital image signal, an MPEG (Moving Picture Experts Group) method specified in ISO / IEC11172, 13818 has been proposed. FIG. 7 shows a typical data structure of the MPEG system. In this figure, a GOP (GroupOf Pictures), which is a unit of coding obtained by dividing one sequence of a moving image, is composed of 1 frame for an I picture, 4 frames for a P picture, and 10 frames for a B picture, for a total of 15 frames. . Here, the I picture is an intra-frame coded image, the P picture is an inter-frame forward prediction coded image, and the B picture is an inter-frame bidirectional predicted coded image. Specifically, as shown by the arrow in FIG. 7A, I2 is intra-frame coded only with the I2 frame, P5 is I2, and P8 is inter-frame coded with reference to P5. B0 and B1 are inter-frame predictive coded with reference to P'14 and I2, and B3 and B4 with reference to I2 and P5. Actual coded data is coded in the order shown in FIG. This is to make it possible to decode frames required for decoding first.
[0003]
Here, reproduction in the DVD video recording standard using the MPEG compression method will be described with reference to FIGS. In the DVD video recording standard, there is an entry point reproduction in which moving image data encoded using the MPEG compression technique is edited at an arbitrary point and images are connected, and FIG. Indicates frame skip. VOBU in the figure is an abbreviation of Video OBJECT Unit, and is a unit of a sequence composed of one or a plurality of GOPs. As shown in FIG. 8, when the reproduction is completed at P'5 of VOBU (Stop Point in the figure) and then edited to reproduce B6 of VOBU1 (Start Point in the figure), After the reproduction of P'5 of VOBU0 is completed, it is necessary to decode I2, P5 and P8 of VOBU1 in order to display B6. The display of the pictures included in the range of Skip in FIG. 8 is not performed. FIG. 9 is a timing chart of decoding in a general decoding device at an editing point. When the display of P'5 of VOBU0 is completed, the reproduction of the next VOBU is performed, and the display is switched to B6 when the decoding of I2, P5, and P8 is performed. In FIG. 9, SYNC is a vertical synchronization signal of video, and one unit is two vertical synchronization signals (2 V).
[0004]
[Patent Document 1]
DVD Specifications for Read-only Disk Parts3 VIDEO SPECIFICATIONS Version1.0 August 1996 (VI5-32 to VI5-37)
[0005]
[Problems to be solved by the invention]
Among the standards using the MPEG system, standards that can be recorded have been established, and in recording in those standards, the user can edit in frame units.
[0006]
As described above, as a characteristic of the MPEG system, at the time of encoding, a frame may have been compressed by being subjected to inter-frame prediction, so that a temporally backward frame in a GOP (or VOBU) may be used. For a frame, it takes time to decode itself. For example, in the case of decoding B6 in the GOP structure shown in FIG. 7, decoding is completed only after decoding a total of four frames including I2, P5, P8 and B6 itself.
[0007]
Then, considering the display time with reference to FIG. 9, for example, as shown in FIG. 8, the reproduction ends at P'5 of VOBU0, and the reproduction is restarted from B6 of VOBU1. If the editing is performed, when switching the frame from P'5 of VOBU0 to B6 of VOBU1, P'5 is output for three frame times before decoding of B6 of VOBU1 is completed. At this point, the same screen is repeatedly output, and seamless reproduction is not performed.
[0008]
Therefore, by using another decoding device, if the decoding of the data (up to I2, P5, P8) after the editing point is completed in advance at the time of reproduction at the editing point, the switching at the editing point can be performed. It will be done smoothly.
[0009]
However, when such a means is used, the cost is increased, the resource is inefficiently used due to over-spec, and the power consumption is increased.
Therefore, the present invention uses only one decoding device to decode data after an editing point in advance so that seamless playback is possible as much as possible in reproducing the editing point of the compressed encoded data. It is another object of the present invention to provide a coded data decoding device and a coded data decoding method capable of decoding coded data after an edit point by using the time remaining in decoding of the coded data before the edit point. .
[0010]
[Means for Solving the Problems]
In order to solve the above-mentioned problem, a coded data decoding apparatus according to claim 1 of the present invention is characterized in that coded data used for reproducing edited data by connecting coded image data by an arbitrary frame. The decoding device of
Decoding means for decoding the input encoded image data; storage means for storing the decoded data output from the decoding means for display and decoding of other encoded image data; Decoding time allocating means for controlling the time of the difference between the display time of the image encoded data before the edit point and the decoding time to be applied to the decoding of the image encoded data after the edit point reproduced temporally later; Stores up to which position in the frame the image-encoded data after the edit point, which will be reproduced later, has been decoded in the previous decoding, and starts decoding from the point when the previous decoding was completed in the next decoding Decoding position management means for controlling the decoding position.
[0011]
Further, the decoding device for encoded data according to claim 2 is the decoding device according to claim 1, wherein the image encoded data is in an MPEG format defined by ISO / IEC11172 or 13818, and is temporally later. The decoding position management unit of the image coded data after the editing point to be reproduced is in units of slices or macroblocks.
[0012]
Further, a decoding device for coded data according to claim 3 is the decoding device according to claim 1, further comprising means for counting the size of the decoded coded data at the time of decoding. The value is used to calculate the decoding position of the encoded image data reproduced later in time.
[0013]
A method for decoding encoded data according to claim 4 is a method for decoding encoded data when reproducing edited data by connecting image encoded data by an arbitrary frame,
A decoding step of decoding input image encoded data; a storage step of storing decoded data output from the decoding step for display and decoding of other image encoded data; A decoding time allocating step for controlling the difference between the display time and the decoding time of the image encoded data before the edit point to be applied to the decoding of the image encoded data after the edit point reproduced temporally later; Stores up to which position in the frame the image-encoded data after the edit point, which will be reproduced later, has been decoded in the previous decoding, and starts decoding from the point when the previous decoding was completed in the next decoding And a decoding position management step for controlling the decoding.
[0014]
According to a fifth aspect of the present invention, in the decoding method of the fourth aspect, in the decoding method of the fourth aspect, the coded image data is an MPEG format defined by ISO / IEC11172 or 13818, and is temporally later. This is a decoding method in which a decoding position management unit of image encoded data after an editing point to be reproduced is a slice or a macroblock unit.
[0015]
Further, the decoding method of the encoded data according to claim 6 is the decoding method according to claim 4, further comprising the step of counting the size of the decoded encoded data at the time of decoding. This is a decoding method for calculating a decoding position of image encoded data reproduced later in time using a value.
[0016]
According to the decoding device and the decoding method, in reproducing the edit point of the compressed encoded image data, the decoding of the encoded data after the edit point is the time remaining in the decoding of the encoded data before the edit point. By using this method in advance, seamless reproduction can be performed with only one decoding device.
[0017]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an apparatus and method for decoding encoded data according to an embodiment of the present invention will be described with reference to the accompanying drawings, taking a DVD video recording standard as an example.
[0018]
The coded data decoding device according to the present embodiment is a device for connecting two compressed image coded data by an arbitrary frame to reproduce edited data, and includes at least a coded data management unit and , An encoded data decoding unit, and the encoded image data extracted by the encoded data management unit is input to the encoded data decoding unit to obtain predetermined output data.
[0019]
Although the order of the description is reversed, first, the encoded data decoding unit will be described with reference to FIG.
The coded data decoding unit decodes the coded image data (hereinafter, also simply referred to as coded data) extracted by the coded data management unit, and outputs the decoded data from the decoding unit 10. A storage unit 11 for storing the decoded data for displaying the decoded data and decoding other encoded data, and an edited encoded image obtained by connecting two compressed image encoded data by an arbitrary frame. In the case of reproducing data, the difference between the display time and the decoding time of the encoded data before the editing point reproduced earlier in time based on the external control signal from the navigation data analyzing means indicating the reproduction order and the like. Decoding time allocating means 12 for controlling decoding of encoded data after an editing point reproduced later in time, and a code after an editing point reproduced later in time. Decoding position management means 13 for storing the position of the frame to which the coded data has been decoded in the previous decoding, and controlling the decoding to start from the time when the previous decoding was completed at the time of the next decoding. ing.
[0020]
Next, the encoded data management unit will be described with reference to FIG.
The coded data management unit determines whether the input coded data is before the edit point or after the edit point based on the external control signal from the navigation data analysis unit in the same manner as above, and sorts the data. , A first coded data storage means 21 for storing the coded data before the edit point among those sorted by the separation means 20, and a coded data after the edit point as well. Based on control signals from the second encoded data storage means 22 and the decoding time allocating means 12, either one of the first encoded data storage means 21 and the second encoded data storage means 22 In addition to determining whether the encoded data is necessary, the encoded data read position is determined based on the control signal from the decoding position management means 13 to output the encoded data. A data reading means 23 is provided.
[0021]
In the above configuration, in order to realize seamless reproduction at the time of reproduction of the edit point, it is necessary to decode the encoded data after the edit point in advance.
For that purpose, it is necessary to first take the encoded data after the editing point into the decoding device in advance. As the transfer means, the size of the encoded data storage means 21 and 22 is secured to be larger than usual, and when the transfer of the encoded data before the edit point is completed, the encoded data after the edit point is completed. There are a method of starting the transfer and a method of transferring the data before the edit point and the encoded data after the edit point by time-division multiplexing, and in order to realize seamless reproduction at the edit point, the following (1) It is necessary to consider the times T1 and T2 shown in the equations and the equation (2).
[0022]
(Equation 1)
T1 = Vs × (Td × N) / (Vs−Td) + (M / R) (1)
T2 = {(Td × N) / (Vs−Td)} × Vs (2)
However, in the above formula, each symbol represents the following contents.
[0023]
Vs: 1 frame time Td: time required to decode one frame N: number of frames required to reach the output picture after the editing point M: maximum number of bits of one frame R: transfer bit rate, ie To ensure seamless playback at the edit point, advance of the encoded data after the edit point is started before the time T1 shown in the equation (1) before the edit point, and the time T2 shown in the equation (2) is started. The decoding of the encoded data after the editing point needs to be started earlier.
[0024]
Here, the decoding timing of the encoded data in the decoding device will be described with reference to FIG.
The editing points in this case are P'5 of VOBU0 and B6 of VOBU1 as shown in FIG. 8 described in the related art, and seamless reproduction at the editing points will be described based on FIG.
[0025]
First, the B'0 frame of VOBU0 before the editing point is decoded. Here, since the decoding apparatus always has the decoding capability of completing the decoding of one frame within at least one frame time, when the decoding of the frame of B'0 is completed, the decoding apparatus still has the decoding capability. There is a high possibility that there is enough time before decoding of the B′1 frame of VOBU0 starts. If there is enough time, decoding of the VOBU 1 after the editing point is started using that time. In this example, I2 of VOBU1 is decoded. During the decoding of I2 of VOBU1, when the time to start decoding the frame of B′1 of VOBU1 before the editing point (the decoding device needs to start decoding in units of one frame time) comes. The decoding position management unit 13 stores up to which slice of I2 of the VOBU 1 decoding has been completed, and further stores the pointer position of the slice in the encoded data storage unit 22. Next, the decoding of B'1 of VOBU0 is performed, and when the decoding of B'1 is completed, the decoding of the I2 of VOBU1 that has been completed halfway is performed, and the slice number and the encoded data storage unit of the slice are stored. Using the pointer position at 22, decoding of I2 is started halfway. Thereafter, similarly, decoding of I2, skipping of B0 and B1, decoding of P5, skipping of B3 and B4, and decoding of P8 are performed using the time remaining in decoding the encoded data before the editing point. In this way, by switching to the decoding of P8 of VOBU1 before the editing point in advance, the switching at the editing point can be performed seamlessly.
[0026]
Next, a control flow in the decoding time allocating means 12 in the encoded data decoding device will be described with reference to FIG.
First, when the process is started in step S400, the VOBU before the editing point is decoded in step S401. Next, in step S402, it is determined whether or not decoding of the VOBU after the editing point is necessary. If the reproduction of the VOBU after the editing point is not performed, the decoding of the VOBU after the editing point is already completed. If decoding of the VOBU is not necessary, the process ends in step S406.
[0027]
If it is determined in step S402 that the VOBU after the editing point needs to be decoded, it is determined in step S403 that the time (display time of the VOBU frame before the editing point−decoding time of the VOBU frame before the editing point) is left. It is determined whether or not there is no time left, and the process ends in step S406.
[0028]
If time remains in step 403, the VOBU after the editing point is decoded in step S404. Then, in step S405, it is determined whether or not there is time left (display time of the VOBU frame before the editing point−decoding time of the VOBU frame before the editing point−decoding time of the VOBU after the editing point). If not, the process ends in step S406.
[0029]
If there is time left in step S405, the flow returns to step S404 to decode the VOBU after the editing point, and thereafter repeats this processing until the time for decoding the VOBU before the next editing point comes.
[0030]
Next, a control flow in the preceding decoding step S404 of the data after the editing point in the encoded data decoding device will be described with reference to FIG.
First, in step S500, when the process is started, in step S501, the edit point reproduction start time indicating the edit point is compared with the decoded PTS (Presentation Time Stamp), and if the PTS is larger, the edit point Since it can be determined that the preceding decoding of the subsequent VOBU1 has reached the end point, the process ends in step S507.
[0031]
If the PTS is smaller in step S501, it is determined that it is necessary to perform the preceding decoding of the VOBU1 after the editing point, and it is determined in step S502 whether decoding is currently being performed. If it is not in the middle of decoding, it is determined in step S503 whether the next picture to be decoded is a B picture. If it is a B picture, there is no need to decode it. To skip the picture, and the process ends in step S507.
[0032]
If it is determined in step S503 that the next picture to be decoded is not a B picture, it is necessary to perform decoding. Therefore, decoding is performed in step S506. After decoding of the slice is completed, the process is completed in step S507.
[0033]
If it is determined in step S502 that the decoding is in progress, in step S504, the read pointer of the encoded data storage unit 22 of the image is returned to the next slice header of the slice for which decoding is completed. The decoding is performed in step S506, and after the decoding of the slice is completed, the process is completed in step S507.
[0034]
Next, the control flow of the decoding position management of the data after the editing point in the encoded data decoding device, that is, the control flow in the decoding position management means 13 will be described with reference to FIG.
[0035]
First, in step S600, when the process is started, in step S601, the detected slice number of the slice header is stored. Next, the pointer position in the encoded data storage unit 22 of the slice header detected in step S602 is stored. Here, in order to accurately grasp the position of the slice header, a means (mechanism) for counting the data size of the decoded coded data is provided during decoding, and the data size and the previous coded data storage means are provided. By using the pointer position at 22, the position is grasped. Finally, the slice is decoded in step S603, and after the decoding is completed, the process is completed in step S604.
[0036]
Here, the main steps of the decoding method are specified.
That is, the decoding method according to the present embodiment is a decoding method for reproducing edited data by connecting encoded image data by an arbitrary frame, and decodes input encoded image data. A decoding step, a storage step of storing the decoded data output from the decoding step for display and decoding of other encoded image data, and a step of storing the encoded image data before the edit point reproduced earlier in time. A decoding time allocating step of controlling the time of the difference between the display time and the decoding time so as to be applied to decoding of the image coded data after the editing point reproduced later in time; and after the editing point reproduced later in time. The decoding position that stores the position of the frame in which the image coded data has been decoded in the previous decoding, and controls the decoding to start from the time when the previous decoding was completed in the next decoding. A method and a management step,
The image coded data in the above decoding method is the MPEG system specified by ISO / IEC11172 or 13818, and the decoding position management unit of the image coded data after the edit point reproduced later in time is slice or macro. This is a block-based method,
The method further comprises the step of counting the size of the decoded data at the time of decoding in the above decoding method, and using the value of the counter to calculate the decoding position of the encoded image data reproduced later in time. is there.
[0037]
As described above, in the reproduction of the edit point of the compressed image encoded data, decoding of the encoded data after the edit point is performed in advance using the time remaining in decoding the encoded data before the edit point. By doing so, seamless reproduction can be performed with only one decoding device. Therefore, it is possible to prevent an increase in cost and an over-specification as compared with a case where two decoding devices are used.
[0038]
By the way, in the above-described embodiment, the preceding decoding of the data after the editing point has been described to be managed in units of slices. However, the management can be performed in units of frames, pictures, or macroblocks.
[0039]
In the above-described embodiment, the decoding device has been described in such a manner that the decoding device stores the position of the detected slice in the bit buffer of the video each time the slice header is detected by using the means for counting the size of the stream. However, the position of the bit buffer can be stored in units of frames, pictures, or macroblocks.
[0040]
Further, in the above-described embodiment, the completion confirmation of the decoding is managed by the PTS, but the completion of the decoding can be confirmed by using the Temporal Reference.
[0041]
In the above embodiment, the management of the pointer position in the encoded data storage means is realized by using the counter and the pointer. However, the management can be performed by using only the pointer. However, in this case, it is necessary to consider the remaining amounts of all buffers arranged between the encoded data storage unit and the decoding unit.
[0042]
Further, in the above-described embodiment, the management unit of the stream before and after the editing point is performed by VOBU, but may be performed by GOP.
[0043]
【The invention's effect】
As described above, according to the decoding device and the decoding method of the present invention, in the reproduction of the edit point of the image encoded data, the decoding of the encoded data after the edit point is performed by decoding the encoded data before the edit point. By performing the processing in advance by using the surplus time, seamless reproduction can be performed with only one decoding device.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration example of an encoded data decoding unit in an encoded data decoding device according to an embodiment of the present invention.
FIG. 2 is a block diagram illustrating a configuration example of an encoded data management unit in the encoded data decoding device.
FIG. 3 is a diagram showing a decoding timing chart in the encoded data decoding device.
FIG. 4 is a diagram showing a control flow in decoding time allocating means in the encoded data decoding apparatus.
FIG. 5 is a diagram showing a control flow in preceding decoding of data after an editing point in the encoded data decoding apparatus.
FIG. 6 is a diagram showing a control flow in decoding position management of data after an edit point in the encoded data decoding apparatus.
FIG. 7 is a diagram showing an inter-frame structure in the MPEG system.
FIG. 8 is a diagram illustrating an example of a data structure of an edit point.
FIG. 9 is a diagram showing a decoding timing chart at an edit point.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 10 Decoding means 11 Storage means 12 Decoding time allocating means 13 Decoding position management means 20 Separation means 21 Encoded data storage means 22 Encoded data storage means 23 Encoded data read means

Claims (6)

画像符号化データを任意のフレームで繋いで編集されたデータを再生する際の復号化装置であって、
入力された画像符号化データを復号する復号手段と、
前記復号手段から出力された復号データを表示および他の画像符号化データの復号のために記憶する記憶手段と、
時間的に前に再生される編集点前の画像符号化データの表示時間と復号時間の差分の時間を、時間的に後に再生される編集点後の画像符号化データの復号にあてるように制御する復号時間割り当て手段と、
時間的に後に再生される編集点後の画像符号化データが前回の復号でフレームのどの位置まで復号されたかを記憶し、次の復号の際には、前回復号が完了した時点から復号を開始するよう制御する復号位置管理手段と
を具備したことを特徴とする符号化データの復号化装置。
A decoding device for reproducing edited data by connecting image encoded data with an arbitrary frame,
Decoding means for decoding the input image encoded data,
Storage means for storing the decoded data output from the decoding means for display and decoding of other image encoded data,
Control so that the difference between the display time and the decoding time of the encoded image data before the edit point reproduced earlier in time is used for decoding the encoded image data after the edit point reproduced later in time. Decoding time allocating means;
Stores up to which position in the frame the image-encoded data after the editing point, which is reproduced later in time, has been decoded in the previous decoding. An encoded data decoding apparatus, comprising: a decoding position management unit that controls to start the decoding.
画像符号化データは、ISO/IEC11172または13818で規定されるMPEG方式とし、時間的に後に再生される編集点後の画像符号化データの復号位置管理単位は、スライスまたはマクロブロック単位であることを特徴とする請求項1に記載の符号化データの復号化装置。The image coded data is in the MPEG format defined by ISO / IEC11172 or 13818, and the decoding position management unit of the image coded data after the editing point reproduced later in time is a slice or macroblock unit. The decoding device for coded data according to claim 1, wherein: 復号の際に、復号データのサイズをカウントする手段を有し、前記カウンタの値を用いて、時間的に後に再生される画像符号化データの復号位置を計算するようにしたことを特徴とする請求項1に記載の符号化データの復号化装置。Means for counting the size of the decoded data at the time of decoding, and using the value of the counter to calculate the decoding position of the encoded image data reproduced later in time; An apparatus for decoding encoded data according to claim 1. 画像符号化データを任意のフレームで繋いで編集されたデータを再生する際の復号化方法であって、
入力された画像符号化データを復号する復号ステップと、
前記復号ステップから出力された復号データを表示および他の画像符号化データの復号のために記憶する記憶ステップと、
時間的に前に再生される編集点前の画像符号化データの表示時間と復号時間の差分の時間を、時間的に後に再生される編集点後の画像符号化データの復号にあてるように制御する復号時間割り当てステップと、
時間的に後に再生される編集点後の画像符号化データが前回の復号でフレームのどの位置まで復号されたかを記憶し、次の復号の際には、前回復号が完了した時点から復号を開始するよう制御する復号位置管理ステップと
を備えることを特徴とする符号化データの復号化方法。
A decoding method for reproducing edited data by connecting image encoded data by an arbitrary frame,
A decoding step of decoding the input image encoded data,
A storage step of storing the decoded data output from the decoding step for display and decoding of other encoded image data,
Control so that the difference between the display time and the decoding time of the encoded image data before the edit point reproduced earlier in time is used for decoding the encoded image data after the edit point reproduced later in time. A decoding time allocating step;
Stores up to which position in the frame the image-encoded data after the editing point, which is reproduced later in time, has been decoded in the previous decoding. A decoding position management step of controlling to start the decoding.
画像符号化データは、ISO/IEC11172または13818で規定されるMPEG方式とし、時間的に後に再生される編集点後の画像符号化データの復号位置管理単位は、スライスまたはマクロブロック単位であることを特徴とする請求項4に記載の符号化データの復号化方法。The image coded data is in the MPEG format defined by ISO / IEC11172 or 13818, and the decoding position management unit of the image coded data after the editing point reproduced later in time is a slice or macroblock unit. The method for decoding encoded data according to claim 4, characterized in that: 復号の際に、復号データのサイズをカウントするステップを有し、前記カウンタの値を用いて、時間的に後に再生される画像符号化データの復号位置を計算することを特徴とする請求項4に記載の符号化データの復号化方法。5. The method according to claim 4, further comprising the step of counting the size of the decoded data at the time of decoding, and using the value of the counter to calculate a decoding position of the encoded image data to be reproduced later in time. 3. A method for decoding encoded data according to item 1.
JP2002338672A 2002-11-22 2002-11-22 Device and method for decoding encoded data Pending JP2004173117A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002338672A JP2004173117A (en) 2002-11-22 2002-11-22 Device and method for decoding encoded data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002338672A JP2004173117A (en) 2002-11-22 2002-11-22 Device and method for decoding encoded data

Publications (1)

Publication Number Publication Date
JP2004173117A true JP2004173117A (en) 2004-06-17

Family

ID=32701817

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002338672A Pending JP2004173117A (en) 2002-11-22 2002-11-22 Device and method for decoding encoded data

Country Status (1)

Country Link
JP (1) JP2004173117A (en)

Similar Documents

Publication Publication Date Title
US7027713B1 (en) Method for efficient MPEG-2 transport stream frame re-sequencing
US7058129B2 (en) Decoding method and apparatus and recording method and apparatus for moving picture data
US8260122B2 (en) 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
WO1999038326A1 (en) Image transmitting method, image processing method, image processor, data storage medium
WO2006027880A1 (en) Recording apparatus and method, reproducing apparatus and method, recording medium, and program
JP4902935B2 (en) Information processing apparatus, information processing method, program, and recording medium
JP2007043417A (en) Image recording device and method therefor
KR100975170B1 (en) Image data reproducing device and method
US7058280B2 (en) Reproducing apparatus having high-speed reproducing function
JP3258673B2 (en) Moving image recording device and moving image reproducing device
US6785464B1 (en) Multiplexing method for continuous reproduction of encoded pictures during skipping
JPH08116532A (en) Image decoding system and device therefor
JP3982354B2 (en) Image data reproducing apparatus and method
JP2004173117A (en) Device and method for decoding encoded data
JP3406255B2 (en) Image decoding apparatus and method
JP2003087732A (en) Video reproducing device
JP4272753B2 (en) REPRODUCTION DEVICE, ITS CONTROL METHOD, AND COMPUTER-READABLE STORAGE MEDIUM
JP4158463B2 (en) Imaging device
JPH07193785A (en) Device and method for recording/reproducing information
JP2000032395A (en) Decoding method
JPH11355719A (en) Recording and reproducing device, recording and reproducing method and served medium
JPH09247623A (en) Recording and reproducing device
JP2007081813A (en) Recording device
JP2009071427A (en) Image processor, control method of the image processor, and program
JP2006303627A (en) Recording apparatus and control method thereof