JP2008067364A - Image decoding apparatus and its control method - Google Patents
Image decoding apparatus and its control method Download PDFInfo
- Publication number
- JP2008067364A JP2008067364A JP2007201102A JP2007201102A JP2008067364A JP 2008067364 A JP2008067364 A JP 2008067364A JP 2007201102 A JP2007201102 A JP 2007201102A JP 2007201102 A JP2007201102 A JP 2007201102A JP 2008067364 A JP2008067364 A JP 2008067364A
- Authority
- JP
- Japan
- Prior art keywords
- decoding
- picture
- image data
- buffer
- picture buffer
- 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
Links
Images
Abstract
Description
本発明は、画像復号化装置に関し、より具体的には、H.264等のピクチャ間予測符号化で圧縮された圧縮画像データを復号化する画像復号化装置とその制御方法に関する。 The present invention relates to an image decoding apparatus. The present invention relates to an image decoding apparatus for decoding compressed image data compressed by inter-picture predictive encoding such as H.264 and a control method thereof.
DVD(Digital Versatile Disc)に代わる大容量光ディスクを記録媒体として用い、これに静止画像及び動画像を記録するデジタルビデオカメラ等の映像記録再生装置が検討されている。次世代光ディスクの規格ではメディアの記録容量を上げることに加え、より圧縮率の高い動画像圧縮符号化技術の採用も盛り込まれている。H.264がそのひとつである。H.264は、MPEG(Moving Picture Experts Group)−4 Part10:AVCとも称される。 A video recording / reproducing apparatus such as a digital video camera for recording a still image and a moving image on a large-capacity optical disk instead of a DVD (Digital Versatile Disc) as a recording medium has been studied. In addition to increasing the recording capacity of media, the next-generation optical disc standard also incorporates the use of a moving image compression encoding technique with a higher compression rate. H. One of them is H.264. H. H.264 is also referred to as MPEG (Moving Picture Experts Group) -4 Part 10: AVC.
H.264では高圧縮化のため、MPEG2等の従来技術に比べ、画面間予測に用いる参照ピクチャ用メモリを多く持つことが許されており、また、デコードピクチャの並べ替えの自由度も高い。 H. Because of the high compression in H.264, it is allowed to have more reference picture memory used for inter-picture prediction than in conventional techniques such as MPEG2, and the degree of freedom of rearrangement of decoded pictures is high.
例えば、MPEG2ではPピクチャは必ず参照ピクチャとして使用され、Bピクチャは参照ピクチャとして使用することができなかった。従って、MPEG2デコーダはピクチャのタイプ(I,PまたはB)をチェックするだけで、デコードピクチャを参照ピクチャ用メモリに保存する必要があるかどうかを判定することができた。これに対し、H.264では、Pピクチャであっても参照ピクチャとして使用されない場合があり、また、Bピクチャであっても参照ピクチャとして使用される場合もある。 For example, in MPEG2, a P picture is always used as a reference picture, and a B picture cannot be used as a reference picture. Therefore, the MPEG2 decoder can determine whether the decoded picture needs to be stored in the reference picture memory by simply checking the picture type (I, P, or B). On the other hand, H.H. In H.264, even a P picture may not be used as a reference picture, and even a B picture may be used as a reference picture.
また、H.264では、規格上、特定の参照ピクチャを長期間にわたりデコード又はエンコードに使用することが許される。即ち、MPEG2では参照ピクチャ用メモリとしてFIFO(First In First Out)を使用し、参照可能なピクチャも限られていた。それに対して、H.264では、MPEG2では参照できない時間的に離れたピクチャであっても、参照ピクチャとして使用することが可能になったといえる。 H. In H.264, the standard allows a specific reference picture to be used for decoding or encoding over a long period of time. That is, in MPEG2, FIFO (First In First Out) is used as a reference picture memory, and the pictures that can be referred to are limited. In contrast, H.C. In H.264, it can be said that even a picture separated in time that cannot be referred to in MPEG2 can be used as a reference picture.
このようなH.264の柔軟な画面間予測は、符号化効率の向上のために重要な技術である。その一方で、この機能を実現するため、H.264では、MPEG2に比べ、参照ピクチャ用メモリにより多くの参照ピクチャを格納せねばならず、さらにこれらを表示順に並べ替えるために、より多くのメモリ容量と演算が必要となっている。 Such H. H.264 flexible inter-screen prediction is an important technique for improving encoding efficiency. On the other hand, in order to implement this function, In H.264, compared to MPEG2, more reference pictures must be stored in the reference picture memory, and more memory capacity and computation are required to rearrange them in the display order.
このような問題点に対して、参照関係を制御することで、参照ピクチャ用メモリに格納すべき画像を減らす構成が、提案されている(例えば特許文献1)。
H.264の長期に渡って参照されるピクチャ、いわゆる長期間参照ピクチャは、風景撮影のような、動きがあまりないシーンを圧縮符号化するのに有利である。しかし、運動会撮影のように動きの多い被写体をリアルタイムにエンコードするデジタルビデオカメラにはあまり向かない。また、特許文献1に記載の方法も、やはり運動会のような動きの激しい被写体を撮影した映像を圧縮符号化するものには適していないと考えられる。そして、デジタルビデオカメラでBピクチャを参照ピクチャとして使用した場合、参照関係が複雑化して演算処理が重くなり、バッテリの消費が増えてしまうと考えられる。 H. H.264 long-referenced pictures, so-called long-term reference pictures, are advantageous for compression coding scenes with little motion, such as landscape photography. However, it is not suitable for a digital video camera that encodes a subject that moves a lot in real time, such as athletic meet shooting. Further, the method described in Patent Document 1 is also not suitable for compressing and coding a video obtained by shooting a subject that moves rapidly, such as an athletic meet. When a B picture is used as a reference picture in a digital video camera, it is considered that the reference relationship becomes complicated, the calculation processing becomes heavy, and battery consumption increases.
しかるに、民生用のデジタルビデオカメラなどに用いられるリアルタイムエンコードを行うH.264コーデックでは、長期間参照ピクチャを利用しないとか、Bピクチャを参照ピクチャとして使用しないなどの仕様が考えられる。即ち、H.264規格のプロファイル上は許されている機能に対して、符号化時にある程度の使用制限を設けるほうが、メモリ量も削減でき、演算負荷が軽くなり、ハードウエア・コストの減少やバッテリの延命等に効果的であると考えられる。 However, H.H. performs real-time encoding used in consumer digital video cameras. In the H.264 codec, specifications such as not using a reference picture for a long time and not using a B picture as a reference picture are conceivable. That is, H.C. For functions that are permitted in the H.264 standard profile, setting a certain amount of usage restrictions at the time of encoding can also reduce the amount of memory, reduce the computational load, reduce hardware costs, extend battery life, etc. It is considered effective.
このような小規模なコーデックのデコードにおいては、自己録画のストリームの再生には問題がない。しかしながら、例えば他機器で生成された複雑な参照関係からなるH.264ビットストリームを入力した場合に、参照ピクチャ格納用バッファの不足等によりデコードが破綻してしまう危険性がある。 In such a small codec decoding, there is no problem in reproducing a self-recording stream. However, for example, the H.D. When a 264-bit stream is input, there is a risk that decoding may fail due to a lack of a reference picture storage buffer.
本発明は、上記の問題点に鑑み、複雑な参照関係からなる符号化ビットストームを入力した場合であっても、破綻せずにデコードできる画像復号化装置及びその制御方法を提示することを目的とする。 The present invention has been made in view of the above problems, and an object of the present invention is to provide an image decoding apparatus and a control method thereof capable of decoding without failure even when a coded bit storm having a complicated reference relationship is input. And
上記の目的を達成するために、本発明に係る画像復号化装置は、ピクチャ間予測符号化を用いて圧縮された圧縮画像データを復号化する画像復号化装置であって、前記圧縮画像データを記憶する第1のピクチャバッファと、復号化された画像データを記憶する第2のピクチャバッファと、前記第2のピクチャバッファに記憶される画像データを選択的に参照して、前記第1のピクチャバッファに記憶される前記圧縮画像データを復号化し、復号化された画像データを前記第2のピクチャバッファに記憶する復号化手段と、前記第2のピクチャバッファの空き容量を検出する検出手段と、前記検出手段の検出結果に従い、前記空き容量が所定値未満のときに、前記復号化手段による復号化を中断する制御手段と、を備えることを特徴とする。 In order to achieve the above object, an image decoding apparatus according to the present invention is an image decoding apparatus that decodes compressed image data compressed using inter-picture predictive coding, wherein the compressed image data is A first picture buffer to be stored, a second picture buffer to store decoded image data, and image data stored in the second picture buffer are selectively referred to, and the first picture buffer Decoding means for decoding the compressed image data stored in the buffer and storing the decoded image data in the second picture buffer; detection means for detecting a free capacity of the second picture buffer; Control means for interrupting decoding by the decoding means when the free space is less than a predetermined value according to a detection result of the detection means.
また、本発明に係る画像復号化装置は、ピクチャ間予測符号化及びピクチャ内符号化を用いて圧縮された圧縮画像データを復号化する画像復号化装置であって、前記圧縮画像データを記憶する第1のピクチャバッファと、復号化された画像データを記憶する第2のピクチャバッファと、前記第2のピクチャバッファに記憶される画像データを選択的に参照して、前記第1のピクチャバッファに格納される前記圧縮画像データを復号化し、復号化された画像データを前記第2のピクチャバッファに記憶する復号化手段であって、前記ピクチャ間予測符号化による圧縮画像データと前記ピクチャ内符号化による圧縮画像データの両方を復号化する全復号処理モードと、前記ピクチャ内符号化による圧縮画像データのみを復号化する選択復号処理モードとを選択的に実行可能な復号化手段と、前記第2のピクチャバッファの空き容量を検出する検出手段と、前記検出手段の検出結果に従い、前記空き容量が所定値未満のときに、前記復号化手段に前記選択復号処理モードによる復号化を指示する制御手段と、を備えることを特徴とする。 An image decoding apparatus according to the present invention is an image decoding apparatus for decoding compressed image data compressed using inter-picture predictive coding and intra-picture coding, and stores the compressed image data. A first picture buffer, a second picture buffer for storing decoded image data, and image data stored in the second picture buffer are selectively referred to and stored in the first picture buffer. Decoding means for decoding the stored compressed image data and storing the decoded image data in the second picture buffer, the compressed image data by the inter-picture predictive encoding and the intra-picture encoding An all-decoding processing mode for decoding both of the compressed image data based on the image and a selective decoding processing mode for decoding only the compressed image data based on the intra-picture coding. According to the detection result of the detection means, the detection means for detecting the free capacity of the second picture buffer, and when the free capacity is less than a predetermined value, Control means for instructing the decoding means to perform decoding in the selective decoding processing mode.
また、本発明に係る画像復号化装置の制御方法は、ピクチャ間予測符号化を用いて圧縮された圧縮画像データを復号化する画像復号化装置であり、且つ前記圧縮画像データを記憶する第1のピクチャバッファと、復号化された画像データを記憶する第2のピクチャバッファとを備える画像復号化装置を制御する方法であって、前記第2のピクチャバッファに記憶される画像データを選択的に参照して、前記第1のピクチャバッファに記憶される前記圧縮画像データを復号化し、復号化された画像データを前記第2のピクチャバッファに記憶する復号化工程と、前記第2のピクチャバッファの空き容量を検出する検出工程と、前記検出工程の検出結果に従い、前記空き容量が所定値未満のときに、前記復号化工程における復号化を中断する制御工程と、を備えることを特徴とする。 The image decoding apparatus control method according to the present invention is an image decoding apparatus that decodes compressed image data compressed using inter-picture predictive coding, and stores the compressed image data. And a second picture buffer for storing decoded image data, wherein the image data stored in the second picture buffer is selectively selected. Referring to the decoding step of decoding the compressed image data stored in the first picture buffer and storing the decoded image data in the second picture buffer; and A detection step for detecting free space, and control for interrupting decoding in the decoding step when the free space is less than a predetermined value according to the detection result of the detection step Characterized in that it comprises a degree, the.
また、本発明に係る画像復号化装置の制御方法は、ピクチャ間予測符号化及びピクチャ内符号化を用いて圧縮された圧縮画像データを復号化する画像復号化装置であり、且つ前記圧縮画像データを記憶する第1のピクチャバッファと、復号化された画像データを記憶する第2のピクチャバッファとを備える画像復号化装置を制御する方法であって、前記第2のピクチャバッファに記憶される画像データを選択的に参照して、前記第1のピクチャバッファに格納される前記圧縮画像データを復号化し、復号化された画像データを前記第2のピクチャバッファに記憶する復号化工程であって、前記ピクチャ間予測符号化による圧縮画像データと前記ピクチャ内符号化による圧縮画像データの両方を復号化する全復号処理モードと、前記ピクチャ内符号化による圧縮画像データのみを復号化する選択復号処理モードとを選択的に実行可能な復号化工程と、前記第2のピクチャバッファの空き容量を検出する検出工程と、前記検出工程の検出結果に従い、前記空き容量が所定値未満のときに、前記復号化工程に前記選択復号処理モードによる復号化を指示する制御工程と、
を備えることを特徴とする。
The control method of the image decoding apparatus according to the present invention is an image decoding apparatus that decodes compressed image data compressed using inter-picture predictive coding and intra-picture coding, and the compressed image data A method for controlling an image decoding device comprising a first picture buffer for storing image data and a second picture buffer for storing decoded image data, the image being stored in the second picture buffer A decoding step of selectively referring to data, decoding the compressed image data stored in the first picture buffer, and storing the decoded image data in the second picture buffer; An all-decoding processing mode for decoding both the compressed image data by the inter-picture prediction encoding and the compressed image data by the intra-picture encoding; A decoding step capable of selectively executing a selective decoding processing mode for decoding only compressed image data by encoding, a detection step for detecting a free capacity of the second picture buffer, and a detection result of the detection step And when the free space is less than a predetermined value, a control step for instructing the decoding step to perform decoding in the selective decoding processing mode;
It is characterized by providing.
本発明によれば、復号化対象の圧縮画像データで必要なバッファサイズよりも相対的に小さなバッファサイズの参照ピクチャバッファしか持たない場合でも、致命的な破綻を回避して、復号化処理を継続することができる。 According to the present invention, even if the compressed image data to be decoded has only a reference picture buffer having a buffer size relatively smaller than that required, the decoding process is continued while avoiding a fatal failure. can do.
以下、図面を参照して、本発明の実施例を詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
(実施例1)
図1は、本発明に係る画像復号化装置の一実施例である撮像装置の概略構成ブロック図であり、図2は本実施例のバッファの概略構成ブロック図である。撮像装置10は、例えば、H.264(AVC)を用いたデジタルカメラ又はデジタルビデオカメラ等である。図1では、実線は画像データ又は音声データの流れを示し、破線は制御信号を示す。
(Example 1)
FIG. 1 is a schematic block diagram of an image pickup apparatus which is an embodiment of an image decoding apparatus according to the present invention, and FIG. 2 is a block diagram of a schematic structure of a buffer of this embodiment. The
撮像装置10は、撮影レンズ12、撮像素子14、信号処理ユニット16、バッファ18、H.264に準拠して映像データを符号化/復号化する映像符号化復号化ユニット20、フラッシュメモリ22を具備する。さらに、DVDディスク(以下、DVDと称す)等の記録媒体26にデータを書込み及び読み出しするディスク制御ユニット24、表示ユニット28、マルチプレクサ(MUX)/デマルチプレクサ(DEMUX)30も具備する。さらに、マイク32、スピーカ34、AC3に従い音声データを符号化/復号化する音声符号化復号化ユニット36、制御ユニット38、操作ユニット40及びバス42も具備する。
The
撮影レンズ12は被写体からの光学像を撮像素子14の撮像面に結像する光学素子であり、絞り機構及びシャッタ機構を具備する。また、撮像装置10は、撮影レンズの焦点を被写体に自動調節するオートフォーカス機構を具備する。
The taking
撮像素子14は撮影レンズ12からの光学像を電気信号に変換する光学素子である。撮像素子14は、例えば、CCD(Charge Coupled Devices)型撮像素子又はCMOS(Complementary Metal Oxide Semiconductor)型撮像素子からなる。信号処理ユニット16は、撮像素子14からのアナログ画像信号をデジタル信号に変換し、カメラで周知の信号処理(例えば、ガンマ補正、色バランス調整、輝度/色分離)等を施し、所定映像形式の映像データを出力する。
The
バッファ18は、バス42に接続するデバイス間で入出力されるデータを一時記憶する。バッファ18の具体的機能は、後述する。
The
映像符号化復号化ユニット20は、H.264等の映像圧縮方式でデジタル映像信号を圧縮符号化して、圧縮映像データを生成する。また、映像符号化復号化ユニット20は、ディスク制御ユニット24からの圧縮映像データを伸長する。なお、H.264は、MPEG−4 Part 10:AVC(Advanced Video Coding)とも称される。
The video encoding /
フラッシュメモリ22は不揮発性の記録媒体であり、撮像装置10の動作に関わるプログラムが格納されている。
The
ディスク制御ユニット24は、制御ユニット38の指示に従い、記録媒体26に圧縮映像データ、圧縮音声データ及びファイルの管理情報等を書込み、記録媒体26から圧縮映像データ、圧縮音声データ及びファイル管理データ等を読み出す。記録媒体26は、例えばDVD−R等、書き込み可能な光ディスク、磁気ディスク又は半導体メモリ(メモリーカード)等からなる。
The
表示ユニット28は電子ビューファインダ又はLCD(液晶パネル)等で構成される。撮像モードでは、信号処理ユニット16からの映像データに係る画像を表示し、再生モードでは、ディスク制御ユニット24により記録媒体26から再生された圧縮映像データに係る画像を表示する。
The
マルチプレクサ/デマルチプレクサ30は、映像符号化復号化ユニット20による圧縮映像データと、音声符号化復号化ユニット36による圧縮音声データを多重化し、多重化された圧縮映像データ及び圧縮音声データを分離する。また、マルチプレクサ/デマルチプレクサ30は、圧縮映像データ又は圧縮音声データのソースパケットに4バイトのヘッダを加える。このヘッダ情報を用いて圧縮映像データと圧縮映像データが管理される。
The multiplexer /
マイク32はAGC(Automatic Gain Control)とA/D変換器を具備し、撮像装置10の外部音声を入力して増幅し、デジタル音声信号を生成する。スピーカ34はアンプを具備し、デジタル音声信号を撮像装置10の外部に音として出力する。
The
音声符号化復号化ユニット36は、AC(Audio Code number)3の音声圧縮方式でマイク32からのデジタル音声信号を圧縮符号化して圧縮音声データを生成する。また、音声符号化復号化ユニット36は、ディスク制御ユニット24からの圧縮音声データを伸長して、スピーカ34に印加する。
The audio encoding /
制御ユニット38はCPU(Central Processing Unit)又はMPU(Micro Processing Unit)を具備し、撮像装置10の全体を制御する。検出ユニット38aは、バッファ18の全体容量値を検出する。また、検出ユニット38aは、後述するCPB(Coded Picture Buffer)又はDPB(Decoded Picture Buffer)にイネーブル信号を送る。バス42は、上述のユニット間で各種データを転送するのに使用される。
The
操作ユニット40は、動画撮影スイッチ、レリーズスイッチ、再生スイッチ及び停止スイッチを具備する。使用者は、操作ユニット40を使って、動画像の撮影、静止画像の撮影、画像データ又は音声データの再生を制御ユニット38に指示する。また、操作ユニット40は、モードダイヤル、メニューキー、選択キー及び決定キー等を具備し、これにより、使用者は、撮像モード及び再生モード等の動作モードの切替え、設定画面の表示、画面上での各種選択、画面上での各種決定を制御ユニット38に指示する。
The
撮像装置10の制御ユニット38は、ユーザにより指定された動作モードに従い、各部を制御する。その結果、撮像モードでは、撮像素子14による撮影画像が表示ユニット28に表示される。撮像画像等を記録するための記録モードでは、映像のアスペクト比・圧縮符号化形式・解像度、及び音声のチャネル数等に基づき、映像データ及び音声データが圧縮符号化され、所定形式で多重化され、所定のデジタル動画フォーマットで記録媒体26に記録される。再生モードでは、記録媒体26から多重化された圧縮映像データ及び圧縮音声データが読み出され、再生の管理情報(index.bdmv,MovieObject,PlayList等)及びユーザ指示に基づいて、順次復号化され、再生出力される。
The
図2乃至図4を参照して、圧縮データの復号化とバッファ18の管理に関する本実施例の特徴的な動作を説明する。図2は、再生時のバッファ18と映像符号化復号化ユニット20の処理手順の模式図を示す。図3は、映像符号化復号化ユニット20の圧縮映像データ及び音声符号化復号化ユニット36の圧縮音声データのパケット形式を示す。ソースパケットsource_packet()は4バイトのヘッダTP_Extra_header()、188バイトのトランスポートパケットTransport_packet()からなる。ヘッダTP_Extra_header()は、図4に示すように、2ビットのコピー許可指示子copy_permission_indicatorと、30ビットの到達タイムスタンプarrival_time_stampからなる。コピー許可指示子copy_permission_indicatorはコンテンツの保護に関する情報を格納する。また、到達タイムスタンプarrival_time_stampはトランスポートパケットがTransport_packet()がトランスポートバッファ54に到着する時刻を27MHzの精度で格納する。トランスポートパケットTransport_packet()に関する詳細な説明はISO/IEC13818−1に記述されているので、ここでは省略する。
With reference to FIGS. 2 to 4, the characteristic operation of the present embodiment relating to the decoding of the compressed data and the management of the
撮像装置10は、ユーザから再生指示を受けると、記録媒体26から圧縮映像データと圧縮音声データを読み出し、リードバッファ(Read Buffer:RB)50に格納する。パケット分離ユニット52は、リードバッファ50に格納された各ソースパケットのうち到達タイムスタンプ(arrival_time_stamp)に達したものを、ヘッダTP_Extra_header()を削除してTB54に書き込む。トランスポートバッファ(Transport Buffer:TB)54に格納されたデータは、一定レート、又は、H.264/AVC仮想デコーダモデルに従ってエレメンタリストリーム(Elementary Stream)に分解される。そして、符号化ピクチャバッファ(Coded Picture Buffer:CPB)56に格納される。符号化ピクチャバッファ(CPB)56は、特許請求の範囲に記載された第1のピクチャバッファに相当する。
When receiving a reproduction instruction from the user, the
映像符号化復号化ユニット20の復号化部58は、圧縮画像データを保存するCPB56に格納されたエレメンタリストリームの各アクセスユニットを復号化する。具体的に、バッファ期間SEI(Buffering Period SEI)及びピクチャタイミングSEI(Picture Timing SEI)に基づいて復号化する。そして、復元された映像データを復号化ピクチャバッファ(Decoded Picture Buffer:DPB)60に格納する。復号化ピクチャバッファ(DPB)60は、特許請求の範囲に記載された第2のピクチャバッファに相当する。バッファ期間SEI及びピクチャ期間SEIは、エレメンタリストリーム内に含まれる付加情報である。バッファ期間SEIはアクセスユニットが復号されるまでの遅延時間を示し、ピクチャタイミングSEIは、アクセスユニット毎の復号時刻及び表示時刻を示す。なお、バッファ期間SEI及びピクチャタイミングSEIの詳細は、ITU−T Rec. H.264等に記載されているので、これ以上の説明は省略する。
The
DPB60に格納された復号化後の映像データは、表示に用いられるとともに、フレーム間予測を用いて符号化されたピクチャの、復号時の参照ピクチャとしても用いられる。
The decoded video data stored in the
DPB60に格納される参照ピクチャの管理には、2種類の方法がある。移動枠メモリ管理方式は、DPBに新たに格納される参照ピクチャにピクチャを格納する十分なメモリがない場合に、参照ピクチャのうち、最も早く格納されたピクチャのバッファ領域を解放する方法である。一方、適応メモリ管理方式は、参照ピクチャとその動作を具体的に制御する方法である。参照ピクチャには、ストリーム中に長期間にわたって参照される長期参照ピクチャと、短期のみ参照される短期参照ピクチャとがあり、これらの参照ピクチャの発生に応じて、移動枠メモリ管理方式と適応メモリ管理方式が切り替えて使用される。
There are two types of methods for managing the reference pictures stored in the
図5は、DPB60の容量が不足するような圧縮映像音声データを再生する場合の動作フローチャートを示す。例えば、他の記録装置で映像及び音声を記録された記録媒体26が装填され、その記録媒体26から映像及び音声を再生する場合である。
FIG. 5 shows an operation flowchart in the case of reproducing compressed video / audio data in which the capacity of the
復号化部58は、CPB56の記憶データから復号化対象のアクセスユニットを選択し(S1)、そのアクセスユニットがIDR(Instantaneous Decoder Refresh)ピクチャであるか否かを判別する(S2)。IDRピクチャでなければ(S2でNO)、復号処理を開始できないので、当該アクセスユニットを放棄してステップS1に戻る。
The
IDRピクチャであれば(S2でYES)、そのアクセスユニットを復号化ピクチャバッファ(DPB)60に格納するための十分な空き領域があるか否かをチェックする(S3)。格納するための空きが十分にあれば(S3でYES)、復号化部58は、復号結果をDPB60に格納し(S4)、CPB56から次の復号化対象のアクセスユニットを選択し(S5)、ステップS3に戻る。
If it is an IDR picture (YES in S2), it is checked whether there is sufficient free space for storing the access unit in the decoded picture buffer (DPB) 60 (S3). If there is sufficient space for storing (YES in S3), the
一方、DPB60に空きがなければ、すなわち空き領域が所定値未満であれば(S3でNO)、最も早く格納したピクチャが表示ユニット28に表示済みであるか否かをチェックする(S6)。表示済みであれば(S6でYES)、表示済みピクチャのバッファ領域を解放し(S7)、ステップS4に進む。表示済みでなければ(S6でNO)、表示ユニット28によってユーザに警告メッセージを表示し(S8)、現在表示中のピクチャ領域を除き、DPB60上の全メモリ領域を解放し(S9)、ステップS1に戻って、IDRピクチャ待ち状態に入る。このIDRピクチャ待ち状態では、表示中のピクチャ以外が解放され、DPB60に残る唯一のピクチャの画像が繰り返し表示される。
On the other hand, if there is no free space in the
このように、本実施例では、参照ピクチャを格納する十分なバッファ領域を復号化ピクチャバッファ(DPB)60に確保できるかどうかを検出する。そして、その検出結果に応じて、空き領域が所定値未満となる場合に、復号化を中断する。復号化の中断中は、表示中の画像を繰り返し表示しつつ、次のIDRピクチャを待機するので、復号処理の致命的な破綻を回避できる。 Thus, in this embodiment, it is detected whether a sufficient buffer area for storing the reference picture can be secured in the decoded picture buffer (DPB) 60. Then, according to the detection result, when the free area becomes less than a predetermined value, the decoding is interrupted. While decoding is interrupted, the currently displayed image is repeatedly displayed and the next IDR picture is waited, so that a fatal failure of the decoding process can be avoided.
ステップS8では、復号化の中断時に警告メッセージを発行しているが、不要であれば省略してもよい。ステップS9では、表示中のピクチャ以外のバッファ領域を解放しているが、最終的に復号化ピクチャバッファ(DPB)60に次の復号処理に必要なメモリ領域が確保できるのであれば、これに限ったものではない。例えば、DPB60上の未表示ピクチャを順次、表示後に解放してもよいし、あるいは、再生画の表示を断念して表示ユニット28に例えばブルーバックなどを表示し、DPB60の全メモリ領域を一度に解放してもよい。
In step S8, a warning message is issued when decoding is interrupted, but may be omitted if unnecessary. In step S9, the buffer area other than the picture being displayed is released. However, if the memory area necessary for the next decoding process can be finally secured in the decoded picture buffer (DPB) 60, this is not the only case. Not a thing. For example, undisplayed pictures on the
図6は、適応メモリ管理方式の場合の動作フローチャートを示す。ステップS51〜S59は図5のステップS1〜S9に対応する。図5とはステップS56,57が異なる。図6では、復号化ピクチャバッファ(DPB)60に十分な空きがない場合(空き領域が所定値未満の場合)に(S53でNO)、DPB60に解放可能なピクチャがあるか否かをチェックする(S56)。解放可能なピクチャがある場合には(S56でYES)、そのピクチャをDPB60から削除して、そのバッファ領域を解放し(S57)、ステップS54に進む。一方、解放可能なピクチャが無い場合には(S56でNO)、表示ユニット28によってユーザに警告メッセージを表示し(S58)、現在表示中のピクチャ領域を除き、DPB60上の全メモリ領域を解放し(S59)、ステップS51に戻る。そして、IDRピクチャ待ち状態に入る。
FIG. 6 shows an operation flowchart in the case of the adaptive memory management method. Steps S51 to S59 correspond to steps S1 to S9 in FIG. Steps S56 and 57 are different from FIG. In FIG. 6, when there is not enough free space in the decoded picture buffer (DPB) 60 (when the free space is less than the predetermined value) (NO in S53), it is checked whether there is a releasable picture in the
図6に示す動作でも、参照ピクチャを格納する十分なバッファ領域を復号化ピクチャバッファ(DPB)60に確保できるかどうかを検出する。そして、その検出結果に応じて、空き領域が所定値未満となる場合に、復号化を中断する。復号化の中断中は、表示中の画像を繰り返し表示しつつ、次のIDRピクチャを待機するので、復号処理の致命的な破綻を回避できる。 Also in the operation shown in FIG. 6, it is detected whether a sufficient buffer area for storing the reference picture can be secured in the decoded picture buffer (DPB) 60. Then, according to the detection result, when the free area becomes less than a predetermined value, the decoding is interrupted. While decoding is interrupted, the currently displayed image is repeatedly displayed and the next IDR picture is waited, so that a fatal failure of the decoding process can be avoided.
S58では、復号化の中断時に警告メッセージを発行しているが、不要であれば省略してもよい。S59では、表示中のピクチャ以外のバッファ領域を解放しているが、最終的に復号化ピクチャバッファ(DPB)60に次の復号処理に必要なメモリ領域が確保できるのであれば、これに限ったものではない。例えば、DPB60上の未表示ピクチャを順次、表示後に解放してもよいし、あるいは再生画の表示を断念して表示ユニット28に例えばブルーバックなどを表示し、DPB60全メモリ領域を一度に解放してもよい。
In S58, a warning message is issued when decoding is interrupted, but may be omitted if unnecessary. In S59, the buffer area other than the picture being displayed is released. However, if the memory area necessary for the next decoding process can be secured in the decoded picture buffer (DPB) 60 in the end, it is limited to this. It is not a thing. For example, undisplayed pictures on the
(実施例2)
本発明の実施例2の動作を説明する。実施例1では、IDRピクチャによる復号処理の再開まで復号化ピクチャバッファ(DPB)上のピクチャの表示を繰り返したが、実施例2では、図7に示すように、IDRピクチャによる復号化の再開前にIピクチャによって随時表示画像を更新する。実施例2は、制御ユニット38及び復号化部58の動作のみが異なり、その他の構成要素の作用は、実施例1と同じである。また、実施例2における復号化部58は、通常的な動作であるI,P及びBピクチャを順次復号化するモード(全復号処理モード)に加え、選択的にピクチャ内符号化画像データ(Iピクチャ)のみを復号化するモード(選択復号処理モード)を実行可能な構成である。
(Example 2)
The operation of
図7のステップS201〜S209は、図5のステップS1〜S9と同じである。即ち、図7のステップS210以降が、図5に対して追加されている。現在表示中のピクチャ領域を除き、復号化ピクチャバッファ(DPB)60上の全メモリ領域を解放した後(S209)、ステップS201と同様に、符号化ピクチャバッファ(CPB)56から復号対象となるアクセスユニットを選択する(S210)。そのアクセスユニットがIDRピクチャであるか否かを判別する(S211)。選択したアクセスユニットがIDRピクチャであれば(S211でYES)、ステップS203に進み、そのIDRピクチャ以降を同様に復号処理する。 Steps S201 to S209 in FIG. 7 are the same as steps S1 to S9 in FIG. That is, step S210 and subsequent steps in FIG. 7 are added to FIG. After the entire memory area on the decoded picture buffer (DPB) 60 is released except for the picture area currently being displayed (S209), the access to be decoded from the coded picture buffer (CPB) 56 is the same as in step S201. A unit is selected (S210). It is determined whether or not the access unit is an IDR picture (S211). If the selected access unit is an IDR picture (YES in S211), the process proceeds to step S203, and the subsequent IDR picture is similarly decoded.
一方、選択したアクセスユニットがIDRピクチャでなければ(S211でNO)、そのアクセスユニットがIピクチャであるか否かを判定する(S212)。Iピクチャであれば(S212でYES)、そのIピクチャを復号して復号結果をDPB60に格納する(S213)。復号されたIピクチャは、所定のタイミング、例えばピクチャタイミングSEIで定義されたタイミング等で、表示ユニット28に表示され、順次表示画像が切り替えられる。一方、Iピクチャでなければ(S212でNO)、ステップS210に戻り、次の復号対象となるアクセスユニットを選択する(S210)。
On the other hand, if the selected access unit is not an IDR picture (NO in S211), it is determined whether or not the access unit is an I picture (S212). If it is an I picture (YES in S212), the I picture is decoded and the decoding result is stored in the DPB 60 (S213). The decoded I picture is displayed on the
すなわち、ステップS210〜S213において、復号化部58は制御ユニット38の指示のもと、次のIDRピクチャが検出されるまで、Iピクチャのみを検出して復号化する選択復号処理モードを実行する。なお、IDRピクチャを検出することにより、復号化部58は、選択復号処理モードから通常の全復号処理モードへと動作が切り替わる。全復号処理モードでは、ピクチャ内符号化による圧縮画像データ(Iピクチャ)と、ピクチャ間予測符号化による圧縮画像データ(Pピクチャ、Bピクチャ)の両方が復号される。
That is, in steps S210 to S213, the
このようにすることで、参照ピクチャを格納する十分なバッファ領域を復号化ピクチャバッファ(DPB)60に確保できない場合に、表示中の画像を繰り返し表示しつつ、次のIDRピクチャを待機するので、復号処理の致命的な破綻を回避できる。さらに、復号処理再開までの間はIピクチャを復号して表示画面を更新するので、再生画面の違和感を軽減できる。 By doing this, when a sufficient buffer area for storing the reference picture cannot be secured in the decoded picture buffer (DPB) 60, the next IDR picture is waited while repeatedly displaying the displayed image. A fatal failure of the decryption process can be avoided. Furthermore, since the I picture is decoded and the display screen is updated until the decoding process is resumed, the uncomfortable feeling of the playback screen can be reduced.
図8は、適応メモリ管理方式の場合の動作フローチャートを示す。ステップS251〜S263は図7のステップS201〜S213に対応する。図7とはステップS256,257が異なる。図8では、復号化ピクチャバッファ(DPB)60に十分な空きがない場合に(S253でNO)、DPB60に解放可能なピクチャがあるか否かをチェックする(S256)。解放可能なピクチャがある場合には(S256でYES)、そのピクチャをDPB60から削除して、そのバッファ領域を解放し(S257)、ステップS254に進む。一方、解放可能なピクチャが無い場合には(S256でNO)、図7と同様の処理(ステップS258〜S263)を実行する。
FIG. 8 shows an operation flowchart in the case of the adaptive memory management method. Steps S251 to S263 correspond to steps S201 to S213 in FIG. Steps S256 and 257 are different from FIG. In FIG. 8, when there is not enough free space in the decoded picture buffer (DPB) 60 (NO in S253), it is checked whether there is a releasable picture in the DPB 60 (S256). If there is a releasable picture (YES in S256), the picture is deleted from the
(実施例3)
復号処理に必要な復号化ピクチャバッファ(DPB)60の容量に関する情報を符号化処理時に圧縮データと一緒に記録媒体26に記録しておき、復号時にこの情報を参照することで、復号化の破綻を防止できる。
(Example 3)
Information on the capacity of the decoded picture buffer (DPB) 60 necessary for the decoding process is recorded on the
図9は、各ピクチャの復号処理時に復号化ピクチャバッファ(DPB)60上で保持が必要なピクチャの枚数を取得するフローチャートである。符号化対象がIDRピクチャであるか否かを判別する(S301)。IDRピクチャであると(S301でYES)、DPB60上に必要なピクチャ枚数を1で初期化する(S302)。
FIG. 9 is a flowchart for acquiring the number of pictures that need to be held in the decoded picture buffer (DPB) 60 during the decoding process of each picture. It is determined whether the encoding target is an IDR picture (S301). If it is an IDR picture (YES in S301), the number of pictures required on the
IDRピクチャでなければ(S301でNO)、必要なピクチャ枚数を1だけインクリメントする(S303)。そして、ピクチャを復号後、DPB60に保持された任意のピクチャを解放してよい符号化であるか否かを判定する(S304)。ピクチャを復号後、DPB60に保持された任意のピクチャを解放してよい符号化の場合(S304でYES)、必要なピクチャ枚数を1だけデクリメントし(S305)、ステップS301に戻る。一方、ピクチャを復号後、DPB60に保持された任意のピクチャを解放してよい符号化ではない場合(S304でNO)、ステップS301へ進む。
If it is not an IDR picture (NO in S301), the required number of pictures is incremented by 1 (S303). Then, after decoding the picture, it is determined whether or not the coding is such that an arbitrary picture held in the
このような処理を繰り返すことで、各ピクチャの復号処理時に、復号化ピクチャバッファ(DPB)60に格納される必要ピクチャ枚数を算出できる。算出した必要ピクチャ枚数は、例えば、ストリームデータ内に以下のように格納すればよい。図10は、必要ピクチャ枚数をストリームデータ内に格納する構造例を示す。図11は、ストリームファイルと1対1で記録される管理ファイルzzzzz.clpiの構造例を示す。図12はDPB情報DbpInfo()の詳細を説明する模式図である。 By repeating such processing, the required number of pictures stored in the decoded picture buffer (DPB) 60 can be calculated at the time of decoding of each picture. The calculated necessary number of pictures may be stored in the stream data as follows, for example. FIG. 10 shows a structural example in which the required number of pictures is stored in the stream data. FIG. 11 shows an example of the structure of the management file zzzzz.clpi recorded on a one-to-one basis with the stream file. FIG. 12 is a schematic diagram for explaining the details of the DPB information DbpInfo ().
図10にて符号化されたアクセスニットに付加されるメッセージSEI_massage()に対し、復号時にDPB60に必要なピクチャ枚数を変数DPB_PIC_NUMに格納するユーザデータuser_data_unregisterdを格納する。メッセージSEI_massage()及びユーザデータuser_data_unregisterdはITU−T Rec. H.264に規定されており、その詳細な説明は省略する。
In response to the message SEI_massage () added to the access unit encoded in FIG. 10, user data user_data_unregisterd for storing the number of pictures necessary for the
この情報の付加はアクセスユニット単位でもよいし、あるいは、IDRピクチャであるアクセスユニットのみであってもよいし、それ以外でもよい。IDRピクチャであるアクセスユニットのみに付加する場合は、IDRピクチャから次のIDRピクチャまでに発生するDPB60に必要なピクチャ枚数のうちの最大値をIDRピクチャのユーザデータuser_data_unregisterdに格納すればよい。
This information may be added in units of access units, or only in the access units that are IDR pictures, or in other cases. When adding only to an access unit that is an IDR picture, the maximum value of the number of pictures required for the
図11で、DPB情報スタートアドレスDPB_info_start_addressは、DPB情報DbpInfo()の開始アドレスを管理ファイルzzzzz.clpiの先頭からバイトオーダーでカウントしたオフセット値を示す。DPB情報DPBInfo()は、復号化する際に必要なDPB60の容量を格納する領域の実体である。それ以外の領域に関する詳細は、Blu-ray Disc Read-Only Format(Blu-rayは商標)に記載されている。
In FIG. 11, DPB information start address DPB_info_start_address indicates an offset value obtained by counting the start address of DPB information DbpInfo () in byte order from the top of management file zzzzz.clpi. The DPB information DPBInfo () is an entity of an area for storing the capacity of the
図12において、情報長Lengthには、DPB情報DPBInfo()全体のサイズをバイトオーダーでカウントした値が記録される。エントリー数number_of_entriesは、後述するDPB_Info及びPTSの個数を格納する。DPB_Infoは、図9で算出した、各ピクチャの復号処理時にDPB60に格納されるピクチャ枚数を格納する。PTSはDPB_Infoが有効であるアクセスユニットの表示タイミングを、90kHzの精度で格納する。
In FIG. 12, in the information length Length, a value obtained by counting the entire size of the DPB information DPBInfo () in byte order is recorded. The number of entries number_of_entries stores the number of DPB_Info and PTS described later. DPB_Info stores the number of pictures stored in the
このようにして、復号化時に復号化ピクチャバッファ(DPB)60に格納する必要があるピクチャ枚数を、予め符号化時に算出して、ストリームデータ又は管理ファイルに記録しておくことができる。 In this way, the number of pictures that need to be stored in the decoded picture buffer (DPB) 60 at the time of decoding can be calculated in advance at the time of encoding and recorded in the stream data or the management file.
なお、本実施例では、ピクチャ枚数の情報の格納は、管理ファイルが管理するストリームファイル内のアクセスユニット単位でもよいし、あるいはIDRピクチャ単位であってもよい。或いは、管理ファイルが管理するストリームファイル全体に対して一つでもよいし、それ以外でもよい。 In this embodiment, the information on the number of pictures may be stored in units of access units in the stream file managed by the management file or in units of IDR pictures. Alternatively, the number may be one for the entire stream file managed by the management file, or may be other than that.
IDRピクチャ単位である場合は、IDRピクチャから次のIDRピクチャまでで、復号化ピクチャバッファ(DPB)60に格納されるピクチャ枚数のうちの最大値を格納するものとし、PTSにはIDRピクチャの表示時刻を格納する。管理ファイルが管理するストリームファイル全体に対して一つの場合は、管理ファイルが管理するストリームファイルの符号化処理でDPB60に格納する必要があるピクチャ枚数のうちの最大値を格納し、PTSにはこのストリームデータの表示開始時刻を格納する。
In the case of the IDR picture unit, the maximum value of the number of pictures stored in the decoded picture buffer (DPB) 60 from the IDR picture to the next IDR picture is stored, and the display of the IDR picture is displayed in the PTS. Stores the time. When there is one for the entire stream file managed by the management file, the maximum value of the number of pictures that need to be stored in the
また、DPB60の容量をピクチャ枚数で説明しているが、バイト単位等のサイズで記録してもよい。バイト単位で記録する場合は、図9のステップS302、S303及びS305で、枚数ではなくピクチャのデータ量で演算を行う。
Further, although the capacity of the
(実施例4)
実施例3のように、復号化時に必要になる参照ピクチャ枚数の情報が一緒に記録されている圧縮映像データを再生する場合に、ショックプルーフバッファ(リードバッファ50)の容量を決定する方法を説明する。なお、復号化する際に必要な復号化ピクチャバッファ(DPB)60の容量は、管理ファイル内に記録されるものとする。さらにDPB情報DPBInfo()内のエントリー数number_of_entriesが1であって、管理ファイルが管理するストリームファイルでDPB60に格納する必要があるピクチャ枚数のうちの最大値がDPB_Infoに記録されているものとする。図13は、復号処理における復号化ピクチャバッファ(DPB)60及びショックプルーフバッファ(リードバッファ50)のサイズを決定するフローチャートである。
Example 4
A method of determining the capacity of the shock proof buffer (read buffer 50) when reproducing compressed video data in which information on the number of reference pictures necessary for decoding is recorded together as in the third embodiment will be described. To do. Note that the capacity of the decoded picture buffer (DPB) 60 necessary for decoding is recorded in the management file. Furthermore, it is assumed that the number of entries number_of_entries in the DPB information DPBInfo () is 1, and the maximum value of the number of pictures that need to be stored in the
先ず、復号に必要なバッファサイズを0で初期化する(S401)。全ストリームデータの再生に必要なDPB60のサイズを取得する(S402〜404)。DPBバッファのシステムデフォルト値(初期値)に対し、どれだけのサイズの増加が必要であるかを算出する(S405)。DPB60のバッファサイズに必要増加分を加算し(S406)。ショックプルーフバッファ(リードバッファ50)のバッファサイズからステップS405で算出されたDPBバッファ増加分を差し引く(S407)。
First, the buffer size required for decoding is initialized to 0 (S401). The size of the
このようなバッファサイズの制御により、振動など外乱への耐久性と、ストリームの再生を両立する最適なメモリマップを得ることができる。 By controlling the buffer size as described above, it is possible to obtain an optimal memory map that achieves both durability against disturbance such as vibration and stream reproduction.
なお、本実施例では、復号化の際に必要な復号化ピクチャバッファ(DPB)60の容量が管理ファイル内に記録されるものとする。さらに、DPB情報DPBInfo()のエントリー数number_of_entriesが1であって、管理ファイルが管理するストリームファイルでDPB60に格納する必要があるピクチャ枚数のうちの最大値がDPB_Infoに記録されているものとした。しかしながら、これに限定されるものではない。
In this embodiment, it is assumed that the capacity of the decoded picture buffer (DPB) 60 necessary for decoding is recorded in the management file. Furthermore, it is assumed that the number of entries number_of_entries of the DPB information DPBInfo () is 1, and the maximum value of the number of pictures that need to be stored in the
(実施例5)
ショックプルーフバッファ(リードバッファ50)の容量を決定する別の方法を説明する。復号化の際に必要な復号化ピクチャバッファ(DPB)60の容量は、管理ファイル内に記録されるものとする。また、DPB情報DPBInfo()のエントリー数number_of_entriesが管理ファイルが管理するストリームファイル内に含まれるIDRピクチャの枚数であるとする。さらに、IDRピクチャから次のIDRピクチャまでの間でDPB60に格納する必要があるピクチャ枚数のうちの最大値が各DPB_Infoに記録されているものとする。
(Example 5)
Another method for determining the capacity of the shock proof buffer (read buffer 50) will be described. It is assumed that the capacity of the decoded picture buffer (DPB) 60 necessary for decoding is recorded in the management file. Further, it is assumed that the number of entries number_of_entries of the DPB information DPBInfo () is the number of IDR pictures included in the stream file managed by the management file. Furthermore, it is assumed that the maximum value of the number of pictures that need to be stored in the
図14は、復号時の動作フローチャートである。図14において、符号化ピクチャバッファ(CPB)56から復号対象のアクセスユニットを選択する(S501)。選択したアクセスユニットがIDRピクチャであるか否かを判別する(S502)。選択したアクセスユニットがIDRピクチャでなければ(S502でNO)、ステップS501に戻る。IDRピクチャであれば(S502でYES)、管理情報からPTSに従い、IDRピクチャから次のIDRピクチャまでの間の復号に必要なDPB60のサイズを取得し、DPB60のバッファサイズが、必要量以上か否かを判別する(S503)。DPB60のバッファ容量が不足していれば(S503でYES)、IDRピクチャを復号処理してDPB60に格納し(S504)、IDRピクチャの表示タイミングでユーザに警告を発行することをシステム内のプログラムに予約する(S505)。そして、ステップS501に戻る。
FIG. 14 is an operation flowchart at the time of decoding. In FIG. 14, an access unit to be decoded is selected from the coded picture buffer (CPB) 56 (S501). It is determined whether or not the selected access unit is an IDR picture (S502). If the selected access unit is not an IDR picture (NO in S502), the process returns to step S501. If it is an IDR picture (YES in S502), the size of the
一方、DPB60のバッファ容量が必要量以上であれば(S503でNO)、IDRピクチャを検出するまで、順次、アクセスユニットを復号処理してDPB60に格納する(S506〜S508)。アクセスユニットがIDRピクチャになると(S508でYES)、ステップS503に戻る。
On the other hand, if the buffer capacity of the
ステップS504以降の処理により復号化ピクチャバッファ(DPB)60で表示画像が欠落した場合の動作は、実施例1と同じであるので、省略する。 Since the operation in the case where a display image is lost in the decoded picture buffer (DPB) 60 by the processing after step S504 is the same as that in the first embodiment, a description thereof will be omitted.
このように、本実施例では、復号時に復号化ピクチャバッファ(DPB)60に復号に必要なDPBバッファサイズを確保できない場合でも、復号処理の致命的な破綻を回避し、IDRピクチャの復号をトリガとして復号処理を再開できる。 As described above, in this embodiment, even when the DPB buffer size necessary for decoding cannot be secured in the decoded picture buffer (DPB) 60 at the time of decoding, the fatal failure of the decoding process is avoided and the IDR picture decoding is triggered. The decoding process can be resumed.
(実施例6)
IDRピクチャによる復号化の再開前に、再生画像の表示を更新する実施例を説明する。図15は、この実施例の復号動作のフローチャートである。なお、図15のステップS601〜S605の動作は図14のステップS501〜S505と同じであり、ステップS610〜S612の動作は、図14のステップS506〜508と同じである。
(Example 6)
An embodiment in which the display of a reproduced image is updated before decoding with an IDR picture is resumed will be described. FIG. 15 is a flowchart of the decoding operation of this embodiment. The operations in steps S601 to S605 in FIG. 15 are the same as those in steps S501 to S505 in FIG. 14, and the operations in steps S610 to S612 are the same as those in steps S506 to 508 in FIG.
ステップS605において、ユーザ警告の発生を予約した後、次の復号対象を符号化ピクチャバッファ(CPB)56から取得する(S606)。アクセスユニットがIDRピクチャであるか否かを判別する(S607)。アクセスユニットがIDRピクチャであれば(S607でYES)、ステップS603に戻る。アクセスユニットがIDRピクチャでなければ(S607でNO)、アクセスユニットがIピクチャであるか否かを判別する(S608)。Iピクチャであれば(S608でYES)、そのIピクチャを復号化して復号結果をDPB60に保存する(S609)。Iピクチャでなければ(S608でNO)、ステップS606に戻る。 In step S605, after the occurrence of a user warning is reserved, the next decoding target is acquired from the coded picture buffer (CPB) 56 (S606). It is determined whether or not the access unit is an IDR picture (S607). If the access unit is an IDR picture (YES in S607), the process returns to step S603. If the access unit is not an IDR picture (NO in S607), it is determined whether or not the access unit is an I picture (S608). If it is an I picture (YES in S608), the I picture is decoded and the decoding result is stored in the DPB 60 (S609). If it is not an I picture (NO in S608), the process returns to step S606.
ステップS604以降で、DPB60の表示画像欠落時の動作は、実施例1と同じであるので省略する。
In step S604 and subsequent steps, the operation when the display image of the
このように、本実施例では、復号時に、復号化ピクチャバッファ(DPB)に復号後のピクチャを格納する十分なバッファ領域を確保できない場合でも、復号処理の致命的な破綻を回避し、IDRピクチャの復号をトリガとして復号処理を再開できる。また、復号処理再開までの間は、Iピクチャを復号して表示画像を更新できる。 Thus, in this embodiment, even when a sufficient buffer area for storing the decoded picture cannot be secured in the decoded picture buffer (DPB) at the time of decoding, a fatal failure of the decoding process is avoided, and the IDR picture The decoding process can be resumed with the decoding of. In addition, until the decoding process is resumed, the display picture can be updated by decoding the I picture.
10 撮像装置
12 撮影レンズ
14 撮像素子
16 信号処理ユニット
18 バッファ
20 映像符号化復号化ユニット
22 フラッシュメモリ
24 ディスク制御ユニット
26 記録媒体
28 表示ユニット
30 マルチプレクサ/デマルチプレクサ
32 マイク
34 スピーカ
36 音声符号化復号化ユニット
38 制御ユニット
38a 検出ユニット
40 操作ユニット
42 バス
50 リードバッファ(RB)
52 パケット分離ユニット
54 トランスポートバッファ(TB)
56 符号化ピクチャバッファ(CPB)
58 復号化部
60 復号化ピクチャバッファ(DPB)
DESCRIPTION OF
52
56 Coded picture buffer (CPB)
58
Claims (16)
前記圧縮画像データを記憶する第1のピクチャバッファと、
復号化された画像データを記憶する第2のピクチャバッファと、
前記第2のピクチャバッファに記憶される画像データを選択的に参照して、前記第1のピクチャバッファに記憶される前記圧縮画像データを復号化し、復号化された画像データを前記第2のピクチャバッファに記憶する復号化手段と、
前記第2のピクチャバッファの空き容量を検出する検出手段と、
前記検出手段の検出結果に従い、前記空き容量が所定値未満のときに、前記復号化手段による復号化を中断する制御手段と、
を備えることを特徴とする画像復号化装置。 An image decoding apparatus for decoding compressed image data compressed using inter-picture prediction encoding,
A first picture buffer for storing the compressed image data;
A second picture buffer for storing the decoded image data;
The image data stored in the second picture buffer is selectively referred to, the compressed image data stored in the first picture buffer is decoded, and the decoded image data is converted into the second picture. Decoding means for storing in a buffer;
Detecting means for detecting free space in the second picture buffer;
Control means for interrupting decoding by the decoding means when the free space is less than a predetermined value according to the detection result of the detection means;
An image decoding apparatus comprising:
前記圧縮画像データを記憶する第1のピクチャバッファと、
復号化された画像データを記憶する第2のピクチャバッファと、
前記第2のピクチャバッファに記憶される画像データを選択的に参照して、前記第1のピクチャバッファに格納される前記圧縮画像データを復号化し、復号化された画像データを前記第2のピクチャバッファに記憶する復号化手段であって、前記ピクチャ間予測符号化による圧縮画像データと前記ピクチャ内符号化による圧縮画像データの両方を復号化する全復号処理モードと、前記ピクチャ内符号化による圧縮画像データのみを復号化する選択復号処理モードとを選択的に実行可能な復号化手段と、
前記第2のピクチャバッファの空き容量を検出する検出手段と、
前記検出手段の検出結果に従い、前記空き容量が所定値未満のときに、前記復号化手段に前記選択復号処理モードによる復号化を指示する制御手段と、
を備えることを特徴とする画像復号化装置。 An image decoding apparatus for decoding compressed image data compressed using inter-picture predictive coding and intra-picture coding,
A first picture buffer for storing the compressed image data;
A second picture buffer for storing the decoded image data;
The image data stored in the second picture buffer is selectively referred to, the compressed image data stored in the first picture buffer is decoded, and the decoded image data is converted to the second picture. Decoding means for storing in a buffer, all decoding processing modes for decoding both compressed image data by the inter-picture predictive coding and compressed image data by the intra-picture coding, and compression by the intra-picture coding Decoding means capable of selectively executing a selective decoding processing mode for decoding only image data;
Detecting means for detecting free space in the second picture buffer;
Control means for instructing the decoding means to perform decoding in the selective decoding processing mode when the free space is less than a predetermined value according to the detection result of the detecting means;
An image decoding apparatus comprising:
前記第2のピクチャバッファに記憶される画像データを選択的に参照して、前記第1のピクチャバッファに記憶される前記圧縮画像データを復号化し、復号化された画像データを前記第2のピクチャバッファに記憶する復号化工程と、
前記第2のピクチャバッファの空き容量を検出する検出工程と、
前記検出工程の検出結果に従い、前記空き容量が所定値未満のときに、前記復号化工程における復号化を中断する制御工程と、
を備えることを特徴とする画像復号化装置の制御方法。 An image decoding apparatus for decoding compressed image data compressed using inter-picture predictive encoding, and a first picture buffer for storing the compressed image data, and a first picture buffer for storing the decoded image data A method for controlling an image decoding device comprising two picture buffers,
The image data stored in the second picture buffer is selectively referred to, the compressed image data stored in the first picture buffer is decoded, and the decoded image data is converted into the second picture. A decoding step to store in a buffer;
A detecting step of detecting a free capacity of the second picture buffer;
According to the detection result of the detection step, when the free space is less than a predetermined value, a control step of interrupting decoding in the decoding step;
An image decoding apparatus control method comprising:
前記第2のピクチャバッファに記憶される画像データを選択的に参照して、前記第1のピクチャバッファに格納される前記圧縮画像データを復号化し、復号化された画像データを前記第2のピクチャバッファに記憶する復号化工程であって、前記ピクチャ間予測符号化による圧縮画像データと前記ピクチャ内符号化による圧縮画像データの両方を復号化する全復号処理モードと、前記ピクチャ内符号化による圧縮画像データのみを復号化する選択復号処理モードとを選択的に実行可能な復号化工程と、
前記第2のピクチャバッファの空き容量を検出する検出工程と、
前記検出工程の検出結果に従い、前記空き容量が所定値未満のときに、前記復号化工程に前記選択復号処理モードによる復号化を指示する制御工程と、
を備えることを特徴とする画像復号化装置の制御方法。 An image decoding apparatus for decoding compressed image data compressed using inter-picture predictive coding and intra-picture coding, and a first picture buffer for storing the compressed image data, and a decoded image A method for controlling an image decoding device comprising a second picture buffer for storing data, comprising:
The image data stored in the second picture buffer is selectively referred to, the compressed image data stored in the first picture buffer is decoded, and the decoded image data is converted to the second picture. A decoding process stored in a buffer, the decoding process storing both the compressed image data by the inter-picture prediction encoding and the compressed image data by the intra-picture encoding, and the compression by the intra-picture encoding A decoding step capable of selectively executing a selective decoding processing mode for decoding only image data;
A detecting step of detecting a free capacity of the second picture buffer;
According to the detection result of the detection step, when the free space is less than a predetermined value, a control step for instructing the decoding step to perform decoding in the selective decoding processing mode;
An image decoding apparatus control method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007201102A JP4799504B2 (en) | 2006-08-10 | 2007-08-01 | Image decoding apparatus and control method thereof |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006218820 | 2006-08-10 | ||
JP2006218820 | 2006-08-10 | ||
JP2007201102A JP4799504B2 (en) | 2006-08-10 | 2007-08-01 | Image decoding apparatus and control method thereof |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2008067364A true JP2008067364A (en) | 2008-03-21 |
JP2008067364A5 JP2008067364A5 (en) | 2010-09-09 |
JP4799504B2 JP4799504B2 (en) | 2011-10-26 |
Family
ID=39289594
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007201102A Expired - Fee Related JP4799504B2 (en) | 2006-08-10 | 2007-08-01 | Image decoding apparatus and control method thereof |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4799504B2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013232802A (en) * | 2012-04-27 | 2013-11-14 | Fujitsu Ltd | Moving image encoding device, moving image encoding method, moving image decoding device, and moving image decoding method |
JP2016131387A (en) * | 2016-03-14 | 2016-07-21 | 富士通株式会社 | Moving picture decoding method |
JP2016528804A (en) * | 2013-07-15 | 2016-09-15 | クゥアルコム・インコーポレイテッドQualcomm Incorporated | Decoded picture buffer operation for video coding |
JP2018534850A (en) * | 2015-10-12 | 2018-11-22 | サムスン エレクトロニクス カンパニー リミテッド | Random access and playback method of video bitstream in media transmission system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0723399A (en) * | 1993-03-31 | 1995-01-24 | Philips Electron Nv | Method and apparatus for decoding compressed frame |
JP2000232649A (en) * | 1998-12-10 | 2000-08-22 | Fujitsu Ltd | Mpeg video decoder and mpeg video decoding method |
JP2003517797A (en) * | 1999-12-14 | 2003-05-27 | サイエンティフィック−アトランタ, インコーポレイテッド | System and method for adaptively decoding a video signal with coordinated resource allocation |
JP2005260588A (en) * | 2004-03-11 | 2005-09-22 | Canon Inc | Encoding device, encoding method, decoding device and decoding method |
JP2005348314A (en) * | 2004-06-07 | 2005-12-15 | Sony Corp | Data recording apparatus, method and program, data reproducing apparatus, method and program, and recording medium |
WO2007105697A1 (en) * | 2006-03-15 | 2007-09-20 | Pioneer Corporation | Digital image data processing device and processing method |
-
2007
- 2007-08-01 JP JP2007201102A patent/JP4799504B2/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0723399A (en) * | 1993-03-31 | 1995-01-24 | Philips Electron Nv | Method and apparatus for decoding compressed frame |
JP2000232649A (en) * | 1998-12-10 | 2000-08-22 | Fujitsu Ltd | Mpeg video decoder and mpeg video decoding method |
JP2003517797A (en) * | 1999-12-14 | 2003-05-27 | サイエンティフィック−アトランタ, インコーポレイテッド | System and method for adaptively decoding a video signal with coordinated resource allocation |
JP2005260588A (en) * | 2004-03-11 | 2005-09-22 | Canon Inc | Encoding device, encoding method, decoding device and decoding method |
JP2005348314A (en) * | 2004-06-07 | 2005-12-15 | Sony Corp | Data recording apparatus, method and program, data reproducing apparatus, method and program, and recording medium |
WO2007105697A1 (en) * | 2006-03-15 | 2007-09-20 | Pioneer Corporation | Digital image data processing device and processing method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013232802A (en) * | 2012-04-27 | 2013-11-14 | Fujitsu Ltd | Moving image encoding device, moving image encoding method, moving image decoding device, and moving image decoding method |
JP2016528804A (en) * | 2013-07-15 | 2016-09-15 | クゥアルコム・インコーポレイテッドQualcomm Incorporated | Decoded picture buffer operation for video coding |
JP2018534850A (en) * | 2015-10-12 | 2018-11-22 | サムスン エレクトロニクス カンパニー リミテッド | Random access and playback method of video bitstream in media transmission system |
JP2016131387A (en) * | 2016-03-14 | 2016-07-21 | 富士通株式会社 | Moving picture decoding method |
Also Published As
Publication number | Publication date |
---|---|
JP4799504B2 (en) | 2011-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8559510B2 (en) | Image decoding apparatus | |
JP4724577B2 (en) | Imaging apparatus and control method thereof | |
JP4358081B2 (en) | Video recording device | |
JP3912536B2 (en) | RECORDING METHOD, RECORDING DEVICE, RECORDING MEDIUM, IMAGING DEVICE, AND IMAGING METHOD | |
US20070286280A1 (en) | Image coding/recording apparatus and image coding/recording method | |
JP4669902B2 (en) | Video recording apparatus, multiplexing method, program, and recording medium | |
JP2009038649A (en) | Signal processing circuit and imaging apparatus | |
JP4799504B2 (en) | Image decoding apparatus and control method thereof | |
JP2009225361A (en) | Recording device and recording method, and editing device and editing method | |
JP5164610B2 (en) | Imaging apparatus and control method thereof | |
JP2006310907A (en) | Imaging apparatus and its control method | |
JP5600405B2 (en) | Image processing apparatus, image processing method, and program | |
JP4785460B2 (en) | Imaging apparatus and imaging method | |
JP2015099995A (en) | Recording device and recording device control method | |
JP4164696B2 (en) | Imaging apparatus and imaging method | |
JP2008113111A (en) | Recording device | |
JP2001197437A (en) | Method and device for video recording | |
JP5683127B2 (en) | Recording device | |
JP5925020B2 (en) | Playback device | |
JP5930807B2 (en) | Imaging device | |
JP2021061542A (en) | Imaging apparatus and control method for the same, and program | |
JP6082269B2 (en) | Recording apparatus and control method thereof | |
JP2021078045A (en) | Output control device, output control method, and program | |
JP4306532B2 (en) | Recording apparatus and method, recording medium, and program | |
JP2008219921A (en) | Recording apparatus, recording method, image pickup apparatus, and image pickup method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100722 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100722 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110704 |
|
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: 20110708 |
|
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: 20110802 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140812 Year of fee payment: 3 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 4799504 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140812 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |