JP2009290889A - Motion picture encoder, motion picture decoder, motion picture encoding method, motion picture decoding method, motion picture encoding program, and motion picture decoding program - Google Patents

Motion picture encoder, motion picture decoder, motion picture encoding method, motion picture decoding method, motion picture encoding program, and motion picture decoding program Download PDF

Info

Publication number
JP2009290889A
JP2009290889A JP2009185016A JP2009185016A JP2009290889A JP 2009290889 A JP2009290889 A JP 2009290889A JP 2009185016 A JP2009185016 A JP 2009185016A JP 2009185016 A JP2009185016 A JP 2009185016A JP 2009290889 A JP2009290889 A JP 2009290889A
Authority
JP
Japan
Prior art keywords
motion vector
frame image
target
adjacent
reference frame
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
JP2009185016A
Other languages
Japanese (ja)
Inventor
Sadaatsu Kato
禎篤 加藤
Chunsen Bun
チュンセン ブン
Satoru Adachi
悟 安達
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NTT Docomo Inc
Original Assignee
NTT Docomo Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NTT Docomo Inc filed Critical NTT Docomo Inc
Priority to JP2009185016A priority Critical patent/JP2009290889A/en
Publication of JP2009290889A publication Critical patent/JP2009290889A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a motion picture encoder and a motion picture decoder capable of improving efficiency of information compression for encoding and decoding. <P>SOLUTION: The motion picture encoder 10 has a motion vector predicting portion to predict an optimum predicted motion vector after correction by performing the correction of scaling motion vectors 751a, 751b and 751c of adjacent blocks regarding an object reference frame image 702 as a reference on the basis of time relation or time information of adjacent reference frame images 703a, 703b and 703c referred in order to detect the motion vector of the adjacent block adjacent to a block of an encoding object, the object reference frame image 702 referred in order to detect the motion vector of an object block and an object frame image 701 which is a frame image of the encoding object and by performing decision of the optimum predicted motion vector on the basis of the motion vector of the adjacent block. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、動画像符号化装置、動画像復号化装置、動画像符号化方法、動画像復号化方法、動画像符号化プログラム及び動画像復号化プログラムに関するものである。   The present invention relates to a moving image encoding device, a moving image decoding device, a moving image encoding method, a moving image decoding method, a moving image encoding program, and a moving image decoding program.

従来の動画像符号化方式の事例として、H.264/AVC符号化方式に基づく動画像符号化装置及び動画像復号化装置が挙げられる(非特許文献1参照)。この方式は、動き補償フレーム間予測により時間方向に存在する冗長度を削減し、直交変換によりさらに空間方向に残る冗長度を削減することで動画像(入力映像信号)の情報圧縮を行うというものである。   As an example of a conventional moving image encoding method, H.264 has been described. Examples thereof include a moving image encoding device and a moving image decoding device based on the H.264 / AVC encoding method (see Non-Patent Document 1). This method reduces the redundancy existing in the temporal direction by motion compensation inter-frame prediction, and further reduces the redundancy remaining in the spatial direction by orthogonal transformation, thereby compressing information of the moving image (input video signal). It is.

上記方式における動き補償フレーム間予測(以下、「INTER予測モード」と言う。)では、動きベクトルを検出する参照フレーム画像を複数用意することができるため、符号化対象領域の周囲の符号化済み領域の動きベクトルは、それぞれ異なる参照フレーム画像を用いて動き補償されている場合がある。   In motion compensation inter-frame prediction (hereinafter referred to as “INTER prediction mode”) in the above method, a plurality of reference frame images for detecting a motion vector can be prepared. The motion vectors may be motion compensated using different reference frame images.

また、符号化対象領域の予測動きベクトルを算出する際、周囲の符号化済み領域の動きベクトルがどの参照フレーム画像から動き補償されていたかによらず、それらの動きベクトルの値を比較して、それらの中間値を符号化対象の領域の動きベクトル予測値としている。   In addition, when calculating the prediction motion vector of the encoding target region, regardless of which reference frame image the motion vector of the surrounding encoded region has been motion compensated, the values of those motion vectors are compared, These intermediate values are used as motion vector prediction values for the region to be encoded.

Joint Video Team (JVT) ofISO/IEC MPEG and ITU-VCEG , "Editor's Proposed Draft Text Modificationsfor Joint Video Specification (ITU-T Rec.H.264 | ISO/IEC 14496-10 AVC) , Genevamodifications draft 37"Joint Video Team (JVT) ofISO / IEC MPEG and ITU-VCEG, "Editor's Proposed Draft Text Modifications for Joint Video Specification (ITU-T Rec.H.264 | ISO / IEC 14496-10 AVC), Genevamodifications draft 37"

しかしながら、このように周囲の符号化済み領域が符号化対象領域の参照フレーム画像と異なる参照フレーム画像を用いて動き補償されていた場合、それらの中間値を予測動きベクトルとして用いると参照フレームの違いから実際の動きベクトルから大きく外れ、符号化の情報圧縮の効率が低下するという問題がある。また、それに伴って、復号化の情報圧縮の効率も同時に低下するという問題もある。   However, when the surrounding encoded region is motion-compensated using a reference frame image different from the reference frame image of the encoding target region as described above, the difference between the reference frames is obtained by using the intermediate value as a predicted motion vector. Therefore, there is a problem that the efficiency of encoding information compression is reduced due to a large deviation from the actual motion vector. Along with this, there is a problem that the efficiency of information compression for decoding also decreases at the same time.

本発明は、上記課題を解決するために成されたものであり、符号化及び復号化の情報圧縮の効率の向上を図ることが可能な動画像符号化装置、動画像復号化装置、動画像符号化方法、動画像復号化方法、動画像符号化プログラム及び動画像復号化プログラムを提供することを目的とする。   The present invention has been made to solve the above-described problem, and is a moving image encoding device, a moving image decoding device, and a moving image capable of improving the efficiency of encoding and decoding information compression. It is an object to provide an encoding method, a moving image decoding method, a moving image encoding program, and a moving image decoding program.

本発明の動画像符号化装置は、フレーム画像信号の時間系列で構成される動画像信号における符号化対象のフレーム画像を複数の対象領域に分割し、対象領域毎に、符号化対象のフレーム画像と異なる複数のフレーム画像を参照して動きベクトルを検出することにより、動き補償による符号化を行う動画像符号化装置において、対象領域に隣接する隣接領域の動きベクトルを検出するために参照された隣接参照フレーム画像と、対象領域の動きベクトルを検出するために参照された対象参照フレーム画像と、符号化対象のフレーム画像である対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、対象参照フレーム画像を基準にして対象領域に隣接する隣接領域の動きベクトルをスケーリングする補正と、対象領域に隣接する隣接領域の動きベクトルに基づく最適予測動きベクトルの決定とを行うことにより補正後の最適予測動きベクトルを予測する動きベクトル予測手段を有することを特徴とする。   The moving image encoding apparatus according to the present invention divides a frame image to be encoded in a moving image signal composed of a time sequence of frame image signals into a plurality of target regions, and the frame image to be encoded for each target region. In a moving picture coding apparatus that performs motion compensation coding by referring to a plurality of different frame images, the motion vector is referenced to detect a motion vector of an adjacent area adjacent to the target area. Based on the temporal relationship between the adjacent reference frame image, the target reference frame image referred to for detecting the motion vector of the target region, and the target frame image that is the frame image to be encoded, or their time information , Correction for scaling the motion vector of the adjacent area adjacent to the target area based on the target reference frame image, and adjacent to the target area Characterized by having a motion vector prediction means for predicting the optimal predicted motion vector after correction by performing the determination of the optimum predicted motion vector based on the motion vector of the bearing region.

また、本発明の動画像符号化方法は、フレーム画像信号の時間系列で構成される動画像信号における符号化対象のフレーム画像を複数の対象領域に分割し、対象領域毎に、符号化対象のフレーム画像と異なる複数のフレーム画像を参照して動きベクトルを検出することにより、動き補償による符号化を行う動画像符号化方法において、動きベクトル予測手段が、対象領域に隣接する隣接領域の動きベクトルを検出するために参照された隣接参照フレーム画像と、対象領域の動きベクトルを検出するために参照された対象参照フレーム画像と、符号化対象のフレーム画像である対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、対象参照フレーム画像を基準にして対象領域に隣接する隣接領域の動きベクトルをスケーリングする補正と、対象領域に隣接する隣接領域の動きベクトルに基づく最適予測動きベクトルの決定とを行うことにより補正後の最適予測動きベクトルを予測する動きベクトル予測ステップを有することを特徴とする。   The moving image encoding method of the present invention divides a frame image to be encoded in a moving image signal composed of a time sequence of frame image signals into a plurality of target regions, and for each target region, In a moving image coding method for performing motion compensation coding by detecting a motion vector with reference to a plurality of frame images different from a frame image, the motion vector predicting means includes a motion vector of an adjacent region adjacent to the target region. Temporal relationship between adjacent reference frame images that are referenced to detect motion, target reference frame images that are referenced to detect motion vectors of the target region, and target frame images that are encoding target frame images Or, based on the time information, the motion vector of the adjacent area adjacent to the target area is scaled based on the target reference frame image A correction that is characterized by having a motion vector prediction step of predicting the optimal predicted motion vector after correction by performing the determination of the optimum predicted motion vector based on the motion vector of the adjacent region adjacent to the target area.

また、本発明の動画像符号化プログラムは、フレーム画像信号の時間系列で構成される動画像信号における符号化対象のフレーム画像を複数の対象領域に分割し、対象領域毎に、符号化対象のフレーム画像と異なる複数のフレーム画像を参照して動きベクトルを検出することにより、動き補償による符号化処理をコンピュータに実行させる動画像符号化プログラムにおいて、コンピュータを、対象領域に隣接する隣接領域の動きベクトルを検出するために参照された隣接参照フレーム画像と、対象領域の動きベクトルを検出するために参照された対象参照フレーム画像と、符号化対象のフレーム画像である対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、対象参照フレーム画像を基準にして対象領域に隣接する隣接領域の動きベクトルをスケーリングする補正と、対象領域に隣接する隣接領域の動きベクトルに基づく最適予測動きベクトルの決定とを行うことにより補正後の最適予測動きベクトルを予測する動きベクトル予測手段として機能させることを特徴とする。   Further, the moving image encoding program of the present invention divides a frame image to be encoded in a moving image signal composed of a time sequence of frame image signals into a plurality of target regions, and for each target region, In a moving image encoding program that causes a computer to execute an encoding process based on motion compensation by detecting a motion vector with reference to a plurality of frame images different from the frame image, the computer moves the motion of the adjacent region adjacent to the target region. Temporal comparison between an adjacent reference frame image referred to for detecting a vector, a target reference frame image referred to for detecting a motion vector of the target region, and a target frame image that is a frame image to be encoded An adjacent area adjacent to the target area based on the target reference frame image based on the relationship or their time information It is possible to function as a motion vector predictor that predicts the corrected optimal prediction motion vector by performing correction for scaling the motion vector and determining an optimal prediction motion vector based on the motion vector of the adjacent region adjacent to the target region. Features.

本発明の動画像符号化装置、動画像符号化方法及び動画像符号化プログラムによれば、動きベクトル予測手段が、隣接領域の動きベクトルを対象領域の動きベクトルを検出するために参照されたフレーム画像と符号化対象のフレーム画像との時間差を基準としてスケーリングして補正するとともに、隣接領域の動きベクトルに基づいて最適予測動きベクトルを予測するので、時間的な動きの連続性を考慮して予測動きベクトルを決定することにより、実際の対象領域の動きベクトルと予測動きベクトルの差をより小さくすることができる。   According to the moving image encoding apparatus, the moving image encoding method, and the moving image encoding program of the present invention, the frame referred to by the motion vector predicting unit to detect the motion vector of the target region from the motion vector of the adjacent region. Scaling and correction is performed based on the time difference between the image and the frame image to be encoded, and the optimal prediction motion vector is predicted based on the motion vector of the adjacent region, so prediction is performed in consideration of temporal motion continuity. By determining the motion vector, the difference between the actual motion vector of the target region and the predicted motion vector can be further reduced.

本発明の動画像符号化装置では、動きベクトル予測手段は、隣接参照フレーム画像と前記対象参照フレーム画像と前記対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、対象参照フレーム画像を基準にして隣接領域の動きベクトルそれぞれをスケーリングして補正し、当該補正された隣接領域の動きベクトルに基づいて最適予測動きベクトルを決定することも好ましい。このように、動きベクトル予測手段が、複数の隣接領域の動きベクトルそれぞれを対象領域の動きベクトルを検出するために参照されたフレーム画像と符号化対象のフレーム画像との時間差を基準としてスケーリングして補正した後に、その補正された隣接領域の動きベクトルに基づいて最適予測動きベクトルを決定するので、実際の対象領域の動きベクトルと予測動きベクトルの差をより小さくすることができる。   In the video encoding device of the present invention, the motion vector predicting means includes the target reference frame image based on the temporal relationship between the adjacent reference frame image, the target reference frame image, and the target frame image, or their time information. It is also preferable to scale and correct each of the motion vectors in the adjacent area based on the above, and determine the optimum predicted motion vector based on the corrected motion vector in the adjacent area. In this way, the motion vector prediction means scales each of the motion vectors of the plurality of adjacent regions based on the time difference between the frame image referred to and the frame image to be encoded in order to detect the motion vector of the target region. After the correction, the optimum predicted motion vector is determined based on the corrected motion vector of the adjacent region, so that the difference between the actual motion vector of the target region and the predicted motion vector can be further reduced.

また、本発明の動画像符号化装置では、動きベクトル予測手段は、隣接領域の動きベクトルに基づいて最適予測動きベクトルを決定し、最適予測動きベクトルとして決定された隣接領域の動きベクトルの隣接参照フレーム画像と前記対象参照フレーム画像と前記対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、対象参照フレーム画像を基準にして最適予測動きベクトルをスケーリングして補正することが好ましい。この場合、動きベクトル予測手段が、隣接領域の動きベクトルに基づいて最適予測動きベクトルを決定した後、決定された最適予測動きベクトルを、対象領域の動きベクトルを検出するために参照されたフレーム画像と符号化対象のフレーム画像との時間差を基準としてスケーリングして補正するので、実際の対象領域の動きベクトルと予測動きベクトルの差をより小さくすることができるとともに、動きベクトルを予測するための処理時間を短縮することが可能となる。   In the video encoding device of the present invention, the motion vector prediction means determines the optimal prediction motion vector based on the motion vector of the adjacent region, and the adjacent reference of the motion vector of the adjacent region determined as the optimal prediction motion vector Preferably, based on the temporal relationship between the frame image, the target reference frame image, and the target frame image or their time information, the optimal predicted motion vector is scaled and corrected based on the target reference frame image. In this case, after the motion vector prediction means determines the optimal prediction motion vector based on the motion vector of the adjacent region, the determined optimal prediction motion vector is used as a frame image that is referred to in order to detect the motion vector of the target region. Since the time difference between the image and the frame image to be encoded is scaled and corrected, the difference between the motion vector of the actual target area and the predicted motion vector can be further reduced, and the process for predicting the motion vector Time can be shortened.

本発明の動画像復号化装置は、フレーム画像信号の時間系列で構成される動画像信号における復号化対象のフレーム画像を複数の対象領域に分割し、対象領域毎に復号化対象のフレーム画像と異なる複数のフレーム画像を参照して検出された動きベクトルと予測動きベクトルとの差分情報を利用することにより、動き補償による復号化を行う動画像復号化装置において、対象領域に隣接する隣接領域の動きベクトルを検出するために参照された隣接参照フレーム画像と、対象領域の動きベクトルを検出するために参照された対象参照フレーム画像と、符号化対象のフレーム画像である対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、対象参照フレーム画像を基準にして対象領域に隣接する隣接領域の動きベクトルをスケーリングする補正と、対象領域に隣接する隣接領域の動きベクトルに基づく最適予測動きベクトルの決定とを行うことにより補正後の最適予測動きベクトルを予測する動きベクトル予測手段を有することを特徴とする。   The moving picture decoding apparatus of the present invention divides a frame image to be decoded in a moving picture signal composed of a time sequence of frame image signals into a plurality of target areas, In a video decoding device that performs decoding by motion compensation by using difference information between a motion vector detected with reference to a plurality of different frame images and a predicted motion vector, an adjacent region adjacent to the target region Temporal of an adjacent reference frame image referred to detect a motion vector, a target reference frame image referred to detect a motion vector of the target region, and a target frame image that is a frame image to be encoded The motion vector of the adjacent area adjacent to the target area based on the target reference frame image based on the current relationship or their time information. And having a correction to the ring, the motion vector prediction means for predicting the optimal predicted motion vector after correction by performing the determination of the optimum predicted motion vector based on the motion vector of the adjacent region adjacent to the target area.

また、本発明の動画像復号化方法は、フレーム画像信号の時間系列で構成される動画像信号における復号化対象のフレーム画像を複数の対象領域に分割し、対象領域毎に復号化対象のフレーム画像と異なる複数のフレーム画像を参照して検出された動きベクトルと予測動きベクトルとの差分情報を利用することにより、動き補償による復号化を行う動画像復号化方法において、動きベクトル予測手段が、対象領域に隣接する隣接領域の動きベクトルを検出するために参照された隣接参照フレーム画像と、対象領域の動きベクトルを検出するために参照された対象参照フレーム画像と、符号化対象のフレーム画像である対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、対象参照フレーム画像を基準にして対象領域に隣接する隣接領域の動きベクトルをスケーリングする補正と、対象領域に隣接する隣接領域の動きベクトルに基づく最適予測動きベクトルの決定とを行うことにより補正後の最適予測動きベクトルを予測する動きベクトル予測ステップを有することを特徴とする。   Also, the moving picture decoding method of the present invention divides a decoding target frame image in a moving picture signal composed of a time sequence of frame image signals into a plurality of target areas, and the decoding target frames for each target area. In a moving picture decoding method for performing decoding by motion compensation by using difference information between a motion vector detected with reference to a plurality of frame images different from an image and a predicted motion vector, the motion vector prediction means includes: An adjacent reference frame image referred to detect a motion vector of an adjacent region adjacent to the target region, a target reference frame image referred to detect a motion vector of the target region, and a frame image to be encoded Based on the temporal relationship with a certain target frame image or their time information, the target reference frame image is used as a reference to be adjacent to the target region. A motion vector prediction step for predicting the corrected optimal prediction motion vector by performing correction for scaling the motion vector of the adjacent region and determining an optimal prediction motion vector based on the motion vector of the adjacent region adjacent to the target region; It is characterized by that.

また、本発明の動画像復号化プログラムは、フレーム画像信号の時間系列で構成される動画像信号における復号化対象のフレーム画像を複数の対象領域に分割し、対象領域毎に復号化対象のフレーム画像と異なる複数のフレーム画像を参照して検出された動きベクトルと予測動きベクトルとの差分情報を利用することにより、動き補償による復号化処理をコンピュータに実行させる動画像復号化プログラムにおいて、コンピュータを、対象領域に隣接する隣接領域の動きベクトルを検出するために参照された隣接参照フレーム画像と、対象領域の動きベクトルを検出するために参照された対象参照フレーム画像と、符号化対象のフレーム画像である対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、対象参照フレーム画像を基準にして対象領域に隣接する隣接領域の動きベクトルをスケーリングする補正と、対象領域に隣接する隣接領域の動きベクトルに基づく最適予測動きベクトルの決定とを行うことにより補正後の最適予測動きベクトルを予測する動きベクトル予測手段として機能させることを特徴とする。   Further, the moving picture decoding program of the present invention divides a decoding target frame image in a moving picture signal composed of a time sequence of frame image signals into a plurality of target areas, and the decoding target frame for each target area. In a moving image decoding program for causing a computer to execute a decoding process by motion compensation by using difference information between a motion vector detected with reference to a plurality of frame images different from the image and a predicted motion vector, the computer An adjacent reference frame image referred to for detecting a motion vector of an adjacent area adjacent to the target area, a target reference frame image referred to for detecting a motion vector of the target area, and a frame image to be encoded The target reference frame image based on the temporal relationship with the target frame image or the time information thereof The optimal predicted motion vector after correction is determined by performing a correction to scale the motion vector of the adjacent region adjacent to the target region with reference and determining an optimal predicted motion vector based on the motion vector of the adjacent region adjacent to the target region. It is made to function as a motion vector prediction means to predict.

本発明の動画像復号化装置、動画像復号化方法及び動画像復号化プログラムによれば、動きベクトル予測手段が、隣接領域の動きベクトルを対象領域の動きベクトルを検出するために参照されたフレーム画像と符号化対象のフレーム画像との時間差を基準としてスケーリングして補正するとともに、隣接領域の動きベクトルに基づいて最適予測動きベクトルを予測するので、時間的な動きの連続性を考慮して予測動きベクトルを決定することにより、実際の対象領域の動きベクトルと予測動きベクトルの差をより小さくすることができる。   According to the moving picture decoding apparatus, the moving picture decoding method, and the moving picture decoding program of the present invention, the frame referred to by the motion vector predicting unit to detect the motion vector of the target area from the motion vector of the adjacent area. Scaling and correction is performed based on the time difference between the image and the frame image to be encoded, and the optimal prediction motion vector is predicted based on the motion vector of the adjacent region, so prediction is performed in consideration of temporal motion continuity. By determining the motion vector, the difference between the actual motion vector of the target region and the predicted motion vector can be further reduced.

本発明の動画像復号化装置では、動きベクトル予測手段は、隣接参照フレーム画像と前記対象参照フレーム画像と前記対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、対象参照フレーム画像を基準にして隣接領域の動きベクトルそれぞれをスケーリングして補正し、当該補正された隣接領域の動きベクトルに基づいて最適予測動きベクトルを決定することも好ましい。このように、動きベクトル予測手段が、複数の隣接領域の動きベクトルそれぞれを対象領域の動きベクトルを検出するために参照されたフレーム画像と符号化対象のフレーム画像との時間差を基準としてスケーリングして補正した後に、その補正された隣接領域の動きベクトルに基づいて最適予測動きベクトルを決定するので、実際の対象領域の動きベクトルと予測動きベクトルの差をより小さくすることができる。   In the moving picture decoding apparatus according to the present invention, the motion vector predicting means includes the target reference frame image based on the temporal relationship between the adjacent reference frame image, the target reference frame image, and the target frame image or their time information. It is also preferable to scale and correct each of the motion vectors in the adjacent area based on the above, and determine the optimum predicted motion vector based on the corrected motion vector in the adjacent area. In this way, the motion vector prediction means scales each of the motion vectors of the plurality of adjacent regions based on the time difference between the frame image referred to and the frame image to be encoded in order to detect the motion vector of the target region. After the correction, the optimum predicted motion vector is determined based on the corrected motion vector of the adjacent region, so that the difference between the actual motion vector of the target region and the predicted motion vector can be further reduced.

また、本発明の動画像復号化装置では、動きベクトル予測手段は、隣接領域の動きベクトルに基づいて最適予測動きベクトルを決定し、最適予測動きベクトルとして決定された隣接領域の動きベクトルの隣接参照フレーム画像と前記対象参照フレーム画像と前記対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、対象参照フレーム画像を基準にして最適予測動きベクトルをスケーリングして補正することも好ましい。この場合、動きベクトル予測手段が、隣接領域の動きベクトルに基づいて最適予測動きベクトルを決定した後、決定された最適予測動きベクトルを、対象領域の動きベクトルを検出するために参照されたフレーム画像と符号化対象のフレーム画像との時間差を基準としてスケーリングして補正するので、実際の対象領域の動きベクトルと予測動きベクトルの差をより小さくすることができるとともに、動きベクトルを予測するための処理時間を短縮することが可能となる。   In the moving picture decoding apparatus of the present invention, the motion vector prediction means determines an optimal prediction motion vector based on the motion vector of the adjacent region, and adjoins the motion vector of the adjacent region determined as the optimal prediction motion vector. It is also preferable that the optimal predicted motion vector is scaled and corrected based on the target reference frame image based on the temporal relationship between the frame image, the target reference frame image, and the target frame image or their time information. In this case, after the motion vector prediction means determines the optimal prediction motion vector based on the motion vector of the adjacent region, the determined optimal prediction motion vector is used as a frame image that is referred to in order to detect the motion vector of the target region. Since the time difference between the image and the frame image to be encoded is scaled and corrected, the difference between the motion vector of the actual target area and the predicted motion vector can be further reduced, and the process for predicting the motion vector Time can be shortened.

本発明の動画像符号化装置及び動画像復号化装置によれば、動きベクトル予測手段が、隣接領域の動きベクトルを対象領域の動きベクトルを検出するために参照されたフレーム画像と符号化対象のフレーム画像との時間差を基準としてスケーリングして補正するとともに、隣接領域の動きベクトルに基づいて最適予測動きベクトルを予測するので、時間的な動きの連続性を考慮して予測動きベクトルを決定することにより、実際の対象領域の動きベクトルと予測動きベクトルの差をより小さくすることができる。これにより、符号化及び復号化の情報圧縮の効率の向上を図ることが可能な動画像符号化装置、動画像復号化装置を提供することができる。   According to the moving image encoding device and the moving image decoding device of the present invention, the motion vector predicting means includes the frame image referred to for detecting the motion vector of the target region as the motion vector of the adjacent region and the encoding target. Scaling and correcting based on the time difference from the frame image and predicting the optimal predicted motion vector based on the motion vector of the adjacent region, so determine the predicted motion vector in consideration of temporal motion continuity Thus, the difference between the motion vector of the actual target region and the predicted motion vector can be further reduced. Accordingly, it is possible to provide a moving image encoding device and a moving image decoding device that can improve the efficiency of encoding and decoding information compression.

本実施形態にかかる動画像符号化装置の一例を示す概略図である。It is the schematic which shows an example of the moving image encoder concerning this embodiment. 図1に示す動き検出部の構成図である。It is a block diagram of the motion detection part shown in FIG. 本実施形態にかかる動画像復号化装置の一例を示す概略図である。It is the schematic which shows an example of the moving image decoding apparatus concerning this embodiment. 図3に示す動きベクトル復元部の構成図である。It is a block diagram of the motion vector decompression | restoration part shown in FIG. 符号化対象のブロックと隣接するブロックを模式的に表した図である。It is the figure which represented typically the block adjacent to the block of encoding object. 第1実施形態における動きベクトル予測部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the motion vector estimation part in 1st Embodiment. 符号化対象のブロックと隣接するブロックの動きベクトルを時間空間上において示す図である。It is a figure which shows the motion vector of the block adjacent to the encoding object block on a time space. 第2実施形態における動きベクトル予測部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the motion vector estimation part in 2nd Embodiment. (a)は、動きベクトルの予測のために分割されたブロックの一例を示す図、(b)は、動きベクトルの予測のために分割されたブロックの他の例を示す図である。(A) is a figure which shows an example of the block divided | segmented for motion vector prediction, (b) is a figure which shows the other example of the block divided | segmented for motion vector prediction. 本実施形態にかかる動画像符号化プログラムの構成を示す図である。It is a figure which shows the structure of the moving image encoding program concerning this embodiment. 本実施形態にかかる動画像復号化プログラムの構成を示す図である。It is a figure which shows the structure of the moving image decoding program concerning this embodiment.

本発明の実施形態にかかる動画像符号化装置及び動画像復号化装置について図面を参照して説明する。なお、各図において、同一要素には同一符号を付して重複する説明を省略する。   A video encoding device and a video decoding device according to an embodiment of the present invention will be described with reference to the drawings. In addition, in each figure, the same code | symbol is attached | subjected to the same element and the overlapping description is abbreviate | omitted.

[第1実施形態]
図1は、本実施形態にかかる動画像符号化装置の一例を示す概略図、図3は、本実施形態にかかる動画像復号化装置の一例を示す概略図である。
[First Embodiment]
FIG. 1 is a schematic diagram illustrating an example of a video encoding device according to the present embodiment, and FIG. 3 is a schematic diagram illustrating an example of a video decoding device according to the present embodiment.

(動画像符号化装置の構成)
まず、図1を用いて、本発明にかかる動画像符号化装置10について説明する。以下に説明する動画像符号化装置10は、H.264/AVC符号化方式に準拠した符号化装置である。
(Configuration of video encoding device)
First, a moving picture encoding apparatus 10 according to the present invention will be described with reference to FIG. The moving picture encoding apparatus 10 to be described below is an H.264 standard. This is an encoding device compliant with the H.264 / AVC encoding system.

ここで、動画像符号化装置10に入力される動画像信号としての入力映像信号(動画像信号)は、フレーム画像の時間系列で構成されている。また、フレーム画像信号は、この入力映像信号のフレーム画像単位の信号を表すものとする。以下、符号化対象のフレーム画像信号を「現フレーム」と呼ぶ。現フレームは、16画素×16ライン固定の正方矩形領域であるマクロブロックに分割され、マクロブロック単位で、以下の符号化処理及び復号化処理が行われる。   Here, an input video signal (moving image signal) as a moving image signal input to the moving image encoding device 10 is composed of a time sequence of frame images. Further, the frame image signal represents a signal of the frame image unit of the input video signal. Hereinafter, the frame image signal to be encoded is referred to as a “current frame”. The current frame is divided into macroblocks that are square pixels of 16 pixels × 16 lines, and the following encoding process and decoding process are performed in units of macroblocks.

H.264/AVC符号化方式では、マクロブロックごとに、予測モードとして、フレーム画像信号と時間的に異なる複数の符号化済みフレーム画像信号(参照フレーム画像信号)を参照して動きベクトルを検出することにより、動き補償フレーム間予測を行う複数の「INTER予測モード」と、同一空間上の符号化済みである近傍のマクロブロックの画素値を用いた空間予測を行う複数の「INTRA予測モード」とが用意されている。なお、「INTER予測モード」においては、マクロブロックをさらに任意の領域(例えば、8画素×16ライン)に分割したブロック(対象領域)毎に動き検出、動き予測、及び動き補償の各処理(詳細は後述する。)が行われる。動画像符号化装置10は、入力映像信号の局所的な性質に応じてマクロブロック単位で予測モードを切り替え、効率的な情報圧縮を行うことができるように構成されている。   H. In the H.264 / AVC encoding method, a motion vector is detected for each macroblock with reference to a plurality of encoded frame image signals (reference frame image signals) that are temporally different from the frame image signal as a prediction mode. A plurality of “INTER prediction modes” for performing motion compensation inter-frame prediction and a plurality of “INTRA prediction modes” for performing spatial prediction using pixel values of neighboring macroblocks that have been encoded in the same space are prepared. Has been. In the “INTER prediction mode”, motion detection, motion prediction, and motion compensation processes (details) are performed for each block (target region) obtained by further dividing the macroblock into arbitrary regions (for example, 8 pixels × 16 lines). Will be described later). The moving picture coding apparatus 10 is configured to perform efficient information compression by switching the prediction mode in units of macroblocks according to the local nature of the input video signal.

動画像符号化装置10は、機能的な構成要素として、図1に示すように、入力部101と、動き検出部102と、動き補償部103と、フレームメモリ104と、空間予測部105と、スイッチ106と、減算器107と、直交変換部108と、量子化部109と、可変長符号化部110と、逆量子化部111と、逆直交変換部112と、加算器113とを備えて構成される。以下、各構成要素について説明する。   As shown in FIG. 1, the moving image encoding apparatus 10 includes an input unit 101, a motion detection unit 102, a motion compensation unit 103, a frame memory 104, a spatial prediction unit 105, and a functional component as shown in FIG. A switch 106, a subtractor 107, an orthogonal transform unit 108, a quantization unit 109, a variable length coding unit 110, an inverse quantization unit 111, an inverse orthogonal transform unit 112, and an adder 113 are provided. Composed. Hereinafter, each component will be described.

入力部101は、外部から入力される動画像信号としての入力映像信号121を受信した後フレーム画像信号に分解し、減算器107及び動き検出部102に対して、フレーム画像信号122、123として送る部分である。   The input unit 101 receives an input video signal 121 as a moving image signal input from the outside, decomposes it into a frame image signal, and sends it to the subtracter 107 and the motion detection unit 102 as frame image signals 122 and 123. Part.

また、フレームメモリ104は、過去に符号化済みのフレーム画像信号を記憶しておく部分である。   The frame memory 104 is a part for storing previously encoded frame image signals.

動き検出部102は、予測モードの選択と動きベクトルの検出を行う部分である。より具体的には、動き検出部102は、「INTER予測モード」を選択した場合、参照フレーム画像信号124を用いて、あらかじめフレームメモリに蓄積されている複数の符号化済みフレーム画像の中から所定の探索範囲内で、現フレーム内の画像信号パターンに類似する画像信号パターンを探し出す。そして、両画像信号パターン間の空間的な変位量である動きベクトルを検出する。検出された動きベクトルと符号化済みの隣接ブロックの動きベクトルから算出する最適予測動きベクトル(動きベクトル予測値)との差分情報である動きベクトル差分値と、動きベクトルの検出に用いた参照フレーム画像信号を示す参照フレーム番号と、選択された予測モードとを含む信号125を可変長符号化部110へ送る。同時に、動き検出部102は、選択された予測モードと、動きベクトルと、参照フレーム番号とを含む信号126を動き補償部103に送る。   The motion detection unit 102 is a part that performs prediction mode selection and motion vector detection. More specifically, when “INTER prediction mode” is selected, the motion detection unit 102 uses a reference frame image signal 124 to select a predetermined frame image from a plurality of encoded frame images stored in advance in the frame memory. In this search range, an image signal pattern similar to the image signal pattern in the current frame is searched for. Then, a motion vector that is a spatial displacement amount between both image signal patterns is detected. The motion vector difference value, which is difference information between the detected motion vector and the optimally predicted motion vector (motion vector prediction value) calculated from the motion vector of the encoded adjacent block, and the reference frame image used to detect the motion vector A signal 125 including a reference frame number indicating the signal and the selected prediction mode is sent to the variable length coding unit 110. At the same time, the motion detection unit 102 sends a signal 126 including the selected prediction mode, motion vector, and reference frame number to the motion compensation unit 103.

また、動き補償部103は、動き検出部102から送られた動きベクトルを用いて、フレームメモリ104中の参照フレーム番号で示されるフレームの符号化済み画像信号(参照フレーム画像信号)を参照して、各ブロックの予測画像信号127を生成し、スイッチ106に送る。   Also, the motion compensation unit 103 refers to the encoded image signal (reference frame image signal) of the frame indicated by the reference frame number in the frame memory 104 using the motion vector sent from the motion detection unit 102. The prediction image signal 127 of each block is generated and sent to the switch 106.

一方、動き検出部102は、「INTRA予測モード」を選択した場合、選択された予測モード128を空間予測部105に送る。この場合、動き検出部102は同一空間上の符号化済みである近傍のブロックの画素値を用いた空間予測を行うため、時間的な動きに関する情報である動きベクトル差分値および参照フレーム番号を可変長符号化部110へ送ることは行わない。   On the other hand, when the “INTRA prediction mode” is selected, the motion detection unit 102 sends the selected prediction mode 128 to the spatial prediction unit 105. In this case, since the motion detection unit 102 performs spatial prediction using pixel values of neighboring blocks that have been encoded in the same space, the motion vector difference value and the reference frame number, which are information related to temporal motion, can be changed. It is not sent to the long encoding unit 110.

これに対して、空間予測部105は、符号化済みである近傍のブロックの画像信号(参照フレーム画像信号129)を参照して、予測画像信号130を生成し、スイッチ106に送る。   On the other hand, the spatial prediction unit 105 generates a prediction image signal 130 with reference to the image signal (reference frame image signal 129) of the neighboring block that has been encoded, and sends the prediction image signal 130 to the switch 106.

スイッチ106は、動き検出部102から受信した予測モード131に応じて、予測画像信号127と予測画像信号130のいずれかを選択し、選択した予測画像信号132を減算器107に送る。   The switch 106 selects either the prediction image signal 127 or the prediction image signal 130 according to the prediction mode 131 received from the motion detection unit 102, and sends the selected prediction image signal 132 to the subtractor 107.

これに対して、減算器107は、フレーム画像信号122と予測画像信号132との差分値(予測残差信号133)を生成し、直交変換部108に送る。   On the other hand, the subtracter 107 generates a difference value (prediction residual signal 133) between the frame image signal 122 and the predicted image signal 132 and sends the difference value to the orthogonal transform unit 108.

直交変換部108は、減算器107から送られた予測残差信号133を直交変換することにより、直交変換係数134を生成して、量子化部109に送る。   The orthogonal transform unit 108 generates an orthogonal transform coefficient 134 by performing orthogonal transform on the prediction residual signal 133 sent from the subtractor 107, and sends it to the quantization unit 109.

これに対して、量子化部109が、直交変換部108から送信された直交変換係数134を量子化することにより、量子化直交変換係数135を生成し、可変長符号化部110及び逆量子化部111に送る。   On the other hand, the quantizing unit 109 quantizes the orthogonal transform coefficient 134 transmitted from the orthogonal transform unit 108 to generate a quantized orthogonal transform coefficient 135, and the variable length coding unit 110 and the inverse quantization Send to part 111.

次に、可変長符号化部110が、量子化部109から送信された量子化直交変換係数135と、動き検出部102から送信された予測モードと、動きベクトル差分値と、参照フレーム番号とに基づいてエントロピー符号化を行って圧縮ストリーム136に多重化して、外部へ伝送する。   Next, the variable length coding unit 110 converts the quantized orthogonal transform coefficient 135 transmitted from the quantization unit 109, the prediction mode transmitted from the motion detection unit 102, the motion vector difference value, and the reference frame number. Based on this, entropy encoding is performed, multiplexed into the compressed stream 136, and transmitted to the outside.

また、逆量子化部111は、量子化部109から送信された量子化直交変換係数135について逆量子化を行うことにより、直交変換係数137を生成して、逆直交変換部112に送る。   In addition, the inverse quantization unit 111 generates an orthogonal transform coefficient 137 by performing inverse quantization on the quantized orthogonal transform coefficient 135 transmitted from the quantization unit 109, and sends the orthogonal transform coefficient 137 to the inverse orthogonal transform unit 112.

そして、逆直交変換部112は、逆量子化部111から送信された直交変換係数137について逆直交変換を行うことにより、予測残差信号138を生成し、加算器113に送る。   Then, the inverse orthogonal transform unit 112 performs an inverse orthogonal transform on the orthogonal transform coefficient 137 transmitted from the inverse quantization unit 111 to generate a prediction residual signal 138 and sends the prediction residual signal 138 to the adder 113.

加算器113は、逆直交変換部112から送信された予測残差信号138とスイッチ106から送信された予測画像信号132とを加算してフレーム画像信号139を生成し、フレームメモリ104に送る。このフレーム画像信号139が、フレームメモリ104に格納され、以降の符号化処理で、参照フレーム画像信号として用いられる。また、動きベクトルや参照フレーム番号に関する情報も参照フレーム画像信号に含んで同時に格納される。   The adder 113 adds the prediction residual signal 138 transmitted from the inverse orthogonal transform unit 112 and the prediction image signal 132 transmitted from the switch 106 to generate a frame image signal 139 and sends it to the frame memory 104. This frame image signal 139 is stored in the frame memory 104 and used as a reference frame image signal in the subsequent encoding process. In addition, information on motion vectors and reference frame numbers is also included in the reference frame image signal and stored simultaneously.

次に、図2を参照して、動画像符号化装置10の動き検出部102について詳細に説明する。図2は、図1の動き検出部の構成図である。   Next, the motion detection unit 102 of the video encoding device 10 will be described in detail with reference to FIG. FIG. 2 is a configuration diagram of the motion detection unit of FIG.

動き検出部102は、機能的な構成要素として、図2に示すように、予測モード決定部201と、参照フレーム決定部202と、動きベクトル検出部203と、動きベクトル予測部(動きベクトル予測手段)204と、動きベクトル差分部205とを備えて構成される。   As shown in FIG. 2, the motion detection unit 102 includes a prediction mode determination unit 201, a reference frame determination unit 202, a motion vector detection unit 203, and a motion vector prediction unit (motion vector prediction unit). ) 204 and a motion vector difference unit 205.

まず、予測モード決定部201は、入力されたフレーム画像信号123および参照フレーム画像信号124に基づき、符号化対象の所定ブロックの符号化モードとして「INTER予測モード」を用いるか「INTRA予測モード」を用いるかを判断し、予測モードを決定する。「INTRA予測モード」を選択した場合は、予測モード131を出力し、処理を終了する。「INTER予測モード」を選択した場合、予測モード決定部201は、予測モード131を出力すると同時に、フレーム画像信号と、参照フレーム画像信号と、予測モードとを含む信号210を参照フレーム決定部202に送る。   First, the prediction mode determination unit 201 uses “INTER prediction mode” or “INTRA prediction mode” as the encoding mode of a predetermined block to be encoded based on the input frame image signal 123 and reference frame image signal 124. Determine whether to use and determine the prediction mode. When “INTRA prediction mode” is selected, the prediction mode 131 is output and the process is terminated. When “INTER prediction mode” is selected, the prediction mode determination unit 201 outputs the prediction mode 131 and simultaneously outputs a signal 210 including the frame image signal, the reference frame image signal, and the prediction mode to the reference frame determination unit 202. send.

参照フレーム決定部202は、入力されたフレーム画像信号と、参照フレーム画像信号と、および予測モードとに基づき、符号化対象の所定ブロックの動きベクトルの検出および予測を行う参照フレームを決定し、フレーム画像信号と参照フレーム画像信号と予測モードと参照フレーム番号とを含む信号211を動きベクトル検出部203に送る。同時に、参照フレーム決定部202は、参照フレーム画像信号と予測モードと参照フレーム番号とを含む信号212を動きベクトル予測部204に送る。   The reference frame determination unit 202 determines a reference frame for detecting and predicting a motion vector of a predetermined block to be encoded based on the input frame image signal, the reference frame image signal, and the prediction mode. A signal 211 including an image signal, a reference frame image signal, a prediction mode, and a reference frame number is sent to the motion vector detection unit 203. At the same time, the reference frame determination unit 202 sends a signal 212 including the reference frame image signal, the prediction mode, and the reference frame number to the motion vector prediction unit 204.

動きベクトル検出部203は、入力されたフレーム画像信号、参照フレーム画像信号、予測モードおよび参照フレーム番号に基づき、参照フレーム画像信号の中の参照フレーム番号が示す画像信号から、現フレーム内の画像信号パターンに類似する画像信号パターンを探し出す。そして、両画像信号パターン間の空間的な変位量である動きベクトルを検出し、その動きベクトルと予測モードと参照フレーム番号とを含む信号213を動きベクトル差分部205に送る。また、動き補償に用いるための動きベクトルと、予測モードと、参照フレーム番号とを含む信号126を出力する。   Based on the input frame image signal, reference frame image signal, prediction mode, and reference frame number, the motion vector detection unit 203 determines the image signal in the current frame from the image signal indicated by the reference frame number in the reference frame image signal. Find an image signal pattern similar to the pattern. Then, a motion vector that is a spatial displacement amount between both image signal patterns is detected, and a signal 213 including the motion vector, the prediction mode, and the reference frame number is sent to the motion vector difference unit 205. In addition, a signal 126 including a motion vector to be used for motion compensation, a prediction mode, and a reference frame number is output.

また、動きベクトル予測部204は、参照フレーム画像信号に含まれる符号化対象の所定ブロックに隣接する符号化済みのブロックの動きベクトルおよびそれらの参照フレーム番号と、符号化対象の所定ブロックの予測モードおよび参照フレーム番号を用いて、符号化対象の所定ブロックの動きベクトル予測値を算出する。なお、動きベクトル予測値の算出の際には、符号化対象の所定ブロックの動きベクトルを検出するために参照されたフレーム画像(対象参照フレーム画像)を基準にして、符号化対象の所定ブロックに隣接するブロックの動きベクトルをスケーリングする補正を行う(詳細は、後述する。)。スケーリングは、隣接するブロックの動きベクトルを検出するために参照されたフレーム画像(隣接参照フレーム画像)と、対象参照フレーム画像と、符号化対象のフレーム画像(対象フレーム画像)との時間的な関係に基づいて行う。ここで、隣接参照フレーム画像と対象参照フレーム画像と対象フレーム画像との時間的な関係とは、各フレーム画像の相対的な時間差、又は各フレーム画像の時刻情報を示している。動きベクトル予測部204は、算出した動きベクトル予測値と予測モードと参照フレーム番号とを含む信号215を、動きベクトル差分部205に送る。   The motion vector prediction unit 204 also includes motion vectors of encoded blocks adjacent to a predetermined block to be encoded included in the reference frame image signal, their reference frame numbers, and a prediction mode of the predetermined block to be encoded. The motion vector prediction value of the predetermined block to be encoded is calculated using the reference frame number. When calculating a motion vector prediction value, a predetermined block to be encoded is used as a reference based on a frame image (target reference frame image) referred to for detecting a motion vector of the predetermined block to be encoded. Correction for scaling the motion vectors of adjacent blocks is performed (details will be described later). Scaling is a temporal relationship between a frame image (adjacent reference frame image) referenced to detect a motion vector of an adjacent block, a target reference frame image, and a frame image to be encoded (target frame image). Based on. Here, the temporal relationship among the adjacent reference frame image, the target reference frame image, and the target frame image indicates a relative time difference between the frame images or time information of each frame image. The motion vector prediction unit 204 sends a signal 215 including the calculated motion vector prediction value, the prediction mode, and the reference frame number to the motion vector difference unit 205.

動きベクトル差分部205は、入力された動きベクトルから動きベクトル予測値を引いた値である動きベクトル差分値を算出し、可変長符号化される予測モードと、参照フレーム番号と、動きベクトル差分値とを含む信号125を出力する。   The motion vector difference unit 205 calculates a motion vector difference value that is a value obtained by subtracting a motion vector prediction value from the input motion vector, and performs a variable length encoding prediction mode, a reference frame number, and a motion vector difference value. A signal 125 including

(動画像復号化装置の構成)
次に、図3を用いて、本発明にかかる動画像復号化装置30について説明する。以下に説明する動画像復号化装置30は、動画像符号化装置10と同様に、H.264/AVC符号化方式に準拠した復号化装置である。
(Configuration of video decoding device)
Next, the moving picture decoding apparatus 30 according to the present invention will be described with reference to FIG. The video decoding device 30 described below is similar to the video encoding device 10 in the H.264 format. This is a decoding device compliant with the H.264 / AVC encoding system.

動画像復号化装置30は、動画像符号化装置10により出力された圧縮ストリーム136を入力信号として用い、これを入力映像信号に復号化する機能を有する。   The moving picture decoding apparatus 30 has a function of using the compressed stream 136 output from the moving picture encoding apparatus 10 as an input signal and decoding it into an input video signal.

動画像復号化装置30は、機能的な構成要素として、図1に示すように、可変長復号化部301と、動きベクトル復元部302と、動き補償部303と、フレームメモリ304と、空間予測部305と、スイッチ306と、逆量子化部307と、逆直交変換部308と、加算器309とを備えて構成される。以下、各構成要素について説明する。   As shown in FIG. 1, the moving picture decoding apparatus 30 includes a variable length decoding unit 301, a motion vector restoration unit 302, a motion compensation unit 303, a frame memory 304, spatial prediction, as illustrated in FIG. A unit 305, a switch 306, an inverse quantization unit 307, an inverse orthogonal transform unit 308, and an adder 309 are configured. Hereinafter, each component will be described.

可変長復号化部301は、圧縮ストリーム136を受信した後、各フレームの先頭を表す同期ワードを検出した後、ブロック単位で、予測モードと量子化直交変換係数を復元する。また、予測モードが「INTER予測モード」である場合、動きベクトル差分値と参照フレーム番号の復号も合わせて行う。可変長復号化部301は、復元した予測モードと動きベクトル差分値と参照フレーム番号とを含む信号321を動きベクトル復元部302に、復元した量子化直交変換係数322を逆量子化部307に、復元した予測モード326をスイッチ306及び空間予測部305に、それぞれ送る。   After receiving the compressed stream 136, the variable length decoding unit 301 detects a synchronization word representing the head of each frame, and then restores the prediction mode and the quantized orthogonal transform coefficient in units of blocks. When the prediction mode is “INTER prediction mode”, the motion vector difference value and the reference frame number are also decoded. The variable length decoding unit 301 transmits the signal 321 including the reconstructed prediction mode, the motion vector difference value, and the reference frame number to the motion vector reconstructing unit 302, and the reconstructed quantized orthogonal transform coefficient 322 to the inverse quantizing unit 307. The restored prediction mode 326 is sent to the switch 306 and the spatial prediction unit 305, respectively.

動きベクトル復元部302は、予測モードが「INTER予測モード」である場合、可変長復号化部301から送信された動きベクトル差分値と、復号化済みの隣接ブロックの動きベクトルから算出した動きベクトル予測値とを用いて動きベクトルを復元する。そして、復元した動きベクトルと予測モードと参照フレーム番号とを含む信号323を動き補償部303に送る。   When the prediction mode is “INTER prediction mode”, the motion vector restoration unit 302 calculates motion vector prediction calculated from the motion vector difference value transmitted from the variable length decoding unit 301 and the motion vector of the decoded adjacent block. The motion vector is restored using the value. Then, a signal 323 including the restored motion vector, prediction mode, and reference frame number is sent to the motion compensation unit 303.

次に、動き補償部303は、動きベクトルと予測モードと参照フレーム番号とに基づいて、フレームメモリ304から送信される参照フレーム画像信号324を用いて、予測画像信号325を生成し、スイッチ306に送る。なお、フレームメモリ304には、過去に復号化済みのフレーム画像信号が格納されている。   Next, the motion compensation unit 303 generates a predicted image signal 325 using the reference frame image signal 324 transmitted from the frame memory 304 based on the motion vector, the prediction mode, and the reference frame number, and sends it to the switch 306. send. The frame memory 304 stores previously decoded frame image signals.

また、空間予測部305は、予測モード326が「INTRA予測モード」である場合、復号化済みの近傍ブロックの画像信号(参照フレーム画像信号327)を参照して予測画像信号328を生成し、スイッチ306に送る。   In addition, when the prediction mode 326 is the “INTRA prediction mode”, the spatial prediction unit 305 generates the predicted image signal 328 by referring to the image signal (reference frame image signal 327) of the decoded neighboring block, and the switch To 306.

次に、スイッチ306が、可変長復号化部301から送信された予測モード326に応じて、予測画像信号325と予測画像信号328とのいずれかを選択し、予測画像信号329として加算器309に送る。   Next, the switch 306 selects either the predicted image signal 325 or the predicted image signal 328 according to the prediction mode 326 transmitted from the variable length decoding unit 301, and outputs the predicted image signal 329 to the adder 309. send.

一方、逆量子化部307は、可変長復号化部301により送信された量子化直交変換係数322を、逆量子化して直交変換係数330に復元し、逆直交変換部308に送る。   On the other hand, the inverse quantization unit 307 performs inverse quantization on the quantized orthogonal transform coefficient 322 transmitted by the variable length decoding unit 301 to restore the orthogonal transform coefficient 330, and sends it to the inverse orthogonal transform unit 308.

逆直交変換部308は、直交変換係数330を逆直交変換し予測残差信号331に復元する。   The inverse orthogonal transform unit 308 performs inverse orthogonal transform on the orthogonal transform coefficient 330 to restore the prediction residual signal 331.

そして、加算器309は、スイッチ306から送信された予測画像信号329と、逆直交変換部308から送信された予測残差信号331とを加算し、フレーム画像信号332として復元する。   Then, the adder 309 adds the predicted image signal 329 transmitted from the switch 306 and the predicted residual signal 331 transmitted from the inverse orthogonal transform unit 308 to restore the frame image signal 332.

最後に、フレーム画像信号332は所定の表示タイミングで表示デバイス(図示せず)へ出力され、入力映像信号(動画像信号)121が再生される。   Finally, the frame image signal 332 is output to a display device (not shown) at a predetermined display timing, and the input video signal (moving image signal) 121 is reproduced.

また、フレーム画像信号332は、以降の復号化処理に用いられるため、参照フレーム画像信号としてフレームメモリ304に格納される。ここで、フレーム画像信号332は、動画像符号化装置10における同一番号のフレーム画像信号139と同一の値となる。また、動きベクトルや参照フレーム番号に関する情報も参照フレーム画像信号に含んで同時に格納される。   The frame image signal 332 is stored in the frame memory 304 as a reference frame image signal because it is used for the subsequent decoding process. Here, the frame image signal 332 has the same value as the frame image signal 139 having the same number in the moving image coding apparatus 10. In addition, information on motion vectors and reference frame numbers is also included in the reference frame image signal and stored simultaneously.

次に、図4を参照して、動画像復号化装置30の動きベクトル復元部302について詳細に説明する。図4は、図3の動きベクトル復元部の構成図である。   Next, the motion vector restoration unit 302 of the moving picture decoding apparatus 30 will be described in detail with reference to FIG. FIG. 4 is a configuration diagram of the motion vector restoration unit of FIG.

まず、動きベクトル予測部401は、入力された参照フレーム画像信号324に含まれる復号化対象の所定ブロックに隣接する復号化済みのブロックの動きベクトルとそれらの参照フレーム番号とを抽出する。そして、入力された信号321に含まれる復号化対象の所定ブロックの予測モードと参照フレーム番号とを用いて、復号化対象の所定ブロックの動きベクトル予測値を算出する。なお、動きベクトル予測値の算出の際には、復号化対象の所定ブロックの動きベクトルを検出するために参照されたフレーム画像(対象参照フレーム画像)を基準にして、復号化対象の所定ブロックに隣接するブロックの動きベクトルをスケーリングする補正を行う(詳細は、後述する。)。スケーリングは、隣接するブロックの動きベクトルを検出するために参照されたフレーム画像(隣接参照フレーム画像)と、対象参照フレーム画像と、復号化対象のフレーム画像(対象フレーム画像)との時間的な関係に基づいて行う。ここで、隣接参照フレーム画像と対象参照フレーム画像と対象フレーム画像との時間的な関係とは、各フレーム画像の相対的な時間差、又は各フレーム画像の時刻情報を示している。その後、予測モードと参照フレーム番号と算出した動きベクトル予測値とを含む信号421を動きベクトル加算部402に送る。   First, the motion vector prediction unit 401 extracts a motion vector of a decoded block adjacent to a predetermined block to be decoded included in the input reference frame image signal 324 and their reference frame numbers. Then, using the prediction mode and the reference frame number of the predetermined block to be decoded included in the input signal 321, the motion vector prediction value of the predetermined block to be decoded is calculated. When calculating a motion vector prediction value, a predetermined block to be decoded is used as a reference based on a frame image (target reference frame image) referred to for detecting a motion vector of the predetermined block to be decoded. Correction for scaling the motion vectors of adjacent blocks is performed (details will be described later). Scaling is a temporal relationship between a frame image (adjacent reference frame image) referenced to detect a motion vector of an adjacent block, a target reference frame image, and a decoding target frame image (target frame image). Based on. Here, the temporal relationship among the adjacent reference frame image, the target reference frame image, and the target frame image indicates a relative time difference between the frame images or time information of each frame image. Thereafter, a signal 421 including the prediction mode, the reference frame number, and the calculated motion vector prediction value is sent to the motion vector adding unit 402.

動きベクトル加算部402は、入力された動きベクトル予測値と予測モードと動きベクトル差分値と参照フレーム番号とに基づき動きベクトルを復元する。そして、動き補償に用いるための動きベクトルと、予測モードと、および参照フレーム番号とを含む信号323を出力する。   The motion vector addition unit 402 restores a motion vector based on the input motion vector prediction value, prediction mode, motion vector difference value, and reference frame number. Then, a signal 323 including a motion vector used for motion compensation, a prediction mode, and a reference frame number is output.

(最適予測動きベクトルの算出)
ここでさらに、動画像符号化装置10の動き検出部102および動画像復号化装置30の動きベクトル復元部302において行われる最適予測動きベクトルの算出についてより詳細に説明する。
(Calculation of optimal prediction motion vector)
Here, the calculation of the optimal prediction motion vector performed in the motion detection unit 102 of the video encoding device 10 and the motion vector restoration unit 302 of the video decoding device 30 will be described in more detail.

動画像符号化装置10の動き検出部102における動きベクトル予測部204は、符号化対象のブロックで検出された動きベクトルに対して差分をとるために用いられる最適予測動きベクトル(動きベクトル予測値)を算出する。最終的に、動画像符号化装置10が圧縮ストリーム136として伝送する情報は、動きベクトルからこの動きベクトル予測値を引いた動きベクトル差分値を符号化したものとなる。従って、最適予測動きベクトルが実際の動きベクトルに近いほど効率の良い符号化を行うことができることとなる。   The motion vector prediction unit 204 in the motion detection unit 102 of the video encoding device 10 is an optimal prediction motion vector (motion vector prediction value) used for taking a difference from the motion vector detected in the block to be encoded. Is calculated. Finally, the information transmitted as the compressed stream 136 by the moving image encoding apparatus 10 is obtained by encoding a motion vector difference value obtained by subtracting the motion vector prediction value from the motion vector. Therefore, the closer the optimum predicted motion vector is to the actual motion vector, the more efficient the encoding can be performed.

また、動画像復号化装置30の動きベクトル復元部302における動きベクトル予測部401は、参照フレーム画像信号に基づいて動きベクトル予測値を算出する。算出された動きベクトル予測値は、伝送された動きベクトル差分値と加算して動きベクトルを復元するために用いられる。従って、動画像符号化装置10と同様に、最適予測動きベクトルが実際の動きベクトルに近いほど効率の良い復号化を行うことができることとなる。   In addition, the motion vector prediction unit 401 in the motion vector restoration unit 302 of the video decoding device 30 calculates a motion vector prediction value based on the reference frame image signal. The calculated motion vector prediction value is used to restore the motion vector by adding it to the transmitted motion vector difference value. Therefore, as in the case of the moving picture coding apparatus 10, the more efficient decoding can be performed as the optimum predicted motion vector is closer to the actual motion vector.

なお、動きベクトル予測部204による動きベクトル予測値の算出と、動きベクトル予測部401による動きベクトル予測値の算出は、同様の処理であるため、以下、動きベクトル予測部204の動作についてのみ説明する。   Since the calculation of the motion vector prediction value by the motion vector prediction unit 204 and the calculation of the motion vector prediction value by the motion vector prediction unit 401 are the same processing, only the operation of the motion vector prediction unit 204 will be described below. .

図5は、符号化対象のブロックと隣接するブロックを模式的に表した図である。図5において、符号化対象のブロックをEとし、ブロックAをブロックEの最も左上の画素の直左の画素を含むブロック、ブロックBをブロックEの最も左上の画素の直上の画素を含むブロック、ブロックCをブロックEの最も右上の画素の直右上の画素を含むブロックとする。また、ブロックDをブロックEの最も左上の画素の直左上の画素を含むブロックとする。   FIG. 5 is a diagram schematically showing a block adjacent to a block to be encoded. In FIG. 5, the block to be encoded is E, block A is a block including the pixel immediately left of the upper leftmost pixel of block E, block B is a block including the pixel immediately above the upper leftmost pixel of block E, The block C is a block including the pixel immediately above the upper right pixel of the block E. Further, the block D is a block including the pixel immediately above the leftmost pixel of the block E.

まず、動きベクトル予測部204は、ブロックCが画面外である場合は、ブロックCの動きベクトルおよび参照フレーム番号は、ブロックDの動きベクトルおよび参照フレーム番号と同一であるとする。   First, when the block C is outside the screen, the motion vector prediction unit 204 assumes that the motion vector and reference frame number of the block C are the same as the motion vector and reference frame number of the block D.

また、ブロックB、ブロックCがともに画面外である場合は、ブロックB、ブロックCの動きベクトルおよび参照フレーム番号は、ブロックAの動きベクトルおよび参照フレーム番号と同一であるとする。   When both block B and block C are outside the screen, the motion vector and reference frame number of block B and block C are the same as the motion vector and reference frame number of block A.

以上のような前提で、動きベクトル予測部204は、常に符号化対象のブロックEに隣接するブロックA、ブロックB、ブロックCの動きベクトル及び参照フレーム番号が存在するようにした上で、動きベクトル予測値の算出を行う。   On the premise as described above, the motion vector prediction unit 204 always makes the motion vector and the reference frame number of the block A, block B, and block C adjacent to the block E to be encoded exist, and then the motion vector. Calculate the predicted value.

図6は、動きベクトル予測部204の動きベクトル予測値の算出時の動作を示すフローチャートである。   FIG. 6 is a flowchart showing the operation of the motion vector prediction unit 204 when calculating the motion vector prediction value.

まず、動きベクトル予測部204により、参照フレーム画像信号に含まれる符号化対象の所定ブロック(E)に隣接するブロック(A、B、C)の動きベクトルおよび参照フレーム画像番号が参照される(ステップS01)。   First, the motion vector prediction unit 204 refers to the motion vector and reference frame image number of a block (A, B, C) adjacent to the predetermined block (E) to be encoded included in the reference frame image signal (step). S01).

次に、隣接ブロック(A、B、C)の参照フレーム画像番号のうち、どれか一つだけブロック(E)の参照フレーム画像番号と等しいかどうかが判定される(ステップS02)。隣接ブロック(A、B、C)の参照フレーム画像番号のうち、どれか一つだけブロック(E)の参照フレーム画像番号と等しい場合には(ステップS02:YES)、ブロック(E)の参照フレーム画像番号と等しい参照フレーム画像番号を持つブロックの動きベクトル値をブロック(E)の動きベクトル予測値と決定する(ステップS03)。隣接ブロック(A、B、C)の参照フレーム画像番号のうち、どれか一つだけブロック(E)の参照フレーム画像番号と等しい場合に該当しない時は(ステップS02:NO)、処理をステップS04に移行する。   Next, it is determined whether only one of the reference frame image numbers of the adjacent blocks (A, B, C) is equal to the reference frame image number of the block (E) (step S02). If any one of the reference frame image numbers of the adjacent blocks (A, B, C) is equal to the reference frame image number of the block (E) (step S02: YES), the reference frame of the block (E) The motion vector value of the block having the reference frame image number equal to the image number is determined as the motion vector prediction value of the block (E) (step S03). If it is not the case that any one of the reference frame image numbers of the adjacent blocks (A, B, C) is equal to the reference frame image number of the block (E) (step S02: NO), the process is performed in step S04. Migrate to

続いて、動きベクトル予測部204により、各隣接ブロック(A、B、C)が、ブロック(E)の動きベクトルを検出した参照フレーム画像番号と同一の参照フレーム画像を用いて動き補償されたものであるかが判定される(ステップS04)。検出した隣接ブロック(A、B、C)の参照フレーム画像が、ブロック(E)の動きベクトルを検出した参照フレーム画像と同一の参照フレーム画像でない場合(ステップS04:NO)、符号化対象のブロック(E)と同じ参照フレームの条件となるように隣接ブロック(A、B、C)の動きベクトル値がスケーリングされる(ステップS05)。   Subsequently, the motion vector prediction unit 204 performs motion compensation on each adjacent block (A, B, C) using the same reference frame image as the reference frame image number in which the motion vector of the block (E) is detected. Is determined (step S04). When the detected reference frame image of the adjacent block (A, B, C) is not the same reference frame image as the reference frame image from which the motion vector of the block (E) is detected (step S04: NO), the block to be encoded The motion vector values of the adjacent blocks (A, B, C) are scaled so as to satisfy the same reference frame conditions as in (E) (step S05).

このスケーリング方法を、図7に基づいて説明する。図7は、符号化対象のブロックと隣接するブロックの動きベクトルを時間空間上において示す図である。図7のように、現フレーム(対象フレーム画像)701(時刻t0)から、符号化対象のブロック(E)の参照フレーム(対象参照フレーム画像)702までの時間的距離(t0-te)を基準にして、検出した符号化対象の所定ブロックに隣接するブロック(A、B、C)の動きベクトル751a、751b、751cの大きさが変更される。具体的には、符号化対象のブロック(E)の参照フレーム702が時刻teにおけるもの、隣接ブロックAの動きベクトル751aが(MVxA、MVyA)、その参照フレーム(隣接参照フレーム画像)703aが時刻taにおけるものであったとすると、符号化対象のブロック(E)の参照フレーム702を基準にスケーリングされた動きベクトル(MVxA’、 MVyA’)は、下記式(1)及び(2)によって求められる。

Figure 2009290889

This scaling method will be described with reference to FIG. FIG. 7 is a diagram illustrating a motion vector of a block adjacent to the encoding target block in time space. As shown in FIG. 7, the temporal distance (t0-te) from the current frame (target frame image) 701 (time t0) to the reference frame (target reference frame image) 702 of the encoding target block (E) is used as a reference. Thus, the magnitudes of the motion vectors 751a, 751b, 751c of the blocks (A, B, C) adjacent to the detected predetermined block to be encoded are changed. Specifically, the reference frame 702 of the encoding target block (E) is the one at time te, the motion vector 751a of the adjacent block A is (MVxA, MVyA), and the reference frame (adjacent reference frame image) 703a is the time ta. , The motion vectors (MVxA ′, MVyA ′) scaled with reference to the reference frame 702 of the encoding target block (E) are obtained by the following equations (1) and (2).
Figure 2009290889

なお、この場合、隣接ブロック(A、B、C)は必ずしも過去の参照フレーム画像を用いて動き補償されている必要はなく、未来((t0-t)<0)の参照フレーム画像を用いて動き補償されていても良い。   In this case, the adjacent blocks (A, B, C) are not necessarily motion-compensated using the past reference frame image, and the future ((t0−t) <0) reference frame image is used. Motion compensation may be performed.

一方、図6に戻って、検出した隣接ブロック(A、B、C)の参照フレーム画像が、ブロック(E)の動きベクトルを検出した参照フレーム画像と同一の参照フレーム画像である場合(ステップS04:NO)、ブロック(A、B、C)の動きベクトル値をスケーリング済みとしてそのまま利用される(ステップS06)。   On the other hand, referring back to FIG. 6, when the detected reference frame image of the adjacent block (A, B, C) is the same reference frame image as the reference frame image from which the motion vector of the block (E) is detected (step S04). : NO), the motion vector values of the blocks (A, B, C) are used as they are after being scaled (step S06).

次に、隣接ブロック(A、B、C)の動きベクトルが全て、スケーリング済みがどうかを判定する(ステップS07)。全ての隣接ブロック(A、B、C)がスケーリング済みでない場合には(ステップS07:NO)、ステップS04からの処理を繰り返す。   Next, it is determined whether all the motion vectors of the adjacent blocks (A, B, C) have been scaled (step S07). If all adjacent blocks (A, B, C) have not been scaled (step S07: NO), the processing from step S04 is repeated.

全ての隣接ブロック(A、B、C)がスケーリング済みである場合には(ステップS07:YES)、符号化対象のブロック(E)の動きベクトルを検出した参照フレーム702を基準にしてスケーリングされた隣接ブロック(A、B、C)の動きベクトルの中間値を算出することにより、最適予測動きベクトルが決定される(ステップS08)。中間値の算出は、3つの隣接ブロック(A、B、C)のスケーリング後の動きベクトル(MVxA’、MVyA’)、(MVxB’、MVyB’)、(MVxC’、MVyC’)をx、y成分ごとに比較し、それぞれ成分の中でちょうど中間(2番目)の値が動きベクトル予測値とされる。例えば、(MVxA’、MVyA’)=(3、−5)、(MVxB’、MVyB’)=(−1、4)、(MVxC’、MVyC’)=(2、6)のとき、動きベクトル予測値(PMVxE、PMVyE)はx、y成分ごとの中間(2番目)の値である(2、4)となる。   When all the adjacent blocks (A, B, C) have been scaled (step S07: YES), they have been scaled based on the reference frame 702 in which the motion vector of the encoding target block (E) is detected. By calculating the intermediate value of the motion vectors of the adjacent blocks (A, B, C), the optimum predicted motion vector is determined (step S08). The intermediate value is calculated by scaling the motion vectors (MVxA ′, MVyA ′), (MVxB ′, MVyB ′), (MVxC ′, MVyC ′) of three adjacent blocks (A, B, C) to x, y. Comparison is made for each component, and an intermediate (second) value in each component is set as a motion vector prediction value. For example, when (MVxA ′, MVyA ′) = (3, −5), (MVxB ′, MVyB ′) = (− 1, 4), (MVxC ′, MVyC ′) = (2, 6) The predicted values (PMVxE, PMVyE) are (2, 4) which are intermediate (second) values for each of the x and y components.

このよう隣接ブロックの動きベクトルの中間値を用いて符号化対象のブロックの動きベクトルを予測すると、符号化対象のブロックとその周囲のブロックとの空間的相関から、最適予測動きベクトルは符号化対象のブロックの実際の動きベクトルに比較的近い値になると考えられる。この方法は中間値予測(median prediction)と呼ばれている。   When the motion vector of the encoding target block is predicted using the intermediate value of the motion vector of the adjacent block as described above, the optimal prediction motion vector is determined from the spatial correlation between the encoding target block and the surrounding blocks. It is considered that the value is relatively close to the actual motion vector of the block. This method is called median prediction.

次に、コンピュータを上述した動画像符号化装置10として機能させるための動画像符号化プログラム910と、コンピュータを上述した動画像復号化装置30として機能させるための動画像復号化プログラム930について説明する。図10、図11はそれぞれ、動画像符号化プログラム910、動画像復号化プログラム930の構成を示す図である。   Next, a video encoding program 910 for causing a computer to function as the above-described video encoding device 10 and a video decoding program 930 for causing the computer to function as the above-described video decoding device 30 will be described. . 10 and 11 are diagrams showing configurations of the moving image encoding program 910 and the moving image decoding program 930, respectively.

図10に示すように、動画像符号化プログラム910は、処理を統括するメインモジュール911と、入力モジュール912と、動き検出モジュール913と、動き補償モジュール914と、空間予測モジュール915と、スイッチモジュール916と、減算モジュール917と、直交変換モジュール918と、量子化モジュール919と、可変長符号化モジュール920と、逆量子化モジュール921と、逆直交変換モジュール922と、加算モジュール923とを備える。入力モジュール912、動き検出モジュール913、動き補償モジュール914、空間予測モジュール915、スイッチモジュール916、減算モジュール917、直交変換モジュール918、量子化モジュール919、可変長符号化モジュール920、逆量子化モジュール921、逆直交変換モジュール922、加算モジュール923がコンピュータに行わせる機能はそれぞれ、上述した入力部101、動き検出部102、動き補償部103、空間予測部105、スイッチ106、減算器107、直交変換部108、量子化部109、可変長符号化部110、逆量子化部111、逆直交変換部112、加算器113と同様である。   As illustrated in FIG. 10, the moving image encoding program 910 includes a main module 911 that controls processing, an input module 912, a motion detection module 913, a motion compensation module 914, a spatial prediction module 915, and a switch module 916. A subtraction module 917, an orthogonal transform module 918, a quantization module 919, a variable length coding module 920, an inverse quantization module 921, an inverse orthogonal transform module 922, and an addition module 923. Input module 912, motion detection module 913, motion compensation module 914, spatial prediction module 915, switch module 916, subtraction module 917, orthogonal transform module 918, quantization module 919, variable length encoding module 920, inverse quantization module 921, The functions that the computer performs by the inverse orthogonal transform module 922 and the addition module 923 are the above-described input unit 101, motion detection unit 102, motion compensation unit 103, spatial prediction unit 105, switch 106, subtractor 107, and orthogonal transform unit 108, respectively. , The quantization unit 109, the variable length coding unit 110, the inverse quantization unit 111, the inverse orthogonal transform unit 112, and the adder 113.

また、図11に示すように、動画像復号化プログラム930は、処理を統括するメインモジュール931と、可変長復号化モジュール932と、動きベクトル復元モジュール933と、動き補償モジュール934と、空間予測モジュール935と、スイッチモジュール936と、逆量子化モジュール937と、逆直交変換モジュール938と、加算モジュール939とを備える。可変長復号化モジュール932、動きベクトル復元モジュール933、動き補償モジュール934、空間予測モジュール935、スイッチモジュール936、逆量子化モジュール937、逆直交変換モジュール938、加算モジュール939がコンピュータに実現させる機能はそれぞれ、上述した可変長復号化部301、動きベクトル復元部302、動き補償部303、空間予測部305、スイッチ306、逆量子化部307、逆直交変換部308、加算器309と同様である。   As shown in FIG. 11, the moving picture decoding program 930 includes a main module 931 that supervises processing, a variable length decoding module 932, a motion vector restoration module 933, a motion compensation module 934, and a spatial prediction module. 935, a switch module 936, an inverse quantization module 937, an inverse orthogonal transform module 938, and an addition module 939. The functions that the variable length decoding module 932, motion vector restoration module 933, motion compensation module 934, spatial prediction module 935, switch module 936, inverse quantization module 937, inverse orthogonal transform module 938, and addition module 939 implement in the computer are respectively These are the same as the variable length decoding unit 301, motion vector restoration unit 302, motion compensation unit 303, spatial prediction unit 305, switch 306, inverse quantization unit 307, inverse orthogonal transform unit 308, and adder 309 described above.

以上述べた第1実施形態にかかる動画像符号化装置10及び動画像復号化装置30によれば、動きベクトル予測部204、401が、それぞれの隣接ブロックの動きベクトルを、対象ブロックの動きベクトルを検出するために参照されたフレーム画像と符号化対象のフレーム画像との時間差を基準としてスケーリングして補正した後に、補正された隣接ブロックの動きベクトルに基づいて最適予測動きベクトルを予測するので、時間的な動きの連続性を考慮して最適予測動きベクトルを決定することにより、実際の対象ブロックの動きベクトルと最適予測動きベクトルの差をより小さくすることができる。   According to the video encoding device 10 and the video decoding device 30 according to the first embodiment described above, the motion vector prediction units 204 and 401 use the motion vectors of the adjacent blocks as the motion vectors of the target block. Since the optimal prediction motion vector is predicted based on the corrected motion vector of the adjacent block after scaling and correction based on the time difference between the frame image referred to for detection and the frame image to be encoded as a reference, time By determining the optimal prediction motion vector in consideration of the continuity of the typical motion, the difference between the actual motion vector of the target block and the optimal prediction motion vector can be further reduced.

[第2実施形態]
次に、本発明の第2実施形態について説明する。本実施形態における動画像符号化装置及び動画像復号化装置の基本的構成は、第1実施形態における動画像符号化装置10及び動画像復号化装置30の構成と同様であるので、各構成要素には同一の符合を付しその説明は省略すると共に、以下において第1実施形態との相違点について詳述する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described. The basic configurations of the moving image encoding device and the moving image decoding device in the present embodiment are the same as the configurations of the moving image encoding device 10 and the moving image decoding device 30 in the first embodiment. Are denoted by the same reference numerals, description thereof is omitted, and differences from the first embodiment will be described in detail below.

第2実施形態における動画像符号化装置及び動画像復号化装置と、第1実施形態における動画像符号化装置10及び動画像復号化装置30との相違点は、動きベクトル予測値の算出に関わる部分である。以下、第1実施形態と異なる動画像符号化装置10の動き検出部102および動画像復号化装置30の動きベクトル復元部302で行われる予想動きベクトルの算出について説明する。   The difference between the video encoding device and video decoding device in the second embodiment and the video encoding device 10 and video decoding device 30 in the first embodiment relates to the calculation of motion vector prediction values. Part. Hereinafter, calculation of a predicted motion vector performed by the motion detection unit 102 of the video encoding device 10 and the motion vector restoration unit 302 of the video decoding device 30 different from the first embodiment will be described.

なお、動きベクトル予測部204による動きベクトル予測値の算出と、動きベクトル予測部401による動きベクトル予測値の算出は、同様の処理であるため、以下、動きベクトル予測部204の動作についてのみ説明する。   Since the calculation of the motion vector prediction value by the motion vector prediction unit 204 and the calculation of the motion vector prediction value by the motion vector prediction unit 401 are the same processing, only the operation of the motion vector prediction unit 204 will be described below. .

本実施形態にかかる動きベクトル予測部204による動きベクトル予測値の算出においては、あらかじめ各隣接ブロックの動きベクトルを対象参照フレームを基準にしてスケーリングし、スケーリング後の動きベクトルに基づいて最適予測動きベクトルを決定することは行わない。つまり、動きベクトル予測部204は、まずスケーリング前の各隣接ブロックの動きベクトルに基づいて動きベクトルの予測に用いる最適なものを決定し、その後決定した動きベクトルの予測値を、対象参照フレームを基準にスケーリングして補正して動きベクトル予測値を得る。   In the calculation of the motion vector prediction value by the motion vector prediction unit 204 according to the present embodiment, the motion vector of each adjacent block is scaled in advance based on the target reference frame, and the optimal prediction motion vector is based on the scaled motion vector. Is not determined. That is, the motion vector predicting unit 204 first determines an optimum one to be used for motion vector prediction based on the motion vector of each adjacent block before scaling, and then uses the determined motion vector prediction value based on the target reference frame. To obtain a motion vector prediction value.

図8は、本実施形態にかかる動きベクトル予測部204の動きベクトル予測値の算出時の動作を示すフローチャートである。   FIG. 8 is a flowchart showing an operation at the time of calculating a motion vector prediction value of the motion vector prediction unit 204 according to the present embodiment.

まず、動きベクトル予測部204により、参照フレーム画像信号に含まれる符号化対象の所定ブロック(E)に隣接するブロック(A、B、C)の動きベクトルおよび参照フレーム画像番号が参照される(ステップS201)。   First, the motion vector prediction unit 204 refers to the motion vector and reference frame image number of a block (A, B, C) adjacent to the predetermined block (E) to be encoded included in the reference frame image signal (step). S201).

次に、隣接ブロック(A、B、C)の参照フレーム番号のうち、どれか一つだけがブロック(E)の参照フレーム番号と等しいかどうかが判定される(ステップS202)。隣接ブロック(A、B、C)の参照フレーム番号のうち、どれか一つだけがブロック(E)の参照フレーム番号と等しい場合(ステップS202:YES)、その等しい参照フレーム番号を有する隣接ブロックの動きベクトル値を、ブロック(E)の動きベクトル予測値と決定する(ステップS203)。隣接ブロック(A、B、C)の参照フレーム番号のうち、どれか一つだけがブロック(E)の参照フレーム番号と等しい場合に該当しない時は(ステップS202:NO)、処理をステップS204に移行する。   Next, it is determined whether only one of the reference frame numbers of the adjacent blocks (A, B, C) is equal to the reference frame number of the block (E) (step S202). When only one of the reference frame numbers of the adjacent blocks (A, B, C) is equal to the reference frame number of the block (E) (step S202: YES), the adjacent block having the same reference frame number is selected. The motion vector value is determined as the motion vector prediction value of the block (E) (step S203). If only one of the reference frame numbers of the adjacent blocks (A, B, C) is equal to the reference frame number of the block (E) (step S202: NO), the process goes to step S204. Transition.

続いて、動きベクトル予測部204により、各隣接ブロック(A、B、C)の動きベクトルに基づいて、符号化対象のブロック(E)の動きベクトルを検出した参照フレーム(対象参照フレーム画像)を基準にしてスケーリングを行うことなく、動きベクトル予測値として最適な動きベクトルが選出される(ステップS204)。動きベクトル予測値として最適な動きベクトルを選出する方法としては、実施形態1と同様にして、符号化対象のブロック(E)に隣接するブロック(A、B、C)の動きベクトルの中からx、y成分毎に中間の値を持つものを選出する。   Subsequently, the reference frame (target reference frame image) in which the motion vector of the encoding target block (E) is detected by the motion vector prediction unit 204 based on the motion vector of each adjacent block (A, B, C). An optimal motion vector is selected as a motion vector prediction value without performing scaling on the basis (step S204). As a method for selecting an optimal motion vector as a motion vector prediction value, as in the first embodiment, x is selected from motion vectors of blocks (A, B, C) adjacent to the block (E) to be encoded. , One having an intermediate value for each y component is selected.

動きベクトルの選出後、符号化対象のブロック(E)の動きベクトル予測値に最適であるとしてx,y成分として選出されたそれぞれの動きベクトルが、ブロック(E)の動きベクトルを検出した参照フレーム画像番号と同一の参照フレーム画像を用いて動き補償されたものであるかが判定される(ステップS205)。選出されたそれぞれの動きベクトルが、符号化対象のブロック(E)の動きベクトルを検出した参照フレーム画像と同一の参照フレーム画像を用いて動き補償されたものでないとき(ステップS205:NO)、符号化対象のブロック(E)と同じ参照フレームの条件となるように動きベクトルのx,y成分の大きさをスケーリングする(ステップS206)。スケーリング方法としては、実施形態1と同様にして、現フレーム(対象フレーム画像)から符号化対象のブロックの参照フレーム(対象参照フレーム画像)までの時間的距離を基準にして、選出された隣接ブロックの動きベクトルの大きさを変更して、そのうちのx成分あるいはy成分を動きベクトル予測値とする。   After the motion vector is selected, the reference frame in which each motion vector selected as the x and y component as the optimum motion vector prediction value of the encoding target block (E) detects the motion vector of the block (E). It is determined whether motion compensation has been performed using the same reference frame image as the image number (step S205). When each selected motion vector is not motion-compensated using the same reference frame image as the reference frame image in which the motion vector of the encoding target block (E) is detected (step S205: NO), The size of the x and y components of the motion vector is scaled so as to satisfy the same reference frame conditions as the block (E) to be converted (step S206). As a scaling method, similar to the first embodiment, the adjacent blocks selected based on the temporal distance from the current frame (target frame image) to the reference frame (target reference frame image) of the block to be encoded , And the x component or y component is used as a motion vector prediction value.

一方、選出されたそれぞれの動きベクトルが、符号化対象のブロック(E)の動きベクトルを検出した参照フレーム画像と同一の参照フレーム画像を用いて動き補償されたものであるとき(ステップS205:YES)、選出された動きベクトルのx成分あるいはy成分をそのまま動きベクトル予測値と決定する(ステップS207)。   On the other hand, when each selected motion vector is motion-compensated using the same reference frame image as the reference frame image in which the motion vector of the encoding target block (E) is detected (step S205: YES) ), The x component or y component of the selected motion vector is determined as the motion vector prediction value as it is (step S207).

以上述べた第2実施形態にかかる動画像符号化装置10及び動画像復号化装置30によれば、動きベクトル予測部204、401が、隣接ブロックの動きベクトルに基づいて最適予測動きベクトルを決定した後、決定された最適予測動きベクトルを、対象ブロックの動きベクトルを検出するために参照されたフレーム画像と符号化対象のフレーム画像との時間差を基準としてスケーリングして補正するので、実際の対象領域の動きベクトルと最適予測動きベクトルの差をより小さくすることができると同時に、動きベクトルを予測するための処理時間を短縮することが可能となる。   According to the video encoding device 10 and the video decoding device 30 according to the second embodiment described above, the motion vector prediction units 204 and 401 have determined the optimal prediction motion vector based on the motion vector of the adjacent block. Thereafter, the determined optimal prediction motion vector is corrected by scaling based on the time difference between the frame image referred to in order to detect the motion vector of the target block and the frame image to be encoded. Thus, the difference between the motion vector and the optimum predicted motion vector can be further reduced, and at the same time, the processing time for predicting the motion vector can be shortened.

なお、上述した第1実施形態および第2実施形態にかかる動画像符号化装置10及び動画像復号化装置30においては、スケーリングする前、あるいはスケーリングした後の隣接するブロックの動きベクトルの中から中間値を選出して動きベクトル予測値として決定していたが、これは、以下のように動きベクトル予測値(PMVxE,PMVyE)を決定しても良い。   In addition, in the moving picture coding apparatus 10 and the moving picture decoding apparatus 30 according to the first embodiment and the second embodiment described above, the intermediate motion vector is selected from the motion vectors of adjacent blocks before scaling or after scaling. Although the value is selected and determined as the motion vector prediction value, the motion vector prediction value (PMVxE, PMVyE) may be determined as follows.

すなわち、第1実施形態においては、スケーリング後のそれぞれの動きベクトルのx成分が条件1:|MVxA’−MVxB’|<|MVxB’−MVxC’|を満たす場合は、PMVxE=MVxA’と決定する。上記条件1を満たさない場合は、PMVxE=MVxB’と決定する。同様に、スケーリング後のそれぞれの動きベクトルのy成分が条件2:|MVyA’−MVyB’|<|MVyB’−MVyC’|を満たす場合は、PMVyE=MVyA’と決定する。上記条件2を満たさない場合は、PMVyE=MVyB’と決定する。また、実施形態2においては、スケーリング前のそれぞれの動きベクトルのx成分が条件1:|MVxA − MVxB|<|MVxB − MVxC|を満たす場合は、PMVxE=MVxAと決定する。上記条件1を満たさない場合は、PMVxE=MVxBと決定する。同様に、スケーリング前のそれぞれの動きベクトルのy成分が条件2:|MVyA − MVyB|<|MVyB − MVyC|を満たす場合は、PMVyE=MVyAと決定する。上記条件2を満たさない場合は、PMVyE=MVyBと決定する。その後、決定された動きベクトル予測値をスケーリングする。   That is, in the first embodiment, when the x component of each scaled motion vector satisfies the condition 1: | MVxA′−MVxB ′ | <| MVxB′−MVxC ′ |, PMVxE = MVxA ′ is determined. . When the above condition 1 is not satisfied, PMVxE = MVxB ′ is determined. Similarly, when the y component of each scaled motion vector satisfies the condition 2: | MVyA′−MVyB ′ | <| MVyB′−MVyC ′ |, PMVyE = MVyA ′ is determined. When the above condition 2 is not satisfied, PMVyE = MVyB ′ is determined. In the second embodiment, when the x component of each motion vector before scaling satisfies the condition 1: | MVxA−MVxB | <| MVxB−MVxC |, PMVxE = MVxA is determined. When the above condition 1 is not satisfied, PMVxE = MVxB is determined. Similarly, when the y component of each motion vector before scaling satisfies the condition 2: | MVyA−MVyB | <| MVyB−MVyC |, PMVyE = MVyA is determined. When the above condition 2 is not satisfied, PMVyE = MVyB is determined. Thereafter, the determined motion vector prediction value is scaled.

さらに、以下のような方法で動きベクトル予測値を決定しても良い。すなわち、符号化対象の所定ブロックの分割方法などに応じて、動きベクトルの予測値に用いるブロックの位置を一意に決定しておき、そのブロックの動きベクトルを常に選出するようにしても良い。図9は、動きベクトルの予測のために分割されたブロックの一例を示す図である。図9(a)に例によれば、符号化対象のブロックEが16画素x8画素の2つの領域に分割される予測モードの場合、上側の領域はブロックBの動きベクトルを、下側の領域はブロックAの動きベクトルを、それぞれ動きベクトル予測値として決定する。また、図9(b)の例によれば、ブロックEが8画素x16画素の2つの領域に分割される予測モードの場合、左側の領域はブロックAの動きベクトルを、右側の領域はブロックCの動きベクトルを、それぞれ動きベクトルの予測値として決定する。なお、上記の各予測モードによって分割された領域に対して選出される動きベクトルの位置は一例であって、任意の位置の動きベクトルを符号化対象のブロックの動きベクトル予測値として決定することができる。   Further, the motion vector prediction value may be determined by the following method. That is, the position of a block used as a motion vector prediction value may be uniquely determined according to the method for dividing a predetermined block to be encoded, and the motion vector of that block may be always selected. FIG. 9 is a diagram illustrating an example of blocks divided for motion vector prediction. According to the example in FIG. 9A, in the prediction mode in which the block E to be encoded is divided into two areas of 16 pixels × 8 pixels, the upper area represents the motion vector of the block B and the lower area. Determines the motion vector of block A as a motion vector prediction value. Further, according to the example of FIG. 9B, in the prediction mode in which the block E is divided into two regions of 8 pixels × 16 pixels, the left region is the motion vector of the block A, and the right region is the block C. Are determined as predicted motion vectors. Note that the position of the motion vector selected for the region divided by each prediction mode is an example, and the motion vector at an arbitrary position can be determined as the motion vector prediction value of the block to be encoded. it can.

また、上述した第1実施形態および第2実施形態にかかる動画像符号化装置10及び動画像復号化装置30においては、図5に示すように、符号化対象のブロック(E)の動きベクトル予測値を決定するために、隣接ブロック(A、B、C)の動きベクトルを利用していたが、この隣接ブロックの数及びブロック(E)との相対的位置は、適宜変更しても良い。   Further, in the moving picture coding apparatus 10 and the moving picture decoding apparatus 30 according to the first and second embodiments described above, as shown in FIG. 5, the motion vector prediction of the block (E) to be coded is performed. In order to determine the value, the motion vector of the adjacent block (A, B, C) is used. However, the number of the adjacent blocks and the relative position with the block (E) may be appropriately changed.

10…動画像符号化装置、30…動画像復号化装置、101…入力部、102…動き検出部、103…動き補償部、104…フレームメモリ、105…空間予測部、106…スイッチ、107…減算器、108…直交変換部、109…量子化部、110…可変長符号化部、111…逆量子化部、112…逆直交変換部、113…加算器、201…予測モード決定部、202…参照フレーム決定部、203…動きベクトル検出部、204…動きベクトル予測部(動きベクトル予測手段)、205…動きベクトル差分部、301…可変長復号化部、302…動きベクトル復元部、303…動き補償部、304…フレームメモリ、305…空間予測部、306…スイッチ、307…逆量子化部、308…逆直交変換部、309…加算器、401…動きベクトル予測部(動きベクトル予測手段)、402…動きベクトル加算部、701…対象フレーム画像、702…対象参照フレーム画像、703a、703b、703c…隣接参照フレーム画像、751a、751c、751c…動きベクトル。   DESCRIPTION OF SYMBOLS 10 ... Moving image encoder, 30 ... Moving image decoder, 101 ... Input part, 102 ... Motion detection part, 103 ... Motion compensation part, 104 ... Frame memory, 105 ... Spatial prediction part, 106 ... Switch, 107 ... Subtractor 108... Orthogonal transform unit 109 109 Quantization unit 110 Variable length encoding unit 111 Inverse quantization unit 112 Inverse orthogonal transform unit 113 Adder 201 Prediction mode determination unit 202 Reference frame determination unit, 203 ... Motion vector detection unit, 204 ... Motion vector prediction unit (motion vector prediction means), 205 ... Motion vector difference unit, 301 ... Variable length decoding unit, 302 ... Motion vector restoration unit, 303 ... Motion compensation unit, 304 ... frame memory, 305 ... spatial prediction unit, 306 ... switch, 307 ... inverse quantization unit, 308 ... inverse orthogonal transform unit, 309 ... adder, 401 ... motion Vector prediction unit (motion vector prediction means), 402 ... motion vector addition unit, 701 ... target frame image, 702 ... target reference frame image 703a, 703b, 703c ... adjacent reference frame images 751a, 751c, 751c ... motion vector.

Claims (10)

フレーム画像信号の時間系列で構成される動画像信号における符号化対象のフレーム画像を複数の対象領域に分割し、前記対象領域毎に、前記符号化対象のフレーム画像と異なる複数のフレーム画像を参照して動きベクトルを検出することにより、動き補償による符号化を行う動画像符号化装置において、
前記対象領域に隣接する隣接領域の動きベクトルを検出するために参照された隣接参照フレーム画像と、前記対象領域の動きベクトルを検出するために参照された対象参照フレーム画像と、前記符号化対象のフレーム画像である対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、前記対象参照フレーム画像を基準にして前記対象領域に隣接する隣接領域の動きベクトルをスケーリングする補正と、
前記対象領域に隣接する隣接領域の動きベクトルに基づく最適予測動きベクトルの決定と、
を行うことにより前記補正後の最適予測動きベクトルを予測する動きベクトル予測手段を有することを特徴とする動画像符号化装置。
A frame image to be encoded in a moving image signal composed of a time sequence of frame image signals is divided into a plurality of target regions, and a plurality of frame images different from the frame image to be encoded are referenced for each target region. In the moving picture coding apparatus that performs coding by motion compensation by detecting a motion vector,
An adjacent reference frame image referred to for detecting a motion vector of an adjacent region adjacent to the target region, a target reference frame image referred to for detecting a motion vector of the target region, and the encoding target Correction for scaling a motion vector of an adjacent region adjacent to the target region based on the target reference frame image based on a temporal relationship with the target frame image that is a frame image or their time information;
Determining an optimal prediction motion vector based on a motion vector of an adjacent region adjacent to the target region;
And a motion vector predicting means for predicting the corrected optimally predicted motion vector by performing the correction.
前記動きベクトル予測手段は、前記隣接参照フレーム画像と前記対象参照フレーム画像と前記対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、前記対象参照フレーム画像を基準にして前記隣接領域の動きベクトルそれぞれをスケーリングして補正し、当該補正された前記隣接領域の動きベクトルに基づいて最適予測動きベクトルを決定することを特徴とする請求項1に記載の動画像符号化装置。   The motion vector predicting unit is configured to determine the adjacent region based on the target reference frame image based on a temporal relationship between the adjacent reference frame image, the target reference frame image, and the target frame image or time information thereof. 2. The moving picture encoding apparatus according to claim 1, wherein each of the motion vectors is corrected by scaling, and an optimal prediction motion vector is determined based on the corrected motion vector of the adjacent region. 前記動きベクトル予測手段は、前記隣接領域の動きベクトルに基づいて最適予測動きベクトルを決定し、前記最適予測動きベクトルとして決定された隣接領域の動きベクトルの隣接参照フレーム画像と前記対象参照フレーム画像と前記対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、前記対象参照フレーム画像を基準にして前記最適予測動きベクトルをスケーリングして補正することを特徴とする請求項1に記載の動画像符号化装置。   The motion vector prediction means determines an optimal prediction motion vector based on the motion vector of the adjacent region, and an adjacent reference frame image of the motion vector of the adjacent region determined as the optimal prediction motion vector, the target reference frame image, 2. The optimal prediction motion vector is scaled and corrected based on the target reference frame image based on a temporal relationship with the target frame image or time information thereof. Video encoding device. フレーム画像信号の時間系列で構成される動画像信号における復号化対象のフレーム画像を複数の対象領域に分割し、前記対象領域毎に前記復号化対象のフレーム画像と異なる複数のフレーム画像を参照して検出された動きベクトルと予測動きベクトルとの差分情報を利用することにより、動き補償による復号化を行う動画像復号化装置において、
前記対象領域に隣接する隣接領域の動きベクトルを検出するために参照された隣接参照フレーム画像と、前記対象領域の動きベクトルを検出するために参照された対象参照フレーム画像と、前記符号化対象のフレーム画像である対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、前記対象参照フレーム画像を基準にして前記対象領域に隣接する隣接領域の動きベクトルをスケーリングする補正と、
前記対象領域に隣接する隣接領域の動きベクトルに基づく最適予測動きベクトルの決定と、
を行うことにより前記補正後の最適予測動きベクトルを予測する動きベクトル予測手段を有することを特徴とする動画像復号化装置。
A frame image to be decoded in a moving image signal composed of a time sequence of frame image signals is divided into a plurality of target regions, and a plurality of frame images different from the frame images to be decoded are referred to for each target region. In the moving picture decoding apparatus that performs decoding by motion compensation by using the difference information between the detected motion vector and the predicted motion vector,
An adjacent reference frame image referred to for detecting a motion vector of an adjacent region adjacent to the target region, a target reference frame image referred to for detecting a motion vector of the target region, and the encoding target Correction for scaling a motion vector of an adjacent region adjacent to the target region based on the target reference frame image based on a temporal relationship with the target frame image that is a frame image or their time information;
Determining an optimal prediction motion vector based on a motion vector of an adjacent region adjacent to the target region;
A motion picture decoding apparatus comprising: motion vector prediction means for predicting the corrected optimal predicted motion vector by performing
前記動きベクトル予測手段は、前記隣接参照フレーム画像と前記対象参照フレーム画像と前記対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、前記対象参照フレーム画像を基準にして前記隣接領域の動きベクトルそれぞれをスケーリングして補正し、当該補正された前記隣接領域の動きベクトルに基づいて最適予測動きベクトルを決定することを特徴とする請求項4に記載の動画像復号化装置。   The motion vector predicting unit is configured to determine the adjacent region based on the target reference frame image based on a temporal relationship between the adjacent reference frame image, the target reference frame image, and the target frame image or time information thereof. 5. The moving picture decoding apparatus according to claim 4, wherein each of the motion vectors is corrected by scaling, and an optimal prediction motion vector is determined based on the corrected motion vector of the adjacent region. 前記動きベクトル予測手段は、前記隣接領域の動きベクトルに基づいて最適予測動きベクトルを決定し、前記最適予測動きベクトルとして決定された隣接領域の動きベクトルの隣接参照フレーム画像と前記対象参照フレーム画像と前記対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、前記対象参照フレーム画像を基準にして前記最適予測動きベクトルをスケーリングして補正することを特徴とする請求項4に記載の動画像復号化装置。   The motion vector prediction means determines an optimal prediction motion vector based on the motion vector of the adjacent region, and an adjacent reference frame image of the motion vector of the adjacent region determined as the optimal prediction motion vector, the target reference frame image, 5. The optimal prediction motion vector is scaled and corrected based on the target reference frame image based on a temporal relationship with the target frame image or time information thereof. Video decoding device. フレーム画像信号の時間系列で構成される動画像信号における符号化対象のフレーム画像を複数の対象領域に分割し、前記対象領域毎に、前記符号化対象のフレーム画像と異なる複数のフレーム画像を参照して動きベクトルを検出することにより、動き補償による符号化を行う動画像符号化方法において、
動きベクトル予測手段が、
前記対象領域に隣接する隣接領域の動きベクトルを検出するために参照された隣接参照フレーム画像と、前記対象領域の動きベクトルを検出するために参照された対象参照フレーム画像と、前記符号化対象のフレーム画像である対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、前記対象参照フレーム画像を基準にして前記対象領域に隣接する隣接領域の動きベクトルをスケーリングする補正と、
前記対象領域に隣接する隣接領域の動きベクトルに基づく最適予測動きベクトルの決定と、
を行うことにより前記補正後の最適予測動きベクトルを予測する動きベクトル予測ステップを有することを特徴とする動画像符号化方法。
A frame image to be encoded in a moving image signal composed of a time sequence of frame image signals is divided into a plurality of target regions, and a plurality of frame images different from the frame image to be encoded are referred to for each target region. In the moving picture coding method for performing the motion compensation coding by detecting the motion vector,
The motion vector prediction means
An adjacent reference frame image referred to for detecting a motion vector of an adjacent region adjacent to the target region, a target reference frame image referred to for detecting a motion vector of the target region, and the encoding target Correction for scaling a motion vector of an adjacent region adjacent to the target region based on the target reference frame image based on a temporal relationship with the target frame image that is a frame image or their time information;
Determining an optimal prediction motion vector based on a motion vector of an adjacent region adjacent to the target region;
And a motion vector predicting step for predicting the corrected optimal predicted motion vector by performing the correction.
フレーム画像信号の時間系列で構成される動画像信号における復号化対象のフレーム画像を複数の対象領域に分割し、前記対象領域毎に前記復号化対象のフレーム画像と異なる複数のフレーム画像を参照して検出された動きベクトルと予測動きベクトルとの差分情報を利用することにより、動き補償による復号化を行う動画像復号化方法において、
動きベクトル予測手段が、
前記対象領域に隣接する隣接領域の動きベクトルを検出するために参照された隣接参照フレーム画像と、前記対象領域の動きベクトルを検出するために参照された対象参照フレーム画像と、前記符号化対象のフレーム画像である対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、前記対象参照フレーム画像を基準にして前記対象領域に隣接する隣接領域の動きベクトルをスケーリングする補正と、
前記対象領域に隣接する隣接領域の動きベクトルに基づく最適予測動きベクトルの決定と、
を行うことにより前記補正後の最適予測動きベクトルを予測する動きベクトル予測ステップを有することを特徴とする動画像復号化方法。
A frame image to be decoded in a moving image signal composed of a time sequence of frame image signals is divided into a plurality of target regions, and a plurality of frame images different from the frame images to be decoded are referred to for each target region. In the moving picture decoding method for performing decoding by motion compensation by using difference information between the motion vector detected in this way and the predicted motion vector,
The motion vector prediction means
An adjacent reference frame image referred to for detecting a motion vector of an adjacent region adjacent to the target region, a target reference frame image referred to for detecting a motion vector of the target region, and the encoding target Correction for scaling a motion vector of an adjacent region adjacent to the target region based on the target reference frame image based on a temporal relationship with the target frame image that is a frame image or their time information;
Determining an optimal prediction motion vector based on a motion vector of an adjacent region adjacent to the target region;
A motion picture decoding method comprising: a motion vector prediction step of predicting the corrected optimal prediction motion vector by performing
フレーム画像信号の時間系列で構成される動画像信号における符号化対象のフレーム画像を複数の対象領域に分割し、前記対象領域毎に、前記符号化対象のフレーム画像と異なる複数のフレーム画像を参照して動きベクトルを検出することにより、動き補償による符号化処理をコンピュータに実行させる動画像符号化プログラムにおいて、
コンピュータを、
前記対象領域に隣接する隣接領域の動きベクトルを検出するために参照された隣接参照フレーム画像と、前記対象領域の動きベクトルを検出するために参照された対象参照フレーム画像と、前記符号化対象のフレーム画像である対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、前記対象参照フレーム画像を基準にして前記対象領域に隣接する隣接領域の動きベクトルをスケーリングする補正と、
前記対象領域に隣接する隣接領域の動きベクトルに基づく最適予測動きベクトルの決定と、
を行うことにより前記補正後の最適予測動きベクトルを予測する動きベクトル予測手段、
として機能させることを特徴とする動画像符号化プログラム。
A frame image to be encoded in a moving image signal composed of a time sequence of frame image signals is divided into a plurality of target regions, and a plurality of frame images different from the frame image to be encoded are referenced for each target region. In the moving picture encoding program for causing the computer to execute the encoding process by motion compensation by detecting the motion vector
Computer
An adjacent reference frame image referred to for detecting a motion vector of an adjacent region adjacent to the target region, a target reference frame image referred to for detecting a motion vector of the target region, and the encoding target Correction for scaling a motion vector of an adjacent region adjacent to the target region based on the target reference frame image based on a temporal relationship with the target frame image that is a frame image or their time information;
Determining an optimal prediction motion vector based on a motion vector of an adjacent region adjacent to the target region;
Motion vector predicting means for predicting the corrected optimal predicted motion vector by performing
A video encoding program characterized by being made to function as:
フレーム画像信号の時間系列で構成される動画像信号における復号化対象のフレーム画像を複数の対象領域に分割し、前記対象領域毎に前記復号化対象のフレーム画像と異なる複数のフレーム画像を参照して検出された動きベクトルと予測動きベクトルとの差分情報を利用することにより、動き補償による復号化処理をコンピュータに実行させる動画像復号化プログラムにおいて、
コンピュータを、
前記対象領域に隣接する隣接領域の動きベクトルを検出するために参照された隣接参照フレーム画像と、前記対象領域の動きベクトルを検出するために参照された対象参照フレーム画像と、前記符号化対象のフレーム画像である対象フレーム画像との時間的な関係又はそれらの時刻情報に基づいて、前記対象参照フレーム画像を基準にして前記対象領域に隣接する隣接領域の動きベクトルをスケーリングする補正と、
前記対象領域に隣接する隣接領域の動きベクトルに基づく最適予測動きベクトルの決定と、
を行うことにより前記補正後の最適予測動きベクトルを予測する動きベクトル予測手段、
として機能させることを特徴とする動画像復号化プログラム。
A frame image to be decoded in a moving image signal composed of a time sequence of frame image signals is divided into a plurality of target regions, and a plurality of frame images different from the frame images to be decoded are referred to for each target region. In a moving picture decoding program for causing a computer to execute a decoding process by motion compensation by using difference information between a detected motion vector and a predicted motion vector,
Computer
An adjacent reference frame image referred to for detecting a motion vector of an adjacent region adjacent to the target region, a target reference frame image referred to for detecting a motion vector of the target region, and the encoding target Correction for scaling a motion vector of an adjacent region adjacent to the target region based on the target reference frame image based on a temporal relationship with the target frame image that is a frame image or their time information;
Determining an optimal prediction motion vector based on a motion vector of an adjacent region adjacent to the target region;
Motion vector predicting means for predicting the corrected optimal predicted motion vector by performing
A moving picture decoding program characterized by being made to function as:
JP2009185016A 2009-08-07 2009-08-07 Motion picture encoder, motion picture decoder, motion picture encoding method, motion picture decoding method, motion picture encoding program, and motion picture decoding program Pending JP2009290889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009185016A JP2009290889A (en) 2009-08-07 2009-08-07 Motion picture encoder, motion picture decoder, motion picture encoding method, motion picture decoding method, motion picture encoding program, and motion picture decoding program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009185016A JP2009290889A (en) 2009-08-07 2009-08-07 Motion picture encoder, motion picture decoder, motion picture encoding method, motion picture decoding method, motion picture encoding program, and motion picture decoding program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2003129333A Division JP4373702B2 (en) 2003-05-07 2003-05-07 Moving picture encoding apparatus, moving picture decoding apparatus, moving picture encoding method, moving picture decoding method, moving picture encoding program, and moving picture decoding program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2012054562A Division JP2012138947A (en) 2012-03-12 2012-03-12 Video encoder, video decoder, video encoding method, video decoding method, video encoding program and video decoding program

Publications (1)

Publication Number Publication Date
JP2009290889A true JP2009290889A (en) 2009-12-10

Family

ID=41459536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009185016A Pending JP2009290889A (en) 2009-08-07 2009-08-07 Motion picture encoder, motion picture decoder, motion picture encoding method, motion picture decoding method, motion picture encoding program, and motion picture decoding program

Country Status (1)

Country Link
JP (1) JP2009290889A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013065308A1 (en) * 2011-11-02 2013-05-10 パナソニック株式会社 Video coding method, video coder, video decoding method, video decoder, and video codec
CN108040259A (en) * 2011-10-05 2018-05-15 太阳专利托管公司 Method for encoding images and picture coding device
CN109348231A (en) * 2013-04-05 2019-02-15 佳能株式会社 Coding or decoded method and apparatus are carried out to image by Inter-layer motion information prediction according to motion information compression scheme
WO2019176189A1 (en) * 2018-03-16 2019-09-19 ソニー株式会社 Image processing device, and image processing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06141302A (en) * 1992-10-26 1994-05-20 Sony Corp Motion information difference processing unit and inverse difference processing unit
JP2004023458A (en) * 2002-06-17 2004-01-22 Toshiba Corp Moving picture encoding/decoding method and apparatus
JP2004072712A (en) * 2002-04-23 2004-03-04 Matsushita Electric Ind Co Ltd Motion vector encoding method and motion vector decoding method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06141302A (en) * 1992-10-26 1994-05-20 Sony Corp Motion information difference processing unit and inverse difference processing unit
JP2004072712A (en) * 2002-04-23 2004-03-04 Matsushita Electric Ind Co Ltd Motion vector encoding method and motion vector decoding method
JP2004023458A (en) * 2002-06-17 2004-01-22 Toshiba Corp Moving picture encoding/decoding method and apparatus

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040259A (en) * 2011-10-05 2018-05-15 太阳专利托管公司 Method for encoding images and picture coding device
CN108040259B (en) * 2011-10-05 2022-02-01 太阳专利托管公司 Image encoding method and image encoding device
US10063879B2 (en) 2011-11-02 2018-08-28 Tagivan Ii Llc Moving picture coding method, moving picture coding apparatus, moving picture decoding method, and moving picture decoding apparatus
JPWO2013065308A1 (en) * 2011-11-02 2015-04-02 パナソニック株式会社 Moving picture coding method, moving picture coding apparatus, moving picture decoding method, moving picture decoding apparatus, and moving picture coding / decoding apparatus
US10291933B2 (en) 2011-11-02 2019-05-14 Tagivan Ii Llc Moving picture coding method, moving picture coding apparatus, moving picture decoding method, and moving picture decoding apparatus
US8942288B2 (en) 2011-11-02 2015-01-27 Tagivan Ii Llc Moving picture coding method, moving picture coding apparatus, moving picture decoding method, and moving picture decoding apparatus
US11812055B2 (en) 2011-11-02 2023-11-07 Tagivan Ii Llc Moving picture coding method, moving picture coding apparatus, moving picture decoding method, and moving picture decoding apparatus
US9066109B2 (en) 2011-11-02 2015-06-23 Tagivan Ii Llc Moving picture coding method, moving picture coding apparatus, moving picture decoding method, and moving picture decoding apparatus
TWI559734B (en) * 2011-11-02 2016-11-21 Tagivan Ii Llc A moving picture coding method, a moving picture coding apparatus, a moving picture decoding method, a moving picture decoding apparatus, and a moving picture coding / decoding apparatus
CN107071463B (en) * 2011-11-02 2019-11-19 太格文-Ii有限责任公司 Moving picture encoding decoding apparatus
CN107071467A (en) * 2011-11-02 2017-08-18 太格文-Ii有限责任公司 Motion image encoding method and moving picture encoding device
JP2014003708A (en) * 2011-11-02 2014-01-09 Panasonic Corp Moving image coding method and moving image coding apparatus
WO2013065308A1 (en) * 2011-11-02 2013-05-10 パナソニック株式会社 Video coding method, video coder, video decoding method, video decoder, and video codec
US11570469B2 (en) 2011-11-02 2023-01-31 Tagivan Ii Llc Moving picture coding method, moving picture coding apparatus, moving picture decoding method, and moving picture decoding apparatus
JP2014017854A (en) * 2011-11-02 2014-01-30 Panasonic Corp Motion vector derivation method and motion vector derivation device
JP2014003707A (en) * 2011-11-02 2014-01-09 Panasonic Corp Moving image decoding method and moving image decoding apparatus
CN107071463A (en) * 2011-11-02 2017-08-18 太格文-Ii有限责任公司 Moving picture encoding decoding apparatus
US10499080B2 (en) 2011-11-02 2019-12-03 Tagivan Ii Llc Moving picture coding method, moving picture coding apparatus, moving picture decoding method, and moving picture decoding apparatus
CN107071467B (en) * 2011-11-02 2020-03-27 太格文-Ii有限责任公司 Moving picture coding method and moving picture coding device
US10798411B2 (en) 2011-11-02 2020-10-06 Tagivan Ii Llc Moving picture coding method, moving picture coding apparatus, moving picture decoding method, and moving picture decoding apparatus
CN103339941A (en) * 2011-11-02 2013-10-02 松下电器产业株式会社 Moving picture coding method, moving picture coding apparatus, moving picture decoding method, and moving picture decoding apparatus
US10992953B2 (en) 2011-11-02 2021-04-27 Tagivan Ii Llc Moving picture coding method, moving picture coding apparatus, moving picture decoding method, and moving picture decoding apparatus
CN109348231A (en) * 2013-04-05 2019-02-15 佳能株式会社 Coding or decoded method and apparatus are carried out to image by Inter-layer motion information prediction according to motion information compression scheme
JPWO2019176189A1 (en) * 2018-03-16 2021-03-25 ソニー株式会社 Image processing equipment and image processing method
US11245919B2 (en) 2018-03-16 2022-02-08 Sony Corporation Image processing device and image processing method
JP7310794B2 (en) 2018-03-16 2023-07-19 ソニーグループ株式会社 Image processing device and image processing method
WO2019176189A1 (en) * 2018-03-16 2019-09-19 ソニー株式会社 Image processing device, and image processing method

Similar Documents

Publication Publication Date Title
JP4373702B2 (en) Moving picture encoding apparatus, moving picture decoding apparatus, moving picture encoding method, moving picture decoding method, moving picture encoding program, and moving picture decoding program
JP6679782B2 (en) Encoding device, encoding method, decoding device, decoding method, and program
JP5669278B2 (en) Method for coding a block of an image sequence and method for reconstructing this block
KR101366242B1 (en) Method for encoding and decoding motion model parameter, and method and apparatus for video encoding and decoding using motion model parameter
JP5310614B2 (en) Moving picture coding apparatus, moving picture coding method, moving picture decoding apparatus, and moving picture decoding method
KR20110008653A (en) Method and apparatus for predicting motion vector and method and apparatus of encoding/decoding a picture using the same
TWI647949B (en) Image prediction decoding method
KR20090095012A (en) Method and apparatus for encoding and decoding image using consecutive motion estimation
TW201724859A (en) Video decoding device, video decoding method and video decoding program
JP2007228077A (en) Moving picture coding apparatus and control method thereof, computer program, and storage medium
JP5213964B2 (en) Video encoding apparatus and video decoding apparatus
JP5835208B2 (en) Moving picture coding apparatus, moving picture coding method, moving picture coding program, transmission apparatus, transmission method, and transmission program
JP2009290889A (en) Motion picture encoder, motion picture decoder, motion picture encoding method, motion picture decoding method, motion picture encoding program, and motion picture decoding program
JP4624308B2 (en) Moving picture decoding apparatus and moving picture decoding method
JP2007251815A (en) Re-encoding apparatus, and program for re-encoding
JP5705948B2 (en) Moving picture encoding apparatus, moving picture decoding apparatus, moving picture encoding method, moving picture decoding method, moving picture encoding program, and moving picture decoding program
JP5281597B2 (en) Motion vector prediction method, motion vector prediction apparatus, and motion vector prediction program
JP2012138947A (en) Video encoder, video decoder, video encoding method, video decoding method, video encoding program and video decoding program
JP5521859B2 (en) Moving picture coding apparatus and method
JP2018026726A (en) Encoder and program
JP2012095099A (en) Moving image encoding device, moving image encoding method, moving image encoding program, moving image decoding device, moving image decoding method, and moving image decoding program
JP2012138837A (en) Moving image encoding apparatus, moving image encoding method and moving image encoding program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100803

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090807

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120110

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20120508