JP2015133742A - Moving image prediction encoding device, moving image prediction encoding method, moving image prediction encoding program, moving image prediction decoding device, moving image prediction decoding method, and moving image prediction decoding program - Google Patents

Moving image prediction encoding device, moving image prediction encoding method, moving image prediction encoding program, moving image prediction decoding device, moving image prediction decoding method, and moving image prediction decoding program Download PDF

Info

Publication number
JP2015133742A
JP2015133742A JP2015052342A JP2015052342A JP2015133742A JP 2015133742 A JP2015133742 A JP 2015133742A JP 2015052342 A JP2015052342 A JP 2015052342A JP 2015052342 A JP2015052342 A JP 2015052342A JP 2015133742 A JP2015133742 A JP 2015133742A
Authority
JP
Japan
Prior art keywords
image
display order
encoding
decoding
order 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.)
Granted
Application number
JP2015052342A
Other languages
Japanese (ja)
Other versions
JP5977852B2 (en
Inventor
ブン チュンセン
Chunsen Bun
チュンセン ブン
鈴木 芳典
Yoshinori Suzuki
芳典 鈴木
暁 藤林
Akira Fujibayashi
暁 藤林
タン ティオ ケン
Tio Ken Tang
ティオ ケン タン
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.)
NTT Docomo Inc
Original Assignee
NTT Docomo Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NTT Docomo Inc filed Critical NTT Docomo Inc
Priority to JP2015052342A priority Critical patent/JP5977852B2/en
Publication of JP2015133742A publication Critical patent/JP2015133742A/en
Application granted granted Critical
Publication of JP5977852B2 publication Critical patent/JP5977852B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve trouble (malfunction etc.) related to a weak point of the prior art by efficient compression encoding of images before or after an image which becomes a spot of random access.SOLUTION: A moving image prediction encoding device includes: encoding means for encoding input images to generate compressed image data including a random access image, and encoding data related to display order information on the images; restoring means for restoring reproduction images by decoding the compressed image data; and image storing means for storing the reproduction images as reference images. As the reference image to be used when encoding an image whose display order information is larger than that of the random access image, the restoring means decodes the compressed image data including such reference image information that does not include a reference image preceding the random access image in encoding processing order or display order information.

Description

本発明は、動画像予測符号化装置、方法、及びプログラム、並びに、動画像予測復号装置、方法、及びプログラムに関する発明である。   The present invention relates to a moving picture predictive coding apparatus, method, and program, and a moving picture predictive decoding apparatus, method, and program.

動画像データの伝送や蓄積を効率よく行うために、圧縮符号化技術が用いられる。動画像の場合ではMPEG1〜4やH.261〜H.264の方式が広く用いられている。   In order to efficiently transmit and store moving image data, a compression encoding technique is used. In the case of moving images, MPEG1-4 and H.264 are used. 261-H. H.264 is widely used.

これらの符号化方式では、符号化の対象となる画像を複数のブロックに分割し、各ブロックに対し符号化・復号処理を行う。符号化効率を高めるため、下記のような予測符号化方法が用いられる。画面内の予測符号化では、対象ブロックと同じ画面内の隣接する既再生の画像信号(過去に符号化された画像データを復元したもの)を用いて予測信号を生成し、予測信号を対象ブロックの信号から引き算して得られた差分信号を符号化する。画面間の予測符号化では、対象ブロックと異なる画面内の既再生の画像信号を参照して信号の変位を検索し、その変位分を補償して予測信号を生成し、予測信号を対象ブロックの信号から引き算して得られた差分信号を符号化する。このとき動きの検索・補償を行うために参照される既再生の画像を、参照画像という。   In these encoding methods, an image to be encoded is divided into a plurality of blocks, and encoding / decoding processing is performed on each block. In order to increase the encoding efficiency, the following predictive encoding method is used. In predictive coding within a screen, a prediction signal is generated using an adjacent reproduced image signal (reconstructed image data encoded in the past) in the same screen as the target block, and the predicted signal is used as the target block. The difference signal obtained by subtracting from the signal is encoded. In predictive encoding between screens, a displacement of a signal is searched with reference to a previously reproduced image signal in a screen different from the target block, a predicted signal is generated by compensating for the displacement, and the predicted signal is converted to the target block. The differential signal obtained by subtraction from the signal is encoded. At this time, the already-reproduced image referred to for motion search / compensation is referred to as a reference image.

また、双方向画面間予測では、表示時間順において対象画像の前に表示される過去の画像だけではなくて、対象画像の後に表示される未来の画像も併せて参照する場合がある(ただし、未来の画像は対象画像よりも先に符号化し、予め再生しておく必要がある)。そして、過去の画像から取得された予測信号と未来の画像から取得された予測信号の両方を平均化することによって、隠されていて新たに現れる物体の信号の予測に有効であるとともに、両方の予測信号に含まれている雑音を軽減する効果がある。   Further, in the bidirectional inter-screen prediction, not only the past image displayed before the target image in the display time order but also a future image displayed after the target image may be referred to (however, The future image must be encoded before the target image and reproduced in advance). And by averaging both the prediction signal acquired from the past image and the prediction signal acquired from the future image, it is effective in predicting the signal of the hidden and newly appearing object. There is an effect of reducing noise contained in the prediction signal.

さらに、H.264の画面間予測符号化では、対象ブロックに対する予測信号は、過去に符号化して再生された複数の参照画像を参照し、動き検索しながら誤差の最も少ない画像信号を最適な予測信号として選択する。そして、対象ブロックの画素信号とこの最適な予測信号との差分を求め、差分に対し離散コサイン変換を施し量子化した上でエントロピー符号化する。同時に、対象ブロックに対する最適な予測信号をどの参照画像から取得するかに関する情報(参照インデックス)及び最適な予測信号を参照画像内のどの領域から取得するかに関する情報(動きベクトル)も併せて符号化する。H.264では、再生された4ないし5枚の画像が参照画像としてフレームメモリに格納される。なお、本明細書ではフレームメモリには、いわゆる再生画像バッファ(decoded picture buffer)を含むものとする。   Further, H.C. In the H.264 inter-frame prediction encoding, the prediction signal for the target block refers to a plurality of reference images encoded and reproduced in the past, and an image signal with the least error is selected as an optimal prediction signal while performing motion search. . Then, a difference between the pixel signal of the target block and the optimal prediction signal is obtained, and the difference is subjected to discrete cosine transform and quantized, and then entropy-coded. At the same time, information relating to which reference image the optimum prediction signal for the target block is acquired from (reference index) and information relating to which region in the reference image the optimum prediction signal is obtained (motion vector) are also encoded. To do. H. In H.264, 4 to 5 reproduced images are stored in the frame memory as reference images. In this specification, the frame memory includes a so-called decoded picture buffer.

画面間予測符号化は、画像間の相関を活かして効率よく圧縮符号化することができるものの、テレビのチャンネルの切り替えで映像番組を途中から視聴できるようにするためには、画面間の依存性を断ち切る必要がある。動画像の圧縮ビットストリームの中で、画面間の依存性のない箇所を、以下「ランダムアクセスポイント」という。チャンネルの切り替えの他に、動画像を編集する場合及び異なる動画像の圧縮データをつなぐ場合にも、ランダムアクセスポイントは必要となる。H.264ではIDRピクチャを指定し、指定されたIDRピクチャを上述の画面内予測符号化方法で符号化すると同時に、フレームメモリ内に格納されている再生画像を不要と設定して、当該再生画像を参照不可とすることで実質的にフレームメモリを開放する(リフレッシュする)。このような処理は「メモリ・リフレッシュ」と呼ばれ、また場合によっては「フレーム・メモリ・リフレッシュ」又は「バッファ・リフレッシュ」とも呼ばれる。   Inter-screen predictive coding can efficiently compress and encode images by utilizing the correlation between images, but in order to be able to view a video program from the middle by switching TV channels, the inter-screen dependency It is necessary to cut off. A portion having no dependency between screens in a compressed bit stream of a moving image is hereinafter referred to as a “random access point”. In addition to channel switching, a random access point is also required when editing moving images and connecting compressed data of different moving images. H. In H.264, an IDR picture is designated, and the designated IDR picture is encoded by the above-described intra prediction encoding method, and at the same time, the reproduction image stored in the frame memory is set to be unnecessary, and the reproduction image is referred to. By disabling it, the frame memory is substantially released (refreshed). Such a process is called “memory refresh” and is sometimes called “frame memory refresh” or “buffer refresh”.

図11(A)は、IDRピクチャを含む動画像の予測構造を示す模式図である。この図11(A)に示す複数の画像901、902、…、909は、動画像を構成する画像群の一部であり、各画像を「ピクチャ」又は「フレーム」ともいう。各矢印は予測の方向を示す。例えば、画像902は、画像902に向かう2つの矢印の起点である画像903、905を参照画像として予測信号を取得する。なお、図11(A)の画像901は、図11(A)に示されていない過去の画像を参照して符号化されるものとする。次に画像902,903,904を符号化するが、その際、圧縮率を高めるために上述の双方向予測符号化方法を用いる。即ち、先に画像905を符号化・再生して、次に、既に再生された画像901と905を参照して画像903を符号化する(図11(A)では画像901からの矢印は省略している)。そして、画像902、904の各々は、再生された3つの画像901、905、903を参照画像として符号化する(図11(A)では画像901からの矢印は省略している)。同じように画像906、907、908は画像905と909を参照して符号化する。そして、このようにして符号化(圧縮)された各画像の圧縮データは、図11(B)のような順序で伝送もしくは蓄積される。図11(B)の圧縮データと図11(A)の画像とは、P1、IDR5、B3などの共通の符号によって対応関係を示している。例えば、圧縮データ910は、同じ符号P1を付した画像901の圧縮データであり、圧縮データ911は、同じ符号IDR5を付した画像905の圧縮データである。   FIG. 11A is a schematic diagram illustrating a prediction structure of a moving image including an IDR picture. A plurality of images 901, 902,..., 909 shown in FIG. 11A are part of an image group constituting a moving image, and each image is also referred to as “picture” or “frame”. Each arrow indicates the direction of prediction. For example, the image 902 acquires a prediction signal using the images 903 and 905 that are the starting points of two arrows toward the image 902 as reference images. Note that the image 901 in FIG. 11A is encoded with reference to a past image not shown in FIG. Next, the images 902, 903, and 904 are encoded. At this time, the above-described bidirectional predictive encoding method is used to increase the compression rate. That is, the image 905 is first encoded and reproduced, and then the image 903 is encoded with reference to the images 901 and 905 that have already been reproduced (in FIG. 11A, the arrow from the image 901 is omitted). ing). Each of the images 902 and 904 is encoded using the three reproduced images 901, 905, and 903 as reference images (in FIG. 11A, arrows from the image 901 are omitted). Similarly, images 906, 907, and 908 are encoded with reference to images 905 and 909. The compressed data of each image encoded (compressed) in this way is transmitted or stored in the order as shown in FIG. The compressed data in FIG. 11 (B) and the image in FIG. 11 (A) show a correspondence relationship by common codes such as P1, IDR5, and B3. For example, the compressed data 910 is compressed data of the image 901 with the same code P1, and the compressed data 911 is compressed data of the image 905 with the same code IDR5.

さて、ランダムアクセスを考慮して、画像905をIDRピクチャに指定して画面内予測符号化を行う場合を考える。この場合、H.264におけるIDRのルールによれば、圧縮データ911を復号することで画像905を再生した直後に(又は圧縮データ911の復号を開始する直前でもよいが)、フレームメモリに格納されている全ての参照画像(即ち、画像901を含む過去の再生画像)を不要と設定し参照不可にしなければならない。その結果、図11(A)の画像901は参照不可になり、画像902、903、904の符号化では、画像901からの参照ができなくなる。このようなIDRピクチャに係る処理は、例えば下記の非特許文献1に記述されている。   Now, considering random access, consider the case where the image 905 is designated as an IDR picture and intra prediction encoding is performed. In this case, H.C. According to the IDR rule in H.264, immediately after the image 905 is reproduced by decoding the compressed data 911 (or immediately before the decoding of the compressed data 911 is started), all the references stored in the frame memory are stored. An image (that is, a past reproduction image including the image 901) must be set as unnecessary and cannot be referred to. As a result, the image 901 in FIG. 11A cannot be referred to, and the reference from the image 901 cannot be performed when the images 902, 903, and 904 are encoded. Such processing relating to an IDR picture is described, for example, in Non-Patent Document 1 below.

国際公開公報WO2005/006763A1International Publication WO2005 / 006763A1

Iain E.G. Richardson, "H.264 and MPEG-4 Video Compression", John Wiley & Sons, 2003, section6.4.2.Iain E.G.Richardson, "H.264 and MPEG-4 Video Compression", John Wiley & Sons, 2003, section 6.4.2.

IDRピクチャの導入によって、上述の予測に用いられる参照画像が制限されるため、画像の表示順においてIDRピクチャよりも前にある画像(図11(A)の画像902、903、904)を効率よく符号化することができなくなる。この点を解決するために上記特許文献1には、フレームメモリのリフレッシュのタイミング(即ち、フレームメモリ内の参照画像を不要と設定するタイミング)を、IDRピクチャよりも後に符号化される画像の符号化実行時まで遅延させる方法が開示されている。フレームメモリのリフレッシュのタイミングを遅延させることにより、図11(A)の画像902、903、904の符号化実行時に画像901がフレームメモリに残っているため、画像902、903、904の符号化において画像901を参照できるようになり、効率よく符号化することができる。   Since the reference image used for the above prediction is limited by the introduction of the IDR picture, the images (images 902, 903, and 904 in FIG. 11A) that precede the IDR picture in the image display order are efficiently displayed. It becomes impossible to encode. In order to solve this point, the above-mentioned Patent Document 1 describes the frame memory refresh timing (that is, the timing at which the reference image in the frame memory is set to be unnecessary) as the code of the image encoded after the IDR picture. A method of delaying until the execution time is disclosed. By delaying the refresh timing of the frame memory, since the image 901 remains in the frame memory when the images 902, 903, and 904 in FIG. 11A are encoded, the images 902, 903, and 904 are encoded. The image 901 can be referred to and can be encoded efficiently.

特許文献1によれば、メモリ・リフレッシュのタイミングを遅延させる方法として、以下の方法が開示されている。
方法1:IDRピクチャに、遅延させる画像の枚数に関する情報を付加する。
方法2:メモリ・リフレッシュを実施するタイミングに対応する画像の圧縮データに、メモリ・リフレッシュの実行を指示する信号(フラグ)を付加する。
方法3:IDRピクチャの後に現れる最初のPピクチャ(片方向予測画像)をリフレッシュのタイミングとする。
According to Patent Document 1, the following method is disclosed as a method of delaying the memory refresh timing.
Method 1: Information regarding the number of images to be delayed is added to the IDR picture.
Method 2: A signal (flag) instructing execution of the memory refresh is added to the compressed image data corresponding to the timing at which the memory refresh is performed.
Method 3: The first P picture (unidirectional prediction image) appearing after the IDR picture is set as the refresh timing.

ところが、上記の方法は下記の欠点がある。
欠点1:上記の方法1では、動画像を編集する際に、複数の画像のうち一部の画像を捨てて別の画像をつないだり、別の画像を挿入したりすることが行われるため、IDRピクチャに付加されていた「遅延させる画像の枚数に関する情報」が適切でなくなり、誤動作を招くという不都合がある。
欠点2:上記の方法2では、同様にフラグを用いる場合でも、動画像の編集によって、対応する画像の圧縮データが削除されると、削除された圧縮データに付加されていたフラグがなくなり、誤動作を招くという不都合がある。
欠点3:上記の方法3では、メモリ・リフレッシュの合図(タイミング)はPピクチャに限定されてしまうため、他の方法で符号化できなくなるという不都合がある。例えば、シーンの変わり目に、画面内予測(Iピクチャ)として符号化することができなくなる。
However, the above method has the following drawbacks.
Disadvantage 1: In Method 1 described above, when editing a moving image, some of the plurality of images are discarded and another image is connected, or another image is inserted. There is an inconvenience that “information on the number of images to be delayed” added to the IDR picture is not appropriate and causes a malfunction.
Disadvantage 2: In Method 2 above, even when a flag is used, if the compressed data of the corresponding image is deleted by editing the moving image, the flag added to the deleted compressed data disappears, causing a malfunction. Inconvenience.
Disadvantage 3: In method 3 above, the memory refresh signal (timing) is limited to the P picture, so that there is a disadvantage that it cannot be encoded by other methods. For example, it cannot be encoded as intra prediction (I picture) at a scene change.

なお、ここでの「誤動作」とは、メモリ・リフレッシュが適切なタイミングで行われないことに起因し、後続のデータを復号する際に必要となる参照画像がフレームメモリに格納されていない状態となり、その結果、後続の画像が正しく再生できなくなることを意味する。   Note that the “malfunction” here is due to the fact that the memory refresh is not performed at an appropriate timing, and the reference image necessary for decoding subsequent data is not stored in the frame memory. As a result, it means that subsequent images cannot be reproduced correctly.

本発明は、上記の課題を解決し、ランダムアクセスの箇所となる画像の前後にある画像を効率よく圧縮符号化すると同時に、従来技術の欠点に係る不都合を解消することを目的とする。   SUMMARY OF THE INVENTION An object of the present invention is to solve the above-described problems and efficiently compress and encode images before and after an image to be a random access location, and at the same time eliminate the disadvantages associated with the disadvantages of the prior art.

上記目的を達成するために、本発明に係る動画像予測符号化装置は、動画像を構成する複数の画像を入力する入力手段と、入力された前記画像を画面内予測又は画面間予測のいずれかの方法で符号化することで、ランダムアクセスとなる画像であるランダムアクセス画像、を含む圧縮画像データを生成するとともに、前記画像の表示順番情報に関するデータを符号化する符号化手段と、生成された前記圧縮画像データを復号することで再生画像を復元する復元手段と、復元された前記再生画像を、後続の画像を符号化するために用いられる参照画像として格納する画像格納手段と、を具備し、前記復元手段は、表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像を符号化するときに用いられる参照画像として、符号化処理順又は表示順番情報において前記ランダムアクセス画像に先行する参照画像が含まれないような参照画像情報を含む前記圧縮画像データを復号する、ことを特徴とする。即ち、前記復元手段は、表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像の圧縮画像データを符号化するときに用いられる参照画像として、符号化処理順および表示順番情報が前記ランダムアクセス画像の符号化処理順および表示順番情報より大きい又は同じである参照画像のみを含むような参照画像情報を含む前記圧縮画像データを復号する。   In order to achieve the above object, a moving image predictive encoding apparatus according to the present invention includes an input unit that inputs a plurality of images constituting a moving image, and the input image is either intra prediction or inter prediction. By encoding using this method, compressed image data including a random access image that is a random access image is generated, and encoding means for encoding data related to the display order information of the image is generated. A restoration unit that restores a reproduced image by decoding the compressed image data; and an image storage unit that stores the restored reproduction image as a reference image used to encode a subsequent image. The restoration means uses an encoding process as a reference image used when encoding an image whose display order information is larger than the display order information of a random access image. Or wherein decoding the compressed image data including the reference image information that does not contain a reference image preceding the random access image in the display order information, characterized in that. In other words, the restoration means uses the encoding process order and display order information as the reference image used when encoding compressed image data of an image whose display order information is larger than the display order information of the random access image. The compressed image data including the reference image information including only the reference image larger than or the same as the image encoding processing order and the display order information is decoded.

上記目的を達成するために、本発明に係る動画像予測復号装置は、動画像を構成する複数の画像を画面内予測又は画面間予測のいずれかの方法で符号化することで得られた、ランダムアクセスとなる画像であるランダムアクセス画像を含む圧縮画像データ、及び、前記画像の表示順番情報に関するデータを符号化することで得られた表示順番符号化データを入力する入力手段と、前記圧縮画像データを復号することで再生画像を復元するとともに、前記表示順番符号化データを復号することで表示順番情報を復元する復元手段と、復元された前記再生画像を、後続の画像を復号するために用いられる参照画像として格納する画像格納手段と、を具備し、前記復元手段は、表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像の圧縮画像データを復号するときに用いられる参照画像として、復号処理順又は表示順番情報において前記ランダムアクセス画像に先行する参照画像が含まれないような参照画像情報を含む前記圧縮画像データを復号する、ことを特徴とする。即ち、前記復元手段は、表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像の圧縮画像データを復号するときに用いられる参照画像として、復号処理順および表示順番情報が前記ランダムアクセス画像の復号処理順および表示順番情報より大きい又は同じである参照画像のみを含むような参照画像情報を含む前記圧縮画像データを復号する。   In order to achieve the above object, the moving picture predictive decoding apparatus according to the present invention is obtained by encoding a plurality of images constituting a moving picture by either intra prediction or inter prediction. Input means for inputting compressed image data including a random access image that is a random access image, and display order encoded data obtained by encoding data relating to display order information of the image, and the compressed image Reconstructing the reproduced image by decoding the data, restoring means for restoring the display order information by decoding the display order encoded data, and decoding the restored reproduced image to the subsequent image An image storage means for storing as a reference image to be used, wherein the restoration means is an image whose display order information is larger than the display order information of the random access image. As the reference image used when decoding the compressed image data, the compressed image data including reference image information that does not include the reference image preceding the random access image in the decoding processing order or display order information is decoded. It is characterized by that. That is, the restoration means uses a decoding process order and display order information of the random access image as a reference image used when decoding compressed image data of an image whose display order information is larger than the display order information of the random access image. The compressed image data including the reference image information including only the reference image larger than or the same as the decoding processing order and the display order information is decoded.

また、本発明に係る動画像予測符号化方法は、後続の画像を符号化するために用いられる参照画像を格納するための画像格納手段を備える動画像予測符号化装置、により実行される動画像予測符号化方法であって、動画像を構成する複数の画像を入力する入力ステップと、入力された前記画像を画面内予測又は画面間予測のいずれかの方法で符号化することで、ランダムアクセスとなる画像であるランダムアクセス画像、を含む圧縮画像データを生成するとともに、前記画像の表示順番情報に関するデータを符号化する符号化ステップと、生成された前記圧縮画像データを復号することで再生画像を復元する復元ステップと、復元された前記再生画像を、後続の画像を符号化するために用いられる参照画像として前記画像格納手段に格納する画像格納ステップと、を具備し、前記復元ステップにおいて前記動画像予測符号化装置は、表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像を符号化するときに用いられる参照画像として、符号化処理順又は表示順番情報において前記ランダムアクセス画像に先行する参照画像が含まれないような参照画像情報を含む前記圧縮画像データを復号する、ことを特徴とする。即ち、前記復元ステップにおいて前記動画像予測符号化装置は、表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像の圧縮画像データを符号化するときに用いられる参照画像として、符号化処理順および表示順番情報が前記ランダムアクセス画像の符号化処理順および表示順番情報より大きい又は同じである参照画像のみを含むような参照画像情報を含む前記圧縮画像データを復号する。   In addition, the video predictive encoding method according to the present invention is a video that is executed by a video predictive encoding device that includes an image storage means for storing a reference image used for encoding a subsequent image. Random access by a predictive encoding method in which a plurality of images constituting a moving image are input, and the input image is encoded by either intra prediction or inter prediction. A compressed image data including a random access image that is an image to be reproduced, an encoding step for encoding data relating to display order information of the image, and a reproduced image by decoding the generated compressed image data A restoration step for restoring the image, and the restored reproduction image is stored in the image storage means as a reference image used for encoding a subsequent image. An image storage step, and in the restoration step, the moving image predictive encoding device uses a code as a reference image used when encoding an image whose display order information is larger than the display order information of a random access image. The compressed image data including reference image information that does not include a reference image preceding the random access image in the conversion processing order or display order information is decoded. That is, in the restoration step, the moving image predictive encoding device uses the encoding processing order as a reference image used when encoding compressed image data of an image whose display order information is larger than the display order information of a random access image. And the compressed image data including the reference image information including only the reference image whose display order information is larger than or the same as the encoding process order and the display order information of the random access image.

また、本発明に係る動画像予測復号方法は、後続の画像を復号するために用いられる参照画像を格納するための画像格納手段を備える動画像予測復号装置、により実行される動画像予測復号方法であって、動画像を構成する複数の画像を画面内予測又は画面間予測のいずれかの方法で符号化することで得られた、ランダムアクセスとなる画像であるランダムアクセス画像を含む圧縮画像データ、及び、前記画像の表示順番情報に関するデータを符号化することで得られた表示順番符号化データを入力する入力ステップと、前記圧縮画像データを復号することで再生画像を復元するとともに、前記表示順番符号化データを復号することで表示順番情報を復元する復元ステップと、復元された前記再生画像を、後続の画像を復号するために用いられる参照画像として前記画像格納手段に格納する画像格納ステップと、を具備し、前記復元ステップにおいて前記動画像予測復号装置は、表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像の圧縮画像データを復号するときに用いられる参照画像として、復号処理順又は表示順番情報において前記ランダムアクセス画像に先行する参照画像が含まれないような参照画像情報を含む前記圧縮画像データを復号する、ことを特徴とする。即ち、前記復元ステップにおいて前記動画像予測復号装置は、表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像の圧縮画像データを復号するときに用いられる参照画像として、復号処理順および表示順番情報が前記ランダムアクセス画像の復号処理順および表示順番情報より大きい又は同じである参照画像のみを含むような参照画像情報を含む前記圧縮画像データを復号する。   In addition, the moving picture predictive decoding method according to the present invention is a moving picture predictive decoding method executed by a moving picture predictive decoding apparatus including an image storage means for storing a reference image used for decoding subsequent images. The compressed image data including a random access image, which is a random access image, obtained by encoding a plurality of images constituting a moving image by a method of intra prediction or inter prediction. And an input step of inputting display order encoded data obtained by encoding the data related to the display order information of the image, and reconstructing the reproduced image by decoding the compressed image data, and the display A restoration step for restoring display order information by decoding the order encoded data and the restored reproduced image are used for decoding subsequent images. An image storage step of storing in the image storage means as a reference image, and in the restoration step, the moving picture predictive decoding device is a compressed image of an image whose display order information is larger than the display order information of a random access image. Decoding the compressed image data including reference image information that does not include the reference image preceding the random access image in the decoding processing order or display order information as a reference image used when decoding data; Features. That is, in the restoration step, the moving image predictive decoding device uses the decoding processing order and the display order as reference images used when decoding compressed image data of an image whose display order information is larger than the display order information of a random access image. The compressed image data including reference image information including only reference images whose information is greater than or equal to the decoding processing order and display order information of the random access image is decoded.

また、本発明に係る動画像予測符号化プログラムは、コンピュータを、動画像を構成する複数の画像を入力する入力手段と、入力された前記画像を画面内予測又は画面間予測のいずれかの方法で符号化することで、ランダムアクセスとなる画像であるランダムアクセス画像、を含む圧縮画像データを生成するとともに、前記画像の表示順番情報に関するデータを符号化する符号化手段と、生成された前記圧縮画像データを復号することで再生画像を復元する復元手段と、復元された前記再生画像を、後続の画像を符号化するために用いられる参照画像として格納する画像格納手段、として動作させ、前記復元手段は、表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像を符号化するときに用いられる参照画像として、符号化処理順又は表示順番情報において前記ランダムアクセス画像に先行する参照画像が含まれないような参照画像情報を含む前記圧縮画像データを復号する、ことを特徴とする。即ち、前記復元手段は、表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像の圧縮画像データを符号化するときに用いられる参照画像として、符号化処理順および表示順番情報が前記ランダムアクセス画像の符号化処理順および表示順番情報より大きい又は同じである参照画像のみを含むような参照画像情報を含む前記圧縮画像データを復号する。   The moving image predictive encoding program according to the present invention includes a computer, an input means for inputting a plurality of images constituting a moving image, and a method for either intra prediction or inter prediction of the input image. And encoding means for encoding the data related to the display order information of the image, and generating the compressed image data including a random access image that is an image that becomes a random access, and the generated compression The restoration means that restores the reproduced image by decoding the image data, and the image storage means that stores the restored reproduction image as a reference image used to encode the subsequent image, and the restoration As a reference image used when encoding an image whose display order information is larger than the display order information of the random access image, Decoding the compressed image data including the reference image information that does not contain a reference image preceding the random access image in the processing order or display order information, characterized in that. In other words, the restoration means uses the encoding process order and display order information as the reference image used when encoding compressed image data of an image whose display order information is larger than the display order information of the random access image. The compressed image data including the reference image information including only the reference image larger than or the same as the image encoding processing order and the display order information is decoded.

また、本発明に係る動画像予測復号プログラムは、コンピュータを、動画像を構成する複数の画像を画面内予測又は画面間予測のいずれかの方法で符号化することで得られた、ランダムアクセスとなる画像であるランダムアクセス画像を含む圧縮画像データ、及び、前記画像の表示順番情報に関するデータを符号化することで得られた表示順番符号化データを入力する入力手段と、前記圧縮画像データを復号することで再生画像を復元するとともに、前記表示順番符号化データを復号することで表示順番情報を復元する復元手段と、復元された前記再生画像を、後続の画像を復号するために用いられる参照画像として格納する画像格納手段、として動作させ、前記復元手段は、表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像の圧縮画像データを復号するときに用いられる参照画像として、復号処理順又は表示順番情報において前記ランダムアクセス画像に先行する参照画像が含まれないような参照画像情報を含む前記圧縮画像データを復号する、ことを特徴とする。即ち、前記復元手段は、表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像の圧縮画像データを復号するときに用いられる参照画像として、復号処理順および表示順番情報が前記ランダムアクセス画像の復号処理順および表示順番情報より大きい又は同じである参照画像のみを含むような参照画像情報を含む前記圧縮画像データを復号する。   In addition, the moving picture predictive decoding program according to the present invention includes a random access obtained by encoding a plurality of images constituting a moving picture by a method of intra prediction or inter prediction. Input means for inputting compressed image data including a random access image, which is an image, and display order encoded data obtained by encoding data relating to display order information of the image; and decoding the compressed image data And a restoration means for restoring the display order information by decoding the display order encoded data and a reference used for decoding the restored picture and the subsequent playback picture. Operating as image storage means for storing as an image, wherein the restoration means has display order information larger than display order information of a random access image. As the reference image used when decoding the compressed image data of the image, the compressed image data including the reference image information that does not include the reference image preceding the random access image in the decoding processing order or display order information is decoded. It is characterized by. That is, the restoration means uses a decoding process order and display order information of the random access image as a reference image used when decoding compressed image data of an image whose display order information is larger than the display order information of the random access image. The compressed image data including the reference image information including only the reference image larger than or the same as the decoding processing order and the display order information is decoded.

上記目的を達成するために、本発明に係る動画像予測符号化装置は、動画像を構成する複数の画像を入力する入力手段と、入力された前記画像を画面内予測又は画面間予測のいずれかの方法で符号化することで、ランダムアクセスとなる画像であるランダムアクセス画像、を含む圧縮画像データを生成するとともに、前記画像の表示順番情報に関するデータを符号化する符号化手段と、生成された前記圧縮画像データを復号することで再生画像を復元する復元手段と、復元された前記再生画像を、後続の画像を符号化するために用いられる参照画像として格納する画像格納手段と、前記画像格納手段を制御するメモリ管理手段と、を具備し、前記メモリ管理手段は、前記ランダムアクセス画像を生成する符号化処理が完了した後、最初に、表示順番情報が前記ランダムアクセス画像の表示順番情報より大きい画像を符号化する直前又は直後に、前記画像格納手段に格納された参照画像のうち、前記ランダムアクセス画像を除く参照画像について不要と設定することで、前記画像格納手段をリフレッシュする、ことを特徴とする。   In order to achieve the above object, a moving image predictive encoding apparatus according to the present invention includes an input unit that inputs a plurality of images constituting a moving image, and the input image is either intra prediction or inter prediction. By encoding using this method, compressed image data including a random access image that is a random access image is generated, and encoding means for encoding data related to the display order information of the image is generated. A restoring means for restoring a reproduced image by decoding the compressed image data, an image storage means for storing the restored reproduced image as a reference image used for encoding a subsequent image, and the image Memory management means for controlling the storage means, the memory management means first after the encoding process to generate the random access image is completed, Immediately before or immediately after encoding an image whose order information is larger than the display order information of the random access image, out of the reference images stored in the image storage means, the reference image excluding the random access image is set as unnecessary. The image storage means is refreshed.

上記の符号化手段は、表示順番情報が前記ランダムアクセス画像の表示順番情報より大きく且つ前記ランダムアクセス画像を生成する符号化処理の完了後に最初に符号化対象となる画像、を含む1つ以上の符号化対象画像の表示順番情報に関するデータとして、前記符号化対象画像の表示順番情報と前記ランダムアクセス画像の表示順番情報との差分値を符号化することが望ましい。   The encoding means includes one or more images including display order information larger than display order information of the random access image and an image to be encoded first after completion of the encoding process for generating the random access image. It is desirable to encode a difference value between the display order information of the encoding target image and the display order information of the random access image as data related to the display order information of the encoding target image.

また、上記の符号化手段は、ランダムアクセス画像の次に符号化対象となる画像から、表示順番情報が前記ランダムアクセス画像の表示順番情報より大きく且つ前記ランダムアクセス画像を生成する符号化処理の完了後に最初に符号化対象となる画像まで、の各画像については、各画像の表示順番情報に関するデータとして、当該各画像の表示順番情報と前記ランダムアクセス画像の表示順番情報との差分値を符号化することが望ましい。   In addition, the above encoding means completes the encoding process in which the display order information is larger than the display order information of the random access image and the random access image is generated from the image to be encoded next to the random access image. For each image up to the first image to be encoded later, the difference value between the display order information of each image and the display order information of the random access image is encoded as data related to the display order information of each image. It is desirable to do.

本発明に係る動画像予測復号装置は、動画像を構成する複数の画像を画面内予測又は画面間予測のいずれかの方法で符号化することで得られた、ランダムアクセスとなる画像であるランダムアクセス画像を含む圧縮画像データ、及び、前記画像の表示順番情報に関するデータを符号化することで得られた表示順番符号化データを入力する入力手段と、前記圧縮画像データを復号することで再生画像を復元するとともに、前記表示順番符号化データを復号することで表示順番情報を復元する復元手段と、復元された前記再生画像を、後続の画像を復号するために用いられる参照画像として格納する画像格納手段と、前記画像格納手段を制御するメモリ管理手段と、を具備し、前記メモリ管理手段は、前記ランダムアクセス画像を復号する復号処理が完了した後、最初に、表示順番情報が前記ランダムアクセス画像の表示順番情報より大きい画像を復号する直前又は直後に、前記画像格納手段に格納された参照画像のうち、前記ランダムアクセス画像を除く参照画像について不要と設定することで、前記画像格納手段をリフレッシュすることを特徴とする。   The moving picture predictive decoding apparatus according to the present invention is a random access image obtained by encoding a plurality of pictures constituting a moving picture by a method of intra prediction or inter prediction. Input means for inputting compressed image data including an access image and display order encoded data obtained by encoding data related to display order information of the image, and a reproduced image by decoding the compressed image data And a restoration means for restoring display order information by decoding the display order encoded data, and an image for storing the restored reproduced image as a reference image used for decoding subsequent images Storage means, and memory management means for controlling the image storage means, wherein the memory management means decodes the random access image. First, immediately after decoding an image whose display order information is larger than the display order information of the random access image, the random access image is excluded from the reference images stored in the image storage means. The image storage means is refreshed by setting the reference image as unnecessary.

上記の復元手段は、表示順番情報が前記ランダムアクセス画像の表示順番情報より大きく且つ前記ランダムアクセス画像を復号する復号処理の完了後に最初に復号対象となる画像、を含む1つ以上の復号対象画像の表示順番情報については、当該復号対象画像の表示順番符号化データを復号して得られた、当該復号対象画像の表示順番情報と前記ランダムアクセス画像の表示順番情報との差分値と、前記ランダムアクセス画像の表示順番情報とを、加算することで、当該復号対象画像の表示順番情報を復元することが望ましい。   The restoration means includes at least one decoding target image including display order information larger than the display order information of the random access image and an image to be decoded first after completion of the decoding process for decoding the random access image. Display order information, obtained by decoding the display order encoded data of the decoding target image, the difference value between the display order information of the decoding target image and the display order information of the random access image, and the random order It is desirable to restore the display order information of the decoding target image by adding the display order information of the access image.

また、上記の復元手段は、ランダムアクセス画像の次に復号対象となる画像から、表示順番情報が前記ランダムアクセス画像の表示順番情報より大きく且つ前記ランダムアクセス画像を生成する復号処理の完了後に最初に復号対象となる画像まで、の各画像についての表示順番情報については、当該各画像の表示順番符号化データを復号して得られた、当該各画像の表示順番情報と前記ランダムアクセス画像の表示順番情報との差分値と、前記ランダムアクセス画像の表示順番情報とを、加算することで、当該各画像の表示順番情報を復元することが望ましい。   In addition, the restoration unit may be configured to first display from the image to be decoded next to the random access image, after the completion of the decoding process in which the display order information is larger than the display order information of the random access image and generate the random access image. For the display order information for each image up to the image to be decoded, the display order information for each image and the display order for the random access image obtained by decoding the display order encoded data for each image. It is desirable to restore the display order information of each image by adding the difference value with the information and the display order information of the random access image.

本発明に係る動画像予測符号化方法は、後続の画像を符号化するために用いられる参照画像を格納するための画像格納手段を備える動画像予測符号化装置、により実行される動画像予測符号化方法であって、動画像を構成する複数の画像を入力する入力ステップと、入力された前記画像を画面内予測又は画面間予測のいずれかの方法で符号化することで、ランダムアクセスとなる画像であるランダムアクセス画像、を含む圧縮画像データを生成するとともに、前記画像の表示順番情報に関するデータを符号化する符号化ステップと、生成された前記圧縮画像データを復号することで再生画像を復元する復元ステップと、復元された前記再生画像を、後続の画像を符号化するために用いられる参照画像として前記画像格納手段に格納する画像格納ステップと、前記画像格納手段を制御するメモリ管理ステップと、を具備し、前記メモリ管理ステップにおいて前記動画像予測符号化装置は、前記ランダムアクセス画像を生成する符号化処理が完了した後、最初に、表示順番情報が前記ランダムアクセス画像の表示順番情報より大きい画像を符号化する直前又は直後に、前記画像格納手段に格納された参照画像のうち、前記ランダムアクセス画像を除く参照画像について不要と設定することで、前記画像格納手段をリフレッシュすることを特徴とする。   A moving picture predictive coding method according to the present invention includes a moving picture predictive coding apparatus provided with a picture storing means for storing a reference picture used for coding a subsequent picture. Random access is achieved by an input step of inputting a plurality of images constituting a moving image and encoding the input image by either of intra-screen prediction or inter-screen prediction. A compressed image data including a random access image that is an image is generated, an encoding step for encoding data related to display order information of the image, and a reproduced image is restored by decoding the generated compressed image data A restoration step, and an image case in which the restored reproduction image is stored in the image storage means as a reference image used for encoding a subsequent image. And a memory management step for controlling the image storage means. In the memory management step, the moving image predictive encoding device firstly executes the encoding process for generating the random access image after the completion of the encoding process. Immediately before or immediately after encoding an image whose display order information is larger than the display order information of the random access image, among the reference images stored in the image storage means, reference images other than the random access image are set as unnecessary. Thus, the image storage means is refreshed.

上記の符号化ステップにおいて前記動画像予測符号化装置は、表示順番情報が前記ランダムアクセス画像の表示順番情報より大きく且つ前記ランダムアクセス画像を生成する符号化処理の完了後に最初に符号化対象となる画像、を含む1つ以上の符号化対象画像の表示順番情報に関するデータとして、前記符号化対象画像の表示順番情報と前記ランダムアクセス画像の表示順番情報との差分値を符号化することが望ましい。   In the encoding step, the moving image predictive encoding device is the first encoding target after the encoding process for generating the random access image is completed and the display order information is larger than the display order information of the random access image. It is desirable to encode a difference value between the display order information of the encoding target image and the display order information of the random access image as data relating to display order information of one or more encoding target images including an image.

また、上記の符号化ステップにおいて前記動画像予測符号化装置は、ランダムアクセス画像の次に符号化対象となる画像から、表示順番情報が前記ランダムアクセス画像の表示順番情報より大きく且つ前記ランダムアクセス画像を生成する符号化処理の完了後に最初に符号化対象となる画像まで、の各画像については、各画像の表示順番情報に関するデータとして、当該各画像の表示順番情報と前記ランダムアクセス画像の表示順番情報との差分値を符号化することが望ましい。   Further, in the encoding step, the video predictive encoding device has a display order information larger than a display order information of the random access image and an image to be encoded next to the random access image and the random access image. For each image up to the first image to be encoded after completion of the encoding process for generating the image, the display order information of each image and the display order of the random access image are used as data related to the display order information of each image. It is desirable to encode the difference value with the information.

本発明に係る動画像予測復号方法は、後続の画像を復号するために用いられる参照画像を格納するための画像格納手段を備える動画像予測復号装置、により実行される動画像予測復号方法であって、動画像を構成する複数の画像を画面内予測又は画面間予測のいずれかの方法で符号化することで得られた、ランダムアクセスとなる画像であるランダムアクセス画像を含む圧縮画像データ、及び、前記画像の表示順番情報に関するデータを符号化することで得られた表示順番符号化データを入力する入力ステップと、前記圧縮画像データを復号することで再生画像を復元するとともに、前記表示順番符号化データを復号することで表示順番情報を復元する復元ステップと、復元された前記再生画像を、後続の画像を復号するために用いられる参照画像として前記画像格納手段に格納する画像格納ステップと、前記画像格納手段を制御するメモリ管理ステップと、を具備し、前記メモリ管理ステップにおいて前記動画像予測復号装置は、前記ランダムアクセス画像を復号する復号処理が完了した後、最初に、表示順番情報が前記ランダムアクセス画像の表示順番情報より大きい画像を復号する直前又は直後に、前記画像格納手段に格納された参照画像のうち、前記ランダムアクセス画像を除く参照画像について不要と設定することで、前記画像格納手段をリフレッシュすることを特徴とする。   A moving picture predictive decoding method according to the present invention is a moving picture predictive decoding method executed by a moving picture predictive decoding apparatus including an image storage unit for storing a reference image used for decoding a subsequent image. Compressed image data including a random access image which is a random access image obtained by encoding a plurality of images constituting a moving image by either intra prediction or inter prediction method, and An input step of inputting display order encoded data obtained by encoding data relating to the display order information of the image, and a reproduction image is restored by decoding the compressed image data, and the display order code A restoration step for restoring display order information by decoding the digitized data, and the restored reproduced image is used for decoding subsequent images. An image storage step for storing the image in the image storage unit; and a memory management step for controlling the image storage unit. In the memory management step, the video predictive decoding device decodes the random access image. After the decoding process is completed, first, the random access image among the reference images stored in the image storage means immediately before or immediately after decoding an image whose display order information is larger than the display order information of the random access image. The image storage means is refreshed by setting the reference images other than the reference image to be unnecessary.

上記の復元ステップにおいて前記動画像予測復号装置は、表示順番情報が前記ランダムアクセス画像の表示順番情報より大きく且つ前記ランダムアクセス画像を復号する復号処理の完了後に最初に復号対象となる画像、を含む1つ以上の復号対象画像の表示順番情報については、当該復号対象画像の表示順番符号化データを復号して得られた、当該復号対象画像の表示順番情報と前記ランダムアクセス画像の表示順番情報との差分値と、前記ランダムアクセス画像の表示順番情報とを、加算することで、当該復号対象画像の表示順番情報を復元することが望ましい。   In the restoration step, the video predictive decoding apparatus includes an image that is first displayed after decoding processing is completed, in which display order information is larger than display order information of the random access image and the random access image is decoded. For the display order information of one or more decoding target images, the display order information of the decoding target image and the display order information of the random access image obtained by decoding the display order encoded data of the decoding target image, It is desirable to restore the display order information of the decoding target image by adding the difference value of the image and the display order information of the random access image.

また、上記の復元ステップにおいて前記動画像予測復号装置は、ランダムアクセス画像の次に復号対象となる画像から、表示順番情報が前記ランダムアクセス画像の表示順番情報より大きく且つ前記ランダムアクセス画像を生成する復号処理の完了後に最初に復号対象となる画像まで、の各画像についての表示順番情報については、当該各画像の表示順番符号化データを復号して得られた、当該各画像の表示順番情報と前記ランダムアクセス画像の表示順番情報との差分値と、前記ランダムアクセス画像の表示順番情報とを、加算することで、当該各画像の表示順番情報を復元することが望ましい。   In the restoration step, the video predictive decoding apparatus generates the random access image having display order information larger than the display order information of the random access image, from an image to be decoded next to the random access image. For the display order information for each image up to the first image to be decoded after the completion of the decoding process, the display order information for each image obtained by decoding the display order encoded data for each image, and It is desirable to restore the display order information of each image by adding the difference value with the display order information of the random access image and the display order information of the random access image.

本発明に係る動画像予測符号化プログラムは、コンピュータを、動画像を構成する複数の画像を入力する入力手段と、入力された前記画像を画面内予測又は画面間予測のいずれかの方法で符号化することで、ランダムアクセスとなる画像であるランダムアクセス画像、を含む圧縮画像データを生成するとともに、前記画像の表示順番情報に関するデータを符号化する符号化手段と、生成された前記圧縮画像データを復号することで再生画像を復元する復元手段と、復元された前記再生画像を、後続の画像を符号化するために用いられる参照画像として格納する画像格納手段と、前記画像格納手段を制御するメモリ管理手段、として動作させ、前記メモリ管理手段は、前記ランダムアクセス画像を生成する符号化処理が完了した後、最初に、表示順番情報が前記ランダムアクセス画像の表示順番情報より大きい画像を符号化する直前又は直後に、前記画像格納手段に格納された参照画像のうち、前記ランダムアクセス画像を除く参照画像について不要と設定することで、前記画像格納手段をリフレッシュすることを特徴とする。   The moving image predictive encoding program according to the present invention encodes a computer by an input means for inputting a plurality of images constituting a moving image, and the input image by any one of intra prediction or inter prediction. Generating compressed image data including a random access image that is an image to be random access, encoding means for encoding data relating to display order information of the image, and the generated compressed image data A restoration unit that restores a reproduced image by decoding the image, an image storage unit that stores the restored reproduction image as a reference image used to encode a subsequent image, and controls the image storage unit The memory management unit operates as a memory management unit, and after the encoding process for generating the random access image is completed, Immediately before or immediately after encoding an image whose order information is larger than the display order information of the random access image, out of the reference images stored in the image storage means, the reference image excluding the random access image is set as unnecessary. The image storage means is refreshed.

本発明に係る動画像予測復号プログラムは、コンピュータを、動画像を構成する複数の画像を画面内予測又は画面間予測のいずれかの方法で符号化することで得られた、ランダムアクセスとなる画像であるランダムアクセス画像を含む圧縮画像データ、及び、前記画像の表示順番情報に関するデータを符号化することで得られた表示順番符号化データを入力する入力手段と、前記圧縮画像データを復号することで再生画像を復元するとともに、前記表示順番符号化データを復号することで表示順番情報を復元する復元手段と、復元された前記再生画像を、後続の画像を復号するために用いられる参照画像として格納する画像格納手段と、前記画像格納手段を制御するメモリ管理手段、として動作させ、前記メモリ管理手段は、前記ランダムアクセス画像を復号する復号処理が完了した後、最初に、表示順番情報が前記ランダムアクセス画像の表示順番情報より大きい画像を復号する直前又は直後に、前記画像格納手段に格納された参照画像のうち、前記ランダムアクセス画像を除く参照画像について不要と設定することで、前記画像格納手段をリフレッシュすることを特徴とする。   The moving image predictive decoding program according to the present invention is a random access image obtained by encoding a plurality of images constituting a moving image by a method of intra prediction or inter prediction. Input means for inputting compressed image data including a random access image and display order encoded data obtained by encoding data relating to display order information of the image, and decoding the compressed image data And a restoration means for restoring display order information by decoding the display order encoded data, and the restored playback picture as a reference picture used for decoding subsequent pictures. An image storage means for storing and a memory management means for controlling the image storage means are operated, and the memory management means After the decoding process for decoding the access image is completed, first of all, the reference image stored in the image storage means immediately before or immediately after decoding the image whose display order information is larger than the display order information of the random access image The image storage means is refreshed by setting the reference image excluding the random access image to be unnecessary.

以上のような本発明により、ランダムアクセスの箇所となる画像の前後にある画像を効率よく圧縮符号化すると同時に、従来技術の欠点に係る不都合を解消する。   The present invention as described above efficiently compresses and encodes images before and after an image that becomes a random access location, and at the same time, eliminates the disadvantages associated with the disadvantages of the prior art.

本発明では、動画像を構成する各画像又は圧縮符号化された画像データに付随される表示順番を示す情報(以下「表示順番情報」という(従来技術における表示時間、時間参照情報、テンポラルリファレンスなどに相当))を利用して、ランダムアクセスの箇所となる画面内予測画像(イントラフレーム)より後に行われるメモリ・リフレッシュのタイミングを設定することにより、表示順番においてランダムアクセス画像の前後にある複数の画像を効率よく圧縮符号化すると同時に、従来技術の欠点に係る不都合を以下のように解消することができる。   In the present invention, information indicating a display order attached to each image constituting a moving image or compression-encoded image data (hereinafter referred to as “display order information” (display time, time reference information, temporal reference, etc. in the prior art) By setting the timing of memory refresh that is performed after the predicted image (intra frame) in the screen, which is the location of random access, by using a plurality of random access images before and after the random access image At the same time that the image is efficiently compression-encoded, the disadvantages associated with the drawbacks of the prior art can be eliminated as follows.

即ち、表示順番情報は、各画像には必ず付随するものであるため、新たな情報(フラグ)を送る必要がなく、従来技術の欠点2は解消される。   That is, since the display order information is always attached to each image, it is not necessary to send new information (flag), and the disadvantage 2 of the prior art is solved.

また、動画像の編集(例えば一部の画像を捨てる、別の画像をつなぐ等)を行う場合でも、動画像を構成する各画像の表示順番情報は適切に設定されるため、誤動作を引き起こすことはなく、従来技術の欠点1は解消される。   In addition, even when editing a moving image (for example, discarding some images or connecting another image), the display order information of each image constituting the moving image is set appropriately, which may cause a malfunction. There is no disadvantage of the prior art.

さらに、本発明によるメモリ・リフレッシュのタイミングは、Pピクチャに限定されず、画像の符号化タイプ(Iピクチャ、Pピクチャ、Bピクチャ)に依存しないため、メモリのリフレッシュの要否にかかわらず符号化効率の最もよい符号化タイプで処理することができ、従来技術の欠点3は解消される。   Furthermore, the memory refresh timing according to the present invention is not limited to P pictures, and does not depend on the picture coding type (I picture, P picture, B picture), so coding is performed regardless of whether or not memory refresh is required. It is possible to process with the most efficient coding type, and the disadvantage 3 of the prior art is eliminated.

本発明の実施形態に係る動画像予測符号化装置の構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the moving image predictive coding apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る動画像予測復号装置の構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the moving image predictive decoding apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る動画像予測符号化・復号方法を示す流れ図である。It is a flowchart which shows the moving image predictive encoding / decoding method which concerns on embodiment of this invention. 本発明の実施形態に係る動画像予測符号化・復号方法を説明するための模式図である。It is a schematic diagram for demonstrating the moving image predictive encoding / decoding method which concerns on embodiment of this invention. 本発明の実施形態の変形例に係る動画像予測符号化・復号方法を示す流れ図である。It is a flowchart which shows the moving image predictive encoding / decoding method which concerns on the modification of embodiment of this invention. 本発明の実施形態の変形例に係る動画像予測符号化・復号方法を説明するための模式図である。It is a schematic diagram for demonstrating the moving image predictive encoding / decoding method which concerns on the modification of embodiment of this invention. 記録媒体に記録されたプログラムを実行するためのコンピュータのハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of the computer for performing the program recorded on the recording medium. 記録媒体に記憶されたプログラムを実行するためのコンピュータの概観図である。It is a general-view figure of the computer for performing the program memorize | stored in the recording medium. 動画像予測符号化プログラムの構成例を示すブロック図である。It is a block diagram which shows the structural example of a moving image predictive encoding program. 動画像予測復号プログラムの構成例を示すブロック図である。It is a block diagram which shows the structural example of a moving image prediction decoding program. 従来の動画像予測符号化・復号方法の予測構造を示す模式図である。It is a schematic diagram which shows the prediction structure of the conventional moving image predictive encoding / decoding method.

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

[動画像予測符号化装置について]
図1は本発明の実施形態に係る動画像予測符号化装置100の構成を示す機能ブロック図である。図1に示すように、動画像予測符号化装置100は、機能的な構成として、入力端子101、ブロック分割器102、予測信号生成器103、フレームメモリ104、減算器105、変換器106、量子化器107、逆量子化器108、逆変換器109、加算器110、エントロピー符号化器111、出力端子112、入力端子113、及びフレームメモリ管理器114を備える。各機能ブロックの動作は、後述する動画像予測符号化装置100の動作の中で説明する。
[About video predictive coding apparatus]
FIG. 1 is a functional block diagram showing a configuration of a video predictive coding apparatus 100 according to an embodiment of the present invention. As illustrated in FIG. 1, the moving image predictive encoding device 100 includes an input terminal 101, a block divider 102, a prediction signal generator 103, a frame memory 104, a subtractor 105, a converter 106, a quantum, as a functional configuration. And a demultiplexer 107, an inverse quantizer 108, an inverse transformer 109, an adder 110, an entropy encoder 111, an output terminal 112, an input terminal 113, and a frame memory manager 114. The operation of each functional block will be described in the operation of the moving picture predictive encoding device 100 described later.

以下、動画像予測符号化装置100の動作を述べる。符号化処理の対象となる複数枚の画像から成る動画像の信号は入力端子101に入力され、各画像はブロック分割器102により、複数の領域に分割される。本実施形態では、各画像は、8×8の画素から成る複数のブロックに分割されるが、これ以外のブロックの大きさ又はブロック形状に分割してもよい。次に、符号化処理の対象となるブロック(以下「対象ブロック」と呼ぶ)を対象として、後述の予測方法により予測信号を生成する。本実施形態では、予測方法として、画面間予測と画面内予測の2種類の予測方法が利用可能とされており、画面間予測では背景技術で述べた双方向画面間予測も利用可能とされている。以下、画面間予測と画面内予測の各々の基本動作を概説する。   Hereinafter, the operation of the video predictive coding apparatus 100 will be described. A moving image signal composed of a plurality of images to be encoded is input to an input terminal 101, and each image is divided into a plurality of regions by a block divider 102. In this embodiment, each image is divided into a plurality of blocks composed of 8 × 8 pixels, but may be divided into other block sizes or block shapes. Next, a prediction signal is generated by a prediction method to be described later for a block to be encoded (hereinafter referred to as “target block”). In the present embodiment, two types of prediction methods, inter-screen prediction and intra-screen prediction, can be used as the prediction method. In the inter-screen prediction, the bidirectional inter-screen prediction described in the background art can also be used. Yes. The basic operations of inter-screen prediction and intra-screen prediction are outlined below.

画面間予測では、過去に符号化された後に復元された再生画像を参照画像として用いて、この参照画像から、対象ブロックに対する誤差の最も小さい予測信号を与える動き情報(例えば動きベクトル)を求める。この処理は「動き検出」と呼ばれる。また、場合に応じて、対象ブロックを再分割し、再分割された小領域を対象として画面間予測方法を決定してもよい。この場合、各種の分割方法の中から、対象ブロック全体に対し最も効率のよい、小領域の分割方法及び各小領域の動き情報を決定する。本実施形態では、画面間予測は、予測信号生成器103により行われ、対象ブロックはラインL102経由で、参照画像はラインL104経由で、それぞれ予測信号生成器103に入力される。参照画像としては、過去に符号化され復元された複数の画像を参照画像として用いる。その詳細は従来の技術であるMPEG−2、MPEG−4、H.264のいずれかの方法と同じである。決定された小領域の分割方法情報及び各小領域の動き情報は、予測信号生成器103からラインL112経由でエントロピー符号化器111に送られ、エントロピー符号化器111により符号化された上で、その符号化データはラインL111経由で出力端子112から送出される。また、複数の参照画像の中で、予測信号がどの参照画像から取得するかに関する情報(リファレンスインデックス)も、予測信号生成器103からラインL112経由でエントロピー符号化器111に送られ、エントロピー符号化器111により符号化された上で、その符号化データはラインL111経由で出力端子112から送出される。なお、本実施形態では、一例として、4枚ないし5枚の再生画像がフレームメモリ104に格納され、参照画像として用いられる。予測信号生成器103は、小領域の分割方法、及び各小領域についての参照画像と動き情報に基づいて、フレームメモリ104から参照画像を取得し、参照画像及び動き情報から予測信号(画面間予測により得られた予測信号という意味で「画面間予測信号」という)を生成する。このように生成された画面間予測信号は、ラインL103経由で減算器105及び後述の処理に係る加算器110に送られる。   In inter-screen prediction, a reproduced image that has been encoded in the past is used as a reference image, and motion information (for example, a motion vector) that gives a prediction signal with the smallest error with respect to the target block is obtained from this reference image. This process is called “motion detection”. Further, according to circumstances, the target block may be subdivided, and the inter-screen prediction method may be determined for the subdivided small area. In this case, among the various division methods, the division method of the small area and the motion information of each small area that are most efficient for the entire target block are determined. In the present embodiment, inter-screen prediction is performed by the prediction signal generator 103, and the target block is input to the prediction signal generator 103 via the line L102, and the reference image is input to the prediction signal generator 103 via the line L104. As the reference image, a plurality of images encoded and restored in the past are used as the reference image. The details thereof are MPEG-2, MPEG-4, H.264, which are conventional techniques. It is the same as any of the H.264 methods. The determined subregion division method information and the motion information of each subregion are sent from the prediction signal generator 103 to the entropy encoder 111 via the line L112 and encoded by the entropy encoder 111. The encoded data is sent from the output terminal 112 via the line L111. In addition, information (reference index) on which reference image a prediction signal is acquired from among a plurality of reference images is also sent from the prediction signal generator 103 to the entropy encoder 111 via the line L112, and is subjected to entropy encoding. The encoded data is sent from the output terminal 112 via the line L111. In the present embodiment, as an example, four to five reproduced images are stored in the frame memory 104 and used as reference images. The prediction signal generator 103 acquires a reference image from the frame memory 104 based on the small region dividing method, the reference image and motion information for each small region, and generates a prediction signal (inter-screen prediction) from the reference image and the motion information. Is generated in the sense of the prediction signal obtained by the above. The inter-screen prediction signal generated in this way is sent to the subtracter 105 and the adder 110 related to the processing described later via the line L103.

一方、画面内予測では、対象ブロックに空間的に隣接する既再生の画素値を用いて画面内予測信号を生成する。具体的には、予測信号生成器103は、同じ画面内にある既再生の画素信号をフレームメモリ104から取得し、既再生の画素信号を外挿することによって予測信号(画面内予測により得られた予測信号という意味で「画面内予測信号」という)を生成する。生成された画面内予測信号は、予測信号生成器103からラインL103経由で減算器105に送られる。予測信号生成器103における画面内予測信号の生成方法は、従来の技術であるH.264の方法と同じである。なお、画面内予測における外挿の方法に関する情報は、予測信号生成器103からラインL112経由でエントロピー符号化器111に送られ、エントロピー符号化器111により符号化された上で、符号化データは出力端子112から送出される。   On the other hand, in the intra prediction, an intra prediction signal is generated using already reproduced pixel values spatially adjacent to the target block. Specifically, the prediction signal generator 103 obtains a previously reproduced pixel signal in the same screen from the frame memory 104 and extrapolates the already reproduced pixel signal to obtain a prediction signal (obtained by intra prediction). In the meaning of the predicted signal). The generated intra-screen prediction signal is sent from the prediction signal generator 103 to the subtractor 105 via the line L103. A method for generating an intra-screen prediction signal in the prediction signal generator 103 is the conventional technique of H.264. This is the same as the H.264 method. Information relating to the extrapolation method in the intra prediction is sent from the prediction signal generator 103 to the entropy encoder 111 via the line L112, encoded by the entropy encoder 111, and then encoded data is It is sent out from the output terminal 112.

以上、画面間予測と画面内予測の各々の基本動作を概説した。実際には、対象ブロックごとに、上述のように求められた画面間予測信号と画面内予測信号のうち、誤差の最も小さいものが選択され、予測信号生成器103からラインL103経由で減算器105に送られる。   The basic operations of inter-screen prediction and intra-screen prediction have been outlined above. Actually, for each target block, the one with the smallest error is selected from the inter-screen prediction signal and the intra-screen prediction signal obtained as described above, and the subtractor 105 is selected from the prediction signal generator 103 via the line L103. Sent to.

ところで、符号化される一枚目の画像については、それより前に画像がないため、当該一枚目の画像内の全ての対象ブロックは画面内予測で処理される。また、テレビのチャンネルの切り替えに備えて、ランダムアクセスポイントとして、ある画像内の全ての対象ブロックを画面内予測で定期的に処理する。このような画像はイントラフレームとよび、H.264ではIDRピクチャと呼ぶ。   By the way, since there is no image before the first image to be encoded, all target blocks in the first image are processed by intra prediction. Further, in preparation for switching of TV channels, all target blocks in a certain image are periodically processed by intra prediction as random access points. Such an image is called an intra frame. In H.264, this is called an IDR picture.

減算器105は、ラインL102経由で受け取った対象ブロックの信号から、ラインL103経由で受け取った予測信号を引き算することで、残差信号を生成する。この残差信号は変換器106にて離散コサイン変換され、その各変換係数は量子化器107にて量子化される。最後に、量子化された変換係数はエントロピー符号化器111により符号化され、得られた符号化データは、予測方法に関する情報とともにラインL111経由で出力端子112より送出される。   The subtractor 105 generates a residual signal by subtracting the prediction signal received via the line L103 from the signal of the target block received via the line L102. This residual signal is subjected to discrete cosine transform by a transformer 106, and each transform coefficient is quantized by a quantizer 107. Finally, the quantized transform coefficient is encoded by the entropy encoder 111, and the obtained encoded data is sent from the output terminal 112 via the line L111 together with information on the prediction method.

一方、後続の対象ブロックに対して画面内予測もしくは画面間予測を行うために、上記量子化された変換係数(対象ブロックの符号化データ)は、逆量子化器108にて逆量子化された後に逆変換器109にて逆離散コサイン変換され、これにより残差信号が復元される。そして、加算器110により、復元された残差信号とラインL103から送られた予測信号とが加算され、これにより対象ブロックの信号が再生され、得られた再生信号はフレームメモリ104に格納される。なお、本実施形態では変換器106と逆変換器109を用いているが、これらに代わる他の変換処理を用いてもよい。また、場合によっては、変換器106と逆変換器109がなくてもよい。   On the other hand, in order to perform intra prediction or inter prediction for the subsequent target block, the quantized transform coefficient (the encoded data of the target block) is dequantized by the inverse quantizer 108. Later, the inverse transformer 109 performs inverse discrete cosine transform, thereby restoring the residual signal. Then, the adder 110 adds the restored residual signal and the prediction signal sent from the line L103, thereby reproducing the signal of the target block, and the obtained reproduction signal is stored in the frame memory 104. . In this embodiment, the converter 106 and the inverse converter 109 are used. However, other conversion processes instead of these may be used. In some cases, the converter 106 and the inverse converter 109 may not be provided.

ところで、フレームメモリ104は有限なものであり、すべての再生画像を格納することは実際には不可能である。そのため、後続の画像の符号化に用いられる再生画像のみがフレームメモリ104に格納される。このフレームメモリ104を制御するのがフレームメモリ管理器114である。フレームメモリ管理器114は、フレームメモリ104に格納されているN枚(例えばN=4)の再生画像の中から、最も古い再生画像を消去することで、参照画像として用いられる直近の再生画像をフレームメモリ104に格納できるように制御する。実際にフレームメモリ管理器114には、入力端子113より各画像の表示順番情報及び画像を符号化するタイプ情報(画面内予測符号化、画面間予測符号化、双方向予測符号化)が入力され、これらの情報に基づいてフレームメモリ管理器114が動作する。このとき、各画像の表示順番情報は、フレームメモリ管理器114からラインL114経由でエントロピー符号化器111に送られ、エントロピー符号化器111により符号化され、この符号化された表示順番情報は、符号化された画像データとともに、ラインL111経由で出力端子112より送出される。なお、表示順番情報は、各画像に付随するものであり、画像の順番を示す情報や、画像を表示する時刻を示す情報(例えば画像の表示参照時間(テンポラルリファレンス))でもいい。本実施形態では、例えば、表示順番情報をそのまま二値符号化により符号化する。また、フレームメモリ管理器114による制御方法については後述する。   Incidentally, the frame memory 104 is finite, and it is actually impossible to store all the reproduced images. Therefore, only the reproduced image used for encoding the subsequent image is stored in the frame memory 104. The frame memory manager 114 controls the frame memory 104. The frame memory manager 114 deletes the oldest reproduced image from N (for example, N = 4) reproduced images stored in the frame memory 104, thereby obtaining the latest reproduced image used as the reference image. The frame memory 104 is controlled so that it can be stored. Actually, display order information of each image and type information for encoding the image (intra-screen predictive coding, inter-screen predictive coding, bi-directional predictive coding) are input to the frame memory manager 114 from the input terminal 113. Based on these pieces of information, the frame memory manager 114 operates. At this time, the display order information of each image is sent from the frame memory manager 114 to the entropy encoder 111 via the line L114, encoded by the entropy encoder 111, and the encoded display order information is Along with the encoded image data, it is sent out from the output terminal 112 via the line L111. The display order information is attached to each image, and may be information indicating the order of the images or information indicating the time when the images are displayed (for example, display reference time (temporal reference) of the images). In the present embodiment, for example, the display order information is directly encoded by binary encoding. A control method by the frame memory manager 114 will be described later.

[動画像予測復号装置について]
次に、本発明に係る動画像予測復号装置について説明する。図2は本発明の実施形態に係る動画像予測復号装置200の構成を示す機能ブロック図である。図2に示すように、動画像予測復号装置200は、機能的な構成として、入力端子201、データ解析器202、逆量子化器203、逆変換器204、加算器205、予測信号生成器208、フレームメモリ207、出力端子206、及びフレームメモリ管理器209を備える。各機能ブロックの動作は、後述する動画像予測復号装置200の動作の中で説明する。なお、復号に係る手段としては、逆量子化器203及び逆変換器204に限定されるものではなく、これら以外のものを用いてもよい。また、復号に係る手段は、逆変換器204を無くし逆量子化器203のみで構成してもよい。
[About video predictive decoding apparatus]
Next, the video predictive decoding apparatus according to the present invention will be described. FIG. 2 is a functional block diagram showing the configuration of the video predictive decoding apparatus 200 according to the embodiment of the present invention. As shown in FIG. 2, the moving picture predictive decoding apparatus 200 has an input terminal 201, a data analyzer 202, an inverse quantizer 203, an inverse transformer 204, an adder 205, and a prediction signal generator 208 as functional configurations. A frame memory 207, an output terminal 206, and a frame memory manager 209. The operation of each functional block will be described in the operation of the moving picture predictive decoding apparatus 200 described later. Note that the decoding means is not limited to the inverse quantizer 203 and the inverse transformer 204, and other means may be used. Further, the means for decoding may be configured only by the inverse quantizer 203 without the inverse transformer 204.

以下、動画像予測復号装置200の動作を述べる。上述した符号化方法で得られた圧縮データは入力端子201から入力される。この圧縮データには、対象ブロックの残差信号と、予測信号の生成に関する情報と、量子化パラメータと、画像の表示順番情報と、画像の符号化タイプに関する情報とが含まれている。このうち、予測信号の生成に関する情報としては、例えば画面間予測の場合は、ブロック分割に関する情報(小領域の分割方法情報(例えばブロックのサイズ等))、各小領域の動き情報、及びリファレンスインデックスが含まれ、画面内予測の場合は外挿の方法に関する情報が含まれている。   Hereinafter, the operation of the moving picture predictive decoding apparatus 200 will be described. The compressed data obtained by the encoding method described above is input from the input terminal 201. This compressed data includes the residual signal of the target block, information related to the generation of the prediction signal, quantization parameters, image display order information, and information related to the image encoding type. Among these, information relating to the generation of the prediction signal includes, for example, in the case of inter-screen prediction, information relating to block division (subregion division method information (eg, block size)), motion information of each small region, and reference index In the case of intra prediction, information regarding the extrapolation method is included.

データ解析器202は、入力された圧縮データから、対象ブロックの残差信号、予測信号の生成に関連する情報、量子化パラメータ、画像の表示順番情報、及び画像の符号化タイプに関する情報を抽出する。これらのうち、対象ブロックの残差信号及び量子化パラメータは、ラインL202経由で逆量子化器203に送られ、逆量子化器203は量子化パラメータをもとに対象ブロックの残差信号を逆量子化し、さらに、逆変換器204は逆量子化の結果を逆離散コサイン変換する。このようにして復元された残差信号はラインL204経由で加算器205に送られる。   The data analyzer 202 extracts, from the input compressed data, information on the residual signal of the target block, information related to generation of a prediction signal, quantization parameters, image display order information, and image coding type. . Among these, the residual signal and quantization parameter of the target block are sent to the inverse quantizer 203 via the line L202, and the inverse quantizer 203 inverts the residual signal of the target block based on the quantization parameter. In addition, the inverse transformer 204 performs inverse discrete cosine transform on the result of the inverse quantization. The residual signal restored in this way is sent to the adder 205 via the line L204.

一方、抽出された予測信号の生成に関する情報は、ラインL206b経由で予測信号生成器208に送られる。予測信号生成器208は、予測信号の生成に関する情報をもとに、フレームメモリ207内の複数の参照画像から適当な参照画像を取得し、当該適当な参照画像をもとに予測信号を生成する。生成された予測信号は、ラインL208経由で加算器205に送られ、加算器205により上記復元された残差信号に加算され、その結果、対象ブロックの信号が再生される。再生された対象ブロックの信号は、ラインL205経由で出力端子206から出力されると同時に、再生画像としてフレームメモリ207に格納される。   On the other hand, information relating to the generation of the extracted prediction signal is sent to the prediction signal generator 208 via the line L206b. The prediction signal generator 208 acquires an appropriate reference image from a plurality of reference images in the frame memory 207 based on information related to the generation of the prediction signal, and generates a prediction signal based on the appropriate reference image. . The generated prediction signal is sent to the adder 205 via the line L208, and is added to the restored residual signal by the adder 205. As a result, the signal of the target block is reproduced. The reproduced signal of the target block is output from the output terminal 206 via the line L205 and simultaneously stored in the frame memory 207 as a reproduced image.

フレームメモリ207には、後続の画像の復号や再生に用いられる再生画像が格納されている。フレームメモリ管理器209は、フレームメモリ207に格納されているN枚(ここでは一例としてN=4であるが、予め決められた整数でもよい)の再生画像から最も古い再生画像を消去することで、参照画像として用いられる直近の再生画像をフレームメモリ207に格納できるように制御する。このフレームメモリ管理器209は、ラインL206a経由で入力される対象画像の表示順番情報と画像の符号化タイプに関する情報に基づいて動作する。フレームメモリ管理器209による制御方法については、後述する。   The frame memory 207 stores a playback image used for decoding and playback of subsequent images. The frame memory manager 209 deletes the oldest reproduced image from N reproduced images stored in the frame memory 207 (here, N = 4 as an example, but may be a predetermined integer). Then, control is performed so that the latest reproduced image used as the reference image can be stored in the frame memory 207. The frame memory manager 209 operates based on the display order information of the target image input via the line L206a and information related to the image encoding type. A control method by the frame memory manager 209 will be described later.

なお、ランダムアクセスポイントとなるイントラフレーム(画面内予測画像)について、H.264ではIDRピクチャ(instantaneous decoder refresh)と呼ばれているが、この名称は、IDRピクチャを符号化もしくは復号した後すぐに(instantaneous)フレームメモリ(decoder buffer)をリフレッシュすることに由来している。これに対し、本発明によれば、ランダムアクセスポイントとなるイントラフレームを符号化又は復号した後すぐに(又は符号化もしくは復号する直前に)、フレームメモリのリフレッシュを実行するのではなく、一時的に待機(もしくは遅延)させた上でフレームメモリのリフレッシュを実行するため、本発明ではこの画像をDDRピクチャ(deferred decoder refresh又はdelayed decoder refresh)と呼ぶ。以下に詳しく説明するように、フレームメモリのリフレッシュのタイミングは、DDRピクチャの表示順番情報と、処理(符号化又は復号)の対象となる画像(以下「処理対象画像」という)の表示順番情報とを比較することで決定する。   For intra frames (intra-screen predicted images) serving as random access points, H.264 is used. In H.264, called an IDR picture (instantaneous decoder refresh), this name is derived from refreshing an instantaneous frame memory (encoderane) immediately after encoding or decoding an IDR picture. On the other hand, according to the present invention, immediately after encoding or decoding an intra frame serving as a random access point (or immediately before encoding or decoding), the frame memory is not refreshed, but temporarily. In the present invention, this image is called a DDR picture (deferred decoder refresh or delayed decoder refresh) in order to refresh the frame memory after waiting (or delaying). As will be described in detail below, the refresh timing of the frame memory includes the display order information of the DDR picture, the display order information of the image (hereinafter referred to as “processing target image”) to be processed (encoding or decoding), and Is determined by comparing

[動画像予測符号化方法及び動画像予測復号方法の特徴的な処理動作]
次に図3と図4を用いて、本発明による動画像予測符号化方法及び動画像予測復号方法の動作を説明する。図3は本実施形態に係る動画像予測符号化・復号方法を示す流れ図であり、以下では、図3を動画像の符号化方法として説明する。ただし、図3は動画像の復号方法にも適用可能である。
[Characteristic Processing Operation of Video Predictive Encoding Method and Video Predictive Decoding Method]
Next, operations of the video predictive coding method and the video predictive decoding method according to the present invention will be described with reference to FIGS. 3 and 4. FIG. 3 is a flowchart showing a video predictive encoding / decoding method according to the present embodiment. In the following, FIG. 3 will be described as a video encoding method. However, FIG. 3 is also applicable to a moving image decoding method.

まず、図3に用いられる変数の意味を説明する。TRは表示順番情報、TR_DDRはDDR画像の表示順番情報、TR_CURは当該時点の処理対象画像の表示順番情報、RPはフレームメモリ104のリフレッシュが待機中かどうかを示す状態変数である。RP=1の場合は、DDRピクチャが処理対象となり、その後、フレームメモリ104のリフレッシュがまだ実行されていない状態(即ち、フレームメモリ・リフレッシュが待機中の状態)を示しており、RP=0の場合は、フレームメモリ104のリフレッシュが既に実行済みの状態又はリフレッシュ処理を必要としない状態を示す。   First, the meaning of the variables used in FIG. 3 will be described. TR is the display order information, TR_DDR is the display order information of the DDR image, TR_CUR is the display order information of the processing target image at that time, and RP is a state variable indicating whether or not the refresh of the frame memory 104 is waiting. When RP = 1, this indicates a state in which the DDR picture is a processing target and the frame memory 104 has not yet been refreshed (that is, the frame memory refresh is waiting), and RP = 0. In this case, the frame memory 104 has already been refreshed or does not require refresh processing.

図3において、動画像の符号化が開始するときに、まず、TR_DDRとRPを0に初期化する(ステップ301)。ステップ302では、RP=1であり且つTR_CURがTR_DDRより大きいかどうかを確認する。この条件が満たされると、フレームメモリ・リフレッシュが待機中であり且つ処理対象の画像が表示順番においてDDRピクチャよりも後の画像であることを意味するので、フレームメモリ104のリフレッシュ処理(即ち、フレームメモリ104に格納されている参照画像を不要と設定する処理)を実行する(ステップ303)。ただし、ここで、不要と設定する参照画像は、表示順番情報TRが直近のDDRピクチャの表示順番情報(TR_DDR)よりも小さい参照画像のみである。また、直近のDDRピクチャ(又は画面内予測符号化画像)は、不要と設定しない。以上のようなリフレッシュ処理が終わったことで、状態変数RPをRP=0に設定する。   In FIG. 3, when encoding of a moving image starts, first, TR_DDR and RP are initialized to 0 (step 301). In step 302, it is confirmed whether RP = 1 and TR_CUR is larger than TR_DDR. If this condition is satisfied, it means that the frame memory refresh is waiting and the image to be processed is an image after the DDR picture in the display order. A process of setting the reference image stored in the memory 104 as unnecessary is executed (step 303). However, the reference image set as unnecessary here is only the reference image whose display order information TR is smaller than the display order information (TR_DDR) of the latest DDR picture. Also, the latest DDR picture (or intra prediction encoded image) is not set as unnecessary. Upon completion of the refresh process as described above, the state variable RP is set to RP = 0.

一方、ステップ302で上記の条件が満たされない場合は、ステップ304に進み、当該時点の処理対象画像がDDRピクチャであるかどうかを確認する。なお、動画像予測符号化装置100では、画像の符号化タイプ(DDR、画面間予測符号化又は双方向予測符号化)に関する情報は、図1の入力端子113経由で、図示しない制御装置から与えられるものとする。ステップ304で、当該時点の処理対象画像がDDRピクチャである場合は、ステップ305にて当該時点の処理対象画像の表示順番情報TR_CURをTR_DDRに設定し、状態変数RPをRP=1と設定した上でステップ306に進む。一方、ステップ304で条件が満たされない場合はステップ306に進む。   On the other hand, if the above condition is not satisfied in step 302, the process proceeds to step 304, and it is confirmed whether or not the processing target image at that time is a DDR picture. Note that in the video predictive coding apparatus 100, information on the picture coding type (DDR, inter-screen predictive coding or bi-directional predictive coding) is given from a control device (not shown) via the input terminal 113 in FIG. Shall be. If the processing target image at that time is a DDR picture in step 304, the display order information TR_CUR of the processing target image at that time is set to TR_DDR and the state variable RP is set to RP = 1 in step 305. The process proceeds to step 306. On the other hand, if the condition is not satisfied in step 304, the process proceeds to step 306.

ステップ306では、処理対象画像に相当する再生画像を得る。ここでは、図1で説明した符号化方法で、処理対象画像を符号化して圧縮データを得て、さらに圧縮データを復号して再生画像(処理対象画像に相当する再生画像)を得る。なお、符号化により得られた圧縮データは、動画像予測符号化装置100の外部へ送出される。又は、圧縮データは動画像予測符号化装置100内の図示しないメモリに蓄積してもよい。次のステップ307では、処理対象画像に相当する再生画像が後続の処理で参照画像として用いられるかどうかを判断する。この判断は、当該画像の符号化タイプに基づいて行われる。なお、本実施形態では、DDRピクチャ、片方向予測符号化画像、及び特定の双方向予測符号化画像はすべて参照画像とする。ただし、この方法に限るものではない。   In step 306, a reproduced image corresponding to the processing target image is obtained. Here, with the encoding method described in FIG. 1, the processing target image is encoded to obtain compressed data, and the compressed data is further decoded to obtain a reproduction image (reproduction image corresponding to the processing target image). Note that the compressed data obtained by encoding is transmitted to the outside of the video predictive encoding device 100. Alternatively, the compressed data may be stored in a memory (not shown) in the moving picture predictive coding apparatus 100. In the next step 307, it is determined whether or not a reproduced image corresponding to the processing target image is used as a reference image in subsequent processing. This determination is made based on the coding type of the image. In the present embodiment, the DDR picture, the unidirectional predictive encoded image, and the specific bidirectional predictive encoded image are all reference images. However, the method is not limited to this method.

ステップ307で再生画像が参照画像として用いられないと判断された場合は、再生画像をフレームメモリ104に格納せずにステップ309に進む。一方、ステップ307で再生画像が参照画像として用いられると判断された場合は、ステップ308にて、再生画像をフレームメモリ104に格納した上で、ステップ309に進む。   If it is determined in step 307 that the reproduced image is not used as a reference image, the process proceeds to step 309 without storing the reproduced image in the frame memory 104. On the other hand, if it is determined in step 307 that the reproduced image is used as a reference image, the reproduced image is stored in the frame memory 104 in step 308 and then the process proceeds to step 309.

ステップ309では次の画像(未処理の画像)があるか否かを判断し、次の画像があれば、ステップ302へ戻り、次の画像に対しステップ302〜308の処理を繰り返す。このようにして最後の画像までステップ302〜308の処理を繰り返し、全ての画像の処理が完了すると、図3の処理を終了する。   In step 309, it is determined whether or not there is a next image (unprocessed image). If there is a next image, the process returns to step 302, and the processing in steps 302 to 308 is repeated for the next image. In this way, the processing in steps 302 to 308 is repeated until the last image, and when all the images are processed, the processing in FIG. 3 is terminated.

上述した図3の処理により、ランダムアクセス画像(ここでは直近のDDRピクチャ)の処理が完了した後、最初に、表示順番情報TRがTR_DDRより大きい画像を処理するときに(実際にはステップ306の処理の直前のステップ303において)、フレームメモリがリフレッシュされる。なお、フレームメモリのリフレッシュのタイミングは、ランダムアクセス画像(ここでは直近のDDRピクチャ)の処理が完了した後、最初に、表示順番情報TRがTR_DDRより大きい画像を処理するときであればよく、ステップ306の処理の直後であってもよい。   After the processing of the random access image (here, the latest DDR picture) is completed by the processing of FIG. 3 described above, when processing an image whose display order information TR is larger than TR_DDR for the first time (actually, in step 306) In step 303 immediately before processing), the frame memory is refreshed. Note that the refresh timing of the frame memory may be any time when an image whose display order information TR is larger than TR_DDR is processed first after processing of a random access image (here, the latest DDR picture) is completed. It may be immediately after the process of 306.

上述した図3の処理は、図1の動画像予測符号化装置100全体の処理に該当するが、とりわけステップ302〜305の処理はフレームメモリ管理器114により行われる。   The above-described processing of FIG. 3 corresponds to the processing of the entire moving picture predictive encoding apparatus 100 of FIG. 1, and in particular, the processing of steps 302 to 305 is performed by the frame memory manager 114.

なお、図3は、動画像の符号化方法として説明したが、動画像復号方法の処理にも適用できる。復号処理を行う場合、ステップ301では、さらに、圧縮符号化された画像のデータ(ビットストリーム)が入力される。当該データから対象画像の表示順番情報や符号化タイプを抽出して、上述と同じ方法でステップ302〜305の制御を行う。ステップ306では対象画像の圧縮されたデータを復号し、画像を復元する処理を行う。ステップ307以降の処理は、上述したとおりである。このような処理は、図2の動画像予測復号装置200全体の処理に該当するが、とりわけステップ302〜305の処理はフレームメモリ管理器209により行われる。   Although FIG. 3 has been described as a moving image encoding method, it can also be applied to processing of a moving image decoding method. In the case of performing the decoding process, in step 301, the data (bit stream) of the compressed and encoded image is further input. The display order information and the encoding type of the target image are extracted from the data, and the control in steps 302 to 305 is performed by the same method as described above. In step 306, the compressed data of the target image is decoded and the image is restored. The processing after step 307 is as described above. Such processing corresponds to the processing of the entire moving picture predictive decoding apparatus 200 in FIG. 2, and in particular, the processing in steps 302 to 305 is performed by the frame memory manager 209.

図4は、本実施形態に係る動画像予測符号化・復号方法の処理を説明するための模式図である。図4に示す画像401〜409は、動画像を構成する画像群の一部であり、画像401はn枚の画像に先行されている様子を示す。したがって、図4の領域418に示すように画像401の表示順番情報TRは(n+1)と表す。また、本実施形態では双方向予測を含む符号化・復号処理を行うため、TR=(n+5)の画像402を先に処理した後に、表示順では画像402よりも先行する画像403、404、405を処理する様子を示している。同様の理由で、表示順が(n+3)の画像403は、表示順が(n+2)の画像404よりも先に処理される。このような順番は図11(B)と同じである。なお、以降で「画像を処理する」とは「画像を符号化又は復号する」ことを意味する。   FIG. 4 is a schematic diagram for explaining processing of the video predictive encoding / decoding method according to the present embodiment. Images 401 to 409 shown in FIG. 4 are a part of an image group constituting a moving image, and an image 401 shows a state preceded by n images. Therefore, the display order information TR of the image 401 is represented as (n + 1) as shown in a region 418 in FIG. Further, in this embodiment, since encoding / decoding processing including bi-directional prediction is performed, images 403, 404, and 405 that precede the image 402 in display order after the TR = (n + 5) image 402 is processed first. It shows how to process. For the same reason, the image 403 whose display order is (n + 3) is processed before the image 404 whose display order is (n + 2). Such an order is the same as in FIG. In the following, “processing an image” means “encoding or decoding an image”.

図4の画像401〜409の枠内に書かれている英文字は、以下を意味する。即ち、Pは片方向予測で符号化される画像、DDRはDDRピクチャとして符号化される画像、Bとbは双方向予測で符号化される画像を、それぞれ意味する。また、小文字bで示されている画像以外(即ち、大文字B、P、DDRで示されている画像)は、全て参照画像として用いられるものとする。図4の領域420に示す各画像に対するRPの値、及び領域419に示すTR_DDRの値は、各画像に対する処理が完了した直後の値であり、各画像に対する処理の開始時(即ち、図3のステップ302に入るとき)の値ではない。例えば、画像402に対する処理の開始時にRP=0であるが、画像402に対する処理の完了直後にはRP=1となる。   The English characters written in the frames of the images 401 to 409 in FIG. 4 mean the following. That is, P means an image encoded by unidirectional prediction, DDR means an image encoded as a DDR picture, and B and b mean images encoded by bidirectional prediction. In addition, images other than the image indicated by the lowercase letter b (that is, images indicated by the uppercase letters B, P, and DDR) are all used as reference images. The value of RP for each image shown in the area 420 of FIG. 4 and the value of TR_DDR shown in the area 419 are values immediately after the processing for each image is completed. It is not the value when entering step 302. For example, RP = 0 at the start of processing for the image 402, but immediately after completion of processing for the image 402, RP = 1.

画像401の処理では、画像401がDDRピクチャではないので、RP=0となる。画像401に対応するTR_DDRは任意の値をとってもよいが、先行の処理によって格納されている値が設定されている。また、大文字P1で示される画像401は参照画像として用いるので、フレームメモリに格納される。   In the processing of the image 401, since the image 401 is not a DDR picture, RP = 0. TR_DDR corresponding to the image 401 may take an arbitrary value, but a value stored by the preceding process is set. The image 401 indicated by the capital letter P1 is used as a reference image and is stored in the frame memory.

続いて、図3を参照しながら画像402の処理を説明する。このとき、図4の最下段における領域410に示すように、フレームメモリには、再生された画像P1が格納されている。画像402の処理開始時点ではRP=0であるため、ステップ302で否定判定され、ステップ304に進む。画像402はDDRピクチャであるため、ステップ304で肯定判定され、ステップ305にてRP=1、TR_DDR=n+5と設定される。また、画像402は、参照画像として用いられるのでフレームメモリに格納される。   Next, the processing of the image 402 will be described with reference to FIG. At this time, the reproduced image P1 is stored in the frame memory, as indicated by an area 410 at the bottom of FIG. Since RP = 0 at the start of the processing of the image 402, a negative determination is made in step 302, and the process proceeds to step 304. Since the image 402 is a DDR picture, an affirmative determination is made in step 304, and RP = 1 and TR_DDR = n + 5 are set in step 305. The image 402 is stored in the frame memory because it is used as a reference image.

次に画像403の処理が開始する時点では、図4の領域411に示すように、フレームメモリには画像P1とDDR5が格納されている。このときRP=1であるが、画像403の表示順番TR(n+3)はTR_DDR(n+5)よりも小さく且つ画像403はDDRピクチャではないので、ステップ302、304で否定判定され、そのままで符号化又は復号される(ステップ306)。また、画像403は、参照画像として用いられるため、フレームメモリに格納される。   Next, when processing of the image 403 starts, as shown in an area 411 in FIG. 4, the images P1 and DDR5 are stored in the frame memory. At this time, although RP = 1, the display order TR (n + 3) of the image 403 is smaller than TR_DDR (n + 5) and the image 403 is not a DDR picture. Decoded (step 306). The image 403 is stored in the frame memory because it is used as a reference image.

画像404と405を処理する際も同じようにフレームメモリのリフレッシュは待機状態(RP=1)のままである。また画像404と405は参照画像として用いられないため、図4の領域412、413に示すようにフレームメモリには、画像404と405は格納されず、画像P1、DDR5、B3が格納されている。   Similarly, when the images 404 and 405 are processed, the frame memory refresh remains in the standby state (RP = 1). Further, since the images 404 and 405 are not used as reference images, the images 404 and 405 are not stored in the frame memory as shown in the areas 412 and 413 in FIG. 4, and the images P1, DDR5, and B3 are stored. .

画像406の処理が開始する時点ではRP=1であるが、画像406の表示順番情報TR(n+9)はTR_DDR(n+5)よりも大きいので、ステップ302で肯定判定され、ステップ303にて参照画像を不要と設定することでフレームメモリをリフレッシュし、RP=0と設定する。このとき不要と設定する参照画像は、直近のDDRピクチャ402を除く、直近のDDRピクチャ402よりも表示順番情報TRが小さい参照画像のみである。したがって、図4の領域414に示すように、フレームメモリでは、画像P1と画像B3の記憶領域が開放され、画像DDR5のみが格納されることになる。画像406は、図4の領域415に示すように、当該画像406の処理が完了した後にフレームメモリに格納され、それ以降は、上記と同様にフレームメモリのリフレッシュ制御が行われる。   Although RP = 1 at the time when the processing of the image 406 starts, the display order information TR (n + 9) of the image 406 is larger than TR_DDR (n + 5), so an affirmative determination is made in step 302 and the reference image is selected in step 303. The frame memory is refreshed by setting it as unnecessary, and RP = 0 is set. At this time, the reference images set as unnecessary are only reference images having display order information TR smaller than that of the latest DDR picture 402, excluding the latest DDR picture 402. Therefore, as shown in an area 414 in FIG. 4, in the frame memory, the storage areas for the image P1 and the image B3 are released, and only the image DDR5 is stored. As shown in an area 415 in FIG. 4, the image 406 is stored in the frame memory after the processing of the image 406 is completed, and thereafter, the refresh control of the frame memory is performed in the same manner as described above.

このように、DDRピクチャ402の処理直後もしくは直前では、フレームメモリにある参照画像(図4では画像P1)を不要と設定しないため、DDRピクチャ402の後に処理される画像403、404,405の処理において画像P1を参照することができ、そのため符号化効率の向上に寄与することができる。また、DDRピクチャ402の処理の後にフレームメモリ・リフレッシュを実行する際に、直近のDDRピクチャ402(画像DDR5)を不要と設定しないため、後続の画像407、408、409の処理において直近のDDRピクチャ402(画像DDR5)を参照画像として用いることができる。   In this way, immediately after or immediately before the processing of the DDR picture 402, the reference image (image P1 in FIG. 4) in the frame memory is not set to be unnecessary, so the processing of the images 403, 404, and 405 processed after the DDR picture 402 is performed. The image P1 can be referred to at this time, which can contribute to the improvement of the coding efficiency. Also, when frame memory refresh is executed after processing of the DDR picture 402, the latest DDR picture 402 (image DDR5) is not set to be unnecessary, so that the latest DDR picture is processed in the subsequent processing of the images 407, 408, and 409. 402 (image DDR5) can be used as a reference image.

このように本実施形態は、画像に付随する表示順番情報を利用して、ランダムアクセスの箇所となる画面内予測画像(DDRピクチャ)の処理の後に行われるメモリ・リフレッシュのタイミングを表示順番情報によって設定することにより、ランダムアクセス画像の前後にある画像を効率よく圧縮符号化することができる。また、従来技術の欠点に係る不都合を以下のように解消することができる。   As described above, the present embodiment uses the display order information attached to the image, and uses the display order information to indicate the timing of the memory refresh performed after the processing of the intra prediction image (DDR picture) that is a random access location. By setting, it is possible to efficiently compress and encode images before and after the random access image. Moreover, the inconvenience which concerns on the fault of a prior art can be eliminated as follows.

即ち、表示順番情報は、各画像には必ず付随するものであるため、新たな情報(フラグ)を送る必要がなく、従来技術の欠点2は解消される。また、動画像の編集(例えば一部の画像を捨てる、別の画像をつなぐ等)を行う場合でも、動画像を構成する各画像の表示順番情報は適切に設定されるため、誤動作を引き起こすことはなく、従来技術の欠点1は解消される。さらに、本発明によるメモリ・リフレッシュのタイミングは、Pピクチャに限定されず、画像の符号化タイプ(Iピクチャ、Pピクチャ、Bピクチャ)に依存しないため、メモリのリフレッシュの要否にかかわらず符号化効率の最もよい符号化タイプで処理することができ、従来技術の欠点3は解消される。   That is, since the display order information is always attached to each image, it is not necessary to send new information (flag), and the disadvantage 2 of the prior art is solved. In addition, even when editing a moving image (for example, discarding some images or connecting another image), the display order information of each image constituting the moving image is set appropriately, which may cause a malfunction. There is no disadvantage of the prior art. Furthermore, the memory refresh timing according to the present invention is not limited to P pictures, and does not depend on the picture coding type (I picture, P picture, B picture), so coding is performed regardless of whether or not memory refresh is required. It is possible to process with the most efficient coding type, and the disadvantage 3 of the prior art is eliminated.

[変形例について]
上述した実施形態では、画像の表示順番情報が「絶対値」として符号化される場合の処理を説明したが、符号化効率を高めるために、画像の表示順番情報が「差分値」として符号化される実施形態もある。以下では、変形例として、表示順番情報が「差分値」として符号化される実施形態を説明する。
[Modification]
In the embodiment described above, the processing in the case where the image display order information is encoded as “absolute value” has been described. However, in order to increase the encoding efficiency, the image display order information is encoded as “difference value”. There is also an embodiment. Hereinafter, an embodiment in which the display order information is encoded as “difference value” will be described as a modification.

図5は、動画像予測符号化・復号方法の変形例の流れ図を示す。変形例では、画像の表示順番情報は、次のように符号化される。即ち、フレームメモリのリフレッシュの待機中に処理対象となった画像については、その表示順番情報とDDRピクチャの表示順番情報との差分値を符号化する。一方、上記以外の画像については、その表示順番情報を任意の方法で符号化する。例えば、DDRピクチャの表示順番情報との差分を符号化してもいいし、符号化順において直前の画像の表示順番情報との差分を符号化してもよい。   FIG. 5 shows a flowchart of a modification of the moving picture predictive encoding / decoding method. In the modification, the image display order information is encoded as follows. That is, for an image to be processed while waiting for refresh of the frame memory, the difference value between the display order information and the display order information of the DDR picture is encoded. On the other hand, for images other than those described above, the display order information is encoded by an arbitrary method. For example, the difference from the display order information of the DDR picture may be encoded, or the difference from the display order information of the immediately preceding image in the encoding order may be encoded.

以下の変形例では、図5を動画像の復号方法として説明するが、もちろん、図5は動画像の符号化方法にも適用可能である。図5のステップ501では、動画像予測復号装置200に、圧縮符号化された画像のデータが入力され、当該データから対象画像の表示順番情報の差分値(delta_TR)及び画像の符号化タイプに関する情報を抽出する。同時に、TR_DDRとRPを0に初期化する。   In the following modification, FIG. 5 will be described as a moving picture decoding method, but of course, FIG. 5 is also applicable to a moving picture encoding method. In step 501 of FIG. 5, compression-encoded image data is input to the moving image predictive decoding device 200, and information regarding the difference value (delta_TR) of the display order information of the target image and the image encoding type from the data. To extract. At the same time, TR_DDR and RP are initialized to 0.

次のステップ502では、RP=1であるかどうか確認する。この条件が満たされると、フレームメモリ・リフレッシュが待機中であることを意味するので、ステップ503に進む。ステップ503では、当該時点の処理対象画像の表示順番情報TR_CURを、TR_DDRとdelta_TRとの和(加算した値)に設定する。   In the next step 502, it is confirmed whether RP = 1. If this condition is satisfied, it means that the frame memory refresh is waiting, and the process proceeds to step 503. In step 503, the display order information TR_CUR of the processing target image at that time is set to the sum (added value) of TR_DDR and delta_TR.

次に、ステップ504にてTR_CURがTR_DDRより大きいかどうか確認する。この条件が満たされると、フレームメモリ・リフレッシュ待機中であり且つ処理対象の画像が表示順番においてDDRピクチャよりも後の画像であることを意味するので、フレームメモリ207のリフレッシュ処理(即ち、フレームメモリ207に格納されている参照画像を不要と設定する処理)を実行する(ステップ505)。ただし、ここで、不要と設定する参照画像は、表示順番情報TRが直近のDDRピクチャの表示順番情報(TR_DDR)よりも小さい参照画像のみである。また、直近のDDRピクチャ(又は画面内予測符号化画像)は、不要と設定しない。以上のようなリフレッシュ処理が終わったことで、状態変数RPをRP=0に設定する。その後、後述するステップ507に進む。また、前述したステップ504で否定判定された場合もステップ507に進む。   Next, in step 504, it is confirmed whether TR_CUR is larger than TR_DDR. If this condition is satisfied, it means that the frame memory is in a refresh standby state and the image to be processed is an image after the DDR picture in the display order. The process of setting the reference image stored in 207 as unnecessary is executed (step 505). However, the reference image set as unnecessary here is only the reference image whose display order information TR is smaller than the display order information (TR_DDR) of the latest DDR picture. Also, the latest DDR picture (or intra prediction encoded image) is not set as unnecessary. Upon completion of the refresh process as described above, the state variable RP is set to RP = 0. Then, it progresses to step 507 mentioned later. In addition, if a negative determination is made in step 504 described above, the process also proceeds to step 507.

一方、ステップ502で否定判定された場合はステップ506に進み、TR_CURを、前に処理された画像の表示順番情報TR_PREVとdelta_TRとの和(加算した値)に設定して、ステップ507に進む。   On the other hand, if a negative determination is made in step 502, the process proceeds to step 506, TR_CUR is set to the sum (added value) of the display order information TR_PREV and delta_TR of the previously processed image, and the process proceeds to step 507.

ステップ507では、当該時点の処理対象画像がDDRピクチャであるかどうかを確認する。なお、動画像予測復号装置200は、画像の符号化タイプ(DDR、画面間予測符号化又は双方向予測符号化)に関する情報を、外部から入力された圧縮符号化データから得ることができる。   In step 507, it is confirmed whether or not the processing target image at that time is a DDR picture. Note that the moving picture predictive decoding apparatus 200 can obtain information related to an image coding type (DDR, inter-screen predictive coding or bi-directional predictive coding) from compression-coded data input from the outside.

ステップ507で、当該時点の処理対象画像がDDRピクチャである場合は、ステップ508にて当該時点の処理対象画像の表示順番情報TR_CURをTR_DDRに設定し、状態変数RPをRP=1と設定した上でステップ509に進む。一方、ステップ507で条件が満たされない場合はステップ509に進む。   If the processing target image at the time is a DDR picture at step 507, the display order information TR_CUR of the processing target image at the time is set to TR_DDR and the state variable RP is set to RP = 1 at step 508. The process proceeds to step 509. On the other hand, if the condition is not satisfied in step 507, the process proceeds to step 509.

ステップ509では、処理対象画像に相当する再生画像を得る。ここでは、図2で説明した復号方法で、処理対象画像の圧縮データを復号することで、処理対象画像に相当する再生画像を得る。なお、ここで得られた再生画像は、例えば、動画像予測復号装置200の外部へ送出される。次のステップ510では、処理対象画像に相当する再生画像が後続の処理で参照画像として用いられるかどうかを判断する。この判断は、当該画像の符号化タイプに基づいて行われる。なお、ここでは、DDRピクチャ、片方向予測符号化画像、及び特定の双方向予測符号化画像はすべて参照画像とする。ただし、この方法に限るものではない。   In step 509, a reproduced image corresponding to the processing target image is obtained. Here, a reproduced image corresponding to the processing target image is obtained by decoding the compressed data of the processing target image by the decoding method described in FIG. Note that the reproduced image obtained here is transmitted to the outside of the moving picture predictive decoding apparatus 200, for example. In the next step 510, it is determined whether or not a reproduced image corresponding to the processing target image is used as a reference image in subsequent processing. This determination is made based on the coding type of the image. Here, the DDR picture, the unidirectional predictive encoded image, and the specific bidirectional predictive encoded image are all reference images. However, the method is not limited to this method.

ステップ510で再生画像が参照画像として用いられないと判断された場合は、再生画像をフレームメモリ207に格納せずにステップ512に進む。一方、ステップ510で再生画像が参照画像として用いられると判断された場合は、ステップ511にて、再生画像をフレームメモリ207に格納した上で、ステップ512に進む。   If it is determined in step 510 that the reproduced image is not used as a reference image, the process proceeds to step 512 without storing the reproduced image in the frame memory 207. On the other hand, if it is determined in step 510 that the reproduced image is used as a reference image, the reproduced image is stored in the frame memory 207 in step 511 and then the process proceeds to step 512.

ステップ512では、後続のステップ506の処理のために、TR_CURをTR_PREVに設定し、ステップ513に進む。ステップ513では次の画像(未処理の画像)があるか否かを判断し、次の画像があれば、ステップ502へ戻り、次の画像に対しステップ502〜512の処理を繰り返す。このようにして最後の画像までステップ502〜512の処理を繰り返し、全ての画像の処理が完了すると、図5の処理を終了する。   In step 512, TR_CUR is set to TR_PREV for the processing in the subsequent step 506, and the process proceeds to step 513. In step 513, it is determined whether or not there is a next image (unprocessed image). If there is a next image, the process returns to step 502, and the processes in steps 502 to 512 are repeated for the next image. In this way, the processing of steps 502 to 512 is repeated until the last image, and when the processing of all the images is completed, the processing of FIG. 5 ends.

上述した図5の処理により、ランダムアクセス画像(ここでは直近のDDRピクチャ)の処理が完了した後、最初に、表示順番情報TRがTR_DDRより大きい画像を処理するときに(実際にはステップ509の処理の直前のステップ505において)、フレームメモリがリフレッシュされる。なお、フレームメモリのリフレッシュのタイミングは、ランダムアクセス画像(ここでは直近のDDRピクチャ)の処理が完了した後、最初に、表示順番情報TRがTR_DDRより大きい画像を処理するときであればよく、ステップ509の処理の直後であってもよい。   After the processing of the random access image (here, the latest DDR picture) is completed by the processing of FIG. 5 described above, first, when processing an image whose display order information TR is larger than TR_DDR (actually, in step 509) In step 505 immediately before processing), the frame memory is refreshed. Note that the refresh timing of the frame memory may be any time when an image whose display order information TR is larger than TR_DDR is processed first after processing of a random access image (here, the latest DDR picture) is completed. It may be immediately after the processing of 509.

上述した図5の処理は、図2の動画像予測復号装置200全体の処理に該当するが、とりわけステップ502〜508はフレームメモリ管理器209により行われる。   The above-described processing of FIG. 5 corresponds to the entire processing of the moving picture predictive decoding apparatus 200 of FIG. 2, and in particular, steps 502 to 508 are performed by the frame memory manager 209.

なお、図5は動画像の復号方法として説明したが、動画像符号化方法の処理にも適用できる。符号化処理を行う場合、ステップ503ではdelta_TRをTR_CURとTR_DDRとの差分から求め、ステップ506ではdelta_TRをTR_CURとTR_PREVとの差分から求めた上で、エントロピー符号化する。また、ステップ509では対象画像を符号化した上で復号する。このような処理は、図1の動画像予測符号化装置100全体の処理に該当するが、とりわけステップ502〜508の処理はフレームメモリ管理器114により行われる。   In addition, although FIG. 5 demonstrated as a moving image decoding method, it is applicable also to the process of a moving image encoding method. When performing the encoding process, in step 503, delta_TR is obtained from the difference between TR_CUR and TR_DDR, and in step 506, delta_TR is obtained from the difference between TR_CUR and TR_PREV and then entropy-encoded. In step 509, the target image is encoded and then decoded. Such processing corresponds to the processing of the entire moving picture predictive coding apparatus 100 in FIG. 1, and the processing of steps 502 to 508 is performed by the frame memory manager 114.

図6は、変形例に係る動画像予測符号化・復号方法の処理を説明するための模式図である。図6に示す画像601〜609は、動画像を構成する画像群の一部であり、図4で説明した画像401〜409と同じ処理を示している。ただし、図6では、図4に対し、領域621に示すdelta_TRが追加されている。この領域621からわかるように、対象画像の符号化処理開始時におけるRPの値(前の画像のRP値)によって、delta_TRの求め方が異なる。即ち、画像603〜606の符号化処理では、delta_TRは、各画像のTRとTR_DDRとの差分値として求められる。画像607以降の符号化処理では、delta_TRは、各画像のTRとその直前の画像のTRとの差分値として求められる。一方、各画像の復号処理において差分値delta_TRから表示順番情報TRを復元する場合は、差分値の圧縮データを復号して得られた差分値delta_TRとTR_DDRとを加算することで、表示順番情報TRを復元する。それ以降は図4と同じ処理になるので、省略する。   FIG. 6 is a schematic diagram for explaining the process of the video predictive encoding / decoding method according to the modification. Images 601 to 609 shown in FIG. 6 are part of an image group constituting a moving image, and show the same processing as the images 401 to 409 described in FIG. However, in FIG. 6, delta_TR shown in the region 621 is added to FIG. As can be seen from this region 621, the method of obtaining delta_TR differs depending on the value of RP at the start of encoding processing of the target image (RP value of the previous image). That is, in the encoding process of the images 603 to 606, delta_TR is obtained as a difference value between TR of each image and TR_DDR. In the encoding process after the image 607, delta_TR is obtained as a difference value between the TR of each image and the TR of the immediately preceding image. On the other hand, when the display order information TR is restored from the difference value delta_TR in the decoding process of each image, the display order information TR is obtained by adding the difference value delta_TR and TR_DDR obtained by decoding the compressed data of the difference value. To restore. The subsequent processing is the same as in FIG.

図6では、仮に画像603〜605が編集により欠落したとしても、画像606の表示順番情報TRは、TR_DDRから求めるので、TR=delta_TR+TR_DDR=4+(n+5)=n+9として正しく再現でき、フレームメモリのリフレッシュを誤動作なく制御することができる。仮に、すべての画像のdelta_TRが、復号順において当該画像の表示順番情報と直前の画像の表示順番情報との差分値として求められるとすると、画像603が欠落した場合に、表示順番情報が正しく再生できなくなり、画像605のタイミングでフレームメモリのリフレッシュが実行されてしまう(本来、画像606のタイミングが正しいタイミングである)。   In FIG. 6, even if the images 603 to 605 are lost due to editing, the display order information TR of the image 606 is obtained from TR_DDR. Can be controlled without malfunction. If the delta_TR of all the images is obtained as a difference value between the display order information of the image and the display order information of the immediately preceding image in the decoding order, the display order information is correctly reproduced when the image 603 is missing. As a result, the frame memory is refreshed at the timing of the image 605 (originally, the timing of the image 606 is the correct timing).

図6を動画像符号化処理に適用した場合、ランダムアクセス画像(ここでは直近のDDRピクチャ)の処理完了後に、フレームメモリ・リフレッシュの待機中にある画像(画像603〜606)の表示順番情報を符号化する際に、当該画像の表示順番情報TRそのものでなく、当該画像の表示順番情報TRとDDRピクチャの表示順番情報TR_DDRとの差分値delta_TRを符号化することにより、フレームメモリ・リフレッシュのタイミングを正しく復元することができる。このため、たとえフレームメモリ・リフレッシュの待機中にある画像が脱落しても、誤動作を回避でき、エラー耐性が強いという効果がある。   When FIG. 6 is applied to the moving image encoding process, the display order information of the images (images 603 to 606) waiting for the frame memory refresh after the processing of the random access image (here, the latest DDR picture) is completed. At the time of encoding, the frame memory refresh timing is encoded by encoding the difference value delta_TR between the display order information TR of the image and the display order information TR_DDR of the DDR picture instead of the display order information TR of the image itself. Can be restored correctly. For this reason, even if an image that is waiting for frame memory refresh is dropped, malfunctions can be avoided and the error tolerance is strong.

さらに別の例として、差分値delta_TRを符号化する対象としては、ランダムアクセス画像(ここでは直近のDDRピクチャ)の後の、最初に表示順番情報TRがTR_DDRより大きい画像(図6では画像606)を含む1つ以上の画像であってもよい。即ち、ランダムアクセス画像(ここでは直近のDDRピクチャ)の後の、最初に表示順番情報TRがTR_DDRより大きい画像(図6では画像606)を含む1つ以上の画像について、その表示順番情報を符号化する際に、当該画像の表示順番情報TRそのものでなく、当該画像の表示順番情報TRとDDRピクチャの表示順番情報TR_DDRとの差分値delta_TRを符号化してもよい。   As yet another example, the difference value delta_TR is to be encoded as an image first after the random access image (here, the latest DDR picture) and whose display order information TR is first larger than TR_DDR (image 606 in FIG. 6). One or more images may be included. That is, for one or more images including first an image having display order information TR larger than TR_DDR (image 606 in FIG. 6) after a random access image (here, the latest DDR picture), the display order information is encoded. At the time of conversion, the difference value delta_TR between the display order information TR of the image and the display order information TR_DDR of the DDR picture may be encoded instead of the display order information TR of the image.

[動画像予測符号化プログラム、動画像予測復号プログラムについて]
動画像予測符号化装置に係る発明は、コンピュータを動画像予測符号化装置として機能させるための動画像予測符号化プログラムに係る発明として捉えることができる。同様に、動画像予測復号装置に係る発明は、コンピュータを動画像予測復号装置として機能させるための動画像予測復号プログラムに係る発明として捉えることができる。
[About a video predictive encoding program and a video predictive decoding program]
The invention relating to the moving picture predictive coding apparatus can be understood as an invention relating to a moving picture predictive coding program for causing a computer to function as a moving picture predictive coding apparatus. Similarly, the invention relating to the moving picture predictive decoding apparatus can be regarded as an invention relating to a moving picture predictive decoding program for causing a computer to function as a moving picture predictive decoding apparatus.

動画像予測符号化プログラム及び動画像予測復号プログラムは、例えば、記録媒体に格納されて提供される。なお、記録媒体としては、フレキシブルディスク、CD−ROM、DVD等の記録媒体、あるいはROM等の記録媒体、あるいは半導体メモリ等が例示される。   The moving picture predictive encoding program and the moving picture predictive decoding program are provided by being stored in a recording medium, for example. Examples of the recording medium include a recording medium such as a flexible disk, a CD-ROM, a DVD, a recording medium such as a ROM, or a semiconductor memory.

図9には、コンピュータを動画像予測符号化装置として機能させるための動画像予測符号化プログラムのモジュールを示す。図9に示すように、動画像予測符号化プログラムP100は、入力モジュールP101、符号化モジュールP102、復元モジュールP103、画像格納モジュールP104、及びメモリ管理モジュールP105を備えている。   FIG. 9 shows a module of a moving picture predictive coding program for causing a computer to function as a moving picture predictive coding apparatus. As shown in FIG. 9, the moving picture predictive encoding program P100 includes an input module P101, an encoding module P102, a restoration module P103, an image storage module P104, and a memory management module P105.

また、図10には、コンピュータを動画像予測復号装置として機能させるための動画像予測復号プログラムのモジュールを示す。図10に示すように、動画像予測復号プログラムP200は、入力モジュールP201、復元モジュールP202、画像格納モジュールP203、及びメモリ管理モジュールP204を備えている。   FIG. 10 shows a module of a moving picture predictive decoding program for causing a computer to function as a moving picture predictive decoding apparatus. As shown in FIG. 10, the moving picture predictive decoding program P200 includes an input module P201, a restoration module P202, an image storage module P203, and a memory management module P204.

上記のように構成された動画像予測符号化プログラムP100及び動画像予測復号プログラムP200は、図8に示す記録媒体10に記憶可能であり、後述するコンピュータ30により実行される。   The moving picture predictive encoding program P100 and the moving picture predictive decoding program P200 configured as described above can be stored in the recording medium 10 shown in FIG. 8, and are executed by the computer 30 described later.

図7は、記録媒体に記録されたプログラムを実行するためのコンピュータのハードウェア構成を示す図であり、図8は、記録媒体に記憶されたプログラムを実行するためのコンピュータの概観図である。コンピュータとしては、CPUを具備しソフトウエアによる処理や制御を行うDVDプレーヤ、セットトップボックス、携帯電話などを含む。   FIG. 7 is a diagram showing a hardware configuration of a computer for executing a program recorded on the recording medium, and FIG. 8 is an overview diagram of the computer for executing the program stored on the recording medium. Examples of the computer include a DVD player, a set top box, a mobile phone, etc. that have a CPU and perform processing and control by software.

図7に示すように、コンピュータ30は、フレキシブルディスクドライブ装置、CD−ROMドライブ装置、DVDドライブ装置等の読み取り装置12と、オペレーティングシステムを常駐させた作業用メモリ(RAM)14と、記録媒体10に記憶されたプログラムを記憶するメモリ16と、ディスプレイといった表示装置18と、入力装置であるマウス20及びキーボード22と、データ等の送受信を行うための通信装置24と、プログラムの実行を制御するCPU26とを備えている。コンピュータ30は、記録媒体10が読み取り装置12に挿入されると、読み取り装置12から記録媒体10に格納された動画像予測符号化プログラムにアクセス可能になり、当該動画像予測符号化プログラムによって、本発明に係る動画像予測符号化装置として動作することが可能になる。同様に、コンピュータ30は、記録媒体10が読み取り装置12に挿入されると、読み取り装置12から記録媒体10に格納された動画像予測復号プログラムにアクセス可能になり、当該動画像予測復号プログラムによって、本発明に係る動画像予測復号装置として動作することが可能になる。   As shown in FIG. 7, the computer 30 includes a reading device 12 such as a flexible disk drive device, a CD-ROM drive device, and a DVD drive device, a working memory (RAM) 14 in which an operating system is resident, and a recording medium 10. A memory 16 for storing programs stored therein, a display device 18 such as a display, a mouse 20 and a keyboard 22 as input devices, a communication device 24 for transmitting and receiving data, and a CPU 26 for controlling execution of the programs. And. When the recording medium 10 is inserted into the reading device 12, the computer 30 can access the moving image predictive encoding program stored in the recording medium 10 from the reading device 12, and the moving image predictive encoding program can It becomes possible to operate as a moving picture predictive encoding apparatus according to the invention. Similarly, when the recording medium 10 is inserted into the reading device 12, the computer 30 can access the moving picture predictive decoding program stored in the recording medium 10 from the reading apparatus 12, and the moving picture predictive decoding program can It becomes possible to operate as a moving picture predictive decoding apparatus according to the present invention.

図8に示すように、動画像予測符号化プログラム又は動画像予測復号プログラムは、搬送波に重畳されたコンピュータデータ信号40としてネットワークを介して提供されるものであってもよい。この場合、コンピュータ30は、通信装置24によって受信された動画像予測符号化プログラム又は動画像予測復号プログラムをメモリ16に格納して実行することができる。   As shown in FIG. 8, the moving picture predictive encoding program or the moving picture predictive decoding program may be provided via a network as a computer data signal 40 superimposed on a carrier wave. In this case, the computer 30 can store the moving picture predictive encoding program or the moving picture predictive decoding program received by the communication device 24 in the memory 16 and execute it.

10…記録媒体、30…コンピュータ、100…動画像予測符号化装置、101…入力端子、102…ブロック分割器、103…予測信号生成器、104…フレームメモリ、105…減算器、106…変換器、107…量子化器、108…逆量子化器、109…逆変換器、110…加算器、111…エントロピー符号化器、112…出力端子、113…入力端子、114…フレームメモリ管理器、200…動画像予測復号装置、201…入力端子、202…データ解析器、203…逆量子化器、204…逆変換器、205…加算器、206…出力端子、207…フレームメモリ、208…予測信号生成器、209…フレームメモリ管理器、P100…動画像予測符号化プログラム、P101…入力モジュール、P102…符号化モジュール、P103…復元モジュール、P104…画像格納モジュール、P105…メモリ管理モジュール、P200…動画像予測復号プログラム、P201…入力モジュール、P202…復元モジュール、P203…画像格納モジュール、P204…メモリ管理モジュール。   DESCRIPTION OF SYMBOLS 10 ... Recording medium, 30 ... Computer, 100 ... Moving image predictive coding apparatus, 101 ... Input terminal, 102 ... Block divider, 103 ... Prediction signal generator, 104 ... Frame memory, 105 ... Subtractor, 106 ... Converter , 107 ... quantizer, 108 ... inverse quantizer, 109 ... inverse transformer, 110 ... adder, 111 ... entropy encoder, 112 ... output terminal, 113 ... input terminal, 114 ... frame memory manager, 200 DESCRIPTION OF SYMBOLS ... Moving picture predictive decoding apparatus 201 ... Input terminal 202 ... Data analyzer 203 ... Inverse quantizer 204 ... Inverse transformer 205 ... Adder 206 ... Output terminal 207 ... Frame memory 208 ... Predictive signal Generator, 209 ... frame memory manager, P100 ... moving picture predictive encoding program, P101 ... input module, P102 ... encoding module, 103 ... restoration module, P104 ... image storing module, P105 ... memory management module, P200 ... moving picture prediction decoding program, P201 ... input module, P202 ... restoration module, P203 ... image storing module, P204 ... memory management module.

Claims (6)

動画像を構成する複数の画像を入力する入力手段と、
入力された前記画像を画面内予測又は画面間予測のいずれかの方法で符号化することで、ランダムアクセスとなる画像であるランダムアクセス画像、を含む圧縮画像データを生成するとともに、前記画像の表示順番情報に関するデータを符号化する符号化手段と、
生成された前記圧縮画像データを復号することで再生画像を復元する復元手段と、
復元された前記再生画像を、後続の画像を符号化するために用いられる参照画像として格納する画像格納手段と、を具備し、
前記復元手段は、
表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像を符号化するときに用いられる参照画像として、符号化処理順又は表示順番情報において前記ランダムアクセス画像に先行する参照画像が含まれないような参照画像情報を含む前記圧縮画像データを復号する、
ことを特徴とする動画像予測符号化装置。
Input means for inputting a plurality of images constituting a moving image;
The input image is encoded by either intra-screen prediction or inter-screen prediction, thereby generating compressed image data including a random access image that is a random access image, and displaying the image Encoding means for encoding data relating to the order information;
Restoring means for restoring a reproduced image by decoding the generated compressed image data;
Image storage means for storing the reconstructed reproduced image as a reference image used for encoding a subsequent image;
The restoration means includes
As a reference image used when encoding an image whose display order information is larger than the display order information of a random access image, a reference image preceding the random access image is not included in the encoding process order or the display order information. Decoding the compressed image data including various reference image information;
A video predictive coding apparatus characterized by the above.
動画像を構成する複数の画像を画面内予測又は画面間予測のいずれかの方法で符号化することで得られた、ランダムアクセスとなる画像であるランダムアクセス画像を含む圧縮画像データ、及び、前記画像の表示順番情報に関するデータを符号化することで得られた表示順番符号化データを入力する入力手段と、
前記圧縮画像データを復号することで再生画像を復元するとともに、前記表示順番符号化データを復号することで表示順番情報を復元する復元手段と、
復元された前記再生画像を、後続の画像を復号するために用いられる参照画像として格納する画像格納手段と、を具備し、
前記復元手段は、
表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像の圧縮画像データを復号するときに用いられる参照画像として、復号処理順又は表示順番情報において前記ランダムアクセス画像に先行する参照画像が含まれないような参照画像情報を含む前記圧縮画像データを復号する、
ことを特徴とする動画像予測復号装置。
Compressed image data including a random access image which is a random access image obtained by encoding a plurality of images constituting a moving image by either intra prediction or inter prediction method, and An input means for inputting display order encoded data obtained by encoding data relating to display order information of an image;
A restoration unit that restores a reproduction image by decoding the compressed image data, and that restores display order information by decoding the display order encoded data;
Image storage means for storing the reconstructed reproduced image as a reference image used for decoding subsequent images;
The restoration means includes
The reference image used when decoding the compressed image data of the image whose display order information is larger than the display order information of the random access image includes a reference image preceding the random access image in the decoding process order or the display order information. Decoding the compressed image data including no such reference image information;
A video predictive decoding apparatus characterized by the above.
後続の画像を符号化するために用いられる参照画像を格納するための画像格納手段を備える動画像予測符号化装置、により実行される動画像予測符号化方法であって、
動画像を構成する複数の画像を入力する入力ステップと、
入力された前記画像を画面内予測又は画面間予測のいずれかの方法で符号化することで、ランダムアクセスとなる画像であるランダムアクセス画像、を含む圧縮画像データを生成するとともに、前記画像の表示順番情報に関するデータを符号化する符号化ステップと、
生成された前記圧縮画像データを復号することで再生画像を復元する復元ステップと、
復元された前記再生画像を、後続の画像を符号化するために用いられる参照画像として前記画像格納手段に格納する画像格納ステップと、を具備し、
前記復元ステップにおいて前記動画像予測符号化装置は、
表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像を符号化するときに用いられる参照画像として、符号化処理順又は表示順番情報において前記ランダムアクセス画像に先行する参照画像が含まれないような参照画像情報を含む前記圧縮画像データを復号する、
ことを特徴とする動画像予測符号化方法。
A video predictive encoding method executed by a video predictive encoding device comprising an image storage means for storing a reference image used for encoding a subsequent image,
An input step for inputting a plurality of images constituting the moving image;
The input image is encoded by either intra-screen prediction or inter-screen prediction, thereby generating compressed image data including a random access image that is a random access image, and displaying the image An encoding step for encoding data relating to the order information;
A restoration step of restoring a reproduced image by decoding the generated compressed image data;
An image storage step of storing the restored reproduced image in the image storage means as a reference image used for encoding a subsequent image;
In the restoration step, the video predictive encoding device is
As a reference image used when encoding an image whose display order information is larger than the display order information of a random access image, a reference image preceding the random access image is not included in the encoding process order or the display order information. Decoding the compressed image data including various reference image information;
A video predictive encoding method characterized by the above.
後続の画像を復号するために用いられる参照画像を格納するための画像格納手段を備える動画像予測復号装置、により実行される動画像予測復号方法であって、
動画像を構成する複数の画像を画面内予測又は画面間予測のいずれかの方法で符号化することで得られた、ランダムアクセスとなる画像であるランダムアクセス画像を含む圧縮画像データ、及び、前記画像の表示順番情報に関するデータを符号化することで得られた表示順番符号化データを入力する入力ステップと、
前記圧縮画像データを復号することで再生画像を復元するとともに、前記表示順番符号化データを復号することで表示順番情報を復元する復元ステップと、
復元された前記再生画像を、後続の画像を復号するために用いられる参照画像として前記画像格納手段に格納する画像格納ステップと、を具備し、
前記復元ステップにおいて前記動画像予測復号装置は、
表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像の圧縮画像データを復号するときに用いられる参照画像として、復号処理順又は表示順番情報において前記ランダムアクセス画像に先行する参照画像が含まれないような参照画像情報を含む前記圧縮画像データを復号する、
ことを特徴とする動画像予測復号方法。
A moving image predictive decoding method executed by a moving image predictive decoding device including an image storage means for storing a reference image used for decoding a subsequent image,
Compressed image data including a random access image which is a random access image obtained by encoding a plurality of images constituting a moving image by either intra prediction or inter prediction method, and An input step of inputting display order encoded data obtained by encoding data related to display order information of an image;
A restoration step of restoring the reproduction image by decoding the compressed image data and restoring the display order information by decoding the display order encoded data;
An image storage step of storing the restored reproduced image in the image storage means as a reference image used for decoding a subsequent image;
In the restoration step, the video predictive decoding device
The reference image used when decoding the compressed image data of the image whose display order information is larger than the display order information of the random access image includes a reference image preceding the random access image in the decoding process order or the display order information. Decoding the compressed image data including no such reference image information;
A video predictive decoding method characterized by the above.
コンピュータを、
動画像を構成する複数の画像を入力する入力手段と、
入力された前記画像を画面内予測又は画面間予測のいずれかの方法で符号化することで、ランダムアクセスとなる画像であるランダムアクセス画像、を含む圧縮画像データを生成するとともに、前記画像の表示順番情報に関するデータを符号化する符号化手段と、
生成された前記圧縮画像データを復号することで再生画像を復元する復元手段と、
復元された前記再生画像を、後続の画像を符号化するために用いられる参照画像として格納する画像格納手段、
として動作させ、
前記復元手段は、
表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像を符号化するときに用いられる参照画像として、符号化処理順又は表示順番情報において前記ランダムアクセス画像に先行する参照画像が含まれないような参照画像情報を含む前記圧縮画像データを復号する、
ことを特徴とする動画像予測符号化プログラム。
Computer
Input means for inputting a plurality of images constituting a moving image;
The input image is encoded by either intra-screen prediction or inter-screen prediction, thereby generating compressed image data including a random access image that is a random access image, and displaying the image Encoding means for encoding data relating to the order information;
Restoring means for restoring a reproduced image by decoding the generated compressed image data;
Image storage means for storing the restored reproduced image as a reference image used for encoding a subsequent image;
Act as
The restoration means includes
As a reference image used when encoding an image whose display order information is larger than the display order information of a random access image, a reference image preceding the random access image is not included in the encoding process order or the display order information. Decoding the compressed image data including various reference image information;
A moving picture predictive encoding program characterized by the above.
コンピュータを、
動画像を構成する複数の画像を画面内予測又は画面間予測のいずれかの方法で符号化することで得られた、ランダムアクセスとなる画像であるランダムアクセス画像を含む圧縮画像データ、及び、前記画像の表示順番情報に関するデータを符号化することで得られた表示順番符号化データを入力する入力手段と、
前記圧縮画像データを復号することで再生画像を復元するとともに、前記表示順番符号化データを復号することで表示順番情報を復元する復元手段と、
復元された前記再生画像を、後続の画像を復号するために用いられる参照画像として格納する画像格納手段、
として動作させ、
前記復元手段は、
表示順番情報がランダムアクセス画像の表示順番情報よりも大きい画像の圧縮画像データを復号するときに用いられる参照画像として、復号処理順又は表示順番情報において前記ランダムアクセス画像に先行する参照画像が含まれないような参照画像情報を含む前記圧縮画像データを復号する、
ことを特徴とする動画像予測復号プログラム。
Computer
Compressed image data including a random access image which is a random access image obtained by encoding a plurality of images constituting a moving image by either intra prediction or inter prediction method, and An input means for inputting display order encoded data obtained by encoding data relating to display order information of an image;
A restoration unit that restores a reproduction image by decoding the compressed image data, and that restores display order information by decoding the display order encoded data;
Image storage means for storing the restored reproduced image as a reference image used for decoding subsequent images;
Act as
The restoration means includes
The reference image used when decoding the compressed image data of the image whose display order information is larger than the display order information of the random access image includes a reference image preceding the random access image in the decoding process order or the display order information. Decoding the compressed image data including no such reference image information;
A moving picture predictive decoding program characterized by the above.
JP2015052342A 2015-03-16 2015-03-16 Moving picture predictive coding apparatus, moving picture predictive coding method, moving picture predictive coding program, moving picture predictive decoding apparatus, moving picture predictive decoding method, and moving picture predictive decoding program Active JP5977852B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015052342A JP5977852B2 (en) 2015-03-16 2015-03-16 Moving picture predictive coding apparatus, moving picture predictive coding method, moving picture predictive coding program, moving picture predictive decoding apparatus, moving picture predictive decoding method, and moving picture predictive decoding program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015052342A JP5977852B2 (en) 2015-03-16 2015-03-16 Moving picture predictive coding apparatus, moving picture predictive coding method, moving picture predictive coding program, moving picture predictive decoding apparatus, moving picture predictive decoding method, and moving picture predictive decoding program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014015544A Division JP5753595B2 (en) 2014-01-30 2014-01-30 Moving picture predictive coding apparatus, moving picture predictive coding method, moving picture predictive coding program, moving picture predictive decoding apparatus, moving picture predictive decoding method, and moving picture predictive decoding program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2016144725A Division JP6229023B2 (en) 2016-07-22 2016-07-22 Moving picture predictive decoding method and moving picture predictive decoding apparatus

Publications (2)

Publication Number Publication Date
JP2015133742A true JP2015133742A (en) 2015-07-23
JP5977852B2 JP5977852B2 (en) 2016-08-24

Family

ID=53900582

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015052342A Active JP5977852B2 (en) 2015-03-16 2015-03-16 Moving picture predictive coding apparatus, moving picture predictive coding method, moving picture predictive coding program, moving picture predictive decoding apparatus, moving picture predictive decoding method, and moving picture predictive decoding program

Country Status (1)

Country Link
JP (1) JP5977852B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004248265A (en) * 2003-01-20 2004-09-02 Matsushita Electric Ind Co Ltd Image encoding method
JP2004260236A (en) * 2003-02-24 2004-09-16 Matsushita Electric Ind Co Ltd Encoding method and decoding method of moving picture
JP2007507128A (en) * 2003-07-09 2007-03-22 松下電器産業株式会社 Video picture encoding and decoding with delayed reference picture refresh
US20080192830A1 (en) * 2007-02-14 2008-08-14 Samsung Electronics Co., Ltd. Method of encoding and decoding motion picture frames
JP2009296078A (en) * 2008-06-03 2009-12-17 Victor Co Of Japan Ltd Encoded data reproducing apparatus, encoded data reproducing method, and encoded data reproducing program
JP2010041354A (en) * 2008-08-05 2010-02-18 Victor Co Of Japan Ltd Moving image coding method, coding device and coding program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004248265A (en) * 2003-01-20 2004-09-02 Matsushita Electric Ind Co Ltd Image encoding method
JP2004260236A (en) * 2003-02-24 2004-09-16 Matsushita Electric Ind Co Ltd Encoding method and decoding method of moving picture
JP2007507128A (en) * 2003-07-09 2007-03-22 松下電器産業株式会社 Video picture encoding and decoding with delayed reference picture refresh
US20080192830A1 (en) * 2007-02-14 2008-08-14 Samsung Electronics Co., Ltd. Method of encoding and decoding motion picture frames
JP2009296078A (en) * 2008-06-03 2009-12-17 Victor Co Of Japan Ltd Encoded data reproducing apparatus, encoded data reproducing method, and encoded data reproducing program
JP2010041354A (en) * 2008-08-05 2010-02-18 Victor Co Of Japan Ltd Moving image coding method, coding device and coding program

Also Published As

Publication number Publication date
JP5977852B2 (en) 2016-08-24

Similar Documents

Publication Publication Date Title
WO2011115045A1 (en) Moving image prediction encoding device, moving image prediction encoding method, moving image prediction encoding program, moving image prediction decoding device, moving image prediction decoding method, and moving image prediction decoding program
JP6045222B2 (en) Moving picture predictive decoding apparatus, method and program
JP5753595B2 (en) Moving picture predictive coding apparatus, moving picture predictive coding method, moving picture predictive coding program, moving picture predictive decoding apparatus, moving picture predictive decoding method, and moving picture predictive decoding program
JP7026762B2 (en) Moving image prediction decoding method
JP6229023B2 (en) Moving picture predictive decoding method and moving picture predictive decoding apparatus
JP5977852B2 (en) Moving picture predictive coding apparatus, moving picture predictive coding method, moving picture predictive coding program, moving picture predictive decoding apparatus, moving picture predictive decoding method, and moving picture predictive decoding program
JP2018026872A (en) Moving image prediction decoding method and moving image prediction decoding device
JP6967653B2 (en) Moving image prediction decoding method
JP6637151B2 (en) Video prediction decoding method
JP2020043613A (en) Moving picture prediction decoding method
JP2017073798A (en) Moving image prediction decoding device and moving image prediction decoding method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160412

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160516

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160722

R150 Certificate of patent or registration of utility model

Ref document number: 5977852

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250