JP2008067364A - Image decoding apparatus and its control method - Google Patents

Image decoding apparatus and its control method Download PDF

Info

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
Application number
JP2007201102A
Other languages
Japanese (ja)
Other versions
JP4799504B2 (en
JP2008067364A5 (en
Inventor
Shuichi Hosokawa
秀一 細川
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2007201102A priority Critical patent/JP4799504B2/en
Publication of JP2008067364A publication Critical patent/JP2008067364A/en
Publication of JP2008067364A5 publication Critical patent/JP2008067364A5/ja
Application granted granted Critical
Publication of JP4799504B2 publication Critical patent/JP4799504B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To avoid a fatal error in the decoding process even when the size of a reference picture buffer is less than the necessary capacity. <P>SOLUTION: An access unit to be decoded is selected from data stored in a coded picture buffer (CPB) 56. When the access unit is an IDR (Instantaneous Decoder Refresh) picture, it is checked whether a decoded picture buffer DPB 60 has a free area enough to store the access unit. When the DPB 60 has a sufficient free area, a decoder 58 stores the decoding result in the DPB 60, and selects the next access unit from the CPB 56. When the DPB 60 does not have a sufficient free area and the earliest stored picture has already been displayed, the buffer area of the displayed picture is deallocated. When the earliest stored picture has not been displayed, a warning is displayed to the user. All memory areas in the DPB 60 except for the area of a currently displayed picture are deallocated to wait for an IDR picture. <P>COPYRIGHT: (C)2008,JPO&INPIT

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)。
特開2005−260588号公報
In order to solve such a problem, a configuration has been proposed in which the number of images to be stored in the reference picture memory is reduced by controlling the reference relationship (for example, Patent Document 1).
JP-A-2005-260588

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 imaging apparatus 10 is, for example, H.264. H.264 (AVC) digital camera or digital video camera. In FIG. 1, a solid line indicates the flow of image data or audio data, and a broken line indicates a control signal.

撮像装置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 imaging device 10 includes a photographic lens 12, an imaging element 14, a signal processing unit 16, a buffer 18, an H.P. H.264 includes a video encoding / decoding unit 20 and a flash memory 22 for encoding / decoding video data according to H.264. Further, a disk control unit 24 for writing and reading data on a recording medium 26 such as a DVD disk (hereinafter referred to as DVD), a display unit 28, and a multiplexer (MUX) / demultiplexer (DEMUX) 30 are also provided. Furthermore, the audio | voice encoding / decoding unit 36 which encodes / decodes audio | voice data according to the microphone 32, the speaker 34, and AC3, the control unit 38, the operation unit 40, and the bus | bath 42 are also provided.

撮影レンズ12は被写体からの光学像を撮像素子14の撮像面に結像する光学素子であり、絞り機構及びシャッタ機構を具備する。また、撮像装置10は、撮影レンズの焦点を被写体に自動調節するオートフォーカス機構を具備する。   The taking lens 12 is an optical element that forms an optical image from a subject on the image pickup surface of the image pickup element 14, and includes an aperture mechanism and a shutter mechanism. The imaging apparatus 10 also includes an autofocus mechanism that automatically adjusts the focus of the photographic lens to the subject.

撮像素子14は撮影レンズ12からの光学像を電気信号に変換する光学素子である。撮像素子14は、例えば、CCD(Charge Coupled Devices)型撮像素子又はCMOS(Complementary Metal Oxide Semiconductor)型撮像素子からなる。信号処理ユニット16は、撮像素子14からのアナログ画像信号をデジタル信号に変換し、カメラで周知の信号処理(例えば、ガンマ補正、色バランス調整、輝度/色分離)等を施し、所定映像形式の映像データを出力する。   The imaging element 14 is an optical element that converts an optical image from the photographing lens 12 into an electrical signal. The image sensor 14 is composed of, for example, a CCD (Charge Coupled Devices) type image sensor or a CMOS (Complementary Metal Oxide Semiconductor) type image sensor. The signal processing unit 16 converts an analog image signal from the image sensor 14 into a digital signal, performs known signal processing (for example, gamma correction, color balance adjustment, luminance / color separation), etc., in a predetermined video format. Output video data.

バッファ18は、バス42に接続するデバイス間で入出力されるデータを一時記憶する。バッファ18の具体的機能は、後述する。   The buffer 18 temporarily stores data input / output between devices connected to the bus 42. Specific functions of the buffer 18 will be described later.

映像符号化復号化ユニット20は、H.264等の映像圧縮方式でデジタル映像信号を圧縮符号化して、圧縮映像データを生成する。また、映像符号化復号化ユニット20は、ディスク制御ユニット24からの圧縮映像データを伸長する。なお、H.264は、MPEG−4 Part 10:AVC(Advanced Video Coding)とも称される。   The video encoding / decoding unit 20 is connected to the H.264 standard. The digital video signal is compressed and encoded by a video compression method such as H.264 to generate compressed video data. Further, the video encoding / decoding unit 20 expands the compressed video data from the disk control unit 24. H. H.264 is also referred to as MPEG-4 Part 10: AVC (Advanced Video Coding).

フラッシュメモリ22は不揮発性の記録媒体であり、撮像装置10の動作に関わるプログラムが格納されている。   The flash memory 22 is a non-volatile recording medium, and stores a program related to the operation of the imaging device 10.

ディスク制御ユニット24は、制御ユニット38の指示に従い、記録媒体26に圧縮映像データ、圧縮音声データ及びファイルの管理情報等を書込み、記録媒体26から圧縮映像データ、圧縮音声データ及びファイル管理データ等を読み出す。記録媒体26は、例えばDVD−R等、書き込み可能な光ディスク、磁気ディスク又は半導体メモリ(メモリーカード)等からなる。   The disk control unit 24 writes compressed video data, compressed audio data, file management information, etc. to the recording medium 26 in accordance with instructions from the control unit 38, and stores compressed video data, compressed audio data, file management data, etc. from the recording medium 26. read out. The recording medium 26 includes, for example, a writable optical disk, a magnetic disk, a semiconductor memory (memory card), or the like such as a DVD-R.

表示ユニット28は電子ビューファインダ又はLCD(液晶パネル)等で構成される。撮像モードでは、信号処理ユニット16からの映像データに係る画像を表示し、再生モードでは、ディスク制御ユニット24により記録媒体26から再生された圧縮映像データに係る画像を表示する。   The display unit 28 includes an electronic viewfinder, an LCD (liquid crystal panel), or the like. In the imaging mode, an image related to the video data from the signal processing unit 16 is displayed, and in the reproduction mode, an image related to the compressed video data reproduced from the recording medium 26 by the disk control unit 24 is displayed.

マルチプレクサ/デマルチプレクサ30は、映像符号化復号化ユニット20による圧縮映像データと、音声符号化復号化ユニット36による圧縮音声データを多重化し、多重化された圧縮映像データ及び圧縮音声データを分離する。また、マルチプレクサ/デマルチプレクサ30は、圧縮映像データ又は圧縮音声データのソースパケットに4バイトのヘッダを加える。このヘッダ情報を用いて圧縮映像データと圧縮映像データが管理される。   The multiplexer / demultiplexer 30 multiplexes the compressed video data by the video encoding / decoding unit 20 and the compressed audio data by the audio encoding / decoding unit 36, and separates the multiplexed compressed video data and compressed audio data. Further, the multiplexer / demultiplexer 30 adds a 4-byte header to the source packet of compressed video data or compressed audio data. Compressed video data and compressed video data are managed using this header information.

マイク32はAGC(Automatic Gain Control)とA/D変換器を具備し、撮像装置10の外部音声を入力して増幅し、デジタル音声信号を生成する。スピーカ34はアンプを具備し、デジタル音声信号を撮像装置10の外部に音として出力する。   The microphone 32 includes an AGC (Automatic Gain Control) and an A / D converter, and inputs and amplifies an external sound of the imaging apparatus 10 to generate a digital sound signal. The speaker 34 includes an amplifier and outputs a digital audio signal as sound to the outside of the imaging device 10.

音声符号化復号化ユニット36は、AC(Audio Code number)3の音声圧縮方式でマイク32からのデジタル音声信号を圧縮符号化して圧縮音声データを生成する。また、音声符号化復号化ユニット36は、ディスク制御ユニット24からの圧縮音声データを伸長して、スピーカ34に印加する。   The audio encoding / decoding unit 36 compresses and encodes the digital audio signal from the microphone 32 using an AC (Audio Code number) 3 audio compression method to generate compressed audio data. The audio encoding / decoding unit 36 decompresses the compressed audio data from the disk control unit 24 and applies the decompressed audio data to the speaker 34.

制御ユニット38はCPU(Central Processing Unit)又はMPU(Micro Processing Unit)を具備し、撮像装置10の全体を制御する。検出ユニット38aは、バッファ18の全体容量値を検出する。また、検出ユニット38aは、後述するCPB(Coded Picture Buffer)又はDPB(Decoded Picture Buffer)にイネーブル信号を送る。バス42は、上述のユニット間で各種データを転送するのに使用される。   The control unit 38 includes a CPU (Central Processing Unit) or an MPU (Micro Processing Unit), and controls the entire imaging apparatus 10. The detection unit 38 a detects the entire capacity value of the buffer 18. Further, the detection unit 38a sends an enable signal to a CPB (Coded Picture Buffer) or a DPB (Decoded Picture Buffer) described later. The bus 42 is used to transfer various data between the above-described units.

操作ユニット40は、動画撮影スイッチ、レリーズスイッチ、再生スイッチ及び停止スイッチを具備する。使用者は、操作ユニット40を使って、動画像の撮影、静止画像の撮影、画像データ又は音声データの再生を制御ユニット38に指示する。また、操作ユニット40は、モードダイヤル、メニューキー、選択キー及び決定キー等を具備し、これにより、使用者は、撮像モード及び再生モード等の動作モードの切替え、設定画面の表示、画面上での各種選択、画面上での各種決定を制御ユニット38に指示する。   The operation unit 40 includes a moving image shooting switch, a release switch, a playback switch, and a stop switch. The user uses the operation unit 40 to instruct the control unit 38 to capture moving images, still images, and reproduce image data or audio data. Further, the operation unit 40 includes a mode dial, a menu key, a selection key, a determination key, and the like, so that the user can switch operation modes such as an imaging mode and a playback mode, display a setting screen, and display on the screen. The control unit 38 is instructed to make various selections and various decisions on the screen.

撮像装置10の制御ユニット38は、ユーザにより指定された動作モードに従い、各部を制御する。その結果、撮像モードでは、撮像素子14による撮影画像が表示ユニット28に表示される。撮像画像等を記録するための記録モードでは、映像のアスペクト比・圧縮符号化形式・解像度、及び音声のチャネル数等に基づき、映像データ及び音声データが圧縮符号化され、所定形式で多重化され、所定のデジタル動画フォーマットで記録媒体26に記録される。再生モードでは、記録媒体26から多重化された圧縮映像データ及び圧縮音声データが読み出され、再生の管理情報(index.bdmv,MovieObject,PlayList等)及びユーザ指示に基づいて、順次復号化され、再生出力される。   The control unit 38 of the imaging apparatus 10 controls each unit according to the operation mode specified by the user. As a result, in the imaging mode, an image captured by the imaging element 14 is displayed on the display unit 28. In the recording mode for recording captured images, video data and audio data are compression encoded based on the video aspect ratio, compression encoding format / resolution, and the number of audio channels, etc., and multiplexed in a predetermined format. The data is recorded on the recording medium 26 in a predetermined digital moving image format. In the playback mode, the compressed video data and compressed audio data multiplexed from the recording medium 26 are read out and sequentially decoded based on the playback management information (index.bdmv, MovieObject, PlayList, etc.) and user instructions, Playback output.

図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 buffer 18 will be described. FIG. 2 is a schematic diagram showing processing procedures of the buffer 18 and the video encoding / decoding unit 20 during reproduction. FIG. 3 shows packet formats of the compressed video data of the video encoding / decoding unit 20 and the compressed audio data of the audio encoding / decoding unit 36. The source packet source_packet () includes a 4-byte header TP_Extra_header () and a 188-byte transport packet Transport_packet (). As shown in FIG. 4, the header TP_Extra_header () includes a 2-bit copy permission indicator copy_permission_indicator and a 30-bit arrival time stamp arrival_time_stamp. The copy permission indicator copy_permission_indicator stores information related to content protection. The arrival time stamp arrival_time_stamp stores the time when the transport packet arrives at the transport buffer 54 with the accuracy of 27 MHz. A detailed description of the transport packet Transport_packet () is described in ISO / IEC13818-1, and is omitted here.

撮像装置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 imaging device 10 reads the compressed video data and the compressed audio data from the recording medium 26 and stores them in a read buffer (RB) 50. The packet separation unit 52 deletes the header TP_Extra_header () and writes the source packet that has reached the arrival time stamp (arrival_time_stamp) among the source packets stored in the read buffer 50 in the TB 54. The data stored in the transport buffer (TB) 54 is a constant rate or H.264. In accordance with the H.264 / AVC virtual decoder model, it is decomposed into elementary streams. Then, it is stored in a coded picture buffer (CPB) 56. The coded picture buffer (CPB) 56 corresponds to a first picture buffer recited in the claims.

映像符号化復号化ユニット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 decoding unit 58 of the video encoding / decoding unit 20 decodes each access unit of the elementary stream stored in the CPB 56 that stores the compressed image data. Specifically, decoding is performed based on a buffer period SEI (Buffering Period SEI) and a picture timing SEI (Picture Timing SEI). Then, the restored video data is stored in a decoded picture buffer (DPB) 60. The decoded picture buffer (DPB) 60 corresponds to a second picture buffer described in the claims. The buffer period SEI and the picture period SEI are additional information included in the elementary stream. The buffer period SEI indicates a delay time until the access unit is decoded, and the picture timing SEI indicates a decoding time and a display time for each access unit. The details of the buffer period SEI and the picture timing SEI are described in ITU-T Rec. H. Since this is described in H.264 etc., further explanation is omitted.

DPB60に格納された復号化後の映像データは、表示に用いられるとともに、フレーム間予測を用いて符号化されたピクチャの、復号時の参照ピクチャとしても用いられる。   The decoded video data stored in the DPB 60 is used for display and is also used as a reference picture at the time of decoding of a picture encoded using inter-frame prediction.

DPB60に格納される参照ピクチャの管理には、2種類の方法がある。移動枠メモリ管理方式は、DPBに新たに格納される参照ピクチャにピクチャを格納する十分なメモリがない場合に、参照ピクチャのうち、最も早く格納されたピクチャのバッファ領域を解放する方法である。一方、適応メモリ管理方式は、参照ピクチャとその動作を具体的に制御する方法である。参照ピクチャには、ストリーム中に長期間にわたって参照される長期参照ピクチャと、短期のみ参照される短期参照ピクチャとがあり、これらの参照ピクチャの発生に応じて、移動枠メモリ管理方式と適応メモリ管理方式が切り替えて使用される。   There are two types of methods for managing the reference pictures stored in the DPB 60. The moving frame memory management method is a method of releasing the buffer area of the earliest stored picture among the reference pictures when there is not enough memory to store the picture in the reference picture newly stored in the DPB. On the other hand, the adaptive memory management method is a method for specifically controlling the reference picture and its operation. The reference pictures include a long-term reference picture that is referred to in the stream for a long period of time and a short-term reference picture that is referred to only for a short period of time. Depending on the occurrence of these reference pictures, the moving frame memory management method and adaptive memory management The method is switched and used.

図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 DPB 60 is insufficient. For example, there is a case where a recording medium 26 on which video and audio are recorded by another recording apparatus is loaded, and video and audio are reproduced from the recording medium 26.

復号化部58は、CPB56の記憶データから復号化対象のアクセスユニットを選択し(S1)、そのアクセスユニットがIDR(Instantaneous Decoder Refresh)ピクチャであるか否かを判別する(S2)。IDRピクチャでなければ(S2でNO)、復号処理を開始できないので、当該アクセスユニットを放棄してステップS1に戻る。   The decoding unit 58 selects an access unit to be decoded from the stored data of the CPB 56 (S1), and determines whether or not the access unit is an IDR (Instantaneous Decoder Refresh) picture (S2). If it is not an IDR picture (NO in S2), the decoding process cannot be started, so the access unit is abandoned and the process returns to step S1.

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 decoding unit 58 stores the decoding result in the DPB 60 (S4), selects the next decoding target access unit from the CPB 56 (S5), Return to step S3.

一方、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, that is, if the free space is less than the predetermined value (NO in S3), it is checked whether or not the picture stored earliest has been displayed on the display unit 28 (S6). If already displayed (YES in S6), the buffer area of the displayed picture is released (S7), and the process proceeds to step S4. If not displayed (NO in S6), a warning message is displayed to the user by the display unit 28 (S8), the entire memory area on the DPB 60 is released except for the picture area currently being displayed (S9), and step S1. The process returns to the IDR picture waiting state. In this IDR picture waiting state, the picture other than the picture being displayed is released, and the picture of the only picture remaining in the DPB 60 is repeatedly displayed.

このように、本実施例では、参照ピクチャを格納する十分なバッファ領域を復号化ピクチャバッファ(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 DPB 60 may be released after being displayed sequentially, or the display of the reproduced image is abandoned and, for example, a blue background is displayed on the display unit 28, and the entire memory area of the DPB 60 is displayed at once. You may release.

図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 DPB 60. (S56). If there is a releasable picture (YES in S56), the picture is deleted from the DPB 60, the buffer area is released (S57), and the process proceeds to step S54. On the other hand, if there is no releasable picture (NO in S56), a warning message is displayed to the user by the display unit 28 (S58), and the entire memory area on the DPB 60 is released except for the picture area currently being displayed. (S59), the process returns to step S51. Then, an IDR picture wait state is entered.

図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 DPB 60 may be released after being displayed sequentially, or the display of the reproduced image is abandoned and, for example, a blue background is displayed on the display unit 28, and the entire memory area of the DPB 60 is released at once. May be.

(実施例2)
本発明の実施例2の動作を説明する。実施例1では、IDRピクチャによる復号処理の再開まで復号化ピクチャバッファ(DPB)上のピクチャの表示を繰り返したが、実施例2では、図7に示すように、IDRピクチャによる復号化の再開前にIピクチャによって随時表示画像を更新する。実施例2は、制御ユニット38及び復号化部58の動作のみが異なり、その他の構成要素の作用は、実施例1と同じである。また、実施例2における復号化部58は、通常的な動作であるI,P及びBピクチャを順次復号化するモード(全復号処理モード)に加え、選択的にピクチャ内符号化画像データ(Iピクチャ)のみを復号化するモード(選択復号処理モード)を実行可能な構成である。
(Example 2)
The operation of Embodiment 2 of the present invention will be described. In the first embodiment, the display of the picture on the decoded picture buffer (DPB) is repeated until the decoding process with the IDR picture is resumed. However, in the second embodiment, as shown in FIG. 7, before the decoding with the IDR picture is resumed. The display image is updated at any time by the I picture. In the second embodiment, only the operations of the control unit 38 and the decoding unit 58 are different, and the operation of the other components is the same as that of the first embodiment. In addition, the decoding unit 58 according to the second embodiment selectively encodes intra-picture encoded image data (I) in addition to a mode (all decoding processing mode) for sequentially decoding I, P, and B pictures, which is a normal operation. This is a configuration capable of executing a mode (selective decoding processing mode) for decoding only (picture).

図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 display unit 28 at a predetermined timing, for example, a timing defined by the picture timing SEI, and the display images are sequentially switched. On the other hand, if it is not an I picture (NO in S212), the process returns to step S210, and the next access unit to be decoded is selected (S210).

すなわち、ステップS210〜S213において、復号化部58は制御ユニット38の指示のもと、次のIDRピクチャが検出されるまで、Iピクチャのみを検出して復号化する選択復号処理モードを実行する。なお、IDRピクチャを検出することにより、復号化部58は、選択復号処理モードから通常の全復号処理モードへと動作が切り替わる。全復号処理モードでは、ピクチャ内符号化による圧縮画像データ(Iピクチャ)と、ピクチャ間予測符号化による圧縮画像データ(Pピクチャ、Bピクチャ)の両方が復号される。   That is, in steps S210 to S213, the decoding unit 58 executes the selective decoding processing mode in which only the I picture is detected and decoded under the instruction of the control unit 38 until the next IDR picture is detected. Note that, by detecting the IDR picture, the decoding unit 58 switches the operation from the selective decoding processing mode to the normal all decoding processing mode. In the all decoding processing mode, both compressed image data (I picture) by intra-picture encoding and compressed image data (P picture, B picture) by inter-picture predictive encoding are decoded.

このようにすることで、参照ピクチャを格納する十分なバッファ領域を復号化ピクチャバッファ(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 DPB 60, the buffer area is released (S257), and the process proceeds to step S254. On the other hand, if there is no releasable picture (NO in S256), the same processing as in FIG. 7 (steps S258 to S263) is executed.

(実施例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 recording medium 26 together with the compressed data at the time of the encoding process, and this information is referred to at the time of decoding. Can be prevented.

図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 DPB 60 is initialized to 1 (S302).

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 may be released (S304). In the case of encoding in which an arbitrary picture held in the DPB 60 may be released after decoding the picture (YES in S304), the necessary number of pictures is decremented by 1 (S305), and the process returns to step S301. On the other hand, after decoding the picture, if the encoding is not such that any picture held in the DPB 60 may be released (NO in S304), the process proceeds to step S301.

このような処理を繰り返すことで、各ピクチャの復号処理時に、復号化ピクチャバッファ(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 DPB 60 in the variable DPB_PIC_NUM at the time of decoding is stored. The message SEI_massage () and user data user_data_unregisterd are stored in ITU-T Rec. H. The detailed description thereof is omitted.

この情報の付加はアクセスユニット単位でもよいし、あるいは、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 DPB 60 generated from the IDR picture to the next IDR picture may be stored in the user data user_data_unregisterd of the IDR picture.

図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 DPB 60 necessary for decoding. Details regarding other areas are described in Blu-ray Disc Read-Only Format (Blu-ray is a trademark).

図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 during the decoding process of each picture calculated in FIG. The PTS stores the display timing of the access unit for which DPB_Info is valid with an accuracy of 90 kHz.

このようにして、復号化時に復号化ピクチャバッファ(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 DPB 60 in the encoding process of the stream file managed by the management file is stored. Stores the display start time of stream data.

また、DPB60の容量をピクチャ枚数で説明しているが、バイト単位等のサイズで記録してもよい。バイト単位で記録する場合は、図9のステップS302、S303及びS305で、枚数ではなくピクチャのデータ量で演算を行う。   Further, although the capacity of the DPB 60 has been described in terms of the number of pictures, it may be recorded in a size such as a byte unit. In the case of recording in units of bytes, in steps S302, S303, and S305 in FIG.

(実施例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 DPB 60 in the stream file managed by the management file is recorded in the DPB_Info. FIG. 13 is a flowchart for determining the sizes of the decoded picture buffer (DPB) 60 and the shock proof buffer (read buffer 50) in the decoding process.

先ず、復号に必要なバッファサイズを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 DPB 60 necessary for reproduction of all stream data is acquired (S402 to 404). It is calculated how much the size needs to be increased with respect to the system default value (initial value) of the DPB buffer (S405). The necessary increase is added to the buffer size of the DPB 60 (S406). The DPB buffer increment calculated in step S405 is subtracted from the buffer size of the shock proof buffer (read buffer 50) (S407).

このようなバッファサイズの制御により、振動など外乱への耐久性と、ストリームの再生を両立する最適なメモリマップを得ることができる。   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 DPB 60 in the stream file managed by the management file is recorded in the DPB_Info. However, the present invention is not limited to this.

(実施例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 DPB 60 between the IDR picture and the next IDR picture is recorded in each DPB_Info.

図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 DPB 60 required for decoding from the IDR picture to the next IDR picture is acquired according to the PTS from the management information, and the buffer size of the DPB 60 is greater than or equal to the required amount Is determined (S503). If the buffer capacity of the DPB 60 is insufficient (YES in S503), the IDR picture is decoded and stored in the DPB 60 (S504), and a program in the system issues a warning to the user at the display timing of the IDR picture. A reservation is made (S505). Then, the process returns to step S501.

一方、DPB60のバッファ容量が必要量以上であれば(S503でNO)、IDRピクチャを検出するまで、順次、アクセスユニットを復号処理してDPB60に格納する(S506〜S508)。アクセスユニットがIDRピクチャになると(S508でYES)、ステップS503に戻る。   On the other hand, if the buffer capacity of the DPB 60 is greater than the required amount (NO in S503), the access units are sequentially decoded and stored in the DPB 60 until an IDR picture is detected (S506 to S508). If the access unit becomes an IDR picture (YES in S508), the process returns to step S503.

ステップ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 60 is missing is the same as that in the first embodiment, and thus the description is omitted.

このように、本実施例では、復号時に、復号化ピクチャバッファ(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.

本発明の一実施例の概略構成ブロック図である。It is a schematic block diagram of one Example of this invention. 本実施例の復号化時のバッファ構成を示す概略構成図である。It is a schematic block diagram which shows the buffer structure at the time of the decoding of a present Example. 本実施例のソースパケットの構造図である。It is a structural diagram of the source packet of a present Example. 本実施例のヘッダの構造図である。It is a structural diagram of the header of the present embodiment. 本実施例の復号動作を示すフローチャートである。It is a flowchart which shows the decoding operation | movement of a present Example. 本実施例の別のバッファ管理方法での復号動作を示すフローチャートである。It is a flowchart which shows the decoding operation | movement by another buffer management method of a present Example. 実施例2の復号動作を示すフローチャートである。10 is a flowchart illustrating a decoding operation according to the second embodiment. 実施例2の別のバッファ管理方法での復号動作を示すフローチャートである。12 is a flowchart illustrating a decoding operation in another buffer management method according to the second embodiment. DPBの必要バッファ容量を取得するフローチャートである。It is a flowchart which acquires the required buffer capacity of DPB. DPBの必要バッファ容量を格納するユーザデータの構造例である。It is an example of the structure of the user data which stores the required buffer capacity of DPB. 管理ファイルの構造例である。It is an example of the structure of a management file. DPB情報の構造例である。It is a structural example of DPB information. DPB及びショックプルーフのバッファサイズを決定するフローチャートである。It is a flowchart which determines the buffer size of DPB and shockproof. 実施例5の復号動作を示すフローチャートである。10 is a flowchart illustrating a decoding operation according to the fifth embodiment. 実施例6の復号動作を示すフローチャートである。18 is a flowchart illustrating a decoding operation according to the sixth embodiment.

符号の説明Explanation of symbols

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 SYMBOLS 10 Image pick-up device 12 Shooting lens 14 Image pick-up element 16 Signal processing unit 18 Buffer 20 Video coding / decoding unit 22 Flash memory 24 Disk control unit 26 Recording medium 28 Display unit 30 Multiplexer / demultiplexer 32 Microphone 34 Speaker 36 Audio coding / decoding Unit 38 Control unit 38a Detection unit 40 Operation unit 42 Bus 50 Read buffer (RB)
52 Packet Separation Unit 54 Transport Buffer (TB)
56 Coded picture buffer (CPB)
58 Decoding unit 60 Decoded picture buffer (DPB)

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:
前記制御手段は、前記空き容量が所定値未満のときに、前記第2のピクチャバッファに記憶される所定の画像データの読み出しを繰り返すことを特徴とする請求項1に記載の画像復号化装置。   2. The image decoding apparatus according to claim 1, wherein the control unit repeats reading predetermined image data stored in the second picture buffer when the free space is less than a predetermined value. 3. 前記制御手段は、前記第1のピクチャバッファに記憶されたIDR(Instantaneous Decoder Refresh)ピクチャを検出する手段を具備し、前記IDRピクチャを検出すると、前記復号化手段の復号化を再開することを特徴とする請求項1又は2に記載の画像復号化装置。   The control means includes means for detecting an IDR (Instantaneous Decoder Refresh) picture stored in the first picture buffer, and when the IDR picture is detected, the control means restarts decoding of the decoding means. The image decoding apparatus according to claim 1 or 2. 前記復号化手段による復号化の中断を示すメッセージを発行する警告手段を更に備えることを特徴とする請求項1乃至3のいずれか1項に記載の画像復号化装置。   The image decoding apparatus according to claim 1, further comprising a warning unit that issues a message indicating interruption of decoding by the decoding unit. ピクチャ間予測符号化及びピクチャ内符号化を用いて圧縮された圧縮画像データを復号化する画像復号化装置であって、
前記圧縮画像データを記憶する第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のピクチャバッファに画像データが記憶されない場合に、前記第2のピクチャバッファの画像データを所定の期間、繰り返し読み出すことを特徴とする請求項5に記載の画像復号化装置。   The control means repeatedly reads out the image data of the second picture buffer for a predetermined period when no image data is stored in the second picture buffer for a predetermined period in the selective decoding processing mode. The image decoding apparatus according to claim 5. 前記制御手段は、前記第1のピクチャバッファに記憶されたIDR(Instantaneous Decoder Refresh)ピクチャを検出すると、前記復号化手段に前記選択復号処理モードから前記全復号処理モードへの切り替えを指示することを特徴とする請求項5又は6に記載の画像復号化装置。   When the control means detects an IDR (Instantaneous Decoder Refresh) picture stored in the first picture buffer, the control means instructs the decoding means to switch from the selective decoding processing mode to the full decoding processing mode. The image decoding device according to claim 5, wherein the image decoding device is characterized in that 前記復号化手段の前記選択復号処理モードへの切り替えを示すメッセージを発行する警告手段を更に備えることを特徴とする請求項5乃至7のいずれか1項に記載の画像復号化装置。   8. The image decoding apparatus according to claim 5, further comprising warning means for issuing a message indicating switching of the decoding means to the selective decoding processing mode. ピクチャ間予測符号化を用いて圧縮された圧縮画像データを復号化する画像復号化装置であり、且つ前記圧縮画像データを記憶する第1のピクチャバッファと、復号化された画像データを記憶する第2のピクチャバッファとを備える画像復号化装置を制御する方法であって、
前記第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のピクチャバッファに記憶される所定の画像データの読み出しを繰り返すことを特徴とする請求項9に記載の画像復号化装置の制御方法。   10. The image decoding apparatus according to claim 9, wherein in the control step, when the free space is less than a predetermined value, reading of predetermined image data stored in the second picture buffer is repeated. Control method. 前記制御工程は、前記第1のピクチャバッファに記憶されたIDR(Instantaneous Decoder Refresh)ピクチャを検出する工程を備え、前記IDRピクチャを検出すると、前記復号化工程の復号化を再開することを特徴とする請求項9又は10に記載の画像復号化装置の制御方法。   The control step includes a step of detecting an IDR (Instantaneous Decoder Refresh) picture stored in the first picture buffer, and when the IDR picture is detected, the decoding of the decoding step is resumed. The control method of the image decoding apparatus of Claim 9 or 10. 前記復号化工程による復号化の中断を示すメッセージを発行する警告工程を更に備えることを特徴とする請求項9乃至11のいずれか1項に記載の画像復号化装置の制御方法。   The method of controlling an image decoding apparatus according to claim 9, further comprising a warning step of issuing a message indicating interruption of decoding by the decoding step. ピクチャ間予測符号化及びピクチャ内符号化を用いて圧縮された圧縮画像データを復号化する画像復号化装置であり、且つ前記圧縮画像データを記憶する第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, 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:
前記制御工程では、前記選択復号処理モードで所定の期間、前記第2のピクチャバッファに画像データが記憶されない場合に、前記第2のピクチャバッファの画像データを所定の期間、繰り返し読み出すことを特徴とする請求項13に記載の画像復号化装置の制御方法。   In the control step, when no image data is stored in the second picture buffer for a predetermined period in the selective decoding processing mode, the image data in the second picture buffer is repeatedly read out for a predetermined period. The method of controlling an image decoding device according to claim 13. 前記制御工程では、前記第1のピクチャバッファに記憶されたIDR(Instantaneous Decoder Refresh)ピクチャを検出すると、前記復号化工程に前記選択復号処理モードから前記全復号処理モードへの切り替えを指示することを特徴とする請求項13又は14に記載の画像復号化装置の制御方法。   In the control step, when an IDR (Instantaneous Decoder Refresh) picture stored in the first picture buffer is detected, the decoding step is instructed to switch from the selective decoding processing mode to the full decoding processing mode. The method for controlling an image decoding apparatus according to claim 13 or 14, characterized in that: 前記復号化工程の前記選択復号処理モードへの切り替えを示すメッセージを発行する警告工程を更に備えることを特徴とする請求項13乃至15のいずれか1項に記載の画像復号化装置の制御方法。   16. The method of controlling an image decoding device according to claim 13, further comprising a warning step of issuing a message indicating switching of the decoding step to the selective decoding processing mode.
JP2007201102A 2006-08-10 2007-08-01 Image decoding apparatus and control method thereof Expired - Fee Related JP4799504B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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