JP2006246277A - Re-encoding apparatus, re-encoding method, and re-encoding program - Google Patents

Re-encoding apparatus, re-encoding method, and re-encoding program Download PDF

Info

Publication number
JP2006246277A
JP2006246277A JP2005061772A JP2005061772A JP2006246277A JP 2006246277 A JP2006246277 A JP 2006246277A JP 2005061772 A JP2005061772 A JP 2005061772A JP 2005061772 A JP2005061772 A JP 2005061772A JP 2006246277 A JP2006246277 A JP 2006246277A
Authority
JP
Japan
Prior art keywords
picture
prediction
encoding
prediction mode
encoded 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.)
Pending
Application number
JP2005061772A
Other languages
Japanese (ja)
Inventor
Yasuo Shirosaki
康夫 城▲崎▼
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.)
Pioneer Corp
Original Assignee
Pioneer Electronic Corp
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 Pioneer Electronic Corp filed Critical Pioneer Electronic Corp
Priority to JP2005061772A priority Critical patent/JP2006246277A/en
Publication of JP2006246277A publication Critical patent/JP2006246277A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a re-encoding apparatus capable of preventing compression efficiency from being reduced, by preventing a B picture from referring to a picture that is not an original reference picture, if an I picture is defined as a particular picture for enabling random access in the case of transcoding first encoded information into second encoded information using a motion vector of the first encoded information. <P>SOLUTION: In a decoding unit 100, first encoded information is decoded and in an encoding unit 200, a part of I pictures or all the I pictures in decoded image information are set to IDR pictures. If a processing target picture is a B picture between an IDR picture and the next P picture in a decoding order and forward prediction is set as a prediction mode, that prediction mode is changed and according to the set prediction mode, the decoded image information is encoded by inter-prediction and intra-prediction, thereby producing second encoded information. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、再符号化装置、再符号化方法、および再符号化用プログラムに関し、詳細には、画像情報をインター予測およびイントラ予測で符号化した第1符号化情報を、前記第1符号化情報を復号化する際に使用した動きベクトルを使用して、第2符号化情報にトランスコードする再符号化装置、再符号化方法、および再符号化用プログラムに関する。   The present invention relates to a re-encoding device, a re-encoding method, and a re-encoding program. Specifically, the first encoding information obtained by encoding image information by inter prediction and intra prediction is used for the first encoding. The present invention relates to a re-encoding device, a re-encoding method, and a re-encoding program that transcode into second encoded information using a motion vector used when decoding information.

近年、画像情報をデジタルとして取り扱い、その際、効率の高い情報の伝送、蓄積を目的とし、画像情報特有の冗長性を利用して、離散コサイン変換等の直交変換と動き予測・補償とにより圧縮するMPEGなどの方式に準拠した装置が普及している。   In recent years, image information has been handled as digital data. At that time, for the purpose of efficient transmission and storage of information, compression is performed by orthogonal transform such as discrete cosine transform and motion prediction / compensation using redundancy unique to image information. An apparatus conforming to a system such as MPEG is widely used.

特に、MPEG2(ISO/IEC 13818-2)は、汎用画像符号化方式として定義されており、飛び越し走査画像及び順次走査画像の双方、並びに標準解像度画像及び高精細画像を網羅する標準で、プロフェッショナル用途及びコンシューマー用途の広範なアプリケーションに現在広く用いられている。MPEG2圧縮方式を用いることにより、例えば720×480画素を持つ標準解像度の飛び越し走査画像であれば4〜8Mbps、1920×1088画素を持つ高解像度の飛び越し走査画像であれば18〜22Mbpsの符号量(ビットレート)を割り当てることで、高い圧縮率と良好な画質の実現が可能である。   In particular, MPEG2 (ISO / IEC 13818-2) is defined as a general-purpose image coding system, and is a standard that covers both interlaced and progressively scanned images, standard resolution images, and high-definition images. And widely used in a wide range of applications for consumer use. By using the MPEG2 compression method, for example, a standard resolution interlaced scanning image having 720 × 480 pixels is 4 to 8 Mbps, and a high resolution interlaced scanning image having 1920 × 1088 pixels is 18 to 22 Mbps. (Bit rate) can be assigned to achieve a high compression rate and good image quality.

MPEG2は主として放送用に適合する高画質符号化を対象としていたが、MPEG1より低い符号量(ビットレート)、つまりより高い圧縮率の符号化方式には対応していなかった。携帯端末の普及により、今後そのような符号化方式のニーズは高まると思われ、これに対応してMPEG4符号化方式の標準化が行われた。   MPEG2 was mainly intended for high-quality encoding suitable for broadcasting, but did not support encoding methods with a lower code amount (bit rate) than MPEG1, that is, a higher compression rate. With the widespread use of mobile terminals, the need for such an encoding system is expected to increase in the future, and the MPEG4 encoding system has been standardized accordingly.

さらに、近年、テレビ会議用の画像符号化を当初の目的として、H.264(ITU-T Q6/16 VCEG)符号化方式の標準化が行われた。H.264は、MPEG2やMPEG4といった従来の符号化方式に比して、その符号化、復号により多くの演算量が要求されるものの、より高い符号化効率が実現されることが知られている。   Furthermore, in recent years, standardization of the H.264 (ITU-T Q6 / 16 VCEG) encoding method has been performed with the initial purpose of image encoding for video conferencing. H. H.264 is known to achieve higher encoding efficiency than a conventional encoding method such as MPEG2 or MPEG4, although a larger amount of calculation is required for encoding and decoding.

一般に動画像の符号化では、時間方向および空間方向の冗長性を削減することによって情報量の圧縮を行う。そこで時間的な冗長性の削減を目的とするインター予測符号化では、前方または後方のピクチャを参照してブロック単位で動きの検出および予測画像の作成を行い、得られた予測画像と符号化対象ピクチャとの差分値に対して符号化を行う。   In general, in encoding of moving images, the amount of information is compressed by reducing redundancy in the time direction and the spatial direction. Therefore, in inter prediction coding for the purpose of reducing temporal redundancy, motion detection and prediction image creation are performed in block units with reference to the front or rear picture, and the obtained prediction image and encoding target are obtained. Encoding is performed on the difference value from the picture.

参照ピクチャを持たずイントラ予測符号化を行うものをIピクチャと呼ぶ。また、1枚のピクチャのみを参照しインター予測符号化を行うものをPピクチャと呼ぶ。また、同時に2枚のピクチャを参照してインター予測符号化を行うことのできるものをBピクチャと呼ぶ。Bピクチャは表示時間が前方もしくは後方から任意の組み合わせとして2枚のピクチャを参照することが可能である。参照ピクチャは符号化および復号化の基本単位であるブロックごとに指定することができるが、符号化を行ったビットストリーム中に先に記述される方の参照ピクチャを第1参照ピクチャ、後に記述される方を第2参照ピクチャとして区別する。ただし、これらのピクチャを符号化および復号化する場合の条件として、参照するピクチャが既に符号化および復号化されている必要がある。   A picture that does not have a reference picture and performs intra prediction coding is called an I picture. A picture that performs inter prediction coding with reference to only one picture is called a P picture. A picture that can be subjected to inter prediction coding with reference to two pictures at the same time is called a B picture. The B picture can refer to two pictures as an arbitrary combination of display times from the front or the rear. A reference picture can be specified for each block that is a basic unit of encoding and decoding, but the reference picture described earlier in the encoded bitstream is described as the first reference picture, and is described later. Are distinguished as the second reference picture. However, as a condition for encoding and decoding these pictures, the picture to be referenced needs to be already encoded and decoded.

Pピクチャ又はBピクチャの符号化には、動き補償インター予測符号化が用いられている。動き補償インター予測符号化とは、インター予測符号化に動き補償を適用した符号化方式である。動き補償とは、単純に参照ピクチャの画素値から予測するのではなく、ピクチャ内の各部の動き量(以下、これを動きベクトルと呼ぶ)を検出し、その動きベクトルを考慮した予測を行うことにより予測精度を向上すると共に、データ量を減らす方式である。例えば、符号化対象ピクチャの動きベクトルを検出し、その動きベクトルの分だけシフトした予測値と符号化対象ピクチャとの予測残差を符号化することによりデータ量を減している。この方式の場合には、復号化の際に動きベクトルの情報が必要になるため、動きベクトルも符号化される。   Motion-compensated inter prediction coding is used for coding a P picture or a B picture. Motion compensation inter prediction coding is a coding method in which motion compensation is applied to inter prediction coding. Motion compensation is not simply predicting from the pixel value of a reference picture, but detecting the amount of motion of each part in the picture (hereinafter referred to as a motion vector) and performing prediction in consideration of the motion vector. This improves the prediction accuracy and reduces the amount of data. For example, the amount of data is reduced by detecting the motion vector of the encoding target picture and encoding the prediction residual between the prediction value shifted by the motion vector and the encoding target picture. In the case of this system, since motion vector information is required at the time of decoding, the motion vector is also encoded.

動きベクトルはブロック単位で検出されており、具体的には、符号化対象ピクチャ側のブロックを固定しておき、参照ピクチャ側のブロックを探索範囲内で移動させ、基準ブロックと最も類似する参照ブロックの位置を見つけることにより、動きベクトルが検出される。   The motion vector is detected in block units. Specifically, the block on the encoding target picture side is fixed, the reference picture block is moved within the search range, and the reference block most similar to the reference block The motion vector is detected by finding the position of.

MPEG2形式の符号化情報をH.264形式の符号化情報にトランスコードする場合に、MPEG2形式の符号化情報の制御情報(動きベクトルやピクチャタイプ等)を使用して、H.264のエンコード処理の演算量を低減することが考えられる。具体的には、H.264のエンコード処理においては、動きベクトル探索に要する演算の割合が大きく、MPEG2の動きベクトルを使用し、H.264のエンコード処理で動きベクトルの探索を省略することにより、トランスコードを高速に行うことができる。   MPEG2 format encoding information is converted into H.264 format. When transcoding into encoded information in the H.264 format, control information (motion vector, picture type, etc.) of encoded information in the MPEG2 format is used. It is conceivable to reduce the calculation amount of the H.264 encoding process. Specifically, H.C. In the H.264 encoding process, the ratio of operations required for motion vector search is large, and MPEG2 motion vectors are used. By omitting the search for motion vectors in the H.264 encoding process, transcoding can be performed at high speed.

H.264では、IDR(Instanteneous Decoding Refresh:デコーダ復号動作時の瞬時リフレッシュ)ピクチャが採用されている。このIDRピクチャは、迅速なランダムアクセスを行うためのもので、画像シーケンスの先頭のピクチャであり、参照ピクチャバッファの状態やフレーム番号、POC(Picture Order Count:ピクチャの出力順序を示す情報)など、ビットストリームを復号するために必要な全ての情報がリセットされる。   H. In H.264, IDR (Instanteneous Decoding Refresh) pictures are used. This IDR picture is used for quick random access, and is the first picture in the image sequence. The state of the reference picture buffer, the frame number, POC (Picture Order Count: information indicating the output order of pictures), etc. All information necessary to decode the bitstream is reset.

図6は、MPEG−2でClosed GOPの場合の画像符号情報の復号順と表示順の関係を示す図である。図7は、MPEG−2でopen GOPの場合の画像符号情報の復号順と表示順の関係を示す図である。図8は、Closed GOPの場合にIDRピクチャを用いた場合の参照ピクチャを説明するための図である。図9は、参照ピクチャリストを説明するための図である。図10は、Closed GOPの場合の参照ピクチャ/エリアを説明するための図である(MPEG2の動きベクトルmvを利用する場合)。図11は、Open GOPの場合の参照ピクチャ/エリアを説明するための図である。図12は、Open GOPの場合の参照ピクチャ/エリアを説明するための図である(MPEG2の動きベクトルmvを利用する場合)。   FIG. 6 is a diagram showing the relationship between the decoding order and display order of image code information in the case of Closed GOP in MPEG-2. FIG. 7 is a diagram showing the relationship between the decoding order and display order of image code information in the case of open GOP in MPEG-2. FIG. 8 is a diagram for explaining a reference picture when an IDR picture is used in the case of a Closed GOP. FIG. 9 is a diagram for explaining the reference picture list. FIG. 10 is a diagram for explaining a reference picture / area in the case of a Closed GOP (when a motion vector mv of MPEG2 is used). FIG. 11 is a diagram for explaining a reference picture / area in the case of an Open GOP. FIG. 12 is a diagram for explaining a reference picture / area in the case of an Open GOP (when a motion vector mv of MPEG2 is used).

図6および図7に示すように、画像符号情報は、複数のグループ・オブ・ピクチャGOPから構成されており、各グループ・オブ・ピクチャGOPは複数のピクチャから構成されている。各グループ・オブ・ピクチャGOPに含まれるピクチャはそれぞれ、Iピクチャ、Pピクチャ、又はBピクチャである。各ピクチャは、それぞれが符号化された順、すなわち復号化される順に配列されており、各ピクチャが表示される順序は、このような配列順序と異なっている。   As shown in FIGS. 6 and 7, the image code information is composed of a plurality of groups of pictures GOP, and each group of pictures GOP is composed of a plurality of pictures. The pictures included in each group of pictures GOP are I pictures, P pictures, or B pictures, respectively. The pictures are arranged in the order in which they are encoded, that is, the order in which they are decoded, and the order in which the pictures are displayed is different from such an arrangement order.

図7に示すように、Open GOPの場合には、復号順でIピクチャとPピクチャの間にあるBピクチャは、表示順ではIピクチャの前になり、符号化時にはIピクチャの前のPピクチャとIピクチャを予測に使用する。   As shown in FIG. 7, in the case of Open GOP, a B picture between an I picture and a P picture in decoding order is before an I picture in display order, and a P picture before an I picture is encoded. And I picture are used for prediction.

図8は、Closed GOPの場合にIDRピクチャを用いた場合の参照ピクチャを説明するための図である。図9は、参照ピクチャリストを説明するための図である。図10は、Closed GOPの場合の参照ピクチャ/エリアを説明するための図である(MPEG2の動きベクトルmvを利用する場合)。図11は、Open GOPの場合の参照ピクチャ/エリアを説明するための図である。図12は、Open GOPの場合の参照ピクチャ/エリアを説明するための図である(MPEG2の動きベクトルmvを利用する場合)。   FIG. 8 is a diagram for explaining a reference picture when an IDR picture is used in the case of a Closed GOP. FIG. 9 is a diagram for explaining the reference picture list. FIG. 10 is a diagram for explaining a reference picture / area in the case of a Closed GOP (when a motion vector mv of MPEG2 is used). FIG. 11 is a diagram for explaining a reference picture / area in the case of an Open GOP. FIG. 12 is a diagram for explaining a reference picture / area in the case of an Open GOP (when a motion vector mv of MPEG2 is used).

図8に示すように、図7で示したopen GOPの場合の画像符号情報をH.264の画像符号情報にトランスコードする場合に、PピクチャとBピクチャのピクチャタイプを変更せずに、ランダムアクセスを考慮してIピクチャの一部もしくは全部をIDRピクチャとする場合には、復号順でIピクチャとPピクチャの間にあるBピクチャは、H.264のエンコード時にIDRピクチャがくると参照ピクチャバッファはクリアされてしまうため、図11に示すように、予測に用いたPピクチャを参照することができなくなってしまう(例えば、特許文献1参照)。   As shown in FIG. 8, the image code information in the open GOP shown in FIG. When transcoding to H.264 image code information, if part or all of an I picture is an IDR picture in consideration of random access without changing the picture types of P and B pictures, the decoding order B picture between I picture and P picture in H. When an IDR picture comes during H.264 encoding, the reference picture buffer is cleared, so that the P picture used for prediction cannot be referred to as shown in FIG. 11 (see, for example, Patent Document 1).

また、図9に示すように、Bピクチャの参照ピクチャバッファには、参照ピクチャリストのL0、L1には、IDRピクチャのみが保持されるため、MPEG2の動きベクトルをH.264のエンコードに用いる場合には、Pピクチャ(過去のピクチャ)を用いた予測で得られた動きベクトルで、IDRピクチャ(未来のピクチャ)を参照して動き補償を行ってしまうことになる(図12参照)。このように、Bピクチャが本来の参照ピクチャではないピクチャを参照してしまうため、その画素差分値が大きくなり、圧縮効率が低下するという問題がある。   Also, as shown in FIG. 9, since only the IDR picture is held in the reference picture list L0 and L1 in the reference picture buffer of the B picture, the motion vector of MPEG2 is set to H.264. When used for H.264 encoding, motion compensation is performed with reference to an IDR picture (future picture) with a motion vector obtained by prediction using a P picture (past picture) (see FIG. 12). Thus, since the B picture refers to a picture that is not the original reference picture, there is a problem that the pixel difference value becomes large and the compression efficiency is lowered.

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

本発明は、上記に鑑みてなされたものであり、第1符号化情報の動きベクトルを使用して、第2符号化情報にトランスコードする場合において、Iピクチャをランダムアクセスを可能とするための特別なピクチャとした場合に、Bピクチャが本来の参照ピクチャではないピクチャを参照することを防止して、圧縮効率の低下を防止することが可能な再符号化装置、再符号化方法、および再符号化用プログラムを提供することを目的する。   The present invention has been made in view of the above, and enables random access to an I picture when transcoding to second encoded information using a motion vector of the first encoded information. When a special picture is used, a re-encoding device, a re-encoding method, and a re-encoding apparatus that can prevent a B picture from referring to a picture that is not an original reference picture and prevent a reduction in compression efficiency. An object is to provide an encoding program.

上述した課題を解決し、目的を達成するために、本発明は、画像情報をインター予測およびイントラ予測で符号化した第1符号化情報を、前記第1符号化情報を復号化する際に使用した動きベクトルを使用して、第2符号化情報にトランスコードする再符号化装置において、前記第1符号化情報を復号化する復号化手段と、前記復号化された画像情報のうちのIピクチャの一部または全部を、ランダムアクセスするための特別なピクチャに設定するピクチャ判定手段と、処理対象ピクチャが、復号化順で、前記特別なピクチャとその次のPピクチャの間のBピクチャである場合で、かつ、予測モードとして前方予測が設定されている場合にはその予測モードを変更する予測モード決定手段と、予測モードに従って、復号化された画像情報をインター予測およびイントラ予測で符号化して第2符号化情報を生成する符号化手段と、を備えたことを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention uses first encoded information obtained by encoding image information by inter prediction and intra prediction when decoding the first encoded information. In the re-encoding device that transcodes the second encoded information using the motion vector, the decoding means for decoding the first encoded information, and the I picture of the decoded image information And a picture determination means for setting a part or all of a special picture for random access, and a processing target picture is a B picture between the special picture and the next P picture in decoding order. If forward prediction is set as the prediction mode, the prediction mode determining means for changing the prediction mode and the decoded image information according to the prediction mode are loaded. Encoding means for generating a second encoded information on the Coulter prediction and intra prediction, and further comprising a.

また、本発明は、画像情報をインター予測およびイントラ予測で符号化した第1符号化情報を、前記第1符号化情報を復号化する際に使用した動きベクトルを使用して、第2符号化情報にトランスコードする再符号化方法において、前記第1符号化情報を復号化する復号化工程と、前記復号化された画像情報のうちのIピクチャの一部または全部を、ランダムアクセスするための特別なピクチャに設定するピクチャ判定工程と、処理対象ピクチャが、復号化順で、前記特別なピクチャとその次のPピクチャの間のBピクチャである場合で、かつ、予測モードとして前方予測が設定されている場合にはその予測モードを変更する予測モード決定工程と、予測モードに従って、復号化された画像情報をインター予測およびイントラ予測で符号化して第2符号化情報を生成する符号化工程と、を含むことを特徴とする。   The present invention also provides second encoding using first encoded information obtained by encoding image information by inter prediction and intra prediction, using a motion vector used when decoding the first encoded information. In a re-encoding method for transcoding information, a decoding step for decoding the first encoded information and a random access to a part or all of an I picture in the decoded image information A picture determination step for setting a special picture, and a case where the processing target picture is a B picture between the special picture and the next P picture in decoding order, and forward prediction is set as a prediction mode A prediction mode determining step for changing the prediction mode if it has been performed, and encoding the decoded image information by inter prediction and intra prediction according to the prediction mode. Characterized in that it comprises a coding step of generating a second coded information.

また、本発明は、コンピュータに、画像情報をインター予測およびイントラ予測で符号化した第1符号化情報を、前記第1符号化情報を復号化する際に使用した動きベクトルを使用して、第2符号化情報にトランスコードさせる再符号化用プログラムにおいて、前記第1符号化情報を復号化する復号化工程と、前記復号化された画像情報のうちのIピクチャの一部または全部を、ランダムアクセスするための特別なピクチャに設定するピクチャ判定工程と、処理対象ピクチャが、復号化順で、前記特別なピクチャとその次のPピクチャの間のBピクチャである場合で、かつ、予測モードとして前方予測が設定されている場合にはその予測モードを変更する予測モード決定工程と、予測モードに従って、復号化された画像情報をインター予測およびイントラ予測で符号化して第2符号化情報を生成する符号化工程と、をコンピュータに実行させることを特徴とする。   The present invention also provides a computer using first encoded information obtained by encoding image information by inter prediction and intra prediction, and using a motion vector used when decoding the first encoded information. In a re-encoding program for transcoding to 2-encoded information, a decoding process for decoding the first encoded information and a part or all of an I picture in the decoded image information are randomly A picture determination step for setting a special picture for access, and a case where the processing target picture is a B picture between the special picture and the next P picture in decoding order, and as a prediction mode When forward prediction is set, a prediction mode determining step for changing the prediction mode, and the decoded image information is inter-predicted according to the prediction mode. An encoding step of generating second encoded information by encoding in the fine intra prediction, and characterized by causing a computer to execute the.

以下に添付図面を参照して、この発明にかかる再符号化装置、再符号化方法、および再符号化用プログラムの最良な実施の形態を詳細に説明する。この実施例によりこの発明が限定されるものではない。また、下記実施例における構成要素には、当業者が容易に想定できるものまたは実質的に同一のものが含まれる。   Exemplary embodiments of a re-encoding device, a re-encoding method, and a re-encoding program according to the present invention will be explained below in detail with reference to the accompanying drawings. The present invention is not limited to the embodiments. In addition, constituent elements in the following embodiments include those that can be easily assumed by those skilled in the art or those that are substantially the same.

図1は、本発明の一実施例に係る再符号化装置10の概略の構成例を示す図である。同図に示す再符号化装置10では、一例として、MPEG2形式の符号化情報(Open GOPの場合)を、H.264形式の符号化情報にトランスコードする場合について説明する。再符号化装置10は、同図に示すように、第1符号化情報(MPEG2ビットストリーム)を復号化する復号化部(MPEG2デコーダ)100と、復号化部100で復号化された画像情報を第2符号化情報(H.264ビットストリーム)に符号化する符号化部(H.264エンコーダ)200とで構成されている。   FIG. 1 is a diagram illustrating a schematic configuration example of a re-encoding device 10 according to an embodiment of the present invention. In the re-encoding device 10 shown in the figure, as an example, MPEG2 format encoding information (in the case of Open GOP) is converted into H.264 format. A case of transcoding to H.264 format encoded information will be described. As shown in the figure, the re-encoding device 10 includes a decoding unit (MPEG2 decoder) 100 that decodes the first encoded information (MPEG2 bit stream), and image information decoded by the decoding unit 100. An encoding unit (H.264 encoder) 200 that encodes second encoded information (H.264 bit stream).

復号化部100は、可変長復号化部101と、逆量子化部102と、逆DCT(Discrete Cosine Transformation)部103と、演算部104と、フレームメモリ105と、動き補償部106とを備えている。   The decoding unit 100 includes a variable length decoding unit 101, an inverse quantization unit 102, an inverse DCT (Discrete Cosine Transformation) unit 103, a calculation unit 104, a frame memory 105, and a motion compensation unit 106. Yes.

可変長復号化部101は、入力される第1符号化情報(MPEG2ビットストリーム)を可変長復号化して、量子化されたDCT係数を逆量子化部102に、動きベクトルMVを動き補償部205および符号化部200の動き検出部214および予測モード決定部203に出力する。   The variable length decoding unit 101 performs variable length decoding on the input first encoded information (MPEG2 bit stream), converts the quantized DCT coefficients to the inverse quantization unit 102, and the motion vector MV to the motion compensation unit 205. And output to the motion detection unit 214 and the prediction mode determination unit 203 of the encoding unit 200.

逆量子化部102は、量子化されたDCT係数を逆量子化して、DCT係数を逆DCT部103に出力する。逆DCT部103は、DCT係数を逆DCT変換して、演算部104に出力する。   The inverse quantization unit 102 inversely quantizes the quantized DCT coefficient and outputs the DCT coefficient to the inverse DCT unit 103. The inverse DCT unit 103 performs inverse DCT conversion on the DCT coefficient and outputs the result to the arithmetic unit 104.

動き補償部106は、フレームメモリ105に記憶されている、既に復号された画像情報を、可変長復号化部101から入力される動きベクトルMVに従って読み出し、予測画像情報として演算部104に出力する。   The motion compensation unit 106 reads the already decoded image information stored in the frame memory 105 according to the motion vector MV input from the variable length decoding unit 101, and outputs the read image information to the calculation unit 104 as predicted image information.

演算部104は、逆DCT部103からの出力情報と動き補償部106からの予測画像情報とを加算することで、元の画像情報を復号して符号化部200に出力する。復号化部100からは、画像情報とともに、ピクチャタイプ、予測モード(イントラ予測、インター予測(予測方向を含む))、および符号化順・表示順等の付帯情報が符号化部200に出力される。   The arithmetic unit 104 adds the output information from the inverse DCT unit 103 and the predicted image information from the motion compensation unit 106, thereby decoding the original image information and outputting the decoded image information to the encoding unit 200. Along with the image information, the decoding unit 100 outputs the accompanying information such as the picture type, the prediction mode (intra prediction, inter prediction (including the prediction direction)), and the encoding order / display order to the encoding unit 200. .

符号化部200は、ピクチャ判定部201と、予測モード決定部202と、イントラ予測部203と、インター予測部204と、DCT部205と、量子化部206と、可変長符号化部207とを備えている。   The encoding unit 200 includes a picture determination unit 201, a prediction mode determination unit 202, an intra prediction unit 203, an inter prediction unit 204, a DCT unit 205, a quantization unit 206, and a variable length encoding unit 207. I have.

ピクチャ判定部201は、ランダムアクセス可能なGOPとして処理すべき対象を特定するために、復号化部100から入力される画像情報に含まれるIピクチャの一部または全部をIDRピクチャに設定して、予測モード決定部202に出力する。   The picture determination unit 201 sets a part or all of the I picture included in the image information input from the decoding unit 100 as an IDR picture in order to specify a target to be processed as a randomly accessible GOP. It outputs to the prediction mode determination part 202.

予測モード決定部202は、処理対象ピクチャが、復号化順で、IDRピクチャとその次のPピクチャの間のBピクチャである場合で、かつ、予測モードとして前方予測が設定されている場合にはその予測モードを変更し、また、他の場合には設定されている予測モードを維持して、画像情報およびその予測モードをイントラ予測部203およびインター予測部204に出力する。予測モード決定部202の予測モードの変更方法の詳細は後述する。   The prediction mode determination unit 202 is a case where the processing target picture is a B picture between the IDR picture and the next P picture in decoding order, and forward prediction is set as the prediction mode. The prediction mode is changed, and in other cases, the set prediction mode is maintained, and the image information and the prediction mode are output to the intra prediction unit 203 and the inter prediction unit 204. Details of the prediction mode changing method of the prediction mode determination unit 202 will be described later.

イントラ予測部203は、イントラ符号化する画像情報の場合は、符号化するブロックの近傍の既に符号化が終了した画素値から予測画像情報を生成し、その予測画像情報との差分値をDCT部205に出力する。   In the case of image information to be intra-encoded, the intra prediction unit 203 generates predicted image information from pixel values that have already been encoded in the vicinity of the block to be encoded, and calculates a difference value from the predicted image information as a DCT unit. It outputs to 205.

インター予測部204は、インター符号化する画像情報の場合は、符号化するブロックに対して、動き予測・補償処理を施して予測画像情報を生成し、その予測画像情報との差分値をDCT部205に出力する。   In the case of image information to be inter-encoded, the inter prediction unit 204 performs motion prediction / compensation processing on the block to be encoded to generate predicted image information, and a difference value from the predicted image information is obtained as a DCT unit. It outputs to 205.

DCT部205は、イントラ予測部203またはインター予測部204の演算部216から入力される差分値に対してDCT処理を施し、その結果得られるDCT係数を量子化部205に出力する。   The DCT unit 205 performs DCT processing on the difference value input from the calculation unit 216 of the intra prediction unit 203 or the inter prediction unit 204, and outputs the DCT coefficient obtained as a result to the quantization unit 205.

量子化部205は、入力されるDCT係数を量子化し、量子化されたDCT係数を可変長符号化部207およびインター予測部204の逆量子化部206に出力する。   The quantization unit 205 quantizes the input DCT coefficient, and outputs the quantized DCT coefficient to the variable length coding unit 207 and the inverse quantization unit 206 of the inter prediction unit 204.

可変長符号化部207は、量子化されたDCT係数を可変長符号化し、第2符号化情報(H.264ビットストリーム)として出力する。また、可変長符号化部207は、動き検出部214によって検出された動きベクトルMV等も可変長符号化する。   The variable length coding unit 207 performs variable length coding on the quantized DCT coefficient, and outputs the second coded information (H.264 bit stream). The variable length coding unit 207 also performs variable length coding on the motion vector MV and the like detected by the motion detection unit 214.

インター予測部204は、逆量子化部210と、逆DCT部211と、演算部212と、フレームメモリ213と、動き検出部214と、動き補償部215と、演算部216とを備えている。   The inter prediction unit 204 includes an inverse quantization unit 210, an inverse DCT unit 211, a calculation unit 212, a frame memory 213, a motion detection unit 214, a motion compensation unit 215, and a calculation unit 216.

演算部216は、予測モード決定部202から入力される復号化された画像情報と、動き補償部215から入力される予測画像情報との差分値を演算して、DCT部205に出力する。   The calculation unit 216 calculates a difference value between the decoded image information input from the prediction mode determination unit 202 and the predicted image information input from the motion compensation unit 215, and outputs the difference value to the DCT unit 205.

逆量子化部210は、量子化部206から入力される量子化されたDCT係数を逆量子化し、得られたDCT係数を逆DCT部211に出力する。逆DCT部211は、DCT係数を逆DCT処理して、演算部212に出力する。   The inverse quantization unit 210 inversely quantizes the quantized DCT coefficient input from the quantization unit 206 and outputs the obtained DCT coefficient to the inverse DCT unit 211. The inverse DCT unit 211 performs inverse DCT processing on the DCT coefficient and outputs the result to the arithmetic unit 212.

演算部212は、逆DCT部211からの出力情報と動き補償部215からの予測画像情報とを加算し、元の画像情報を局所復号する。この局所復号された画像情報は、フレームメモリ213に出力されて記憶され、予測画像情報を作成する際に利用される。   The calculation unit 212 adds the output information from the inverse DCT unit 211 and the predicted image information from the motion compensation unit 215, and locally decodes the original image information. This locally decoded image information is output to and stored in the frame memory 213, and is used when creating predicted image information.

動き検出部214は、復号化部100の可変長符号化部101から入力される動きベクトルを動き補償部215および可変長符号化部207に出力し、インター予測の予測モードの変更があった場合には、新たに動きベクトルを検出して、動き補償部215および可変長符号化部207に出力する。動きベクトル検出部310は、動きベクトルを検出する場合は、フレームメモリ123に格納されている過去の符号化済みフレーム画像(以降、「参照フレーム」と称する)の所定の探索範囲において、現ブロックに類似する部分(以降、「動き予測データ」と称する)を探索し、現ブロックから動き予測データへの二次元の空間的移動量を動きベクトルMVとして検出する。   The motion detection unit 214 outputs the motion vector input from the variable length coding unit 101 of the decoding unit 100 to the motion compensation unit 215 and the variable length coding unit 207, and there is a change in the prediction mode of inter prediction. In this case, a new motion vector is detected and output to the motion compensation unit 215 and the variable length coding unit 207. When detecting a motion vector, the motion vector detection unit 310 sets the current block within a predetermined search range of past encoded frame images (hereinafter referred to as “reference frames”) stored in the frame memory 123. A similar portion (hereinafter referred to as “motion prediction data”) is searched, and a two-dimensional spatial movement amount from the current block to the motion prediction data is detected as a motion vector MV.

動き補償部215は、復号化部100の可変長復号化部101から入力される動きベクトルMVとフレームメモリ213に格納されている参照フレームとを用いて、予測画像情報を生成して、演算部216に出力する。   The motion compensation unit 215 generates predicted image information using the motion vector MV input from the variable length decoding unit 101 of the decoding unit 100 and the reference frame stored in the frame memory 213, and calculates a calculation unit. To 216.

図2〜図4は、上記予測モード決定部202の処理を説明するためのフローチャートである。図2において、処理対象のMBの予測モードがインター予測であるか否かを判定し(ステップS1)、処理対象のMBの予測モードがインター予測でない場合には(ステップS1の「No」)、すなわち、イントラ予測である場合には、予測モードの変更を行わない。   2 to 4 are flowcharts for explaining the processing of the prediction mode determination unit 202. In FIG. 2, it is determined whether or not the prediction mode of the processing target MB is inter prediction (step S1). If the prediction mode of the processing target MB is not inter prediction (“No” in step S1), That is, in the case of intra prediction, the prediction mode is not changed.

処理対象のMBの予測モードがインター予測である場合には(ステップS1の「Yes」)、処理対象のMBを含むピクチャが、IDRピクチャとその次のPピクチャの間のBピクチャであるか否かを判定する(ステップS2)。例えば、該当するピクチャのPOC(Picture Order Count)が「0」より小さな値になっている場合には、IDRピクチャとその次のPピクチャの間のBピクチャであると判断することができる。   When the prediction mode of the processing target MB is inter prediction (“Yes” in step S1), whether or not the picture including the processing target MB is a B picture between the IDR picture and the next P picture. Is determined (step S2). For example, when the POC (Picture Order Count) of the corresponding picture is smaller than “0”, it can be determined that the picture is a B picture between the IDR picture and the next P picture.

IDRピクチャとその次のPピクチャの間のBピクチャでない場合には(ステップS2の「No」)、予測モードの変更を行わない。他方、IDRピクチャとその次のPピクチャの間のBピクチャである場合には(ステップS2の「Yes」)、処理対象のMBの予測モードが前方予測(過去のピクチャを参照する)のみであるか否かを判定する(ステップS3)。前方予測のみである場合には(ステップS3の「Yes」)、予測モードをイントラ予測のみ、又は、後方予測に変更する(ステップS4)。   If it is not a B picture between the IDR picture and the next P picture (“No” in step S2), the prediction mode is not changed. On the other hand, when it is a B picture between an IDR picture and the next P picture (“Yes” in step S2), the prediction mode of the processing target MB is only forward prediction (refers to a past picture). Is determined (step S3). When only forward prediction is performed (“Yes” in step S3), the prediction mode is changed to intra prediction only or backward prediction (step S4).

また、前方予測のみでない場合には(ステップS3の「No」)、処理対象のMBの予測モードが後方予測(未来のピクチャを参照する)のみであるか否かを判定する(ステップS4)。後方予測のみである場合には(ステップS4の「Yes」)、予測モードの変更を行わない。   If not only forward prediction (“No” in step S3), it is determined whether the prediction mode of the processing target MB is only backward prediction (refers to a future picture) (step S4). When only backward prediction is performed (“Yes” in step S4), the prediction mode is not changed.

後方予測のみでない場合(ステップS4の「No」)、すなわち、両方向予測の場合には、予測モードを後方予測のみ、又はイントラ予測に変更する(ステップS6)。   When it is not only backward prediction (“No” in step S4), that is, in the case of bidirectional prediction, the prediction mode is changed to only backward prediction or intra prediction (step S6).

図3は、図2のステップS4の前方予測の予測方法変更処理を説明するためのフローチャートである。図3において、まず、イントラ予測のコスト計算を行う(ステップS11)。つぎに、後方予測の動きベクトルMVを算出し(ステップS12)、後方予測のコスト計算を行う(ステップS13)。イントラ予測のコストと後方予測のコストを比較し(ステップS14)、イントラ予測のコスト<後方予測のコストの場合には(ステップS14の「Yes」)、予測モードをイントラ予測に変更する一方(ステップS15)、イントラ予測のコスト<後方予測のコストでない場合には(ステップS14の「No」)、予測モードをインター予測の後方予測に変更する(ステップS16)。なお、ここでは、コストを比較して、コストの低い方の予測モードに変更することとしたが、イントラ予測または後方予測のいずれか一方に固定することにしてもよい。   FIG. 3 is a flowchart for explaining the prediction method changing process of the forward prediction in step S4 of FIG. In FIG. 3, first, the cost of intra prediction is calculated (step S11). Next, a motion vector MV for backward prediction is calculated (step S12), and cost calculation for backward prediction is performed (step S13). The cost of intra prediction and the cost of backward prediction are compared (step S14). If the cost of intra prediction is less than the cost of backward prediction (“Yes” in step S14), the prediction mode is changed to intra prediction (step S14). S15) If the cost of intra prediction is not less than the cost of backward prediction (“No” in step S14), the prediction mode is changed to backward prediction of inter prediction (step S16). Here, the costs are compared and the prediction mode is changed to the lower cost prediction mode, but may be fixed to either intra prediction or backward prediction.

図4は、上記図2のステップS5の両方向予測の予測方法変更処理を説明するためのフローチャートである。図4において、まず、後方予測のコスト計算を行う(ステップS21)。つぎに、イントラ予測のコスト計算を行う(ステップS22)。イントラ予測のコストと後方予測のコストを比較し(ステップS23)、後方予測のコスト<イントラ予測のコストの場合には(ステップS23の「Yes」)、予測モードを後方予測に変更する一方(ステップS24)、後方予測のコスト<後方予測のコストでない場合には(ステップS23「No」)、予測モードをイントラ予測に変更する(ステップS25)。なお、ここでは、コストを比較して、コストの低い方の予測モードに変更することとしたが、イントラ予測または後方予測のいずれか一方に固定することにしてもよい。   FIG. 4 is a flowchart for explaining the prediction method change processing of bidirectional prediction in step S5 of FIG. In FIG. 4, first, the cost of backward prediction is calculated (step S21). Next, the cost of intra prediction is calculated (step S22). The cost of intra prediction and the cost of backward prediction are compared (step S23). If the cost of backward prediction is less than the cost of intra prediction ("Yes" in step S23), the prediction mode is changed to backward prediction (step S23). S24) If the cost of backward prediction is not less than the cost of backward prediction (“No” in step S23), the prediction mode is changed to intra prediction (step S25). Here, the costs are compared and the prediction mode is changed to the lower cost prediction mode, but may be fixed to either intra prediction or backward prediction.

以上説明したように、本実施例によれば、画像情報をインター予測およびイントラ予測で符号化した第1符号化情報を、第1符号化情報を復号化する際に使用した動きベクトルを使用して、第2符号化情報にトランスコードする再符号化装置10において、復号化部100は第1符号化情報を復号化し、符号化部200では、ピクチャ判定部201は、ピクチャ判定手段は復号化された画像情報のうちのIピクチャの一部または全部を、IDRピクチャ(ランダムアクセスするための特別なピクチャ)に設定し、予測モード決定部202では、処理対象ピクチャが、復号化順で、IDRピクチャとその次のPピクチャの間のBピクチャである場合で、かつ、予測モードとして前方予測が設定されている場合、すなわち、BピクチャがIDRピクチャを跨いで予測を行う場合には、その予測モードを変更し、インター予測部204およびイントラ予測部203では、予測モードに従って、復号化された画像情報をインター予測およびイントラ予測で符号化して第2符号化情報を生成することとしたので、第1の符号化情報の動きベクトルを使用して、第2の符号化情報にトランスコードする場合において、IピクチャをIDRピクチャとした場合に、Bピクチャが本来の参照ピクチャではないピクチャを参照することを防止でき、すなわち、動きベクトル検出時と異なるピクチャを参照してインター予測を行うことを回避でき、圧縮効率の低下を防止することが可能となる。   As described above, according to the present embodiment, the first encoded information obtained by encoding image information by inter prediction and intra prediction is used and the motion vector used when decoding the first encoded information is used. In the re-encoding device 10 that transcodes the second encoded information, the decoding unit 100 decodes the first encoded information. In the encoding unit 200, the picture determination unit 201 decodes the picture determination unit. A part or all of the I picture in the image information is set as an IDR picture (a special picture for random access), and the prediction mode determination unit 202 sets the processing target picture in the decoding order in the IDR picture. If the picture is a B picture between the picture and the next P picture and forward prediction is set as the prediction mode, that is, the B picture is an IDR picture. When prediction is performed across channels, the prediction mode is changed, and the inter prediction unit 204 and the intra prediction unit 203 encode the decoded image information by inter prediction and intra prediction according to the prediction mode. Since 2 encoded information is generated, when transcoding to the 2nd encoded information using the motion vector of the 1st encoded information, when I picture is made into IDR picture, B It is possible to prevent a picture from referring to a picture that is not the original reference picture, that is, to avoid performing inter prediction by referring to a picture different from that at the time of motion vector detection, and to prevent a reduction in compression efficiency. Become.

また、予測モード決定部201では、処理対象ピクチャが、復号化順で、IDRピクチャとその次のPピクチャの間のBピクチャである場合で、かつ、予測モードとして前方予測のみが設定されている場合には、その予測モードをイントラ予測、または、後方予測に変更することとしたので、予測モードとして前方予測のみが設定されている場合に、Bピクチャが本来の参照ピクチャではないピクチャを参照することを防止することができる。   Further, in the prediction mode determination unit 201, only the forward prediction is set as the prediction mode when the processing target picture is a B picture between the IDR picture and the next P picture in decoding order. In this case, since the prediction mode is changed to intra prediction or backward prediction, when only forward prediction is set as the prediction mode, the B picture refers to a picture that is not the original reference picture. This can be prevented.

また、予測モード決定部201では、処理対象ピクチャが、復号化順で、IDRピクチャとその次のPピクチャの間のBピクチャである場合で、かつ、予測モードとして両方向予測が設定されている場合には、その予測モードをイントラ予測、または、後方予測のみに変更することとしたので、予測モードとして両方向予測が設定されている場合に、Bピクチャが本来の参照ピクチャではないピクチャを参照することを防止することができる。   Also, in the prediction mode determination unit 201, when the processing target picture is a B picture between the IDR picture and the next P picture in decoding order, and bi-directional prediction is set as the prediction mode Since the prediction mode is changed to intra prediction or backward prediction only, when bi-directional prediction is set as the prediction mode, the B picture refers to a picture that is not the original reference picture. Can be prevented.

なお、上記実施例では、MPEG2からH.264へのトランスコードについて説明したが、本発明はこれに限られるものではなく、IピクチャをIDRピクチャに変更する場合に適用でき、例えば、第1符号化情報としては、MPEG2,MPEG4,H.26X等を使用でき、また、H.264形式でIDRピクチャを使用していない第1符号化情報を、H.264形式でIDRピクチャを使用した第2符号化情報に変換する場合にも適用可能である。   In the above embodiment, MPEG2 to H.264 are used. Although the transcoding to H.264 has been described, the present invention is not limited to this, and can be applied to the case where an I picture is changed to an IDR picture. 26X or the like can be used. The first encoded information not using an IDR picture in the H.264 format is H.264. The present invention is also applicable when converting to second encoded information using IDR pictures in the H.264 format.

また、上記実施例では、IDRピクチャとPピクチャの間のBピクチャであることを判定する場合に、POCとピクチャタイプにより判定することとしたが、本発明はこれに限られるものではなく、例えば、IDRピクチャの処理時に、IDR_flag=1とし、Pピクチャの処理時にIDR_flag=0とすることで、IDR_flag=1の時のBピクチャはIDRピクチャを跨いだ参照を行うBピクチャであると判定することにしてもよい。   Further, in the above embodiment, when it is determined that the B picture is between the IDR picture and the P picture, the determination is made based on the POC and the picture type. However, the present invention is not limited to this. By setting IDR_flag = 1 when processing an IDR picture and setting IDR_flag = 0 when processing a P picture, it is determined that the B picture when IDR_flag = 1 is a B picture that makes reference across IDR pictures It may be.

また、上記再符号化装置10の機能を実現するためのプログラムを図5に示したコンピュータ読み取り可能な記録媒体500に記録して、この記録媒体500に記録されたプログラムを同図に示したコンピュータ400に読み込ませ、実行することにより各機能を実現してもよい。   Further, a program for realizing the function of the re-encoding device 10 is recorded on the computer-readable recording medium 500 shown in FIG. 5, and the program recorded on the recording medium 500 is shown in FIG. Each function may be realized by being read into 400 and executed.

同図に示したコンピュータ400は、上記プログラムを実行するCPU(Central Proc
essing Unit)401と、キーボード、マウス等の入力装置402と、各種データを記憶するROM(Read Only Memory)403と、演算パラメータ等を記憶するRAM(Random
Access Memory)404と、記録媒体500からプログラムを読み取る読取装置405と、ディスプレイ、プリンタ等の出力装置406とから構成されている。
A computer 400 shown in the figure has a CPU (Central Proc
essing Unit) 401, an input device 402 such as a keyboard and a mouse, a ROM (Read Only Memory) 403 for storing various data, and a RAM (Random for storing calculation parameters)
(Access Memory) 404, a reading device 405 for reading a program from the recording medium 500, and an output device 406 such as a display or a printer.

CPU401は、読取装置405を経由して記録媒体500に記録されているプログラ
ムを読み込んだ後、プログラムを実行することにより、前述した機能を実現する。なお、
記録媒体500としては、光ディスク、フレキシブルディスク、ハードディスク等が挙げ
られる。
The CPU 401 implements the above-described functions by reading a program recorded on the recording medium 500 via the reading device 405 and then executing the program. In addition,
Examples of the recording medium 500 include an optical disk, a flexible disk, and a hard disk.

以上のように、本発明に係る再符号化装置、再符号化方法、および再符号化用プログラムは、再符号化機能を搭載した各種装置に有用であり、例えば、DVD/HDDレコーダー等に利用可能である。   As described above, the re-encoding device, the re-encoding method, and the re-encoding program according to the present invention are useful for various devices equipped with a re-encoding function, and are used for, for example, a DVD / HDD recorder. Is possible.

本発明の一実施例に係る再符号化装置の概略の構成例を示す図である。It is a figure which shows the structural example of the outline of the re-encoding apparatus which concerns on one Example of this invention. 図2の予測モード決定部の処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of the prediction mode determination part of FIG. 図2の予測モード決定部の処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of the prediction mode determination part of FIG. 図2の予測モード決定部の処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of the prediction mode determination part of FIG. 本発明の他の実施例に係る再符号化装置の概略の構成例を示す図である。It is a figure which shows the structural example of the outline of the re-encoding apparatus which concerns on the other Example of this invention. MPEG−2でClosed GOPの場合の画像符号情報の復号順と表示順の関係を示す図である。It is a figure which shows the relationship between the decoding order of image code information in the case of Closed GOP in MPEG-2, and a display order. MPEG−2でopen GOPの場合の画像符号情報の復号順と表示順の関係を示す図である。It is a figure which shows the relationship between the decoding order of image code information in the case of open GOP in MPEG-2, and a display order. Closed GOPの場合にIDRピクチャを用いた場合の参照ピクチャを説明するための図である。It is a figure for demonstrating the reference picture at the time of using an IDR picture in the case of Closed GOP. 参照ピクチャリストを説明するための図である。It is a figure for demonstrating a reference picture list. Closed GOPの場合の参照ピクチャ/エリアを説明するための図である(MPEG2の動きベクトルmvを利用する場合)。It is a figure for demonstrating the reference picture / area in the case of Closed GOP (when using the motion vector mv of MPEG2). Open GOPの場合の参照ピクチャ/エリアを説明するための図である。It is a figure for demonstrating the reference picture / area in the case of Open GOP. Open GOPの場合の参照ピクチャ/エリアを説明するための図である(MPEG2の動きベクトルmvを利用する場合)。It is a figure for demonstrating the reference picture / area in the case of Open GOP (when using the motion vector mv of MPEG2).

符号の説明Explanation of symbols

10 再符号化装置
100 復号化部
101 可変長復号化部
102 逆量子化部
103 逆DCT部
104 演算部
105 フレームメモリ
106 動き補償部
200 符号化部
201 ピクチャ判定部
202 予測モード決定部
203 イントラ予測部
204 インター予測部
205 DCT部
206 量子化部
207 可変長符号化部
210 逆量子化部
211 逆DCT部
212 演算部
213 フレームメモリ
214 動き検出部
215 動き補償部
216 演算部
400 コンピュータ
401 CPU
402 入力装置
403 ROM
404 RAM
405 読取装置
406 出力装置
500 記録媒体



















DESCRIPTION OF SYMBOLS 10 Re-encoding apparatus 100 Decoding part 101 Variable length decoding part 102 Inverse quantization part 103 Inverse DCT part 104 Operation part 105 Frame memory 106 Motion compensation part 200 Encoding part 201 Picture determination part 202 Prediction mode determination part 203 Intra prediction Unit 204 inter prediction unit 205 DCT unit 206 quantization unit 207 variable length coding unit 210 inverse quantization unit 211 inverse DCT unit 212 calculation unit 213 frame memory 214 motion detection unit 215 motion compensation unit 216 calculation unit 400 computer 401 CPU
402 Input device 403 ROM
404 RAM
405 Reading device 406 Output device 500 Recording medium



















Claims (6)

画像情報をインター予測およびイントラ予測で符号化した第1符号化情報を、前記第1符号化情報を復号化する際に使用した動きベクトルを使用して、第2符号化情報にトランスコードする再符号化装置において、
前記第1符号化情報を復号化する復号化手段と、
前記復号化された画像情報のうちのIピクチャの一部または全部を、ランダムアクセスするための特別なピクチャに設定するピクチャ判定手段と、
処理対象ピクチャが、復号化順で、前記特別なピクチャとその次のPピクチャの間のBピクチャである場合で、かつ、予測モードとして前方予測が設定されている場合にはその予測モードを変更する予測モード決定手段と、
予測モードに従って、復号化された画像情報をインター予測およびイントラ予測で符号化して第2符号化情報を生成する符号化手段と、
を備えたことを特徴とする再符号化装置。
The first encoded information obtained by encoding the image information by inter prediction and intra prediction is re-transcoded to the second encoded information using the motion vector used when decoding the first encoded information. In the encoding device,
Decoding means for decoding the first encoded information;
Picture determination means for setting a part or all of the I picture in the decoded image information as a special picture for random access;
If the target picture is a B picture between the special picture and the next P picture in decoding order, and forward prediction is set as the prediction mode, the prediction mode is changed. Prediction mode determining means for
Encoding means for encoding the decoded image information by inter prediction and intra prediction according to the prediction mode to generate second encoded information;
A re-encoding device comprising:
前記予測モード決定手段は、処理対象ピクチャが、復号化順で、前記特別なピクチャとその次のPピクチャの間のBピクチャである場合で、かつ、予測モードとして前方予測のみが設定されている場合には、その予測モードをイントラ予測、または、後方予測に変更することを特徴とする請求項1に記載の再符号化装置。   The prediction mode determining means is configured such that when the processing target picture is a B picture between the special picture and the next P picture in decoding order, only forward prediction is set as the prediction mode. In this case, the re-encoding apparatus according to claim 1, wherein the prediction mode is changed to intra prediction or backward prediction. 前記予測モード決定手段は、処理対象ピクチャが、復号化順で、前記特別なピクチャとその次のPピクチャの間のBピクチャである場合で、かつ、予測モードとして両方向予測が設定されている場合には、その予測モードをイントラ予測、または、後方予測のみに変更することを特徴とする請求項1に記載の再符号化装置。   The prediction mode determination means is a case where the processing target picture is a B picture between the special picture and the next P picture in decoding order, and bi-directional prediction is set as the prediction mode The re-encoding device according to claim 1, wherein the prediction mode is changed to intra prediction or backward prediction only. 前記第1符号化情報は、MPEG2形式に準拠しており、前記第2符号化情報はH.264形式に準拠していることを特徴とする請求項1〜請求項3のいずれか1つに記載の再符号化装置。   The first encoded information conforms to the MPEG2 format, and the second encoded information is H.264. The re-encoding device according to any one of claims 1 to 3, wherein the re-encoding device conforms to the H.264 format. 画像情報をインター予測およびイントラ予測で符号化した第1符号化情報を、前記第1符号化情報を復号化する際に使用した動きベクトルを使用して、符号化方式の異なる第2符号化情報にトランスコードする再符号化方法において、
前記第1符号化情報を復号化する復号化工程と、
前記復号化された画像情報のうちのIピクチャの一部または全部を、ランダムアクセスするための特別なピクチャに設定するピクチャ判定工程と、
処理対象ピクチャが、復号化順で、前記特別なピクチャとその次のPピクチャの間のBピクチャである場合で、かつ、予測モードとして前方予測が設定されている場合にはその予測モードを変更する予測モード決定工程と、
予測モードに従って、復号化された画像情報をインター予測およびイントラ予測で符号化して第2符号化情報を生成する符号化工程と、
を含むことを特徴とする再符号化方法。
Second encoded information having a different encoding method by using first encoded information obtained by encoding image information by inter prediction and intra prediction and using a motion vector used when decoding the first encoded information. In a re-encoding method for transcoding to:
A decoding step of decoding the first encoded information;
A picture determination step of setting a part or all of the I picture in the decoded image information as a special picture for random access;
If the target picture is a B picture between the special picture and the next P picture in decoding order, and forward prediction is set as the prediction mode, the prediction mode is changed. A prediction mode determination step to be performed;
An encoding step of generating the second encoded information by encoding the decoded image information by inter prediction and intra prediction according to the prediction mode;
A re-encoding method comprising:
コンピュータに、画像情報をインター予測およびイントラ予測で符号化した第1符号化情報を、前記第1符号化情報を復号化する際に使用した動きベクトルを使用して、符号化方式の異なる第2符号化情報にトランスコードさせる再符号化用プログラムにおいて、
前記第1符号化情報を復号化する復号化工程と、
前記復号化された画像情報のうちのIピクチャの一部または全部を、ランダムアクセスするための特別なピクチャに設定するピクチャ判定工程と、
処理対象ピクチャが、復号化順で、前記特別なピクチャとその次のPピクチャの間のBピクチャである場合で、かつ、予測モードとして前方予測が設定されている場合にはその予測モードを変更する予測モード決定工程と、
予測モードに従って、復号化された画像情報をインター予測およびイントラ予測で符号化して第2符号化情報を生成する符号化工程と、
をコンピュータに実行させることを特徴とする再符号化用プログラム。













































The computer uses the first encoded information obtained by encoding the image information by inter prediction and intra prediction, and the motion vector used when decoding the first encoded information, so that the second encoding method is different. In a re-encoding program for transcoding encoded information,
A decoding step of decoding the first encoded information;
A picture determination step of setting a part or all of the I picture in the decoded image information as a special picture for random access;
If the target picture is a B picture between the special picture and the next P picture in decoding order, and forward prediction is set as the prediction mode, the prediction mode is changed. A prediction mode determination step to be performed;
An encoding step of generating the second encoded information by encoding the decoded image information by inter prediction and intra prediction according to the prediction mode;
A re-encoding program that causes a computer to execute.













































JP2005061772A 2005-03-07 2005-03-07 Re-encoding apparatus, re-encoding method, and re-encoding program Pending JP2006246277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005061772A JP2006246277A (en) 2005-03-07 2005-03-07 Re-encoding apparatus, re-encoding method, and re-encoding program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005061772A JP2006246277A (en) 2005-03-07 2005-03-07 Re-encoding apparatus, re-encoding method, and re-encoding program

Publications (1)

Publication Number Publication Date
JP2006246277A true JP2006246277A (en) 2006-09-14

Family

ID=37052179

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005061772A Pending JP2006246277A (en) 2005-03-07 2005-03-07 Re-encoding apparatus, re-encoding method, and re-encoding program

Country Status (1)

Country Link
JP (1) JP2006246277A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100846802B1 (en) 2007-02-14 2008-07-16 삼성전자주식회사 Method of decoding motion picture frame and method of encoding the same
JP2008244993A (en) * 2007-03-28 2008-10-09 Renesas Technology Corp Apparatus and method for transcoding
WO2011115045A1 (en) * 2010-03-17 2011-09-22 株式会社エヌ・ティ・ティ・ドコモ 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
JPWO2015115644A1 (en) * 2014-02-03 2017-03-23 三菱電機株式会社 Image encoding device, image decoding device, encoded stream conversion device, image encoding method, and image decoding method
JP2017200176A (en) * 2016-04-14 2017-11-02 アビッド テクノロジー インコーポレイテッド Conversion from open group of pictures to closed group of pictures in interframe video compression

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8311106B2 (en) 2007-02-14 2012-11-13 Samsung Electronics Co., Ltd. Method of encoding and decoding motion picture frames
KR100846802B1 (en) 2007-02-14 2008-07-16 삼성전자주식회사 Method of decoding motion picture frame and method of encoding the same
JP2008244993A (en) * 2007-03-28 2008-10-09 Renesas Technology Corp Apparatus and method for transcoding
KR101640872B1 (en) 2010-03-17 2016-07-19 가부시키가이샤 엔.티.티.도코모 Moving image prediction encoding device, moving image prediction encoding method, moving image prediction encoding program, moving image prediction decoding device, movign image prediction decoding method, and moving image prediction decoding program
KR20170066709A (en) * 2010-03-17 2017-06-14 가부시키가이샤 엔.티.티.도코모 Moving image prediction encoding device, moving image prediction encoding method, moving image prediction encoding program, moving image prediction decoding device, movign image prediction decoding method, and moving image prediction decoding program
CN102792696A (en) * 2010-03-17 2012-11-21 株式会社Ntt都科摩 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
KR20130016289A (en) * 2010-03-17 2013-02-14 가부시키가이샤 엔.티.티.도코모 Moving image prediction encoding device, moving image prediction encoding method, moving image prediction encoding program, moving image prediction decoding device, movign image prediction decoding method, and moving image prediction decoding program
TWI479895B (en) * 2010-03-17 2015-04-01 Ntt Docomo Inc An animation predictive coding apparatus, an animation prediction decoding method, an animation prediction decoding method, and an animation prediction decoding program
US9113171B2 (en) 2010-03-17 2015-08-18 Ntt Docomo Inc. Moving image prediction encoding/decoding system
CN105187842A (en) * 2010-03-17 2015-12-23 株式会社Ntt都科摩 Moving Image Prediction Encoding Device, Moving Image Prediction Encoding Method
WO2011115045A1 (en) * 2010-03-17 2011-09-22 株式会社エヌ・ティ・ティ・ドコモ 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
US10715829B2 (en) 2010-03-17 2020-07-14 Ntt Docomo, Inc. Moving image prediction encoding/decoding system
JP2011199396A (en) * 2010-03-17 2011-10-06 Ntt Docomo Inc 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
US10567794B2 (en) 2010-03-17 2020-02-18 Ntt Docomo, Inc. Moving image prediction encoding/decoding system
KR101867461B1 (en) * 2010-03-17 2018-06-14 가부시키가이샤 엔.티.티.도코모 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
US10178407B2 (en) 2010-03-17 2019-01-08 Ntt Docomo, Inc Moving image prediction encoding/decoding system
US10298953B2 (en) 2010-03-17 2019-05-21 Ntt Docomo, Inc Moving image prediction encoding/decoding system
US10390042B2 (en) 2010-03-17 2019-08-20 Ntt Docomo, Inc. Moving image prediction encoding/decoding system
JPWO2015115644A1 (en) * 2014-02-03 2017-03-23 三菱電機株式会社 Image encoding device, image decoding device, encoded stream conversion device, image encoding method, and image decoding method
JP2017200176A (en) * 2016-04-14 2017-11-02 アビッド テクノロジー インコーポレイテッド Conversion from open group of pictures to closed group of pictures in interframe video compression
JP7045800B2 (en) 2016-04-14 2022-04-01 アビッド テクノロジー インコーポレイテッド Converting from the Open Group of Pictures to the Closed Group of Pictures in interframe video compression

Similar Documents

Publication Publication Date Title
JP3863510B2 (en) Motion vector encoding / decoding method and apparatus
JP5697614B2 (en) Adaptive frame / field coding at the macroblock level of digital video content
JP4542447B2 (en) Image encoding / decoding device, encoding / decoding program, and encoding / decoding method
US8275035B2 (en) Video coding apparatus
JP5061179B2 (en) Illumination change compensation motion prediction encoding and decoding method and apparatus
JP4889231B2 (en) Image encoding method and apparatus, and image decoding method
JP5197591B2 (en) VIDEO ENCODING METHOD AND DECODING METHOD, DEVICE THEREOF, THEIR PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
US20050013500A1 (en) Intelligent differential quantization of video coding
JP5090158B2 (en) VIDEO INFORMATION RECORDING DEVICE, VIDEO INFORMATION RECORDING METHOD, VIDEO INFORMATION RECORDING PROGRAM, AND RECORDING MEDIUM CONTAINING VIDEO INFORMATION RECORDING PROGRAM
JP4703449B2 (en) Encoding method
JP2008182770A (en) Image decoding method and image decoding device
KR20140089584A (en) Image coding apparatus, image coding method, image decoding apparatus, image decoding method, and storage medium
JP2006279573A (en) Encoder and encoding method, and decoder and decoding method
JP2007104231A (en) Transcoder, recording apparatus, transcode method
JP2005510984A (en) Picture-level adaptive frame / field coding for digital video content
JP2005510984A5 (en)
US8699576B2 (en) Method of and apparatus for estimating motion vector based on sizes of neighboring partitions, encoder, decoding, and decoding method
JP2004242309A (en) Motion picture encoding/decoding method in interlace scan system and apparatus therefor
JP2006246277A (en) Re-encoding apparatus, re-encoding method, and re-encoding program
JP2006100871A (en) Coder, coding method, program of coding method, and recording medium with the program recorded thereon
JP2007228560A (en) Moving picture coding method and moving picture coding device
KR102076625B1 (en) Dynamic image predictive encoding and decoding device, method, and program
JP2007243784A (en) Moving image decoding device and moving image decoding method
JP2007067526A (en) Image processor
JP2006295503A (en) Reencoding apparatus and method, and program for reencoding