JP2010041353A - Moving image decoding method, decoding device and decoding program - Google Patents

Moving image decoding method, decoding device and decoding program Download PDF

Info

Publication number
JP2010041353A
JP2010041353A JP2008201456A JP2008201456A JP2010041353A JP 2010041353 A JP2010041353 A JP 2010041353A JP 2008201456 A JP2008201456 A JP 2008201456A JP 2008201456 A JP2008201456 A JP 2008201456A JP 2010041353 A JP2010041353 A JP 2010041353A
Authority
JP
Japan
Prior art keywords
picture
decoding
dpb
decoded
random access
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.)
Pending
Application number
JP2008201456A
Other languages
Japanese (ja)
Inventor
Shigeru Fukushima
茂 福島
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP2008201456A priority Critical patent/JP2010041353A/en
Publication of JP2010041353A publication Critical patent/JP2010041353A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To randomly access and decode efficiently encoded moving image encoded signals by performing DPB (Decoded Picture Buffer) control holding a random access point there between while guaranteeing random access at the random access point. <P>SOLUTION: When DPB information is added to the header of an image obtained by performing decoding in an entropy decoding section 202, a DPB initialization section 203 initializes a DPB 207 according to the DPB information. The DPB information includes the image information (a number depending on a decoding order and a number depending on the display order of the image) of all the images present in the DPB inside the moving image encoding device at the point of time of detecting the random access point or the like. Thus, even when a DPB control signal for controlling the DPB holding the random access point there between is included in a bit stream, decoding is performed without a failure. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は動画像復号化方法、復号化装置及び復号化プログラムに係り、特に動画像の動き補償予測に用いる復号画像メモリ(DPB:Decoded Picture Buffer)を制御する機能を持つ動画像復号化方法、復号化装置及び復号化プログラムに関する。   The present invention relates to a moving picture decoding method, a decoding apparatus, and a decoding program, and in particular, a moving picture decoding method having a function of controlling a decoded picture memory (DPB: Decoded Picture Buffer) used for motion compensation prediction of a moving picture, The present invention relates to a decoding device and a decoding program.

MPEG(Moving Picture Experts Group)に代表される動画像の圧縮符号化では、一枚の画面を構成するフレーム画像又はフィールド画像であるピクチャ内の近傍画素間の相関やピクチャ間の相関を利用して符号量を圧縮する方式が用いられる。ピクチャ内の近傍画素間の相関による冗長度は、離散コサイン変換(DCT:Discrete Cosine Transform)に代表される直交変換を行うことにより削減できる。ピクチャ間の相関による冗長度は、動き補償予測を行うことにより削減できる。   In moving picture compression coding represented by MPEG (Moving Picture Experts Group), a correlation between neighboring pixels in a picture that is a frame image or a field image constituting one screen or a correlation between pictures is used. A method of compressing the code amount is used. Redundancy due to correlation between neighboring pixels in a picture can be reduced by performing orthogonal transformation represented by Discrete Cosine Transform (DCT). Redundancy due to correlation between pictures can be reduced by performing motion compensation prediction.

ピクチャ間の相関を利用した動き補償予測では、現ピクチャより以前に復号化された参照画像を用いてピクチャ間で予測を行う。具体的には、図11に示すように、DPB(Decoded Picture Buffer)と呼ばれる復号画像メモリ11に格納されている参照画像を用いて動き補償予測を行う。図11の例では、符号化対象ピクチャ12の予め設定された複数画素からなる矩形領域であるブロック13の動き補償予測の際に、DPB11に格納されている複数の参照画像のうちピクチャ1のブロックが用いられることを示している。   In motion compensated prediction using correlation between pictures, prediction is performed between pictures using a reference image decoded before the current picture. Specifically, as shown in FIG. 11, motion compensation prediction is performed using a reference image stored in a decoded image memory 11 called a DPB (Decoded Picture Buffer). In the example of FIG. 11, the block of picture 1 among the plurality of reference images stored in the DPB 11 at the time of motion compensated prediction of the block 13 that is a rectangular area including a plurality of pixels set in advance in the encoding target picture 12. Is used.

また、DPBは参照画像の蓄積だけでなく、ピクチャの出力順序を制御する目的にも使用される。具体的には、図12に示す例のように、同図(B)に示す数字の順で符号化/復号化される各ピクチャが矢印で示す時間順で表示される場合、ピクチャの符号化/復号化順がピクチャの表示順と同一でないため、各ピクチャを動画像として再生するためには、表示時間より前に符号化/復号化したピクチャをピクチャの表示時間が来るまで、同図(A)に示すようにDPB14に一時待機させる。   DPB is used not only for storing reference images but also for controlling the output order of pictures. Specifically, as in the example shown in FIG. 12, when the pictures encoded / decoded in the numerical order shown in FIG. 12B are displayed in the time order indicated by the arrows, the pictures are encoded. Since the decoding / decoding order is not the same as the picture display order, in order to reproduce each picture as a moving picture, the picture encoded / decoded before the display time is displayed until the picture display time is reached. As shown in A), the DPB 14 is temporarily held.

このように、DPBは参照画像の蓄積、出力画像の待機という目的で使用される。しかし、ピクチャの画素値データを格納するDPBは、非常に大きなメモリ量が必要となり、メモリ量が大きなメモリは極めて高価であるため、低価格化が要求される民生用機器の動画像符号化装置や動画像復号化装置では、DPBのメモリ量には制約がある。このため、動画像符号化側では、DPBに蓄積するピクチャが所定の枚数を超えないように制御してビットストリームを生成する必要がある。   Thus, the DPB is used for the purpose of accumulating reference images and waiting for output images. However, a DPB for storing picture pixel value data requires a very large amount of memory, and a memory with a large amount of memory is extremely expensive. In addition, in a video decoding device, there is a restriction on the amount of DPB memory. For this reason, on the moving image encoding side, it is necessary to generate a bitstream by controlling so that the number of pictures stored in the DPB does not exceed a predetermined number.

そこで、MPEG−4、AVCなどの符号化方式では、DPBに蓄積するピクチャの枚数が制限された条件化で符号化効率を最大限に発揮するために、DPBを詳細に制御することを可能にしている。DPBを詳細に制御することで、最も参照画像として適切なピクチャをDPB内に蓄積し、精度の高い動き補償予測を行うことができる。   Therefore, encoding methods such as MPEG-4 and AVC make it possible to control the DPB in detail in order to maximize the encoding efficiency under the condition that the number of pictures stored in the DPB is limited. ing. By controlling the DPB in detail, it is possible to accumulate the most suitable picture as the reference image in the DPB and perform highly accurate motion compensation prediction.

ところが、符号化された動画像信号の特定の位置(ランダムアクセスポイント)でランダムアクセスを保証するためには、ランダムアクセスポイントを挟んで動き補償予測を行わないように参照画像を制限するだけでなく、DPBを制御する信号にも制限を加えなければならない。   However, in order to guarantee random access at a specific position (random access point) of the encoded video signal, not only the reference image is limited so that motion compensation prediction is not performed across the random access point. The signal that controls the DPB must also be limited.

ランダムアクセスポイントでのランダムアクセスについて、図13を用いて説明する。図13において、5枚のピクチャ0〜4がグループAを構成しており、続いて表示される5枚のピクチャ5〜9がグループBを構成しており、更に、ピクチャ0とピクチャ5がランダムアクセスポイントであり、その他のピクチャはランダムアクセスポイントでないものとする。ここで、各ピクチャの番号はそのピクチャの復号化(デコード)順を示す。従って、図13は、各ピクチャの復号化順と表示順が同じである例を示している。また、グループは、復号化順でランダムアクセスポイントのピクチャから次のランダムアクセスポイントのピクチャの直前のピクチャまでをいう。   The random access at the random access point will be described with reference to FIG. In FIG. 13, five pictures 0 to 4 constitute group A, and subsequently displayed five pictures 5 to 9 constitute group B. Furthermore, picture 0 and picture 5 are random. It is an access point, and other pictures are not random access points. Here, the number of each picture indicates the decoding order of the picture. Therefore, FIG. 13 shows an example in which the decoding order and the display order of each picture are the same. A group refers to a picture from a random access point to a picture immediately before the next random access point picture in decoding order.

さて、ランダムアクセスを保証することは、ランダムアクセスポイントから復号処理を始めた時に、ランダムアクセスポイント以降のピクチャが正常に再生できることを意味する。これは、参照画像として適切なピクチャをDPB内に蓄積したい場合などに、ランダムアクセスポイントを挟んでDPBを制御するようなメモリ操作を行うと、ランダムアクセスポイントから復号化を始めた時に、メモリ操作の対象となるピクチャがDPB内に存在しないため、復号化に不具合が発生してしまうためである。   Now, guaranteeing random access means that pictures after the random access point can be normally reproduced when decoding processing is started from the random access point. This is because when an appropriate picture as a reference image is stored in the DPB, if a memory operation is performed to control the DPB across the random access point, the memory operation is performed when decoding is started from the random access point. This is because there is a problem in decoding because there is no target picture in the DPB.

このような復号化の不具合を防止するためには、図13のグループB内のピクチャでグループA内のピクチャを対象としたDPBのメモリ操作を実行するような操作はできない。つまり、ランダムアクセスポイントでのランダムアクセスを保証するためには、ランダムアクセスポイントを挟んでDPBを制御するようなメモリ操作を禁止する必要がある。そのため、従来は、ランダムアクセスポイントにIDRピクチャを用意し、IDRピクチャが再生された場合は、DPBを強制的にクリアすることで、IDRピクチャをまたがない限り、任意に離れたピクチャの符号化順を並び替えて符号化することが可能なようになされている。   In order to prevent such decoding problems, it is not possible to perform a DPB memory operation for a picture in group A for a picture in group B in FIG. That is, in order to guarantee random access at a random access point, it is necessary to prohibit memory operations such as controlling the DPB across the random access point. For this reason, conventionally, an IDR picture is prepared at a random access point, and when the IDR picture is reproduced, the DPB is forcibly cleared, so that an arbitrarily separated picture can be encoded unless it crosses the IDR picture. The encoding can be performed by rearranging the order.

しかし、このIDRピクチャの場所以外では、符号化されたストリーム編集ができないため、従来はピクチャの順が不連続であることを示す情報を符号化ストリームに付加すると共に、複数のピクチャより構成される所定の符号化単位における最初の画面内符号化ピクチャより表示順が後になるピクチャは、当該符号化単位に含むように符号化することで、DPBを初期化しなくてもランダムアクセス等の編集を可能とする方法が従来知られている(例えば、特許文献1参照)。   However, since the encoded stream cannot be edited outside the IDR picture location, conventionally, information indicating that the order of pictures is discontinuous is added to the encoded stream, and it is composed of a plurality of pictures. A picture whose display order is later than the first intra-picture coded picture in a given coding unit is coded so that it is included in the coding unit, so that editing such as random access is possible without initializing the DPB. Is known in the art (for example, see Patent Document 1).

特開2004−274732号公報JP 2004-274732 A

しかしながら、特許文献1記載の従来の動画像符号化/復号化装置では、ランダムアクセスポイントを挟んでDPBを制御するようなメモリ操作を禁止するようなストリームを作成して復号しているため、ランダムアクセスポイントを挟んでDPB制御を行うことができず、その結果、参照画像として適切なピクチャをDPB内に参照画像として蓄積することができず、符号化効率が低下する。   However, in the conventional moving image encoding / decoding device described in Patent Document 1, a stream that prohibits memory operation that controls DPB across a random access point is generated and decoded. DPB control cannot be performed across the access point, and as a result, a picture suitable as a reference image cannot be stored as a reference image in the DPB, resulting in a decrease in coding efficiency.

本発明は上記の点に鑑みなされたもので、ランダムアクセスポイントでのランダムアクセスを保証しつつ、ランダムアクセスポイントを挟んでDPB制御を行うことで、効率良く符号化された動画像符号化信号にランダムアクセスして復号化することができる動画像復号化方法、復号化装置及び復号化プログラムを提供することを目的とする。   The present invention has been made in view of the above points, and by performing DPB control across a random access point while guaranteeing random access at a random access point, an efficiently encoded moving image encoded signal can be obtained. It is an object of the present invention to provide a moving picture decoding method, a decoding apparatus, and a decoding program that can be decoded by random access.

上記の目的を達成するため、本発明の動画像復号化方法は、一枚の画像であるピクチャ単位での動画像信号の符号化において、符号化対象のピクチャと、第1の復号画像メモリから読み出した既に局部復号されたピクチャである参照画像とを用いた動き補償予測を行いエントロピー符号化して得られたピクチャ単位の符号化信号を備えたビットストリームであり、復号化時における再生表示順で一のピクチャ以降のピクチャを再生可能とする一のピクチャに設定されるランダムアクセスポイントのピクチャを符号化する時点での第1の復号画像メモリ内に蓄積されている各ピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報を含む制御情報が、ランダムアクセスポイントのピクチャの符号化信号に付加されたビットストリームをエントロピー復号化するエントロピー復号化ステップと、エントロピー復号化ステップにより復号化された信号に対して、第2の復号画像メモリから読み出した既に復号されたピクチャを参照画像として用いた動き補償予測を行って動画像信号のピクチャを復号化すると共に、その復号化されたピクチャの内の参照画像となるピクチャを、そのピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報と共に第2の復号画像メモリに記憶するピクチャ復号化ステップと、エントロピー復号化ステップにより復号化された信号から制御情報を検出する検出ステップと、制御情報が検出ステップで検出された時点の第2の復号画像メモリ内に記憶されている各ピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報を、検出された制御情報が含む対応する情報に初期化する初期化ステップとを含むことを特徴とする。   In order to achieve the above object, a moving picture decoding method according to the present invention includes a picture to be coded and a first decoded picture memory in coding of a moving picture signal in units of pictures as one picture. This is a bitstream including a coded signal in units of pictures obtained by performing entropy coding by performing motion compensation prediction using a reference image that has already been read and is a locally decoded picture. The decoding order of each picture stored in the first decoded image memory at the time of encoding a picture at a random access point set to one picture enabling reproduction of a picture after one picture is shown Control information including at least one of information and information indicating the playback / display order is added to the encoded signal of the picture of the random access point. An entropy decoding step for entropy decoding the received bitstream, and motion compensation using the already decoded picture read from the second decoded image memory as a reference image for the signal decoded by the entropy decoding step A picture of a moving image signal is decoded by performing prediction, and a picture to be a reference image in the decoded picture is included in information indicating the decoding order of the picture and information indicating a reproduction display order. A picture decoding step stored in the second decoded image memory together with at least one information, a detection step for detecting control information from the signal decoded by the entropy decoding step, and a point in time when the control information is detected in the detection step Information indicating the decoding order of each picture stored in the second decoded image memory And at least one of information of the information indicating the reproduction display order, characterized in that it comprises an initialization step for initializing the corresponding information including the detected control information.

また、上記の目的を達成するため、本発明の動画像復号化装置は、一枚の画像であるピクチャ単位での動画像信号の符号化において、符号化対象のピクチャと、第1の復号画像メモリから読み出した既に局部復号されたピクチャである参照画像とを用いた動き補償予測を行いエントロピー符号化して得られたピクチャ単位の符号化信号を備えたビットストリームであり、復号化時における再生表示順で一のピクチャ以降のピクチャを再生可能とする一のピクチャに設定されるランダムアクセスポイントのピクチャを符号化する時点での第1の復号画像メモリ内に蓄積されている各ピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報を含む制御情報が、ランダムアクセスポイントのピクチャの符号化信号に付加されたビットストリームをエントロピー復号化するエントロピー復号化手段と、復号化されたピクチャを記憶する第2の復号画像メモリと、エントロピー復号化手段により復号化された信号に対して、第2の復号画像メモリから読み出した既に復号されたピクチャを参照画像として用いた動き補償予測を行って動画像信号のピクチャを復号化すると共に、その復号化されたピクチャの内の参照画像となるピクチャを、そのピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報と共に第2の復号画像メモリに記憶するピクチャ復号化手段と、エントロピー復号化手段により復号化された信号から制御情報を検出する検出手段と、制御情報が検出手段で検出された時点の第2の復号画像メモリ内に記憶されている各ピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報を、検出された制御情報が含む対応する情報に初期化する初期化手段とを有することを特徴とする。   In order to achieve the above object, the moving picture decoding apparatus according to the present invention includes a picture to be coded and a first decoded picture in coding of a moving picture signal in units of pictures as one picture. It is a bitstream comprising a picture-unit coded signal obtained by entropy coding by performing motion compensation prediction using a reference picture that is a locally decoded picture read from a memory, and is reproduced and displayed at the time of decoding. Decoding order of each picture stored in the first decoded picture memory at the time of encoding a picture of a random access point set to one picture enabling reproduction of the picture after one picture in order Control information including at least one of the information indicating the display order and the information indicating the playback display order is included in the encoded signal of the picture of the random access point. Entropy decoding means for entropy decoding the added bitstream, a second decoded image memory for storing the decoded picture, and a second decoding for the signal decoded by the entropy decoding means A motion compensated prediction using the already decoded picture read from the image memory as a reference image is performed to decode a picture of the moving image signal, and a picture to be a reference image in the decoded picture is Control from the picture decoding means stored in the second decoded image memory together with at least one of the information indicating the picture decoding order and the information indicating the reproduction display order, and the signal decoded by the entropy decoding means Detecting means for detecting information and stored in the second decoded image memory at the time when the control information is detected by the detecting means; Initializing means for initializing at least one of the information indicating the decoding order of each picture and the information indicating the reproduction display order to the corresponding information included in the detected control information, To do.

更に、上記の目的を達成するため、本発明の動画像復号化プログラムは、第1の発明の動画像復号化方法の各ステップをコンピュータに実行させることを特徴とする。   Furthermore, in order to achieve the above object, a moving picture decoding program of the present invention causes a computer to execute each step of the moving picture decoding method of the first invention.

本発明によれば、復号化時における再生表示順で一のピクチャ以降のピクチャを再生可能とする一のピクチャに設定されるランダムアクセスポイントのピクチャを符号化する時点での第1の復号画像メモリ内に蓄積されている各ピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報を含む制御情報が、ランダムアクセスポイントのピクチャの符号化信号に付加されたビットストリームをエントロピー復号化した信号から上記制御情報を検出し、検出した制御情報に基づいて、制御情報が含む対応する情報を初期化することにより、ランダムアクセスポイントでのランダムアクセスを保証しつつ、ランダムアクセスポイントを挟んでDPB制御を行うことができ、効率良く符号化された動画像符号化信号にランダムアクセスして復号化することができる。   According to the present invention, the first decoded image memory at the time of encoding the picture of the random access point set to one picture that can reproduce the picture after the first picture in the reproduction display order at the time of decoding. A bit stream in which control information including at least one of information indicating the decoding order of each picture and information indicating the reproduction display order stored in the picture is added to the encoded signal of the picture of the random access point By detecting the control information from the entropy-decoded signal and initializing the corresponding information included in the control information on the basis of the detected control information, the random access is ensured at the random access point. DPB control can be performed with the point in between, and the encoded video signal is efficiently encoded. It can be decoded by the dam access.

次に、本発明の実施の形態について図面と共に詳細に説明する。   Next, embodiments of the present invention will be described in detail with reference to the drawings.

まず、本発明の動画像復号化方法、復号化装置及び復号化プログラムにより復号化されるべき動画像符号化信号を生成する動画像符号化方法及び符号化装置について説明する。   First, a moving picture decoding method, a decoding apparatus, and a moving picture coding method and a coding apparatus for generating a moving picture coded signal to be decoded by a decoding program according to the present invention will be described.

図1は本発明により復号化する動画像符号化信号を生成する動画像符号化装置の一例のブロック図を示す。図1において、動画像符号化装置100は、符号化対象の画像信号が入力される入力端子101と、その入力画像信号と復号画像メモリ108に蓄積されている参照画像とから動きベクトルを検出する動きベクトル検出部102と、検出した動きベクトルを用いて動き補償予測を行う動き補償予測103と、入力画像信号から動き補償信号を減算する減算部104と、直交変換・量子化部105と、加算部106と、逆量子化・逆直交変換部107と、復号画像メモリ(DPB:Decoded Picture Buffer)108と、DPB情報生成部109と、ランダムアクセスポイント信号入力端子110と、エントロピー符号化部111と、ビットストリーム出力端子112とから構成されている。この動画像符号化装置100はDPB情報生成部109を備えている点に特徴がある。   FIG. 1 is a block diagram showing an example of a moving picture coding apparatus for generating a moving picture coded signal to be decoded according to the present invention. In FIG. 1, the moving image encoding apparatus 100 detects a motion vector from an input terminal 101 to which an image signal to be encoded is input, and the input image signal and a reference image stored in the decoded image memory 108. A motion vector detection unit 102; a motion compensation prediction 103 that performs motion compensation prediction using the detected motion vector; a subtraction unit 104 that subtracts the motion compensation signal from the input image signal; an orthogonal transform / quantization unit 105; Unit 106, inverse quantization / inverse orthogonal transform unit 107, decoded picture memory (DPB) 108, DPB information generation unit 109, random access point signal input terminal 110, entropy encoding unit 111, , And a bit stream output terminal 112. This moving image encoding apparatus 100 is characterized in that it includes a DPB information generation unit 109.

次に、この動画像符号化装置100の動作について説明する。入力端子101を介して入力された動画像の画像信号は、減算部104に供給される一方、動きベクトル検出部102に供給される。動きベクトル検出部102は、入力された動画像の画像信号の一画面を構成するフレーム画像又はフィールド画像であるピクチャ内の所定の画素数からなる矩形領域(マクロブロック)単位で、DPB108に記憶されている参照画像信号の探索範囲内で移動して参照画像信号のマクロブロックとブロックマッチングを行うことで、動きベクトルを検出する。   Next, the operation of the moving picture coding apparatus 100 will be described. An image signal of a moving image input via the input terminal 101 is supplied to the subtraction unit 104 and is also supplied to the motion vector detection unit 102. The motion vector detection unit 102 is stored in the DPB 108 in units of a rectangular area (macroblock) composed of a predetermined number of pixels in a picture that is a frame image or a field image constituting one screen of an image signal of an input moving image. The motion vector is detected by moving within the search range of the reference image signal and performing block matching with the macroblock of the reference image signal.

動き補償部103は、動きベクトル検出部102により検出された動きベクトルを用いて、DPB108から供給された参照画像信号より動き補償予測を行い、動き補償予測信号を生成する。減算部104は、入力画像信号が参照画像信号を用いず画面内予測符号化して得られるIピクチャは、減算することなくそのまま直交変換・量子化部105に供給する(MPEG2では入力画像信号から減算することなく画面内符号化を行うが、MPEG−4AVC等では、Iピクチャにおいても減算を行い画面内予測符号化を行う。)。   The motion compensation unit 103 performs motion compensation prediction based on the reference image signal supplied from the DPB 108 using the motion vector detected by the motion vector detection unit 102, and generates a motion compensation prediction signal. The subtracting unit 104 supplies an I picture obtained by performing intra prediction encoding without using a reference image signal as an input image signal to the orthogonal transform / quantization unit 105 without subtraction (in MPEG2, subtracting from the input image signal) (Intra-frame encoding is performed without MPEG, but in MPEG-4 AVC and the like, subtraction is also performed on I pictures to perform intra-frame predictive encoding.)

一方、減算部104は、1枚の参照画像のみを参照して予測符号化を行うPピクチャ、又は時間的に前又は後の2枚の参照画像のうち任意に組み合わせた2枚の参照画像を参照して予測符号化を行うBピクチャの場合は、入力画像信号と上記の動き補償予測信号との減算を行い、その差分信号を直交変換・量子化部105に供給する。   On the other hand, the subtracting unit 104 obtains a P picture that performs predictive coding with reference to only one reference image, or two reference images that are arbitrarily combined among two reference images before or after in time. In the case of a B picture for which predictive encoding is performed with reference, subtraction is performed between the input image signal and the motion compensated prediction signal, and the difference signal is supplied to the orthogonal transform / quantization unit 105.

直交変換・量子化部105は、減算部104から入力された信号を、例えば離散フーリエ変換(DCT)等の直交変換を行った後、それにより得られた直交変換係数を量子化する。逆量子化・逆直交変換部107は、直交変換・量子化部105から出力された量子化後信号を逆量子化した後、逆直交変換して差分信号等を復号化する。   The orthogonal transform / quantization unit 105 performs orthogonal transform such as discrete Fourier transform (DCT) on the signal input from the subtraction unit 104, and then quantizes the orthogonal transform coefficient obtained thereby. The inverse quantization / inverse orthogonal transform unit 107 performs inverse quantization on the quantized signal output from the orthogonal transform / quantization unit 105 and then performs inverse orthogonal transform to decode the difference signal and the like.

加算部106は、動き補償部103からの動き補償予測信号と、逆量子化・逆直交変換部107からの逆直交変換後信号とを加算することで入力画像信号のピクチャを復号化し、その復号化したピクチャを参照画像信号としてDPB108に格納する。   The addition unit 106 decodes the picture of the input image signal by adding the motion compensated prediction signal from the motion compensation unit 103 and the signal after inverse orthogonal transform from the inverse quantization / inverse orthogonal transform unit 107, and decodes the decoded picture. The converted picture is stored in the DPB 108 as a reference image signal.

DPB情報生成部109は、符号化対象のピクチャがランダムアクセスポイントであることを示す信号がランダムアクセスポイント信号入力端子110から入力された場合に、DPB108のその時点のすべての記憶ピクチャを示すDPB情報を生成する。ここで、ランダムアクセスポイントとは、表示順でそれ以降のピクチャを再生可能とする先頭のピクチャを示すポイントである。   When a signal indicating that the picture to be encoded is a random access point is input from the random access point signal input terminal 110, the DPB information generation unit 109 indicates DPB information indicating all stored pictures at that time in the DPB 108. Is generated. Here, the random access point is a point indicating a leading picture that enables playback of subsequent pictures in the display order.

次に、DPB情報生成部109の動作について図2のフローチャートを用いて詳しく説明する。   Next, the operation of the DPB information generation unit 109 will be described in detail with reference to the flowchart of FIG.

DPB情報生成部109は、符号化対象のピクチャがランダムアクセスポイントであることを示す信号が入力されるかどうか監視しており(ステップS11)、ランダムアクセスポイントであることを示す信号が入力されたことを検出すると、その検出時点におけるDPB108内にあるすべてのピクチャ情報(デコード順序に依存した番号、ピクチャの表示順に依存した番号)を収集し、これらから現在のDPB情報を生成する(ステップS12)。   The DPB information generation unit 109 monitors whether or not a signal indicating that the picture to be encoded is a random access point is input (step S11), and a signal indicating that it is a random access point is input. When this is detected, all the picture information (numbers depending on the decoding order, numbers depending on the display order of pictures) in the DPB 108 at the time of detection is collected, and current DPB information is generated from these (step S12). .

例えば、図3に示すように、DPB108内に記憶されている現在のピクチャがピクチャ31〜34の計4枚であるものとする。また、1枚目のピクチャ31のデコード順序は「1」、表示順序は「1」であり、2枚目のピクチャ32のデコード順序は「2」、表示順序は「4」であり、3枚目のピクチャ33のデコード順序は「5」、表示順序は「7」であり、4枚目のピクチャ34のデコード順序は「9」、表示順序は「8」であるものとする。   For example, as shown in FIG. 3, it is assumed that the current picture stored in the DPB 108 is a total of four pictures 31-34. The decoding order of the first picture 31 is “1”, the display order is “1”, the decoding order of the second picture 32 is “2”, and the display order is “4”. It is assumed that the decoding order of the picture 33 of the eye is “5”, the display order is “7”, the decoding order of the fourth picture 34 is “9”, and the display order is “8”.

図1のDPB情報生成部109は、ランダムアクセスポイントであることを示す信号と、そのランダムアクセスポイント検出時点におけるDPB108内にある4枚すべてのピクチャ31〜34のピクチャ情報(デコード順序に依存した番号、ピクチャの表示順に依存した番号)と、DPB初期化情報と、DPB制御信号などを、DPB情報として後述するエントロピー符号化部111に供給してビットストリームにヘッダとして付加する。これにより、ランダムアクセスポイントを挟んでDPBの制御を行っている部分にランダムアクセスした場合にも不具合なく復号化することが可能になるため、ランダムアクセスポイントでのランダムアクセスが保証できる。ランダムアクセスについての詳しい説明は、後述する動画像復号化装置で説明する。   The DPB information generation unit 109 in FIG. 1 includes a signal indicating that it is a random access point, and picture information of all four pictures 31 to 34 in the DPB 108 at the time of detection of the random access point (numbers depending on the decoding order). , A number that depends on the display order of pictures), DPB initialization information, DPB control signals, and the like are supplied as DPB information to an entropy encoding unit 111, which will be described later, and added to the bitstream as a header. As a result, even when random access is performed to a portion where DPB control is performed across the random access point, decoding can be performed without any problem, and therefore, random access at the random access point can be guaranteed. A detailed description of random access will be given in a video decoding device to be described later.

図1に戻って説明する。図1のエントロピー符号化部111は、直交変換・量子化部105から出力された量子化後信号をエントロピー符号化して得た各ピクチャの符号化データに、DPB情報生成部109で生成されたDPB情報をヘッダ情報として付加してエントロピー符号化する。   Returning to FIG. The entropy encoding unit 111 in FIG. 1 uses the DPB information generation unit 109 to generate the encoded data of each picture obtained by entropy encoding the quantized signal output from the orthogonal transform / quantization unit 105. Information is added as header information and entropy-coded.

図4は、エントロピー符号化部111から出力されるビットストリーム中のピクチャデータの一例の構成を示す。図4に示すように、ピクチャデータは、ランダムアクセスポイントであるか否かを示すフラグ(リカバリポイント)41、DPB情報生成部109で生成されたDPB情報42、後述するDPB制御信号を含むその他のヘッダ43、符号化データ44が時系列的に合成された構成である。上記のフラグ41は、ランダムアクセスポイントを示す所定の値のときは、ランダムアクセスポイント信号として検出される。   FIG. 4 shows an exemplary configuration of picture data in the bit stream output from the entropy encoding unit 111. As shown in FIG. 4, the picture data includes a flag (recovery point) 41 indicating whether or not it is a random access point, DPB information 42 generated by the DPB information generation unit 109, and other DPB control signals including a DPB control signal described later. In this configuration, the header 43 and the encoded data 44 are synthesized in time series. When the flag 41 has a predetermined value indicating a random access point, it is detected as a random access point signal.

エントロピー符号化部111から出力された上記のピクチャデータの時系列合成信号であるビットストリームは、出力端子112を介して、図示しない公知の記録装置により記録媒体に記録されるか、あるいは通信ネットワークを介して配信される。   A bit stream, which is a time-series synthesized signal of the picture data output from the entropy encoding unit 111, is recorded on a recording medium by a known recording device (not shown) via the output terminal 112, or connected to a communication network. Delivered through.

このように、図1に示した構成の符号化装置100は、ランダムアクセスポイントにおいて、その時点でのDPB108の記憶ピクチャに関するDPB情報をヘッダ情報としてビットストリームに付加することで、後述するようにランダムアクセスポイントでのランダムアクセスを保証しつつ、ランダムアクセスポイントを挟んでDPB制御を行うことができるため、符号化効率を向上させることができる。   As described above, the encoding apparatus 100 having the configuration shown in FIG. 1 adds the DPB information related to the stored picture of the DPB 108 at that time to the bit stream at the random access point, as described later, and randomly Since DPB control can be performed across a random access point while ensuring random access at the access point, coding efficiency can be improved.

次に、DPBの制御方法について説明する。まず、一般的なDPBの詳細な制御方法について図5と共に説明する。図5において、平行四辺形はピクチャを示し、そのピクチャ内の数字は、復号化(デコード)順を示す。この図5の例では、DPBに蓄積するピクチャの枚数制限は4枚分であるとする。   Next, a DPB control method will be described. First, a detailed control method of a general DPB will be described with reference to FIG. In FIG. 5, parallelograms indicate pictures, and the numbers in the pictures indicate the decoding order. In the example of FIG. 5, it is assumed that the limit on the number of pictures stored in the DPB is four.

図5(A)は、0〜3までのピクチャについて符号化/復号化が終了した状態を示しており、すべてのピクチャをDPB中に蓄積している。図5(B)は、さらにピクチャ4について符号化/復号化が終了した状態を示しており、ピクチャ4をDPBに蓄積するためには、DPB内にある0〜3までのピクチャのうち、少なくとも1つのピクチャをDPBから消去する必要がある。   FIG. 5A shows a state where encoding / decoding has been completed for pictures 0 to 3, and all the pictures are stored in the DPB. FIG. 5B shows a state where the encoding / decoding is further completed for the picture 4, and in order to store the picture 4 in the DPB, at least of the pictures 0 to 3 in the DPB. One picture needs to be erased from the DPB.

従来の符号化方式では、FIFO(First In,First Out)と呼ばれる方式で、古いピクチャから順にDPBから消去することで、DPBを暗示的に制御していた。しかし、このFIFO方式では、最も古いピクチャであるピクチャ0を参照画像としてDPBに残したい場合には対応できなかった。   In the conventional encoding method, the DPB is implicitly controlled by erasing from the DPB in order from the old picture in a method called FIFO (First In, First Out). However, this FIFO method cannot cope with the case where it is desired to leave the oldest picture, picture 0, as a reference image in the DPB.

そこで、消去したいピクチャ番号の情報をビットストリーム中に付加することで、DPBを詳細に制御することが可能となる。つまり、消去するピクチャはピクチャ1であるという情報をビットストリーム中に明示的に付加することで、図5(B)に示すように、DPB内のピクチャ1を消去することでピクチャ0をDPB内に残すことができる。同様に、図5(C)は、ピクチャ5について符号化/復号化が終了した状態を示しており、ピクチャ5をDPBに蓄積するために、ピクチャ2を消去した状態を示す。   Therefore, it is possible to control the DPB in detail by adding information on the picture number to be erased to the bit stream. That is, by explicitly adding information that the picture to be erased is picture 1 to the bitstream, picture 0 in DPB is erased by erasing picture 1 in DPB as shown in FIG. Can be left in. Similarly, FIG. 5C shows a state in which encoding / decoding has been completed for picture 5, and shows a state in which picture 2 has been deleted in order to store picture 5 in the DPB.

このように、DPBを詳細に制御することを可能にしたことで、参照画像として適切なピクチャをDPB内に参照画像として蓄積することができ、その結果、精度の高い動き補償予測が行えるため符号化効率を向上させることができる。   As described above, since it is possible to control the DPB in detail, an appropriate picture as a reference image can be stored as a reference image in the DPB, and as a result, motion compensation prediction with high accuracy can be performed. Efficiency can be improved.

次に、動画像符号化装置100による符号化効率を向上させることが可能なDPB制御の一例について図6及び図7と共に説明する。図6は、平行四辺形で示すピクチャを表示順に並べた図を示し、ピクチャ内の数字はそのピクチャのデコード(復号化)順を示す。ここで、便宜上、以下の説明ではデコード順がN番目のピクチャをピクチャNというものとする。また、斜線を付して示すピクチャは、参照画像を示しており、矢印は動き補償予測に用いる参照画像を示している。例えば、ピクチャ7はピクチャ1とピクチャ6から動き補償予測を行うことを矢印で示している。   Next, an example of DPB control capable of improving the encoding efficiency of the moving image encoding apparatus 100 will be described with reference to FIGS. 6 and 7. FIG. 6 shows a diagram in which pictures represented by parallelograms are arranged in the display order, and the numbers in the pictures indicate the decoding (decoding) order of the pictures. Here, for convenience, in the following description, the Nth picture in the decoding order is referred to as a picture N. In addition, a picture indicated by hatching indicates a reference image, and an arrow indicates a reference image used for motion compensation prediction. For example, an arrow indicates that picture 7 performs motion compensation prediction from picture 1 and picture 6.

また、ピクチャ0とピクチャ5がランダムアクセスポイントのピクチャである。また、ピクチャ0、3、2、4、1の5枚のピクチャがグループAを構成しており、続いて表示されるピクチャ7、6、8、5の4枚のピクチャがグループBを構成している。ここで、グループとは、デコード順でランダムアクセスポイントのピクチャから次のランダムアクセスポイントのピクチャの直前のピクチャまでのピクチャ群をいう。ここでは、ランダムアクセスポイントのピクチャ0は、0番目のデコード順のピクチャであり、次のランダムアクセスポイントのピクチャ5は、5番目のデコード順のピクチャであるため、ピクチャ0からピクチャ4までがグループAを構成し、ピクチャ5からピクチャ7までがグループBを構成する。従って、グループA、Bには、それぞれ1枚のランダムアクセスポイントのピクチャ0、ピクチャ5を含んでいる。更に、動画像符号化装置100は、図6の例ではグループBのピクチャ7、ピクチャ6は、異なるグループAのピクチャ1も参照画像として用いて動き補償予測を行って符号化する。   Pictures 0 and 5 are random access point pictures. In addition, five pictures of pictures 0, 3, 2, 4, 1 constitute group A, and four pictures of pictures 7, 6, 8, 5 displayed subsequently constitute group B. ing. Here, the group refers to a group of pictures from a picture at a random access point to a picture immediately before a picture at the next random access point in decoding order. Here, picture 0 of the random access point is a picture in the 0th decoding order, and picture 5 of the next random access point is a picture in the 5th decoding order. A is configured, and pictures 5 to 7 form group B. Therefore, groups A and B include one random access point picture 0 and picture 5, respectively. Further, in the example of FIG. 6, the moving image encoding apparatus 100 encodes the group B picture 7 and the picture 6 by performing motion compensation prediction using the picture 1 of the different group A as a reference image.

図7は、参照画像を記憶するDPB108の大きさが3枚である場合に、図6中の矢印で示した動き補償予測を行うことを可能にするDPB制御の説明図を示す。図7(A)は、ピクチャ2の符号化が終了した時点でのDPB108の記憶内容を示す。ピクチャ2は図6に示すように、ピクチャ0とピクチャ1とを参照画像として動き補償予測に用いて符号化され、また符号化されたピクチャ2も他のピクチャの参照画像として動き補償予測に用いられる。これらのピクチャ0、1、2はDPB108の大きさである3枚以下であるので、DPB108に図7(A)に示すように参照画像として蓄積される。   FIG. 7 is an explanatory diagram of DPB control that enables motion compensation prediction indicated by an arrow in FIG. 6 when the size of the DPB 108 that stores the reference image is three. FIG. 7A shows the contents stored in the DPB 108 at the time when the encoding of the picture 2 is completed. As shown in FIG. 6, picture 2 is coded using motion compensation prediction using picture 0 and picture 1 as reference images, and coded picture 2 is also used for motion compensation prediction as a reference picture of another picture. It is done. Since these pictures 0, 1, and 2 are three or less, which is the size of the DPB 108, they are stored in the DPB 108 as reference images as shown in FIG.

続いて、ピクチャ3が図6に示すようにDPB108内のピクチャ0とピクチャ2とを参照画像として動き補償予測に用いて符号化されるが、ピクチャ3は図6に示すように、参照画像として用いられないので、DPB108には蓄積されない。続いて、ピクチャ4が図6に示すようにDPB108内のピクチャ2とピクチャ1とを参照画像として動き補償予測に用いて符号化されるが、ピクチャ4は図6に示すように、参照画像として用いられないので、DPB108には蓄積されない。   Subsequently, picture 3 is encoded using motion compensation prediction using pictures 0 and 2 in DPB 108 as reference pictures as shown in FIG. 6, but picture 3 is used as a reference picture as shown in FIG. Since it is not used, it is not stored in the DPB 108. Subsequently, as shown in FIG. 6, picture 4 is encoded using motion compensation prediction using picture 2 and picture 1 in DPB 108 as reference pictures, but picture 4 is used as a reference picture as shown in FIG. Since it is not used, it is not stored in the DPB 108.

続いて、ランダムアクセスポイントのピクチャ5が図6に示すように他のピクチャを参照画像として用いることなく符号化される。このピクチャ5は図6に示すように、ピクチャ6、8の符号化時に参照画像として動き補償予測に用いられるので、DPB108に蓄積される。しかし、ピクチャ5の符号化終了時には、DPB108には図7(A)に示すようにその大きさ一杯に既にピクチャ0、1、2が蓄積されているので、ピクチャ5をDPB108に蓄積するには、既に蓄積されている3枚のピクチャの中から1枚のピクチャを消去する必要がある。   Subsequently, picture 5 of the random access point is encoded without using another picture as a reference picture as shown in FIG. As shown in FIG. 6, the picture 5 is used as a reference image for motion compensation prediction when the pictures 6 and 8 are encoded, and thus is stored in the DPB 108. However, at the end of encoding picture 5, since pictures 0, 1, and 2 are already stored in DPB 108 as shown in FIG. 7A, in order to store picture 5 in DPB 108 It is necessary to erase one picture from the three pictures already stored.

ここで、ピクチャ5の符号化終了後に符号化するピクチャ6〜ピクチャ8の動き補償予測には、図6に示すようにピクチャ0は使用しないので、ピクチャ5の符号化終了時には図7(B)に示すように、ピクチャ0を消去してピクチャ5をDPB108に蓄積する。この消去はピクチャ0がDPB108にピクチャ1、2よりも早く記憶されたピクチャであるので、FIFO方式での制御で対応可能である。   Here, as shown in FIG. 6, picture 0 is not used for motion compensated prediction of picture 6 to picture 8 to be encoded after picture 5 has been encoded. Therefore, when picture 5 has been encoded, FIG. As shown in FIG. 4, picture 0 is deleted and picture 5 is stored in DPB 108. This erasure can be dealt with by the FIFO method because picture 0 is stored in DPB 108 earlier than pictures 1 and 2.

続いて、ピクチャ6が図6に示すようにDPB108内のピクチャ1とピクチャ5とを参照画像として動き補償予測に用いて符号化される。このピクチャ6は図6に示すように、ピクチャ7、8の符号化時に参照画像として動き補償予測に用いられるので、DPB108に蓄積される。しかし、ピクチャ6の符号化終了時には、DPB108には図7(B)に示すようにその大きさ一杯に既にピクチャ1、2、5が蓄積されているので、ピクチャ6をDPB108に蓄積するには、既に蓄積されている3枚のピクチャの中から1枚のピクチャを消去する必要がある。   Subsequently, as shown in FIG. 6, picture 6 is encoded using motion compensation prediction using pictures 1 and 5 in DPB 108 as reference images. As shown in FIG. 6, the picture 6 is used as a reference image for motion compensation prediction when the pictures 7 and 8 are encoded, and thus is stored in the DPB 108. However, at the end of encoding picture 6, pictures 1, 2, and 5 are already stored in DPB 108 to their full size as shown in FIG. 7B, so that picture 6 is stored in DPB 108. It is necessary to erase one picture from the three pictures already stored.

ここで、ピクチャ6の符号化終了後に符号化するピクチャ7〜ピクチャ8の動き補償予測には、図6に示すようにピクチャ2は使用しないが、ピクチャ1はピクチャ7の符号化時に参照画像として動き補償予測を行うためにDPB108に蓄積しておく必要がある。従って、ピクチャ6の符号化終了時には図7(C)に示すように、ピクチャ1よりも先にピクチャ2をDPB108から消去してピクチャ6をDPB108に蓄積する。この消去はFIFO方式では対応できないため、ピクチャ6のDPB制御信号にピクチャ2をDPB108から消去する情報を伝達することで対応する。   Here, for motion compensated prediction of picture 7 to picture 8 to be encoded after the encoding of picture 6, picture 2 is not used as shown in FIG. 6, but picture 1 is used as a reference image when picture 7 is encoded. In order to perform motion compensation prediction, it is necessary to accumulate in the DPB 108. Therefore, at the end of encoding picture 6, picture 2 is erased from DPB 108 before picture 1 and picture 6 is stored in DPB 108, as shown in FIG. Since this erasure cannot be handled by the FIFO method, it is handled by transmitting information for erasing picture 2 from the DPB 108 to the DPB control signal of picture 6.

ここで、従来は上記のようなランダムアクセスポイントを挟んだDPB制御が禁止されていたため、ランダムアクセスポイントの前後で動き補償予測を行う参照画像が制限され、符号化効率を向上させることができなかった。   Here, since DPB control with a random access point as described above was prohibited in the past, reference images for motion compensation prediction before and after the random access point are limited, and the encoding efficiency cannot be improved. It was.

これに対し、動画像符号化装置100では、ランダムアクセスポイントのピクチャ5検出時点でDPB108には、図7(A)に示すように、そのピクチャ5と異なるグループAの3枚のピクチャ0、1、2が記憶されており、かつ、それらのピクチャ0、1、2のデコード順序に依存する番号と表示順序に依存する番号とを含むDPB情報をヘッダ情報としてビットストリームに付加するようにしているので、ランダムアクセスポイントから復号化した場合のDPBの記憶状態を知ることができる。そのため、復号化装置にて不具合なくDPB制御情報を認識でき、図7(B)、(C)に示すようなランダムアクセスポイントを挟んだDPB制御ができる。従って、本実施の形態によれば、ランダムアクセスポイントでのランダムアクセスを保証しつつ、ランダムアクセスポイントを挟んでDPBの制御を行うことができ、符号化効率を向上させることができる。   On the other hand, in the moving picture coding apparatus 100, when the picture 5 at the random access point is detected, the DPB 108 includes three pictures 0, 1 in a group A different from the picture 5 as shown in FIG. 2 is stored, and DPB information including a number depending on the decoding order of the pictures 0, 1, and 2 and a number depending on the display order is added to the bitstream as header information. Therefore, it is possible to know the storage state of the DPB when decrypted from a random access point. Therefore, the DPB control information can be recognized without any problem by the decoding device, and DPB control with a random access point as shown in FIGS. 7B and 7C can be performed. Therefore, according to the present embodiment, it is possible to control the DPB across the random access points while guaranteeing random access at the random access points, and to improve the encoding efficiency.

次に、本発明の動画像復号化装置の実施の形態について図面と共に説明する。   Next, an embodiment of the moving picture decoding apparatus of the present invention will be described with reference to the drawings.

図8は、本発明になる動画像復号化装置の一実施の形態のブロック図を示す。この実施の形態の動画像復号化装置200は、例えば図1の動画像符号化装置100により生成されたビットストリームが、記録媒体又は配信ネットワークを介して入力される入力端子201と、エントロピー復号化を行うエントロピー復号化部202と、エントロピー復号化部202からの信号が供給されるDPB初期化部203、動き補償部204及び逆量子化・逆直交変換部205と、加算部206と、復号画像メモリ(DPB)207とから構成されている。この動画像復号化装置200は、DPB初期化部203を備えている点に特徴がある。   FIG. 8 shows a block diagram of an embodiment of a moving picture decoding apparatus according to the present invention. The moving picture decoding apparatus 200 according to this embodiment includes an input terminal 201 to which a bit stream generated by the moving picture encoding apparatus 100 in FIG. 1 is input via a recording medium or a distribution network, and entropy decoding. An entropy decoding unit 202, a DPB initialization unit 203 to which a signal from the entropy decoding unit 202 is supplied, a motion compensation unit 204, an inverse quantization / inverse orthogonal transform unit 205, an addition unit 206, and a decoded image And a memory (DPB) 207. The moving picture decoding apparatus 200 is characterized in that it includes a DPB initialization unit 203.

次に、この動画像復号化装置200の動作について説明する。エントロピー復号化部202は、記録媒体又は配信ネットワークより入力端子201を介して入力された、例えば図1の動画像符号化装置100により生成されたビットストリームのエントロピー復号化を行い、復号化して得られた信号をDPB初期化部203、動き補償部204及び逆量子化・逆直交変換部205にそれぞれ供給する。   Next, the operation of the moving picture decoding apparatus 200 will be described. The entropy decoding unit 202 performs entropy decoding of, for example, a bitstream generated by the moving image encoding apparatus 100 of FIG. 1 input from the recording medium or the distribution network via the input terminal 201, and obtains the result by decoding. The received signals are supplied to the DPB initialization unit 203, the motion compensation unit 204, and the inverse quantization / inverse orthogonal transform unit 205, respectively.

動き補償部204は、エントロピー復号化部202で復号化して得られた動きベクトルを用いて、DPB207から供給される参照画像信号より動き補償予測を行い、動き補償予測信号を生成して加算部206へ出力する。逆量子化・逆直交変換部205は、エントロピー復号化部202で復号化して得られた直交変換量子化係教を、逆量子化して直交変換係数を生成し、更にその直交変換係数を逆直交変換して、加算部206へ出力する。   The motion compensation unit 204 performs motion compensation prediction from the reference image signal supplied from the DPB 207 using the motion vector obtained by decoding by the entropy decoding unit 202, generates a motion compensation prediction signal, and adds the addition unit 206. Output to. The inverse quantization / inverse orthogonal transform unit 205 performs inverse quantization on the orthogonal transform quantization teacher obtained by decoding by the entropy decoding unit 202 to generate an orthogonal transform coefficient, and further inversely orthogonalizes the orthogonal transform coefficient. The data is converted and output to the adder 206.

加算部206は、逆量子化・逆直交変換部205から出力された信号と、動き補償部204から出力された動き補償予測信号とを加算して復号画像信号を生成し、その復号画像信号を出力端子208へ出力する一方、DPB207に参照画像として供給してピクチャ単位で蓄積させる。   The adding unit 206 adds the signal output from the inverse quantization / inverse orthogonal transform unit 205 and the motion compensated prediction signal output from the motion compensation unit 204 to generate a decoded image signal, and outputs the decoded image signal. While outputting to the output terminal 208, it supplies to DPB207 as a reference image, and accumulate | stores it per picture.

DPB初期化部203は、エントロピー復号化部202で復号化して得られたピクチャのヘッダにDPB初期化情報等のDPB情報(図4の42)が付加されている場合に、そのDPB情報に従ってDPB207を初期化する。   When DPB information (42 in FIG. 4) such as DPB initialization information is added to the header of the picture obtained by decoding by the entropy decoding unit 202, the DPB initialization unit 203 follows the DPB information according to the DPB information. Is initialized.

ここで、DPB初期化部203の動作について図9のフローチャートを用いて詳しく説明する。   Here, the operation of the DPB initialization unit 203 will be described in detail with reference to the flowchart of FIG.

DPB初期化部203は、入力されるピクチャデータ中のヘッダにDPB情報が付加されているか否かを監視し(ステップS21)、DPB情報が付加されていることを検出した場合は、その時点でDPB207内に記憶されているピクチャ情報(デコード順序に依存した番号、ピクチャの表示順に依存した番号)に一致するピクチャがDPB207に存在しているかのようにDPB207を初期化する(ステップS22)。   The DPB initialization unit 203 monitors whether or not DPB information is added to the header in the input picture data (step S21), and when it is detected that DPB information is added, at that time The DPB 207 is initialized as if there is a picture in the DPB 207 that matches the picture information stored in the DPB 207 (number depending on the decoding order, number depending on the display order of the pictures) (step S22).

ここで、図3と共に前述したように、DPB情報は、ランダムアクセスポイント検出時点における動画像符号化装置100内のDPB108内にあるすべてのピクチャのピクチャ情報(デコード順序に依存した番号、ピクチャの表示順に依存した番号)と、DPB初期化情報などからなる。従って、例えば、ピクチャデータが図4に示した構成の場合に、DPB初期化情報などを示すヘッダ42に、図10のようなデータ(DPB情報)が付加されている。   Here, as described above with reference to FIG. 3, the DPB information is the picture information of all pictures in the DPB 108 in the moving picture coding apparatus 100 at the time of detection of the random access point (numbers depending on the decoding order, display of pictures) (Number depending on the order) and DPB initialization information. Therefore, for example, when the picture data has the configuration shown in FIG. 4, data (DPB information) as shown in FIG. 10 is added to the header 42 indicating the DPB initialization information and the like.

図10に示すデータ(DPB情報)は、DPB初期化フラグと、初期化枚数と、その初期化枚数分のピクチャのピクチャ情報(デコード順序に依存した番号、ピクチャの表示順に依存した番号)とからなる。先頭のDPB初期化フラグは、値が「1」であるときDPBの初期化が必要であることを意味し、値が「0」のときはDPBの初期化が不要であることを意味する。ここでは、DPB初期化フラグの値が「1」であるので、DPBの初期化が必要であることを意味する。   The data (DPB information) shown in FIG. 10 is based on the DPB initialization flag, the number of initializations, and the picture information (number depending on the decoding order, number depending on the display order of pictures) for the number of initializations. Become. The first DPB initialization flag means that DPB initialization is necessary when the value is “1”, and that DPB initialization is not necessary when the value is “0”. Here, since the value of the DPB initialization flag is “1”, it means that the DPB needs to be initialized.

次に、図10に示す初期化枚数の値が「4」であることは、ピクチャ4枚分のDPB情報が付加されていることを意味する。従って、図10に示すように、初期化枚数に続いて、デコード順序と表示順序の組が4組付加されている。そのうち、1番目のデコード順序と表示順序の組の値が、それぞれ「1」であるので、これらは1枚目のピクチャのデコード順序が「1」であり表示順序が「1」であることを示している。続く2番目のデコード順序と表示順序の組は、2枚目のピクチャのデコード順序が「2」であり表示順序が「4」であることを示している。同様に、3番目のデコード順序と表示順序の組は、3枚目のピクチャのデコード順序が「5」であり表示順序が「7」であることを示しており、4番目のデコード順序と表示順序の組は、4枚目のピクチャのデコード順序が「9」であり表示順序が「8」であることを示している。すなわち、上記のDPB情報は、ランダムアクセスポイントのピクチャ検出時点でのDPB207に存在する4枚のピクチャが、そのデコード順序と表示順序が上記の値に設定された4枚のピクチャであるようにDPB207を初期化する。   Next, the value of the initialization number shown in FIG. 10 being “4” means that DPB information for four pictures has been added. Therefore, as shown in FIG. 10, four sets of decoding order and display order are added following the number of initializations. Among them, since the value of the first set of decoding order and display order is “1”, these indicate that the decoding order of the first picture is “1” and the display order is “1”. Show. The subsequent set of the second decoding order and the display order indicates that the decoding order of the second picture is “2” and the display order is “4”. Similarly, the third set of decoding order and display order indicates that the decoding order of the third picture is “5” and the display order is “7”, and the fourth decoding order and display order are displayed. The order set indicates that the decoding order of the fourth picture is “9” and the display order is “8”. That is, the DPB information is such that the four pictures existing in the DPB 207 at the time of picture detection at the random access point are the four pictures whose decoding order and display order are set to the above values. Is initialized.

このようなDPB情報は、ランダムアクセスを行わずに復号化を行った場合のDPB207の記憶状態を示すものであるため、ランダムアクセスを行った場合に、ランダムアクセスを行わずに復号化を行った場合のDPB207の記憶状態を知ることができる。そのため、ビットストリームにランダムアクセスポイントを挟んでDPBを制御するようなDPB制御信号が含まれていた場合にも、不具合なく復号化を行うことが可能となる。   Since such DPB information indicates the storage state of the DPB 207 when decryption is performed without performing random access, decryption is performed without performing random access when random access is performed. In this case, the storage state of the DPB 207 can be known. Therefore, even when a DPB control signal for controlling DPB with a random access point sandwiched in the bit stream is included, decoding can be performed without any problem.

このように、本実施の形態の動画像復号化装置200では、ランダムアクセスポイントでのランダムアクセスを保証しつつ、ランダムアクセスポイントを挟んでDPB制御を行うことができるため、効率良く符号化された動画像符号化信号にランダムアクセスして復号化することができる。   As described above, in the moving picture decoding apparatus 200 according to the present embodiment, DPB control can be performed across a random access point while guaranteeing random access at the random access point. A moving image encoded signal can be randomly accessed and decoded.

なお、本実施の形態の動画像復号化装置200では、ランダムアクセスポイントにおいてDPB207の記憶状態をいち早く確認することができるため、ランダムアクセスポイントを挟んで連続デコードを行っている場合に、実際のDPB状態とヘッダに付加されているDPB状態に関する情報を比較する部を設けることによって、いち早くDPBエラーを察知することが可能となる。   In the moving picture decoding apparatus 200 according to the present embodiment, the storage state of the DPB 207 can be quickly confirmed at the random access point. Therefore, when the continuous decoding is performed across the random access point, the actual DPB By providing a section that compares the state and information on the DPB state added to the header, it becomes possible to quickly detect a DPB error.

また、本発明は以上の実施の形態に限定されるものではなく、例えば上記の動画像復号化装置200の機能をコンピュータに実現させるための動画像復号化プログラムも含むものである。この動画像復号化プログラムは、記録媒体から読み取られてコンピュータに取り込まれてもよいし、通信ネットワークを介して伝送されてコンピュータに取り込まれてもよい。   Further, the present invention is not limited to the above embodiment, and includes a moving picture decoding program for causing a computer to realize the functions of the moving picture decoding apparatus 200, for example. The moving picture decoding program may be read from a recording medium and taken into a computer, or may be transmitted via a communication network and taken into a computer.

なお、以上の実施の形態では、DPB情報はDPB内の各ピクチャの復号化順序に依存した番号及び表示順に依存した番号の両方を示す情報を含むものとして説明したが、少なくともどちらか一方の番号を示す情報を含むものとしてもよい。   In the above embodiment, the DPB information has been described as including information indicating both the number depending on the decoding order of each picture in the DPB and the number depending on the display order, but at least one of the numbers May be included.

本発明は、動画像復号化装置、プログラムに関するもので、特に符号化効率を向上させつつランダムアクセスが可能となるように、効率良く符号化された動画像符号化信号にランダムアクセスして復号化する場合に非常に有用である。   The present invention relates to a moving picture decoding apparatus and program, and in particular, performs random access to a moving picture coded signal that has been coded efficiently so as to enable random access while improving coding efficiency. It is very useful when you want.

本発明により復号化する動画像符号化信号を生成する動画像符号化装置の一例のブロック図である。It is a block diagram of an example of the moving image encoding apparatus which produces | generates the moving image encoding signal decoded by this invention. 図1中のDPB情報生成部の動作説明用フローチャートである。3 is a flowchart for explaining the operation of a DPB information generation unit in FIG. 1. DPB情報生成の一例を示す説明図である。It is explanatory drawing which shows an example of DPB information generation. DPB情報を含んだピクチャデータの一例の構成を示す図である。It is a figure which shows the structure of an example of the picture data containing DPB information. DPBを詳細に制御する一例を示す説明図である。It is explanatory drawing which shows an example which controls DPB in detail. 符号化効率を向上させるDPB制御方法の一例を示す説明図(その1)である。It is explanatory drawing (the 1) which shows an example of the DPB control method which improves encoding efficiency. 符号化効率を向上させるDPB制御方法の一例を示す説明図(その2)である。It is explanatory drawing (the 2) which shows an example of the DPB control method which improves encoding efficiency. 本発明の動画像復号化装置の一実施の形態のブロック図である。It is a block diagram of one embodiment of a moving picture decoding apparatus of the present invention. 図8中のDPB初期化部の動作説明用フローチャートである。FIG. 9 is a flowchart for explaining the operation of the DPB initialization unit in FIG. 8. FIG. DPB情報の一例を示す説明図である。It is explanatory drawing which shows an example of DPB information. 参照画像を蓄積するDPBの説明図である。It is explanatory drawing of DPB which accumulate | stores a reference image. 出力画像の待機のためのDPBの説明図である。It is explanatory drawing of DPB for waiting for an output image. ランダムアクセスポイントでのランダムアクセスの保証についての説明図である。It is explanatory drawing about the guarantee of the random access in a random access point.

符号の説明Explanation of symbols

100 動画像符号化装置
101 画像信号入力端子
102 動きベクトル検出部
103、204 動き補償部
104 減算部
105 直交変換・量子化部
106、206 加算部
107、205 逆量子化・逆直交変換部
108、207 復号画像メモリ(DPB)
109 DPB情報生成部
110 ランダムアクセスポイント信号入力端子
111 エントロピー符号化部
112 ビットストリーム出力端子
200 動画像復号化装置
201 ビットストリーム入力端子
202 エントロピー復号化部
203 DPB初期化部
208 復号画像信号出力端子
DESCRIPTION OF SYMBOLS 100 Moving image encoder 101 Image signal input terminal 102 Motion vector detection part 103,204 Motion compensation part 104 Subtraction part 105 Orthogonal transformation / quantization part 106,206 Addition part 107,205 Inverse quantization / inverse orthogonal transformation part 108, 207 Decoded image memory (DPB)
109 DPB Information Generation Unit 110 Random Access Point Signal Input Terminal 111 Entropy Coding Unit 112 Bit Stream Output Terminal 200 Video Decoding Device 201 Bit Stream Input Terminal 202 Entropy Decoding Unit 203 DPB Initialization Unit 208 Decoded Image Signal Output Terminal

Claims (3)

一枚の画像であるピクチャ単位での動画像信号の符号化において、符号化対象のピクチャと、第1の復号画像メモリから読み出した既に局部復号されたピクチャである参照画像とを用いた動き補償予測を行いエントロピー符号化して得られた前記ピクチャ単位の符号化信号を備えたビットストリームであり、復号化時における再生表示順で一のピクチャ以降のピクチャを再生可能とする前記一のピクチャに設定されるランダムアクセスポイントのピクチャを符号化する時点での前記第1の復号画像メモリ内に蓄積されている各ピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報を含む制御情報が、前記ランダムアクセスポイントのピクチャの前記符号化信号に付加されたビットストリームをエントロピー復号化するエントロピー復号化ステップと、
前記エントロピー復号化ステップにより復号化された信号に対して、第2の復号画像メモリから読み出した既に復号されたピクチャを参照画像として用いた動き補償予測を行って前記動画像信号のピクチャを復号化すると共に、その復号化された前記ピクチャの内の参照画像となるピクチャを、そのピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報と共に前記第2の復号画像メモリに記憶するピクチャ復号化ステップと、
前記エントロピー復号化ステップにより復号化された信号から前記制御情報を検出する検出ステップと、
前記制御情報が前記検出ステップで検出された時点の前記第2の復号画像メモリ内に記憶されている各ピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報を、検出された前記制御情報が含む対応する情報に初期化する初期化ステップと
を含むことを特徴とする動画像復号化方法。
In the encoding of a moving image signal in units of pictures, which is a single image, motion compensation using a picture to be encoded and a reference image that has already been locally decoded and read from the first decoded image memory It is a bitstream including the encoded signal in units of pictures obtained by performing prediction and entropy encoding, and is set to the one picture that enables playback of the pictures after the first picture in the playback display order at the time of decoding Information indicating the decoding order of each picture stored in the first decoded image memory and information indicating the reproduction display order at the time of encoding the picture of the random access point to be performed Control information including the entropy of the bit stream added to the encoded signal of the picture of the random access point And entropy decoding step for No. of,
For the signal decoded by the entropy decoding step, motion compensated prediction using the already decoded picture read from the second decoded image memory as a reference image is performed to decode the picture of the moving image signal In addition, the second decoded image is used as a reference image in the decoded picture, together with at least one of information indicating the decoding order of the picture and information indicating the reproduction display order. A picture decoding step stored in memory;
A detection step of detecting the control information from the signal decoded by the entropy decoding step;
At least one of the information indicating the decoding order and the reproduction display order of each picture stored in the second decoded image memory at the time when the control information is detected in the detection step. And an initialization step of initializing to corresponding information included in the detected control information.
一枚の画像であるピクチャ単位での動画像信号の符号化において、符号化対象のピクチャと、第1の復号画像メモリから読み出した既に局部復号されたピクチャである参照画像とを用いた動き補償予測を行いエントロピー符号化して得られた前記ピクチャ単位の符号化信号を備えたビットストリームであり、復号化時における再生表示順で一のピクチャ以降のピクチャを再生可能とする前記一のピクチャに設定されるランダムアクセスポイントのピクチャを符号化する時点での前記第1の復号画像メモリ内に蓄積されている各ピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報を含む制御情報が、前記ランダムアクセスポイントのピクチャの前記符号化信号に付加されたビットストリームをエントロピー復号化するエントロピー復号化手段と、
復号化されたピクチャを記憶する第2の復号画像メモリと、
前記エントロピー復号化手段により復号化された信号に対して、前記第2の復号画像メモリから読み出した既に復号されたピクチャを参照画像として用いた動き補償予測を行って前記動画像信号のピクチャを復号化すると共に、その復号化された前記ピクチャの内の参照画像となるピクチャを、そのピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報と共に前記第2の復号画像メモリに記憶するピクチャ復号化手段と、
前記エントロピー復号化手段により復号化された信号から前記制御情報を検出する検出手段と、
前記制御情報が前記検出手段で検出された時点の前記第2の復号画像メモリ内に記憶されている各ピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報を、検出された前記制御情報が含む対応する情報に初期化する初期化手段と
を有することを特徴とする動画像復号化装置。
In the encoding of a moving image signal in units of pictures, which is a single image, motion compensation using a picture to be encoded and a reference image that has already been locally decoded and read from the first decoded image memory It is a bitstream including the encoded signal in units of pictures obtained by performing prediction and entropy encoding, and is set to the one picture that enables playback of the pictures after the first picture in the playback display order at the time of decoding Information indicating the decoding order of each picture stored in the first decoded image memory and information indicating the reproduction display order at the time of encoding the picture of the random access point to be performed Control information including the entropy of the bit stream added to the encoded signal of the picture of the random access point And entropy decoding means for No. of,
A second decoded image memory for storing the decoded picture;
For the signal decoded by the entropy decoding means, a motion compensated prediction using an already decoded picture read from the second decoded image memory as a reference image is performed to decode a picture of the moving image signal And the second decoding of the picture to be a reference image of the decoded picture together with at least one of information indicating the decoding order of the picture and information indicating the playback display order. Picture decoding means for storing in an image memory;
Detecting means for detecting the control information from the signal decoded by the entropy decoding means;
At least one of the information indicating the decoding order of each picture and the information indicating the reproduction display order stored in the second decoded image memory at the time when the control information is detected by the detecting means And an initialization means for initializing the corresponding information included in the detected control information.
コンピュータに、
一枚の画像であるピクチャ単位での動画像信号の符号化において、符号化対象のピクチャと、第1の復号画像メモリから読み出した既に局部復号されたピクチャである参照画像とを用いた動き補償予測を行いエントロピー符号化して得られた前記ピクチャ単位の符号化信号を備えたビットストリームであり、復号化時における再生表示順で一のピクチャ以降のピクチャを再生可能とする前記一のピクチャに設定されるランダムアクセスポイントのピクチャを符号化する時点での前記第1の復号画像メモリ内に蓄積されている各ピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報を含む制御情報が、前記ランダムアクセスポイントのピクチャの前記符号化信号に付加されたビットストリームをエントロピー復号化するエントロピー復号化ステップと、
前記エントロピー復号化ステップにより復号化された信号に対して、第2の復号画像メモリから読み出した既に復号されたピクチャを参照画像として用いた動き補償予測を行って前記動画像信号のピクチャを復号化すると共に、その復号化された前記ピクチャの内の参照画像となるピクチャを、そのピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報と共に前記第2の復号画像メモリに記憶するピクチャ復号化ステップと、
前記エントロピー復号化ステップにより復号化された信号から前記制御情報を検出する検出ステップと、
前記制御情報が前記検出ステップで検出された時点の前記第2の復号画像メモリ内に記憶されている各ピクチャの復号化順序を示す情報及び再生表示順を示す情報の内の少なくとも一方の情報を、検出された前記制御情報が含む対応する情報に初期化する初期化ステップと
を実行させることを特徴とする動画像復号化プログラム。
On the computer,
In the encoding of a moving image signal in units of pictures, which is a single image, motion compensation using a picture to be encoded and a reference image that has already been locally decoded and read from the first decoded image memory It is a bitstream including the encoded signal in units of pictures obtained by performing prediction and entropy encoding, and is set to the one picture that enables playback of the pictures after the first picture in the playback display order at the time of decoding Information indicating the decoding order of each picture stored in the first decoded image memory and information indicating the reproduction display order at the time of encoding the picture of the random access point to be performed Control information including the entropy of the bit stream added to the encoded signal of the picture of the random access point And entropy decoding step for No. of,
For the signal decoded by the entropy decoding step, motion compensated prediction using the already decoded picture read from the second decoded image memory as a reference image is performed to decode the picture of the moving image signal In addition, the second decoded image is used as a reference image in the decoded picture, together with at least one of information indicating the decoding order of the picture and information indicating the reproduction display order. A picture decoding step stored in memory;
A detection step of detecting the control information from the signal decoded by the entropy decoding step;
At least one of the information indicating the decoding order of each picture and the information indicating the reproduction display order stored in the second decoded image memory at the time when the control information is detected in the detection step. And an initialization step of initializing the corresponding information included in the detected control information.
JP2008201456A 2008-08-05 2008-08-05 Moving image decoding method, decoding device and decoding program Pending JP2010041353A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008201456A JP2010041353A (en) 2008-08-05 2008-08-05 Moving image decoding method, decoding device and decoding program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008201456A JP2010041353A (en) 2008-08-05 2008-08-05 Moving image decoding method, decoding device and decoding program

Publications (1)

Publication Number Publication Date
JP2010041353A true JP2010041353A (en) 2010-02-18

Family

ID=42013428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008201456A Pending JP2010041353A (en) 2008-08-05 2008-08-05 Moving image decoding method, decoding device and decoding program

Country Status (1)

Country Link
JP (1) JP2010041353A (en)

Similar Documents

Publication Publication Date Title
JP2010041354A (en) Moving image coding method, coding device and coding program
KR101103723B1 (en) Video encoding method, decoding method, device thereof, program thereof, and recording medium containing the program
EP2642764B1 (en) Transcoding a video stream to facilitate accurate display
US8218949B2 (en) Video information recording device, video information recording method, and recording medium containing the video information recording program
JP5011017B2 (en) Image decoding device
JP5869047B2 (en) Method for encoding digital video data
US9275081B2 (en) Data management apparatus and data management method
KR20040094441A (en) Editing of encoded a/v sequences
US8155186B2 (en) Bit stream recording medium, video encoder, and video decoder
KR101528269B1 (en) A method for playing a moving picture
JP2006246277A (en) Re-encoding apparatus, re-encoding method, and re-encoding program
JP2014011572A5 (en) Moving picture predictive decoding apparatus, method and program
JP2007325119A (en) Image processing apparatus and method
JP2007067526A (en) Image processor
US20080298769A1 (en) Method and system for generating compressed video to improve reverse playback
KR101602871B1 (en) Method and apparatus for data encoding, method and apparatus for data decoding
JP4514666B2 (en) Video encoding device
JP2010041353A (en) Moving image decoding method, decoding device and decoding program
JP2007109329A (en) Picture data recording apparatus, picture data reproducing apparatus, picture data recording method, program, and recording medium
JP4594163B2 (en) Image coding method and image coding apparatus
JP4895396B2 (en) Image decoding apparatus and image decoding method
JP2008199521A (en) Image processing apparatus and method thereof
KR101336820B1 (en) Apparatus and method for decoding specialized multi-channel trick mode
JP2007043575A (en) Image processor and image processing method
JP2007195080A (en) Moving image decoding device and moving image decoding program