JP5530408B2 - Image encoding method, image encoding apparatus, and recording medium - Google Patents

Image encoding method, image encoding apparatus, and recording medium Download PDF

Info

Publication number
JP5530408B2
JP5530408B2 JP2011184996A JP2011184996A JP5530408B2 JP 5530408 B2 JP5530408 B2 JP 5530408B2 JP 2011184996 A JP2011184996 A JP 2011184996A JP 2011184996 A JP2011184996 A JP 2011184996A JP 5530408 B2 JP5530408 B2 JP 5530408B2
Authority
JP
Japan
Prior art keywords
memory
image
picture
command
management information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2011184996A
Other languages
Japanese (ja)
Other versions
JP2012010394A (en
Inventor
眞也 角野
敏志 近藤
誠 羽飼
清史 安倍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP2011184996A priority Critical patent/JP5530408B2/en
Publication of JP2012010394A publication Critical patent/JP2012010394A/en
Application granted granted Critical
Publication of JP5530408B2 publication Critical patent/JP5530408B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

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

Description

本発明は、動画像信号を画面間の相関を利用して効率良く圧縮する画像符号化方法とそれを正しく復号化する画像復号化方法、並びにそれをソフトウェアで実施するためのプログラム等に関する。   The present invention relates to an image encoding method for efficiently compressing a moving image signal using correlation between screens, an image decoding method for correctly decoding the image signal, a program for implementing the same in software, and the like.

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

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

そこで、必要となってくるのが情報の圧縮技術であり、例えば、テレビ電話の場合、ITU−T(国際電気通信連合 電気通信標準化部門)で国際標準化されたH.261やH.263規格の動画圧縮技術が用いられている。また、MPEG−1規格の情報圧縮技術によると、通常の音楽用CD(コンパクト・ディスク)に音声情報とともに画像情報を入れることも可能となる。   Therefore, what is required is information compression technology. For example, in the case of a videophone, H.264 has been internationally standardized by ITU-T (International Telecommunication Union Telecommunication Standardization Sector). 261 and H.264. H.263 standard video compression technology is used. In addition, according to the information compression technology of the MPEG-1 standard, it is possible to put image information together with audio information on 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 has moving image signals up to 1.5 Mbps, that is, information of television signals is about 1/100. It is a standard that compresses up to. In addition, since the transmission speed for the MPEG-1 standard is mainly limited to about 1.5 Mbps, MPEG-2 standardized to meet the demand for higher image quality has 2 to 2 video signals. Compressed to 15 Mbps.

さらに現状では、MPEG−1,MPEG−2と標準化を進めてきた作業グループ(ISO/IEC JTC1/SC29/WG11) によって、より圧縮率が高いMPEG−4が規格化された。MPEG−4では、当初、低ビットレートで効率の高い符号化が可能になるだけでなく、伝送路誤りが発生しても主観的な画質劣化を小さくできる強力な誤り耐性技術も導入されている。また、ISO/IECとITUの共同で次世代画面符号化方式として、JVT(Joint Video Team)の標準化活動が進んでおり、現時点ではジョイント・モデル2(JM2)と呼ばれるものが最新である。   Furthermore, MPEG-4 with a higher compression rate has been standardized by a working group (ISO / IEC JTC1 / SC29 / WG11) that has been standardizing with MPEG-1 and MPEG-2. MPEG-4 initially introduced not only high-efficiency coding at a low bit rate, but also a powerful error resilience technology that can reduce subjective image quality degradation even if a transmission path error occurs. . Also, standardization activities of JVT (Joint Video Team) are advancing as a next-generation screen coding system jointly by ISO / IEC and ITU, and what is called Joint Model 2 (JM2) is the latest.

JVTでは、従来の動画像符号化と異なり、前方参照画像として複数の画像(ピクチャ)から任意の画像(ピクチャ)を参照画像として選択可能である。ここで、ピクチャとはフレームまたはフィールドのことを表す。   In JVT, unlike conventional video coding, an arbitrary image (picture) can be selected as a reference image from a plurality of images (pictures) as a forward reference image. Here, a picture represents a frame or a field.

図35(a)はメモリに保存された複数の参照画像から選択した画像を参照して符号化する画像符号化の説明図である。図35(b)は、画像が保存されるメモリの構成を示す構成図である。   FIG. 35A is an explanatory diagram of image coding in which coding is performed with reference to an image selected from a plurality of reference images stored in a memory. FIG. 35B is a configuration diagram illustrating a configuration of a memory in which an image is stored.

図35(b)に示すように、メモリは短時間保存メモリと長時間保存メモリから構成される。短時間保存メモリは直前に復号化した数画像を記憶するものであり、いわゆるMPEG−1やMPEG−2のPピクチャ(前方予測符号化ピクチャ)およびBピクチャ(双方向予測符号化ピクチャ)の参照画像に相当する。長時間保存メモリは短時間保存メモリよりも画像信号を長時間保存するために用いられる。   As shown in FIG. 35B, the memory includes a short-time storage memory and a long-time storage memory. The short-time storage memory stores several pictures decoded immediately before, and refers to so-called MPEG-1 and MPEG-2 P pictures (forward prediction coded pictures) and B pictures (bidirectional prediction coded pictures). Corresponds to an image. The long-time storage memory is used for storing an image signal for a longer time than the short-time storage memory.

通常は、短時間保存メモリはFIFO(先入先出)メモリであり、メモリの上限を超えた画像を短時間保存メモリに保存する場合には、短時間保存メモリ内の最も古い時刻の画像が除去されてその領域に新しい画像が保存される。従って、通常はFIFOの仕組みによってメモリから除去された参照画像を参照したい場合には、その参照画像を予め短時間保存メモリから長時間保存メモリに移動して長時間保存メモリ内に保存することにより長時間の参照が可能となる。長時間メモリは、保存する領域を明示する方法であり、同じ領域を指定して上書きしない限りその領域に保存したピクチャを参照可能である。   Normally, the short-time storage memory is a FIFO (first-in first-out) memory. When an image exceeding the upper limit of the memory is stored in the short-time storage memory, the image at the oldest time in the short-time storage memory is removed. And a new image is stored in the area. Therefore, when it is usually desired to refer to a reference image that has been removed from the memory by the FIFO mechanism, the reference image is previously moved from the short-time storage memory to the long-time storage memory and stored in the long-time storage memory. Long-term reference is possible. The long-time memory is a method of clearly indicating the area to be saved, and the picture saved in the area can be referred to unless the same area is designated and overwritten.

図35(a)は画像符号化の際の予測状況を示しており、ピクチャ番号2の画像はピクチャ番号0の画像を参照し、ピクチャ番号1の画像はピクチャ番号0またはピクチャ番号2の画像を参照する。同様にして、ピクチャ番号4の画像はピクチャ番号0、2の画像を参照し、ピクチャ番号6の画像はピクチャ番号0の画像を参照する。更にピクチャ番号5の画像では、ピクチャ番号0、2、4、6の画像を参照することができる。   FIG. 35A shows a prediction situation at the time of image coding. An image with picture number 2 refers to an image with picture number 0, and an image with picture number 1 is an image with picture number 0 or picture number 2. refer. Similarly, an image with picture number 4 refers to an image with picture numbers 0 and 2, and an image with picture number 6 refers to an image with picture number 0. Furthermore, in the picture with picture number 5, the pictures with picture numbers 0, 2, 4, and 6 can be referred to.

さて、この図35(a)では、ピクチャ番号0、6、12の画像は比較的長時間後まで参照されるのに対し、ピクチャ番号2、4、8の画像等は短時間後の画像からのみ参照される。   In FIG. 35 (a), the images with picture numbers 0, 6, and 12 are referred to after a relatively long time, whereas the images with picture numbers 2, 4, and 8 are obtained from the image after a short time. Only referenced.

そこで、画像を保存するメモリ領域を図35(b)の様に短時間保存用メモリと長時間保存メモリに分割し、長時間保存が必要なメモリにピクチャ(フレーム)番号0、6、12の画像を保存することができる。   Therefore, the memory area for storing images is divided into a short-time storage memory and a long-time storage memory as shown in FIG. 35B, and picture (frame) numbers 0, 6, and 12 are stored in the memory that needs to be stored for a long time. Images can be saved.

さて、この図35(a)に示すようなメモリを効率的に使用するためには高度なメモリ管理が必要であり、メモリを制御するための仕組みがJVTに導入されている。   Now, in order to use the memory as shown in FIG. 35 (a) efficiently, advanced memory management is required, and a mechanism for controlling the memory is introduced in JVT.

メモリを制御するコマンドは以下のものがある。   The commands that control the memory are:

1. 参照可能な画像を選択するコマンド
2. 短時間保存メモリで予測符号化の参照画像として不要になったピクチャの保存されているメモリ領域を開放するコマンド
3. 短時間保存メモリの内容を長時間保存メモリに移動するコマンド
1. A command for selecting a referenceable image. 2. A command for releasing a memory area in which a picture that is no longer necessary as a reference image for predictive coding is stored in a short-time storage memory Command to move the contents of the short-term storage memory to the long-term storage memory

画像符号化・復号化では、参照可能な画像の中からブロック単位で予測誤差が小さい画像を参照画像として選択するため、ブロック単位で参照画像を指示する信号が必要である。予め参照可能な画像を選択することで、参照画像の候補数を適切な値に絞り込み、ブロック単位で必要な参照画像指示信号のビット数を節約できる。   In image encoding / decoding, an image with a small prediction error in units of blocks is selected as a reference image from among referenceable images, and thus a signal that indicates the reference image in units of blocks is required. By selecting images that can be referred to in advance, the number of reference image candidates can be narrowed down to an appropriate value, and the number of bits of the reference image instruction signal required for each block can be saved.

また、短時間保存メモリから長時間保存メモリに移動した場合は、同じ内容を短時間保存メモリと長時間保存メモリの両方に保存されていても無駄なだけであるから、短時間保存メモリ内の画像を除去する。   In addition, when moving from the short-time storage memory to the long-time storage memory, it is only useless even if the same contents are stored in both the short-time storage memory and the long-time storage memory. Remove the image.

図36(a)、(b)は従来の画像符号化方法および画像復号化方法を示すフローチャートである。   FIGS. 36A and 36B are flowcharts showing a conventional image encoding method and image decoding method.

図36(a)は、予測符号化の参照画像として不要になったピクチャの保存されているメモリ領域を開放するときの画像符号化装置の動作を示している。図36(a)において、まず画像符号化装置は、入力される入力画像を符号化する(Step100)。符号化後にメモリ内で不要な領域(今後の符号化で参照されない画像)を調査し(Step101)、不要なメモリ領域があるかを判定する(Step102)。不要なメモリ領域が有ると判定したときは(Step102のYes)、不要なメモリ領域を開放するコマンドをメモリ管理情報として符号化し(Step103)、その不要なメモリ領域を開放(メモリ内の画像を除去)して(Step104)、処理を終了する。一方、画像符号化装置は、不要なメモリ領域が無いと判定した場合(Step102のNo)は、Step103およびStep104の動作は行わず、処理を終了する。   FIG. 36A shows the operation of the image coding apparatus when a memory area storing a picture that is no longer necessary as a reference image for predictive coding is released. In FIG. 36A, first, the image encoding device encodes an input image to be input (Step 100). After encoding, an unnecessary area (an image that will not be referred to in future encoding) is examined in the memory (Step 101), and it is determined whether there is an unnecessary memory area (Step 102). When it is determined that there is an unnecessary memory area (Yes in Step 102), a command for releasing the unnecessary memory area is encoded as memory management information (Step 103), and the unnecessary memory area is released (an image in the memory is removed). (Step 104), and the process is terminated. On the other hand, if the image coding apparatus determines that there is no unnecessary memory area (No in Step 102), the operation ends in Step 103 and Step 104 without performing the operations.

次に予測符号化の参照画像として不要になったピクチャの保存されているメモリ領域を開放するときの画像復号化装置が行う動作を、図36(b)のフローチャートに沿って説明する。まず、画像復号化装置は、メモリ管理情報を復号化し(Step110)、そして符号化信号から画像信号を復号化する(Step111)。画像復号化装置は、調査した結果メモリ開放コマンドがあるかを判定し(Step112)、メモリ開放コマンドがあれば(Step112のYes)、そのコマンドで除去すべき画像があるか、若しくは既にメモリ開放済み(画像除去済み)であるかを判定する(Step113)。開放済みと判定すれば(Step113のYes)、エラー(ERROR)とする。JVTではメモリから画像を除去した後に同じ画像を再度除去するコマンドを送ることは禁止されており、従って開放済みのメモリを再度開放する場合にはエラーとすることになっているからである。一方画像復号化装置は、開放済みでないと判定すれば(Step113のNo)、メモリを開放して(Step114)処理を終了する。また、メモリ開放コマンドが無いと判定した場合には(Step112のNo)、Step113およびStep114の動作は行わず、処理を終了する。なお、Step110とStep111は順不同であり、入れ替わっても構わない。   Next, an operation performed by the image decoding apparatus when a memory area storing a picture that is no longer necessary as a reference image for predictive encoding is released will be described with reference to the flowchart of FIG. First, the image decoding apparatus decodes the memory management information (Step 110), and decodes the image signal from the encoded signal (Step 111). The image decoding apparatus determines whether there is a memory release command as a result of the investigation (Step 112). If there is a memory release command (Yes in Step 112), there is an image to be removed by the command, or the memory has already been released. It is determined whether the image has been removed (Step 113). If it is determined that it has been released (Step 113: Yes), an error (ERROR) is assumed. This is because in JVT, it is prohibited to send a command for removing the same image again after removing the image from the memory. Therefore, an error occurs when the released memory is released again. On the other hand, if it is determined that the image decoding apparatus has not been released (No in Step 113), the image decoding apparatus releases the memory (Step 114) and ends the process. If it is determined that there is no memory release command (No at Step 112), Step 113 and Step 114 are not performed, and the process ends. Note that Step 110 and Step 111 are out of order and may be switched.

図37(a)、(b)は従来の他の画像符号化方法および画像復号化方法を示すフローチャートである。   FIGS. 37A and 37B are flowcharts showing another conventional image encoding method and image decoding method.

図37(a)は、短時間保存メモリから長時間保存メモリへ画像を移動するときの画像符号化装置が行う動作を示している。   FIG. 37A shows an operation performed by the image coding apparatus when moving an image from the short-time storage memory to the long-time storage memory.

図37(a)において、まず、画像符号化装置は、入力画像を符号化する(Step120)。符号化後に長時間保存メモリに移動すべき画像があるかを調査し(Step121)、移動すべき画像があるかを判定する(Step122)。移動すべき画像があれば(Step122のYes)、どのように長時間保存メモリに移動するかを示すコマンドをメモリ管理情報として符号化し(Step123)、そのコマンド通りに画像を長時間保存メモリに移動して(Step124)、処理を終了する。一方、画像符号化装置は、長時間保存メモリに移動すべき画像が無いと判定した場合(Step122のNo)は、Step123およびStep124の動作は行わず、処理を終了する。   In FIG. 37A, first, the image encoding device encodes an input image (Step 120). After encoding, it is investigated whether there is an image to be moved to the long-time storage memory (Step 121), and it is determined whether there is an image to be moved (Step 122). If there is an image to be moved (Yes in Step 122), a command indicating how to move to the long-time storage memory is encoded as memory management information (Step 123), and the image is moved to the long-time storage memory according to the command. Then (Step 124), the process is terminated. On the other hand, when the image coding apparatus determines that there is no image to be moved to the long-time storage memory (No in Step 122), the operation of Step 123 and Step 124 is not performed, and the process ends.

次に短時間保存メモリから長時間保存メモリへ画像を移動するときの画像復号化装置が行う動作を、図37(b)のフローチャートに沿って説明する。まず、画像復号化装置が、メモリ管理情報を復号化し(Step130)、次に符号化信号から画像信号を復号化する(Step131)。そして、画像復号化装置は、復号化したメモリ管理情報に、長時間保存メモリに移動するコマンドがあるかを判定し(Step132)、あると判定すれば(Step132のYes)、次にそのコマンドで移動すべき画像があるか若しくは既に移動済み(移動後に除去済のため画像が存在しない)であるかを判定する(Step133)。JVTでは長時間保存メモリに移動した後に同じ画像を再度長時間保存メモリに移動するコマンドを送ることは禁止されており、従って長時間保存メモリに移動済みの画像を再度長時間保存メモリに移動する場合にはエラーとすることになっている。よって、画像復号化装置は、長時間保存メモリに移動済みであると判定すれば(Step133のYes)、エラー(ERROR)とし、移動済でないと判定すれば、長時間保存メモリに移動して(Step134)処理を終了する。   Next, an operation performed by the image decoding apparatus when moving an image from the short-time storage memory to the long-time storage memory will be described with reference to the flowchart of FIG. First, the image decoding apparatus decodes the memory management information (Step 130), and then decodes the image signal from the encoded signal (Step 131). Then, the image decoding apparatus determines whether or not there is a command to move to the long-term storage memory in the decoded memory management information (Step 132). If it is determined (Yes in Step 132), then the command is used. It is determined whether there is an image to be moved or whether it has already been moved (no image exists because it has been removed after movement) (Step 133). In JVT, it is prohibited to send a command to move the same image to the long-time storage memory again after moving to the long-time storage memory. In case it is supposed to be an error. Therefore, if it is determined that the image decoding apparatus has been moved to the long-time storage memory (Yes in Step 133), an error (ERROR) is determined. If it is determined that it has not been moved, the image decoding apparatus moves to the long-time storage memory ( (Step 134) The processing is terminated.

一方、画像復号化装置は、長時間保存メモリに移動するコマンドが無いと判定した場合には(Step132のNo)Step133およびStep134の動作は行わず、処理を終了する。なお、Step130とStep131は順不同であり、入れ替わっても構わない。   On the other hand, when it is determined that there is no command to move to the long-time storage memory (No in Step 132), the image decoding apparatus does not perform Step 133 and Step 134 and ends the process. Note that Step 130 and Step 131 are out of order and may be switched.

図38(a)、(b)は従来の更に他の画像符号化方法および画像復号化方法を示すフローチャートである。   38A and 38B are flowcharts showing still another conventional image encoding method and image decoding method.

まず、参照可能な画像を選択するときの画像符号化装置が行う動作について、図38(a)のフローチャートに沿って説明する。   First, an operation performed by the image encoding device when selecting a referenceable image will be described with reference to the flowchart of FIG.

まず、画像符号化装置は、被符号化画像と相関が高いと予想される参照画像(通常は時間的に近接した参照画像)を参照画像の候補として選択する(Step200)。次に選択した参照画像の候補を示す指示情報(メモリ管理情報の一種)を符号化し(Step201)、選択した参照画像の候補の中からブロック単位で適切な参照画像を参照して符号化して(Step202)、処理を終了する。なお、Step201とStep202は順不同であり、入れ替わっても構わない。   First, the image encoding device selects a reference image (usually a reference image close in time) that is expected to have a high correlation with the encoded image as a reference image candidate (Step 200). Next, the instruction information (a kind of memory management information) indicating the selected reference image candidate is encoded (Step 201), and is encoded with reference to an appropriate reference image in block units from the selected reference image candidates ( (Step 202), the process is terminated. Note that Step 201 and Step 202 are out of order and may be interchanged.

次に参照可能な画像を選択するときの画像復号化装置が行う動作について、図38(b)のフローチャートに沿って説明する。   Next, an operation performed by the image decoding apparatus when selecting a referenceable image will be described with reference to the flowchart of FIG.

まず、画像復号化装置はメモリ管理情報の一種である指示情報を復号化し(Step210)、その結果として参照画像の候補をメモリの中から選択し(Step211)、選択した参照画像の候補の中からブロック単位で適切な参照画像を選択して参照しながら復号化して(Step212)、処理を終了する。   First, the image decoding apparatus decodes instruction information, which is a kind of memory management information (Step 210), and as a result, selects a reference image candidate from the memory (Step 211), and selects from the selected reference image candidates. An appropriate reference image is selected in block units and decoded while being referenced (Step 212), and the process is terminated.

“Working Draft Number 2, Revision 0 (WD−2)”, Joint Video Team (JVT) of ISO/IEC and ITU−T VCEG, JVT−B118, 13 March, 2002"Working Draft Number 2, Revision 0 (WD-2)", Joint Video Team (JVT) of ISO / IEC and ITU-T VCEG, JVT-B118, 13 March, 2002

さて、このような従来の画像符号化方法および画像復号化方法では、不要な画像をメモリから除去するコマンドや、画像を短時間保存メモリから長時間保存メモリに移動するコマンドを画像符号化装置で符号化して出力し、画像復号化装置に伝送して復号化するが、この伝送する回数が1つのピクチャのみに限定されているため、そのコマンドを伴うピクチャが伝送エラー等で消失した場合にはメモリ内の画像配置が正しく復元できないため、画像を復号化できなくなる。   In such a conventional image encoding method and image decoding method, a command for removing an unnecessary image from a memory and a command for moving an image from a short-time storage memory to a long-time storage memory are transmitted by an image encoding device. Encoded and output, transmitted to the image decoding device and decoded, but since the number of transmissions is limited to only one picture, if the picture with the command is lost due to a transmission error etc. Since the image arrangement in the memory cannot be restored correctly, the image cannot be decoded.

また、画像の符号化および復号化において、参照画像を選択する場合に、単純に時間的に近い画像のみを参照画像候補とすると、画像の復号化のスケーラビリティ(図35(a)の予測構造の例では、Bピクチャは復号化しなくてもIピクチャやPピクチャが復号できたり、ピクチャ番号4、10、16のPピクチャを復号化しなくても他のPピクチャは復号化できたりすること)を考慮した最適な符号化ができない。すなわち、ピクチャ番号6の画像に時間的に近い画像はピクチャ番号4、2の画像であるが、実際にはピクチャ番号0の画像しか参照できないため、参照できないピクチャ番号4、2の画像を参照画像の候補に入れると符号化効率があまり良くない。   In addition, when selecting a reference image in encoding and decoding of an image, if only an image that is temporally close is used as a reference image candidate, the image decoding scalability (the prediction structure of FIG. In the example, an I picture or a P picture can be decoded without decoding a B picture, or other P pictures can be decoded without decoding a P picture with picture numbers 4, 10, 16). The optimum coding in consideration cannot be performed. That is, an image temporally close to an image with picture number 6 is an image with picture numbers 4 and 2, but since only an image with picture number 0 can actually be referred to, an image with picture numbers 4 and 2 that cannot be referred to is referred to as a reference image. The coding efficiency is not so good.

更に、従来の画像符号化方法では、メモリに保存しない画像に付随して、メモリ内の不要な画像を除去するコマンドや、画像を短時間保存メモリから長時間保存メモリに移動するコマンドを伝送することは禁止されているため、柔軟なメモリ管理情報のコマンド伝送が阻害されている。メモリに保存しない画像に付随して当該コマンドの伝送を禁止するのには、次の理由がある。すなわち、メモリに保存しない画像は最も重要度が低く、スケーラビリティで復号化されない可能性が高いため、このメモリに保存しない画像に付随した当該コマンドが復号化されずにメモリ内の画像配置が正しく復元できないことを回避するためである。   Further, in the conventional image encoding method, a command for removing unnecessary images in the memory and a command for moving an image from the short-time storage memory to the long-time storage memory are transmitted along with the image not stored in the memory. This prohibits the command transmission of flexible memory management information. There are the following reasons for prohibiting the transmission of the command accompanying an image not stored in the memory. In other words, images that are not stored in memory are the least important, and it is highly possible that they will not be decoded due to scalability. Therefore, the image layout in the memory is correctly restored without decoding the commands associated with images that are not stored in memory. This is to avoid what cannot be done.

そこで、本発明は以上の課題を解決するために、伝送路エラーで一部のメモリ管理情報が消失しても正しく復元可能な画像符号化方法および画像復号化方法等と、参照可能な参照画像の候補をより適切に選択して符号化効率を高める画像符号化方法および画像復号化方法等を提供することを目的とする。   Accordingly, in order to solve the above-described problems, the present invention provides an image encoding method and an image decoding method that can be correctly restored even if some memory management information is lost due to a transmission path error, and a reference image that can be referred to. It is an object of the present invention to provide an image encoding method, an image decoding method, and the like that improve the encoding efficiency by more appropriately selecting the candidates.

この課題を解決するために、本発明の一形態である画像符号化方法は、メモリ内に保存されている複数の参照ピクチャから選択した参照ピクチャを参照して符号化する画像符号化方法であって、選択した参照ピクチャを参照して、符号化対象ピクチャを符号化し、メモリに保存されている参照ピクチャを管理するための第1のメモリ管理情報を、前記符号化された符号化対象ピクチャに付随させて符号化し、前記第1のメモリ管理情報を再度、第2のメモリ管理情報として前記符号化対象ピクチャとは別のピクチャに付随させて符号化し、前記メモリ管理情報は、前記メモリ内で不要になり開放するメモリ領域を指定する情報である、ことを特徴とする。   In order to solve this problem, an image encoding method according to an aspect of the present invention is an image encoding method in which encoding is performed with reference to a reference picture selected from a plurality of reference pictures stored in a memory. Then, referring to the selected reference picture, the encoding target picture is encoded, and the first memory management information for managing the reference picture stored in the memory is stored in the encoded encoding target picture. The first memory management information is encoded again as second memory management information with a picture different from the encoding target picture, and the memory management information is stored in the memory. It is information that designates a memory area that becomes unnecessary and is released.

これによって、メモリ管理情報が複数回符号化出力されるため、復号化装置に伝送されるときに伝送路エラーが発生した場合でも、複数回伝送されたメモリ管理情報のうちいずれかは伝送されて復号されると考えられるため、ピクチャを正しく復元できる可能性が高くなる。   As a result, since the memory management information is encoded and output a plurality of times, even if a transmission path error occurs when the memory management information is transmitted to the decoding device, one of the memory management information transmitted a plurality of times is transmitted. Since it is assumed that the picture is decoded, there is a high possibility that the picture can be correctly restored.

また、前記メモリ管理情報は、前記メモリ内で不要になり開放するメモリ領域を指定する情報であるとしてもよい。   Further, the memory management information may be information for designating a memory area that becomes unnecessary and is released in the memory.

これによって、復号化装置に伝送されるときに伝送路エラーが発生した場合でも、メモリの不要になるメモリ領域を開放することができる。   As a result, even if a transmission path error occurs when the data is transmitted to the decoding apparatus, it is possible to free a memory area that does not require memory.

また、前記メモリは、参照ピクチャの保存時間の短い短時間保存メモリと、前記短時間保存メモリよりも参照ピクチャの保存時間の長い長時間保存メモリとを備え、前記メモリ管理情報は、前記短時間保存メモリから前記長時間保存メモリに移動する対象の参照ピクチャを指定する情報であるとしてもよい。   Further, the memory includes a short-time storage memory having a short reference picture storage time and a long-time storage memory having a reference picture storage time longer than the short-time storage memory, and the memory management information includes the short-time storage memory. It may be information specifying a reference picture to be moved from the storage memory to the long-time storage memory.

これによって、復号化装置に伝送されるときに伝送路エラーが発生した場合でも、前記短時間保存メモリから前記長時間保存メモリに移動する対象の参照ピクチャを正しく指定することができる。   As a result, even when a transmission path error occurs during transmission to the decoding apparatus, it is possible to correctly specify the reference picture to be moved from the short-time storage memory to the long-time storage memory.

また、本発明の記録媒体は、メモリ内に保存されている複数の参照ピクチャから選択した参照ピクチャを参照して符号化したデータストリームが記録された記録媒体であって、選択した参照ピクチャを参照して、符号化対象ピクチャを符号化した符号化データと、メモリに保存されている参照ピクチャを管理するための第1のメモリ管理情報を、前記符号化対象ピクチャに付随させて符号化した管理情報符号化データと、前記第1のメモリ管理情報を再度、第2のメモリ管理情報として前記符号化対象ピクチャとは別のピクチャに付随させて符号化した管理情報再符号化データとを含み、前記第2のメモリ管理情報には、前記符号化対象ピクチャを特定する情報が付随していることを特徴とする。   The recording medium of the present invention is a recording medium on which a data stream encoded by referring to a reference picture selected from a plurality of reference pictures stored in a memory is recorded, and refers to the selected reference picture Then, the encoded data obtained by encoding the encoding target picture and the first memory management information for managing the reference picture stored in the memory are encoded in association with the encoding target picture. Information encoded data, and management information re-encoded data obtained by encoding the first memory management information again as second memory management information in association with a picture different from the encoding target picture, The second memory management information is accompanied by information for specifying the encoding target picture.

また、本発明の画像符号化装置は、メモリ内に保存されている複数の参照ピクチャから選択した参照ピクチャを参照して符号化する画像符号化装置であって、前記選択した参照ピクチャを参照して、符号化対象ピクチャを符号化し、メモリに保存されている参照ピクチャを管理するための第1のメモリ管理情報を、前記符号化された符号化対象ピクチャに付随させて符号化し、前記第1のメモリ管理情報を再度、第2のメモリ管理情報として前記符号化対象ピクチャとは別のピクチャに付随させて符号化する管理情報符号化手段を備え、前記管理情報符号化手段は、前記第2のメモリ管理情報に、前記符号化対象ピクチャを特定する情報を付随させることを特徴とする。   The image encoding device of the present invention is an image encoding device that performs encoding by referring to a reference picture selected from a plurality of reference pictures stored in a memory, and refers to the selected reference picture. Then, the first memory management information for encoding the encoding target picture and managing the reference picture stored in the memory is encoded in association with the encoded encoding target picture, and the first Management information encoding means for encoding again the second memory management information as a second memory management information in association with a picture different from the picture to be encoded, wherein the management information encoding means The memory management information is associated with information for specifying the encoding target picture.

これによって、メモリ管理情報が複数回符号化出力されるため、復号化装置に伝送されるときに伝送路エラーが発生した場合でも、複数回伝送されたメモリ管理情報のうちいずれかは伝送されて復号されると考えられるため、ピクチャを正しく復元できる可能性が高くなる。
本発明に係る画像符号化方法は、メモリ内に保存されている複数の参照ピクチャから選択した参照ピクチャを参照して符号化する画像符号化方法であって、選択した参照ピクチャを参照して、符号化対象ピクチャを符号化し、メモリに保存されている参照ピクチャを管理するための第1のメモリ管理情報を、前記符号化された符号化対象ピクチャに付随させて符号化し、前記第1のメモリ管理情報を再度、第2のメモリ管理情報として前記符号化対象ピクチャとは別のピクチャに付随させて符号化し、前記第2のメモリ管理情報に、前記符号化対象ピクチャを特定する情報を付随させ、前記メモリ管理情報は、前記メモリ内で不要になり開放するメモリ領域を指定する情報である、ことを特徴とする画像符号化方法でもよい。
前記メモリは、参照ピクチャの保存時間の短い短時間保存メモリと、前記短時間保存メモリよりも参照ピクチャの保存時間の長い長時間保存メモリとを備え、前記メモリ管理情報は、更に、前記短時間保存メモリから前記長時間保存メモリに移動する対象の参照ピクチャを指定する情報を含んでもよい。
本発明に係る画像符号化装置は、メモリ内に保存されている複数の参照ピクチャから選択した参照ピクチャを参照して符号化する画像符号化装置であって、選択した参照ピクチャを参照して、符号化対象ピクチャを符号化する第1の符号化手段と、メモリに保存されている参照ピクチャを管理するための第1のメモリ管理情報を、前記符号化された符号化対象ピクチャに付随させて符号化する第2の符号化手段と、前記第1のメモリ管理情報を再度、第2のメモリ管理情報として、前記符号化対象ピクチャとは別のピクチャに付随させて符号化し、前記第2のメモリ管理情報に、前記符号化対象ピクチャを特定する情報を付随させる管理情報符号化手段を備え、前記メモリ管理情報は、前記メモリ内で不要になり開放するメモリ領域を指定する情報である、ことを特徴とする画像符号化装置でもよい。
本発明に係る記録媒体は、メモリ内に保存されている複数の参照ピクチャから選択した参照ピクチャを参照して符号化したデータストリームが記録された記録媒体であって、選択した参照ピクチャを参照して、符号化対象ピクチャを符号化した符号化データと、メモリに保存されている参照ピクチャを管理するための第1のメモリ管理情報を、前記符号化対象ピクチャに付随させて符号化した管理情報符号化データと、前記第1のメモリ管理情報を再度、第2のメモリ管理情報として前記符号化対象ピクチャとは別のピクチャに付随させて符号化し、前記第2のメモリ管理情報に、前記符号化対象ピクチャを特定する情報を付随させた管理情報再符号化データとを含み、前記メモリ管理情報は、前記メモリ内で不要になり開放するメモリ領域を指定する情報である、ことを特徴とする記録媒体でもよい。
As a result, since the memory management information is encoded and output a plurality of times, even if a transmission path error occurs when the memory management information is transmitted to the decoding device, one of the memory management information transmitted a plurality of times is transmitted. Since it is assumed that the picture is decoded, the possibility that the picture can be correctly restored increases.
An image encoding method according to the present invention is an image encoding method for encoding with reference to a reference picture selected from a plurality of reference pictures stored in a memory, and refers to the selected reference picture, The first memory is encoded by encoding the first memory management information for encoding the encoding target picture and managing the reference picture stored in the memory in association with the encoded encoding target picture. The management information is again encoded as second memory management information with a picture different from the picture to be encoded, and the information specifying the picture to be encoded is attached to the second memory management information. The image management method may be characterized in that the memory management information is information that designates a memory area that becomes unnecessary and is released in the memory.
The memory includes a short-time storage memory having a short reference picture storage time and a long-time storage memory having a reference picture storage time longer than the short-time storage memory, and the memory management information further includes the short-time storage memory. Information for designating a reference picture to be moved from the storage memory to the long-time storage memory may be included.
An image encoding apparatus according to the present invention is an image encoding apparatus that performs encoding by referring to a reference picture selected from a plurality of reference pictures stored in a memory, and refers to the selected reference picture, First encoding means for encoding the encoding target picture and first memory management information for managing the reference picture stored in the memory are attached to the encoded encoding target picture. A second encoding means for encoding, the first memory management information is encoded again as second memory management information in association with a picture different from the encoding target picture, and the second memory management information is encoded. Management information encoding means for associating the memory management information with information for specifying the encoding target picture, and the memory management information designates a memory area that is unnecessary and freed in the memory. The information may be an image coding apparatus characterized by.
A recording medium according to the present invention is a recording medium on which a data stream encoded by referring to a reference picture selected from a plurality of reference pictures stored in a memory is recorded, and refers to the selected reference picture. Then, the management information encoded by encoding the encoded data of the encoding target picture and the first memory management information for managing the reference picture stored in the memory in association with the encoding target picture The encoded data and the first memory management information are encoded again as second memory management information in association with a picture different from the picture to be encoded, and the code is added to the second memory management information. Management information re-encoded data associated with information for specifying a picture to be encoded, and the memory management information becomes unnecessary and freed in the memory Is information specifying, may be a recording medium, characterized in that.

なお、本発明は、装置として実現できるだけでなく、その装置を構成する処理手段をステップとする方法として実現したり、それらステップをコンピュータに実行させるプログラムとして実現したり、そのプログラムを記録したコンピュータ読み取り可能なCD−ROMなどの記録媒体として実現したり、そのプログラムを示す情報、データ又は信号として実現したりすることもできる。そして、それらプログラム、情報、データ及び信号は、CD−ROMなどの記録媒体やインターネット等の通信ネットワークを介して配信してもよい。   Note that the present invention can be realized not only as an apparatus but also as a method using steps as processing units constituting the apparatus, as a program for causing a computer to execute the steps, or as a computer read recording the program. It can also be realized as a possible recording medium such as a CD-ROM, or as information, data or a signal indicating the program. These programs, information, data, and signals may be distributed via a recording medium such as a CD-ROM or a communication network such as the Internet.

以上の様に、本発明にかかる画像符号化方法および画像復号化方法によれば、伝送路エラーで一部のメモリ管理情報が消失しても正しく復元可能な画像符号化方法および画像復号化方法と、参照可能な参照画像の候補をより適切に選択して符号化効率を高める画像符号化方法および画像復号化方法を実現することができ、その実用的価値は高い。   As described above, according to the image encoding method and the image decoding method according to the present invention, an image encoding method and an image decoding method that can be correctly restored even if some memory management information is lost due to a transmission path error. Thus, it is possible to realize an image encoding method and an image decoding method that can more appropriately select reference image candidates that can be referred to and increase the encoding efficiency, and its practical value is high.

本発明の画像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image coding apparatus of this invention. 本発明の実施の形態1における画像符号化方法を示すフローチャートである。It is a flowchart which shows the image coding method in Embodiment 1 of this invention. 本発明の画像復号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image decoding apparatus of this invention. 本発明の実施の形態2における画像復号化方法を示すフローチャートである。It is a flowchart which shows the image decoding method in Embodiment 2 of this invention. 本発明の実施の形態3における画像符号化方法を示すフローチャートである。It is a flowchart which shows the image coding method in Embodiment 3 of this invention. 本発明の実施の形態4における画像復号化方法を示すフローチャートである。It is a flowchart which shows the image decoding method in Embodiment 4 of this invention. 本発明の実施の形態5における画像符号化方法を示すフローチャートである。It is a flowchart which shows the image coding method in Embodiment 5 of this invention. 本発明の実施の形態6における画像符号化方法を示すフローチャートである。It is a flowchart which shows the image coding method in Embodiment 6 of this invention. 本発明の実施の形態7における画像符号化方法を示すフローチャートである。It is a flowchart which shows the image coding method in Embodiment 7 of this invention. (a)は画像のピクチャ番号と保存ピクチャ番号と伝送順序の関係を示す説明図であり、(b)はデコードするピクチャ番号と保存されているピクチャ番号と削除されるピクチャ番号との関係を示す関係図であり、(c)はデコードするピクチャ番号と保存されているピクチャ番号と削除されるピクチャ番号との他の関係を示す関係図である。(A) is explanatory drawing which shows the relationship between the picture number of an image, a preservation | save picture number, and transmission order, (b) shows the relationship between the picture number to decode, the preserved picture number, and the deleted picture number. FIG. 4C is a relationship diagram illustrating another relationship between a picture number to be decoded, a stored picture number, and a deleted picture number. 本発明におけるメモリ管理情報のコマンドを示す対応図である。It is a correspondence figure which shows the command of the memory management information in this invention. 本発明の実施の形態8におけるコマンド実行手順を示すフローチャートである。It is a flowchart which shows the command execution procedure in Embodiment 8 of this invention. 各ピクチャの符号化信号におけるヘッダ情報とフレームデータとの関係を示す模式図である。It is a schematic diagram which shows the relationship between the header information and frame data in the encoded signal of each picture. 符号化信号のヘッダ情報におけるメモリ管理情報のコマンドを示す模式図である。It is a schematic diagram which shows the command of the memory management information in the header information of an encoding signal. 各画像のピクチャ番号と保存ピクチャ番号と伝送順序の関係を示す説明図である。It is explanatory drawing which shows the relationship between the picture number of each image, a preservation | save picture number, and transmission order. 初期化コマンドを符号化する方法を示すフローチャートである。It is a flowchart which shows the method of encoding an initialization command. 符号化された初期化コマンドを復号する方法を示すフローチャートである。It is a flowchart which shows the method of decoding the encoded initialization command. 本発明の実施の形態8に用いるメモリ管理情報のコマンドを示す対応図である。It is a response | compatibility figure which shows the command of the memory management information used for Embodiment 8 of this invention. 本発明における初期化再送コマンドを用いた画像符号化方法を示すフローチャートである。It is a flowchart which shows the image coding method using the initialization resending command in this invention. 本発明における符号化された初期化再送コマンドを復号する方法を示すフローチャートである。6 is a flowchart illustrating a method of decoding an encoded initialization retransmission command according to the present invention. 各画像のピクチャ番号と保存ピクチャ番号と伝送順序の他の関係を示す説明図である。It is explanatory drawing which shows the other relationship between the picture number of each image, a preservation | save picture number, and transmission order. 本発明の実施の形態9で用いるメモリ管理情報のコマンドを示す対応図である。It is a response | compatibility figure which shows the command of the memory management information used in Embodiment 9 of this invention. 本発明の実施の形態9における画像符号化方法を示すフローチャートである。It is a flowchart which shows the image coding method in Embodiment 9 of this invention. 本発明の実施の形態9における画像復号化方法を示すフローチャートである。It is a flowchart which shows the image decoding method in Embodiment 9 of this invention. (a)はコマンドの内容と付加情報を示す対応図であり、(b)はコマンドの実行タイミングを示す対応図である。(A) is a correspondence diagram showing command contents and additional information, and (b) is a correspondence diagram showing command execution timing. 符号化信号のヘッダ情報におけるメモリ管理情報のコマンドを示す模式図である。It is a schematic diagram which shows the command of the memory management information in the header information of an encoding signal. 他の符号化信号のヘッダ情報におけるメモリ管理情報のコマンドを示す模式図である。It is a schematic diagram which shows the command of the memory management information in the header information of another encoded signal. スライス単位で符号化したデータストリーム構造を示す模式図である。It is a schematic diagram which shows the data stream structure encoded by the slice unit. (a)(b)いずれもスライス単位で符号化したデータストリーム構造を示す模式図である。(A) (b) is a schematic diagram which shows the data stream structure encoded in slice unit. (a)(b)(c)はいずれも本発明の実施の形態1から実施の形態10の画像符号化方法および画像復号化方法をコンピュータシステムにより実現するためのプログラムを格納するための記憶媒体についての説明図である。(A) (b) (c) is a storage medium for storing a program for realizing the image encoding method and the image decoding method of Embodiments 1 to 10 of the present invention by a computer system. It is explanatory drawing about. 本発明に係る画像符号化方法および画像復号化方法が用いられるコンテンツ供給システムの全体構成を示すブロック図である。It is a block diagram which shows the whole structure of the content supply system with which the image coding method and image decoding method which concern on this invention are used. 本発明に係る画像符号化方法および画像復号化方法が用いられる携帯電話の一例を示す外観図である。It is an external view which shows an example of the mobile telephone in which the image coding method and image decoding method which concern on this invention are used. 同携帯電話の構成を示すブロック図である。It is a block diagram which shows the structure of the mobile phone. 本発明に係る画像符号化方法および画像復号化方法が用いられるデジタル放送用システムの構成を示す構成図である。It is a block diagram which shows the structure of the system for digital broadcasting in which the image coding method and image decoding method which concern on this invention are used. (a)はメモリに保存された複数の参照画像から選択した画像を参照して符号化する画像符号化の説明図であり、(b)は画像が保存されるメモリの構成を示す構成図である。(A) is explanatory drawing of the image encoding encoded with reference to the image selected from the some reference image preserve | saved at memory, (b) is a block diagram which shows the structure of the memory where an image is preserve | saved. is there. (a)は従来の画像符号化方法を示すフローチャートであり、(b)は従来の画像復号化方法を示すフローチャートである。(A) is a flowchart which shows the conventional image coding method, (b) is a flowchart which shows the conventional image decoding method. (a)は従来の画像符号化方法を示す他のフローチャートであり、(b)は従来の画像復号化方法を示す他のフローチャートである。(A) is another flowchart which shows the conventional image coding method, (b) is another flowchart which shows the conventional image decoding method. (a)は従来の画像符号化方法を示す更に他のフローチャートであり、(b)は従来の画像復号化方法を示す更に他のフローチャートである。(A) is another flowchart which shows the conventional image coding method, (b) is another flowchart which shows the conventional image decoding method.

以下、本発明の実施の形態について、図面を用いて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(実施の形態1)
まず、実施の形態1について説明する。
(Embodiment 1)
First, the first embodiment will be described.

図1は、本実施の形態における画像符号化方法を実現するための画像符号化装置の構成を示すブロック図である。   FIG. 1 is a block diagram showing a configuration of an image encoding device for realizing an image encoding method according to the present embodiment.

画像符号化装置100は、メモリ情報制御部101と、短時間保存メモリ管理部102と、長時間保存メモリ管理部103と、非保存メモリ管理情報部104と、管理情報符号化部105と、参照画像選択部106と、保存領域指定部107と、参照領域指定部108と、画像メモリ109と、画像復号化部111と、画像符号化部110と、可変長符号化部112と、カウンタ113と、カウンタ114などから構成される。   The image encoding apparatus 100 includes a memory information control unit 101, a short-time storage memory management unit 102, a long-time storage memory management unit 103, a non-storage memory management information unit 104, a management information encoding unit 105, a reference 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 coding unit 110, a variable length coding unit 112, a counter 113, , Counter 114 and the like.

参照画像選択部106は外部から入力される重要度指示信号Priおよびピクチャタイプ情報PicTypeから参照画像の候補を選択し、メモリ情報制御部101に通知する。   The reference image selection unit 106 selects a reference image candidate from the importance instruction signal Pri and the picture type information PicType input from the outside, and notifies the memory information control unit 101 of them.

メモリ情報制御部101は、ピクチャタイプ情報PicTypeによって前方および後方のいずれ、もしくは両方の画像(ピクチャ)が参照可能かどうかを判断し、参照領域指定部108に指令して、画像メモリ109から対応する参照画像を画像符号化部110に出力する。   The memory information control unit 101 determines whether forward or backward images (both images) can be referred to based on the picture type information PicType, and instructs the reference area designating unit 108 to respond from the image memory 109. The reference image is output to the image encoding unit 110.

画像符号化部110は、画像メモリ109から出力される参照画像を参照して入力画像信号Vinを符号化し、可変長符号化部112は更に可変長符号化して画像符号化ストリームVideoStrを出力する。画像符号化部110の出力は、また、画像復号化部111で復号化されて復号化画像となり、画像メモリ109に参照画像として格納される。   The image encoding unit 110 encodes the input image signal Vin with reference to the reference image output from the image memory 109, and the variable length encoding unit 112 further performs variable length encoding and outputs an image encoded stream VideoStr. The output of the image encoding unit 110 is also decoded by the image decoding unit 111 to become a decoded image, which is stored in the image memory 109 as a reference image.

このとき、画像メモリ109における復号化画像の格納可能なメモリ位置は、次のように指定される。メモリ情報制御部101が短時間保存メモリ管理部102に問い合わせて、短時間メモリで画像の除去されたメモリ位置を特定し、保存領域指定部107がそのメモリ位置に復号化画像を記録するように、画像メモリ109に対し指示を出す。   At this time, the memory location where the decoded image can be stored in the image memory 109 is designated as follows. The memory information control unit 101 makes an inquiry to the short-time storage memory management unit 102, specifies the memory location from which the image has been removed in the short-time memory, and the storage region designation unit 107 records the decoded image at the memory location. An instruction is issued to the image memory 109.

短時間保存メモリ管理部102は、短時間保存メモリ内の不要な(参照されない)画像を検出して除去する(メモリを開放する)指令をメモリ情報制御部101に通知する。また、長時間保存メモリ管理部103は、短時間保存メモリ内の画像を長時間保存メモリに移動する指令をメモリ情報制御部101に通知する。この不要な画像の除去(メモリの開放)指令や、短時間保存メモリ内の画像を長時間保存メモリに移動する指令は、管理情報符号化部105で符号化されて、メモリ管理情報ストリームCtlStrとなる。   The short-time storage memory management unit 102 notifies the memory information control unit 101 of a command to detect and remove (release the memory) unnecessary (not referenced) images in the short-time storage memory. Further, the long-time storage memory management unit 103 notifies the memory information control unit 101 of an instruction to move an image in the short-time storage memory to the long-time storage memory. The unnecessary image removal (memory release) command and the command to move the image in the short-time storage memory to the long-time storage memory are encoded by the management information encoding unit 105 and are stored in the memory management information stream CtlStr. Become.

一方、伝送路エラーにより、メモリ管理情報ストリームCtlStrの一部が消失することでメモリ管理情報が損なわれることを防止するために、短時間保存メモリ用のカウンタ113および長時間保存メモリ用のカウンタ114で、不要な画像の除去指令や、短時間保存メモリ内の画像を長時間保存メモリに移動する指令の符号化回数を計測し、必要に応じて上記指令の複数回の伝送を可能にする。   On the other hand, in order to prevent the memory management information from being lost due to a part of the memory management information stream CtlStr being lost due to a transmission path error, the short-time storage memory counter 113 and the long-time storage memory counter 114 are prevented. Thus, the number of times of encoding an unnecessary image removal command or a command for moving an image in the short-time storage memory to the long-time storage memory is measured, and the command can be transmitted a plurality of times as necessary.

また、非保存メモリ管理情報部104は、重要度が低く復号化されにくい画像に付随して、不要な画像の除去指令や短時間保存メモリ内の画像を長時間保存メモリに移動する指令が符号化されたかどうかを管理し、重要度が低い画像に付随して上記指令が符号化された場合は、より高い重要度の画像に付随して再度指令を符号化するように、メモリ情報制御部101に指示を出す。   In addition, the non-storage memory management information unit 104 is accompanied by an instruction to remove unnecessary images and an instruction to move an image in the short-time storage memory to the long-time storage memory along with an image having low importance and difficult to decode. The memory information control unit so that if the command is encoded along with an image having a low importance level, the command is encoded again along with an image having a higher importance level. 101 is instructed.

次に、本発明の実施の形態1における画像符号化方法について説明する。図2は実施の形態1における画像符号化方法を示すフローチャートであり、図1で示した画像符号化装置100が行う動作を示している。なお、図2において図36(a)と動作が同じものには同じ記号を付している。   Next, the image coding method in Embodiment 1 of this invention is demonstrated. FIG. 2 is a flowchart showing an image encoding method according to Embodiment 1, and shows operations performed by the image encoding apparatus 100 shown in FIG. 2 that have the same operations as those in FIG. 36A are denoted by the same symbols.

図2に示す画像符号化方法の特徴は、メモリ内で予測符号化の参照画像として不要な画像(ピクチャ)が存在する場合に、その画像の保存されているメモリ領域を開放する(その画像を除去する)メモリ管理情報のコマンドを繰り返し符号化することである。このように、メモリ管理情報のコマンドを繰り返し符号化することで、片方のメモリ管理情報のコマンドが伝送路エラーで消失しても、もう一方のメモリ管理情報のコマンドからメモリ内に保存されている画像の管理情報を復元できるため、伝送路エラーがあっても画像を正しく復元できる可能性が高くなる。   The feature of the image coding method shown in FIG. 2 is that when an unnecessary image (picture) exists as a reference image for predictive coding in the memory, the memory area in which the image is stored is released (the image is saved). (Removing) It is to repeatedly encode the command of the memory management information. Thus, by repeatedly encoding the memory management information command, even if one memory management information command disappears due to a transmission path error, it is stored in the memory from the other memory management information command. Since the image management information can be restored, there is a high possibility that the image can be correctly restored even if there is a transmission path error.

図2において、まず、入力画像を符号化する(Step100)。符号化後にメモリ内で不要な領域(今後の符号化で参照されない画像)を調査し(Step101)、不要なメモリ領域があるかを判定する(Step102)。不要なメモリ領域がある場合(Step102のYes)、管理情報符号化部105が不要なメモリ領域を開放するコマンドをメモリ管理情報として符号化する(Step103)。そして、その不要なメモリ領域を開放する(Step104)。不要なメモリ領域が無い場合(Step102のNo)は、Step103およびStep104の動作は行わない。   In FIG. 2, first, an input image is encoded (Step 100). After encoding, an unnecessary area (an image that will not be referred to in future encoding) is examined in the memory (Step 101), and it is determined whether there is an unnecessary memory area (Step 102). If there is an unnecessary memory area (Yes in Step 102), the management information encoding unit 105 encodes a command for releasing the unnecessary memory area as memory management information (Step 103). Then, the unnecessary memory area is released (Step 104). If there is no unnecessary memory area (No in Step 102), the operations in Step 103 and Step 104 are not performed.

次に、メモリ情報制御部101が、直前に符号化した画像(符号化対象より前の画像)の符号化に付随させて、不要なメモリ領域を開放するコマンドがメモリ管理情報として符号化されているかを判定し(Step105)、コマンドが符号化されていない場合は(Step105のNo)処理を終了し、コマンドが符号化されている場合は(Step105のYes)、管理情報符号化部105が、その不要なメモリ領域を開放するコマンドを再度メモリ管理情報として符号化し(Step106)、処理を終了する。   Next, a command for releasing an unnecessary memory area is encoded as memory management information in association with encoding of an image (an image before an encoding target) encoded immediately before by the memory information control unit 101. If the command is not encoded (No at Step 105), the process is terminated. If the command is encoded (Yes at Step 105), the management information encoding unit 105 The command for releasing the unnecessary memory area is encoded again as memory management information (Step 106), and the process is terminated.

このように、直前の画像の符号化で不要メモリを開放する(メモリ管理情報の)コマンドが符号化されると、再度、メモリ管理情報のコマンドが符号化される。直前の画像の符号化に付随させて符号化されたメモリ管理情報と、再度符号化されたメモリ管理情報は、それぞれ画像符号化装置より出力され、画像復号化装置に伝送され復号化される。   In this way, when a command for releasing unnecessary memory (in the memory management information) is encoded by encoding the previous image, the command in the memory management information is encoded again. The memory management information encoded in association with the encoding of the immediately preceding image and the memory management information encoded again are output from the image encoding device, transmitted to the image decoding device, and decoded.

なお、Step105で直前に符号化された画像の符号化信号に付随して、不要なメモリ領域を開放するコマンドが符号化されている場合に、再度コマンドを符号化するとしたが、直前の画像に付随している場合でなく、数画像前の画像に付随している場合でも良く、更に、繰り返して上記コマンドをメモリ管理情報として符号化し、複数の画像に付随して伝送させてもよい。   In addition, when a command for releasing an unnecessary memory area is encoded along with the encoded signal of the image encoded immediately before in Step 105, the command is encoded again. The command may be accompanied by an image several images before, or may be repeatedly encoded as memory management information and transmitted along with a plurality of images.

また、上記不要なメモリ領域を開放するコマンドをメモリ管理情報として複数回伝送することができればよいのであって、そのコマンドを再度符号化して伝送するときに必ずしも画像の符号化信号に付随させて伝送する必要はない。   In addition, it is only necessary that the command for releasing the unnecessary memory area can be transmitted as memory management information a plurality of times. When the command is encoded and transmitted again, it is not necessarily transmitted along with the encoded signal of the image. do not have to.

また、メモリ管理情報のコマンドを再送する場合に、その再送するコマンドが、符号化されたピクチャと同じストリームにあるのではなく、例えば別のストリームとして伝送するようにしてもよく、蓄積メディアの別の領域に記録されてもよい。   In addition, when retransmitting a memory management information command, the retransmitted command may not be in the same stream as the encoded picture, but may be transmitted as a separate stream, for example. May be recorded in this area.

以上のようにして、不要なメモリ領域を開放する(メモリ管理情報の)コマンドを複数回伝送することで、伝送路エラーが発生した場合でも、複数回伝送されたコマンドのうちいずれかは伝送されて復号されると考えられるため、画像を正しく復元できる可能性が高くなる。   As described above, by transmitting a command for releasing unnecessary memory areas (in memory management information) multiple times, even if a transmission path error occurs, one of the commands transmitted multiple times is transmitted. Therefore, there is a high possibility that the image can be correctly restored.

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

図3は、実施の形態2における画像復号化方法を実現するための画像復号化装置のブロック図である。   FIG. 3 is a block diagram of an image decoding apparatus for realizing the image decoding method according to the second embodiment.

画像復号化装置200は、メモリ情報制御部201と、短時間保存メモリ管理部202と、長時間保存メモリ管理部203と、管理情報復号化部205と、保存領域指定部207と、参照領域指定部208と、画像メモリ209と、画像復号化部210と、可変長復号化部212などから構成される。   The image decoding apparatus 200 includes a memory information control unit 201, a short-time storage memory management unit 202, a long-time storage memory management unit 203, a management information decoding unit 205, a storage region specification unit 207, and a reference region specification. Unit 208, image memory 209, image decoding unit 210, variable length decoding unit 212, and the like.

メモリ情報制御部201は、ピクチャタイプ情報PicTypeによって、符号化対象に対して前方および後方のいずれ、もしくは両方の画像が参照可能かどうかを判断し、参照領域指定部208に指令して、画像メモリ209から対応する参照画像を画像復号化部210に出力する。   Based on the picture type information PicType, the memory information control unit 201 determines whether the front and rear images or both of the images can be referred to the encoding target, and instructs the reference region designating unit 208 to From 209, the corresponding reference image is output to the image decoding unit 210.

可変長復号化部212は符号化ストリームVideoStrを復号化し、画像復号化部210はそれを更に復号化して、復号画像信号Voutとして出力すると共に画像メモリ209に参照画像として格納する。   The variable length decoding unit 212 decodes the encoded stream VideoStr, and the image decoding unit 210 further decodes it, outputs it as a decoded image signal Vout, and stores it as a reference image in the image memory 209.

このとき、画像メモリ209における復号化画像の格納可能なメモリ位置は、次のように指定される。メモリ情報制御部201が短時間保存メモリ管理部202に問い合わせて、画像の除去されたメモリ位置を特定し、保存領域指定部207がそのメモリ位置に復号化画像を記録するように、画像メモリ209に対し指示を出す。   At this time, the memory location where the decoded image can be stored in the image memory 209 is designated as follows. The memory information control unit 201 makes an inquiry to the short-time storage memory management unit 202 to identify the memory location from which the image has been removed, and the image memory 209 so that the storage region designation unit 207 records the decoded image at the memory location. To give instructions.

管理情報復号化部205は、メモリ管理情報ストリームCtlStrを復号化して、メモリ情報制御部201を通じ、短時間保存メモリ内の不要な(参照されない)画像の情報を短時間保存メモリ管理部202に通知し、短時間保存メモリ内の画像を長時間保存メモリに移動する指令を長時間保存メモリ管理部203に通知する。   The management information decoding unit 205 decodes the memory management information stream CtlStr and notifies the short-time storage memory management unit 202 of information on unnecessary (unreferenced) images in the short-time storage memory through the memory information control unit 201. The long-time storage memory management unit 203 is notified of an instruction to move the image in the short-time storage memory to the long-time storage memory.

次に、本発明の実施の形態2における画像復号化方法について説明する。図4は実施の形態2における画像復号化方法を示すフローチャートであり、図3で示した画像復号化装置200が行う動作を示している。なお、図4において図36(b)と動作が同じものは同じ記号を付している。   Next, the image decoding method in Embodiment 2 of this invention is demonstrated. FIG. 4 is a flowchart showing an image decoding method according to the second embodiment, and shows operations performed by the image decoding apparatus 200 shown in FIG. In FIG. 4, the same symbols are attached to the same operations as those in FIG. 36 (b).

画像符号化装置が不要なメモリ領域を開放するコマンドを複数回伝送した場合には、伝送路エラーでコマンドが消失しない限り、画像復号化装置は、複数回、メモリ内の同じ画像の領域を開放するコマンドを受信することになる。従って、既に開放したメモリ領域を再度開放するコマンドを画像復号化装置が受信した場合でもエラーとして処理をせずに、逆に正しく受信できていると判断する画像復号化方法を実現しなければならない。本実施の形態では、このような画像復号化方法を実現している。   If the image encoding device transmits a command to release an unnecessary memory area multiple times, the image decoding device releases the same image area in the memory multiple times unless the command is lost due to a transmission path error. The command to be received will be received. Therefore, it is necessary to realize an image decoding method for judging that the memory can be correctly received without processing it as an error even when the image decoding apparatus receives a command to reopen the memory area that has already been released. . In the present embodiment, such an image decoding method is realized.

図4において、まず、管理情報復号化部205がメモリ管理情報を復号化する(Step110)。次に、符号化信号から画像信号を復号化する(Step111)。そして、メモリ情報制御部201が、復号化されたメモリ管理情報にメモリを開放するコマンドがあるか否かを判定する(Step112)。メモリを開放するコマンドがあれば(Step112のYes)、そのコマンドで除去すべき画像があるか若しくは既に開放済み(除去済み)であるかを判定し(Step113)、メモリ開放済みであれば(Step113のYes)何も処理をせずに終了し、そうでなければメモリを開放して(Step114)処理を終了する。一方、メモリ開放コマンドが無い場合には(Step112のNo)Step113およびStep114の動作は行なわず処理を終了する。なお、Step110とStep111は順不同であり、入れ替わっても構わない。   In FIG. 4, first, the management information decoding unit 205 decodes the memory management information (Step 110). Next, the image signal is decoded from the encoded signal (Step 111). Then, the memory information control unit 201 determines whether or not there is a command to release the memory in the decrypted memory management information (Step 112). If there is a command to release the memory (Yes in Step 112), it is determined whether there is an image to be removed by the command or whether the image has already been released (removed) (Step 113), and if the memory has been released (Step 113). Yes) The process ends without performing any processing. Otherwise, the memory is released (Step 114), and the processing ends. On the other hand, when there is no memory release command (No in Step 112), the operation is terminated without performing Step 113 and Step 114. Note that Step 110 and Step 111 are out of order and may be switched.

以上のような動作により、実施の形態1の画像符号化方法でメモリ内の同じ画像の領域を開放するコマンドを複数回符号化し伝送し、画像復号化装置200がそれを複数回受信した場合でも、エラーとして処理しないため、正しく復号化できる画像復号化方法が実現できる。   Even if the image decoding apparatus 200 receives and transmits the command for releasing the same image area in the memory a plurality of times by the image encoding method of the first embodiment by the operation as described above, the command is transmitted a plurality of times. Since it is not processed as an error, an image decoding method capable of correctly decoding can be realized.

なお、上記不要なメモリ領域を開放するコマンドをメモリ管理情報として複数回伝送されていればよいのであって、そのコマンドを再度符号化して伝送するときに必ずしも画像の符号化信号に付随させて伝送されている必要はない。   The command for releasing the unnecessary memory area only needs to be transmitted as memory management information a plurality of times. When the command is encoded and transmitted again, it is not necessarily transmitted along with the encoded signal of the image. There is no need to be.

また、メモリ管理情報のコマンドを再送する場合に、その再送するコマンドが、符号化されたピクチャと同じストリームにあるのではなく、例えば別のストリームとして伝送するようにしてもよく、蓄積メディアの別の領域に記録されてもよい。   In addition, when retransmitting a memory management information command, the retransmitted command may not be in the same stream as the encoded picture, but may be transmitted as a separate stream, for example. May be recorded in this area.

(実施の形態3)
次に、実施の形態3における画像符号化方法について説明する。図5は実施の形態3における画像符号化方法を示すフローチャートであり、画像符号化装置100が行う動作を示している。図5において図37(a)と動作が同じものは同じ記号を付している。
(Embodiment 3)
Next, an image encoding method according to Embodiment 3 will be described. FIG. 5 is a flowchart showing an image encoding method according to Embodiment 3, and shows operations performed by the image encoding apparatus 100. In FIG. 5, the same operation as that in FIG.

本実施の形態の特徴はメモリ内で短時間保存メモリから長時間保存メモリに移動すべき画像が存在する場合に、その画像を移動するメモリ管理情報のコマンドを繰り返し符号化することである。メモリ管理情報のコマンドを繰り返し符号化することで、片方のメモリ管理情報のコマンドが伝送路エラーで消失しても、もう一方のメモリ管理情報のコマンドからメモリ内に保存されている画像の管理情報を復元できるため、伝送路エラーがあっても画像を正しく復元できる可能性が高くなる。   A feature of the present embodiment is that when there is an image to be moved from the short-time storage memory to the long-time storage memory in the memory, a command of memory management information for moving the image is repeatedly encoded. By re-encoding the memory management information command, even if one memory management information command disappears due to a transmission path error, the image management information stored in the memory from the other memory management information command Therefore, there is a high possibility that an image can be correctly restored even if there is a transmission path error.

図5において、まず、入力画像を符号化する(Step120)。符号化後に長時間保存メモリに移動すべき画像があるかを調査する(Step121)。そして、メモリ情報制御部101が長時間保存メモリに移動する画像があるか否かを判定する(Step122)。移動すべき画像があれば(Step122のYes)、管理情報符号化部105は、どのように長時間保存メモリに移動するかを示すコマンドをメモリ管理情報として符号化する(Step123)。そして、そのコマンド通りに画像を長時間保存メモリに移動する(Step124)。   In FIG. 5, first, an input image is encoded (Step 120). It is investigated whether there is an image to be moved to the long-time storage memory after encoding (Step 121). Then, the memory information control unit 101 determines whether there is an image that moves to the long-time storage memory (Step 122). If there is an image to be moved (Yes in Step 122), the management information encoding unit 105 encodes a command indicating how to move to the long-time storage memory as memory management information (Step 123). Then, the image is moved to the long-time storage memory according to the command (Step 124).

次に、メモリ情報制御部101は、直前に符号化した画像(符号化対象より前の画像)の符号化信号に付随して長時間保存メモリに移動するコマンドをメモリ管理情報として符号化しているか否かを判定し(Step125)、符号化していなければ(Step125のNo)処理を終了し、符号化していれば(Step125のYes)、管理情報符号化部105は、その長時間保存メモリに移動するコマンドを再度メモリ管理情報として符号化して(Step126)、処理を終了する。   Next, whether the memory information control unit 101 encodes, as memory management information, a command that moves to the long-term storage memory in association with the encoded signal of the image encoded immediately before (the image prior to the encoding target) If it is not encoded (No in Step 125), the process ends. If it is encoded (Yes in Step 125), the management information encoding unit 105 moves to the long-time storage memory. The command to be encoded is encoded again as memory management information (Step 126), and the process is terminated.

このように、直前の画像の符号化で長時間保存メモリに移動する(メモリ管理情報の)コマンドが符号化されると、再度、メモリ管理情報のコマンドが符号化される。直前の画像の符号化に付随させて符号化されたメモリ管理情報と、再度符号化されたメモリ管理情報は、それぞれ画像符号化装置より出力され、画像復号化装置に伝送され復号化される。   As described above, when a command for moving to the storage memory for a long time (in the memory management information) is encoded by encoding the previous image, the command in the memory management information is encoded again. The memory management information encoded in association with the encoding of the immediately preceding image and the memory management information encoded again are output from the image encoding device, transmitted to the image decoding device, and decoded.

なお、Step125で直前に符号化した画像の符号化信号に付随して長時間保存メモリに移動するコマンドが符号化されている場合に再度コマンドを符号化するとしたが、直前の画像に付随している場合でなく数画像前の画像に付随している場合でも良く、更に、繰り返して、上記コマンドをメモリ管理情報として符号化し、複数の画像に付随させてもよい。   It should be noted that the command is encoded again when the command to move to the long-time storage memory is encoded along with the encoded signal of the image encoded immediately before at Step 125. The command may be attached to an image several images before, or may be repeatedly encoded as memory management information and attached to a plurality of images.

また、上記長時間保存メモリに移動するコマンドをメモリ管理情報として複数回伝送することができればよいのであって、必ずしもそのコマンドを再度符号化して伝送するときに画像の符号化信号に付随させて伝送する必要はない。   Also, it is only necessary that the command for moving to the long-term storage memory can be transmitted multiple times as memory management information, and the command is not necessarily transmitted when it is encoded again and transmitted. do not have to.

また、メモリ管理情報のコマンドを再送する場合に、その再送するコマンドが、符号化されたピクチャと同じストリームにあるのではなく、例えば別のストリームとして伝送するようにしてもよく、蓄積メディアの別の領域に記録されてもよい。   In addition, when retransmitting a memory management information command, the retransmitted command may not be in the same stream as the encoded picture, but may be transmitted as a separate stream, for example. May be recorded in this area.

以上のようにして、長時間保存メモリに画像を移動するコマンドを複数回符号化して伝送することで、伝送路エラーが発生した場合でも、複数回伝送されたコマンドのうちいずれかは伝送されて復号されると考えられるため、画像を正しく復元できる可能性が高くなる。   As described above, a command for moving an image to a long-time storage memory is encoded and transmitted multiple times, so that even if a transmission path error occurs, one of the commands transmitted multiple times is transmitted. Since it is considered that the image is decoded, there is a high possibility that the image can be correctly restored.

(実施の形態4)
次に、実施の形態4の画像復号化方法について説明する。
(Embodiment 4)
Next, an image decoding method according to the fourth embodiment will be described.

画像符号化装置が長時間保存メモリに移動するコマンドを複数回伝送した場合には、伝送路エラーでコマンドが消失しない限り、画像復号化装置は、短時間保存メモリ内の同じ画像の領域を長時間保存メモリに移動するコマンドを複数回受信することになる。従って、既に移動した画像を再度移動するコマンドを画像復号化装置が受信した場合でもエラーとして処理をせずに、逆に正しく受信できていると判断する画像復号化方法を実現しなければならない。本実施の形態における画像復号化方法の特徴は、このような画像復号化方法を実現したものである。   If the image encoding device transmits a command that moves to the long-term storage memory multiple times, the image decoding device will extend the same image area in the short-time storage memory unless the command is lost due to a transmission path error. The command to move to the time storage memory will be received multiple times. Therefore, it is necessary to realize an image decoding method for determining that the image has been correctly received without processing as an error even when the image decoding apparatus receives a command for moving an image that has already been moved. The feature of the image decoding method in the present embodiment is the realization of such an image decoding method.

図6は実施の形態4における画像復号化方法を示すフローチャートであり、図3に示す画像復号化装置200の動作を示している。図6において図37(b)と動作が同じものは同じ記号を付している。   FIG. 6 is a flowchart showing an image decoding method according to the fourth embodiment, and shows the operation of the image decoding apparatus 200 shown in FIG. In FIG. 6, components having the same operation as those in FIG.

図6において、まず、管理情報復号化部205がメモリ管理情報を復号化する(Step130)。そして、符号化信号から画像信号を復号化する(Step131)。   In FIG. 6, first, the management information decoding unit 205 decodes the memory management information (Step 130). Then, the image signal is decoded from the encoded signal (Step 131).

そして、メモリ情報制御部201が、復号化したメモリ管理情報に長時間保存メモリに画像を移動するコマンドがあるか否かを判定する(Step132)。長時間保存メモリに移動するコマンドがあれば(Step132のYes)そのコマンドで移動すべき画像があるか、若しくは既に移動済み(移動後に除去済みのため画像が存在しない)であるかを判定し(Step133)、長時間保存メモリに移動済みであれば(Step133のYes)何も処理をせず終了し、そうでなければ長時間保存メモリに移動して(Step134)処理を終了する。   Then, the memory information control unit 201 determines whether or not there is a command for moving the image to the long-time storage memory in the decoded memory management information (Step 132). If there is a command to move to the storage memory for a long time (Yes at Step 132), it is determined whether there is an image to be moved by the command or whether it has already been moved (there is no image because it has been removed after the movement) ( Step 133) If it has been moved to the long-time storage memory (Yes in Step 133), the process ends without performing any processing. Otherwise, it moves to the long-time storage memory (Step 134) and ends the process.

一方、長時間保存メモリに移動するコマンドが無い場合には(Step132のNo)Step133およびStep134の動作は行なわず処理を終了する。なお、Step130とStep131は順不同であり、入れ替わっても構わない。   On the other hand, when there is no command to move to the long-term storage memory (No in Step 132), the processing is terminated without performing Step 133 and Step 134. Note that Step 130 and Step 131 are out of order and may be switched.

以上のような動作により、実施の形態3の画像符号化方法で、長時間保存メモリに画像を移動するコマンドを複数回符号化して伝送しても、正しく復号化できる画像復号化方法が実現できる。   With the operation as described above, the image decoding method according to the third embodiment can realize an image decoding method that can be correctly decoded even if a command for moving an image to a long-term storage memory is encoded and transmitted a plurality of times. .

なお、上記長時間保存メモリに移動するコマンドをメモリ管理情報として複数回伝送されていればよいのであって、必ずしもそのコマンドを再度符号化して伝送するときに画像の符号化信号に付随させて伝送されている必要はない。   It is only necessary to transmit the command for moving to the long-term storage memory as memory management information a plurality of times, and when the command is encoded again and transmitted, it is transmitted along with the encoded signal of the image. There is no need to be.

また、メモリ管理情報のコマンドを再送する場合に、その再送するコマンドが、符号化されたピクチャと同じストリームにあるのではなく、例えば別のストリームとして伝送するようにしてもよく、蓄積メディアの別の領域に記録されてもよい。   In addition, when retransmitting a memory management information command, the retransmitted command may not be in the same stream as the encoded picture, but may be transmitted as a separate stream, for example. May be recorded in this area.

(実施の形態5)
次に、本実施の形態における画像符号化方法について説明する。図7は実施の形態5における画像符号化方法を示すフローチャートであり、図1で示した画像符号化装置100の動作を示している。図7において、図2と動作が同じものは同じ記号を付している。
(Embodiment 5)
Next, an image encoding method in the present embodiment will be described. FIG. 7 is a flowchart showing an image coding method according to the fifth embodiment, and shows the operation of the image coding apparatus 100 shown in FIG. In FIG. 7, the same operation as that in FIG.

図7に示す本実施の形態の特徴はメモリ内で不要な画像が存在する場合、その画像を除去するメモリ管理情報のコマンドを繰り返し符号化し、少なくとも1回はメモリに保存される重要画面に付随して伝送することである。メモリ管理情報のコマンドを繰り返し符号化する場合でも、重要度の高くない画像に付随してメモリ管理情報のコマンドを伝送したのでは、重要度の高くない画像が全て復号化されない場合にメモリ管理情報のコマンドは取得できなくなる。   The feature of this embodiment shown in FIG. 7 is that when an unnecessary image exists in the memory, the command of the memory management information for removing the image is repeatedly encoded, and at least once is attached to the important screen stored in the memory. Is transmitted. Even when the memory management information command is repeatedly encoded, if the memory management information command is transmitted along with the non-important image, the memory management information is not decoded when all the non-important images are not decoded. This command cannot be acquired.

例えば、図35(a)において、ピクチャ番号4の画像はピクチャ番号5の画像を符号化した後は不要になるため、ピクチャ番号5の画像に付随してピクチャ番号4の画像のあるメモリ領域を開放するコマンドを符号化することができる。   For example, in FIG. 35 (a), the picture number 4 image becomes unnecessary after the picture number 5 image is encoded. Therefore, a memory area in which the picture number 4 image is attached to the picture number 5 image. The command to be released can be encoded.

しかしながら、このピクチャ番号4の画像のあるメモリ領域を開放するコマンドをピクチャ番号5の画像に付随して符号化する以外に、ピクチャ番号7の画像に付随して符号化したのでは、いずれも最も重要度が低い(復号化しない場合に画質劣化が少ない)Bピクチャに付随して上記コマンドが符号化されることになる。これらのBピクチャは復号化されないことがあり、ピクチャ番号4の画像のあるメモリ領域を開放するコマンドが復号化されないことになり、メモリ内の管理情報が正しく再現できないことになる。従って、少なくとも1回は、重要度が高く、必ず復号化され、メモリに保存される画像に付随して画像領域を開放するコマンドを符号化することが必要である。   However, in addition to encoding the command for releasing the memory area in which the picture with the picture number 4 is attached to the picture with the picture number 5, any of the commands attached to the picture with the picture number 7 is the most. The command is encoded along with a B picture having a low importance level (less image quality deterioration when not decoded). These B pictures may not be decoded, and a command for releasing a memory area with an image of picture number 4 will not be decoded, and management information in the memory cannot be reproduced correctly. Therefore, at least once, it is necessary to encode a command that has a high degree of importance and is necessarily decoded and frees an image area accompanying an image stored in a memory.

図7において、まず入力画像を符号化する(Step100)。符号化後にメモリ内で不要な領域(今後の符号化で参照されない画像)を調査し(Step101)、不要なメモリ領域があるかを判定する(Step102)。不要なメモリ領域があれば(Step102のYes)、管理情報符号化部105が、不要なメモリ領域を開放するコマンドをメモリ管理情報として符号化する(Step103)。そして、その不要なメモリ領域を開放する(Step104)。不要なメモリ領域が無い場合(Step102のNo)は、Step103およびStep104の動作は行わない。   In FIG. 7, first, an input image is encoded (Step 100). After encoding, an unnecessary area (an image that will not be referred to in future encoding) is examined in the memory (Step 101), and it is determined whether there is an unnecessary memory area (Step 102). If there is an unnecessary memory area (Yes in Step 102), the management information encoding unit 105 encodes a command for releasing the unnecessary memory area as memory management information (Step 103). Then, the unnecessary memory area is released (Step 104). If there is no unnecessary memory area (No in Step 102), the operations in Step 103 and Step 104 are not performed.

次に、メモリ情報制御部101は、過去に符号化された、不要なメモリ領域を開放するコマンドが重要画像(復号化されメモリに保存される)に付随されて符号化されているかを判定し(Step140)、重要画像に付随されて符号化されていれば(Step140のYes)処理を終了し、重要画像に付随されて符号化されていなければ(Step140のNo)、管理情報符号化部105は、その不要なメモリ領域を開放するコマンドを再度メモリ管理情報として符号化して(Step141)処理を終了する。   Next, the memory information control unit 101 determines whether a command encoded in the past and freeing an unnecessary memory area is encoded accompanying an important image (decoded and stored in the memory). If (Step 140) is encoded along with the important image (Yes at Step 140), the process ends. If it is not encoded along with the important image (No at Step 140), the management information encoding unit 105 Encodes the command for releasing the unnecessary memory area again as memory management information (Step 141), and ends the process.

これにより、不要なメモリ領域を開放するコマンドが重要画像に付随されて符号化される。   As a result, a command for releasing an unnecessary memory area is encoded along with the important image.

以上のようにして、復号化されメモリに保存される重要画像に上記コマンドが付随されるため、上記コマンドが復号されることになり、伝送路エラーが発生した際に画像を正しく復元できる可能性が高くなる。   As described above, since the command is attached to the important image that is decoded and stored in the memory, the command is decoded, and there is a possibility that the image can be correctly restored when a transmission path error occurs. Becomes higher.

なお、上記不要なメモリ領域を開放するコマンドをメモリ管理情報として複数回伝送することができればよいのであって、そのコマンドを再度符号化して伝送するときに必ずしも画像の符号化信号に付随させて伝送する必要はない。   It is only necessary to transmit the command for releasing the unnecessary memory area as memory management information a plurality of times. When the command is encoded and transmitted again, it is not necessarily transmitted along with the encoded signal of the image. do not have to.

また、メモリ管理情報のコマンドを再送する場合に、その再送するコマンドが、符号化されたピクチャと同じストリームにあるのではなく、例えば別のストリームとして伝送するようにしてもよく、蓄積メディアの別の領域に記録されてもよい。   In addition, when retransmitting a memory management information command, the retransmitted command may not be in the same stream as the encoded picture, but may be transmitted as a separate stream, for example. May be recorded in this area.

(実施の形態6)
次に、本実施の形態の画像符号化方法について説明する。図8は実施の形態6における画像符号化方法を示すフローチャートである。図8は、図1に示した画像符号化装置100の動作を示している。図8において、図5と動作が同じものは同じ記号を付している。
(Embodiment 6)
Next, the image coding method according to the present embodiment will be described. FIG. 8 is a flowchart showing an image encoding method according to the sixth embodiment. FIG. 8 shows the operation of the image coding apparatus 100 shown in FIG. In FIG. 8, those having the same operation as those in FIG.

図8に示す本実施の形態の特徴は、長時間保存メモリに画像を移動するメモリ管理情報のコマンドを繰り返し符号化し、少なくとも1回は重要画面(復号化されメモリに保存される)に付随して伝送することである。長時間保存メモリに画像を移動するメモリ管理情報のコマンドを繰り返し符号化する場合でも、重要度の高くない画像に付随してメモリ管理情報のコマンドを伝送したのでは、重要度の高くない画像が全て復号化されない場合に、メモリ管理情報のコマンドを取得できなくなる。   The feature of this embodiment shown in FIG. 8 is that the command of the memory management information for moving the image to the long-time storage memory is repeatedly encoded, and is attached to the important screen (decoded and stored in the memory) at least once. Is transmitted. Even when a memory management information command for moving an image to a long-term storage memory is repeatedly encoded, if a memory management information command is transmitted along with a non-important image, an unimportant image is If all of them are not decrypted, the command of the memory management information cannot be acquired.

図8において、まず入力画像を符号化する(Step120)。符号化後に長時間保存メモリに移動すべき画像があるかを調査し(Step121)、移動すべき画像があるかを判定する(Step122)。   In FIG. 8, first, the input image is encoded (Step 120). After encoding, it is investigated whether there is an image to be moved to the long-time storage memory (Step 121), and it is determined whether there is an image to be moved (Step 122).

移動すべき画像があれば(Step122のYes)、管理情報符号化部105がどのように長時間保存メモリに移動するかを示すコマンドをメモリ管理情報として符号化し(Step123)、そのコマンド通りに画像を長時間保存メモリに移動する(Step124)。   If there is an image to be moved (Yes in Step 122), a command indicating how the management information encoding unit 105 moves to the long-time storage memory is encoded as memory management information (Step 123), and the image is transmitted according to the command. Is moved to the long-time storage memory (Step 124).

次に、メモリ情報制御部101が、過去に符号化した長時間保存メモリに移動するコマンドが、重要画像(復号化されメモリに保存される)に付随されて符号化されているか否かを判定し(Step150)、重要画像に付随していれば(Step150のYes)処理を終了し、重要画像に付随されていなければ(Step150のNo)、管理情報符号化部105がその長時間保存メモリに移動するコマンドを再度メモリ管理情報として符号化して(Step151)、処理を終了する。   Next, the memory information control unit 101 determines whether or not the command for moving to the long-time storage memory encoded in the past is encoded accompanying the important image (decoded and stored in the memory). If it is attached to the important image (Yes in Step 150), the process ends. If not attached to the important image (No in Step 150), the management information encoding unit 105 stores it in the long-time storage memory. The moving command is encoded again as the memory management information (Step 151), and the process ends.

これにより、長時間保存メモリに画像を移動するコマンドが重要画像に付随して符号化される。   As a result, the command for moving the image to the long-term storage memory is encoded along with the important image.

以上のようにして、復号化されメモリに保存される重要画像に上記コマンドが付随するため、上記コマンドが復号化されることになり、伝送路エラーが発生した際に画像を正しく復元できる可能性が高くなる。   As described above, since the command is attached to the important image that is decoded and stored in the memory, the command is decoded, and there is a possibility that the image can be correctly restored when a transmission line error occurs. Becomes higher.

なお、上記長時間保存メモリに移動するコマンドをメモリ管理情報として複数回伝送されていればよいのであって、そのコマンドを再度符号化して伝送するときに必ずしも画像の符号化信号に付随させて伝送されている必要はない。   It is only necessary to transmit the command for moving to the long-term storage memory as memory management information a plurality of times. When the command is encoded and transmitted again, it is not necessarily transmitted along with the encoded signal of the image. There is no need to be.

また、メモリ管理情報のコマンドを再送する場合に、その再送するコマンドが、符号化されたピクチャと同じストリームにあるのではなく、例えば別のストリームとして伝送するようにしてもよく、蓄積メディアの別の領域に記録されてもよい。   In addition, when retransmitting a memory management information command, the retransmitted command may not be in the same stream as the encoded picture, but may be transmitted as a separate stream, for example. May be recorded in this area.

(実施の形態7)
実施の形態7における画像符号化方法について説明する。
(Embodiment 7)
An image encoding method according to Embodiment 7 will be described.

本実施の形態の特徴は、画像の重要度に応じて選択した参照画像を参照して符号化を行う画像符号化方法である。   A feature of the present embodiment is an image encoding method in which encoding is performed with reference to a reference image selected according to the importance of the image.

図9は本発明の実施の形態7における画像符号化方法を示すフローチャートである。図9は、図1で示した画像符号化装置100が行う動作を示したものである。   FIG. 9 is a flowchart showing an image coding method according to Embodiment 7 of the present invention. FIG. 9 shows operations performed by the image coding apparatus 100 shown in FIG.

図9において、まず符号化対象の各画像の重要度を設定する(Step160)。例えば、IピクチャやPピクチャの重要度は高く、Bピクチャの重要度は低い。また、同じPピクチャであっても、多くの画像から参照されるPピクチャの重要度は高く、あまり参照されないPピクチャの重要度は低い。   In FIG. 9, first, the importance level of each image to be encoded is set (Step 160). For example, the importance of I pictures and P pictures is high, and the importance of B pictures is low. Also, even for the same P picture, the importance of P pictures that are referenced from many images is high, and the importance of P pictures that are not often referenced is low.

次に、符号化対象画像と同等以上の重要度の画像をメモリ内の参照画像から選択し、参照画像の候補とする(Step161)。例えば、BピクチャはIピクチャおよびPピクチャを参照できるが、Pピクチャは重要度が低いPピクチャを参照画像の候補から除外する。   Next, an image having an importance level equal to or higher than that of the encoding target image is selected from the reference images in the memory and set as reference image candidates (Step 161). For example, a B picture can refer to an I picture and a P picture, but a P picture excludes a less important P picture from the reference image candidates.

次に選択した参照画像の候補を示す指示情報(メモリ管理情報の一種)を符号化し(Step162)、選択した参照画像の候補の中からブロック単位で適切な参照画像を参照して符号化する(Step163)。なお、Step162とStep163は順不同であり、入れ替わっても構わない。   Next, the instruction information (a kind of memory management information) indicating the selected reference image candidate is encoded (Step 162), and is encoded with reference to an appropriate reference image in block units from the selected reference image candidates ( Step 163). Note that Step 162 and Step 163 are out of order and may be interchanged.

このようにして、参照画像の候補の中に、符号化対象画像の重要度よりも低い重要度の画像を入れないようにしている。   In this way, an image having an importance level lower than the importance level of the encoding target image is not included in the reference image candidates.

以上のように、参照画像の候補の中に、符号化対象画像の重要度よりも低い重要度の画像を入れないことにより、スケーラビリティを実現できるストリームを生成した場合に参照不可能な画像を参照画像の候補から除外することができ、符号化効率が向上する。   As described above, referencing an image that cannot be referred to when a stream that can achieve scalability is generated by not including an image with an importance lower than the importance of the encoding target image in the reference image candidates. Since it can be excluded from image candidates, encoding efficiency is improved.

ここで、上述したように設定された画像の重要度に応じて行われる画像符号化方法について、図10を用いて具体的に説明する。   Here, the image coding method performed according to the importance of the image set as described above will be specifically described with reference to FIG.

図10(a)は、各フレームに付与される番号(ピクチャ(フレーム)番号)と、各フレームがメモリ内に保存されるときの番号(保存ピクチャ(フレーム)番号)と、各フレームが伝送される順番を示す番号(伝送順序)の関係を示す説明図である。   FIG. 10A shows a number (picture (frame) number) given to each frame, a number when each frame is stored in the memory (stored picture (frame) number), and each frame is transmitted. It is explanatory drawing which shows the relationship of the number (transmission order) which shows an order.

図10(a)において、ピクチャ番号0のIピクチャは他のピクチャを参照しないのでメモリに保存され、保存ピクチャ番号は0になる。次にピクチャ番号0のIピクチャを参照するピクチャ番号2のPピクチャがメモリに保存されるためピクチャ番号2のPピクチャに関する保存ピクチャ番号が1となる。そして次に、ピクチャ番号0のIピクチャとピクチャ番号2のPピクチャを参照するピクチャ番号1のBピクチャがメモリ内に保存されるため、ピクチャ番号1のBピクチャの保存ピクチャ番号が2となる。各ピクチャが伝送される順番は、メモリに保存された順番とする。同様の手順でピクチャ番号と保存ピクチャ番号と伝送順序の関係が決まる。   In FIG. 10A, the I picture with picture number 0 is stored in the memory because it does not refer to other pictures, and the stored picture number is 0. Next, since the P picture with the picture number 2 referring to the I picture with the picture number 0 is saved in the memory, the saved picture number with respect to the P picture with the picture number 2 becomes 1. Next, since the B picture of picture number 1 that refers to the I picture of picture number 0 and the P picture of picture number 2 is stored in the memory, the stored picture number of the B picture of picture number 1 is 2. The order in which each picture is transmitted is the order stored in the memory. The relationship between the picture number, the stored picture number, and the transmission order is determined by the same procedure.

次に、デコード(復号)するピクチャ番号と、メモリに保存されているピクチャ番号、および削除されるピクチャ番号の関係の一例について図10(b)を用いて説明する。   Next, an example of the relationship between the picture number to be decoded (decoded), the picture number stored in the memory, and the picture number to be deleted will be described with reference to FIG.

図10(b)はデコードするピクチャ番号(フレーム番号)と保存されているピクチャ番号(フレーム番号)と削除されるピクチャ番号(フレーム番号)の関係を示す関係図である。なお、ここではメモリに保存できるピクチャの最大枚数を5とする。メモリには伝送順序に従ってピクチャが保存されることになる。   FIG. 10B is a relationship diagram showing the relationship between the picture number to be decoded (frame number), the saved picture number (frame number), and the deleted picture number (frame number). Here, the maximum number of pictures that can be stored in the memory is 5. Pictures are stored in the memory according to the transmission order.

また、例えばピクチャ番号が4のPピクチャがデコードされるときには、ピクチャ番号が4のPピクチャの保存ピクチャ番号が3であるため、保存ピクチャ番号が0、1、2のピクチャがメモリ上に保存されることになる。デコードするピクチャ番号が3のBピクチャがデコードされるときには、図10(b)に示すように、ピクチャ番号が4、1、2、0のピクチャが保存されている。ここで、ピクチャ番号1のBピクチャは、図10(a)に示すように、ピクチャ番号3のピクチャを復号化した後はどのピクチャからも参照されることがないため、ピクチャ番号が3のピクチャがデコードされた時点で削除される。   For example, when a P picture with a picture number of 4 is decoded, the saved picture number of the P picture with a picture number of 4 is 3, so that the pictures with the saved picture numbers of 0, 1, and 2 are saved in the memory. Will be. When the B picture with the picture number 3 to be decoded is decoded, the pictures with the picture numbers 4, 1, 2, and 0 are stored as shown in FIG. Here, as shown in FIG. 10A, the B picture with the picture number 1 is not referenced by any picture after the picture with the picture number 3 is decoded. Is deleted when is decoded.

同様に、デコードするピクチャ番号が5のBピクチャがデコードされるときには、図10(b)に示すように、ピクチャ番号が6、3、4、2、0のピクチャが保存されている。ここで、ピクチャ番号3のBピクチャは、ピクチャ番号5のピクチャを復号化した後はどのピクチャからも参照されることがないため、ピクチャ番号が5のBピクチャがデコードされた時点で削除される。   Similarly, when a B picture with a picture number of 5 to be decoded is decoded, pictures with a picture number of 6, 3, 4, 2, 0 are stored as shown in FIG. Here, since the B picture with the picture number 3 is not referred to by any picture after the picture with the picture number 5 is decoded, it is deleted when the B picture with the picture number 5 is decoded. .

さらに、デコードするピクチャ番号が8のPピクチャがデコードされるときには、図10(b)に示すように、ピクチャ番号が5、6、4、2、0のピクチャが保存されている。ここでメモリには最大5フレームしか保存できないため、ピクチャ番号8のPピクチャを後で参照するためにはピクチャ番号が5、6、4、2、0のいずれかのピクチャを削除してピクチャ番号8のPピクチャを記憶するメモリを確保しなければならない。従って、図10(b)における削除するフレームの選択基準として、Pピクチャのデコード、つまり偶数番号のピクチャ番号のデコードにおいては時間的に最も古いピクチャ、即ちこの場合はピクチャ番号が0のIピクチャをピクチャ番号8のPピクチャをデコードした時点で削除する。   Further, when a P picture with a picture number 8 to be decoded is decoded, pictures with picture numbers 5, 6, 4, 2, 0 are stored as shown in FIG. Here, since only a maximum of 5 frames can be stored in the memory, in order to refer to the P picture with the picture number 8 later, any picture with the picture number 5, 6, 4, 2, 0 is deleted and the picture number is deleted. Memory for storing 8 P pictures must be reserved. Therefore, as a reference for selecting a frame to be deleted in FIG. 10B, in decoding of a P picture, that is, decoding of an even-numbered picture number, an oldest picture in time, that is, an I picture having a picture number of 0 in this case is selected. When the P picture with picture number 8 is decoded, it is deleted.

同様に、デコードするピクチャ番号が7のBピクチャがデコードされるときには、図10(b)に示すように、ピクチャ番号が8、5、6、4、2のピクチャが保存されている。ここで、ピクチャ番号5のBピクチャは、ピクチャ番号7のBピクチャを復号化した後はどのピクチャからも参照されることがないため、ピクチャ番号が7のBピクチャをデコードした時点で削除される。   Similarly, when a B picture with a picture number 7 to be decoded is decoded, pictures with picture numbers 8, 5, 6, 4, 2 are stored as shown in FIG. 10B. Here, since the B picture with picture number 5 is not referred to by any picture after the B picture with picture number 7 is decoded, it is deleted when the B picture with picture number 7 is decoded. .

さらに、デコードするピクチャ番号が10のPピクチャがデコードされるときには、図10(b)に示すように、ピクチャ番号が7、8、6、4、2のピクチャが保存されている。ここで、メモリには最大5フレームしか保存できないため、ピクチャ番号10のPピクチャを後で参照するためにはピクチャ番号が7、8、6、4、2のいずれかのピクチャを削除してピクチャ番号10のピクチャを記憶するメモリを確保しなければならない。従って、図10(b)における削除するフレームの選択基準として、Pピクチャのデコード、つまり偶数番号のピクチャ番号であるピクチャのデコードにおいては、時間的に最も古いピクチャ番号が2のピクチャをピクチャ番号10のPピクチャをデコードした時点で削除する。   Furthermore, when a P picture with a picture number 10 to be decoded is decoded, pictures with picture numbers 7, 8, 6, 4, 2 are stored as shown in FIG. Here, since only a maximum of 5 frames can be stored in the memory, in order to refer to the P picture with the picture number 10 later, one of the pictures with the picture numbers 7, 8, 6, 4, and 2 is deleted. A memory for storing the picture number 10 must be secured. Therefore, as a reference for selecting a frame to be deleted in FIG. 10B, in decoding of a P picture, that is, decoding of a picture having an even-numbered picture number, the picture with the oldest picture number 2 in time is assigned the picture number 10 When the P picture is decoded, it is deleted.

このようにピクチャが削除されるときに、デコードされるピクチャの符号化信号に、ピクチャを削除するためのメモリ管理情報のコマンドが符号化されて付随され、伝送される。   When a picture is deleted in this way, a command of memory management information for deleting the picture is encoded and attached to the encoded signal of the picture to be decoded and transmitted.

上記図10(b)に示した例では、メモリ内で不要な画像(ピクチャ)が存在し、その画像を除去するメモリ管理情報のコマンドを1回送る例について述べた。このように、除去するメモリ管理情報のコマンドを1回だけ送ると、Bピクチャに付随して送られたメモリ管理情報のコマンドを実行することができない可能性がある。なぜなら、Bピクチャは、Pピクチャの符号化・復号化で参照される画像として用いられる可能性が低いため、十分な記憶容量や伝送容量が確保できない場合にBピクチャのデータが優先して破棄される可能性が高く、その結果Bピクチャに付随して送られたメモリ管理情報のコマンドを実行できない可能性があるためである。   In the example shown in FIG. 10B, an example in which an unnecessary image (picture) exists in the memory and a command of memory management information for removing the image is sent once has been described. As described above, if the memory management information command to be removed is sent only once, the memory management information command sent along with the B picture may not be executed. This is because a B picture is unlikely to be used as an image that is referred to in encoding / decoding of a P picture, and therefore, when a sufficient storage capacity or transmission capacity cannot be secured, the B picture data is discarded with priority. This is because there is a possibility that the command of the memory management information sent accompanying the B picture cannot be executed.

この問題を解決するために、画像を除去するメモリ管理情報のコマンドを繰り返し符号化して伝送するようにした例を説明する。以下図10(c)について具体的に説明する。   In order to solve this problem, an example in which a command of memory management information for removing an image is repeatedly encoded and transmitted will be described. Hereinafter, FIG. 10C will be specifically described.

図10(c)は、デコードするピクチャ番号(フレーム番号)と保存されているピクチャ番号(フレーム番号)と削除されるピクチャ番号(フレーム番号)の他の関係を示した関係図である。図10(c)において、削除されるピクチャ番号のピクチャを削除するコマンドが、デコードするピクチャ番号のピクチャの符号化信号に付随することを示している。   FIG. 10C is a relationship diagram showing another relationship between a picture number to be decoded (frame number), a stored picture number (frame number), and a deleted picture number (frame number). FIG. 10C shows that the command for deleting the picture with the picture number to be deleted is attached to the encoded signal of the picture with the picture number to be decoded.

図10(c)に示すように、ピクチャ番号が3のBピクチャがデコードされるときには、ピクチャ番号が4、1、2、0のピクチャが保存されている。ここで、ピクチャ番号1のBピクチャは、図10(a)に示すように、ピクチャ番号3のピクチャを復号化した後はどのピクチャからも参照されることがない。よって、ピクチャ番号が3のピクチャがデコードされた時点でピクチャ番号1のBピクチャを削除し、削除するためのメモリ管理情報のコマンドがピクチャ番号3のピクチャに付随される。   As shown in FIG. 10C, when the B picture with the picture number 3 is decoded, the pictures with the picture numbers 4, 1, 2, and 0 are stored. Here, as shown in FIG. 10A, the B picture with the picture number 1 is not referred to by any picture after the picture with the picture number 3 is decoded. Therefore, when the picture with the picture number 3 is decoded, the B picture with the picture number 1 is deleted, and a command of memory management information for deletion is attached to the picture with the picture number 3.

しかし、ピクチャ番号3のピクチャはBピクチャであるため、IピクチャやPピクチャと比べて画像の再現の点において前述の様に重要度が低く、送信の際にデータが破棄されやすいためピクチャ番号3のBピクチャに付随して送られたメモリ管理情報のコマンドを実行できない可能性がある(図21に示すようにフレームが保存される場合)。   However, since the picture with picture number 3 is a B picture, it is less important in terms of image reproduction than the I picture and P picture as described above, and data is easily discarded at the time of transmission. There is a possibility that the command of the memory management information sent along with the B picture cannot be executed (when a frame is stored as shown in FIG. 21).

そこで、次にデコードする、ピクチャ番号3のBピクチャより画像の再現の点において重要度が高いピクチャ番号6のPピクチャに、ピクチャ番号3に付随させたピクチャ番号1のピクチャを削除することを示すメモリ管理情報のコマンドを付随させる(図10(c)参照)。   Therefore, it is shown that the picture with the picture number 1 attached to the picture number 3 is deleted from the P picture with the picture number 6, which is more important in terms of image reproduction than the B picture with the picture number 3 to be decoded next. A command of memory management information is attached (see FIG. 10C).

同様に、ピクチャ番号8のPピクチャにピクチャ番号5のBピクチャに付随させたメモリ管理情報のコマンド(ピクチャ番号3のピクチャを削除することを示す)を付随させ、ピクチャ番号10のPピクチャにピクチャ番号7のBピクチャに付随させたメモリ管理情報のコマンド(ピクチャ番号5のピクチャを削除することを示す)を付随させる。なお、ピクチャ番号8のピクチャはPピクチャであるため、図10(c)に示すように、ピクチャ番号7のBピクチャにピクチャ番号8のピクチャに付随させたメモリ管理情報のコマンドを付随させていないが、付随させてもよい。   Similarly, a memory management information command (indicating that a picture with picture number 3 is to be deleted) associated with a B picture with picture number 5 is attached to the P picture with picture number 8, and the P picture with picture number 10 is assigned a picture. A memory management information command (indicating that the picture with picture number 5 is to be deleted) is attached to the B picture with number 7. Since the picture with picture number 8 is a P picture, as shown in FIG. 10C, the B picture with picture number 7 is not accompanied by the command of the memory management information associated with the picture with picture number 8. However, it may be accompanied.

以上、図10(c)に示すように、Bピクチャに最初に付随させたメモリ管理情報のコマンドと同一のメモリ管理情報のコマンドを、Bピクチャより画像の再現の点において重要度の高いピクチャであり、最初にメモリ管理情報のコマンドを付随させたBピクチャより後に保存または伝送されるピクチャに、繰り返し付随させた。これにより、最初にメモリ管理情報のコマンドが付随されたBピクチャが欠落しても、メモリ管理情報のコマンドを正常に実行することができる。   As described above, as shown in FIG. 10C, the same memory management information command as the memory management information command first attached to the B picture is a picture that is more important in terms of image reproduction than the B picture. Yes, it is repeatedly attached to a picture stored or transmitted after a B picture to which a command of memory management information is first attached. As a result, even if the B picture accompanied with the memory management information command is lost first, the memory management information command can be executed normally.

なお、図10(c)を用いて説明したように、Bピクチャにメモリ管理情報のコマンドを付随させても、更にPピクチャに繰り返しメモリ管理情報のコマンドを付随させる場合に、設定された重要度が用いられる。なお、重要度の設定は、本実施の形態に示したものに限られない。   Note that, as described with reference to FIG. 10C, even when the memory management information command is attached to the B picture, and the repeated memory management information command is additionally attached to the P picture, the set importance is set. Is used. Note that the importance setting is not limited to that shown in the present embodiment.

なお、本実施の形態では各画像の重要度に応じて、各画像を送るか送らないかを決めており、各画像における重要度を、上記実施の形態に示すメモリ管理情報のように各画像に付随して符号化するわけではない。よって、本実施の形態で符号化されたデータの復号化処理は従来の方法と変わらない。   In this embodiment, it is determined whether or not to send each image according to the importance of each image, and the importance in each image is determined according to the memory management information shown in the above embodiment. The encoding is not necessarily accompanied. Therefore, the decoding process of the data encoded in the present embodiment is not different from the conventional method.

(実施の形態8)
次に、実施の形態8について説明する。
(Embodiment 8)
Next, an eighth embodiment will be described.

本実施の形態の特徴は、メモリ内の全画像(ピクチャ)を削除して、メモリ領域の初期化を行う(メモリ管理情報の)コマンドを複数回符号化して伝送することである。   A feature of this embodiment is that all images (pictures) in the memory are deleted and a command for initializing the memory area (in memory management information) is encoded and transmitted a plurality of times.

上記各実施の形態で示したメモリ管理情報は、図11に示すようなコード情報として付与される。 The memory management information shown in the above embodiments is given as code information as shown in FIG.

図11は、メモリ管理情報のコマンドを示す対応図であり、コード番号(Code)と、コマンドの内容(コマンド)と、その付加情報(付加情報)を示している。   FIG. 11 is a correspondence diagram showing commands of the memory management information, and shows a code number (Code), command contents (command), and additional information (additional information).

例えば、短時間保存メモリの不要なメモリ領域を開放するコマンド(短時間保存メモリ開放)はコード情報Code1として付与され、開放するピクチャ番号(フレーム番号)が付加情報として付加される。   For example, a command for releasing an unnecessary memory area of the short-term storage memory (short-term storage memory release) is given as code information Code1, and a picture number (frame number) to be released is added as additional information.

また、コード情報は図13に示す各フレームのヘッダ情報として与えられる。   The code information is given as header information of each frame shown in FIG.

図13は、各ピクチャの符号化信号におけるヘッダ情報とフレームデータとの関係を示す模式図である。図13において、各符号化信号は、後述するフレームFrm12、Frm11、Frm14の符号化信号を示している。各符号化信号は、ヘッダ情報を有するフレームヘッダと画像の符号化に関するフレームデータを備えている。例えば、フレームFrm12の符号化信号は、フレームヘッダFrm12Hdrと、各データMB12a,MB12b,MB12c,MB12dなどからなるフレームデータを備えている。   FIG. 13 is a schematic diagram showing the relationship between header information and frame data in the encoded signal of each picture. In FIG. 13, each encoded signal indicates an encoded signal of frames Frm12, Frm11, and Frm14 described later. Each encoded signal includes a frame header having header information and frame data related to image encoding. For example, the encoded signal of the frame Frm12 includes a frame header Frm12Hdr and frame data including each data MB12a, MB12b, MB12c, MB12d, and the like.

この符号化信号の詳細を図14の模式図に示す。   Details of this encoded signal are shown in the schematic diagram of FIG.

図14は、符号化信号のヘッダ情報におけるメモリ管理情報のコマンドを示す模式図である。   FIG. 14 is a schematic diagram showing a command of memory management information in the header information of the encoded signal.

図14に示すように、フレームFrmAの符号化信号はヘッダ情報を有するフレームヘッダFrmAHdrと、各データMBa,MBb,MBc,Mbdなどからなるフレームデータとを備えている。そして、コマンドのコード情報CodeAの次にコード情報CodeAの付加情報AddAが、続いてコード情報CodeAのコマンドの次に実行されるべきコマンドのコード情報CodeB、コード情報CodeBの付加情報AddBがフレームヘッダFrmAHdrに付加される。付加情報がなければコード情報CodeCのようにコード情報のみが付加される。   As shown in FIG. 14, the encoded signal of the frame FrmA includes a frame header FrmAHdr having header information, and frame data composed of data MBa, MBb, MBc, Mbd, and the like. The additional information AddA of the code information CodeA follows the code information CodeA of the command, the code information CodeB of the command to be executed next to the command of the code information CodeA, and the additional information AddB of the code information CodeB are the frame header FrmAHdr. To be added. If there is no additional information, only code information is added as in code information CodeC.

次に、図12にコマンド実行の手順を示す。   Next, FIG. 12 shows a command execution procedure.

図12は、コマンド実行手順を示すフローチャートである。   FIG. 12 is a flowchart showing a command execution procedure.

図12において、まずコマンドを取得し(StepC0)、コマンドの取得が終了したか否かを判定する(StepC1)。コマンドの取得が終了しておらず、コマンドが取得されれば(StepC1のNo)、取得したコマンドの実行を行い(StepC2)、StepC0に戻ってこの動作を繰り返す。一方、コマンドの取得が終了しておりコマンドが取得されなければ(StepC1のYes)、コマンド実行の処理を終了する。この手続きをフレーム毎に行う。なお、複数のマクロブロックからなるスライスの単位でコマンド情報が送られる場合でも、同上の手順でコマンドが実行される。   In FIG. 12, first, a command is acquired (Step C0), and it is determined whether or not the acquisition of the command is completed (Step C1). If the command acquisition is not completed and the command is acquired (No in Step C1), the acquired command is executed (Step C2), and the process returns to Step C0 to repeat this operation. On the other hand, if the acquisition of the command has been completed and the command has not been acquired (Yes in Step C1), the command execution process ends. This procedure is performed for each frame. Even when command information is sent in units of slices composed of a plurality of macroblocks, the command is executed in the same procedure as above.

ところで、上記実施の形態1では不要な画像を除去する(メモリを開放する)メモリ管理情報のコマンドについて説明した。さらに、実施の形態1では、不要な画像を除去するメモリ管理情報のコマンドを繰り返し符号化することで、片方のメモリ管理情報のコマンドが伝送路エラーで消失しても、もう一方のメモリ管理情報のコマンドからメモリ内に保存されている画像の管理情報を復元でき、画像を正しく復元できる可能性が高くなることを示した。   In the first embodiment, the memory management information command for removing an unnecessary image (releasing memory) has been described. Furthermore, in the first embodiment, by repeatedly encoding a memory management information command for removing unnecessary images, even if one memory management information command disappears due to a transmission path error, the other memory management information It was shown that the management information of the image stored in the memory can be restored from this command, and the possibility that the image can be restored correctly is increased.

ここで、図11に示すコード情報のうち、メモリ内の全ての情報を除去する初期化コマンドCode5について検討する。   Here, consider the initialization command Code5 that removes all the information in the memory from the code information shown in FIG.

初期化コマンドCode5が一度だけ送られるときに、この初期化コマンドCode5が伝送路エラーで消失すれば、本来初期化した後に行うメモリ管理等の処理に影響が出る。そこで、実施の形態1と同様に、初期化コマンドCode5を繰り返し符号化して伝送した場合について図15を用いて説明する。   If the initialization command Code5 disappears due to a transmission path error when the initialization command Code5 is sent only once, the processing such as memory management performed after the initialization is affected. Therefore, as in the first embodiment, a case where the initialization command Code5 is repeatedly encoded and transmitted will be described with reference to FIG.

図15は各フレームに付与される番号(ピクチャ(フレーム)番号)と、各フレームがメモリ内に保存されるときの番号(保存ピクチャ(フレーム)番号)と、各フレームが伝送される順番を示す番号(伝送順序)の関係を示す説明図である。   FIG. 15 shows a number (picture (frame) number) assigned to each frame, a number when each frame is stored in the memory (stored picture (frame) number), and an order in which each frame is transmitted. It is explanatory drawing which shows the relationship of a number (transmission order).

以下、図15について具体的に説明する。まず、ピクチャ番号0のIピクチャは他のピクチャを参照しないのでメモリに保存され、保存ピクチャ番号は0になる。次にピクチャ番号0のIピクチャを参照するピクチャ番号2のPピクチャがメモリに保存されるためピクチャ番号2のPピクチャに関する保存ピクチャ番号が1となる。そして、ピクチャ番号0のIピクチャとピクチャ番号2のPピクチャを参照するピクチャ番号1のBピクチャがメモリ内に保存されるため、ピクチャ番号1のBピクチャの保存ピクチャ番号が2となる。各ピクチャが伝送される順番は、メモリに保存された順番とする。同様の手順でピクチャ番号と保存ピクチャ番号と伝送順序の関係が決まる。   Hereinafter, FIG. 15 will be specifically described. First, since the I picture with picture number 0 does not refer to other pictures, it is saved in the memory, and the saved picture number becomes 0. Next, since the P picture with the picture number 2 referring to the I picture with the picture number 0 is saved in the memory, the saved picture number with respect to the P picture with the picture number 2 becomes 1. Then, since the B picture with the picture number 1 referring to the I picture with the picture number 0 and the P picture with the picture number 2 is saved in the memory, the saved picture number of the B picture with the picture number 1 becomes 2. The order in which each picture is transmitted is the order stored in the memory. The relationship between the picture number, the stored picture number, and the transmission order is determined by the same procedure.

図15に示すピクチャ番号12のIピクチャを符号化するときに図11に示す初期化コマンドCode5を送るとする。ピクチャ番号12のIピクチャの保存ピクチャ番号は11であるため、この初期化コマンドCode5により、保存ピクチャ番号が10以下のピクチャをメモリ内から全て除去することができる。   Assume that the initialization command Code5 shown in FIG. 11 is sent when the I picture with the picture number 12 shown in FIG. 15 is encoded. Since the saved picture number of the I picture with the picture number 12 is 11, all the pictures with the saved picture number of 10 or less can be removed from the memory by this initialization command Code5.

ここで、初期化コマンドCode5を符号化する方法について図16を用いて説明する。   Here, a method of encoding the initialization command Code5 will be described with reference to FIG.

図16は、初期化コマンドcode5を符号化する方法を示すフローチャートであり、図1に示す画像符号化装置100が行う動作を示している。   FIG. 16 is a flowchart showing a method of encoding the initialization command code5, and shows the operation performed by the image encoding device 100 shown in FIG.

まず、入力画像を符号化する(StepA0)。符号化後にメモリ内の参照可能な全てのピクチャが不要かどうか(今後の符号化でどの画像も参照されないかどうか)を調査(初期化調査)し(StepA1)、メモリに格納されていたピクチャが今後参照されず初期化した方がよいかを判定する(StepA2)。   First, the input image is encoded (Step A0). It is investigated (initialization investigation) whether all pictures that can be referred to in the memory are unnecessary after coding (whether no picture is referred to in future encoding) (Step A1), and the pictures stored in the memory are It is determined whether it is better to initialize without reference in the future (Step A2).

初期化したほうがよければ(StepA2のYes)、メモリ領域を初期化する初期化コマンドCode5をメモリ管理情報として符号化し(StepA3)、初期化を行い(StepA4)、処理を終了する。一方、初期化の必要がない場合(StepA2のNo)は、StepA3およびStepA4の動作は行なわず、処理を終了する。   If it is better to initialize (Yes in Step A2), an initialization command Code5 for initializing the memory area is encoded as memory management information (Step A3), initialization is performed (Step A4), and the process is terminated. On the other hand, when the initialization is not necessary (No in Step A2), Step A3 and Step A4 are not performed, and the process ends.

次に符号化された初期化コマンドCode5を復号化する方法について図17を用いて説明する。   Next, a method for decoding the encoded initialization command Code5 will be described with reference to FIG.

図17は符号化された初期化コマンドCode5を復号化する方法を示したフローチャートであり、図3に示す画像復号化装置200が行う動作を示している。   FIG. 17 is a flowchart showing a method of decoding the encoded initialization command Code5, and shows operations performed by the image decoding apparatus 200 shown in FIG.

まず、メモリ管理情報を復号化し(StepA10)、符号化信号から画像信号を復号化する(StepA11)。次に、復号化したメモリ管理情報に初期化コマンドCode5があるかを判定し(StepA12)、初期化コマンドCode5があれば(StepA12のYes)、メモリ内に記憶されていたピクチャを全て除去して初期化し(StepA13)、処理を終了する。但し、このとき、復号化した画像(StepA11において)は除去しない。   First, the memory management information is decoded (Step A10), and the image signal is decoded from the encoded signal (Step A11). Next, it is determined whether or not there is an initialization command Code5 in the decoded memory management information (Step A12). If there is the initialization command Code5 (Yes in Step A12), all the pictures stored in the memory are removed. Initialization is performed (Step A13), and the process ends. However, at this time, the decoded image (in Step A11) is not removed.

一方、メモリ管理情報に初期化コマンドCode5がなければ(StepA12のNo)、処理を終了する。   On the other hand, if there is no initialization command Code5 in the memory management information (No in Step A12), the process is terminated.

以下、図15を用いてメモリの初期化を行う方法について具体的に説明する。図15に示すピクチャ番号11のBピクチャに、ピクチャ番号12のIピクチャに付与した初期化コマンドCode5と同一の初期化コマンドCode5を付与するとする。   Hereinafter, a method for initializing the memory will be specifically described with reference to FIG. Assume that the same initialization command Code5 as the initialization command Code5 given to the I picture with picture number 12 is given to the B picture with picture number 11 shown in FIG.

図13で示すと、フレームFrm12(ピクチャ番号12)のフレームヘッダFrm12Hdr と、フレームFrm11(ピクチャ番号11)のフレームヘッダFrm11Hdrとに初期化コマンドCode5が付与されることになる。初期化コマンドCode5は図11に示すように付加情報を有しないため、復号化された時点においてメモリ内に保存されているピクチャをすべて除去することになる。   As shown in FIG. 13, the initialization command Code5 is assigned to the frame header Frm12Hdr of the frame Frm12 (picture number 12) and the frame header Frm11Hdr of the frame Frm11 (picture number 11). Since the initialization command Code5 does not have additional information as shown in FIG. 11, all pictures stored in the memory at the time of decoding are removed.

よって、ピクチャ番号12(保存ピクチャ番号11)のIピクチャに付与した初期化コマンドCode5が伝送路エラーで消失し、ピクチャ番号11(保存ピクチャ番号12)のBピクチャに付与した初期化コマンドCode5が実行されると、保存ピクチャ番号11以前に復号化したピクチャでメモリに保存されているピクチャが全て除去されることになる。つまり、本来除去されてはならないピクチャ番号12(保存ピクチャ番号11)のIピクチャまでが除去されることになる。   Therefore, the initialization command Code5 assigned to the I picture with picture number 12 (stored picture number 11) disappears due to a transmission path error, and the initialization command Code5 assigned to the B picture with picture number 11 (stored picture number 12) is executed. Then, all the pictures stored in the memory with pictures decoded before the stored picture number 11 are removed. In other words, even the I picture of picture number 12 (stored picture number 11) that should not be removed is removed.

このようにピクチャ番号11のBピクチャに、ピクチャ番号12のIピクチャに付与した初期化コマンドCode5と同一の初期化コマンドCode5を付与したときは、1枚のピクチャ(ピクチャ番号12のIピクチャ)が欠落することになる。一方、ピクチャ番号14(保存ピクチャ番号13)のPピクチャに、ピクチャ番号12(保存ピクチャ番号11)のIピクチャに付与した初期化コマンドCode5と同一の初期化コマンドCode5を付与し、ピクチャ番号12のIピクチャに付与した初期化コマンドCode5が伝送路エラーで消失し、ピクチャ番号14のPピクチャに付与した初期化コマンドCode5が実行されると、2枚のピクチャ(ピクチャ番号11のBピクチャとピクチャ番号12のIピクチャ)が欠落することになる。   Thus, when the same initialization command Code5 as the initialization command Code5 assigned to the I picture with the picture number 12 is assigned to the B picture with the picture number 11, one picture (I picture with the picture number 12) is provided. Will be missing. On the other hand, an initialization command Code5 that is the same as the initialization command Code5 assigned to the I picture with picture number 12 (saved picture number 11) is assigned to the P picture with picture number 14 (saved picture number 13). When the initialization command Code5 assigned to the I picture disappears due to a transmission path error and the initialization command Code5 assigned to the P picture with picture number 14 is executed, two pictures (B picture with picture number 11 and picture number 11) 12 I pictures) will be lost.

なお、初期化コマンドCode5を繰り返し符号化し、最初に送った初期化コマンドCode5も、続けて送った初期化コマンドCode5も、伝送路エラーなく実行される場合にも、上記と同様の問題が生じる。なぜなら、最初に送った初期化コマンドCode5によって初期化され、さらに続けて送った初期化コマンドCode5により再度初期化されるためである。   Note that the same problem as described above also occurs when the initialization command Code5 is repeatedly encoded, and the initialization command Code5 sent first and the initialization command Code5 sent subsequently are executed without any transmission path error. This is because it is initialized by the initialization command Code5 sent first, and is initialized again by the initialization command Code5 sent subsequently.

このようなメモリの初期化における問題を解決するための方法について説明する。   A method for solving such a problem in memory initialization will be described.

図18にメモリの初期化における問題を解決するために用いるメモリ管理情報のコマンドを示す。   FIG. 18 shows commands for memory management information used to solve a problem in memory initialization.

図11と異なる点は、図18では新たに初期化再送コマンドCode6を追加した点である。また、この初期化再送コマンドCode6は付加情報として初期化ピクチャ(フレーム)番号(メモリ領域を初期化する初期化コマンドCode5が付随されるフレームの番号)を有する。   The difference from FIG. 11 is that an initialization retransmission command Code6 is newly added in FIG. The initialization retransmission command Code6 has an initialization picture (frame) number (number of a frame accompanied by the initialization command Code5 for initializing the memory area) as additional information.

以下、この初期化再送コマンドCode6を用いた画像符号化の処理の流れについて図19を用いて説明する。   Hereinafter, the flow of image encoding processing using the initialization retransmission command Code 6 will be described with reference to FIG.

図19は、初期化再送コマンドCode6を用いた画像符号化方法を示すフローチャートであり、図1に示す画像符号化装置100の行う動作を示している。図19について図16と同じ動作には同一の符号を付している。   FIG. 19 is a flowchart showing an image encoding method using the initialization retransmission command Code6, and shows operations performed by the image encoding apparatus 100 shown in FIG. 19, the same operations as those in FIG. 16 are denoted by the same reference numerals.

まず、入力画像を符号化する(StepA0)。符号化後にメモリ内の全てのピクチャが不要かどうか(今後の符号化でどの画像も参照されないかどうか)を調査(初期化調査)する(StepA1)。メモリ情報制御部101が、初期化が必要であるかを判定し(StepA2)、初期化が必要であれば(StepA2のYes)、管理情報符号化部105が、メモリ領域を初期化する初期化コマンドCode5をメモリ管理情報として符号化し(StepA3)、初期化を行う(StepA4)。初期化の必要がない場合(StepA2のNo)は、StepA3およびStepA4の動作は行わない。   First, the input image is encoded (Step A0). It is investigated (initialization investigation) whether all pictures in the memory are unnecessary after the encoding (whether no image is referred to in future encoding) (Step A1). The memory information control unit 101 determines whether initialization is necessary (Step A2). If initialization is necessary (Yes in Step A2), the management information encoding unit 105 performs initialization to initialize the memory area. Command Code5 is encoded as memory management information (Step A3), and initialization is performed (Step A4). When initialization is not required (No in Step A2), the operations of Step A3 and Step A4 are not performed.

次に、メモリ情報制御部101が、直前に符号化した画像(符号化対象より前の画像)の符号化信号に付随してメモリ領域を初期化する初期化コマンドCode5をメモリ管理情報として符号化しているか否かを判定し(StepA30)、符号化していれば(StepA30のYes)、管理情報符号化部105が、そのメモリ領域を初期化する初期化再送コマンドCode6をメモリ管理情報として符号化して(StepA31)、処理を終了する。   Next, the memory information control unit 101 encodes, as memory management information, an initialization command Code5 that initializes the memory area in association with the encoded signal of the image encoded immediately before (the image prior to the encoding target). (Step A30), and if encoded (Yes in Step A30), the management information encoding unit 105 encodes an initialization retransmission command Code6 for initializing the memory area as memory management information. (Step A31), the process ends.

また、直前に符号化した画像(符号化対象より前の画像)の符号化信号に付随してメモリ領域を初期化する初期化コマンドCode5がメモリ管理情報として符号化されていなければ(StepA30のNo)、処理を終了する。   Further, if the initialization command Code5 for initializing the memory area accompanying the encoded signal of the image encoded immediately before (the image prior to the encoding target) is not encoded as memory management information (No in Step A30) ), The process is terminated.

なお、図19に示す方法では、直前に符号化した画像の符号化信号に付随してメモリ領域を初期化する初期化コマンドCode5が符号化されている場合に、再度初期化再送コマンドCode6を符号化するとしたが、直前ではなく数画像前に符号化した画像の符号化に付随してメモリ領域を初期化する初期化コマンドCode5が符号化されている場合に、再度初期化再送コマンドCode6を符号化しても良く、また複数の画像に付随して、メモリ領域を初期化する初期化再送コマンドCode6をメモリ管理情報として繰り返し符号化してもよい。   In the method shown in FIG. 19, when the initialization command Code5 for initializing the memory area is encoded along with the encoded signal of the image encoded immediately before, the initialization retransmission command Code6 is encoded again. However, if the initialization command Code5 that initializes the memory area is encoded in association with the encoding of the image that was encoded several images before rather than immediately before, the initialization retransmission command Code6 is encoded again. The initialization retransmission command Code6 for initializing the memory area may be repeatedly encoded as the memory management information along with a plurality of images.

具体的には図15に示すようにピクチャ番号12のIピクチャの符号化に付随して初期化コマンドCode5を符号化する場合、ピクチャ番号11のBピクチャの符号化に付随して初期化再送コマンドCode6を符号化してもよく、またピクチャ番号14のPピクチャの符号化に付随して初期化再送コマンドCode6を符号化してもよい。   Specifically, as shown in FIG. 15, when the initialization command Code5 is encoded along with the encoding of the I picture with the picture number 12, the initialization retransmission command accompanying the encoding of the B picture with the picture number 11 Code 6 may be encoded, or the initialization retransmission command Code 6 may be encoded accompanying the encoding of the P picture with the picture number 14.

前者の場合、図13で示すと、フレームFrm12のフレームヘッダFrm12Hdrに初期化コマンドCode5が付与され、更にフレームFrm11のフレームヘッダFrm11Hdrに初期化再送コマンドCode6が付与される、また、後者の場合、フレームFrm12のフレームヘッダFrm12Hdrに初期化コマンドCode5が付与され、フレームFrm14のフレームヘッダFrm14Hdrに初期化再送コマンドCode6が付与されることになる。   In the former case, as shown in FIG. 13, the initialization command Code5 is assigned to the frame header Frm12Hdr of the frame Frm12, and further, the initialization retransmission command Code6 is assigned to the frame header Frm11Hdr of the frame Frm11. The initialization command Code5 is assigned to the frame header Frm12Hdr of Frm12, and the initialization retransmission command Code6 is assigned to the frame header Frm14Hdr of the frame Frm14.

さらにまた、ピクチャ番号11のBピクチャの符号化に付随して初期化再送コマンドCode6を符号化するとともに、ピクチャ番号14のPピクチャの符号化にも付随して初期化再送コマンドCode6を符号化するようにしてもよい。この場合、図13で示すと、フレームFrm12のフレームヘッダFrm12Hdrに初期化コマンドCode5が付与され、フレームFrm11のフレームヘッダFrm11Hdrと、フレームFrm14のフレームヘッダFrm14Hdrとに、初期化再送コマンドCode6が付与される。   Furthermore, the initialization retransmission command Code6 is encoded along with the encoding of the B picture with the picture number 11, and the initialization retransmission command Code6 is encoded along with the encoding of the P picture with the picture number 14. You may do it. In this case, as shown in FIG. 13, the initialization command Code5 is assigned to the frame header Frm12Hdr of the frame Frm12, and the initialization retransmission command Code6 is assigned to the frame header Frm11Hdr of the frame Frm11 and the frame header Frm14Hdr of the frame Frm14. .

次に、上記初期化再送コマンドCode6が符号化されたデータを復号化するときの処理について図20を用いて説明する。図20は、符号化された初期化再送コマンドCode6を復号する方法を示すフローチャートであり、図3に示した画像復号化装置200の動作を示している。図20について図17と同じ動作には同一の符号を付している。   Next, processing for decoding data encoded with the initialization retransmission command Code 6 will be described with reference to FIG. FIG. 20 is a flowchart showing a method of decoding the encoded initialization retransmission command Code 6, and shows the operation of the image decoding apparatus 200 shown in FIG. In FIG. 20, the same operations as those in FIG. 17 are denoted by the same reference numerals.

まず、管理情報復号化部205が、メモリ管理情報を復号化する(StepA10)。そして、符号化信号から画像信号を復号化する(StepA11)。   First, the management information decoding unit 205 decodes the memory management information (Step A10). Then, the image signal is decoded from the encoded signal (Step A11).

復号化したメモリ管理情報に初期化コマンドCode5があるかを判定し(StepA12)、初期化コマンドCode5があれば(StepA12のYes)、メモリ内のピクチャを全て除去して初期化し(StepA13)、初期化コマンドCode5がなければ(StepA12のNo)、初期化を行わない。   It is determined whether there is an initialization command Code5 in the decoded memory management information (Step A12). If there is an initialization command Code5 (Yes in Step A12), all the pictures in the memory are removed and initialized (Step A13). If there is no enable command Code5 (No in Step A12), initialization is not performed.

次に、メモリ情報制御部101が、メモリ管理情報に初期化再送コマンドCode6があるかを判定する(StepA40)。初期化再送コマンドCode6がなければ(StepA40のNo)処理を終了し、初期化再送コマンドCode6があれば(StepA40のYes)、初期化が済んでいるかどうかを調査する(StepA41)。初期化が済んでいれば(StepA41のYes)処理を終了し、初期化がされていなければ(StepA41のNo)、初期化再送コマンドCode6の付加情報に基づいて、初期化フレーム(メモリ領域を初期化する初期化コマンドCode5が付随されるフレーム)以前の保存フレーム(初期化フレームの符号化時点で参照用画像メモリに格納されているフレーム)を削除し、さらに長時間保存メモリサイズを0とし(StepA42)処理を終了する。なお、長時間保存フレームを使用しない場合は、長時間保存メモリサイズを0にする必要は無い。   Next, the memory information control unit 101 determines whether there is an initialization retransmission command Code6 in the memory management information (Step A40). If there is no initialization retransmission command Code6 (No in Step A40), the process is terminated. If there is an initialization retransmission command Code6 (Yes in Step A40), it is investigated whether initialization has been completed (Step A41). If initialization has been completed (Yes in Step A41), the process ends. If initialization has not been completed (No in Step A41), an initialization frame (memory area is initialized based on the additional information of the initialization retransmission command Code6). The previous storage frame (the frame stored in the reference image memory at the time of encoding the initialization frame) is deleted, and the long-time storage memory size is set to 0 ( Step A42) The processing is terminated. When the long-time storage frame is not used, it is not necessary to set the long-time storage memory size to zero.

よって、図15で示されるピクチャ番号12のピクチャに初期化コマンドCode5、ピクチャ番号14に初期化再送コマンドCode6が付随して符号化された場合、初期化コマンドCode5が伝送路エラーで消失しない場合は、初期化コマンドCode5によって、初期化コマンドCode5が伝送路エラーで消失した場合は初期化再送コマンドCode6によって、保存ピクチャ番号が10以下のピクチャでメモリに保存されているピクチャが全て削除されることになる。   Therefore, when the initialization command Code5 is encoded with the picture number 12 shown in FIG. 15 and the initialization retransmission command Code6 is encoded with the picture number 14, the initialization command Code5 is not lost due to a transmission path error. When the initialization command Code5 is lost due to a transmission path error by the initialization command Code5, all the pictures stored in the memory with the stored picture number of 10 or less are deleted by the initialization retransmission command Code6. Become.

このように、初期化コマンドcode5を繰り返し符号化して伝送する際に、2回目以降は、付加情報である初期化ピクチャ番号の付加された初期化再送コマンドCode6を符号化して伝送するため、その付加情報に基づいて初期化フレーム以前の保存フレーム(最初に初期化コマンドCode5が付随する初期化フレームの符号化時点で参照用画像メモリに格納されているフレーム)が削除されることになる。そのため、必要な画像(ピクチャ)が欠落するような上述した問題を解決することができる。   As described above, when the initialization command code5 is repeatedly encoded and transmitted, the initialization retransmission command Code6 to which the initialization picture number as additional information is added is encoded and transmitted after the second time. Based on the information, the storage frame before the initialization frame (the frame stored in the reference image memory at the time of encoding the initialization frame accompanied by the initialization command Code 5 first) is deleted. Therefore, the above-described problem that a necessary image (picture) is lost can be solved.

なお、図21のように図15と異なる保存ピクチャ番号の付け方の場合でも、上記で説明した初期化再送コマンドCode6は有効である。   Note that the initialization retransmission command Code6 described above is effective even in the case of assigning the stored picture number different from FIG. 15 as shown in FIG.

以下、具体的に説明する。   This will be specifically described below.

図21は各フレームに付与される番号(ピクチャ(フレーム)番号)と、各フレームがメモリ内に保存されるときの番号(保存ピクチャ(フレーム)番号)と、各フレームが伝送される順番を示す番号(伝送順序)における他の関係を示す説明図である。   FIG. 21 shows a number (picture (frame) number) assigned to each frame, a number when each frame is stored in the memory (stored picture (frame) number), and an order in which each frame is transmitted. It is explanatory drawing which shows the other relationship in a number (transmission order).

これらの番号の付与方法について説明する。まず、ピクチャ番号0のIピクチャは他のピクチャを参照しないのでメモリに保存され、保存ピクチャ番号は0になる。次にピクチャ番号0のIピクチャを参照するピクチャ番号2のPピクチャがメモリに保存されるためピクチャ番号2のPピクチャに関する保存ピクチャ番号が1となる。そして、ピクチャ番号0のIピクチャとピクチャ番号2のPピクチャを参照するピクチャ番号1のBピクチャがメモリ内に保存されるが、このBピクチャは他のピクチャから参照されることがないため、保存ピクチャ番号は直前に保存されたピクチャ番号2のPピクチャの保存ピクチャ番号と同じく1となる。各ピクチャが伝送される順番は、メモリに保存された順番とする。同様の手順でピクチャ番号と保存ピクチャ番号と伝送順序の関係が決まる。   A method for assigning these numbers will be described. First, since the I picture with picture number 0 does not refer to other pictures, it is saved in the memory, and the saved picture number becomes 0. Next, since the P picture with the picture number 2 referring to the I picture with the picture number 0 is saved in the memory, the saved picture number with respect to the P picture with the picture number 2 becomes 1. Then, the B picture with the picture number 1 that refers to the I picture with the picture number 0 and the P picture with the picture number 2 is saved in the memory. However, since this B picture is not referred to by other pictures, it is saved. The picture number is 1 in the same way as the saved picture number of the P picture of picture number 2 saved immediately before. The order in which each picture is transmitted is the order stored in the memory. The relationship between the picture number, the stored picture number, and the transmission order is determined by the same procedure.

図21に示すように、ピクチャ番号12のIピクチャを符号化するときに図11に示す初期化コマンドCode5を付随して送るとする。ピクチャ番号12のIピクチャの保存ピクチャ番号は6であるため、この初期化コマンドCode5により、保存ピクチャ番号が5以下のピクチャがメモリ内から全て除去することができる。   As shown in FIG. 21, it is assumed that an initialization command Code5 shown in FIG. Since the saved picture number of the I picture with the picture number 12 is 6, all the pictures having the saved picture number of 5 or less can be removed from the memory by this initialization command Code5.

ここで、初期化コマンドCode5を繰り返し符号化する場合、具体的には、ピクチャ番号14のPピクチャにピクチャ番号12のIピクチャに付与した初期化コマンドCode5と同一の初期化コマンドCode5を付与する場合について説明する。   Here, when the initialization command Code5 is repeatedly encoded, specifically, when the same initialization command Code5 as the initialization command Code5 assigned to the I picture with the picture number 12 is given to the P picture with the picture number 14 Will be described.

初期化コマンドCode5は図11に示すように付加情報を有しないため、復号化された時点において参照用メモリ内に保存されているピクチャをすべて除去することになる。よって、ピクチャ番号12(保存ピクチャ番号6)のIピクチャに付与した初期化コマンドCode5が伝送路エラーで消失し、ピクチャ番号14(保存ピクチャ番号7)のPピクチャに付与した初期化コマンドCode5が実行されると、保存ピクチャ番号6以下のピクチャでメモリに保存されているピクチャが全て除去されることになる。つまり、本来除去されてはならないピクチャ番号12(保存ピクチャ番号6)のIピクチャまでが除去されることになる。   Since the initialization command Code5 has no additional information as shown in FIG. 11, all pictures stored in the reference memory at the time of decoding are removed. Therefore, the initialization command Code5 assigned to the I picture with picture number 12 (stored picture number 6) disappears due to a transmission path error, and the initialization command Code5 assigned to the P picture with picture number 14 (stored picture number 7) is executed. Then, all the pictures stored in the memory among the pictures having the stored picture number 6 or less are removed. That is, up to an I picture of picture number 12 (stored picture number 6) that should not be removed is removed.

しかし、初期化コマンドCode5の代わりに上記初期化再送コマンドCode6をピクチャ番号14のPピクチャに付随させることによって、ピクチャ番号12のIピクチャに付随した初期化コマンドCode5が伝送路エラーで消失しない場合は初期化コマンドCode5によって、初期化コマンドCode5が伝送路エラーで消失した場合はピクチャ番号14のPピクチャに付随した初期化再送コマンドCode6によって、保存ピクチャ番号が5以下のピクチャでメモリに保存されているピクチャが全て削除されることになる。   However, when the initialization retransmission command Code6 is associated with the P picture with the picture number 14 instead of the initialization command Code5, the initialization command Code5 associated with the I picture with the picture number 12 does not disappear due to a transmission line error. When the initialization command Code5 is lost due to a transmission path error due to the initialization command Code5, the picture with the saved picture number of 5 or less is saved in the memory by the initialization retransmission command Code6 attached to the P picture with the picture number 14. All pictures will be deleted.

すなわち、初期化再送コマンドCode6には付加情報として初期化フレーム(この場合、ピクチャ番号12)番号が付加されているため、初期化フレーム以前の保存フレーム(初期化フレームを保存する時点で参照用画像メモリに格納されている保存ピクチャ番号が5以下の保存フレーム)が削除される。   That is, since an initialization frame (in this case, picture number 12) is added as additional information to the initialization retransmission command Code6, a storage frame before the initialization frame (the reference image at the time of storing the initialization frame) A saved frame having a saved picture number of 5 or less stored in the memory) is deleted.

以上のように、付加情報を有する初期化再送コマンドCode6によって、初期化コマンドcode5が伝送路エラーで欠落した場合でも初期化を正常に実行できる可能性が高くなる。なお、本実施の形態で示した初期化再送コマンドで、付加情報を初期化再送コマンドが付随されたピクチャ番号としたものを初期化コマンドとして代用し、図18に示すCode5とCode6を1つのコマンドで実現するようにしてもよい。これは、初期化情報の再送のために初期化再送を行うときには、初期化コマンドが付随されたフレームの番号を指定するため、当該フレームを再送するようなピクチャ番号は用いられることがないからである。このとき、初期化コマンドCode5は無効としてもよい。   As described above, the initialization retransmission command Code6 having additional information increases the possibility that the initialization can be normally executed even when the initialization command code5 is lost due to a transmission path error. Note that the initialization retransmission command shown in the present embodiment, in which the additional information is the picture number accompanied by the initialization retransmission command, is substituted as the initialization command, and Code 5 and Code 6 shown in FIG. 18 are used as one command. You may make it implement | achieve. This is because when initialization retransmission is performed for retransmission of initialization information, the number of the frame accompanied by the initialization command is designated, so that a picture number for retransmitting the frame is not used. is there. At this time, the initialization command Code5 may be invalidated.

なお、このように1コマンドで上記実施の形態で示した初期化再送コマンドと初期化コマンドCode5とを実現する場合、上記実施の形態で示した初期化再送コマンドでは用いられない特別の値を付加情報として有した初期化再送コマンドをもって、最初に送る初期化コマンドCode5と同一の機能を有するコマンドとしてもよい。   In addition, when realizing the initialization retransmission command and the initialization command Code 5 shown in the above embodiment with one command in this way, a special value not used in the initialization retransmission command shown in the above embodiment is added. A command having the same function as the initialization command Code 5 to be sent first may be used with the initialization retransmission command included as information.

また、上記各実施の形態で説明したように、不要になったメモリ領域を開放するコマンドや初期化コマンドなどのメモリ管理情報が再度伝送されるときに、図13および図14に示すように画像の符号化に関するフレームデータに付加されたヘッダ情報に含まれて伝送されるのではなく、メモリ管理情報の含まれたヘッダ情報がフレームデータとは別に分離して伝送されてもよい。すなわち、再送する上述のコマンドが、符号化されたピクチャと同じストリームにあるのではなく、例えば別のストリームとして伝送するようにしてもよい。また、蓄積メディアの別の領域に記録されてもよい。   Further, as described in the above embodiments, when memory management information such as a command for releasing a memory area that has become unnecessary or an initialization command is transmitted again, an image as shown in FIGS. 13 and 14 is displayed. The header information included in the memory management information may be transmitted separately from the frame data, instead of being included in the header information added to the frame data related to the encoding of the frame. That is, the above-described command to be retransmitted may be transmitted as a separate stream, for example, instead of being in the same stream as the encoded picture. Further, it may be recorded in another area of the storage medium.

さらにまた本実施の形態では、初期化コマンドを再送するときに初期化再送コマンドに、初期化コマンドを最初に付随させたピクチャのピクチャ番号(初期化フレーム番号)を付加情報として付加させたが、上述した各実施の形態において示した、開放するメモリ領域を示すコマンドや短時間保存メモリから長時間保存メモリに移動する対象のピクチャを指定するコマンドなどのメモリ管理情報のコマンドを再送するときにも、最初にそのコマンドを付随させて伝送した符号化対象ピクチャのピクチャ番号(ピクチャを特定する情報)をパラメータとして含めて伝送してもよいのは当然である。このようにすることにより、どのピクチャを伝送するときに伝送エラーが発生したのかを検出することができる。   Furthermore, in this embodiment, when retransmitting the initialization command, the picture number (initialization frame number) of the picture to which the initialization command is first attached is added to the initialization retransmission command as additional information. Also when resending the command of the memory management information such as the command indicating the memory area to be released and the command specifying the target picture to be moved from the short-time storage memory to the long-time storage memory shown in each of the above-described embodiments. Naturally, the picture number of the picture to be encoded (information for specifying the picture) transmitted with the command first may be included and transmitted as a parameter. In this way, it is possible to detect which picture has been transmitted when a transmission error has occurred.

(実施の形態9)
次に、実施の形態9における画像符号化方法および画像復号化方法について説明する。
(Embodiment 9)
Next, an image encoding method and an image decoding method in Embodiment 9 will be described.

本実施の形態の特徴は、メモリ管理情報を複数回伝送するときに、2回目以降に伝送されたメモリ管理情報に基づく処理のタイミングを変更していることである。   The feature of this embodiment is that when the memory management information is transmitted a plurality of times, the timing of processing based on the memory management information transmitted after the second time is changed.

上記実施の形態で示したメモリ管理情報を繰り返し符号化したデータを復号化するとき、繰り返し送られたメモリ管理情報の処理をする前に必ず、メモリ管理情報を付随させた画像信号を復号化していた。具体例として実施の形態2において説明した、不要なメモリ領域を開放するコマンドを複数回伝送した場合について、図15を用いて再度説明する。   When data obtained by repeatedly encoding the memory management information shown in the above embodiment is decoded, an image signal accompanied by the memory management information must be decoded before processing the memory management information repeatedly sent. It was. As a specific example, a case where a command for releasing an unnecessary memory area described in the second embodiment is transmitted a plurality of times will be described again with reference to FIG.

図15に示すピクチャ番号12のピクチャに図18に示すCode1のコマンドを付随させて符号化させ、さらにピクチャ番号11のピクチャにもCode1のコマンドを付随させて符号化させるとする。このとき、復号化は図4に従ってなされる。   It is assumed that the picture of the picture number 12 shown in FIG. 15 is encoded with the Code 1 command shown in FIG. 18 and that the picture of the picture number 11 is also attached with the Code 1 command. At this time, decoding is performed according to FIG.

まず、ピクチャ番号12のピクチャに付随されたCode1が復号化される(Step110)。次にピクチャ番号12のピクチャが復号化される(Step111)。ここで、本来ピクチャ番号12のピクチャに付随されているはずのCode1が伝送途中で欠落したとすると(Step112のNo)、このフレームに関する処理が終了する。   First, Code1 attached to the picture of picture number 12 is decoded (Step 110). Next, the picture with the picture number 12 is decoded (Step 111). Here, if Code1 that should originally be attached to the picture with picture number 12 is lost during transmission (No in Step 112), the processing relating to this frame ends.

伝送順でピクチャ番号12のピクチャの次に復号化処理されるのはピクチャ番号11のピクチャである。   It is the picture with picture number 11 that is decoded next to the picture with picture number 12 in the transmission order.

まず、ピクチャ番号11のピクチャに付随して符号化されたCode1が復号化される(Step110)。次にピクチャ番号11のピクチャが復号化される(Step111)。このCode1が伝送途中で欠落せず伝送された場合、復号化されたメモリ管理情報にメモリ開放のコマンドであるCode1が存在するため(Step112のYes)、次の処理(Step113)に至る。   First, Code 1 encoded with the picture of picture number 11 is decoded (Step 110). Next, the picture of picture number 11 is decoded (Step 111). When Code 1 is transmitted without being lost during transmission, Code 1 which is a memory release command is present in the decoded memory management information (Yes in Step 112), and the next processing (Step 113) is reached.

ここで、ピクチャ番号11のピクチャが復号化される前に復号化されたピクチャ番号12のピクチャを復号化したときにメモリ開放がされていないため(Step113のNo)、メモリ開放処理がなされる(Step114)。   Here, since the memory is not released when the picture with the picture number 12 decoded before the picture with the picture number 11 is decoded (No in Step 113), the memory releasing process is performed (No in Step 113). Step 114).

上記具体例で示したように、不要なメモリ領域を開放するコマンドを複数回伝送することに伴い、本来最初のコマンド実行がされなかったピクチャ(ピクチャ番号12)に対して実行するべきコマンドの実行が、後から送られるピクチャ(ピクチャ番号11)の画像信号の復号化処理の後になり、コマンドの実行の遅延が生じる。   As shown in the above specific example, execution of a command to be executed for a picture (picture number 12) that was not originally executed due to transmission of a command for releasing an unnecessary memory area a plurality of times. However, after the decoding process of the image signal of the picture (picture number 11) sent later, the execution of the command is delayed.

よって、本実施の形態においては、上記課題を解決するための方法について図22、図23、および図24を用いて説明する。   Therefore, in this embodiment, a method for solving the above problem will be described with reference to FIGS. 22, 23, and 24. FIG.

図22は本実施の形態で用いるメモリ管理情報とコマンドの関係を示す対応図である。   FIG. 22 is a correspondence diagram showing the relationship between memory management information and commands used in this embodiment.

図22において、Codeはコマンドの番号を、コマンドはコマンドの内容を、付加情報はコマンドに付加される付加情報を、処理位置はコマンドを実行するタイミングを示している。   In FIG. 22, Code indicates the command number, the command indicates the content of the command, the additional information indicates additional information added to the command, and the processing position indicates the timing of executing the command.

図11と異なる点は、図22ではCodeA1からCodeA4までを画像の復号化処理の後に実行するコマンドとする一方、CodeA1からCodeA4に対応したCodeA6からCodeA9までを画像の復号化処理の前に実行するコマンドとした点である。   FIG. 22 differs from FIG. 11 in that commands from CodeA1 to CodeA4 are executed after the image decoding process, while CodeA6 to CodeA9 corresponding to CodeA1 to CodeA4 are executed before the image decoding process. This is a command point.

そして、繰り返してメモリ管理情報を送る場合、最初に符号化するメモリ管理情報のコマンドを、処理位置が復号化後の(画像の復号化後に実行する)コマンド(CodeA1からCodeA4)とし、繰り返し(2回目以降に)符号化するコマンドを、処理位置が復号化前の(画像の復号化前に実行する)コマンド(CodeA6からCodeA9)とする。   When the memory management information is repeatedly sent, the command of the memory management information to be encoded first is a command (CodeA1 to CodeA4) whose processing position is decoded (executed after decoding of the image), and repeatedly (2 A command to be encoded is defined as a command (Code A6 to Code A9) whose processing position is before decoding (executed before decoding of an image).

これにより、最初に送られたメモリ管理情報が欠落した場合でも、本来最初に送られたメモリ管理情報で実行すべきコマンドが、早期に実行され、遅延等の問題を起こりにくくすることができる。   Thereby, even when the memory management information sent first is lost, the command to be executed with the memory management information originally sent can be executed at an early stage, thereby making it difficult to cause problems such as delay.

以下、図22のコマンドを用いるときの処理手順について図23および図24を用いて説明する。   The processing procedure when using the command of FIG. 22 will be described below with reference to FIGS.

図23は本実施の形態における画像符号化方法を示すフローチャートであり、図1に示した画像符号化装置100の動作を示している。   FIG. 23 is a flowchart showing an image encoding method according to the present embodiment, and shows the operation of the image encoding apparatus 100 shown in FIG.

図23において、まず、画像が符号化される(StepB0)。符号化後にメモリ内で不要な領域(今後の符号化で参照されない画像)を調査し(StepB1)、不要なメモリ領域があるか判定する(StepB2)。不要なメモリ領域があれば(StepB2のYes)、不要なメモリ領域を開放するコマンドを画像信号の復号化の後に実行するものとして、復号化後用メモリ管理情報を符号化し(StepB3)、その不要なメモリ領域を開放する(StepB4)。一方、不要なメモリ領域が無い場合(StepB2のNo)は、StepB3およびStepB4の動作は行わない。   In FIG. 23, first, an image is encoded (Step B0). After encoding, an unnecessary area (an image that will not be referred to in future encoding) is investigated in the memory (Step B1), and it is determined whether there is an unnecessary memory area (Step B2). If there is an unnecessary memory area (Yes in Step B2), the post-decoding memory management information is encoded (Step B3), assuming that a command to release the unnecessary memory area is executed after decoding of the image signal, and that is unnecessary. A new memory area is released (Step B4). On the other hand, when there is no unnecessary memory area (No in Step B2), the operations of Step B3 and Step B4 are not performed.

次に、メモリ情報制御部101が、直前に符号化した画像(符号化対象より前の画像)の符号化に付随して不要なメモリ領域を開放するコマンドをメモリ管理情報として符号化しているかを判定する(StepB30)。符号化していなければ(StepB30のNo)処理を終了し、符号化していれば(StepB30のYes)、管理情報符号化部105が、その不要なメモリ領域を開放するコマンドを画像信号の復号化の前に実行するものとして復号化前用メモリ管理情報を符号化して(StepB31)、処理を終了する。   Next, whether or not the memory information control unit 101 encodes, as memory management information, a command for releasing an unnecessary memory area accompanying the encoding of the image encoded immediately before (the image prior to the encoding target). Determine (Step B30). If not encoded (No in Step B30), the process ends. If encoded (Yes in Step B30), the management information encoding unit 105 transmits a command for releasing the unnecessary memory area to decode the image signal. The pre-decoding memory management information is encoded to be executed before (Step B31), and the process ends.

なお、StepB30で直前に符号化した画像の符号化信号に付随して、不要なメモリ領域を開放するコマンドが符号化されている場合に、再度コマンドを符号化するとしたが、直前の画像に付随している場合でなく、数画像前の画像に付随している場合でも良く、更に、上記コマンドを繰り返してメモリ管理情報として符号化し、複数の画像に付随して伝送させてもよい。   In addition, when a command for releasing an unnecessary memory area is encoded along with the encoded signal of the image encoded immediately before in Step B30, the command is encoded again. The above command may be attached to an image several images before, and the above command may be repeatedly encoded as memory management information and transmitted along with a plurality of images.

次に図23の手順に従って符号化されたデータを復号化する手順について図24と図15を用いて説明する。   Next, a procedure for decoding data encoded according to the procedure of FIG. 23 will be described with reference to FIGS. 24 and 15.

図24は、本実施の形態における画像復号化方法を示すフローチャートであり、図3で示した画像復号化装置200が行う動作を示している。   FIG. 24 is a flowchart showing an image decoding method according to the present embodiment, and shows operations performed by the image decoding apparatus 200 shown in FIG.

以下の説明において、図15ではピクチャ番号12のピクチャに図22に示すCodeA1のコマンドが付随して符号化されており、さらにピクチャ番号11のピクチャにCodeA6のコマンドを付随させて符号化されているとする。図13で示すと、ピクチャ番号12のフレームFrm12のフレームヘッダFrm12HdrにCodeA1が付与され、ピクチャ番号11のフレームFrm11のフレームヘッダFrm11HdrにCodeA6が付与されることになる。   In the following description, in FIG. 15, the picture number 12 is encoded with the code A1 command shown in FIG. 22, and the picture number 11 is encoded with the code A6 command. And In FIG. 13, CodeA1 is assigned to the frame header Frm12Hdr of the frame Frm12 of picture number 12, and CodeA6 is assigned to the frame header Frm11Hdr of the frame Frm11 of picture number 11.

なお、画像復号化装置では伝送路エラーでコマンドが消失しない限り、複数回メモリ内の同じ画像の領域を開放するコマンドが受信されることになる。従って、画像復号化装置が行う画像復号化方法では、既に開放した画像を再度開放するコマンドを受信した場合でもエラーとして処理をせずに、逆に正しく受信できていると判断しなければならない。   The image decoding apparatus receives a command for releasing the same image area in the memory a plurality of times unless the command is lost due to a transmission path error. Therefore, in the image decoding method performed by the image decoding apparatus, even when a command for reopening an image that has already been released is received, it must be determined that the image has been correctly received without being processed as an error.

まず、ピクチャ番号12のピクチャに関する復号化処理について説明する。   First, the decoding process for the picture with picture number 12 will be described.

図24において、まず、ピクチャ番号12のピクチャのメモリ管理情報を復号化し(StepB5)、このメモリ管理情報が復号化前用メモリ管理情報であるかを調査する(StepB7)。ここでこのメモリ管理情報(CodeA1)は復号化後用メモリ管理情報であるため(StepB7のNo)、ピクチャ番号12の画像信号が復号化される。そして、上述したようにメモリ管理情報(CodeA1)は復号化後用メモリ管理情報であるため(StepB9のYes)、メモリが開放され(StepB11)、ピクチャ番号12のピクチャのメモリ管理情報に関する処理は終了する。   In FIG. 24, first, the memory management information of the picture with the picture number 12 is decoded (Step B5), and it is investigated whether this memory management information is the pre-decoding memory management information (Step B7). Here, since the memory management information (CodeA1) is the memory management information for after decoding (No in Step B7), the image signal having the picture number 12 is decoded. As described above, since the memory management information (CodeA1) is the post-decoding memory management information (Yes in Step B9), the memory is released (Step B11), and the processing related to the memory management information of the picture with the picture number 12 is completed. To do.

一方、メモリ管理情報のCodeA1が欠落していたとき、StepB7において復号化前用メモリ管理情報であると判断されず(StepB7のNo)、また、StepB9においても復号化後用メモリ管理情報であると判断されず(StepB9のNo)、ピクチャ番号12の画像信号の復号化のみがなされ(StepB6)、ピクチャ番号12のメモリ管理情報に関する処理は終了する。   On the other hand, when Code A1 of the memory management information is missing, it is not determined in Step B7 that it is memory management information for before decoding (No in Step B7), and also in Step B9 that it is memory management information for after decoding. The determination is not made (No in Step B9), only the image signal of picture number 12 is decoded (Step B6), and the process related to the memory management information of picture number 12 ends.

次に、ピクチャ番号11のフレームに関する復号化処理について図24を用いて説明する。   Next, decoding processing relating to the frame of picture number 11 will be described with reference to FIG.

まず、ピクチャ番号11のメモリ管理情報を復号化し(StepB5)、このメモリ管理情報が復号化前用メモリ管理情報であるかを調査する(StepB7)。ここでCodeA6は復号化前用メモリ管理情報であるため(StepB7のYes)、メモリが開放済みかどうかを調査する(StepB8)。ピクチャ番号12の処理において、CodeA1が実行されていればメモリ開放済みのため(StepB8のYes)、メモリ開放処理(StepB10)を行わず、ピクチャ番号11の画像信号の復号化がなされる(StepB6)。そして、メモリ管理情報が復号化後用であるか判定されるが(StepB9)、CodeA6は復号化前用メモリ管理情報であるため(StepB9のNo)、ピクチャ番号11のピクチャのメモリ管理情報に関する処理は終了する。   First, the memory management information of the picture number 11 is decoded (Step B5), and it is investigated whether this memory management information is the memory management information for before decoding (Step B7). Here, since Code A6 is pre-decryption memory management information (Yes in Step B7), it is investigated whether the memory has been released (Step B8). In the process of picture number 12, if CodeA1 is executed, the memory has been released (step B8: Yes), so the memory release process (step B10) is not performed, and the image signal of picture number 11 is decoded (step B6). . Then, it is determined whether the memory management information is for after decoding (Step B9). Since Code A6 is the memory management information for before decoding (No in Step B9), the processing related to the memory management information of the picture with the picture number 11 is performed. Ends.

しかし、伝送過程でのパケットの欠落等でピクチャ番号12のメモリ管理情報が欠落して、ピクチャ番号12に関する処理において、メモリ開放がなされていなければ、ピクチャ番号11に関する処理において、メモリ開放済みでないと判定され(StepB8のNo)、次のステップにおいてメモリ開放される(StepB10)。メモリ開放された後、ピクチャ番号11の画像信号は復号化される(StepB6)。そして、CodeA6は復号化前用メモリ管理情報であるため(StepB9のNo)、ピクチャ番号11のピクチャのメモリ管理情報に関する処理は終了する。   However, if the memory management information of picture number 12 is lost due to packet loss during the transmission process and the memory is not released in the process related to picture number 12, the memory related to picture number 11 has not been released. It is determined (No in Step B8), and the memory is released in the next step (Step B10). After the memory is released, the image signal of picture number 11 is decoded (Step B6). Since CodeA6 is pre-decoding memory management information (No in Step B9), the processing related to the memory management information of the picture with the picture number 11 ends.

このように再送分については画像信号の復号化より前にコマンドが実行されるようにすることで、最初に送ったコマンドが欠落しても、コマンドの実行の遅れを少なくすることができる。   As described above, by executing the command for the re-transmission before the decoding of the image signal, the delay in executing the command can be reduced even if the first transmitted command is lost.

なお、具体例としてメモリ管理情報がCodeA1とCodeA6である場合について説明したが、CodeA2とCodeA7を用いる場合でも同様の処理で実現可能であり、CodeA3とCodeA8、CodeA4とCodeA9を用いる場合でも同様の処理で実現可能である。   Although the case where the memory management information is CodeA1 and CodeA6 has been described as a specific example, the same processing can be realized even when CodeA2 and CodeA7 are used, and the same processing is possible even when CodeA3 and CodeA8 and CodeA4 and CodeA9 are used. It is feasible.

また、図22に示す初期化コマンドCodeA5を復号化後用メモリ管理情報とし、図18に示す初期化再送コマンドCode6を復号化前用メモリ管理情報として、それぞれを対で使うことも可能である。   Also, it is possible to use the initialization command CodeA5 shown in FIG. 22 as the post-decoding memory management information and the initialization retransmission command Code6 shown in FIG. 18 as the pre-decoding memory management information.

また、1フレームに1つの復号化後用メモリ管理情報と複数の復号化前用メモリ管理情報がヘッダ情報として付与されている場合、複数の復号化前用メモリ管理情報が復号化後用メモリ管理情報より先に処理されるようにするとよい。   In addition, when one post-decoding memory management information and a plurality of pre-decoding memory management information are provided as header information in one frame, the plurality of pre-decoding memory management information is the post-decoding memory management. It is better to process before information.

つまり、図13に示すヘッダ情報の先頭の方に復号化前用メモリ管理情報を付与し符号化するようにすればよい。   That is, it is only necessary to add the pre-decoding memory management information to the head of the header information shown in FIG.

また、図25(a)と図25(b)とに示す命令の組み合わせにより、メモリ管理情報が復号前用管理情報であるか復号化後用管理情報であるかを別の情報として、上記実施の形態に示したコマンドを実現しても良い。   In addition, the above-described implementation is performed by setting whether the memory management information is pre-decryption management information or post-decryption management information according to a combination of instructions shown in FIGS. 25 (a) and 25 (b). The command shown in the form may be realized.

図25(a)は、コマンドの内容と付加情報を示す対応図である。図25(b)は、コマンドの実行タイミング(処理位置)を示す対応図である。   FIG. 25A is a correspondence diagram showing command contents and additional information. FIG. 25B is a correspondence diagram showing command execution timing (processing position).

図26は、符号化信号のヘッダ情報におけるメモリ管理情報のコマンドを示す模式図である。   FIG. 26 is a schematic diagram illustrating a command of memory management information in the header information of the encoded signal.

図26において、フレームFrmBの符号化信号は、フレームヘッダFrmBHdrと、MBa,MBbなどのフレームデータなどを有しており、フレームヘッダFrmBHdrは、ヘッダ情報として、コード情報CodeDなどを有している。   In FIG. 26, the encoded signal of the frame FrmB has a frame header FrmBHdr and frame data such as MBa and MBb. The frame header FrmBHdr has code information CodeD and the like as header information.

このとき、例えば図26に示すように、フレームFrmBのフレームヘッダFrmBHdrを先頭からコマンドのコード情報CodeD、処理位置を示すFlagD、コマンドの付加情報を示す付加情報AddDとすればよい。付加情報がない場合は図26に示すようにコマンドのCodeE、処理位置を示すFlagEがフレームヘッダFrmBHdrに付加されればよい。コマンドを示すCodeの直後に付加情報を示すAddとせず処理位置を示すFlagとすることにより、図24に示すStepB7やStepB9の処理が最適化できる。   At this time, for example, as shown in FIG. 26, the frame header FrmBHdr of the frame FrmB may be the code information CodeD of the command from the top, FlagD indicating the processing position, and additional information AddD indicating the additional information of the command. When there is no additional information, as shown in FIG. 26, CodeE of the command and FlagE indicating the processing position may be added to the frame header FrmBHdr. The processing of Step B7 and Step B9 shown in FIG. 24 can be optimized by setting the flag indicating the processing position instead of “Add” indicating additional information immediately after the code indicating the command.

また、コマンドの実行タイミングが画像信号の復号前と復号後のいずれかであるかを区別するために、コマンドの処理位置を示す新しいコマンドを用い、その処理位置を示すコマンドのフレームヘッダでの位置より前に位置するコマンドは復号化後に実施、その処理位置を示すコマンドのフレームヘッダでの位置より後に位置するコマンドは復号化前に実施するようにしてもよい。これにより、複数コマンドがあるときに、それぞれのコマンドの実行タイミング(処理位置)を1つのコマンドで示すことができ、コマンド毎に処理位置を示すFlagを送る場合に比べて送る情報が減少して、符号化効率が向上する。   In addition, in order to distinguish whether the execution timing of the command is before or after decoding of the image signal, a new command indicating the processing position of the command is used, and the position in the frame header of the command indicating the processing position is used. The command positioned before the decoding may be executed after decoding, and the command positioned after the position in the frame header of the command indicating the processing position may be executed before decoding. As a result, when there are a plurality of commands, the execution timing (processing position) of each command can be indicated by one command, and the information to be sent is reduced compared to sending a flag indicating the processing position for each command. Encoding efficiency is improved.

具体例を図27を用いて説明する。   A specific example will be described with reference to FIG.

図27は、他の符号化信号のヘッダ情報におけるメモリ管理情報のコマンドを示す模式図である。   FIG. 27 is a schematic diagram illustrating a command of memory management information in the header information of another encoded signal.

図27において、フレームFrmCの符号化信号は、フレームヘッダFrmCHdrと、MBa,MBbなどのフレームデータなどを有しており、フレームヘッダFrmCHdrは、ヘッダ情報として、前から順にコマンドCodeF、コマンドdif、コマンドCodeG、付加情報AddG、コマンドCodeHが位置している。   In FIG. 27, the encoded signal of the frame FrmC includes a frame header FrmCHdr and frame data such as MBa and MBb. The frame header FrmCHdr includes, as header information, a command CodeF, a command dif, and a command in order from the front. CodeG, additional information AddG, and command CodeH are located.

そして、処理位置を示すコマンドdifがフレームヘッダFrmCHdrにあるかないかが判別され、処理位置を示すコマンドdifより前にあるコマンドCodeFはフレームFrmCの復号化後に実行され、コマンドdifより後にあるコマンドCodeGやコマンドCodeHはフレームFrmCの復号化前に実行されるようにしてもよい。この場合、処理位置を示すコマンドdifがなければ、フレームヘッダFrmCHdr内の全てのコマンドは、フレームFrmCの復号化処理後に実行されることになる。   Then, it is determined whether or not the command dif indicating the processing position is present in the frame header FrmCHdr. The command CodeF preceding the command dif indicating the processing position is executed after decoding the frame FrmC, and the command CodeG or the command after the command dif is executed. CodeH may be executed before decoding the frame FrmC. In this case, if there is no command dif indicating the processing position, all commands in the frame header FrmCHdr are executed after the decoding process of the frame FrmC.

尚、上記各実施の形態で説明したように、不要になったメモリ領域を開放するコマンドや初期化コマンドなどのメモリ管理情報が再度伝送されるときに、画像の符号化信号に付加されたヘッダ情報に含まれて伝送されるのではなく、メモリ管理情報の含まれたヘッダ情報が画像の符号化信号とは別に分離して伝送されてもよい。すなわち、再送する上述のコマンドが、符号化されたピクチャと同じストリームにあるのではなく、例えば別のストリームとして伝送するようにしてもよい。また、蓄積メディアの別の領域に記録されてもよい。   As described in the above embodiments, when memory management information such as a command for releasing a memory area that has become unnecessary or an initialization command is transmitted again, the header added to the encoded signal of the image Instead of being included in the information and transmitted, the header information including the memory management information may be transmitted separately from the encoded signal of the image. That is, the above-described command to be retransmitted may be transmitted as a separate stream, for example, instead of being in the same stream as the encoded picture. Further, it may be recorded in another area of the storage medium.

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

本実施の形態では、上記各実施の形態と符号化を行う単位が異なる。すなわち、上記実施の形態1において不要なメモリ領域を開放するコマンドを複数回伝送するとき、上記コマンドに相当する図1に示されるメモリ管理情報ストリームCtlStrと画像符号化ストリームVideoStrとは画像(ピクチャ)単位で符号化していたが、本実施の形態では、図28に示すストリーム構造のように1フレームをスライス単位で符号化してもよい。   The present embodiment is different from the above embodiments in the unit of encoding. That is, when a command for releasing an unnecessary memory area is transmitted a plurality of times in the first embodiment, the memory management information stream CtlStr and the image encoded stream VideoStr shown in FIG. 1 corresponding to the command are an image (picture). In this embodiment, one frame may be encoded in units of slices as in the stream structure shown in FIG.

スライス単位で符号化するとは、図28のフレーム1のスライス1がヘッダ1−1、ctlStr1、VideoStr1−1を有し、フレーム1のスライス2がヘッダ1−2、ctlStr1、VideoStr1−2を有するように、各フレームが有するスライス毎にヘッダ、メモリ管理情報ストリームCtlStr、画像符号化ストリームVideoStrを符号化することである。画像符号化装置で符号化後、画像符号化装置はデータストリームを出力する。なお、スライスは同期復帰単位であり、一つまたは複数のブロックからなる帯状の領域であり、複数のスライスからピクチャが構成される。また、ピクチャは1枚の画像に対応する基本的符号化単位であり、ブロックは符号化・復号化の基本単位である。   Encoding in units of slices means that slice 1 of frame 1 in FIG. 28 has header 1-1, ctlStr1, and VideoStr1-1, and slice 2 of frame 1 has header 1-2, ctlStr1, and VideoStr1-2. In addition, a header, a memory management information stream CtlStr, and an image encoded stream VideoStr are encoded for each slice included in each frame. After encoding by the image encoding device, the image encoding device outputs a data stream. Note that a slice is a unit for returning from synchronization, is a band-shaped region composed of one or a plurality of blocks, and a picture is composed of a plurality of slices. A picture is a basic encoding unit corresponding to one image, and a block is a basic unit of encoding / decoding.

また、上記のようにメモリ管理情報ストリームCtlStrを複数回伝送するときの内容は同一フレーム内において同一の情報とする。同一の情報とすることにより、このメモリ管理情報ストリームCtlStrのスライス単位での付加の省略ができる。例えば、スライスのヘッダに複数回の伝送が当該スライスでは省略されているかどうかを示す情報を付加し、上記コマンドを複数回伝送することが当該スライスでは省略されているときには「0」を、上記コマンドが当該スライスにおいて伝送されているとき(省略されていないとき)には「1」を付加する。具体的に図29(a)に一例を示し、以下説明する。フレーム1におけるスライス1からスライス3におけるヘッダおよび画像符号化ストリームVideoStrはそれぞれ異なる。一方、スライス1およびスライス2においては同一のメモリ管理情報ストリームCtlStr1を有し、同一フレームにおける複数のスライスにおいて同一のメモリ管理情報ストリームCtlStr1が符号化されていることを示す情報「1」をスライス1およびスライス2それぞれが有する。また、スライス3はメモリ管理情報ストリームCtlStr1を省略していることを示す情報「0」を有する。これにより、複数回伝送することが当該スライスにおいて省略されているときには、先頭のスライス等、上記「1」が示されているスライスにおけるメモリ管理情報ストリームCtlStrを参照することにより、メモリ管理情報ストリームCtlStrの付加を省略可能にでき、ビット数を減らすことが可能となる。   Further, as described above, the contents when the memory management information stream CtlStr is transmitted a plurality of times are the same information in the same frame. By using the same information, addition of the memory management information stream CtlStr in units of slices can be omitted. For example, information indicating whether multiple transmissions are omitted in the slice is added to the header of the slice, and “0” is transmitted when transmission of the command multiple times is omitted in the slice. Is transmitted in the slice (when not omitted), “1” is added. Specifically, an example is shown in FIG. The header and the image encoded stream VideoStr in slice 1 to slice 3 in frame 1 are different from each other. On the other hand, slice 1 and slice 2 have the same memory management information stream CtlStr1, and information “1” indicating that the same memory management information stream CtlStr1 is encoded in a plurality of slices in the same frame is slice 1. And each slice 2 has. Further, the slice 3 has information “0” indicating that the memory management information stream CtlStr1 is omitted. As a result, when multiple transmissions are omitted in the current slice, the memory management information stream CtlStr is referred to by referring to the memory management information stream CtlStr in the slice indicated by “1”, such as the first slice. Can be omitted, and the number of bits can be reduced.

すなわち、上述したメモリ管理情報ストリームCtlStr1を省略していることを示す情報「0」は、除去する対象のピクチャを指定する情報を有さないスライス(スライス3)で、除去する対象のピクチャを指定する情報を参照するとき、除去する対象のピクチャを指定する情報を参照することを示す情報である。   That is, the information “0” indicating that the above-described memory management information stream CtlStr1 is omitted is a slice (slice 3) that does not have information specifying the picture to be removed, and designates the picture to be removed. This is information indicating that the information specifying the picture to be removed is referred to when the information to be referred to is referred to.

このようなメモリ管理情報ストリームCtlStrの付加を省略可能にする方法は、伝送過程でメモリ管理情報ストリームCtlStrが複数回欠落する可能性は少ないため有効である。   Such a method of making it possible to omit the addition of the memory management information stream CtlStr is effective because it is unlikely that the memory management information stream CtlStr is lost multiple times during the transmission process.

さらに、メモリ管理情報ストリームCtlStrの有無が、メモリ管理情報ストリームCtlStrが省略されていることを示す情報なしに判別できる場合、図29(b)のようにこれを省略してもよい。例えばメモリ管理情報ストリームCtlStrの先頭が画像符号化ストリームVideoStrの先頭と区別できる場合では、図29(b)のようにメモリ管理情報ストリームCtlStr1が符号化されているかどうかを示す情報があるかどうかの判別を、各スライスにおける先頭から所定の位置に所定の情報があるかないかで確認することができる。   Furthermore, when the presence or absence of the memory management information stream CtlStr can be determined without information indicating that the memory management information stream CtlStr is omitted, this may be omitted as shown in FIG. For example, when the head of the memory management information stream CtlStr can be distinguished from the head of the image encoded stream VideoStr, whether there is information indicating whether the memory management information stream CtlStr1 is encoded as shown in FIG. The determination can be made based on whether or not there is predetermined information at a predetermined position from the head in each slice.

このようなメモリ管理情報ストリームCtlStrの付加を省略可能にする方法は、メモリ管理情報ストリームCtlStrを符号化する回数を削減し、ビット数を減らすのに有効である。   Such a method of making it possible to omit the addition of the memory management information stream CtlStr is effective in reducing the number of times of encoding the memory management information stream CtlStr and reducing the number of bits.

以上、符号化について説明したが同様に1フレームの復号化をスライス単位ですることができる。上記実施の形態2において不要なメモリ領域を開放するコマンドを複数回伝送するとき、図3に示す画像復号化装置200においては、上記コマンドに相当する図28に示される管理情報ストリームCtlStrと画像符号化ストリームVideoStrとを有するストリーム構造を分離し、それぞれを画像(ピクチャ)単位で入力するが、それぞれをスライス単位で入力してもよい。   The encoding has been described above. Similarly, one frame can be decoded in units of slices. When transmitting a command for releasing an unnecessary memory area a plurality of times in the second embodiment, the image decoding apparatus 200 shown in FIG. 3 uses the management information stream CtlStr and the image code shown in FIG. 28 corresponding to the command. The stream structure having the encrypted stream VideoStr is separated and each is input in units of images (pictures), but each may be input in units of slices.

なお、他の実施の形態における符号化・復号化においても同様に1フレームをスライス単位で符号化・復号化してもよい。   In addition, in encoding / decoding in other embodiments, one frame may be similarly encoded / decoded in units of slices.

また、上記実施の形態1から実施の形態10までに示した符号化方法・復号化方法は、携帯電話やカーナビゲーションシステム等の移動体通信機器やデジタルビデオカメラやデジタルスチールカメラ等の撮影機器にLSI等の半導体によって実装することが可能である。また、実装形式としては、符号化器・復号化器を両方持つ送受信型の端末の他に、符号化器のみの送信端末、復号化器のみの受信端末の3通りが考えられる。   The encoding method and decoding method shown in the first to tenth embodiments are applied to mobile communication devices such as mobile phones and car navigation systems, and photographing devices such as digital video cameras and digital still cameras. It can be mounted by a semiconductor such as an LSI. In addition to the transmission / reception type terminal having both an encoder and a decoder, there are three possible mounting formats: a transmitting terminal having only an encoder and a receiving terminal having only a decoder.

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

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

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

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

また、図30(c)は、フレキシブルディスクFD1に上記プログラムの記録再生を行うための構成を示す。上記プログラムをフレキシブルディスクFD1に記録する場合は、コンピュータシステムCsから上記プログラムとしての画像符号化方法または画像復号化方法を、フレキシブルディスクドライブFDDを介して書き込む。また、フレキシブルディスクFD1内のプログラムにより上記画像符号化方法をコンピュータシステム中に構築する場合は、フレキシブルディスクドライブFDDによりプログラムをフレキシブルディスクFD1から読み出し、コンピュータシステムCsに転送する。   FIG. 30C shows a configuration for recording and reproducing the program on the flexible disk FD1. When the program is recorded on the flexible disk FD1, the image encoding method or the image decoding method as the program is written from the computer system Cs via the flexible disk drive FDD. When the image encoding method is built in the computer system by 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カセット等、プログラムを記録できるものであれば同様に実施することができる。   In the above description, a flexible disk is used as the recording medium, but the same can be done using an optical disk. Further, the recording medium is not limited to this, and any recording medium such as an IC card or a ROM cassette capable of recording a program can be similarly implemented.

また、上記実施の形態に示した画像符号化方法・画像復号化方法は、携帯電話やカーナビゲーションシステム等の移動体通信機器やデジタルビデオカメラやデジタルスチールカメラ等の撮影機器にLSI等の半導体によって実装することが可能である。また、実装形式としては、符号化器・復号化器を両方持つ送受信型の端末の他に、符号化器のみの送信端末、復号化器のみの受信端末の3通りが考えられる。   In addition, the image encoding method and the image decoding method shown in the above embodiment are applied to a mobile communication device such as a mobile phone or a car navigation system, a photographing device such as a digital video camera or a digital still camera, and a semiconductor such as an LSI. It is possible to implement. In addition to the transmission / reception type terminal having both an encoder and a decoder, there are three possible mounting formats: a transmitting terminal having only an encoder and a receiving terminal having only a decoder.

ここで、上記実施の形態1から実施の形態10で示した画像符号化方法や画像復号化方法の応用例とそれを用いたシステムを説明する。   Here, application examples of the image coding method and the image decoding method shown in the first to tenth embodiments and a system using the same will be described.

図31は、コンテンツ配信サービスを実現するコンテンツ供給システムex100の全体構成を示すブロック図である。通信サービスの提供エリアを所望の大きさに分割し、各セル内にそれぞれ固定無線局である基地局ex107〜ex110が設置されている。   FIG. 31 is a block diagram showing an overall configuration of a content supply system ex100 that implements a content distribution service. The 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 personal digital assistant (PDA) ex112, a camera ex113, a mobile phone ex114, a camera via the Internet ex101, the Internet service provider ex102, the telephone network ex104, and the base stations ex107 to ex110. Each device such as the attached mobile phone ex115 is connected.

しかし、コンテンツ供給システムex100は図31のような組合せに限定されず、いずれかを組み合わせて接続するようにしてもよい。また、固定無線局である基地局ex107〜ex110を介さずに、各機器が電話網ex104に直接接続されてもよい。   However, the content supply system ex100 is not limited to the combination as shown in FIG. 31, and may be connected in any combination. Also, 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.

カメラ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)等であり、いずれでも構わない。
The camera ex113 is a device capable of shooting a moving image such as a digital video camera. In addition, the mobile phone includes a PDC (Personal Digital Communications) system, a CDMA (Code Division Multiple Access) system, and a W-CDMA (Wideband-Code Division Multiple).
The mobile phone may be an Access (Access) method, a GSM (Global System for Mobile Communications) method, or a PHS (Personal Handyphone System).

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

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

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

その一例として携帯電話について説明する。   A mobile phone will be described as an example.

図32は、上記実施の形態で説明した画像符号化方法と画像復号化方法を用いた携帯電話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)の一種であるフラッシュメモリ素子を格納したものである。   FIG. 32 is a diagram illustrating the mobile phone ex115 using the image coding 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 from a CCD camera, a camera unit ex203 capable of taking a still image, a video shot by the camera unit ex203, and an antenna ex201. A display unit ex202 such as a liquid crystal display that displays data obtained by decoding received video and the like, a main body unit composed of a group of operation keys ex204, an audio output unit ex208 such as a speaker for audio output, and audio input To store encoded data or decoded data such as a voice input unit ex205 such as a microphone, captured video or still image data, received mail data, video data or still image data, etc. Recording media ex207 and mobile phone ex115 with recording media ex207 And a slot portion ex206 to ability. 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 non-volatile memory that can be electrically rewritten and erased in a plastic case such as an SD card.

さらに、携帯電話ex115について図33を用いて説明する。携帯電話ex115は表示部ex202及び操作キーex204を備えた本体部の各部を統括的に制御するようになされた主制御部ex311に対して、電源回路部ex310、操作入力制御部ex304、画像符号化部ex312、カメラインターフェース部ex303、LCD(Liquid Crystal Display)制御部ex302、画像復号化部ex309、多重分離部ex308、記録再生部ex307、変復調回路部ex306及び音声処理部ex305が同期バスex313を介して互いに接続されている。   Further, the cellular phone ex115 will be described with reference to FIG. The cellular phone ex115 controls the main control unit ex311 which is configured to control the respective units of the main body unit including the display unit ex202 and the operation key ex204. The power supply circuit unit ex310, the operation input control unit ex304, and the image encoding 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 synchronization bus ex313 Are connected to each other.

電源回路部ex310は、ユーザの操作により終話及び電源キーがオン状態にされると、バッテリパックから各部に対して電力を供給することによりカメラ付デジタル携帯電話ex115を動作可能な状態に起動する。   When the end of call and the power key are turned on by a user operation, the power supply circuit ex310 starts up the camera-equipped digital mobile phone ex115 in an operable state by supplying power from the battery pack to each unit. .

携帯電話ex115は、CPU、ROM及びRAM等でなる主制御部ex311の制御に基づいて、音声通話モード時に音声入力部ex205で集音した音声信号を音声処理部ex305によってデジタル音声データに変換し、これを変復調回路部ex306でスペクトラム拡散処理し、送受信回路部ex301でデジタルアナログ変換処理及び周波数変換処理を施した後にアンテナex201を介して送信する。また携帯電話機ex115は、音声通話モード時にアンテナex201で受信した受信データを増幅して周波数変換処理及びアナログデジタル変換処理を施し、変復調回路部ex306でスペクトラム逆拡散処理し、音声処理部ex305によってアナログ音声データに変換した後、これを音声出力部ex208を介して出力する。   The mobile phone ex115 converts the voice signal collected by the voice input unit ex205 in the voice call mode into digital voice data by the voice processing unit ex305 based on the control of the main control unit ex311 including a CPU, a ROM, a RAM, and the like. The modulation / demodulation circuit unit ex306 performs spread spectrum processing, the transmission / reception circuit unit ex301 performs digital-analog conversion processing and frequency conversion processing, and then transmits the result via the antenna ex201. In addition, the cellular phone ex115 amplifies the received data received by the antenna ex201 in the voice call mode, performs frequency conversion processing and analog-digital conversion processing, performs spectrum despreading processing by the modulation / demodulation circuit unit ex306, and analog audio by the voice processing unit ex305. After the data is converted, it 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 in the transmission / reception circuit unit ex301, and then 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 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 has a configuration including the image encoding device described in the present invention, and an encoding method using the image data supplied from the camera unit ex203 in the image encoding device described in the above embodiment. The image data is converted into encoded image data by compression encoding, and is sent to the demultiplexing unit ex308. At the same time, the cellular phone ex115 sends the sound collected by the audio input unit ex205 during imaging by the camera unit ex203 to the demultiplexing unit ex308 via the audio processing unit ex305 as digital audio data.

多重分離部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 the multiplexed data obtained as a result is a modulation / demodulation circuit unit Spread spectrum processing is performed in ex306, digital analog conversion processing and frequency conversion processing are performed in the transmission / reception circuit unit ex301, and then transmitted through the antenna ex201.

データ通信モード時にホームページ等にリンクされた動画像ファイルのデータを受信する場合、アンテナex201を介して基地局ex110から受信した受信データを変復調回路部ex306でスペクトラム逆拡散処理し、その結果得られる多重化データを多重分離部ex308に送出する。   When data of a moving image file linked to a home page or the like is received in the data communication mode, the received 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 multiplexing is obtained. Data is sent to the demultiplexing unit ex308.

また、アンテナex201を介して受信された多重化データを復号化するには、多重分離部ex308は、多重化データを分離することにより画像データのビットストリームと音声データのビットストリームとに分け、同期バスex313を介して当該符号化画像データを画像復号化部ex309に供給すると共に当該音声データを音声処理部ex305に供給する。   Also, in order 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 synchronizes them. The encoded 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 has a configuration including the image decoding apparatus 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. Thus, the reproduction moving image data is generated and supplied to the display unit ex202 via the LCD control unit ex302, and thereby, for example, the moving image data included in the moving image file linked to the home page is displayed. 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. Thus, for example, the audio data included in the moving image file linked to the home page is reproduced. The

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

更に、画像信号を上記実施の形態で示した画像符号化装置で符号化し、記録媒体に記録することもできる。具体例としては、DVDディスクex421に画像信号を記録するDVDレコーダや、ハードディスクに記録するディスクレコーダなどのレコーダex420がある。更にSDカードex422に記録することもできる。レコーダex420が上記実施の形態で示した画像復号化装置を備えていれば、DVDディスクex421やSDカードex422に記録した画像信号を再生し、モニタex408で表示することができる。   Further, the image signal can be encoded by the image encoding device shown in the above embodiment and recorded on a recording medium. Specific examples include a recorder ex420 such as a DVD recorder that records image signals on a DVD disk ex421 and a disk recorder that records images on a hard disk. Further, 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の構成は例えば図33に示す構成のうち、カメラ部ex203とカメラインターフェース部ex303、画像符号化部ex312を除いた構成が考えられ、同様なことがコンピュータex111やテレビ(受信機)ex401等でも考えられる。   The configuration of the car navigation ex 413 is, for example, the configuration shown in FIG. 33 excluding the camera unit ex203, the camera interface unit ex303, and the image encoding unit ex312. The same applies to the computer ex111 and the television (receiver). ) Ex401 can also be considered.

また、上記携帯電話ex114等の端末は、符号化器・復号化器を両方持つ送受信型の端末の他に、符号化器のみの送信端末、復号化器のみの受信端末の3通りの実装形式が考えられる。   In addition to the transmission / reception type terminal having both the encoder and the decoder, the terminal such as the mobile phone ex114 has three mounting formats, that is, 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 in any of the above-described devices and systems, and thereby, the effects described in the above embodiment can be obtained. Can be obtained.

本発明はかかる上記実施の形態に限定されるものではなく、本発明の範囲を逸脱することなく種々の変形または修正が可能である。   The present invention is not limited to the above-described embodiment, and various changes or modifications can be made without departing from the scope of the present invention.

なお、ブロック図(図1、3、33など)の各機能ブロックは典型的には集積回路であるLSIとして実現される。これらは個別に1チップ化されても良いし、一部又は全てを含むように1チップ化されても良い。   Each functional block in the block diagrams (FIGS. 1, 3, 33, etc.) is typically realized as an LSI which is an integrated circuit. These may be individually made into one chip, or may be made into one chip so as to include a part or all of them.

例えばメモリ以外の機能ブロックが1チップ化されていても良い。   For example, the functional blocks other than the memory may be integrated into one chip.

ここでは、LSIとしたが、集積度の違いにより、IC、システムLSI、スーパーLSI、ウルトラLSIと呼称されることもある。   The name used here is LSI, but it may also be called IC, system LSI, super LSI, or ultra LSI depending on the degree of integration.

また、集積回路化の手法はLSIに限るものではなく、専用回路又は汎用プロセッサで実現してもよい。LSI製造後に、プログラムすることが可能なFPGA(Field Programmable Gate Array)や、LSI内部の回路セルの接続や設定を再構成可能なリコンフィギュラブル・プロセッサ を利用しても良い。   Further, the method of circuit integration is not limited to LSI's, and implementation using dedicated circuitry or general purpose processors is also possible. An FPGA (Field Programmable Gate Array) that can be programmed after manufacturing the LSI, or a reconfigurable processor that can reconfigure the connection and setting of circuit cells inside the LSI may be used.

さらには、半導体技術の進歩又は派生する別技術によりLSIに置き換わる集積回路化の技術が登場すれば、当然、その技術を用いて機能ブロックの集積化を行ってもよい。バイオ技術の適応等が可能性としてありえる。   Further, if integrated circuit technology comes out to replace LSI's as a result of the advancement of semiconductor technology or a derivative other technology, it is naturally also possible to carry out function block integration using this technology. Biotechnology can be applied.

また、各機能ブロックのうち、符号化または復号化の対象となるデータを格納する手段だけ1チップ化せずに別構成としても良い。   In addition, among the functional blocks, only the means for storing the data to be encoded or decoded may be configured separately instead of being integrated into one chip.

以上、図面を参照してこの発明の実施の形態を説明したが、この発明は、図示した実施の形態のものに限定されない。図示した実施の形態に対して、この発明と同一の範囲において、あるいは均等の範囲内において、種々の修正や変形を加えることが可能である。   Although the embodiments of the present invention have been described with reference to the drawings, the present invention is not limited to the illustrated embodiments. Various modifications and variations can be made to the illustrated embodiment within the same range or equivalent range as the present invention.

本発明は、画像符号化装置を備えるマルチメディア機器に適用でき、特に携帯電話機、デジタルカメラ、ビデオカメラ、PDA、テレビ、DVDレコーダ、BDレコーダ、STB、パーソナルコンピュータ、カーナビゲーション装置等に適用できる。   The present invention can be applied to a multimedia device including an image encoding device, and particularly applicable to a mobile phone, a digital camera, a video camera, a PDA, a television, a DVD recorder, a BD recorder, an STB, a personal computer, a car navigation device, and the like.

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 可変長復号化部
Cs コンピュータシステム
FD フレキシブルディスク
FDD フレキシブルディスクドライブ
DESCRIPTION OF SYMBOLS 100 Image coding apparatus 101 Memory information control part 102 Short-time storage memory management part 103 Long-time storage memory management part 104 Non-storage memory management information part 105 Management information encoding part 106 Reference image selection part 107 Storage area designation part 108 Reference area 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 unit 207 Storage area specifying unit 208 Reference area specifying unit 209 Image memory 210 Image decoding unit 212 Variable length decoding unit Cs Computer system FD Flexible disk FDD Flexible disk drive

Claims (4)

メモリ内に保存されている複数の参照ピクチャから選択した参照ピクチャを参照して符号化する画像符号化方法であって、
選択した参照ピクチャを参照して、符号化対象ピクチャを符号化し、
メモリに保存されている参照ピクチャを管理するための第1のメモリ管理情報を、前記符号化された符号化対象ピクチャに付随させて符号化し、
前記第1のメモリ管理情報を再度、第2のメモリ管理情報として前記符号化対象ピクチャとは別のピクチャに付随させて符号化し、
前記第2のメモリ管理情報に、前記符号化対象ピクチャを特定する情報を付随させ、
前記メモリ管理情報は、前記メモリ内で不要になり開放するメモリ領域を指定する情報である、
ことを特徴とする画像符号化方法。
An image encoding method for encoding with reference to a reference picture selected from a plurality of reference pictures stored in a memory,
The encoding target picture is encoded with reference to the selected reference picture,
Encoding first memory management information for managing a reference picture stored in a memory in association with the encoded picture to be encoded;
The first memory management information is again encoded as second memory management information by attaching it to a picture different from the picture to be encoded,
The second memory management information is accompanied with information for specifying the encoding target picture,
The memory management information is information that designates a memory area that becomes unnecessary and is released in the memory.
An image encoding method characterized by the above.
前記メモリは、参照ピクチャの保存時間の短い短時間保存メモリと、前記短時間保存メモリよりも参照ピクチャの保存時間の長い長時間保存メモリとを備え、  The memory includes a short-time storage memory having a short reference picture storage time and a long-time storage memory having a reference picture storage time longer than the short-time storage memory,
前記メモリ管理情報は、更に、前記短時間保存メモリから前記長時間保存メモリに移動する対象の参照ピクチャを指定する情報を含む、  The memory management information further includes information specifying a reference picture to be moved from the short-time storage memory to the long-time storage memory.
ことを特徴とする請求項1に記載の画像符号化方法。  The image encoding method according to claim 1.
メモリ内に保存されている複数の参照ピクチャから選択した参照ピクチャを参照して符号化する画像符号化装置であって、
選択した参照ピクチャを参照して、符号化対象ピクチャを符号化する第1の符号化手段と、
メモリに保存されている参照ピクチャを管理するための第1のメモリ管理情報を、前記符号化された符号化対象ピクチャに付随させて符号化する第2の符号化手段と、
前記第1のメモリ管理情報を再度、第2のメモリ管理情報として、前記符号化対象ピクチャとは別のピクチャに付随させて符号化し、前記第2のメモリ管理情報に、前記符号化対象ピクチャを特定する情報を付随させる管理情報符号化手段を備え、
前記メモリ管理情報は、前記メモリ内で不要になり開放するメモリ領域を指定する情報である、
ことを特徴とする画像符号化装置。
An image encoding device for encoding with reference to a reference picture selected from a plurality of reference pictures stored in a memory,
First encoding means for encoding the encoding target picture with reference to the selected reference picture;
Second encoding means for encoding first memory management information for managing reference pictures stored in a memory in association with the encoded picture to be encoded;
The first memory management information is encoded again as second memory management information by being attached to a picture different from the encoding target picture, and the encoding target picture is added to the second memory management information. Management information encoding means for attaching information for identifying
The memory management information is information that designates a memory area that becomes unnecessary and is released in the memory.
An image encoding apparatus characterized by that.
メモリ内に保存されている複数の参照ピクチャから選択した参照ピクチャを参照して符号化したデータストリームが記録された記録媒体であって、
選択した参照ピクチャを参照して、符号化対象ピクチャを符号化した符号化データと、
メモリに保存されている参照ピクチャを管理するための第1のメモリ管理情報を、前記符号化対象ピクチャに付随させて符号化した管理情報符号化データと、
前記第1のメモリ管理情報を再度、第2のメモリ管理情報として前記符号化対象ピクチャとは別のピクチャに付随させて符号化し、前記第2のメモリ管理情報に、前記符号化対象ピクチャを特定する情報を付随させた管理情報再符号化データとを含み、
前記メモリ管理情報は、前記メモリ内で不要になり開放するメモリ領域を指定する情報である、
ことを特徴とする記録媒体。
A recording medium on which a data stream encoded with reference to a reference picture selected from a plurality of reference pictures stored in a memory is recorded,
With reference to the selected reference picture, encoded data obtained by encoding the encoding target picture;
Management information encoded data in which first memory management information for managing reference pictures stored in a memory is encoded in association with the encoding target picture;
The first memory management information is encoded again as second memory management information by being attached to a picture different from the encoding target picture, and the encoding target picture is specified in the second memory management information. Management information re-encoded data accompanied by information to be
The memory management information is information that designates a memory area that becomes unnecessary and is released in the memory.
A recording medium characterized by the above.
JP2011184996A 2002-04-12 2011-08-26 Image encoding method, image encoding apparatus, and recording medium Expired - Lifetime JP5530408B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011184996A JP5530408B2 (en) 2002-04-12 2011-08-26 Image encoding method, image encoding apparatus, and recording medium

Applications Claiming Priority (7)

Application Number Priority Date Filing Date Title
JP2002110424 2002-04-12
JP2002110424 2002-04-12
US37765602P 2002-05-06 2002-05-06
US60/377,656 2002-05-06
JP2002190955 2002-06-28
JP2002190955 2002-06-28
JP2011184996A JP5530408B2 (en) 2002-04-12 2011-08-26 Image encoding method, image encoding apparatus, and recording medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2011065035A Division JP4847617B2 (en) 2002-04-12 2011-03-23 Image encoding method and image encoding apparatus

Publications (2)

Publication Number Publication Date
JP2012010394A JP2012010394A (en) 2012-01-12
JP5530408B2 true JP5530408B2 (en) 2014-06-25

Family

ID=39700399

Family Applications (7)

Application Number Title Priority Date Filing Date
JP2008039451A Expired - Lifetime JP4745352B2 (en) 2002-04-12 2008-02-20 Image encoding method and image encoding apparatus
JP2009138723A Expired - Lifetime JP4531846B2 (en) 2002-04-12 2009-06-09 Encoding method and encoding apparatus
JP2009138724A Expired - Lifetime JP4464460B2 (en) 2002-04-12 2009-06-09 Multiplexed data generation method and multiplexed data generation apparatus
JP2011065034A Expired - Lifetime JP4808820B2 (en) 2002-04-12 2011-03-23 Image encoding method and image encoding apparatus
JP2011065035A Expired - Lifetime JP4847617B2 (en) 2002-04-12 2011-03-23 Image encoding method and image encoding apparatus
JP2011184996A Expired - Lifetime JP5530408B2 (en) 2002-04-12 2011-08-26 Image encoding method, image encoding apparatus, and recording medium
JP2011184997A Expired - Lifetime JP5530409B2 (en) 2002-04-12 2011-08-26 Image encoding method and image encoding apparatus

Family Applications Before (5)

Application Number Title Priority Date Filing Date
JP2008039451A Expired - Lifetime JP4745352B2 (en) 2002-04-12 2008-02-20 Image encoding method and image encoding apparatus
JP2009138723A Expired - Lifetime JP4531846B2 (en) 2002-04-12 2009-06-09 Encoding method and encoding apparatus
JP2009138724A Expired - Lifetime JP4464460B2 (en) 2002-04-12 2009-06-09 Multiplexed data generation method and multiplexed data generation apparatus
JP2011065034A Expired - Lifetime JP4808820B2 (en) 2002-04-12 2011-03-23 Image encoding method and image encoding apparatus
JP2011065035A Expired - Lifetime JP4847617B2 (en) 2002-04-12 2011-03-23 Image encoding method and image encoding apparatus

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2011184997A Expired - Lifetime JP5530409B2 (en) 2002-04-12 2011-08-26 Image encoding method and image encoding apparatus

Country Status (1)

Country Link
JP (7) JP4745352B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0831072B2 (en) * 1990-05-30 1996-03-27 富士通株式会社 Message attribute detection processing method
JPH04239839A (en) * 1991-01-23 1992-08-27 Oki Electric Ind Co Ltd Picture information packet processing method
JPH1174868A (en) * 1996-09-02 1999-03-16 Toshiba Corp Information transmission method, coder/decoder in information transmission system adopting the method, coding multiplexer/decoding inverse multiplexer

Also Published As

Publication number Publication date
JP2012010394A (en) 2012-01-12
JP2011259498A (en) 2011-12-22
JP4847617B2 (en) 2011-12-28
JP2008172823A (en) 2008-07-24
JP2011160452A (en) 2011-08-18
JP2009246993A (en) 2009-10-22
JP4808820B2 (en) 2011-11-02
JP2011160453A (en) 2011-08-18
JP4531846B2 (en) 2010-08-25
JP4745352B2 (en) 2011-08-10
JP2009246992A (en) 2009-10-22
JP4464460B2 (en) 2010-05-19
JP5530409B2 (en) 2014-06-25

Similar Documents

Publication Publication Date Title
JP4615622B2 (en) Moving picture decoding method and moving picture decoding apparatus
JP5256243B2 (en) Image decoding method, image decoding apparatus and program
JP4215197B2 (en) Image encoding method and image decoding method
JP4544879B2 (en) Image coding method, image coding apparatus, and program
JP5530408B2 (en) Image encoding method, image encoding apparatus, and recording medium
KR100962815B1 (en) Video encoding method and video decoding method
JP2004088135A (en) Image encoder and image decoder

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130723

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130730

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130930

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140418

R151 Written notification of patent or utility model registration

Ref document number: 5530408

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

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

EXPY Cancellation because of completion of term