[go: up one dir, main page]

JP2004289808A - Image encoding method and image decoding method - Google Patents

Image encoding method and image decoding method Download PDF

Info

Publication number
JP2004289808A
JP2004289808A JP2004039528A JP2004039528A JP2004289808A JP 2004289808 A JP2004289808 A JP 2004289808A JP 2004039528 A JP2004039528 A JP 2004039528A JP 2004039528 A JP2004039528 A JP 2004039528A JP 2004289808 A JP2004289808 A JP 2004289808A
Authority
JP
Japan
Prior art keywords
picture
image
memory management
management command
memory
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
JP2004039528A
Other languages
Japanese (ja)
Other versions
JP4544879B2 (en
Inventor
Shinya Sumino
眞也 角野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2004039528A priority Critical patent/JP4544879B2/en
Publication of JP2004289808A publication Critical patent/JP2004289808A/en
Application granted granted Critical
Publication of JP4544879B2 publication Critical patent/JP4544879B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Television Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image coding method and an image decoding method which prevent a malfunction caused by a retransmission of a command. <P>SOLUTION: The image coding method for preventing a malfunction includes an adding step (step S203) of coding a memory management command for a first picture of a predetermined picture number and adding the command to a second picture different from the first picture (step S203) and a readding step of recoding the memory management command and readding the command to an addition target portion other than the second picture of an image coding stream VSt (steps S205 to S208). In the readding step, when the first picture is not disposed immediately before among pictures of predetermined picture numbers included in the image coding stream VSt, the readdition of the memory management command is inhibited. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、動画像信号を各ピクチャごとに符号化する画像符号化方法、及びその符号化された信号を復号化する画像復号化方法に関する。   The present invention relates to an image encoding method for encoding a moving image signal for each picture, and an image decoding method for decoding the encoded signal.

近年、音声,画像,その他の画素値を統合的に扱うマルチメディア時代を迎え、従来からの情報メディア,つまり新聞,雑誌,テレビ,ラジオ,電話等の情報を人に伝達する手段がマルチメディアの対象として取り上げられるようになってきた。一般に、マルチメディアとは、文字だけでなく、図形、音声、特に画像等を同時に関連づけて表すことをいうが、上記従来の情報メディアをマルチメディアの対象とするには、その情報をディジタル形式にして表すことが必須条件となる。   In recent years, the multimedia era, in which voices, images, and other pixel values are integrated, has been approached, and the traditional information media, that is, means for transmitting information such as newspapers, magazines, televisions, radios, and telephones, to humans, has been developed. It has been taken up as an object. Generally, multimedia means not only characters, but also figures, sounds, and especially images, etc., that are simultaneously associated with each other. Is an essential condition.

ところが、上記各情報メディアの持つ情報量をディジタル情報量として見積もってみると、文字の場合1文字当たりの情報量は1〜2バイトであるのに対し、音声の場合1秒当たり64kbits(電話品質)、さらに動画については1秒当たり100Mbits(現行テレビ受信品質)以上の情報量が必要となり、上記情報メディアでその膨大な情報をディジタル形式でそのまま扱うことは現実的では無い。例えば、テレビ電話は、64kbps〜1.5Mbpsの伝送速度を持つサービス総合ディジタル網(ISDN:Integrated Services Digital Network)によってすでに実用化されているが、テレビ・カメラの映像をそのままISDNで送ることは不可能である。   However, when the amount of information of each of the above information media is estimated as a digital information amount, the amount of information per character is 1 to 2 bytes in the case of characters, while 64 kbits per second in the case of voice (telephone quality). In addition, for a moving image, an information amount of 100 Mbits per second (current television reception quality) or more is required, and it is not realistic to handle the vast amount of information in the above-mentioned information medium in a digital form. For example, videophones have already been put into practical use by the Integrated Services Digital Network (ISDN) having a transmission rate of 64 kbps to 1.5 Mbps, but it is impossible to send video from a video camera directly through ISDN. It is possible.

そこで、必要となってくるのが情報の圧縮技術であり、例えば、テレビ電話の場合、ITU−T(国際電気通信連合 電気通信標準化部門)で国際標準化されたH.261やH.263規格の動画圧縮技術が用いられている。また、MPEG−1規格の情報圧縮技術によると、通常の音楽用CD(コンパクト・ディスク)に音声情報とともに画像情報を入れることも可能となる。   Therefore, information compression technology is required. For example, in the case of a videophone, H.264 standardized internationally by ITU-T (International Telecommunication Union Telecommunication Standardization Sector). 261 and H.E. H.263 video compression technology is used. In addition, according to the information compression technology of the MPEG-1 standard, it is possible to store image information together with audio information in a normal music CD (compact disc).

ここで、MPEG(Moving Picture Experts Group)とは、動画像信号のデジタル圧縮の国際規格であり、MPEG−1は、動画像信号を1.5Mbpsまで、つまりテレビ信号の情報を約100分の1にまで圧縮する規格である。また、MPEG−1規格を対象とする伝送速度が主として約1.5Mbpsに制限されていることから、さらなる高画質化の要求をみたすべく規格化されたMPEG−2では、動画像信号が2〜15Mbpsに圧縮される。   Here, MPEG (Moving Picture Experts Group) is an international standard for digital compression of moving image signals, and MPEG-1 converts moving image signals up to 1.5 Mbps, that is, information of television signals by about 1/100. It is a standard that compresses up to. In addition, since the transmission rate for the MPEG-1 standard is mainly limited to about 1.5 Mbps, the moving picture signal is 2 to 2 in MPEG-2, which is standardized to meet the demand for higher image quality. It is compressed to 15 Mbps.

さらに現状では、MPEG−1,MPEG−2と標準化を進めてきた作業グループ(ISO/IEC JTC1/SC29/WG11)によって、より圧縮率が高いMPEG−4が規格化された。MPEG−4では、当初、低ビットレートで効率の高い符号化が可能になるだけでなく、伝送路誤りが発生しても主観的な画質劣化を小さくできる強力な誤り耐性技術も導入されている。また、ISO/IECとITU−Tの共同で次世代画像符号化方式として、JVT(Joint Video Team)でITU H.264|AVCと呼ばれる標準化活動が進んでおり、現時点ではスタディ・オブFCD(SoFCD)と呼ばれるものが最新である(例えば、非特許文献1参照。)。   Further, at present, MPEG-4, which has a higher compression ratio, has been standardized by a working group (ISO / IEC JTC1 / SC29 / WG11) that has been standardizing MPEG-1 and MPEG-2. MPEG-4 initially introduced a powerful error resilience technique that not only enables highly efficient encoding at a low bit rate, but also reduces subjective image quality degradation even if a transmission path error occurs. . In addition, ISO / IEC and ITU-T have jointly developed ITU H.264 as a next-generation image coding system by JVT (Joint Video Team). H.264 | AVC has been advancing a standardization activity, and at present, a study called FCD (SoFCD) is the latest (for example, see Non-Patent Document 1).

H.264|AVCでは、従来の動画像符号化と異なり、複数のピクチャから任意のピクチャを前方参照ピクチャとして選択可能である。ここで、ピクチャとはフレームまたはフィールドのことを表す。
参照ピクチャなどは、メモリに保存される。
メモリは、短時間保存メモリと長時間保存メモリから構成される。短時間保存メモリは直前に復号化された複数のピクチャを記憶するものであり、いわゆるMPEG−1やMPEG−2のPピクチャ(前方予測符号化ピクチャ)およびBピクチャ(双方向予測符号化ピクチャ)といった参照ピクチャが記憶される。長時間保存メモリは短時間保存メモリよりもピクチャを長時間保存するために用いられる。
H. Unlike H.264 | AVC, unlike conventional video coding, an arbitrary picture can be selected as a forward reference picture from a plurality of pictures. Here, a picture represents a frame or a field.
Reference pictures and the like are stored in the memory.
The memory includes a short-term storage memory and a long-term storage memory. The short-term storage memory stores a plurality of pictures decoded immediately before, and is a so-called MPEG-1 or MPEG-2 P picture (forward predictive coded picture) and B picture (bidirectional predictive coded picture). Is stored. The long-term storage memory is used for storing pictures for a longer time than the short-term storage memory.

通常は、短時間保存メモリはFIFO(先入先出)メモリであり、記憶領域にピクチャが満たされた状態で、さらにピクチャを短時間保存メモリに保存する場合には、短時間保存メモリ内の最も古い時刻に保存されたピクチャが除去されて、その除去された領域に新しい画像が保存される。従って、通常は短時間保存メモリから除去される参照ピクチャを長時間にわたって参照する必要がある場合には、その参照ピクチャを予め短時間保存メモリから長時間保存メモリに移動して長時間保存メモリ内に保存しておく。これにより長時間の参照が可能となる。長時間保存メモリは、明示された領域にピクチャを保存する。これにより、同じ領域を指定して上書きしない限りその領域に保存されたピクチャを参照することができる。   Normally, the short-term storage memory is a FIFO (first-in, first-out) memory, and when a picture is filled in the storage area and a picture is further stored in the short-term storage memory, the shortest-time storage memory is most frequently used. The picture saved at the old time is removed and the new image is saved in the removed area. Therefore, when it is necessary to refer to a reference picture that is usually removed from the short-term storage memory for a long time, the reference picture is moved from the short-term storage memory to the long-term storage memory in advance and stored in the long-term storage memory. To save. This enables long-term reference. The long-term storage memory stores a picture in a specified area. As a result, the picture stored in the area can be referred to unless the same area is designated and overwritten.

更に復号化されたピクチャは表示されるまでに一時的に表示用メモリに保存される。この表示用メモリは、表示の順序で古いピクチャから順に上書きされるFIFO構成になっている。
このようなメモリを効率的に使用するためには高度なメモリ管理が必要であり、メモリを管理するための仕組みがH.264|AVCに導入されている。
Further, the decoded picture is temporarily stored in the display memory until it is displayed. This display memory has a FIFO configuration in which the oldest pictures are overwritten in the order of display.
In order to use such memory efficiently, advanced memory management is required. 264 | AVC.

上記管理に用いられるメモリ管理コマンドは、例えば以下の指令を示す。
1.参照可能なピクチャを選択する指令
2.短時間保存メモリで予測符号化の参照ピクチャとして不要になったピクチャの保存されているメモリ領域を開放する指令
3.短時間保存メモリのピクチャを長時間保存メモリに移動する指令
4.メモリ内のピクチャを全て開放してピクチャ復号化に関する情報を初期化する指令
画像符号化・復号化では、参照可能なピクチャの中からブロック単位で予測誤差が小さいピクチャを参照ピクチャとして選択するため、ブロック単位で参照ピクチャを指示する信号(参照画像指示信号)が必要である。予め参照可能なピクチャを選択することで、参照ピクチャの候補数を適切な値に絞り込み、ブロック単位で必要な参照画像指示信号のビット数を節約できる。
The memory management commands used for the management include, for example, the following commands.
1. 1. A command to select a referenceable picture 2. A command to release a memory area in which a picture that is no longer required as a reference picture for predictive encoding is stored in the short-time storage memory. 3. Command to move pictures from short-term storage memory to long-term storage memory Command to release all pictures in the memory and initialize information related to picture decoding In image coding / decoding, in order to select a picture having a small prediction error in a block unit from referenceable pictures as a reference picture, A signal (reference picture indication signal) indicating a reference picture in block units is required. By selecting a picture that can be referred to in advance, the number of reference picture candidates can be narrowed down to an appropriate value, and the number of bits of the reference image indication signal required for each block can be saved.

また、短時間保存メモリから長時間保存メモリにピクチャが移動された場合は、同じピクチャが短時間保存メモリと長時間保存メモリの両方に保存されていても無駄なだけであるから、短時間保存メモリ内のピクチャは除去される。
このような画像符号化方法および画像復号化方法では、不要なピクチャをメモリから除去するように指令するメモリ管理コマンドや、ピクチャを短時間保存メモリから長時間保存メモリに移動するように指令するメモリ管理コマンドを、画像符号化装置で符号化して出力し、画像復号化装置に伝送して復号化する。このようなメモリ管理コマンドは、符号化されたピクチャに付加されて伝送されるが、そのメモリ管理コマンドを伴うピクチャが伝送エラー等で消失した場合には、画像復号化装置側のメモリ内の画像配置が正しく復元できないため、ピクチャを復号化できなくなる。
When a picture is moved from the short-term storage memory to the long-term storage memory, it is useless to store the same picture in both the short-term storage memory and the long-term storage memory. Pictures in memory are removed.
In such an image encoding method and an image decoding method, a memory management command for instructing removal of unnecessary pictures from a memory and a memory for instructing movement of pictures from a short-term storage memory to a long-term storage memory are provided. The management command is encoded and output by the image encoding device, and transmitted to the image decoding device for decoding. Such a memory management command is transmitted by being added to the encoded picture. If the picture accompanying the memory management command is lost due to a transmission error or the like, the image in the memory of the image decoding apparatus side is deleted. Since the arrangement cannot be correctly restored, the picture cannot be decoded.

このような問題を考慮して、メモリ管理コマンド(MMCO)を再送することが考えられる。このようにメモリ管理コマンドを再送することで、メモリ管理コマンドを伴うピクチャが伝送エラーなどで消失した場合に、再送したメモリ管理コマンドにより、メモリ内の画像配置が正しく復元される。
メモリ管理コマンドを適用するピクチャ(メモリ管理コマンドの管理対象となるピクチャ)や、メモリ管理用コマンドを再送する場合にどのピクチャに対して付加されたメモリ管理用コマンドの再送であるかを示すために、各ピクチャに対してピクチャ番号を付与される。このピクチャ番号によって、管理対象のピクチャや、最初にメモリ管理コマンドが付加されたピクチャが示される。
In consideration of such a problem, retransmission of the memory management command (MMCO) can be considered. By retransmitting the memory management command in this way, when a picture accompanying the memory management command is lost due to a transmission error or the like, the retransmitted memory management command correctly restores the image arrangement in the memory.
In order to indicate the picture to which the memory management command is applied (the picture to be managed by the memory management command) or the picture to which the memory management command added when retransmitting the memory management command is to be retransmitted , A picture number is assigned to each picture. The picture number indicates a picture to be managed or a picture to which a memory management command is first added.

ピクチャ番号は、画像符号化ストリームで昇順(符号化順)に割り当てられた番号であり、表示用メモリでピクチャの表示順序を導出するためにも使用される。なお、ピクチャ数が増加するとピクチャ番号は非常に大きくなるため、ピクチャ番号は、所定数MaxFrameNumの剰余として符号化されている。
一方、画像符号化ストリームのピクチャレートなどを途中で切り換えても、それ以降の画像符号化ストリームが正しく復号化できることを保証するために、IDRピクチャが導入される。このIDRピクチャは、これを超えて前方のピクチャの参照が行われないようにするためのピクチャであって、このIDRピクチャが符号化される時点で、メモリ内のピクチャが開放されてピクチャ復号化に関する情報が初期化される。そのため、IDRピクチャの符号化、復号化の前後でメモリ内に保存されているピクチャが異なる。また、IDRピクチャでなく、初期化コマンドが用いられることもある。IDRピクチャは、ピクチャ番号を含め全てのピクチャに関する復号化情報を初期化するのに対して、初期化コマンドは、一部の情報(ピクチャ番号等)のみを初期化する。
The picture number is a number assigned in ascending order (encoding order) in the image encoding stream, and is also used to derive the display order of the pictures in the display memory. Since the picture number becomes very large as the number of pictures increases, the picture number is encoded as a remainder of a predetermined number MaxFrameNum.
On the other hand, even if the picture rate or the like of an image coded stream is switched in the middle, an IDR picture is introduced to ensure that the subsequent image coded stream can be correctly decoded. The IDR picture is a picture for preventing reference to a picture ahead of the IDR picture. When the IDR picture is coded, the picture in the memory is released and the picture is decoded. Is initialized. For this reason, the pictures stored in the memory before and after the encoding and decoding of the IDR picture are different. An initialization command may be used instead of an IDR picture. An IDR picture initializes decoding information about all pictures including a picture number, whereas an initialization command initializes only some information (such as a picture number).

また、画像符号化ストリームが編集される場合、すなわち複数の画像符号化ストリームのそれぞれの一部を抽出して結合し、新たに別の画像符号化ストリームが生成される場合には、結合部(編集点)にてピクチャ番号等の不整合が発生する。
"Study of Final Committee Draft of Joint Video Specification", Joint Video Team (JVT) of ISO/IEC and ITU-T VCEG, JVT-F100, 15 Feb., 2003
When the image encoded stream is edited, that is, when a part of each of the plurality of image encoded streams is extracted and combined and another image encoded stream is newly generated, the combining unit ( At the edit point), a mismatch such as a picture number occurs.
"Study of Final Committee Draft of Joint Video Specification", Joint Video Team (JVT) of ISO / IEC and ITU-T VCEG, JVT-F100, 15 Feb., 2003

しかしながら、上記画像符号化方法及び画像復号化方法では、再送されたメモリ管理コマンドが管理対象となるピクチャをピクチャ番号で示しても、その再送されたメモリ管理コマンドを受けた画像復号化装置側では、どのピクチャに対するメモリ管理コマンドなのかが不明となり、誤動作を誘発してしまうという問題がある。
即ち、ピクチャ番号が所定数の剰余として表現されることや、IDRピクチャや初期化コマンドによりピクチャ番号が0に初期化されることによって、異なるピクチャに同一のピクチャ番号が付与されることとなるため、ピクチャ番号による1つのピクチャの特定が困難になり、誤動作を誘発してしまうのである。
However, in the above-described image encoding method and image decoding method, even if the retransmitted memory management command indicates a picture to be managed by a picture number, the image decoding apparatus that has received the retransmitted memory management command does not However, it is unclear which picture the memory management command is for, which may cause a malfunction.
That is, the same picture number is assigned to different pictures by expressing the picture number as a predetermined remainder, or by initializing the picture number to 0 by an IDR picture or an initialization command. In addition, it becomes difficult to specify one picture by the picture number, which causes a malfunction.

例えば、表示用メモリは、各ピクチャの表示順序の情報に基づいて各ピクチャを表示順序が早いものから順に除去して、表示用に必要な新しい領域を確保する。IDRピクチャ又は初期化コマンド後のピクチャ番号が最小値0にリセットされると、表示順序を示す情報も初期化される。その結果、画像符号化装置が、IDRピクチャ又は初期化コマンドの符号化後に、IDRピクチャなどの前にあるピクチャを管理対象とするメモリ管理コマンドを再送したとしても、それを受信した画像復号化装置は、メモリ管理コマンドを適用するピクチャが存在しないため、誤動作を生じする。   For example, the display memory removes each picture in ascending order of display order based on information on the display order of each picture, and secures a new area necessary for display. When the IDR picture or the picture number after the initialization command is reset to the minimum value 0, the information indicating the display order is also initialized. As a result, even if the image encoding apparatus retransmits a memory management command for managing a picture in front of an IDR picture or the like after encoding the IDR picture or the initialization command, the image decoding apparatus that has received it Causes a malfunction because there is no picture to which the memory management command is applied.

本発明は、かかる問題に鑑みてなされたものであり、コマンドの再送に起因する誤動作の発生を防止する画像符号化方法及び画像復号化方法を提供することを目的とする。   The present invention has been made in view of such a problem, and has as its object to provide an image encoding method and an image decoding method for preventing occurrence of a malfunction due to retransmission of a command.

上記目的を達成するために、本発明の画像符号化方法は、動画像信号に含まれる各ピクチャに対して所定のピクチャ数単位で符号化順にピクチャ番号を割り当て、各ピクチャごとに符号化を行うことで画像符号化信号を生成する画像符号化方法であって、所定のピクチャ番号の第1のピクチャに対するメモリ上の管理内容を示すメモリ管理コマンドを、前記第1のピクチャと異なる第2のピクチャに付加する付加ステップと、前記メモリ管理コマンドを前記画像符号化信号中の前記第2のピクチャ以外の付加対象部位に再付加する再付加ステップとを含み、前記再付加ステップは、前記付加対象部位までの画像符号化信号に含まれる前記所定のピクチャ番号のピクチャの中で、前記第1のピクチャが符号化順で前記付加対象部位の直前にあるか否かを判別する判別サブステップと、前記判別サブステップで直前にないと判別されたときには、前記メモリ管理コマンドの再付加を禁止する禁止サブステップとを含むことを特徴とする。   In order to achieve the above object, the image encoding method of the present invention assigns a picture number to each picture included in a moving image signal in the order of encoding in units of a predetermined number of pictures, and performs encoding for each picture. An image encoding method for generating an image encoded signal by using a memory management command indicating management contents in a memory for a first picture of a predetermined picture number, the second picture being different from the first picture And a re-adding step of re-adding the memory management command to an additional target portion other than the second picture in the image coded signal, wherein the re-adding step comprises: Out of the pictures of the predetermined picture number included in the coded image signals up to, the first picture is immediately before the addition target portion in coding order. A determining sub-step of judging whether said if it is determined that no previously on that determination substep is characterized in that it comprises a prohibition substep of prohibiting the re-addition of the memory management command.

これにより、再付加されたメモリ管理コマンドの管理対象となるピクチャは常に直前のピクチャであるため、このように再付加されて再送されたメモリ管理コマンドを取得した画像復号化装置側では、そのメモリ管理コマンドにより示される所定のピクチャ番号のピクチャが複数あったとしても、直前のピクチャをそのメモリ管理コマンドの管理対象となるピクチャとして特定することができ、再送されたメモリ管理コマンドに起因する画像復号化装置側での誤動作の発生を防止することができる。   As a result, since the picture to be managed by the re-added memory management command is always the immediately preceding picture, the image decoding apparatus that has obtained the re-added and re-transmitted memory management command has the memory Even if there are a plurality of pictures having a predetermined picture number indicated by the management command, the immediately preceding picture can be specified as a picture to be managed by the memory management command, and image decoding caused by the retransmitted memory management command It is possible to prevent occurrence of a malfunction on the conversion device side.

また、前記判別サブステップでは、さらに、前記第1のピクチャが、画像符号化信号中の基準点よりも符号化順で前方にあるか否かを判別し、前記禁止サブステップでは、さらに、前記判別サブステップで前方にあると判別されたときには、前記メモリ管理コマンドの再付加を禁止する
ことを特徴としても良い。例えば、前記判別サブステップでは、前記画像符号化信号の連続性が編集によって失われた編集点を前記基準点として扱う。又は、前記判別サブステップでは、メモリを初期化するように促す情報を含めて符号化されたピクチャを前記基準点として扱う。
Further, in the determining sub-step, it is further determined whether or not the first picture is ahead of a reference point in an image coded signal in coding order. When it is determined in the determination sub-step that the memory management command is located ahead, re-addition of the memory management command may be prohibited. For example, in the determination sub-step, an edit point at which the continuity of the image coded signal is lost by editing is treated as the reference point. Alternatively, in the determination sub-step, a picture encoded including information prompting to initialize a memory is treated as the reference point.

これにより、基準点よりも前方にあるピクチャを管理対象とするメモリ管理コマンドは再付加されないため、このように再付加されて再送されたメモリ管理コマンドを取得した画像復号化装置側では、基準点よりも後のピクチャをそのメモリ管理コマンドの管理対象として扱うことができ、基準点よりも前にあって例えば既に消去されたピクチャに対してメモリ管理コマンドを適用することにより生じする誤動作の発生を防止することができる。   As a result, since the memory management command that manages the picture located ahead of the reference point is not re-added, the image decoding apparatus that has obtained the re-added and re-transmitted memory management command as described above uses the reference point. The later picture can be treated as the management target of the memory management command, and the occurrence of a malfunction caused by applying the memory management command to a picture that is before the reference point and has already been erased, for example, can be prevented. Can be prevented.

また、上記目的を達成するために、本発明の画像復号化方法は、動画像信号がピクチャ単位で符号化された画像符号化信号を、各ピクチャに対して所定のピクチャ数単位で復号化順に割り当てられたピクチャ番号を用いて復号化する画像復号化方法であって、所定のピクチャ番号のピクチャに対するメモリ上の管理内容を示すメモリ管理コマンドが前記画像符号信号中に付加されているか否かを判別する判別ステップと、前記判別ステップでメモリ管理コマンドが付加されていると判別されたときには、前記メモリ管理コマンドまでの画像符号化信号に含まれる前記所定のピクチャ番号のピクチャの中から、復号化順で前記メモリ管理コマンドの直前にあるピクチャを選択する選択ステップと、前記選択ステップで選択されたピクチャに対して、前記メモリ管理コマンドにより示される管理内容を実行する実行ステップとを含むことを特徴とする。   In order to achieve the above object, an image decoding method according to the present invention further comprises: converting an image coded signal in which a moving image signal is coded on a picture basis in a decoding order for each picture in a predetermined picture number unit. An image decoding method for decoding using an assigned picture number, comprising: determining whether a memory management command indicating management content on a memory for a picture having a predetermined picture number is added to the image code signal. A determining step of determining, and when it is determined in the determining step that the memory management command is added, decoding is performed from among the pictures having the predetermined picture number included in the image coded signal up to the memory management command. A selecting step of selecting a picture immediately before the memory management command in order, and selecting a picture selected in the selecting step. , Characterized in that it comprises an execution step of executing the management contents indicated by the memory management command.

これにより、そのメモリ管理コマンドにより示される所定のピクチャ番号のピクチャが複数あったとしても、直前のピクチャに対してそのメモリ管理コマンドが適用されるため、直前のピクチャを管理対象とするメモリ管理コマンドを画像符号化装置から再送させることによって、符号化側及び復号化側でその管理対象を一致させることができ、画像符号化装置側から再送されたメモリ管理コマンドに起因する誤動作の発生を防止することができる。   As a result, even if there are a plurality of pictures having a predetermined picture number indicated by the memory management command, the memory management command is applied to the immediately preceding picture. Is retransmitted from the image encoding device, the management targets can be matched on the encoding side and the decoding side, and the occurrence of malfunction due to the memory management command retransmitted from the image encoding device can be prevented. be able to.

尚、本発明は、このような画像符号化方法および画像復号化方法として実現することができるだけでなく、このような方法を用いた画像符号化装置および画像復号化装置として実現したり、画像符号化方法により符号化された画像符号化ストリームが記録された記録媒体として実現したり、画像符号化方法および画像復号化方法における各ステップをコンピュータに実行させるプログラムとして実現したりすることもできる。そして、そのようなプログラムは、CD−ROMなどの記録媒体やインターネットなどの伝送媒体を介して配信することができるのは言うまでもない。   It should be noted that the present invention can be realized not only as such an image encoding method and an image decoding method, but also as an image encoding apparatus and an image decoding apparatus using such a method. It can be realized as a recording medium on which an image encoded stream encoded by the encoding method is recorded, or as a program for causing a computer to execute each step in the image encoding method and the image decoding method. Needless to say, such a program can be distributed via a recording medium such as a CD-ROM or a transmission medium such as the Internet.

本発明の画像符号化方法及び画像復号化方法は、コマンドの再送に起因する誤動作の発生を防止することができるという作用効果を奏する。   The image encoding method and the image decoding method according to the present invention have an effect of being able to prevent occurrence of a malfunction due to retransmission of a command.

以下、本発明の実施の形態について、図面を用いて説明する。
(実施の形態1)
図1は、本実施の形態における画像符号化方法を実現するための画像符号化装置の構成を示すブロック図である。
画像符号化装置100は、メモリ情報制御部101と、短時間保存メモリ管理部102と、長時間保存メモリ管理部103と、非保存メモリ管理情報部104と、管理情報符号化部105と、参照画像選択部106と、保存領域指定部107と、参照領域指定部108と、画像メモリ109と、画像復号化部111と、画像符号化部110と、可変長符号化部112と、カウンタ113と、カウンタ114などから構成される。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(Embodiment 1)
FIG. 1 is a block diagram illustrating a configuration of an image encoding device for implementing the image encoding method according to the present embodiment.
The image encoding device 100 includes a memory information control unit 101, a short-term storage memory management unit 102, a long-term storage memory management unit 103, a non-storage memory management information unit 104, a management information encoding unit 105, An image selection unit 106, a storage area designation unit 107, a reference area designation unit 108, an image memory 109, an image decoding unit 111, an image encoding unit 110, a variable length encoding unit 112, a counter 113, , A counter 114 and the like.

参照画像選択部106は外部から入力される重要度指示信号Priおよびピクチャタイプ情報PTから参照ピクチャの候補を選択し、その選択結果をメモリ情報制御部101に通知する。
メモリ情報制御部101は、ピクチャタイプ情報PTによって前方および後方のいずれか一方のピクチャ、もしくは両方のピクチャが参照可能かどうかを判断する。さらに、メモリ情報制御部101は、参照領域指定部108に指令することにより、その判断結果に対応する参照ピクチャを画像メモリ109から画像符号化部110に出力させる。
The reference image selection unit 106 selects a reference picture candidate from the importance level indication signal Pri and the picture type information PT input from the outside, and notifies the memory information control unit 101 of the selection result.
The memory information control unit 101 determines whether one of the front and rear pictures, or both pictures, can be referred to based on the picture type information PT. Further, the memory information control unit 101 instructs the reference area designating unit 108 to output a reference picture corresponding to the determination result from the image memory 109 to the image encoding unit 110.

画像符号化部110は、画像メモリ109から出力される参照ピクチャを参照して入力画像信号Vinをピクチャごとに符号化する。可変長符号化部112は、画像符号化部110からの出力を更に可変長符号化して画像符号化ストリームVStを出力する。また、可変長符号化部112は、画像符号化ストリームVStが編集された場合、編集された画像符号化ストリームVStの編集点を示す情報の符号化も行う。画像符号化部110の出力は、また、画像復号化部111で復号化されて復号化画像となり、画像メモリ109に参照ピクチャとして格納される。   The image encoding unit 110 encodes the input image signal Vin for each picture with reference to the reference picture output from the image memory 109. The variable length coding unit 112 further performs variable length coding on the output from the image coding unit 110 and outputs a coded image stream VSt. Further, when the coded video stream VSt is edited, the variable length coding unit 112 also codes information indicating an editing point of the edited coded video stream VSt. The output of the image encoding unit 110 is decoded by the image decoding unit 111 to become a decoded image, and is stored in the image memory 109 as a reference picture.

このとき、画像メモリ109における復号化画像の格納可能なメモリ領域は、保存領域指定部107からの指示によって決定される。即ち、メモリ情報制御部101は、短時間保存メモリ管理部102に問い合わせて、画像メモリ109内の短時間保存メモリでピクチャの除去されたメモリ領域を特定する。保存領域指定部107は、その特定されたメモリ領域に復号化画像を記録するように、画像メモリ109に対し指示を出す。   At this time, the memory area in the image memory 109 in which the decoded image can be stored is determined by an instruction from the storage area specifying unit 107. That is, the memory information control unit 101 inquires of the short-term storage memory management unit 102 to specify a memory area in the short-term storage memory in the image memory 109 from which pictures have been removed. The storage area specifying unit 107 issues an instruction to the image memory 109 to record the decoded image in the specified memory area.

短時間保存メモリ管理部102は、短時間保存メモリ内の不要な(参照されない)ピクチャを検出して、そのピクチャを管理対象としてこれを除去する(メモリを開放する)ように指示する内容のメモリ管理コマンドをメモリ情報制御部101に通知する。また、長時間保存メモリ管理部103は、短時間保存メモリ内のピクチャを管理対象として、これを画像メモリ109内の長時間保存メモリに移動するように指示する内容のメモリ管理コマンドをメモリ情報制御部101に通知する。このようなメモリ管理コマンドは、管理情報符号化部105で符号化されて、メモリ管理情報ストリームCStとなる。また、このようなメモリ管理情報ストリームCStに含まれるメモリ管理コマンドは、画像符号化ストリームVStに付加されて画像復号化装置に送信される。   The short-term storage memory management unit 102 detects unnecessary (unreferenced) pictures in the short-term storage memory, manages the pictures, and removes them (releases the memory). The management command is notified to the memory information control unit 101. Further, the long-term storage memory management unit 103 manages a picture in the short-term storage memory, and issues a memory management command having a content for instructing the picture to be moved to the long-term storage memory in the image memory 109. Notify section 101. Such a memory management command is encoded by the management information encoding unit 105 to become a memory management information stream CSt. Further, the memory management command included in such a memory management information stream CSt is added to the coded image stream VSt and transmitted to the image decoding device.

短時間保存メモリ用のカウンタ113および長時間保存メモリ用のカウンタ114は、不要なピクチャの除去を指示するメモリ管理コマンドや、短時間保存メモリ内のピクチャを長時間保存メモリに移動するように指示するメモリ管理コマンドの符号化回数を計測する。
非保存メモリ管理情報部104は、不要なピクチャの除去を指示するメモリ管理コマンドや、短時間保存メモリ内のピクチャを長時間保存メモリに移動するように指示するメモリ管理コマンドが符号化され、画像符号化ストリームVSt中の重要度が低く復号化されにくいピクチャに付加されたかどうかを管理する。そして、非保存メモリ管理情報部104は、重要度が低いピクチャに付加されている場合は、メモリ管理コマンドを再度符号化して画像符号化ストリームVStに付加するようにメモリ情報制御部101に指示する。
The counter 113 for the short-term storage memory and the counter 114 for the long-term storage memory include a memory management command for removing unnecessary pictures and an instruction for moving a picture in the short-term storage memory to the long-term storage memory. The number of times the memory management command to be coded is counted.
The non-storage memory management information unit 104 encodes a memory management command that instructs removal of unnecessary pictures and a memory management command that instructs to move a picture in the short-term storage memory to the long-term storage memory. It manages whether or not it has been added to a picture of low importance in the encoded stream VSt that is difficult to decode. Then, when the non-preserved memory management information unit 104 is added to a picture with low importance, the non-stored memory management information unit 104 instructs the memory information control unit 101 to re-encode the memory management command and to add it to the coded image stream VSt. .

これにより、画像符号化装置100は、必要に応じて上記メモリ管理コマンドを複数回伝送することにより、メモリ管理情報ストリームCStのメモリ管理コマンドが伝送路エラーによって消失するのを防止する。
さらに、メモリ情報制御部101は、メモリ管理コマンドの2回目以降の伝送時(再送時)には、メモリ管理コマンドを適用するメモリに保存されているピクチャ(管理対象のピクチャ)が、IDRピクチャより以前に符号化されているピクチャであるかを検出して、IDRピクチャより以前に符号化されているピクチャである場合は、メモリ管理コマンドを符号化して再送することはしない。また、メモリ情報制御部101は、同一のピクチャ番号を有する(巡回する番号が付与されているため)ピクチャのうち、管理対象のピクチャが符号化順で最近のピクチャであるか否かを検出し、最近のピクチャである場合にのみメモリ管理コマンドを符号化して再送する。さらに、メモリ情報制御部101は、画像符号化ストリームVStの編集により不連続となった編集点より、管理対象のピクチャが符号化順で前にあるか否かを検出し、編集点より前である場合はメモリ管理コマンドを符号化して再送することはしない。
Accordingly, the image encoding device 100 transmits the memory management command a plurality of times as necessary, thereby preventing the memory management command of the memory management information stream CSt from being lost due to a transmission path error.
Further, when the memory management command is transmitted for the second or subsequent time (at the time of retransmission), the picture (the picture to be managed) stored in the memory to which the memory management command is applied is more than the IDR picture. It is detected whether the picture is coded before, and if the picture is coded before the IDR picture, the memory management command is not coded and retransmitted. In addition, the memory information control unit 101 detects whether or not the management target picture is the latest picture in coding order among pictures having the same picture number (because a cyclic number is assigned). Only when the picture is the latest picture, the memory management command is encoded and retransmitted. Further, the memory information control unit 101 detects whether or not the picture to be managed precedes in the coding order from the editing point that has become discontinuous due to the editing of the coded image stream VSt. In some cases, the memory management command is not encoded and retransmitted.

ここで、本実施の特徴について説明する。
図2の(a)は、符号化された各ピクチャを示す図である。
この図2の(a)に示すように、各ピクチャには符号化順にピクチャ番号が付与されている。ピクチャ番号は予め定められた最大値(例えば15)になると再び0に戻される。このようにピクチャ番号は番号が巡回している。
Here, features of the present embodiment will be described.
FIG. 2A is a diagram showing each encoded picture.
As shown in FIG. 2A, each picture is assigned a picture number in the order of encoding. When the picture number reaches a predetermined maximum value (for example, 15), it is returned to 0 again. As described above, the picture numbers are cyclic.

現時点で符号化されるピクチャ(符号化対象ピクチャ)がピクチャAであるとする。本実施の形態では、ピクチャAより以前に符号化されたピクチャに付随させたメモリ管理コマンド(MMCO)を再度符号化してピクチャAの箇所で付加する場合、以下のようになる。
ピクチャA以前に符号化された各ピクチャをピクチャB0,B1…B15、C0,C1…C11とする。ピクチャB0〜B15のピクチャ番号が0〜15であり、ピクチャC0〜C11のピクチャ番号は0〜11である。ピクチャC0,C1…C11は、同じく巡回したピクチャ番号の付与されたピクチャB0,B1…B15に比べて符号化された順番がピクチャAに近い。そこで、本実施の形態の画像符号化装置100は、ピクチャC0,C1…C11に対して適用するメモリ管理コマンドを再度符号化してピクチャAの箇所で符号化し伝送するが、ピクチャB0,B1…B15に対して適用するメモリ管理コマンドは再度符号化することはない。
It is assumed that the picture to be coded at this point (the picture to be coded) is picture A. In the present embodiment, when a memory management command (MMCO) attached to a picture coded before picture A is coded again and added at the position of picture A, the following is performed.
Each picture coded before picture A is referred to as picture B0, B1... B15, C0, C1. The picture numbers of the pictures B0 to B15 are 0 to 15, and the picture numbers of the pictures C0 to C11 are 0 to 11. The pictures C0, C1,..., C11 are closer to the picture A in coding order than the pictures B0, B1,. Therefore, the image coding apparatus 100 according to the present embodiment re-encodes the memory management command applied to the pictures C0, C1,. Are not re-encoded.

例えば、ピクチャ番号2のピクチャB2が保存されたメモリを開放する(再利用可能とする)ことを示すメモリ管理コマンドが以前に符号化された場合であっても、本実施の形態の画像符号化装置100は、そのメモリ管理コマンドをピクチャAで再度符号化せず、ピクチャ番号2のピクチャC2が保存されたメモリ領域を開放することを示すメモリ管理コマンドが以前に符号化された場合であれば、そのメモリ管理コマンドをピクチャAの箇所で再度符号化(再付加)する。   For example, even if a memory management command indicating that the memory in which the picture B2 of the picture number 2 is stored is released (reusable) has been previously encoded, the image encoding according to the present embodiment is performed. The apparatus 100 does not re-encode the memory management command with the picture A, and if the memory management command indicating that the memory area storing the picture C2 of the picture number 2 is to be released has been previously encoded. , Is re-encoded (re-added) at the location of picture A.

このようにすることで、画像復号化装置は、メモリ領域の開放を指示するメモリ管理コマンドを復号化したときに、同一のピクチャ番号2が付与されたピクチャB2とピクチャC2が保存されたメモリのいずれを開放すべきかを一意的に決定することができる。すなわち、画像復号化装置は、符号化対象のピクチャAと最も近い時刻に符号化されたピクチャC2の保存されたメモリ領域を、開放すべきメモリ領域として特定できる。その結果、画像符号化装置と画像復号化装置でメモリの状態に不一致が発生することがなく、画像復号化装置においてメモリ管理コマンドの再送に起因する誤動作が発生するのを防止することができる。   By doing so, the image decoding apparatus decodes the memory management command for instructing the release of the memory area, and when decoding the memory management command, the picture B2 and the picture C2 to which the same picture number 2 is assigned are stored. Which one should be opened can be uniquely determined. That is, the image decoding apparatus can specify the memory area in which the picture C2 encoded at the time closest to the encoding target picture A is stored as the memory area to be released. As a result, there is no occurrence of a mismatch between the states of the memories in the image encoding device and the image decoding device, and it is possible to prevent the image decoding device from malfunctioning due to retransmission of the memory management command.

さらに、本実施の形態における他の特徴について説明する。
図2の(b)は、図2の(a)におけるピクチャC4がIDRピクチャである場合の各ピクチャを示す図である。
IDRピクチャとは、その箇所から画像符号化ストリームVStの復号化を開始しても画像符号化ストリームVStを正しく復号化できたり、その直前で、画像符号化ストリームVStのピクチャレートなどを切り換えても、IDRピクチャ以降のストリームが正しく復号化できることを保証するために、導入されたピクチャである。このIDRピクチャは、これを超えて前方のピクチャの参照が行われないようにし、このIDRピクチャが符号化される時点で、メモリ内の全ピクチャが開放されて復号化に関する情報が初期化される。
Further, other features of the present embodiment will be described.
FIG. 2B is a diagram showing each picture when picture C4 in FIG. 2A is an IDR picture.
The IDR picture means that even if decoding of the image coded stream VSt is started from that point, the image coded stream VSt can be correctly decoded, or the picture rate of the image coded stream VSt is switched immediately before. , IDR pictures and subsequent pictures are introduced to ensure that the stream can be correctly decoded. The IDR picture is prevented from referring to a picture ahead of the IDR picture. At the time when the IDR picture is encoded, all the pictures in the memory are released and information on decoding is initialized. .

本実施の形態では、現時点で符号化されるピクチャAより以前に符号化されたピクチャに付随させたメモリ管理コマンド(MMCO)を再度符号化してピクチャAの箇所で符号化する場合、IDRピクチャ以前に符号化されたピクチャに対して適用するメモリ管理コマンドを再度符号化しないようにする。
例えば、IDRピクチャであるピクチャC4以前のピクチャC1が保存されたメモリを開放する(再利用可能とする)ことを示すメモリ管理コマンドが以前に符号化された場合であれば、本実施の形態の画像符号化装置100は、そのメモリ管理コマンドを再度符号化しない。
In the present embodiment, when a memory management command (MMCO) attached to a picture coded earlier than picture A to be coded at the present time is coded again and coded at picture A, the IDR picture is used before To avoid re-encoding a memory management command to be applied to a picture encoded as follows.
For example, if a memory management command indicating that the memory in which the picture C1 before the picture C4 that is an IDR picture is stored is released (reusable) has been encoded before, the present embodiment will be described. The image encoding device 100 does not encode the memory management command again.

IDRピクチャは、その時点でメモリに保存されているピクチャとピクチャ番号を初期化する。そのため、再送するメモリ管理コマンドの管理対象となるピクチャが、IDRピクチャより前のピクチャである場合には、そのメモリ管理コマンドが再送された時点で、すでに画像復号化装置のメモリ内にそのメモリ管理コマンドの管理対象となるピクチャが存在しない。このとき、画像復号化装置では、エラーであるとして失われたピクチャが新たに生成されてメモリに保存され、その結果、メモリ内の他のピクチャが失われるといった誤動作が生じする可能性がある。   The IDR picture initializes the picture and the picture number stored in the memory at that time. Therefore, when the picture to be managed by the memory management command to be retransmitted is a picture before the IDR picture, the memory management command is already stored in the memory of the image decoding apparatus when the memory management command is retransmitted. There is no picture to be managed by the command. At this time, in the image decoding device, a picture that is lost as an error is newly generated and stored in the memory, and as a result, there is a possibility that a malfunction such that another picture in the memory is lost may occur.

そのため、本実施の形態の画像符号化装置100は、IDRピクチャ以前に符号化されたピクチャに対して適用するメモリ管理コマンドを再度符号化しないようにすることで、誤動作の発生を防止することができる。
また、本実施の形態におけるさらに他の特徴を、図3を用いて説明する。
図3は、画像符号化ストリームVStの編集を説明するための説明図である。
For this reason, the image coding apparatus 100 according to the present embodiment can prevent the occurrence of a malfunction by preventing the memory management command applied to the picture coded before the IDR picture from being coded again. it can.
Further, still another feature of the present embodiment will be described with reference to FIG.
FIG. 3 is an explanatory diagram for describing editing of the image encoded stream VSt.

例えば、この図3に示すように、ピクチャE0〜E13を含む画像符号化ストリームとピクチャF0〜F13を含む画像符号化ストリームとが、それぞれの途中で結合(編集)される。なお、このような画像符号化ストリームの編集は、DVDなどの編集を行う場合に行われる。
ピクチャE0〜E13を含む画像符号化ストリームは、ピクチャE11とピクチャE12の間で分割され、ピクチャF0〜F13を含む画像符号化ストリームは、ピクチャF11とピクチャF12の間で分割される。ピクチャE0〜E11の画像符号化ストリームとピクチャF12〜F13の画像符号化ストリームとがつなげられて、1つの画像符号化ストリームYに編集される。このようにピクチャE11とピクチャF12がつなげられてピクチャ番号が不連続となった部分を編集点Hとよぶ。
For example, as shown in FIG. 3, an image encoded stream including pictures E0 to E13 and an image encoded stream including pictures F0 to F13 are combined (edited) in the middle of each. It should be noted that such editing of the image encoded stream is performed when editing a DVD or the like.
The coded image stream including the pictures E0 to E13 is divided between the pictures E11 and E12, and the coded image stream including the pictures F0 to F13 is divided between the pictures F11 and F12. The picture coded streams of the pictures E0 to E11 and the picture coded streams of the pictures F12 to F13 are connected and edited into one picture coded stream Y. The part where the picture numbers are discontinuous due to the connection of the picture E11 and the picture F12 is called an editing point H.

本実施の形態の画像符号化装置100は、現時点で符号化されるピクチャF13より以前に符号化されたピクチャに付随させたメモリ管理コマンド(MMCO)を再度符号化してピクチャF13に付随させようとする場合、そのメモリ管理コマンドの管理対象となるピクチャが編集点H以前に符号化されたピクチャであるか否かを判別する。そして、編集点H以前に符号化されたピクチャであれば、画像符号化装置100は、そのメモリ管理コマンドの再度の符号化を禁止する。   The image coding apparatus 100 according to the present embodiment attempts to re-encode a memory management command (MMCO) attached to a picture encoded before the picture F13 to be encoded at the present time and attach it to the picture F13. In this case, it is determined whether the picture to be managed by the memory management command is a picture coded before the edit point H. If the picture is coded before the edit point H, the image coding apparatus 100 prohibits the memory management command from being coded again.

例えば、編集点H以前のピクチャF1が保存されたメモリを開放する(再利用可能とする)ことを示すメモリ管理コマンドが以前にピクチャ番号m−2のピクチャF10に付随させて符号化された場合であれば、画像符号化装置100は、そのメモリ管理コマンドを再度符号化しない。
即ち、ピクチャF13を含む画像符号化ストリームは、編集されて画像符号化ストリームYとなっているため、メモリに保存されるピクチャには編集点H以前のピクチャF0〜F11はメモリ内に存在しない。そこで、編集点H以前のピクチャであるピクチャF0〜F11に適用するメモリ管理コマンドが再度符号化されてしまうと、画像復号化装置は、そのメモリ管理コマンドの実行時に、そのメモリ管理コマンドを適用するピクチャが存在しないため、失われたピクチャを新たに生成してメモリに保存し、他のピクチャをメモリから消去するといった誤動作を行う可能性がある。したがって、本実施の形態の画像符号化装置100は、そのようなメモリ管理コマンドを再度符号化することを禁止するのである。
For example, when a memory management command indicating that the memory in which the picture F1 before the edit point H is stored is released (reusable) is previously attached to the picture F10 of the picture number m-2 and encoded. If so, the image encoding device 100 does not encode the memory management command again.
That is, since the coded image stream including the picture F13 has been edited into the coded image stream Y, the pictures F0 to F11 before the editing point H do not exist in the memory in the pictures stored in the memory. Therefore, if the memory management command applied to the pictures F0 to F11 that are the pictures before the edit point H is encoded again, the image decoding apparatus applies the memory management command when executing the memory management command. Since there is no picture, there is a possibility that a malfunction such as newly generating a lost picture, saving it in the memory, and erasing other pictures from the memory may occur. Therefore, the image encoding device 100 of the present embodiment prohibits re-encoding such a memory management command.

ここで、本実施の形態の画像符号化装置100の動作を説明する。
図4は、本実施の形態の画像符号化装置100がIDRピクチャに基づいてメモリ管理コマンドの再符号化を行う動作を示すフローチャートである。
まず、画像符号化装置100の画像符号化部110は、入力画像信号Vinの符号化を開始する(ステップS100)。短時間保存メモリ管理部102及び長時間保存メモリ管理部103は、画像符号化部110の符号化処理中、メモリ内で不要な領域(今後の符号化で参照されないピクチャ)を調査し(ステップS101)、不要なメモリ領域があるか否かを判定する(ステップS102)。ここで、短時間保存メモリ管理部102及び長時間保存メモリ管理部103が不要なメモリ領域があると判定したときには(ステップS102のYes)、画像符号化装置100の管理情報符号化部105は、不要なメモリ領域を開放するように指示するメモリ管理コマンドを符号化する(ステップS103)。そして、短時間保存メモリ管理部102及び長時間保存メモリ管理部103は、その不要なメモリ領域を開放する(ステップS104)。また、短時間保存メモリ管理部102及び長時間保存メモリ管理部103によって不要なメモリ領域がないと判定されたときには(ステップS102のNo)、画像符号化装置100は、ステップS103,S104の動作を実行しない。
Here, the operation of the image coding apparatus 100 according to the present embodiment will be described.
FIG. 4 is a flowchart showing an operation in which the image encoding device 100 of the present embodiment re-encodes a memory management command based on an IDR picture.
First, the image encoding unit 110 of the image encoding device 100 starts encoding the input image signal Vin (Step S100). During the encoding processing of the image encoding unit 110, the short-term storage memory management unit 102 and the long-term storage memory management unit 103 investigate unnecessary areas (pictures that will not be referred to in future encoding) in the memory (step S101). ), It is determined whether or not there is an unnecessary memory area (step S102). Here, when the short-term storage memory management unit 102 and the long-term storage memory management unit 103 determine that there is an unnecessary memory area (Yes in step S102), the management information encoding unit 105 of the image encoding device 100 A memory management command for instructing to release an unnecessary memory area is encoded (step S103). Then, the short-term storage memory management unit 102 and the long-term storage memory management unit 103 release the unnecessary memory area (step S104). When the short-term storage memory management unit 102 and the long-term storage memory management unit 103 determine that there is no unnecessary memory area (No in step S102), the image encoding device 100 performs the operations in steps S103 and S104. Do not execute.

次に、メモリ情報制御部101は、非保存メモリ管理情報部104の動作に基づいて、不要なメモリ領域を開放するように指示するメモリ管理コマンドが符号化され、以前に符号化したピクチャ(符号化対象ピクチャより前のピクチャ)に付加されているか否かを判定し(ステップS105)、メモリ管理コマンドが符号化されていないと判定した場合は(ステップS105のNo)、画像符号化装置100は処理を終了する。   Next, based on the operation of the non-reserved memory management information unit 104, the memory information control unit 101 encodes a memory management command instructing to release an unnecessary memory area, and encodes a previously encoded picture (code It is determined whether or not the memory management command is added to the picture (picture before the current picture to be coded) (step S105). If it is determined that the memory management command is not coded (No in step S105), the image coding apparatus 100 The process ends.

一方、メモリ管理コマンドが符号化されていると判定した場合には(ステップS105のYes)、メモリ情報制御部101は、メモリ管理コマンドの管理対象となるピクチャ(開放された不要なメモリ領域に保存されていたピクチャ)がIDRピクチャより符号化順で前にあるか否かを判定する(ステップS106)。ここで、メモリ情報制御部101は、前にあると判定したときには(ステップS106のYes)、メモリ管理コマンドを再符号化(再付加)することなく処理を終了し、前にはないと判定したときには(ステップS106のNo)、メモリ管理コマンドを再符号化(再付加)して(ステップS107)、処理を終了する。   On the other hand, when it is determined that the memory management command has been encoded (Yes in step S105), the memory information control unit 101 determines whether the picture to be managed by the memory management command (stored in the unnecessary memory area that has been released). Is determined before the IDR picture in the coding order (step S106). Here, when it is determined that the memory management command is present (Yes in step S106), the memory information control unit 101 ends the process without re-encoding (re-adding) the memory management command, and determines that the memory management command is not before. In some cases (No in step S106), the memory management command is re-encoded (re-added) (step S107), and the process ends.

図5は、本実施の形態の画像符号化装置100がIDRピクチャ及び最近か否かの判断に基づいてメモリ管理コマンドの再符号化を行う動作を示すフローチャートである。
画像符号化装置100は、まず、図4に示すステップS100〜S106と同様の動作を実行する(ステップS200〜S206)。
メモリ情報制御部101は、メモリ管理コマンドの管理対象となるピクチャがIDRピクチャよりも前にはないと判定したときには(ステップS206のNo)、さらに、管理対象のピクチャと同一のピクチャ番号が付与されたピクチャのうち、管理対象のピクチャが最近のピクチャであるかを判定する(ステップS207)。即ち、メモリ情報制御部101は、管理対象のピクチャと同一のピクチャ番号が付与されたピクチャの中で、その管理対象のピクチャが符号化順で、画像符号化ストリームVSt中のメモリ管理コマンドが再付加される予定の部位の直前にあるか否かを判定する。
FIG. 5 is a flowchart showing an operation in which the image encoding apparatus 100 of the present embodiment re-encodes a memory management command based on an IDR picture and whether or not it is recent.
First, the image coding apparatus 100 performs the same operation as Steps S100 to S106 shown in FIG. 4 (Steps S200 to S206).
When the memory information control unit 101 determines that the picture to be managed by the memory management command does not precede the IDR picture (No in step S206), the same picture number as the picture to be managed is further assigned. Then, it is determined whether the management target picture is the latest picture among the pictures (step S207). That is, the memory information control unit 101 determines that the pictures to be managed in the pictures assigned the same picture number as the pictures to be managed are in coding order, and the memory management command in the image encoded stream VSt is re-executed. It is determined whether or not it is immediately before the part to be added.

その結果、メモリ情報制御部101は、最近のピクチャでないと判定したときには(ステップS207のNo)、メモリ管理コマンドを再符号化(再付加)せず処理を終了し、最近のピクチャであると判定したときには(ステップS207のYes)、メモリ管理コマンドを再符号化(再付加)して(ステップS208)、処理を終了する。
図6は、本実施の形態の画像符号化装置100が画像符号化信号の編集を行う動作を示すフローチャートである。
As a result, when the memory information control unit 101 determines that the picture is not the latest picture (No in step S207), the process ends without re-encoding (re-adding) the memory management command, and determines that the picture is the latest picture. If this has been done (Yes in step S207), the memory management command is re-encoded (re-added) (step S208), and the process ends.
FIG. 6 is a flowchart showing an operation in which the image encoding device 100 of the present embodiment edits an image encoded signal.

まず、画像符号化装置100は、画像符号化ストリームVStの編集を行う(ステップS300)。
次に、画像符号化装置100のメモリ情報制御部101は、メモリ管理コマンドが符号化されて、編集後の画像符号化ストリームVStに付加されているか否かを判別する(ステップS301)。
First, the image encoding device 100 edits the encoded image stream VSt (Step S300).
Next, the memory information control unit 101 of the image encoding device 100 determines whether the memory management command has been encoded and added to the edited image encoded stream VSt (Step S301).

ここで、メモリ管理コマンドが符号化されていると判別したときには(ステップS301のYes)、画像符号化装置100は、さらに、そのメモリ管理コマンドの管理対象となるピクチャが符号化順で編集点よりも前にあるか否かを判別する(ステップS302)。
一方、ステップS301においてメモリ管理コマンドが符号化(付加)されていないと判別されたときや(ステップS301のNo)、ステップS302において管理対象のピクチャが編集点よりも前にあると判別されたときには(ステップS302のYes)、画像符号化装置100は、その画像符号化ストリームVStの編集処理を終了する。
Here, when it is determined that the memory management command is coded (Yes in step S301), the image coding apparatus 100 further moves the picture to be managed by the memory management command from the editing point in the coding order. It is determined whether or not there is also before (step S302).
On the other hand, when it is determined in step S301 that the memory management command is not encoded (added) (No in step S301), or when it is determined in step S302 that the picture to be managed is located before the edit point. (Yes in step S302), the image encoding device 100 ends the editing process of the image encoded stream VSt.

また、画像符号化装置100のメモリ情報制御部101は、ステップS302において管理対象のピクチャが編集点よりも前にはないと判別したときには(ステップS302のNo)、再びそのメモリ管理コマンドを管理情報符号化部105に符号化させ、画像符号化ストリームVStに再付加させる(ステップS303)。   When the memory information control unit 101 of the image encoding device 100 determines in step S302 that the picture to be managed is not before the editing point (No in step S302), the memory management command is again transmitted to the management information. The image is encoded by the encoding unit 105 and re-added to the encoded image stream VSt (step S303).

図7は、本実施の形態の画像符号化装置100が、IDRピクチャ及び最近か否かの判断並びに編集点に基づいて、メモリ管理コマンドの再符号化を行う動作を示すフローチャートである。   FIG. 7 is a flowchart showing an operation in which the image encoding device 100 of the present embodiment re-encodes a memory management command based on an IDR picture, whether or not it is recent, and an editing point.

画像符号化装置100は、まず、図5に示すステップS200〜S207と同様の動作を実行する(ステップS400〜S407)。
メモリ情報制御部101は、メモリ管理コマンドの管理対象のピクチャが最近のピクチャでないと判定したときには(ステップS407のNo)、処理を終了するが、最近のピクチャであると判定したときには(ステップS407のYes)、さらに、そのメモリ管理コマンドの管理対象となるピクチャが符号化順で編集点よりも前にあるか否かを判別する(ステップS408)。
First, the image coding apparatus 100 performs the same operation as Steps S200 to S207 shown in FIG. 5 (Steps S400 to S407).
When the memory information control unit 101 determines that the picture to be managed by the memory management command is not the latest picture (No in step S407), the process ends, but when it is determined that the picture is the latest picture (step S407). Yes), it is further determined whether or not the picture to be managed by the memory management command is before the edit point in the coding order (step S408).

メモリ情報制御部101は、編集点よりも前にあると判別したときには(ステップS408のYes)、処理を終了し、編集点よりも前にはないと判別したときには(ステップS408のNo)、メモリ管理コマンドを再符号化(再付加)して(ステップS409)、処理を終了する。   When the memory information control unit 101 determines that it is before the edit point (Yes in step S408), it ends the process, and when it determines that it is not before the edit point (No in step S408), The management command is re-encoded (re-added) (step S409), and the process ends.

以上のように、本実施の形態では、メモリ領域を開放する(そのメモリ領域のピクチャを除去する)ように指示するメモリ管理コマンドを繰り返し符号化しているため、1つのメモリ管理コマンドが伝送路エラーで消失しても、他のメモリ管理コマンドが画像復号化装置へその指示内容を伝えるため、伝送路エラーがあっても画像復号化装置においてピクチャを正しく復号することができる。   As described above, in the present embodiment, the memory management command instructing to release the memory area (remove the picture in the memory area) is repeatedly encoded. Even if the data disappears, the other memory management command transmits the instruction to the image decoding apparatus, so that the picture can be correctly decoded in the image decoding apparatus even if there is a transmission path error.

さらに、本実施の形態の画像符号化装置100は、メモリ管理コマンドを適用する対象のピクチャが、編集点より前である場合や、IDRピクチャより前である場合や、最近のピクチャでない場合は、メモリ管理コマンドを再符号化しないので、画像復号化装置において、メモリ管理コマンドが実行されるときに、メモリ管理コマンドの管理対象のピクチャが存在しないなどの理由により生じする誤動作を防止する。   Furthermore, the image coding apparatus 100 according to the present embodiment, when the picture to which the memory management command is applied is before the edit point, before the IDR picture, or when it is not a recent picture, Since the memory management command is not re-encoded, the image decoding apparatus prevents a malfunction that occurs when the memory management command is executed, for example, because there is no picture to be managed by the memory management command.

なお、本実施の形態では、不要なメモリを開放するように指示する内容のメモリ管理コマンドを例に挙げて説明したが、ピクチャに対するメモリ上の管理内容を示すメモリ管理コマンドであれば、短時間保存メモリに保存されているピクチャを長時間保存メモリに移動させるように指示する内容のメモリ管理コマンドであっても良い。   In the present embodiment, a memory management command having a content for instructing release of unnecessary memory has been described as an example. It may be a memory management command having an instruction to move the picture stored in the storage memory to the long-term storage memory.

また、本実施の形態では、メモリ管理コマンドの管理対象とするピクチャが符号化順でIDRピクチャよりも前にあるときに、そのメモリ管理コマンドの再送を禁止したが、管理対象のピクチャが符号化順でメモリ初期化コマンドよりも前にあるときに、再送を禁止しても良い。このメモリ初期化コマンドは、メモリに保存されている全ピクチャを消去してメモリを初期化し、ピクチャ番号を0にリセットするように指示するコマンドである。   Further, in the present embodiment, when the picture to be managed by the memory management command is earlier than the IDR picture in the coding order, retransmission of the memory management command is prohibited. The retransmission may be prohibited when it is before the memory initialization command in order. The memory initialization command is a command for erasing all pictures stored in the memory, initializing the memory, and resetting the picture number to 0.

更に、図7のフローチャートでは、画像符号化装置100がステップS406、ステップS407、ステップS408の処理をこの順序で全て実行するものとして説明したが、これらのステップは順不同で実行の順序を入れ替えてもよく、また実現簡単化のために一部のステップを省略しても良い。   Further, in the flowchart of FIG. 7, the description has been given assuming that the image coding apparatus 100 executes all the processes of step S406, step S407, and step S408 in this order, but these steps may be performed in any order and the order of execution may be changed. Some steps may be omitted for simplicity.

更に、図4〜図7のフローチャートでは、再送でないメモリ管理コマンドを、再送するメモリ管理コマンドよりも先に符号化する例を示したが、この符号化の順序を逆にし、再送するメモリ管理コマンドを先に符号化してから、再送でないメモリ管理コマンドを符号化しても良い。   Furthermore, in the flowcharts of FIGS. 4 to 7, an example has been shown in which a memory management command that is not retransmitted is coded before a memory management command to be retransmitted. May be encoded first, and then a memory management command that is not a retransmission may be encoded.

(実施の形態2)
次に、本発明の実施の形態2について説明する。
図8は、実施の形態2における画像復号化方法を実現するための画像復号化装置のブロック図である。
画像復号化装置200は、メモリ情報制御部201と、短時間保存メモリ管理部202と、長時間保存メモリ管理部203と、管理情報復号化部205と、保存領域指定部207と、参照領域指定部208と、画像メモリ209と、画像復号化部210と、可変長復号化部212などから構成される。
(Embodiment 2)
Next, a second embodiment of the present invention will be described.
FIG. 8 is a block diagram of an image decoding device for realizing the image decoding method according to the second embodiment.
The image decoding apparatus 200 includes a memory information control unit 201, a short-term storage memory management unit 202, a long-term storage memory management unit 203, a management information decoding unit 205, a storage area designation unit 207, and a reference area designation. It comprises a unit 208, an image memory 209, an image decoding unit 210, a variable length decoding unit 212 and the like.

メモリ情報制御部201は、ピクチャタイプ情報PTに基づいて、復号化対象のピクチャに対して前方および後方のいずれか一方のピクチャ、又は両方のピクチャが参照可能かどうかを判断する。さらにメモリ情報制御部201は、参照領域指定部208に指令して、その判断結果に対応する参照ピクチャを画像メモリ209から画像復号化部210に出力させる。   Based on the picture type information PT, the memory information control unit 201 determines whether one or both of the front and rear pictures or both pictures can be referred to the decoding target picture. Further, the memory information control unit 201 instructs the reference area specifying unit 208 to output a reference picture corresponding to the determination result from the image memory 209 to the image decoding unit 210.

可変長復号化部212は、画像符号化ストリームVStを可変長復号化する。画像復号化部210は、可変長復号化部212からの出力を更に復号化して復号画像信号Voutを出力して、その出力を画像メモリ209に参照ピクチャとして格納する。
このとき、画像メモリ209における参照ピクチャの格納可能なメモリ領域は、保存領域指定部207からの指示によって決定される。即ち、メモリ情報制御部201は、短時間保存メモリ管理部202に問い合わせて、画像メモリ209内の短時間保存メモリでピクチャの除去されたメモリ領域を特定する。保存領域指定部207は、その特定されたメモリ領域に参照ピクチャを記録するように、画像メモリ209に対し指示を出す。
The variable length decoding unit 212 performs variable length decoding on the coded image stream VSt. Image decoding section 210 further decodes the output from variable length decoding section 212 to output decoded image signal Vout, and stores the output in image memory 209 as a reference picture.
At this time, the memory area in which the reference picture can be stored in the image memory 209 is determined by an instruction from the storage area specifying unit 207. That is, the memory information control unit 201 inquires of the short-term storage memory management unit 202 to specify a memory area in the short-term storage memory in the image memory 209 from which pictures have been removed. The storage area designating unit 207 instructs the image memory 209 to record the reference picture in the specified memory area.

編集検出部215は、可変長復号化部212の出力に基づいて、画像符号化ストリームVStの編集点を検出し、その編集点を示す情報をメモリ情報制御部201に出力する。
管理情報復号化部205は、メモリ管理情報ストリームCStを復号化して、メモリ情報制御部201を通じ、短時間保存メモリ内の不要な(参照されない)ピクチャを除去するように指示する内容のメモリ管理コマンドを、短時間保存メモリ管理部202に通知する。また、管理情報復号化部205は、短時間保存メモリ内のピクチャを画像メモリ209内の長時間保存メモリに移動するように指示するメモリ管理コマンドを、長時間保存メモリ管理部203に通知する。
The edit detection unit 215 detects an edit point of the encoded video stream VSt based on the output of the variable length decoding unit 212, and outputs information indicating the edit point to the memory information control unit 201.
The management information decoding unit 205 decodes the memory management information stream CSt and, through the memory information control unit 201, a memory management command having a content instructing to remove unnecessary (unreferenced) pictures in the short-term storage memory. Is notified to the short-term storage memory management unit 202. In addition, the management information decoding unit 205 notifies the long-term storage memory management unit 203 of a memory management command that instructs the picture in the short-term storage memory to be moved to the long-term storage memory in the image memory 209.

ここで、メモリ情報制御部201は、再送されたメモリ管理コマンドの管理対象となるピクチャがIDRピクチャよりも復号化順で前にあれば、そのメモリ管理コマンドを無効とする。また、メモリ情報制御部201は、そのメモリ管理コマンドの管理対象となるピクチャが編集点よりも復号化順で前にあれば、そのメモリ管理コマンドを無効にする。また、メモリ情報制御部201は、そのメモリ管理コマンドにより示されるピクチャ番号と同一のピクチャ番号が付与されたピクチャのうち、最近に復号化されたピクチャを管理対象とし、そのピクチャに対してメモリ管理コマンドの管理内容を適用する。   Here, if the picture to be managed by the retransmitted memory management command precedes the IDR picture in the decoding order, the memory information control unit 201 invalidates the memory management command. If the picture to be managed by the memory management command is located before the editing point in the decoding order, the memory information control unit 201 invalidates the memory management command. Also, the memory information control unit 201 manages the most recently decoded picture among the pictures assigned the same picture number as the picture number indicated by the memory management command, and performs memory management on that picture. Apply command management contents.

このような本実施の形態の画像復号化装置200の特徴について、実施の形態1で用いた図2の(b)を用いて説明する。
例えば、画像復号化装置200は、復号化されたメモリ管理コマンドが再送されたものであって、IDRピクチャ(C4)以前に復号化されたピクチャ(例えばC1)が保存されたメモリ領域を開放する(再利用可能とする)ように指示するような場合には、このメモリ管理コマンドを無効とする。即ち、画像復号化装置200は、このメモリ管理コマンドにより指示される管理内容をピクチャC1に対して実行しない。
The features of the image decoding device 200 according to the present embodiment will be described with reference to FIG. 2B used in the first embodiment.
For example, the image decoding apparatus 200 releases the memory area where the decoded memory management command is retransmitted and the picture (for example, C1) decoded before the IDR picture (C4) is stored. In the case of giving an instruction to make it reusable, the memory management command is invalidated. That is, the image decoding apparatus 200 does not execute the management content specified by the memory management command for the picture C1.

IDRピクチャは、その復号化の時点でメモリに保存されているピクチャを初期化する。そのため、再送するメモリ管理コマンドの管理対象となるピクチャが、IDRピクチャより前のピクチャである場合には、その再送されたメモリ管理コマンドを実行する時点で、すでに画像復号化装置のメモリ内にそのメモリ管理コマンドの管理対象となるピクチャが存在しない事態が発生する。このとき、画像復号化装置では、エラーであるとして失われたピクチャが新たに生成されメモリに保存され、その結果、メモリ内の他のピクチャが失われるといった誤動作が生じる可能性がある。   The IDR picture initializes the picture stored in the memory at the time of decoding. Therefore, when the picture to be managed by the memory management command to be retransmitted is a picture before the IDR picture, the picture is already stored in the memory of the image decoding apparatus at the time of executing the retransmitted memory management command. A situation occurs in which there is no picture to be managed by the memory management command. At this time, in the image decoding apparatus, a picture that is lost as an error is newly generated and stored in the memory, and as a result, a malfunction may occur that another picture in the memory is lost.

そのため、本実施の形態の画像復号化装置200は、IDRピクチャ以前に復号化されたピクチャを管理対象とするメモリ管理コマンドが再送されても、そのメモリ管理コマンドの再送はエラーとみなして、そのメモリ管理コマンドの管理内容を実行しない。これにより、上述のような誤動作を防止することができる。
実施の形態1の画像符号化装置100は、このようなメモリ管理コマンドを再送することがないように画像符号化ストリームを生成するため、従来の画像復号化装置であっても、この画像符号化ストリームを、上述のような誤動作を生じることなく復号化することができる。ところが、従来の画像復号化装置は、従来の画像符号化装置で生成された画像符号化ストリームを復号化するときには、上述のような誤動作をしてしまう。そこで、本実施の形態の画像復号化装置は、従来の画像符号化装置で生成された画像符号化ストリームであっても、誤動作を生じることなくこれを復号化することができるのである。
Therefore, the image decoding apparatus 200 according to the present embodiment regards the resending of the memory management command as an error even if the memory management command for which the picture decoded before the IDR picture is to be managed is regarded as an error. Do not execute the management contents of the memory management command. As a result, the above-described malfunction can be prevented.
The image encoding apparatus 100 according to the first embodiment generates an image encoded stream so as not to retransmit such a memory management command. The stream can be decoded without causing the malfunction as described above. However, the conventional image decoding device performs the above-described malfunction when decoding the image encoded stream generated by the conventional image encoding device. Therefore, the image decoding apparatus according to the present embodiment can decode an image encoded stream generated by a conventional image encoding apparatus without causing a malfunction.

本実施の形態における他の特徴を説明する。
また、本実施の形態の画像復号化装置200は、再送されたメモリ管理コマンドの管理対象となるピクチャのピクチャ番号と同一のピクチャ番号が付与されたピクチャのうち、最近に復号化されたピクチャにそのメモリ管理コマンドを適用する。このような動作は、画像符号化装置と画像復号化装置で一致させる必要がある。したがって、実施の形態1の画像符号化装置100が、このように最近のピクチャを管理対象としないメモリ管理コマンドの再送を禁止して画像符号化ストリームを作成した場合であっても、本実施の形態の動作は必要である。
Other features of the present embodiment will be described.
Further, the image decoding apparatus 200 according to the present embodiment assigns the most recently decoded picture among the pictures assigned the same picture number as the picture number of the picture to be managed by the retransmitted memory management command. Apply that memory management command. Such operations need to be matched between the image encoding device and the image decoding device. Therefore, even when the image encoding apparatus 100 according to Embodiment 1 inhibits retransmission of a memory management command that does not manage a recent picture as described above and creates an image encoded stream, A form operation is required.

このような本実施の形態の画像復号化装置200の特徴について、実施の形態1で用いた図2の(a)を用いて説明する。
画像復号化装置200は、復号化したメモリ管理コマンドが再送されたものであり、例えば、ピクチャ番号2であるピクチャが保存されたメモリ領域を開放するように指示するメモリ管理コマンドである場合、復号化順が現時点に最も近いピクチャC2の保存されたメモリ領域を開放し、ピクチャB2の保存されたメモリを開放しない。
The features of the image decoding apparatus 200 according to the present embodiment will be described with reference to FIG. 2A used in the first embodiment.
If the decoded memory management command is a retransmitted memory management command, for example, if the decoded memory management command is a memory management command instructing to release the memory area in which the picture with the picture number 2 is stored, the decoding is performed. The memory area where the picture C2 whose conversion order is closest to the current time is released, and the memory where the picture B2 is stored is not released.

これにより、本実施の形態の画像復号化装置200は、ピクチャ番号2のピクチャが保存されたメモリ領域を開放することを示すメモリ管理コマンドを復号化したときに、同一のピクチャ番号2が付与されたピクチャB2とピクチャC2のそれぞれが保存されたメモリ領域のいずれを開放すればよいのかを容易に判別することができる。すなわち、画像復号化装置200は、復号化対象のピクチャAと最も近い時刻に復号化されたピクチャC2の保存されたメモリ領域を、開放するメモリ領域として特定できる。ここで、ピクチャC2は、ピクチャ番号2のピクチャのうち、再送されたメモリ管理コマンドの復号化順で直前のピクチャである。   Accordingly, when decoding the memory management command indicating that the memory area storing the picture of picture number 2 is to be released, the image decoding apparatus 200 of the present embodiment is given the same picture number 2. It is possible to easily determine which one of the memory areas in which the pictures B2 and C2 are stored should be opened. That is, the image decoding apparatus 200 can specify the memory area in which the picture C2 decoded at the time closest to the decoding target picture A is stored as the memory area to be released. Here, the picture C2 is the immediately preceding picture in the decoding order of the retransmitted memory management command among the pictures of the picture number 2.

また、本実施の形態の画像復号化装置200は、再送されたメモリ管理コマンドの管理対象となるピクチャが編集点より前に復号化されていれば、そのメモリ管理コマンドをそのピクチャに対して適用しない。
このような本実施の形態の画像復号化装置200の特徴的な動作について、図3を用いて説明する。
In addition, if the picture to be managed by the retransmitted memory management command is decoded before the edit point, the image decoding apparatus 200 according to the present embodiment applies the memory management command to that picture. do not do.
The characteristic operation of the image decoding device 200 according to the present embodiment will be described with reference to FIG.

画像復号化装置200は、復号化したメモリ管理コマンドが再送されたものであり、メモリ管理コマンドが適用される対象のメモリに保存されたピクチャが編集点H以前に復号化されたピクチャである場合は、そのメモリ管理コマンドの管理内容を実行しない。
例えば、復号化されたメモリ管理コマンドが、再送されたメモリ管理コマンドであって、編集点Hより前のピクチャF1の保存されたメモリ領域を開放するように指示する場合には、そのメモリ領域の開放を実行しない。
In the case where the decoded memory management command is retransmitted and the picture stored in the memory to which the memory management command is applied is a picture decoded before the edit point H, the image decoding apparatus 200 Does not execute the management contents of the memory management command.
For example, if the decoded memory management command is a retransmitted memory management command and instructs to release the memory area where the picture F1 before the edit point H is stored, Do not release.

即ち、ピクチャF13を含む画像符号化ストリームは、編集されて画像符号化ストリームYとなっているため、メモリに保存されるピクチャには編集点H以前のピクチャF0〜F11はメモリ内に存在しない。そこで、仮に、画像復号化装置が、編集点H以前のピクチャであるピクチャF0〜F11に適用するメモリ管理コマンドを実行してしまうと、そのメモリ管理コマンドの実行時に、管理対象のピクチャがメモリに存在しないため、失われたピクチャを新たに生成してメモリに保存し、他のピクチャをメモリから消去するといった誤動作を行う可能性がある。また、仮に、そのメモリ管理コマンドの実行時に実行対象のピクチャと同じピクチャ番号のピクチャがメモリに存在したならば、本来適用されない(メモリ管理コマンドで操作されない)ピクチャに対して誤ってメモリ管理コマンドが適用されることになり、編集点より後の画像符号化ストリームが正しく復号化できなくなる可能性がある。したがって、本実施の形態の画像復号化装置200は、編集点より前にあるピクチャを管理対象とするメモリ管理コマンドを実行しないのである。   That is, since the coded image stream including the picture F13 has been edited into the coded image stream Y, the pictures F0 to F11 before the editing point H do not exist in the memory in the pictures stored in the memory. Therefore, if the image decoding apparatus executes a memory management command applied to pictures F0 to F11, which are pictures before the edit point H, the picture to be managed is stored in the memory when the memory management command is executed. Since they do not exist, there is a possibility that a malfunction such as newly generating a lost picture, saving it in the memory, and erasing other pictures from the memory may occur. Also, if a picture having the same picture number as the picture to be executed exists in the memory when the memory management command is executed, the memory management command is erroneously applied to a picture which is not originally applied (not operated by the memory management command). As a result, the image encoded stream after the edit point may not be correctly decoded. Therefore, the image decoding apparatus 200 of the present embodiment does not execute a memory management command for managing a picture located before the edit point.

ここで、本実施の形態の画像復号化装置200の動作を説明する。
図9は、本実施の形態の画像復号化装置200が、最近か否かの判断に基づいてメモリ管理コマンドを取り扱う動作を示すフローチャートである。
まず、画像復号化装置200の管理情報復号化部205は、メモリ管理情報ストリームCSt中に含まれるメモリ管理コマンドを復号化する(ステップS500)。このメモリ管理コマンドの復号化ステップ(ステップS500)では、再送されたメモリ管理コマンドと、初めて受信した(再送でない)メモリ管理コマンドの両方の復号化を行う。次に、可変長復号化部212及び画像復号化部210は、画像符号化ストリームVStを復号化する(ステップS501)。
Here, the operation of the image decoding device 200 according to the present embodiment will be described.
FIG. 9 is a flowchart illustrating an operation in which the image decoding apparatus 200 according to the present embodiment handles a memory management command based on a determination as to whether or not it is recent.
First, the management information decoding unit 205 of the image decoding device 200 decodes a memory management command included in the memory management information stream CSt (Step S500). In this memory management command decoding step (step S500), both the retransmitted memory management command and the first received (non-retransmitted) memory management command are decoded. Next, the variable length decoding unit 212 and the image decoding unit 210 decode the coded image stream VSt (Step S501).

次に、メモリ情報制御部201は、復号化されたメモリ管理コマンドに、再送されたメモリ管理コマンド(例えば、不要なメモリを開放するように指示する内容のメモリ管理コマンド)があるか否かを判定する(ステップS502)。再送されたメモリ管理コマンドがないと判定したときには(ステップS502のNo)、メモリ情報制御部201は、再送でない他のメモリ管理コマンドを実行する(ステップS503)。一方、再送されたメモリ管理コマンドがあると判定したときには(ステップS502のYes)、メモリ情報制御部201は、再送されたメモリ管理コマンドを、そのメモリ管理コマンドにより示されるピクチャ番号と同一のピクチャ番号が付与されたピクチャのうち、復号化順で最近のピクチャに対して実行する(ステップS504)。即ち、メモリ情報制御部201は、画像符号化ストリームVStのメモリ管理コマンドまでに復号化順で含まれていた上記ピクチャ番号のピクチャのうち、メモリ管理コマンドの直前にあるピクチャに対してそのメモリ管理コマンドを実行する。   Next, the memory information control unit 201 determines whether or not the decrypted memory management command includes a retransmitted memory management command (for example, a memory management command having an instruction to release an unnecessary memory). A determination is made (step S502). When it is determined that there is no retransmitted memory management command (No in step S502), the memory information control unit 201 executes another memory management command that is not retransmitted (step S503). On the other hand, when it is determined that there is a retransmitted memory management command (Yes in step S502), the memory information control unit 201 replaces the retransmitted memory management command with the same picture number as the picture number indicated by the memory management command. Is performed on the most recent picture in the decoding order among the pictures to which is added (step S504). That is, the memory information control unit 201 performs a memory management on the picture immediately before the memory management command among the pictures of the picture numbers included in the decoding order up to the memory management command of the image encoded stream VSt. Execute a command.

図10は、本実施の形態の画像復号化装置200が、IDRピクチャ及び最近か否かの判断に基づいて、メモリ管理コマンドを取り扱う動作を示すフローチャートである。
画像復号化装置200は、図9に示すステップS500〜S503と同様の動作を実行する(ステップS600〜S603)。
画像復号化装置200のメモリ情報制御部201は、ステップS602で、再送されたメモリ管理コマンドがあると判別したときには(ステップS602のYes)、再送されたメモリ管理コマンドの管理対象となるピクチャがIDRピクチャより前に復号化されたピクチャであるか否かを判定する(ステップS604)。この再送されたメモリ管理コマンドの管理対象となるピクチャとは、再送されたメモリ管理コマンドが例えば不要なメモリ領域を開放する(再利用可能とする)ように指示するコマンドである場合、その開放されるメモリ領域に保存されたピクチャのことである。
FIG. 10 is a flowchart showing an operation in which the image decoding apparatus 200 according to the present embodiment handles a memory management command based on an IDR picture and whether or not it is recent.
The image decoding device 200 performs the same operation as Steps S500 to S503 shown in FIG. 9 (Steps S600 to S603).
When the memory information control unit 201 of the image decoding device 200 determines in step S602 that there is a retransmitted memory management command (Yes in step S602), the picture to be managed by the retransmitted memory management command is an IDR. It is determined whether or not the picture has been decoded before the picture (step S604). The picture to be managed by the retransmitted memory management command is released when the retransmitted memory management command is, for example, a command instructing release of an unnecessary memory area (to enable reuse). Picture stored in a memory area.

ここで、メモリ情報制御部201は、IDRピクチャより前であると判定したときには(ステップS604のYes)、再送されたメモリ管理コマンドを実行せずに、処理を終了する。一方、IDRピクチャより前でないと判定したときには(ステップS604のNo)、メモリ情報制御部201は、図9に示すステップS504と同様、再送されたメモリ管理コマンドにより示されるピクチャ番号と同一のピクチャ番号が付与されたピクチャのうち、復号化順で最近のピクチャに対してそのメモリ管理コマンドを実行し(ステップS605)、処理を終了する。   Here, when the memory information control unit 201 determines that it is before the IDR picture (Yes in step S604), it ends the process without executing the retransmitted memory management command. On the other hand, when it is determined that the picture number is not before the IDR picture (No in step S604), the memory information control unit 201 determines the same picture number as the picture number indicated by the retransmitted memory management command as in step S504 shown in FIG. The memory management command is executed for the most recent picture in the decoding order among the pictures to which is added (step S605), and the process ends.

図11は、本実施の形態の画像復号化装置200が、IDRピクチャ及び編集点並びに最近か否かの判断に基づいて、メモリ管理コマンドを取り扱う動作を示すフローチャートである。
画像復号化装置200は、図10に示すステップS600〜S604と同様の動作を実行する(ステップS700〜S704)。
FIG. 11 is a flowchart showing an operation in which the image decoding apparatus 200 according to the present embodiment handles a memory management command based on an IDR picture, an edit point, and whether or not it is recent.
The image decoding device 200 performs the same operation as Steps S600 to S604 shown in FIG. 10 (Steps S700 to S704).

画像復号化装置200のメモリ情報制御部201は、ステップS704で、再送されたメモリ管理コマンドの管理対象となるピクチャがIDRピクチャよりも復号化順で前にはないと判定したときには(ステップS704のNo)、さらに、その管理対象となるピクチャが編集点よりも復号化順で前にあるか否かを判定する(ステップS705)。即ち、メモリ情報制御部201は、管理対象となるピクチャが編集点より前に復号化されたピクチャであるか否かを判定する。   When the memory information control unit 201 of the image decoding apparatus 200 determines in step S704 that the picture to be managed by the retransmitted memory management command does not precede the IDR picture in decoding order (step S704). No), it is further determined whether or not the picture to be managed is before the editing point in the decoding order (step S705). That is, the memory information control unit 201 determines whether the picture to be managed is a picture decoded before the edit point.

ここで、メモリ情報制御部201は、編集点よりも前にあると判定したときには(ステップS705のYes)、再送されたメモリ管理コマンドを実行せずに処理を終了する。一方、編集点より前にはないと判定したときには(ステップS705のNo)、メモリ情報制御部201は、図9に示すステップS504と同様、再送されたメモリ管理コマンドにより示されるピクチャ番号と同一のピクチャ番号が付与されたピクチャのうち、復号化順で最近のピクチャに対してそのメモリ管理コマンドを実行し(ステップS706)、処理を終了する。   Here, when the memory information control unit 201 determines that it is before the edit point (Yes in step S705), the process ends without executing the retransmitted memory management command. On the other hand, when it is determined that it is not before the edit point (No in step S705), the memory information control unit 201 determines the same as the picture number indicated by the retransmitted memory management command as in step S504 shown in FIG. The memory management command is executed for the most recent picture in the decoding order among the pictures to which the picture numbers have been assigned (step S706), and the process ends.

以上のように、本実施の形態の画像復号化装置200は、再送されたメモリ管理コマンドの管理対象となるピクチャが、編集点より前である場合や、IDRピクチャより前である場合は、そのメモリ管理コマンドを適用(実行)しないため、メモリ管理コマンドの管理対象となるピクチャが存在しないことに起因する誤動作の発生を防止することができる。   As described above, the image decoding apparatus 200 according to the present embodiment, when the picture to be managed by the retransmitted memory management command is before the edit point or before the IDR picture, Since the memory management command is not applied (executed), it is possible to prevent the occurrence of malfunction due to the absence of a picture to be managed by the memory management command.

また、本実施の形態の画像復号化装置200は、同一のピクチャ番号が付与されたピクチャのうち、現時点の符号化対象ピクチャまでの最近のピクチャに対してメモリ管理コマンドを適用するため、管理対象のピクチャを確実に特定することができる。
なお、本実施の形態では、不要なメモリを開放するように指示する内容のメモリ管理コマンドを例に挙げて説明したが、ピクチャに対するメモリ上の管理内容を示すメモリ管理コマンドであれば、短時間保存メモリに保存されているピクチャを長時間保存メモリに移動させるように指示する内容のメモリ管理コマンドであっても良い。
In addition, the image decoding apparatus 200 according to the present embodiment applies the memory management command to the most recent picture up to the current picture to be coded among the pictures assigned the same picture number. Can be reliably specified.
In the present embodiment, a memory management command having a content for instructing release of unnecessary memory has been described as an example. It may be a memory management command having an instruction to move the picture stored in the storage memory to the long-term storage memory.

また、本実施の形態では、再送されたメモリ管理コマンドの管理対象とするピクチャが符号化順でIDRピクチャよりも前にあるときに、そのメモリ管理コマンドの適用を禁止したが、管理対象のピクチャが符号化順でメモリ初期化コマンドよりも前にあるときに、適用を禁止しても良い。このメモリ初期化コマンドは、メモリに保存されている全ピクチャを消去してメモリを初期化し、ピクチャ番号を0にリセットするように指示するコマンドである。   Further, in the present embodiment, when the picture to be managed by the retransmitted memory management command is before the IDR picture in the coding order, the application of the memory management command is prohibited. May be prohibited when is in the encoding order before the memory initialization command. The memory initialization command is a command for erasing all pictures stored in the memory, initializing the memory, and resetting the picture number to 0.

更に、図11のフローチャートではステップS704、ステップS705、ステップS706をこの順序で全て実行するものとして説明したが、これらのステップは順不同で実行の順序を入れ替えてもよく、また実現簡単化のために一部のステップを省略しても良い。   Further, in the flowchart of FIG. 11, it has been described that steps S704, S705, and S706 are all executed in this order. However, these steps may be executed in any order and the order of execution may be changed. Some steps may be omitted.

(実施の形態3)
次に、本発明の実施の形態3について説明する。
(Embodiment 3)
Next, a third embodiment of the present invention will be described.

本実施の形態では、さらに、実施の形態1と実施の形態2で示した画像符号化方法または画像復号化方法の構成を実現するためのプログラムを、フレキシブルディスク等の記憶媒体に記録するようにすることにより、上記実施の形態で示した処理を、独立したコンピュータシステムにおいて簡単に実施することが可能となる。   In the present embodiment, a program for realizing the configuration of the image encoding method or the image decoding method shown in Embodiments 1 and 2 is recorded on a storage medium such as a flexible disk. Accordingly, the processing described in the above embodiment can be easily performed in an independent computer system.

図12は、上記実施の形態の画像符号化方法または画像復号化方法を格納したフレキシブルディスクを用いて、コンピュータシステムにより実施する場合の説明図である。   FIG. 12 is an explanatory diagram of a case where the image encoding method or the image decoding method according to the above embodiment is implemented by a computer system using a flexible disk storing the image encoding method or the image decoding method.

図12の(b)は、フレキシブルディスクの正面からみた外観、断面構造、及びフレキシブルディスクを示し、図12の(a)は、記録媒体本体であるフレキシブルディスクの物理フォーマットの例を示している。フレキシブルディスクFD1はケースF内に内蔵され、該ディスクの表面には、同心円状に外周からは内周に向かって複数のトラックTrが形成され、各トラックは角度方向に16のセクタSeに分割されている。従って、上記プログラムを格納したフレキシブルディスクでは、上記フレキシブルディスクFD1上に割り当てられた領域に、上記プログラムとしての画像符号化方法が記録されている。   FIG. 12B shows the appearance, cross-sectional structure, and flexible disk as viewed from the front of the flexible disk, and FIG. 12A shows an example of the physical format of the flexible disk that is the recording medium body. The flexible disk FD1 is built in the case F, and a plurality of tracks Tr are formed concentrically from the outer circumference toward the inner circumference on the surface of the disk, and each track is divided into 16 sectors Se in an angular direction. ing. Therefore, in the flexible disk storing the program, an image encoding method as the program is recorded in an area allocated on the flexible disk FD1.

また、図12の(c)は、フレキシブルディスクFD1に上記プログラムの記録再生を行うための構成を示す。上記プログラムをフレキシブルディスクFD1に記録する場合は、コンピュータシステムCsから上記プログラムとしての画像符号化方法または画像復号化方法をフレキシブルディスクドライブFDDを介して書き込む。また、フレキシブルディスクFD1内のプログラムにより上記画像符号化方法をコンピュータシステム中に構築する場合は、フレキシブルディスクドライブFDDによりプログラムをフレキシブルディスクFD1から読み出し、コンピュータシステムCsに転送する。   FIG. 12C shows a configuration for recording and reproducing the program on the flexible disk FD1. When the above program is recorded on the flexible disk FD1, the image encoding method or the image decoding method as the above program is written from the computer system Cs via the flexible disk drive FDD. When the image encoding method is constructed in a computer system using the program in the flexible disk FD1, the program is read from the flexible disk FD1 by the flexible disk drive FDD and transferred to the computer system Cs.

なお、上記説明では、記録媒体としてフレキシブルディスクを用いて説明を行ったが、光ディスクを用いても同様に行うことができる。また、記録媒体はこれに限らず、ICカード、ROMカセット等、プログラムを記録できるものであれば同様に実施することができる。
また、上記実施の形態に示した画像符号化方法・画像復号化方法は、携帯電話やカーナビゲーションシステム等の移動体通信機器やデジタルビデオカメラやデジタルスチールカメラ等の撮影機器にLSI等の半導体によって実装することが可能である。また、実装形式としては、符号化器・復号化器を両方持つ送受信型の端末の他に、符号化器のみの送信端末、復号化器のみの受信端末の3通りが考えられる。
In the above description, the description has been made using a flexible disk as a recording medium. However, the same description can be made using an optical disk. Further, the recording medium is not limited to this, and the present invention can be similarly implemented as long as the program can be recorded, such as an IC card or a ROM cassette.
In addition, the image encoding method and the image decoding method described in the above-described embodiment can be applied to a mobile communication device such as a mobile phone or a car navigation system or a photographing device such as a digital video camera or a digital still camera by using a semiconductor such as an LSI. It is possible to implement. In addition, as a mounting format, in addition to a transmission / reception type terminal having both an encoder and a decoder, three types of a transmission terminal including only an encoder and a reception terminal including only a decoder can be considered.

さらにここで、上記実施の形態で示した画像符号化方法や画像復号化方法の応用例とそれを用いたシステムを説明する。
図13は、コンテンツ配信サービスを実現するコンテンツ供給システムex100の全体構成を示すブロック図である。通信サービスの提供エリアを所望の大きさに分割し、各セル内にそれぞれ固定無線局である基地局ex107〜ex110が設置されている。
Further, here, application examples of the image encoding method and the image decoding method described in the above embodiment and a system using the same will be described.
FIG. 13 is a block diagram illustrating an overall configuration of a content supply system ex100 that realizes a content distribution service. A communication service providing area is divided into desired sizes, and base stations ex107 to ex110, which are fixed wireless stations, are installed in each cell.

このコンテンツ供給システムex100は、例えば、インターネットex101にインターネットサービスプロバイダex102および電話網ex104、および基地局ex107〜ex110を介して、コンピュータex111、PDA(personal digital assistant)ex112、カメラex113、携帯電話ex114、カメラ付きの携帯電話ex115などの各機器が接続される。   The content supply system ex100 includes, for example, a computer ex111, a PDA (personal digital assistant) ex112, a camera ex113, a mobile phone ex114, and a camera via the Internet service provider ex102 and the telephone network ex104, and the base stations ex107 to ex110. Each device such as a mobile phone ex115 with a tag is connected.

しかし、コンテンツ供給システムex100は図13のような組合せに限定されず、いずれかを組み合わせて接続するようにしてもよい。また、固定無線局である基地局ex107〜ex110を介さずに、各機器が電話網ex104に直接接続されてもよい。
カメラex113はデジタルビデオカメラ等の動画撮影が可能な機器である。また、携帯電話は、PDC(Personal Digital Communications)方式、CDMA(Code Division Multiple Access)方式、W−CDMA(Wideband-Code Division Multiple Access)方式、若しくはGSM(Global System for Mobile Communications)方式の携帯電話機、またはPHS(Personal Handyphone System)等であり、いずれでも構わない。
However, the content supply system ex100 is not limited to the combination as shown in FIG. 13, and may be connected in any combination. Further, each device may be directly connected to the telephone network ex104 without going through the base stations ex107 to ex110 which are fixed wireless stations.
The camera ex113 is a device capable of shooting moving images, such as a digital video camera. In addition, a mobile phone is a PDC (Personal Digital Communications) system, a CDMA (Code Division Multiple Access) system, a W-CDMA (Wideband-Code Division Multiple Access) system, or a GSM (Global System for Mobile Communications) system. Or PHS (Personal Handyphone System) or the like, and either may be used.

また、ストリーミングサーバex103は、カメラex113から基地局ex109、電話網ex104を通じて接続されており、カメラex113を用いてユーザが送信する符号化処理されたデータに基づいたライブ配信等が可能になる。撮影したデータの符号化処理はカメラex113で行っても、データの送信処理をするサーバ等で行ってもよい。また、カメラex116で撮影した動画データはコンピュータex111を介してストリーミングサーバex103に送信されてもよい。カメラex116はデジタルカメラ等の静止画、動画が撮影可能な機器である。この場合、動画データの符号化はカメラex116で行ってもコンピュータex111で行ってもどちらでもよい。また、符号化処理はコンピュータex111やカメラex116が有するLSIex117において処理することになる。なお、画像符号化・復号化用のソフトウェアをコンピュータex111等で読み取り可能な記録媒体である何らかの蓄積メディア(CD−ROM、フレキシブルディスク、ハードディスクなど)に組み込んでもよい。さらに、カメラ付きの携帯電話ex115で動画データを送信してもよい。このときの動画データは携帯電話ex115が有するLSIで符号化処理されたデータである。   The streaming server ex103 is connected from the camera ex113 to the base station ex109 and the telephone network ex104, and enables live distribution and the like based on the encoded data transmitted by the user using the camera ex113. The encoding process of the captured data may be performed by the camera ex113, or may be performed by a server or the like that performs the data transmission process. Also, moving image data captured by the camera ex116 may be transmitted to the streaming server ex103 via the computer ex111. The camera ex116 is a device such as a digital camera capable of shooting still images and moving images. In this case, encoding of the moving image data may be performed by the camera ex116 or the computer ex111. The encoding process is performed by the LSI ex117 included in the computer ex111 and the camera ex116. The image encoding / decoding software may be incorporated in any storage medium (CD-ROM, flexible disk, hard disk, or the like) that is a recording medium readable by the computer ex111 or the like. Further, the moving image data may be transmitted by a mobile phone with camera ex115. The moving image data at this time is data that has been encoded by the LSI included in the mobile phone ex115.

このコンテンツ供給システムex100では、ユーザがカメラex113、カメラex116等で撮影しているコンテンツ(例えば、音楽ライブを撮影した映像等)を上記実施の形態同様に符号化処理してストリーミングサーバex103に送信する一方で、ストリーミングサーバex103は要求のあったクライアントに対して上記コンテンツデータをストリーム配信する。クライアントとしては、上記符号化処理されたデータを復号化することが可能な、コンピュータex111、PDAex112、カメラex113、携帯電話ex114等がある。このようにすることでコンテンツ供給システムex100は、符号化されたデータをクライアントにおいて受信して再生することができ、さらにクライアントにおいてリアルタイムで受信して復号化し、再生することにより、個人放送をも実現可能になるシステムである。   In the content supply system ex100, the content (for example, a video of a live music shot) captured by the user with the camera ex113, the camera ex116, or the like is encoded and transmitted to the streaming server ex103 in the same manner as in the above embodiment. On the other hand, the streaming server ex103 stream-distributes the content data to the requesting client. Examples of the client include a computer ex111, a PDA ex112, a camera ex113, a mobile phone ex114, and the like, which are capable of decoding the encoded data. In this way, the content providing system ex100 can receive and reproduce the encoded data on the client, and further, can receive, decode, and reproduce the encoded data on the client in real time, thereby realizing personal broadcasting. It is a system that becomes possible.

このシステムを構成する各機器の符号化、復号化には上記各実施の形態で示した画像符号化装置あるいは画像復号化装置を用いるようにすればよい。   The encoding and decoding of each device constituting this system may be performed using the image encoding device or the image decoding device described in each of the above embodiments.

その一例として携帯電話について説明する。
図14は、上記実施の形態で説明した画像符号化方法と画像復号化方法を用いた携帯電話ex115を示す図である。携帯電話ex115は、基地局ex110との間で電波を送受信するためのアンテナex201、CCDカメラ等の映像、静止画を撮ることが可能なカメラ部ex203、カメラ部ex203で撮影した映像、アンテナex201で受信した映像等が復号化されたデータを表示する液晶ディスプレイ等の表示部ex202、操作キーex204群から構成される本体部、音声出力をするためのスピーカ等の音声出力部ex208、音声入力をするためのマイク等の音声入力部ex205、撮影した動画もしくは静止画のデータ、受信したメールのデータ、動画のデータもしくは静止画のデータ等、符号化されたデータまたは復号化されたデータを保存するための記録メディアex207、携帯電話ex115に記録メディアex207を装着可能とするためのスロット部ex206を有している。記録メディアex207はSDカード等のプラスチックケース内に電気的に書換えや消去が可能な不揮発性メモリであるEEPROM(Electrically Erasable and Programmable Read Only Memory)の一種であるフラッシュメモリ素子を格納したものである。
A mobile phone will be described as an example.
FIG. 14 is a diagram illustrating the mobile phone ex115 using the image encoding method and the image decoding method described in the above embodiment. The mobile phone ex115 includes an antenna ex201 for transmitting and receiving radio waves to and from the base station ex110, a video image of a CCD camera or the like, a camera unit ex203 capable of taking a still image, a video image captured by the camera unit ex203, and an antenna ex201. A display unit ex202 such as a liquid crystal display for displaying data obtained by decoding a received video or the like, a main unit including a group of operation keys ex204, an audio output unit ex208 such as a speaker for outputting audio, and audio input. Input unit ex205 such as a microphone for storing encoded or decoded data, such as data of captured moving images or still images, received mail data, moving image data or still image data, etc. Recording medium ex207, and a slot ex20 for allowing the recording medium ex207 to be attached to the mobile phone ex115. The it has. The recording medium ex207 stores a flash memory element which is a kind of EEPROM (Electrically Erasable and Programmable Read Only Memory) which is a nonvolatile memory which can be electrically rewritten and erased, in a plastic case such as an SD card.

さらに、携帯電話ex115について図15を用いて説明する。携帯電話ex115は表示部ex202及び操作キーex204を備えた本体部の各部を統括的に制御するようになされた主制御部ex311に対して、電源回路部ex310、操作入力制御部ex304、画像符号化部ex312、カメラインターフェース部ex303、LCD(Liquid Crystal Display)制御部ex302、画像復号化部ex309、多重分離部ex308、記録再生部ex307、変復調回路部ex306及び音声処理部ex305が同期バスex313を介して互いに接続されている。   Further, the mobile phone ex115 will be described with reference to FIG. The mobile phone ex115 has a power supply circuit unit ex310, an operation input control unit ex304, an image encoding unit, and a main control unit ex311 that integrally controls each unit of a main unit including a display unit ex202 and operation keys ex204. Unit ex312, camera interface unit ex303, LCD (Liquid Crystal Display) control unit ex302, image decoding unit ex309, demultiplexing unit ex308, recording / reproducing unit ex307, modulation / demodulation circuit unit ex306, and audio processing unit ex305 via a synchronous bus ex313. Connected to each other.

電源回路部ex310は、ユーザの操作により終話及び電源キーがオン状態にされると、バッテリパックから各部に対して電力を供給することによりカメラ付ディジタル携帯電話ex115を動作可能な状態に起動する。
携帯電話ex115は、CPU、ROM及びRAM等でなる主制御部ex311の制御に基づいて、音声通話モード時に音声入力部ex205で集音した音声信号を音声処理部ex305によってディジタル音声データに変換し、これを変復調回路部ex306でスペクトラム拡散処理し、送受信回路部ex301でディジタルアナログ変換処理及び周波数変換処理を施した後にアンテナex201を介して送信する。また携帯電話機ex115は、音声通話モード時にアンテナex201で受信した受信データを増幅して周波数変換処理及びアナログディジタル変換処理を施し、変復調回路部ex306でスペクトラム逆拡散処理し、音声処理部ex305によってアナログ音声データに変換した後、これを音声出力部ex208を介して出力する。
The power supply circuit unit ex310 activates the camera-equipped digital mobile phone ex115 in an operable state by supplying power to each unit from the battery pack when the call end and the power key are turned on by a user operation. .
The mobile phone ex115 converts an audio signal collected by the audio input unit ex205 into digital audio data by the audio processing unit ex305 in the audio communication mode based on the control of the main control unit ex311 including a CPU, a ROM, a RAM, and the like. This is spread-spectrum processed by a modulation / demodulation circuit unit ex306, subjected to digital-analog conversion processing and frequency conversion processing by a transmission / reception circuit unit ex301, and then transmitted via an antenna ex201. The mobile phone ex115 amplifies the received data received by the antenna ex201 in the voice call mode, performs frequency conversion processing and analog-to-digital conversion processing, performs spectrum despreading processing in the modulation / demodulation circuit unit ex306, and performs analog voice decoding in the voice processing unit ex305. After the data is converted, the data is output via the audio output unit ex208.

さらに、データ通信モード時に電子メールを送信する場合、本体部の操作キーex204の操作によって入力された電子メールのテキストデータは操作入力制御部ex304を介して主制御部ex311に送出される。主制御部ex311は、テキストデータを変復調回路部ex306でスペクトラム拡散処理し、送受信回路部ex301でディジタルアナログ変換処理及び周波数変換処理を施した後にアンテナex201を介して基地局ex110へ送信する。   Further, when an e-mail is transmitted in the data communication mode, text data of the e-mail input by operating the operation key ex204 of the main body is sent to the main control unit ex311 via the operation input control unit ex304. The main control unit ex311 performs spread spectrum processing on the text data in the modulation / demodulation circuit unit ex306, performs digital / analog conversion processing and frequency conversion processing on the transmission / reception circuit unit ex301, and transmits the text data to the base station ex110 via the antenna ex201.

データ通信モード時に画像データを送信する場合、カメラ部ex203で撮像された画像データをカメラインターフェース部ex303を介して画像符号化部ex312に供給する。また、画像データを送信しない場合には、カメラ部ex203で撮像した画像データをカメラインターフェース部ex303及びLCD制御部ex302を介して表示部ex202に直接表示することも可能である。   When transmitting image data in the data communication mode, the image data captured by the camera unit ex203 is supplied to the image encoding unit ex312 via the camera interface unit ex303. When the image data is not transmitted, the image data captured by the camera unit ex203 can be directly displayed on the display unit ex202 via the camera interface unit ex303 and the LCD control unit ex302.

画像符号化部ex312は、本願発明で説明した画像符号化装置を備えた構成であり、カメラ部ex203から供給された画像データを上記実施の形態で示した画像符号化装置に用いた符号化方法によって圧縮符号化することにより符号化画像データに変換し、これを多重分離部ex308に送出する。また、このとき同時に携帯電話機ex115は、カメラ部ex203で撮像中に音声入力部ex205で集音した音声を音声処理部ex305を介してディジタルの音声データとして多重分離部ex308に送出する。   The image encoding unit ex312 includes the image encoding device described in the present invention, and uses the image data supplied from the camera unit ex203 in the encoding method used in the image encoding device described in the above embodiment. The image data is converted into encoded image data by compression encoding, and is transmitted to the demultiplexing unit ex308. Further, at this time, the mobile phone ex115 simultaneously transmits the voice collected by the voice input unit ex205 during imaging by the camera unit ex203 to the demultiplexing unit ex308 as digital voice data via the voice processing unit ex305.

多重分離部ex308は、画像符号化部ex312から供給された符号化画像データと音声処理部ex305から供給された音声データとを所定の方式で多重化し、その結果得られる多重化データを変復調回路部ex306でスペクトラム拡散処理し、送受信回路部ex301でディジタルアナログ変換処理及び周波数変換処理を施した後にアンテナex201を介して送信する。   The demultiplexing unit ex308 multiplexes the encoded image data supplied from the image encoding unit ex312 and the audio data supplied from the audio processing unit ex305 by a predetermined method, and modulates and outputs the resulting multiplexed data. The signal is subjected to spread spectrum processing in ex306 and subjected to digital / analog conversion processing and frequency conversion processing in the transmission / reception circuit unit ex301, and then transmitted via the antenna ex201.

データ通信モード時にホームページ等にリンクされた動画像ファイルのデータを受信する場合、アンテナex201を介して基地局ex110から受信した受信データを変復調回路部ex306でスペクトラム逆拡散処理し、その結果得られる多重化データを多重分離部ex308に送出する。
また、アンテナex201を介して受信された多重化データを復号化するには、多重分離部ex308は、多重化データを分離することにより画像データのビットストリームと音声データのビットストリームとに分け、同期バスex313を介して当該符号化画像データを画像復号化部ex309に供給すると共に当該音声データを音声処理部ex305に供給する。
When data of a moving image file linked to a homepage or the like is received in the data communication mode, the data received from the base station ex110 via the antenna ex201 is subjected to spectrum despreading processing by the modulation / demodulation circuit unit ex306, and the resulting multiplexed data The demultiplexed data is sent to the demultiplexing unit ex308.
To decode the multiplexed data received via the antenna ex201, the demultiplexing unit ex308 separates the multiplexed data into a bit stream of image data and a bit stream of audio data, and performs synchronization. The coded image data is supplied to the image decoding unit ex309 via the bus ex313, and the audio data is supplied to the audio processing unit ex305.

次に、画像復号化部ex309は、本願発明で説明した画像復号化装置を備えた構成であり、画像データのビットストリームを上記実施の形態で示した符号化方法に対応した復号化方法で復号することにより再生動画像データを生成し、これをLCD制御部ex302を介して表示部ex202に供給し、これにより、例えばホームページにリンクされた動画像ファイルに含まれる動画データが表示される。このとき同時に音声処理部ex305は、音声データをアナログ音声データに変換した後、これを音声出力部ex208に供給し、これにより、例えばホームページにリンクされた動画像ファイルに含まる音声データが再生される。   Next, the image decoding unit ex309 is configured to include the image decoding device described in the present invention, and decodes a bit stream of image data by a decoding method corresponding to the encoding method described in the above embodiment. Thereby, reproduced moving image data is generated and supplied to the display unit ex202 via the LCD control unit ex302, whereby, for example, moving image data included in a moving image file linked to a homepage is displayed. At this time, at the same time, the audio processing unit ex305 converts the audio data into analog audio data, and then supplies the analog audio data to the audio output unit ex208, whereby, for example, the audio data included in the moving image file linked to the homepage is reproduced. You.

なお、上記システムの例に限られず、最近は衛星、地上波によるディジタル放送が話題となっており、図16に示すようにディジタル放送用システムにも上記実施の形態の少なくとも画像符号化装置または画像復号化装置のいずれかを組み込むことができる。具体的には、放送局ex409では映像情報のビットストリームが電波を介して通信または放送衛星ex410に伝送される。これを受けた放送衛星ex410は、放送用の電波を発信し、この電波を衛星放送受信設備をもつ家庭のアンテナex406で受信し、テレビ(受信機)ex401またはセットトップボックス(STB)ex407などの装置によりビットストリームを復号化してこれを再生する。また、記録媒体であるCDやDVD等の蓄積メディアex402に記録したビットストリームを読み取り、復号化する再生装置ex403にも上記実施の形態で示した画像復号化装置を実装することが可能である。この場合、再生された映像信号はモニタex404に表示される。また、ケーブルテレビ用のケーブルex405または衛星/地上波放送のアンテナex406に接続されたセットトップボックスex407内に画像復号化装置を実装し、これをテレビのモニタex408で再生する構成も考えられる。このときセットトップボックスではなく、テレビ内に画像復号化装置を組み込んでも良い。また、アンテナex411を有する車ex412で衛星ex410からまたは基地局ex107等から信号を受信し、車ex412が有するカーナビゲーションex413等の表示装置に動画を再生することも可能である。   It should be noted that the present invention is not limited to the example of the above system, and digital broadcasting using satellites and terrestrial waves has recently become a hot topic. As shown in FIG. Any of the decoding devices can be incorporated. Specifically, at the broadcasting station ex409, the bit stream of the video information is transmitted to the communication or the broadcasting satellite ex410 via radio waves. The broadcasting satellite ex410 receiving this transmits a radio wave for broadcasting, receives this radio wave with a home antenna ex406 having satellite broadcasting receiving equipment, and outputs the radio wave to a television (receiver) ex401 or a set-top box (STB) ex407 or the like. The device decodes the bit stream and reproduces it. In addition, the image decoding device described in the above embodiment can be mounted on a reproducing device ex403 that reads and decodes a bit stream recorded on a storage medium ex402 such as a CD or DVD, which is a recording medium. In this case, the reproduced video signal is displayed on the monitor ex404. A configuration is also conceivable in which an image decoding device is mounted in a set-top box ex407 connected to a cable ex405 for cable television or an antenna ex406 for satellite / terrestrial broadcasting, and this is reproduced on a monitor ex408 of the television. At this time, the image decoding device may be incorporated in the television instead of the set-top box. In addition, a car ex412 having an antenna ex411 can receive a signal from the satellite ex410 or a base station ex107 or the like, and can reproduce a moving image on a display device such as a car navigation ex413 included in the car ex412.

更に、画像信号を上記実施の形態で示した画像符号化装置で符号化し、記録媒体に記録することもできる。具体例としては、DVDディスクex421に画像信号を記録するDVDレコーダや、ハードディスクに記録するディスクレコーダなどのレコーダex420がある。更にSDカードex422に記録することもできる。レコーダex420が上記実施の形態で示した画像復号化装置を備えていれば、DVDディスクex421やSDカードex422に記録した画像信号を再生し、モニタex408で表示することができる。   Further, an image signal can be encoded by the image encoding device described in the above embodiment and recorded on a recording medium. As a specific example, there is a recorder ex420 such as a DVD recorder for recording an image signal on a DVD disc ex421 or a disc recorder for recording on a hard disk. Furthermore, it can be recorded on the SD card ex422. If the recorder ex420 includes the image decoding device described in the above embodiment, the image signal recorded on the DVD disc ex421 or the SD card ex422 can be reproduced and displayed on the monitor ex408.

なお、カーナビゲーションex413の構成は例えば図15に示す構成のうち、カメラ部ex203とカメラインターフェース部ex303、画像符号化部ex312を除いた構成が考えられ、同様なことがコンピュータex111やテレビ(受信機)ex401等でも考えられる。   The configuration of the car navigation ex413 may be, for example, a configuration excluding the camera unit ex203, the camera interface unit ex303, and the image encoding unit ex312 from the configuration illustrated in FIG. 15, and the same applies to the computer ex111 and the television (receiver). ) Ex401 and the like are also conceivable.

また、上記携帯電話ex114等の端末は、符号化器・復号化器を両方持つ送受信型の端末の他に、符号化器のみの送信端末、復号化器のみの受信端末の3通りの実装形式が考えられる。   In addition, the terminal such as the above-mentioned mobile phone ex114 has three mounting formats, in addition to a transmitting / receiving terminal having both an encoder and a decoder, a transmitting terminal having only an encoder and a receiving terminal having only a decoder. Can be considered.

このように、上記実施の形態で示した画像符号化方法あるいは画像復号化方法を上述したいずれの機器・システムに用いることは可能であり、そうすることで、上記実施の形態で説明した効果を得ることができる。
また、本発明はかかる上記実施の形態に限定されるものではなく、本発明の範囲を逸脱することなく種々の変形または修正が可能である。
As described above, the image encoding method or the image decoding method described in the above embodiment can be used for any of the devices and systems described above, and by doing so, the effects described in the above embodiment can be obtained. Obtainable.
Further, the present invention is not limited to the above embodiment, and various changes or modifications can be made without departing from the scope of the present invention.

本発明に係る画像符号化方法及び画像復号化方法は、コマンドの再送に起因する誤動作の発生を防止することができ、本画像符号化方法で画像を符号化する例えばビデオカメラや録画機能付き携帯電話などの画像符号化装置や、本画像復号化方法で符号化信号を復号化するパーソナルコンピュータや携帯電話などの画像復号化装置に適用できる。   The image encoding method and the image decoding method according to the present invention can prevent the occurrence of a malfunction due to retransmission of a command, and can encode an image by the image encoding method, for example, a video camera or a mobile phone with a recording function. The present invention can be applied to an image encoding device such as a telephone, or an image decoding device such as a personal computer or a mobile phone that decodes an encoded signal by the image decoding method.

本発明の実施の形態1に係る画像符号化方法を実現する画像符号化装置の構成を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration of an image encoding device that implements an image encoding method according to Embodiment 1 of the present invention. (a)及び(b)は、いずれも本発明の実施の形態1を説明するために用いる各ピクチャを示す図である。(A) and (b) are diagrams each showing a picture used for explaining the first embodiment of the present invention. 本発明の実施の形態1におけるストリームの編集を説明するために用いる各ピクチャを示す図である。FIG. 3 is a diagram showing pictures used to explain stream editing in Embodiment 1 of the present invention. 本発明の実施の形態1における画像符号化装置がIDRピクチャに基づいてメモリ管理コマンドの再符号化を行う動作を示すフローチャートである。5 is a flowchart showing an operation of the image encoding device in Embodiment 1 of the present invention for re-encoding a memory management command based on an IDR picture. 本発明の実施の形態1における画像符号化装置がIDRピクチャ及び最近か否かの判断に基づいてメモリ管理コマンドの再符号化を行う動作を示すフローチャートである。5 is a flowchart showing an operation of the image encoding apparatus in Embodiment 1 of the present invention for re-encoding a memory management command based on an IDR picture and whether or not it is recent. 本発明の実施の形態1における画像符号化装置が画像符号化信号の編集を行う動作を示すフローチャートである。6 is a flowchart showing an operation of the image encoding device in Embodiment 1 of the present invention for editing an image encoded signal. 本発明の実施の形態1における画像符号化装置が、IDRピクチャ及び最近か否かの判断並びに編集点に基づいて、メモリ管理コマンドの再符号化を行う動作を示すフローチャートである。6 is a flowchart showing an operation of the image encoding device in Embodiment 1 of the present invention for re-encoding a memory management command based on an IDR picture, whether or not it is recent, and an editing point. 本発明の実施の形態2における画像復号化方法を実現する画像復号化装置の構成を示すブロック図である。FIG. 13 is a block diagram illustrating a configuration of an image decoding device that implements an image decoding method according to Embodiment 2 of the present invention. 本発明の実施の形態2における画像復号化装置が、最近か否かの判断に基づいてメモリ管理コマンドを取り扱う動作を示すフローチャートである。15 is a flowchart showing an operation of the image decoding apparatus according to Embodiment 2 of the present invention for handling a memory management command based on a determination as to whether or not it is recent. 本発明の実施の形態2における画像復号化装置が、IDRピクチャ及び最近か否かの判断に基づいて、メモリ管理コマンドを取り扱う動作を示すフローチャートである。15 is a flowchart showing an operation of the image decoding apparatus according to Embodiment 2 of the present invention for handling a memory management command based on an IDR picture and whether or not it is recent. 本発明の実施の形態2における画像復号化装置が、IDRピクチャ及び編集点並びに最近か否かの判断に基づいて、メモリ管理コマンドを取り扱う動作を示すフローチャートである。15 is a flowchart showing an operation of the image decoding apparatus according to the second embodiment of the present invention for handling a memory management command based on an IDR picture, an edit point, and a determination as to whether or not it is recent. (a)及び(b)並びに(c)は、本発明の実施の形態3における記憶媒体についての説明図である。(a), (b) and (c) are illustrations of a storage medium according to Embodiment 3 of the present invention. 本発明の実施の形態4におけるコンテンツ供給システムの全体構成を示すブロック図である。FIG. 13 is a block diagram illustrating an overall configuration of a content supply system according to Embodiment 4 of the present invention. 本発明の実施の形態4における携帯電話の一例を示す外観図である。FIG. 14 is an external view showing an example of a mobile phone according to Embodiment 4 of the present invention. 本発明の実施の形態4における携帯電話の構成を示すブロック図である。FIG. 13 is a block diagram illustrating a configuration of a mobile phone according to a fourth embodiment of the present invention. 本発明の実施の形態4におけるディジタル放送用システムの構成を示す構成図である。FIG. 14 is a configuration diagram illustrating a configuration of a digital broadcasting system according to a fourth embodiment of the present invention.

符号の説明Explanation of reference numerals

100 画像符号化装置
101 メモリ情報制御部
102 短時間保存メモリ管理部
103 長時間保存メモリ管理部
104 非保存メモリ管理情報部
105 管理情報符号化部
106 参照画像選択部
107 保存領域指定部
108 参照領域指定部
109 画像メモリ
110 画像符号化部
111 画像復号化部
112 可変長符号化部
113 カウンタ
114 カウンタ
200 画像復号化装置
201 メモリ情報制御部
202 短時間保存メモリ管理部
203 長時間保存メモリ管理部
205 管理情報復号化部
207 保存領域指定部
208 参照領域指定部
209 画像メモリ
210 画像復号化部
212 可変長復号化部
215 編集検出部
CSt メモリ管理情報ストリーム
H 編集点
PT ピクチャタイプ情報
Pri 重要度指示信号
VSt 画像符号化ストリーム
Vin 入力画像信号
Vout 復号画像信号
Y 画像符号化ストリーム
REFERENCE SIGNS LIST 100 Image encoding device 101 Memory information control unit 102 Short-term storage memory management unit 103 Long-term storage memory management unit 104 Non-storage memory management information unit 105 Management information encoding unit 106 Reference image selection unit 107 Storage region designation unit 108 Reference region Designating unit 109 Image memory 110 Image encoding unit 111 Image decoding unit 112 Variable length encoding unit 113 Counter 114 Counter 200 Image decoding device 201 Memory information control unit 202 Short-time storage memory management unit 203 Long-time storage memory management unit 205 Management information decoding section 207 storage area specifying section 208 reference area specifying section 209 image memory 210 image decoding section 212 variable length decoding section 215 edit detection section CSt memory management information stream H editing point PT picture type information Pri importance indication signal VSt image Image encoded stream Vin Input image signal Vout Decoded image signal Y Image encoded stream

Claims (12)

動画像信号に含まれる各ピクチャに対して所定のピクチャ数単位で符号化順にピクチャ番号を割り当て、各ピクチャごとに符号化を行うことで画像符号化信号を生成する画像符号化方法であって、
所定のピクチャ番号の第1のピクチャに対するメモリ上の管理内容を示すメモリ管理コマンドを、前記第1のピクチャと異なる第2のピクチャに付加する付加ステップと、
前記メモリ管理コマンドを前記画像符号化信号中の前記第2のピクチャ以外の付加対象部位に再付加する再付加ステップとを含み、
前記再付加ステップは、
前記付加対象部位までの画像符号化信号に含まれる前記所定のピクチャ番号のピクチャの中で、前記第1のピクチャが符号化順で前記付加対象部位の直前にあるか否かを判別する判別サブステップと、
前記判別サブステップで直前にないと判別されたときには、前記メモリ管理コマンドの再付加を禁止する禁止サブステップとを含む
ことを特徴とする画像符号化方法。
An image encoding method for generating a picture encoded signal by assigning a picture number to each picture included in a moving image signal in a coding order in a predetermined picture number unit and performing encoding for each picture,
An adding step of adding, to a second picture different from the first picture, a memory management command indicating the management content on the memory for the first picture of the predetermined picture number;
Re-adding the memory management command to an addition target portion other than the second picture in the image coded signal,
The re-adding step includes:
A determination sub-determine for determining whether or not the first picture is immediately before the addition target portion in the coding order among pictures of the predetermined picture number included in the image coded signal up to the addition target portion; Steps and
A prohibition sub-step of prohibiting the re-addition of the memory management command when it is determined in the determination sub-step that it is not immediately before the image coding method.
前記判別サブステップでは、さらに、
前記第1のピクチャが、画像符号化信号中の基準点よりも符号化順で前方にあるか否かを判別し、
前記禁止サブステップでは、さらに、
前記判別サブステップで前方にあると判別されたときには、前記メモリ管理コマンドの再付加を禁止する
ことを特徴とする請求項1記載の画像符号化方法。
In the determining sub-step, further,
Determining whether the first picture is ahead of the reference point in the image coded signal in coding order,
The prohibition sub-step further includes:
The image encoding method according to claim 1, wherein when it is determined in the determination sub-step that the memory management command is located ahead, re-addition of the memory management command is prohibited.
前記判別サブステップでは、
前記画像符号化信号の連続性が編集によって失われた編集点を前記基準点として扱う
ことを特徴とする請求項2記載の画像符号化方法。
In the determining sub-step,
The image encoding method according to claim 2, wherein an edit point at which continuity of the image encoded signal is lost by editing is treated as the reference point.
前記判別サブステップでは、
メモリを初期化するように促す情報を含めて符号化されたピクチャを前記基準点として扱う
ことを特徴とする請求項2記載の画像符号化方法。
In the determining sub-step,
The image encoding method according to claim 2, wherein a picture encoded including information prompting to initialize a memory is treated as the reference point.
動画像信号がピクチャ単位で符号化された画像符号化信号を、各ピクチャに対して所定のピクチャ数単位で復号化順に割り当てられたピクチャ番号を用いて復号化する画像復号化方法であって、
所定のピクチャ番号のピクチャに対するメモリ上の管理内容を示すメモリ管理コマンドが前記画像符号信号中に付加されているか否かを判別する判別ステップと、
前記判別ステップでメモリ管理コマンドが付加されていると判別されたときには、前記メモリ管理コマンドまでの画像符号化信号に含まれる前記所定のピクチャ番号のピクチャの中から、復号化順で前記メモリ管理コマンドの直前にあるピクチャを選択する選択ステップと、
前記選択ステップで選択されたピクチャに対して、前記メモリ管理コマンドにより示される管理内容を実行する実行ステップと
を含むことを特徴とする画像復号化方法。
An image decoding method for decoding an image coded signal in which a moving image signal is coded in picture units, using a picture number assigned in a decoding order to each picture in a predetermined picture number unit,
A determination step of determining whether or not a memory management command indicating management content on a memory for a picture having a predetermined picture number is added to the image code signal;
When it is determined in the determining step that the memory management command is added, the memory management command is decoded in the decoding order from among the pictures of the predetermined picture number included in the image coded signal up to the memory management command. A selection step of selecting a picture immediately before
Executing the management content indicated by the memory management command on the picture selected in the selection step.
前記画像復号化方法は、さらに、
前記判別ステップでメモリ管理コマンドが付加されていると判別されたときには、前記メモリ管理コマンドの対象となるピクチャが前記画像符号化信号中の基準点よりも復号化順で前方にあるか否かを判別する基準点判別ステップと、
前記基準点判別ステップで、前記第1のピクチャが前記基準点よりも前方にあると判別されたときには、前記メモリ管理コマンドにより示される管理内容を無効とする管理無効ステップと
を含むことを特徴とする請求項5記載の画像復号化方法。
The image decoding method further includes:
When it is determined in the determining step that the memory management command is added, it is determined whether or not the picture targeted by the memory management command is ahead of the reference point in the image coded signal in the decoding order. A reference point determining step of determining;
A management invalidating step of invalidating the management content indicated by the memory management command when the first picture is determined to be ahead of the reference point in the reference point determining step. The image decoding method according to claim 5, wherein
前記基準点判別ステップでは、
前記画像符号化信号の連続性が編集によって失われた編集点を前記基準点として扱う
ことを特徴とする請求項6記載の画像復号化方法。
In the reference point determining step,
The image decoding method according to claim 6, wherein an edit point at which continuity of the image coded signal is lost by editing is treated as the reference point.
前記基準点判別ステップでは、
メモリを初期化するように促す情報を含めて符号化されたピクチャを前記基準点として扱う
ことを特徴とする請求項6記載の画像復号化方法。
In the reference point determining step,
7. The image decoding method according to claim 6, wherein a picture encoded including information prompting to initialize a memory is treated as the reference point.
動画像信号に含まれる各ピクチャに対して所定のピクチャ数単位で符号化順にピクチャ番号を割り当て、各ピクチャごとに符号化を行うことで画像符号化信号を生成する画像符号化装置であって、
所定のピクチャ番号の第1のピクチャに対するメモリ上の管理内容を示すメモリ管理コマンドを、前記第1のピクチャと異なる第2のピクチャに付加する付加手段と、
前記メモリ管理コマンドを前記画像符号化信号中の前記第2のピクチャ以外の付加対象部位に再付加する再付加手段とを備え、
前記再付加手段は、
前記付加対象部位までの画像符号化信号に含まれる前記所定のピクチャ番号のピクチャの中で、前記第1のピクチャが符号化順で前記付加対象部位の直前にあるか否かを判別する判別手段と、
前記判別手段で最前にないと判別されたときには、前記メモリ管理コマンドの再付加を禁止する禁止手段とを備える
ことを特徴とする画像符号化装置。
An image encoding apparatus that assigns a picture number to each picture included in a moving image signal in an encoding order in a predetermined picture number unit and generates an encoded image signal by performing encoding for each picture,
Adding means for adding a memory management command indicating the management content on the memory for the first picture of the predetermined picture number to a second picture different from the first picture;
Re-adding means for re-adding the memory management command to an addition target portion other than the second picture in the image encoded signal,
The re-adding means,
Judging means for judging whether or not the first picture is immediately before the addition target portion in a coding order among pictures of the predetermined picture number included in the image coded signal up to the addition target portion; When,
An image encoding apparatus, comprising: a prohibition unit that prohibits re-addition of the memory management command when the determination unit determines that it is not the first.
動画像信号がピクチャ単位で符号化された画像符号化信号を、各ピクチャに対して所定のピクチャ数単位で復号化順に割り当てられたピクチャ番号を用いて復号化する画像復号化装置であって、
所定のピクチャ番号のピクチャに対するメモリ上の管理内容を示すメモリ管理コマンドが前記画像符号信号中に付加されているか否かを判別する判別手段と、
前記判別手段でメモリ管理コマンドが付加されていると判別されたときには、前記メモリ管理コマンドまでの画像符号化信号に含まれる前記所定のピクチャ番号のピクチャの中から、復号化順で前記メモリ管理コマンドの直前にあるピクチャを選択する選択手段と、
前記選択手段で選択されたピクチャに対して、前記メモリ管理コマンドにより示される管理内容を実行する実行手段と
を備えることを特徴とする画像復号化装置。
An image decoding apparatus for decoding an image coded signal in which a moving image signal is coded in units of pictures, using picture numbers assigned in a decoding order to each picture in a predetermined number of pictures,
Determining means for determining whether or not a memory management command indicating management content on a memory for a picture having a predetermined picture number is added to the image code signal;
When the determining means determines that the memory management command is added, the memory management command is decoded in the decoding order from among the pictures having the predetermined picture number included in the image coded signal up to the memory management command. Selecting means for selecting a picture immediately before
Executing means for executing the management content indicated by the memory management command with respect to the picture selected by the selecting means.
動画像信号に含まれる各ピクチャに対して所定のピクチャ数単位で符号化順にピクチャ番号を割り当て、各ピクチャごとに符号化を行うことで画像符号化信号を生成するためのプログラムであって、
所定のピクチャ番号の第1のピクチャに対するメモリ上の管理内容を示すメモリ管理コマンドを、前記第1のピクチャと異なる第2のピクチャに付加する付加ステップと、
前記メモリ管理コマンドを前記画像符号化信号中の前記第2のピクチャ以外の付加対象部位に再付加する再付加ステップと
をコンピュータに実行させるとともに、
前記再付加ステップでは、
前記付加対象部位までの画像符号化信号に含まれる前記所定のピクチャ番号のピクチャの中で、前記第1のピクチャが符号化順で前記付加対象部位の直前にあるか否かを判別する判別サブステップと、
前記判別サブステップで直前にないと判別されたときには、前記メモリ管理コマンドの再付加を禁止する禁止サブステップと
をコンピュータに実行させることを特徴とするプログラム。
A program for generating a picture coded signal by assigning a picture number to each picture included in the moving picture signal in a coding order in a predetermined picture number unit and performing coding for each picture,
An adding step of adding, to a second picture different from the first picture, a memory management command indicating the management content on the memory for the first picture of the predetermined picture number;
Re-adding the memory management command to an addition target portion other than the second picture in the image coded signal.
In the re-adding step,
A determination sub-determine for determining whether or not the first picture is immediately before the addition target portion in the coding order among pictures of the predetermined picture number included in the image coded signal up to the addition target portion; Steps and
And a prohibition sub-step of prohibiting re-attachment of the memory management command when it is determined in the determination sub-step that the current time is not immediately before.
動画像信号がピクチャ単位で符号化された画像符号化信号を、各ピクチャに対して所定のピクチャ数単位で復号化順に割り当てられたピクチャ番号を用いて復号化するためのプログラムであって、
所定のピクチャ番号の第1のピクチャに対するメモリ上の管理内容を示すメモリ管理コマンドが前記画像符号信号中に付加されているか否かを判別する判別ステップと、
前記判別ステップでメモリ管理コマンドが付加されていると判別されたときには、前記メモリ管理コマンドまでの画像符号化信号に含まれる前記所定のピクチャ番号のピクチャの中から、復号化順で前記メモリ管理コマンドの直前にあるピクチャを選択する選択ステップと、
前記選択ステップで選択されたピクチャに対して、前記メモリ管理コマンドにより示される管理内容を実行する実行ステップと
をコンピュータに実行させることを特徴とするプログラム。
A program for decoding an image coded signal in which a moving image signal is coded in units of pictures, using a picture number assigned to each picture in a decoding order in a predetermined number of pictures,
A determining step of determining whether or not a memory management command indicating a management content on a memory for a first picture of a predetermined picture number is added to the image code signal;
When it is determined in the determining step that the memory management command is added, the memory management command is decoded in the decoding order from among the pictures of the predetermined picture number included in the image coded signal up to the memory management command. A selection step of selecting a picture immediately before
And (c) executing a management content indicated by the memory management command on the picture selected in the selection step.
JP2004039528A 2003-03-03 2004-02-17 Image coding method, image coding apparatus, and program Expired - Lifetime JP4544879B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004039528A JP4544879B2 (en) 2003-03-03 2004-02-17 Image coding method, image coding apparatus, and program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2003056135 2003-03-03
JP2004039528A JP4544879B2 (en) 2003-03-03 2004-02-17 Image coding method, image coding apparatus, and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2010106751A Division JP5256243B2 (en) 2003-03-03 2010-05-06 Image decoding method, image decoding apparatus and program

Publications (2)

Publication Number Publication Date
JP2004289808A true JP2004289808A (en) 2004-10-14
JP4544879B2 JP4544879B2 (en) 2010-09-15

Family

ID=33302005

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004039528A Expired - Lifetime JP4544879B2 (en) 2003-03-03 2004-02-17 Image coding method, image coding apparatus, and program

Country Status (1)

Country Link
JP (1) JP4544879B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007116604A (en) * 2005-10-24 2007-05-10 Nec Corp Encoder, its stream switching control method, decoder, and codec device
WO2008105389A1 (en) 2007-02-28 2008-09-04 Sony Corporation Image information coding device and coding method
JP2011182452A (en) * 2005-09-27 2011-09-15 Qualcomm Inc Channel exchange frame
JP2012178839A (en) * 2005-04-28 2012-09-13 Apple Inc Video processing in multi-participant video conference
US8612498B2 (en) 2005-09-27 2013-12-17 Qualcomm, Incorporated Channel switch frame
US8670437B2 (en) 2005-09-27 2014-03-11 Qualcomm Incorporated Methods and apparatus for service acquisition
US8761162B2 (en) 2006-11-15 2014-06-24 Qualcomm Incorporated Systems and methods for applications using channel switch frames

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003289544A (en) * 2002-03-27 2003-10-10 Sony Corp Image information encoding apparatus and method, image information decoding apparatus and method, and program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003289544A (en) * 2002-03-27 2003-10-10 Sony Corp Image information encoding apparatus and method, image information decoding apparatus and method, and program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012178839A (en) * 2005-04-28 2012-09-13 Apple Inc Video processing in multi-participant video conference
JP2011182452A (en) * 2005-09-27 2011-09-15 Qualcomm Inc Channel exchange frame
US8612498B2 (en) 2005-09-27 2013-12-17 Qualcomm, Incorporated Channel switch frame
US8670437B2 (en) 2005-09-27 2014-03-11 Qualcomm Incorporated Methods and apparatus for service acquisition
JP2007116604A (en) * 2005-10-24 2007-05-10 Nec Corp Encoder, its stream switching control method, decoder, and codec device
US8761162B2 (en) 2006-11-15 2014-06-24 Qualcomm Incorporated Systems and methods for applications using channel switch frames
WO2008105389A1 (en) 2007-02-28 2008-09-04 Sony Corporation Image information coding device and coding method
US8711931B2 (en) 2007-02-28 2014-04-29 Sony Corporation Picture information coding device and coding method

Also Published As

Publication number Publication date
JP4544879B2 (en) 2010-09-15

Similar Documents

Publication Publication Date Title
JP5256243B2 (en) Image decoding method, image decoding apparatus and program
CN100438631C (en) Image encoding method and image encoding device
JP4544879B2 (en) Image coding method, image coding apparatus, and program
CN101483773B (en) Image encoding method and image encoding device
JP4531846B2 (en) Encoding method and encoding apparatus
KR100962815B1 (en) Image coding method and image decoding method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070112

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100302

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100506

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

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

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

Free format text: PAYMENT UNTIL: 20130709

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4544879

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S131 Request for trust registration of transfer of right

Free format text: JAPANESE INTERMEDIATE CODE: R313135

SZ02 Written request for trust registration

Free format text: JAPANESE INTERMEDIATE CODE: R313Z02

S131 Request for trust registration of transfer of right

Free format text: JAPANESE INTERMEDIATE CODE: R313135

SZ02 Written request for trust registration

Free format text: JAPANESE INTERMEDIATE CODE: R313Z02

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S131 Request for trust registration of transfer of right

Free format text: JAPANESE INTERMEDIATE CODE: R313135

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term