JP2005348008A - Moving picture coding method, moving picture coder, moving picture coding program and computer-readable recording medium with record of the program - Google Patents

Moving picture coding method, moving picture coder, moving picture coding program and computer-readable recording medium with record of the program Download PDF

Info

Publication number
JP2005348008A
JP2005348008A JP2004164144A JP2004164144A JP2005348008A JP 2005348008 A JP2005348008 A JP 2005348008A JP 2004164144 A JP2004164144 A JP 2004164144A JP 2004164144 A JP2004164144 A JP 2004164144A JP 2005348008 A JP2005348008 A JP 2005348008A
Authority
JP
Japan
Prior art keywords
prediction
evaluation value
prediction method
frame
moving image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2004164144A
Other languages
Japanese (ja)
Other versions
JP4216769B2 (en
Inventor
Masaki Kitahara
正樹 北原
Hideaki Kimata
英明 木全
Yoshiyuki Yashima
由幸 八島
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2004164144A priority Critical patent/JP4216769B2/en
Publication of JP2005348008A publication Critical patent/JP2005348008A/en
Application granted granted Critical
Publication of JP4216769B2 publication Critical patent/JP4216769B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technique for coding moving pictures by the intra-frame prediction which reduces a flicker quantity with restraining the coding efficiency from deteriorating. <P>SOLUTION: In selection of predicting methods for indicating an optimum prediction evaluation value, one of predicting methods utilizable for a coding target block in the present frame is selected and set as a tentative predicting method, while the prediction evaluation value of a predicting method utilized for the block at the same position in a coded frame just before the present frame as the coding target block is set as a prediction evaluation value for determining the prediction method. If the prediction evaluation value of the set tentative prediction method is approximately equal to that for determining the set predicting method, the predicting method utilized for the block at the same position in the coded frame just before the present frame is determined to be a prediction method to be utilized for the coding target block in the preset frame. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、動画像をフレーム内予測によって符号化する動画像符号化方法及びその装置と、その動画像符号化方法の実現に用いられる動画像符号化プログラム及びそのプログラムを記録したコンピュータ読み取り可能な記録媒体とに関する。   The present invention relates to a moving image encoding method and apparatus for encoding a moving image by intra-frame prediction, a moving image encoding program used for realizing the moving image encoding method, and a computer-readable recording of the program. And a recording medium.

一般に、動画像の各フレームにおける隣接画素の画素値の相関は大きいため、このフレーム内の相関を利用してフレーム内の情報量を削減することは、動画像の高効率な圧縮符号化において有効である。また、動画像においては、フレーム間においても画素値の相関が大きいので、このフレーム間の相関を利用して、さらに情報量を削減することが可能である。   In general, since the correlation between the pixel values of adjacent pixels in each frame of a moving image is large, reducing the amount of information in the frame using the correlation in this frame is effective for highly efficient compression coding of moving images. It is. In a moving image, since the correlation between pixel values is large between frames, the amount of information can be further reduced by using the correlation between frames.

しかし、フレーム間の相関を利用して符号化を行った場合、復号時に任意のフレームを、他のフレームを参照せずに復号化することができない。   However, when encoding is performed using correlation between frames, an arbitrary frame cannot be decoded without referring to another frame at the time of decoding.

これから、フレーム内の相関のみを利用した符号化方法(以下では、このような符号化方法をフレーム内限定符号化と呼ぶ)によって得られた符号化データは、編集等がより容易に行えるため、応用上重要とされている。   Since encoded data obtained by an encoding method using only correlation within a frame (hereinafter, such an encoding method is referred to as intra-frame limited encoding) can be edited more easily, It is considered important in application.

国際標準動画像符号化方式であるH.264(例えば、非特許文献1を参照)では、フレーム内の画素間の相関を利用して符号化するフレームであるIフレームと、フレーム間の相関を利用して符号化するフレームであるPフレーム及びBフレームを規定しているため、フレーム内及びフレーム間の相関を利用して符号化することが可能である。   In H.264, which is an international standard video encoding system (see, for example, Non-Patent Document 1), an I frame that is a frame to be encoded using a correlation between pixels in a frame, and a correlation between frames. Since the P frame and the B frame, which are frames to be used for encoding, are defined, it is possible to perform encoding using the intra-frame and inter-frame correlation.

なお、H.264によってフレーム内限定符号化を実現する場合は、動画像の全フレームに関してIフレームで符号化すればよい。   In addition, when realizing intra-frame limited encoding with H.264, all frames of a moving image may be encoded with I frames.

H.264では、フレーム内の画素値間の相関を利用して符号化効率を高めるため、フレーム内予測を採用している。フレーム内予測を利用した符号化では、符号化対象の画素値やブロック内の画素値列を隣接する画素値列から予測し、その予測残差を符号化する。フレーム内の画素間の相関が大きければ、予測残差の平均エネルギーは小さくなり、符号化効率が向上する。   In H.264, intra-frame prediction is employed in order to increase the coding efficiency by using the correlation between pixel values in a frame. In encoding using intra-frame prediction, a pixel value to be encoded and a pixel value sequence in a block are predicted from adjacent pixel value sequences, and the prediction residual is encoded. If the correlation between the pixels in the frame is large, the average energy of the prediction residual is small, and the coding efficiency is improved.

H.264のフレーム内予測では、2つの予測モードが規定されている。以下ではこの2つのモードを4×4予測モード、16×16予測モードと呼ぶこととする。H.264では、各マクロブロックで、この2つの予測モードを適応的に利用できるように規定している。   In the intra-frame prediction of H.264, two prediction modes are defined. Hereinafter, these two modes are referred to as a 4 × 4 prediction mode and a 16 × 16 prediction mode. H.264 specifies that each macroblock can use these two prediction modes adaptively.

4×4予測モードでは、マクロブロックを縦の画素数と横の画素数が4であるブロックに分割し(以下ではこのブロックを4×4ブロックと記述する)、この4×4ブロック単位で予測を行う。また、16×16予測モードではマクロブロック単位で予測を行う。具体的には、図6に示すように、現ブロックの周辺の復号された画素値列を利用して、現ブロックの中の画素値を予測する。そして、4×4及び16×16の予測モードのいずれにおいても、複数の予測方法を実行できる。   In the 4 × 4 prediction mode, the macroblock is divided into blocks each having 4 vertical pixels and 4 horizontal pixels (hereinafter, this block is described as 4 × 4 blocks), and prediction is performed in units of 4 × 4 blocks. I do. In the 16 × 16 prediction mode, prediction is performed in units of macroblocks. Specifically, as shown in FIG. 6, a pixel value in the current block is predicted using a decoded pixel value sequence around the current block. A plurality of prediction methods can be executed in any of the 4 × 4 and 16 × 16 prediction modes.

具体例として、垂直方向の予測(以下、垂直方向予測と呼ぶ)、水平方向の予測(以下、水平方向予測と呼ぶ)、及び平均値を利用した予測(以下、平均値予測と呼ぶ)について、16×16予測モードを用いた場合を例として説明する。   As specific examples, prediction in the vertical direction (hereinafter referred to as vertical prediction), prediction in the horizontal direction (hereinafter referred to as horizontal prediction), and prediction using an average value (hereinafter referred to as average value prediction), A case where the 16 × 16 prediction mode is used will be described as an example.

垂直方向予測では、現ブロックの上部の16個の画素(これらはすでに符号化されている)を復号して、これらを予測に利用する。具体的には、16×16ブロックの各列の画素を全てその上にある復号された画素値を入れて予測画像を作成する。また、水平方向予測では、現ブロックの左の16個の画素(これらはすでに符号化されている)を復号して、これらを予測に利用する。この場合、16×16ブロックの各行の画素を全てその左にある復号された画素値を入れて予測画像を作成する。また、平均値予測では、現ブロックの左及び上の32個の画素(これらはすでに符号化されている)を復号して、これらの平均値を16×16ブロックの全画素に入れて予測画像を作成する。   In vertical prediction, the top 16 pixels of the current block (which are already encoded) are decoded and used for prediction. Specifically, a predicted image is created by putting the decoded pixel values above all the pixels in each column of a 16 × 16 block. In the horizontal prediction, the left 16 pixels of the current block (which are already encoded) are decoded and used for prediction. In this case, a predicted image is created by inserting the decoded pixel values on the left of all the pixels in each row of the 16 × 16 block. Also, in the average value prediction, 32 pixels on the left and top of the current block (these are already encoded) are decoded, and these average values are put into all the pixels of the 16 × 16 block to predict the predicted image. Create

H.264では、このような方法で得られた予測画像から得られる予測残差画像に対して、直交変換、量子化、エントロピー符号化を施すことによって符号化が行われる。   In H.264, encoding is performed by performing orthogonal transformation, quantization, and entropy encoding on a prediction residual image obtained from a prediction image obtained by such a method.

フレーム内予測によってフレーム内限定符号化を行った場合、特に低ビットレートの条件下では、フリッカというアーティファクトが出やすいという問題がある。ここで、フリッカとは、現フレームと前フレームにおいて同じ位置にある画素間についての、原画像における画素値の差と復号画像における画素値の差との間の差と定義する。   When intra-frame limited encoding is performed by intra-frame prediction, there is a problem that an artifact called flicker is likely to occur particularly under a low bit rate condition. Here, flicker is defined as a difference between a pixel value difference in the original image and a pixel value difference in the decoded image between pixels at the same position in the current frame and the previous frame.

フリッカーが生ずるということは、例えば、原画像の連続するフレーム間で時間的に変化がないブロックにおいても、その復号画像では時間的な変化が生ずるということを意味している。   The occurrence of flicker means that, for example, a temporal change occurs in the decoded image even in a block where there is no temporal change between successive frames of the original image.

具体的には、下記に示す非特許文献2や非特許文献3では、フリッカは次式で与えられるような量Sで定量的に評価されるものとして定義されている。   Specifically, in Non-Patent Document 2 and Non-Patent Document 3 shown below, flicker is defined as one that is quantitatively evaluated by an amount S given by the following equation.

Figure 2005348008
ここで、Ii,j (k)は動画像中のi番目のフレーム内のj番目のブロックにおけるk個目の画素(ブロック内の画素数はMで表している)を表し、Ri,j (k)は復号された動画像中のi番目のフレーム内のj番目のブロックにおけるk個目の画素を表す。
Figure 2005348008
Here, I i, j (k) represents the k-th pixel (the number of pixels in the block is represented by M) in the j-th block in the i-th frame in the moving image, and R i, j (k) represents the k-th pixel in the j-th block in the i-th frame in the decoded moving image.

また、FDIF(i,j)は動画像中のi番目及びi+1番目のフレームにおけるj番目のブロック間の各画素の二乗誤差和を表す。つまり、次式で与えられる。   FDIF (i, j) represents the square error sum of each pixel between the j-th block in the i-th and i + 1-th frames in the moving image. That is, it is given by the following equation.

Figure 2005348008
また、ΣFDIF(i,j)<εは、FDIF(i,j)がεより小さいブロックに関して、各フレームについて和を取ることを表している。つまり、εは動画像中で時間的に一定の量より多く変化するブロックに関してはフリッカ量の評価から除外するための値である。このような除外を行うのは、動画像中で時間的に変化の小さい領域においてフリッカが主観的に目立つからである。以下では、動画像中で時間的に変化の小さい領域においてのフリッカを扱っていくこととする。
Figure 2005348008
Further, Σ FDIF (i, j) < ε represents that a sum is obtained for each frame with respect to a block in which FDIF (i, j) is smaller than ε. That is, ε is a value for excluding from the evaluation of the flicker amount a block that changes more than a certain amount in time in the moving image. Such exclusion is performed because flicker is conspicuously conspicuous in an area where the temporal change is small in the moving image. In the following, it is assumed that flicker is handled in an area in which a change in time is small in a moving image.

各フレームにおいて、フレーム内予測を行わずに、原画像に対して直交変換と量子化を行って符号化した場合、連続するフレーム間で時間的な変化がないブロックにおいては復号画像も変化しないので、フリッカは生じない。   In each frame, if the original image is encoded by performing orthogonal transformation and quantization without performing intra-frame prediction, the decoded image does not change in a block that does not change temporally between consecutive frames. Flicker does not occur.

一方、フレーム内予測を利用する符号化では、連続するフレーム間で時間的な変化がないブロックにおいても予測画像が大きく異なる場合がある。このような場合、残差画像も連続するフレーム間で時間的な変化が大きく、直交変換と量子化が行われた残差画像を復号時に予測画像に足すと、連続するフレーム間で時間的な変化がないブロックにおいても変化が生じる(フリッカが生じる)。   On the other hand, in encoding using intra-frame prediction, a predicted image may be greatly different even in a block where there is no temporal change between consecutive frames. In such a case, the residual image also has a large temporal change between consecutive frames. If the residual image that has been subjected to orthogonal transform and quantization is added to the predicted image during decoding, the temporal difference between successive frames Changes occur even in blocks where there is no change (flicker occurs).

このような点に着目し、下記に示す非特許文献2では、予測画像に直交変換、量子化、逆量子化、逆直交変換を行った画像を原画像から引くことによって残差画像を求めて、この残差画像を符号化する手法が考案されている。   Focusing on these points, in Non-Patent Document 2 shown below, a residual image is obtained by subtracting an image obtained by performing orthogonal transform, quantization, inverse quantization, and inverse orthogonal transform on a predicted image from an original image. A method for encoding the residual image has been devised.

符号化に利用されている量子化が一様量子化であった場合(量子化ステップサイズが一様であるような量子化)、非特許文献2の手法で得られる復号画像は、原画像に対して直交変換、量子化、逆量子化、逆直交変換を行って得られる復号画像と等しくなるため、静止しているブロックに関するフリッカをなくすことができ、フリッカを低減できる。   When the quantization used for encoding is uniform quantization (quantization with a uniform quantization step size), the decoded image obtained by the technique of Non-Patent Document 2 is the original image. On the other hand, since it becomes equal to a decoded image obtained by performing orthogonal transform, quantization, inverse quantization, and inverse orthogonal transform, it is possible to eliminate flicker related to a stationary block and reduce flicker.

また、下記に示す非特許文献3では、非特許文献2の手法を併用することを前提とし、さらにフリッカを削減する手法が提案されている。   Further, Non-Patent Document 3 shown below proposes a technique for further reducing flicker on the premise that the technique of Non-Patent Document 2 is used in combination.

この手法では、非特許文献2の手法に従うと、予測残差の変換係数の量子化値が、
L=Q(Itrans )−Q(Ptrans
という式のように表せることを利用している。
In this method, according to the method of Non-Patent Document 2, the quantized value of the transform coefficient of the prediction residual is
L = Q (I trans ) −Q (P trans )
The fact that it can be expressed as

ここで、Itrans は原画像におけるブロックに直交変換を行って得た任意の変換係数を表し、Ptrans は同ブロックに対応した予測画像に直交変換を行って得た変換係数(Itrans と同じ周波数成分)を表す。また、Q(A)は値Aの量子化値を表す。 Here, I trans represents an arbitrary transform coefficient obtained by performing orthogonal transform on a block in the original image, and P trans is a transform coefficient obtained by performing orthogonal transform on a predicted image corresponding to the block (same as I trans Frequency component). Q (A) represents the quantized value of value A.

非特許文献3では、直前のフレームで同じ位置にあるブロックに対応した変換係数の量子化値と現フレームの量子化値との差が1で、なおかつ、Itrans に最も近い2つの代表値の中点とItrans との差の絶対値がある閾値以内であった場合には、Lを次式のL’
L’=Q(I’trans )−Q(Ptrans
に置き換える。ただし、Q(I’trans )は直前のフレームの同じ位置にあるブロックの変換係数の量子化値である。
In Non-Patent Document 3, the difference between the quantized value of the transform coefficient corresponding to the block at the same position in the previous frame and the quantized value of the current frame is 1, and the two representative values closest to I trans are If the absolute value of the difference between the midpoint and I trans is within a certain threshold, L is expressed as L ′
L ′ = Q (I ′ trans ) −Q (P trans )
Replace with However, Q (I ′ trans ) is the quantized value of the transform coefficient of the block at the same position in the immediately preceding frame.

このようにすることにより、静止領域ではないが、微かな変化のみがあるブロックに関してもフリッカ量を低減できる。
ITU-T Rec.H.264/ISO/IEC 11496-10, "Advanced Video Coding", Final Committee Draft, Document JVT-E022, September 2002 Xiaopeng Fan, Wen Gao, Yan Lu, Debin Zhao, ITU-T Rec.H.264/ISO/IEC 11496-10, "Flicking Reduction in All Intra Frame Coding", Document JVT-E070, October 2002 井口和久,池田誠,坂井真一,苗村昌秀,「H.264符号化におけるイントラモードのフリッカ低減手法」, FIT2003, J-040
By doing so, the flicker amount can be reduced even for a block that is not a static region but has only a slight change.
ITU-T Rec.H.264 / ISO / IEC 11496-10, "Advanced Video Coding", Final Committee Draft, Document JVT-E022, September 2002 Xiaopeng Fan, Wen Gao, Yan Lu, Debin Zhao, ITU-T Rec.H.264 / ISO / IEC 11496-10, "Flicking Reduction in All Intra Frame Coding", Document JVT-E070, October 2002 Kazuhisa Iguchi, Makoto Ikeda, Shinichi Sakai, Masahide Naemura, "Intra-mode flicker reduction method in H.264 coding", FIT2003, J-040

しかしながら、非特許文献2の手法では、符号化対象のブロックにおいて予測画像を作成するたびに、その予測画像に直交変換と量子化を行う必要があるために演算量が膨大であるという問題がある。しかも、その演算量は利用可能な予測方法の数とブロックサイズに伴って増加してしまうことになる。   However, the method of Non-Patent Document 2 has a problem that the amount of calculation is enormous because it is necessary to perform orthogonal transformation and quantization on the predicted image every time a predicted image is created in the block to be encoded. . Moreover, the amount of computation increases with the number of available prediction methods and the block size.

この増加量について具体的に説明するならば、ブロックサイズが縦横いずれもN画素で構成されるとき、一般的な直交変換における積和演算回数はN4 であり、量子化の積和演算回数はN2 となる。これから、利用可能な予測方法の数がQの場合、非特許文献2の手法を利用することによって増える演算の積和演算回数はブロック当たりでおよそQ(N4 +N2 )となる。 When this increase amount is specifically described, when the block size is composed of N pixels both vertically and horizontally, the number of product-sum operations in a general orthogonal transform is N 4 , and the number of product-sum operations of quantization is the N 2. From this, when the number of available prediction methods is Q, the number of product-sum operations that are increased by using the method of Non-Patent Document 2 is approximately Q (N 4 + N 2 ) per block.

これから分かるように、非特許文献2の手法は、符号化を実時間で行うことを要求されるような応用には適さない。   As can be seen, the technique of Non-Patent Document 2 is not suitable for applications that require encoding in real time.

また、非特許文献3の手法は非特許文献2の手法を併用することを前提としているため、上述と同様の問題がある。   Further, since the method of Non-Patent Document 3 is premised on the combined use of the method of Non-Patent Document 2, there is a problem similar to that described above.

本発明はかかる事情に鑑みてなされたものであって、動画像をフレーム内予測によって符号化するという構成を採るときにあって、フリッカを低減しながらも、それによる演算量の増加が小さく、なおかつ、演算量の増加が予測方法の数とブロックサイズとに依存しないような新たな動画像符号化技術を提供することを目的とする。   The present invention has been made in view of such circumstances, and has a configuration in which a moving image is encoded by intra-frame prediction, and while the flicker is reduced, the increase in the amount of calculation thereby is small, It is another object of the present invention to provide a new video encoding technique in which the increase in the amount of computation does not depend on the number of prediction methods and the block size.

〔1〕本発明の基本的な構成
上記の目的を達成するために、本発明の動画像符号化装置は、動画像をフレーム内予測によって符号化する処理を行うために、(イ)現フレームの符号化対象ブロックで利用可能な予測方法のうち一つを選択して、それを仮の予測方法として設定する仮予測方法設定部と、(ロ)仮予測方法設定部で設定された予測方法の予測評価値と、現フレームの直前に符号化されたフレームにおいて符号化対象ブロックと同じ位置のブロックで利用された予測方法を用いる場合の予測評価値とに基づいて、現フレームの符号化対象ブロックで利用する予測方法を決定する予測方法決定部とを備えるという構成を採る。
[1] Basic Configuration of the Present Invention In order to achieve the above object, the moving picture coding apparatus of the present invention performs the process of coding a moving picture by intra-frame prediction. A prediction method setting unit that selects one of the prediction methods that can be used in the current encoding target block and sets the prediction method as a temporary prediction method, and (b) the prediction method set by the temporary prediction method setting unit Of the current frame based on the prediction evaluation value of the current frame and the prediction evaluation value when using the prediction method used in the block at the same position as the block to be encoded in the frame encoded immediately before the current frame A configuration is adopted in which a prediction method determination unit that determines a prediction method used in a block is provided.

ここで、仮予測方法設定部は、何らかの方法に従って、現フレームの符号化対象ブロックで利用可能な予測方法のうち一つを選択することになるが、例えば、最適な予測評価値を示す予測方法を選択するというように、予測方法の予測評価値に基づいて選択するように処理することがある。   Here, the temporary prediction method setting unit selects one of the prediction methods that can be used in the current frame encoding target block according to some method. For example, a prediction method that shows an optimal prediction evaluation value In some cases, the selection method is selected based on the prediction evaluation value of the prediction method.

以上の各処理手段が動作することで実現される本発明の動画像符号化方法はコンピュータプログラムでも実現できるものであり、このコンピュータプログラムは、適当な記録媒体に記録して提供されたり、ネットワークを介して提供され、本発明を実施する際にインストールされてCPUなどの制御手段上で動作することにより本発明を実現することになる。   The moving image encoding method of the present invention realized by the operation of each of the above processing means can also be realized by a computer program. This computer program can be provided by being recorded on an appropriate recording medium, or can be connected to a network. The present invention is realized by operating on a control means such as a CPU installed when implementing the present invention.

〔2〕本発明の具体的な構成
上記の基本的な構成を実現するために、本発明の動画像符号化装置は、動画像をフレーム内予測によって符号化する処理を行うために、(イ)現フレームの符号化対象ブロックで利用可能な予測方法の各々に関する予測評価値を算出する予測評価値算出部と、(ロ)予測評価値算出部で算出された予測評価値に基づいて、現フレームの符号化対象ブロックで利用可能な予測方法のうち一つを選択して、それを仮の予測方法として設定する仮予測方法設定部と、(ハ)現フレームの直前に符号化されたフレームにおいて符号化対象ブロックと同じ位置のブロックで利用された予測方法を用いる場合の予測評価値を、予測方法決定用の予測評価値として設定する前フレーム予測方法評価値設定部と、(ニ)仮予測方法設定部で設定された予測方法の予測評価値と、前フレーム予測方法評価値設定部で設定された予測評価値とに基づいて、現フレームの符号化対象ブロックで利用する予測方法を決定する予測方法決定部とを備えるという構成を採る。
[2] Specific Configuration of the Present Invention In order to realize the basic configuration described above, the moving image encoding apparatus of the present invention performs (i) a process of encoding a moving image by intra-frame prediction. And (b) a prediction evaluation value calculation unit that calculates a prediction evaluation value for each of the prediction methods that can be used in the current block encoding target block, and (b) a prediction evaluation value calculated by the prediction evaluation value calculation unit. A temporary prediction method setting unit that selects one of the prediction methods available in the encoding target block of the frame and sets the prediction method as a temporary prediction method; and (c) a frame encoded immediately before the current frame. A pre-frame prediction method evaluation value setting unit that sets a prediction evaluation value when a prediction method used in a block at the same position as the encoding target block is used as a prediction evaluation value for determining a prediction method; Forecasting method Prediction that determines a prediction method to be used in the current block encoding target block based on the prediction evaluation value of the prediction method set by the setting unit and the prediction evaluation value set by the previous frame prediction method evaluation value setting unit The method determining unit is provided.

この構成を採るときにあって、予測評価値の算出対象となる予測方法を絞り込む機構が用意されていない場合には、本発明の動画像符号化装置は、用意されている全ての予測方法を現フレームの符号化対象ブロックで利用可能な予測方法として設定する
これを受けて、予測評価値算出部は、現フレームの直前に符号化されたフレームにおいて符号化対象ブロックと同じ位置のブロックで利用された予測方法を用いる場合の予測評価値を算出することになるので、前フレーム予測方法評価値設定部は、その算出されている予測評価値を予測方法決定用の予測評価値として設定するように処理する。
When this configuration is adopted and a mechanism for narrowing down the prediction method for which the prediction evaluation value is to be calculated is not prepared, the video encoding device of the present invention uses all the prepared prediction methods. As a prediction method that can be used in the current frame encoding target block, the prediction evaluation value calculation unit is used in a block at the same position as the encoding target block in the frame encoded immediately before the current frame. Therefore, the previous frame prediction method evaluation value setting unit sets the calculated prediction evaluation value as the prediction evaluation value for determining the prediction method. To process.

一方、この構成を採るときにあって、予測評価値の算出対象となる予測方法を絞り込む機構が用意されている場合には、本発明の動画像符号化装置は、その絞り込まれた予測方法を現フレームの符号化対象ブロックで利用可能な予測方法として設定する
これを受けて、予測評価値算出部は、現フレームの直前に符号化されたフレームにおいて符号化対象ブロックと同じ位置のブロックで利用された予測方法を用いる場合の予測評価値を算出したり、算出しない場合があるので、前フレーム予測方法評価値設定部は、その予測評価値が算出されている場合には、それを予測方法決定用の予測評価値として設定し、その予測評価値が算出されていない場合には、それを算出して予測方法決定用の予測評価値として設定するように処理する。
On the other hand, when this mechanism is adopted and a mechanism for narrowing down the prediction method for which the prediction evaluation value is to be calculated is prepared, the video encoding device of the present invention uses the narrowed-down prediction method. As a prediction method that can be used in the current frame encoding target block, the prediction evaluation value calculation unit is used in a block at the same position as the encoding target block in the frame encoded immediately before the current frame. If the predicted evaluation value is calculated, the previous frame prediction method evaluation value setting unit may calculate the prediction evaluation value when the predicted evaluation value is calculated. It is set as a prediction evaluation value for determination, and when the prediction evaluation value is not calculated, it is calculated and processed so as to be set as a prediction evaluation value for determining a prediction method.

以上の各処理手段が動作することで実現される本発明の動画像符号化方法はコンピュータプログラムでも実現できるものであり、このコンピュータプログラムは、適当な記録媒体に記録して提供されたり、ネットワークを介して提供され、本発明を実施する際にインストールされてCPUなどの制御手段上で動作することにより本発明を実現することになる。   The moving image encoding method of the present invention realized by the operation of each of the above processing means can also be realized by a computer program. This computer program can be provided by being recorded on an appropriate recording medium, or can be connected to a network. The present invention is realized by operating on a control means such as a CPU installed when implementing the present invention.

〔3〕本発明の動作
このように構成される本発明の動画像符号化装置では、例えば、最適な予測評価値を示す予測方法を選択することで、現フレームの符号化対象ブロックで利用可能な予測方法のうち一つを選択して、それを仮の予測方法として設定し、一方、現フレームの直前に符号化されたフレームにおいて符号化対象ブロックと同じ位置のブロックで利用された予測方法を用いる場合の予測評価値を、予測方法決定用の予測評価値として設定する。
[3] Operation of the present invention In the moving picture coding apparatus of the present invention configured as described above, for example, by selecting a prediction method that shows an optimal prediction evaluation value, it can be used in a current frame encoding target block. Prediction method selected as a temporary prediction method and used in a block at the same position as the current block in the frame encoded immediately before the current frame The prediction evaluation value when using is set as the prediction evaluation value for determining the prediction method.

そして、その設定した仮の予測方法の予測評価値と、その設定した予測方法決定用の予測評価値とに基づき、例えば、2つの予測方法の予測評価値の比に対する閾値処理を施すことで、2つの予測方法の予測評価値がほぼ同等であるのか否かを判断して、ほぼ同等であるような場合には、現フレームの直前に符号化されたフレームにおいて符号化対象ブロックと同じ位置のブロックで利用された予測方法を、現フレームの符号化対象ブロックで利用する予測方法として決定する。   Then, based on the set prediction evaluation value of the provisional prediction method and the set prediction evaluation value for determining the prediction method, for example, by performing a threshold process on the ratio of the prediction evaluation values of the two prediction methods, It is determined whether or not the prediction evaluation values of the two prediction methods are substantially equal, and in the case where they are approximately equal, in the frame encoded immediately before the current frame, the same position as the current block is encoded. The prediction method used in the block is determined as the prediction method used in the current block encoding target block.

このように、本発明では、現ブロックにおいて何らかの方法で決定された仮の予測方法に関する予測評価値(予測効率を示す何らかの量)と、1つ前のフレームの同じ位置にあるブロックで利用された予測方法を現ブロックで用いるときの予測評価値とがほぼ同等である場合には、1つ前のフレームの同じ位置にあるブロックで利用された予測方法を現ブロックの符号化に利用するという構成を採る。   As described above, in the present invention, the prediction evaluation value (some amount indicating prediction efficiency) related to the temporary prediction method determined by some method in the current block and the block at the same position in the previous frame are used. When the prediction evaluation value when the prediction method is used in the current block is almost equal, the prediction method used in the block at the same position in the previous frame is used for encoding the current block Take.

より具体的に説明するならば、1つ前のフレームの同じ位置にあるブロックで利用された予測方法の予測効率と現ブロックで予測効率が最大の予測方法の予測効率とがほぼ同等である場合には、1つ前のフレームの同じ位置にあるブロックで利用された予測方法を現ブロックの符号化に利用するという構成を採るのである。   More specifically, when the prediction efficiency of the prediction method used in the block at the same position in the previous frame is almost equal to the prediction efficiency of the prediction method having the maximum prediction efficiency in the current block Is configured to use the prediction method used in the block at the same position in the previous frame for encoding the current block.

上述したように、予測に利用する隣接画素を含めて、1つ前のフレームのブロックと現ブロックとがほぼ同じとなる領域においては、同じ予測方法を利用すればフリッカを低減できることになる。これから、フリッカを低減するという観点からは、常に一つの予測方法のみを利用する構成を採ればよいことになる。   As described above, flicker can be reduced by using the same prediction method in a region where the block of the previous frame and the current block are substantially the same, including adjacent pixels used for prediction. Thus, from the viewpoint of reducing flicker, it is sufficient to adopt a configuration that always uses only one prediction method.

しかしながら、この方法に従うと、フリッカの低減については実現できるものの符号化効率が大きく低下する可能性がある。   However, according to this method, although the flicker reduction can be realized, there is a possibility that the encoding efficiency is greatly reduced.

これに対して、本発明では、予測効率の低下が小さい場合にのみ、1つ前のフレームの予測方法を利用するという構成を採ることから、符号化効率の低下は抑えながら、フリッカの低減を実現できるようになる。   In contrast, the present invention employs a configuration in which the prediction method for the previous frame is used only when the decrease in prediction efficiency is small. Therefore, flicker can be reduced while suppressing the decrease in encoding efficiency. Can be realized.

以上に説明したように、本発明によれば、1つ前のフレームの同じ位置にあるブロックで利用された予測方法の予測効率と現ブロックで予測効率が最大の予測方法の予測効率とがほぼ同等である場合には、1つ前のフレームの予測方法を現ブロックの符号化に利用するので、符号化効率の低下を抑えながらもフリッカ量を低減できるようになる。   As described above, according to the present invention, the prediction efficiency of the prediction method used in the block at the same position in the previous frame is almost equal to the prediction efficiency of the prediction method having the maximum prediction efficiency in the current block. If they are equal, the prediction method of the previous frame is used for encoding the current block, so that the flicker amount can be reduced while suppressing a decrease in encoding efficiency.

また、本発明による演算量の増加はブロック当たり積和演算回数が1回であり、これは予測方法の数やブロックサイズに依存しない。従って、本発明は実時間符号化に好適である。   Further, the increase in the amount of calculation according to the present invention is that the number of product-sum operations per block is one, and this does not depend on the number of prediction methods or the block size. Therefore, the present invention is suitable for real-time encoding.

以下、実施の形態に従って本発明を詳細に説明する。   Hereinafter, the present invention will be described in detail according to embodiments.

ここでは、各マクロブロックで水平方向予測、垂直方向予測、平均値予測という3つの予測方法を行うことを前提とする。また、予測は画像の輝度成分に関してのみ記載するが、色差成分に関しても、以下と同様の構成で本発明は実現できるものである。   Here, it is assumed that each macroblock performs three prediction methods: horizontal direction prediction, vertical direction prediction, and average value prediction. In addition, although prediction is described only with respect to the luminance component of the image, the present invention can be realized with a configuration similar to the following also regarding the color difference component.

図1に、本発明の動画像符号化装置1の一実施形態例を図示する。   FIG. 1 illustrates an embodiment of a moving picture encoding apparatus 1 according to the present invention.

この図に示すように、本発明の動画像符号化装置1は、本発明を実現すべく構成されて、符号化対象となる現マクロブロックの予測方法の決定を行うフレーム内予測部10を備えるものであり、このフレーム内予測部10は、画像情報入力部101と、仮予測方法設定部102と、予測方法評価部103と、前フレーム予測方法評価値設定部104と、予測方法メモリ105と、予測方法決定部106とを備える。   As shown in this figure, the moving picture encoding apparatus 1 of the present invention includes an intra-frame prediction unit 10 that is configured to realize the present invention and determines a prediction method of a current macroblock to be encoded. The intra-frame prediction unit 10 includes an image information input unit 101, a temporary prediction method setting unit 102, a prediction method evaluation unit 103, a previous frame prediction method evaluation value setting unit 104, a prediction method memory 105, And a prediction method determination unit 106.

この画像情報入力部101は、現マクロブロックの画像と予測に利用する復号画像とを入力する。   The image information input unit 101 inputs an image of the current macroblock and a decoded image used for prediction.

仮予測方法設定部102は、予測方法の予測評価値に基づいて、現マクロブロックにおける仮の予測方法を求める。   The temporary prediction method setting unit 102 obtains a temporary prediction method in the current macroblock based on the prediction evaluation value of the prediction method.

予測方法評価部103は、与えられた予測方法に関して、現マクロブロックにおける予測方法の予測評価値を算出する。   The prediction method evaluation unit 103 calculates a prediction evaluation value of the prediction method in the current macroblock for the given prediction method.

前フレーム予測方法評価値設定部104は、1つ前のフレームで利用された予測方法を現マクロブロックで利用する場合の予測評価値を、予測方法決定用の予測評価値として設定する。   The previous frame prediction method evaluation value setting unit 104 sets a prediction evaluation value when the prediction method used in the previous frame is used in the current macroblock as a prediction evaluation value for determining a prediction method.

予測方法メモリ105は、1つ前のフレームで利用された予測方法についての情報を記録する。   The prediction method memory 105 records information on the prediction method used in the previous frame.

予測方法決定部106は、仮予測方法設定部102で設定された仮の予測方法の予測評価値と前フレーム予測方法評価値設定部104で設定された予測評価値とを比較して、その比較結果に基づいて、現マクロブロックで利用する予測方法を決定する。   The prediction method determination unit 106 compares the prediction evaluation value of the temporary prediction method set by the temporary prediction method setting unit 102 with the prediction evaluation value set by the previous frame prediction method evaluation value setting unit 104, and compares the comparison result. Based on the result, the prediction method used in the current macroblock is determined.

図2に、このように構成されるフレーム内予測部10の実行するフローチャートの一例を図示する。ここで、このフローチャートは、動画像におけるあるフレームのあるマクロブロックについての予測方法の決定処理を示している。   FIG. 2 illustrates an example of a flowchart executed by the intra-frame prediction unit 10 configured as described above. Here, this flowchart shows the determination method of the prediction method for a macroblock having a certain frame in the moving image.

次に、このフローチャートに従って本発明の処理について詳細に説明する。なお、以下の説明では、説明の便宜上、垂直方向予測については0、水平方向予測については1、平均値予測については2という整数インデックスを対応付けておくことを想定している。   Next, the processing of the present invention will be described in detail according to this flowchart. In the following description, for convenience of explanation, it is assumed that integer indexes of 0 for vertical prediction, 1 for horizontal prediction, and 2 for average prediction are associated with each other.

フレーム内予測部10は、現マクロブロックにおける予測方法の決定要求があると、図2のフローチャートに示すように、先ず最初に、ステップ10で、現マクロブロックの画像と予測に利用される復号画像とを入力して(画像情報入力部101の処理)、予測方法のインデックスを指す変数predに初期値を代入するとともに、後の処理で予測評価値が代入される変数 minSADに初期値を代入する(仮予測方法設定部102の処理)。   When there is a request for determining a prediction method in the current macroblock, the intraframe prediction unit 10 firstly, in step 10, in step 10, the image of the current macroblock and the decoded image used for prediction are shown. (Processing of the image information input unit 101), and an initial value is substituted for the variable pred indicating the index of the prediction method, and an initial value is substituted for the variable minSAD into which the prediction evaluation value is substituted in a later process. (Process of provisional prediction method setting unit 102).

本実施形態例では、predの初期値として“0”を代入し、 minSADの初期値として予測評価値の上限値“131072”を代入することを想定している。なお、画素値は8ビットで表現され、マクロブロックは縦16画素、横16画素であることを想定している。   In the present embodiment example, it is assumed that “0” is substituted as the initial value of pred and the upper limit value “131072” of the predicted evaluation value is substituted as the initial value of minSAD. It is assumed that the pixel value is represented by 8 bits and the macroblock is 16 pixels long and 16 pixels wide.

続いて、ステップ11で、predに代入される値に対応した予測方法を用いて予測画像を生成する(仮予測方法設定部102の処理)。   Subsequently, in step 11, a prediction image is generated using a prediction method corresponding to the value substituted for pred (processing of the temporary prediction method setting unit 102).

続いて、ステップ12で、生成した予測画像を用いて、predに代入される値に対応した予測方法に関する予測評価値を求める(予測方法評価部103の処理)。   Subsequently, in step 12, a prediction evaluation value related to the prediction method corresponding to the value substituted for pred is obtained using the generated prediction image (processing of the prediction method evaluation unit 103).

本実施形態例では、次式で与えられるSAD(Sum of Absolute Differences)を予測評価値として利用する。なお、以下では、SADは変数名としても使用している。   In this embodiment, SAD (Sum of Absolute Differences) given by the following equation is used as a predicted evaluation value. In the following, SAD is also used as a variable name.

Figure 2005348008
ここで、absは絶対値をとることを表し、I[i][j]は現マクロブロックの画像を表し、py [i][j]はステップ11で生成した現マクロブロックの予測画像を表し、iとjはそれぞれ垂直方向及び水平方向の画素の位置を表すものとする。
Figure 2005348008
Here, abs represents an absolute value, I [i] [j] represents an image of the current macroblock, and p y [i] [j] represents the predicted image of the current macroblock generated in step 11. I and j represent the positions of the pixels in the vertical and horizontal directions, respectively.

続いて、ステップ13で、1つ前のフレームの同じ位置のマクロブロックで符号化に利用された予測方法のインデックスの値prevpredを予測方法メモリ105から読み出し、predの値がprevpredに等しいの否かを判断する(前フレーム予測方法評価値設定部104の処理)。   Subsequently, in step 13, the prediction method index value prevpred used for encoding in the macroblock at the same position in the previous frame is read from the prediction method memory 105, and whether or not the value of pred is equal to prevpred. (Processing of the previous frame prediction method evaluation value setting unit 104).

この判断処理により、predの値がprevpredに等しいことを判断するときには、ステップ14に進んで、1つ前のフレームの予測方法を用いる場合の現マクロブロックにおけるSADの値を表す変数prevSADに、ステップ12で算出したSADを代入してから、次に説明するステップ15の処理に進む(前フレーム予測方法評価値設定部104の処理)。   When it is determined by this determination processing that the value of pred is equal to prevpred, the process proceeds to step 14, and the variable prevSAD representing the value of SAD in the current macroblock when using the prediction method of the previous frame is set to step After substituting the SAD calculated in step 12, the process proceeds to step 15 described below (process of the previous frame prediction method evaluation value setting unit 104).

一方、ステップ13の判断処理で、predの値がprevpredに等しくないことを判断するときには、ステップ14の処理を行うことなく、直ちにステップ15に進んで、ステップ12で算出したSAD(predの値に対応した予測方法に関するSAD)が minSADよりも小さいのか否かを判断する(仮予測方法設定部102の処理)。   On the other hand, when it is determined in step 13 that the value of pred is not equal to prevpred, the process proceeds to step 15 immediately without performing step 14, and the SAD (pred value calculated in step 12 is set. It is determined whether or not the SAD associated with the corresponding prediction method is smaller than minSAD (processing of the provisional prediction method setting unit 102).

この判断処理により、SADの方が minSADよりも小さいことを判断するときには、ステップ16に進んで、これまでで最もSADを小さくした予測方法のインデックスを表す変数bestpredにpredの値を代入するとともに、 minSADにSADの値を代入してから、次に説明するステップ17の処理に進む(仮予測方法設定部102の処理)。   When it is determined by this determination process that SAD is smaller than minSAD, the process proceeds to step 16, and the value of pred is substituted into variable bestpred representing the index of the prediction method having the smallest SAD so far. After substituting the value of SAD for minSAD, the process proceeds to step 17 described below (process of provisional prediction method setting unit 102).

一方、ステップ15の判断処理で、ステップ12で算出したSADの方が minSADよりも大きいことを判断するときには、ステップ16の処理を行うことなく、直ちにステップ17に進んで、predの値が2に等しくなったのか否かを判断する(仮予測方法設定部102の処理)。   On the other hand, if it is determined in step 15 that the SAD calculated in step 12 is larger than minSAD, the process proceeds directly to step 17 without performing step 16, and the value of pred is set to 2. It is determined whether or not they are equal (processing of the provisional prediction method setting unit 102).

この判断処理により、predの値が2に等しくなっていないことを判断するときには、ステップ18に進んで、predの値を1つインクリメントしてからステップ11に戻ることで、次の予測方法について上述した処理を繰り返す(仮予測方法設定部102の処理)。   When it is determined by this determination processing that the value of pred is not equal to 2, the process proceeds to step 18 and increments the value of pred by one, and then returns to step 11 to determine the next prediction method. The above processing is repeated (processing of the provisional prediction method setting unit 102).

一方、ステップ17の判断処理で、predの値が2に等しくなったことを判断するときには、ステップ19に進んで、予め設定されたパラメータ scaleC,scaleDを利用して、
scaleC× minSAD> scaleD×prevSAD
という関係式が成立するのか否かを判断する(予測方法決定部106の処理)。
On the other hand, when it is determined in step 17 that the value of pred has become equal to 2, the process proceeds to step 19, and the preset parameters scaleC and scaleD are used.
scaleC × minSAD> scaleD × prevSAD
It is determined whether or not the following relational expression holds (processing of the prediction method determination unit 106).

すなわち、この関係式を使って、 minSADとprevSADとの比を評価することで、現マクロブロックで予測効率が最大の予測方法の予測効率と、1つ前のフレームの同じ位置のマクロブロックで符号化に利用された予測方法を用いる場合の予測効率とがほぼ同等であるのか否かを判断するのである。   That is, by using this relational expression to evaluate the ratio between minSAD and prevSAD, the prediction efficiency of the prediction method with the highest prediction efficiency in the current macroblock and the code in the macroblock at the same position in the previous frame are encoded. It is determined whether or not the prediction efficiency in the case of using the prediction method used for conversion is substantially equal.

この判断処理により、
scaleC× minSAD> scaleD×prevSAD
という関係式が成立することを判断するときには、現マクロブロックで予測効率が最大の予測方法の予測効率と、1つ前のフレームの同じ位置のマクロブロックで符号化に利用された予測方法を用いる場合の予測効率とがほぼ同等であることを判断して、ステップ20に進んで、bestpredの値をprevpredの値に置き換えてから、bestpredの値を予測方法メモリ105に格納して、処理を終了する。
With this decision process,
scaleC × minSAD> scaleD × prevSAD
Is determined, the prediction efficiency of the prediction method having the maximum prediction efficiency in the current macroblock and the prediction method used for encoding in the macroblock at the same position in the previous frame are used. It is determined that the prediction efficiency is almost equal to the case, and the process proceeds to step 20 where the bestpred value is replaced with the prevpred value, the bestpred value is stored in the prediction method memory 105, and the process is terminated. To do.

一方、この関係式が成立しないことを判断するときには、ステップ20の処理を行わないことで、bestpredの値を変更することなく、そのままbestpredの値を予測方法メモリ105に格納して、処理を終了する。   On the other hand, when it is determined that this relational expression is not satisfied, the value of bestpred is directly stored in the prediction method memory 105 without changing the value of bestpred by not performing the process of step 20, and the process is terminated. To do.

このフレーム内予測部10の処理を受けて、図示しないイントラ符号化部は、このようにして予測方法メモリ105に格納されたbestpredの値に対応した予測方法を用いて現マクロブロックの符号化を実行する。   In response to the processing of the intra-frame prediction unit 10, an intra encoding unit (not shown) encodes the current macroblock using a prediction method corresponding to the value of bestpred stored in the prediction method memory 105 in this way. Execute.

このようにして、フレーム内予測部10は、1つ前のフレームの同じ位置にあるマクロブロックで利用された予測方法の予測効率と現マクロブロックで予測効率が最大の予測方法の予測効率とがほぼ同等である場合には、1つ前のフレームの予測方法を現マクロブロックの符号化に利用するように処理するのである。   In this way, the intra-frame prediction unit 10 has the prediction efficiency of the prediction method used in the macroblock at the same position in the previous frame and the prediction efficiency of the prediction method having the maximum prediction efficiency in the current macroblock. If they are almost equal, processing is performed so that the prediction method of the previous frame is used for encoding the current macroblock.

この構成に従って、本発明によれば、符号化効率の低下を抑えながらもフリッカ量を低減できるようになる。   According to this configuration, according to the present invention, it is possible to reduce the amount of flicker while suppressing a decrease in encoding efficiency.

ここで、図2のフローチャートでは、仮の予測方法の予測評価値と1つ前のフレームで利用された予測方法の予測評価値とを比較するのに、その比に関して閾値処理を行うようにしているが、その理由は次の通りである。   Here, in the flowchart of FIG. 2, in order to compare the prediction evaluation value of the temporary prediction method with the prediction evaluation value of the prediction method used in the previous frame, threshold processing is performed on the ratio. The reason is as follows.

すなわち、予測評価値が例えば残差エネルギーのような量であるとき、その大きさは現画像のエネルギーに比例する傾向にある。これから、そのような予測評価値の差について閾値処理を行うことで符号化に利用する予測方法を決定するようにすると、予測評価値の差も現画像のエネルギーに比例するので、現画像のエネルギーが小さい領域で符号化効率の低下が大きくなる。これに対して、予測評価値の比に関して閾値処理するようにすれば、現画像のエネルギーに関して正規化された比較が可能となるので、そのような不都合が発生しない。   That is, when the predicted evaluation value is an amount such as residual energy, the magnitude tends to be proportional to the energy of the current image. From now on, if a prediction method to be used for encoding is determined by performing threshold processing on such a difference in prediction evaluation values, the difference in prediction evaluation values is also proportional to the energy of the current image. Decrease in coding efficiency becomes large in a region where is small. On the other hand, if threshold processing is performed for the ratio of predicted evaluation values, a normalized comparison can be made with respect to the energy of the current image, so that such inconvenience does not occur.

図3に、本発明の動画像符号化装置1の他の実施形態例を図示する。   FIG. 3 shows another embodiment of the moving picture encoding apparatus 1 of the present invention.

この実施形態例に従う本発明の動画像符号化装置1は、図1に示したフレーム内予測部10の他に、予測方法候補選択部20を備えるという構成を採る。   The moving picture encoding apparatus 1 according to the present embodiment according to this embodiment employs a configuration in which a prediction method candidate selection unit 20 is provided in addition to the intra-frame prediction unit 10 shown in FIG.

この予測方法候補選択部20は、現マクロブロックが与えられる場合に、何らかのアルゴリズムに従って、予測評価値の算出に用いる予測方法を絞り込む機能(選択する機能)を有している。例えば、10種類の予測方法が利用可能なものとして用意されている場合に、その中から例えば5種類の予測方法を選択するという機能を有しているのである。   The prediction method candidate selection unit 20 has a function (selection function) for narrowing down the prediction method used for calculating the prediction evaluation value according to some algorithm when the current macroblock is given. For example, in the case where 10 types of prediction methods are available, it has a function of selecting, for example, 5 types of prediction methods.

このような予測方法候補選択部20が用意されると、予測評価値を算出する予測方法が少なくなることで、予測評価値の算出の演算量を大幅に削減できるようになる。   When such a prediction method candidate selection unit 20 is prepared, the number of prediction methods for calculating a prediction evaluation value is reduced, so that the amount of calculation for calculating the prediction evaluation value can be greatly reduced.

本発明にとって、予測方法候補選択部20がどのようなアルゴリズムに従って予測方法を絞り込むのかということについては問題ではないが、予測方法候補選択部20は、例えば、次の参考文献に記載されるようなアルゴリズムでもって予測方法を絞り込むことになる。   For the present invention, it does not matter what algorithm the prediction method candidate selection unit 20 uses to narrow down the prediction method. However, the prediction method candidate selection unit 20 is described in the following reference, for example. The algorithm will narrow down the prediction method.

〔参考文献〕P.Feng et.al. "Fast mode decision for intra prediction", JVT-I049, Sept., 2003.
この参考文献には、Sobelフィルタを用いて画像の持つエッジを検出して、その検出したエッジ方向に基づいて予測モード選択を行うという構成が記載されており、予測方法候補選択部20は、このような構成を利用することで、予測方法を絞り込むことが可能である。
[References] P. Feng et.al. "Fast mode decision for intra prediction", JVT-I049, Sept., 2003.
This reference describes a configuration in which an edge of an image is detected using a Sobel filter, and a prediction mode is selected based on the detected edge direction. By using such a configuration, it is possible to narrow down the prediction method.

図4に、予測方法候補選択部20が用意される場合に、フレーム内予測部10の実行するフローチャートの一例を図示する。   FIG. 4 illustrates an example of a flowchart executed by the intra-frame prediction unit 10 when the prediction method candidate selection unit 20 is prepared.

次に、このフローチャートに従って、予測方法候補選択部20が用意される場合における本発明の処理について詳細に説明する。   Next, according to this flowchart, the process of the present invention when the prediction method candidate selection unit 20 is prepared will be described in detail.

フレーム内予測部10は、予測方法候補選択部20が現マクロブロックについての予測方法の候補を選択すると、先ず最初に、ステップ100で、その予測方法の候補を受け取る。   When the prediction method candidate selection unit 20 selects a prediction method candidate for the current macroblock, the intraframe prediction unit 10 first receives the prediction method candidate in step 100.

続いて、ステップ101で、上述したprevpredの指す予測方法を特定し、続くステップ102で、その特定した予測方法が予測方法候補選択部20から与えられた予測方法の候補に含まれているのか否かを判断する。   Subsequently, in step 101, the prediction method indicated by prevpred described above is specified, and in the subsequent step 102, whether or not the specified prediction method is included in the prediction method candidates given from the prediction method candidate selection unit 20. Determine whether.

この判断処理に従って、上述したprevpredの指す予測方法が予測方法候補選択部20から与えられた予測方法の候補に含まれていることを判断するときには、ステップ103に進んで、予測方法候補選択部20から与えられた予測方法の候補を現マクロブロックに利用可能な予測方法として設定して、上述した図2のフローチャートを実行することで、現マクロブロックについての予測方法を決定し、続くステップ104で、その実行結果により値の代入されたbestpredの指す予測方法を用いて現マクロブロックを符号化することを指示して、処理を終了する。   When it is determined that the prediction method indicated by prevpred described above is included in the prediction method candidates given from the prediction method candidate selection unit 20 according to this determination processing, the process proceeds to step 103 and the prediction method candidate selection unit 20 2 is set as a prediction method that can be used for the current macroblock, and the above-described flowchart of FIG. 2 is executed to determine a prediction method for the current macroblock. Then, it is instructed to encode the current macroblock using the prediction method indicated by bestpred to which a value is assigned according to the execution result, and the process is terminated.

この指示を受けて、図示しないイントラ符号化部は、bestpredの指す予測方法を用いて現マクロブロックの符号化を実行する。   In response to this instruction, an intra coding unit (not shown) performs coding of the current macroblock using the prediction method indicated by bestpred.

このようにして、フレーム内予測部10は、上述したprevpredの指す予測方法が予測方法候補選択部20から与えられた予測方法の候補に含まれていることを判断するときには、上述した図2のフローチャートを実行することで、現マクロブロックについての予測方法を決定するのである。   In this way, when the intra-frame prediction unit 10 determines that the prediction method indicated by prevpred described above is included in the prediction method candidates given from the prediction method candidate selection unit 20, the above-described prediction method shown in FIG. By executing the flowchart, the prediction method for the current macroblock is determined.

一方、ステップ102の判断処理に従って、上述したprevpredの指す予測方法が予測方法候補選択部20から与えられた予測方法の候補に含まれていないことを判断するときには、図2のフローチャートのステップ13,14の処理を実行することができないので、ステップ105に進んで、予測方法候補選択部20から与えられた予測方法の候補を現マクロブロックに利用可能な予測方法として設定して、これから説明する図5のフローチャートを実行することで、現マクロブロックについての予測方法を決定し、続くステップ106で、その実行結果により値の代入されたbestpredの指す予測方法を用いて現マクロブロックを符号化することを指示して、処理を終了する。   On the other hand, when it is determined that the prediction method indicated by prevpred described above is not included in the prediction method candidates given from the prediction method candidate selection unit 20 according to the determination processing in step 102, step 13 in the flowchart of FIG. 14 is not possible to execute, so the process proceeds to step 105, and the prediction method candidate given from the prediction method candidate selection unit 20 is set as a prediction method usable for the current macroblock. 5 is executed to determine a prediction method for the current macroblock, and in subsequent step 106, the current macroblock is encoded using the prediction method indicated by bestpred to which a value is assigned according to the execution result. To end the process.

この指示を受けて、図示しないイントラ符号化部は、bestpredの指す予測方法を用いて現マクロブロックの符号化を実行する。   In response to this instruction, an intra coding unit (not shown) performs coding of the current macroblock using the prediction method indicated by bestpred.

次に、図5のフローチャートについて説明する。   Next, the flowchart of FIG. 5 will be described.

すなわち、フレーム内予測部10は、図4のフローチャートのステップ105の処理に進むと、図5のフローチャートに示すように、先ず最初に、ステップ30で、現マクロブロックの画像と予測に利用される復号画像とを入力して、予測方法のインデックスを指す変数predに初期値の“0”を代入するとともに、後の処理で予測評価値が代入される変数 minSADに初期値の“131072”を代入する。   That is, when the process proceeds to step 105 in the flowchart of FIG. 4, the intra-frame prediction unit 10 first uses the current macroblock image and prediction in step 30 as shown in the flowchart of FIG. 5. The decoded image is input, and the initial value “0” is substituted for the variable pred indicating the index of the prediction method, and the initial value “131072” is substituted for the variable minSAD into which the prediction evaluation value is substituted in a later process. To do.

続いて、ステップ31で、predに代入される値に対応した予測方法を用いて予測画像を生成し、続くステップ32で、生成した予測画像を用いて、predに代入される値に対応した予測方法に関する予測評価値SADを求める。   Subsequently, in step 31, a prediction image is generated using a prediction method corresponding to the value substituted for pred, and in step 32, the prediction corresponding to the value substituted for pred is generated using the generated prediction image. A predicted evaluation value SAD related to the method is obtained.

続いて、ステップ33で、算出したpredの値に対応した予測方法に関するSADが minSADよりも小さいのか否かを判断して、SADの方が minSADよりも小さいことを判断するときには、ステップ34に進んで、これまでで最もSADを小さくした予測方法のインデックスを表す変数bestpredにpredの値を代入するとともに、 minSADにSADの値を代入してから、次に説明するステップ35の処理に進む。   Subsequently, in step 33, it is determined whether or not the SAD related to the prediction method corresponding to the calculated pred value is smaller than minSAD, and when it is determined that the SAD is smaller than minSAD, the process proceeds to step 34. Thus, after substituting the value of pred for the variable bestpred representing the index of the prediction method with the smallest SAD so far, and substituting the value of SAD for minSAD, the process proceeds to step 35 described below.

一方、ステップ33の判断処理で、SADの方が minSADよりも大きいことを判断するときには、ステップ34の処理を行うことなく、直ちにステップ35に進んで、predの値が予測方法を表すインデックスの最大値maxに等しくなったのか否かを判断する。   On the other hand, if it is determined in step 33 that the SAD is larger than minSAD, the process proceeds to step 35 immediately without performing the process in step 34, and the value of pred is the maximum of the index representing the prediction method. It is determined whether or not the value is equal to max.

この判断処理により、predの値がmaxに等しくなっていないことを判断するときには、ステップ36に進んで、predの値を1つインクリメントしてからステップ31に戻ることで、次の予測方法について上述した処理を繰り返す。   When it is determined by this determination processing that the value of pred is not equal to max, the process proceeds to step 36, the value of pred is incremented by one, and then the process returns to step 31, whereby the next prediction method is described above. Repeat the process.

一方、ステップ35の判断処理で、predの値がmaxに等しくなったことを判断するときには、ステップ37に進んで、1つ前のフレームの同じ位置のマクロブロックで符号化に利用された予測方法のインデックスの値prevpredを予測方法メモリ105から読み出し、そのprevpredの値に対応した予測方法を用いて予測画像を生成し、続くステップ38で、その生成した予測画像を用いて、そのprevpredの値に対応した予測方法に関する予測評価値SADを求める。   On the other hand, when it is determined in step 35 that the value of pred is equal to max, the process proceeds to step 37, and the prediction method used for encoding in the macroblock at the same position in the previous frame. Is read from the prediction method memory 105, a prediction image is generated using a prediction method corresponding to the value of the prevpred, and in step 38, the value of the prevpred is set using the generated prediction image. A prediction evaluation value SAD for the corresponding prediction method is obtained.

続いて、ステップ39で、1つ前のフレームの予測方法を用いる場合の現マクロブロックにおけるSADの値を表す変数prevSADに、ステップ38で算出したSADを代入する。   Subsequently, in step 39, the SAD calculated in step 38 is substituted for a variable prevSAD representing the value of SAD in the current macroblock when the prediction method for the previous frame is used.

続いて、ステップ40で、予め設定されたパラメータ scaleC,scaleDを利用して、
scaleC× minSAD> scaleD×prevSAD
という関係式が成立するのか否かを判断する。
Subsequently, in step 40, using the preset parameters scaleC and scaleD,
scaleC × minSAD> scaleD × prevSAD
It is determined whether or not the relational expression is established.

この判断処理により、
scaleC× minSAD> scaleD×prevSAD
という関係式が成立することを判断するときには、現マクロブロックで予測効率が最大の予測方法の予測効率と、1つ前のフレームの同じ位置のマクロブロックで符号化に利用された予測方法を用いる場合の予測効率とがほぼ同等であることを判断して、ステップ41に進んで、bestpredの値をprevpredの値に置き換えてから、bestpredの値を予測方法メモリ105に格納して、図4のフローチャートのステップ105の処理を終了する。
With this decision process,
scaleC × minSAD> scaleD × prevSAD
Is determined, the prediction efficiency of the prediction method having the maximum prediction efficiency in the current macroblock and the prediction method used for encoding in the macroblock at the same position in the previous frame are used. 4 is judged to be almost equal to the prediction efficiency in the case, the process proceeds to step 41, where the value of bestpred is replaced with the value of prevpred, and then the value of bestpred is stored in the prediction method memory 105. The process of step 105 in the flowchart ends.

一方、この関係式が成立しないことを判断するときには、ステップ40の処理を行わないことで、bestpredの値を変更することなく、そのままbestpredの値を予測方法メモリ105に格納して、図4のフローチャートのステップ105の処理を終了する。   On the other hand, when it is determined that this relational expression is not satisfied, the value of bestpred is stored in the prediction method memory 105 as it is without changing the value of bestpred by not performing the process of step 40. The process of step 105 in the flowchart ends.

このようにして、フレーム内予測部10は、図4のフローチャートのステップ102で、上述したprevpredの指す予測方法が予測方法候補選択部20から与えられた予測方法の候補に含まれていないことを判断するときには、ステップ105に進んで、この図5のフローチャートを実行することで、現マクロブロックについての予測方法を決定するのである。   In this manner, the intraframe prediction unit 10 confirms that the prediction method indicated by prevpred described above is not included in the prediction method candidates given from the prediction method candidate selection unit 20 in step 102 of the flowchart of FIG. 4. When making the determination, the process proceeds to step 105, and the flowchart of FIG. 5 is executed to determine the prediction method for the current macroblock.

そして、フレーム内予測部10は、現マクロブロックについての予測方法を決定すると、上述したように、図4のフローチャートのステップ106で、その実行結果により値の代入されたbestpredの指す予測方法を用いて現マクロブロックを符号化することを指示し、これを受けて、図示しないイントラ符号化部は、bestpredの指す予測方法を用いて現マクロブロックの符号化を実行することになる。   Then, when the prediction method for the current macroblock is determined, the intraframe prediction unit 10 uses the prediction method indicated by the bestpred value substituted by the execution result in step 106 of the flowchart of FIG. 4 as described above. In response to this, the intra coding unit (not shown) performs coding of the current macroblock using the prediction method indicated by bestpred.

図示実施形態例に従って本発明を説明したが、本発明はこれに限定されるものではない。例えば、実施形態例では、予測方法が階層的な構造を持たないことで説明したが、本発明は予測方法が階層的な構造を持っている場合にも適用可能である。   Although the present invention has been described according to the illustrated embodiment, the present invention is not limited to this. For example, in the embodiment, it has been described that the prediction method does not have a hierarchical structure, but the present invention can also be applied when the prediction method has a hierarchical structure.

例えば、H.264のフレーム内予測は階層的である。具体的には、各マクロブロックでは4×4予測モードと16×16予測モードの2つの予測モードが利用可能であり(これは、マクロブロックの分割方法の意味で2つの予測方法があるととらえることができる)、各予測モードで垂直方向予測や水平方向予測などの予測方法が利用できる。このような場合にあって、例えば、前フレームでは16×16予測モードの平均値予測が利用され、現マクロブロックで予測効率が最大なのは4×4予測モードであった場合、本発明では4×4予測モードを利用したときの予測効率と16×16予測モードの平均値予測の予測効率とを比較して、現マクロブロックの予測方法を決定すれば良い。   For example, H.264 intra-frame prediction is hierarchical. Specifically, each macroblock can use two prediction modes, ie, a 4 × 4 prediction mode and a 16 × 16 prediction mode (this means that there are two prediction methods in terms of a macroblock division method). Prediction methods such as vertical prediction and horizontal prediction can be used in each prediction mode. In such a case, for example, when the average prediction of the 16 × 16 prediction mode is used in the previous frame and the prediction efficiency of the current macroblock is the maximum in the 4 × 4 prediction mode, in the present invention, the 4 × 4 prediction mode is used. The prediction efficiency of the current macroblock may be determined by comparing the prediction efficiency when the 4 prediction mode is used with the prediction efficiency of the average value prediction in the 16 × 16 prediction mode.

本発明の動画像符号化装置の一実施形態例である。It is an example of one Embodiment of the moving image encoder of this invention. フレーム内予測部の実行するフローチャートの一例である。It is an example of the flowchart which an intra prediction part performs. 本発明の動画像符号化装置の他の実施形態例である。It is another example of embodiment of the moving image encoder of this invention. フレーム内予測部の実行するフローチャートの一例である。It is an example of the flowchart which an intra prediction part performs. フレーム内予測部の実行するフローチャートの一例である。It is an example of the flowchart which an intra prediction part performs. 予測に利用する画素列の説明図である。It is explanatory drawing of the pixel row | line | column utilized for prediction.

符号の説明Explanation of symbols

1 動画像符号化装置
10 フレーム内予測部
101 画像情報入力部
102 仮予測方法設定部
103 予測方法評価部
104 前フレーム予測方法評価値設定部
105 予測方法メモリ
106 予測方法決定部
DESCRIPTION OF SYMBOLS 1 Moving image encoder 10 Intra-frame prediction part 101 Image information input part 102 Temporary prediction method setting part 103 Prediction method evaluation part 104 Previous frame prediction method evaluation value setting part 105 Prediction method memory 106 Prediction method determination part

Claims (16)

動画像をフレーム内予測によって符号化する動画像符号化方法であって、
現フレームの符号化対象ブロックで利用可能な予測方法のうち一つを選択して、それを仮の予測方法として設定する仮予測方法設定ステップと、
仮予測方法設定ステップで設定された予測方法の予測評価値と、現フレームの直前に符号化されたフレームにおいて符号化対象ブロックと同じ位置のブロックで利用された予測方法を用いる場合の予測評価値とに基づいて、現フレームの符号化対象ブロックで利用する予測方法を決定する予測方法決定ステップとを有することを、
特徴とする動画像符号化方法。
A moving image encoding method for encoding a moving image by intra-frame prediction,
A temporary prediction method setting step of selecting one of the prediction methods available in the current block encoding target block and setting it as a temporary prediction method;
Prediction evaluation value of the prediction method set in the temporary prediction method setting step, and prediction evaluation value when using the prediction method used in the block at the same position as the encoding target block in the frame encoded immediately before the current frame And a prediction method determination step for determining a prediction method to be used in the current block encoding target block,
A moving image encoding method as a feature.
請求項1に記載の動画像符号化方法において、
仮予測方法設定ステップでは、予測方法の予測評価値に基づいて、現フレームの符号化対象ブロックで利用可能な予測方法のうち一つを選択して、それを仮の予測方法として設定することを、
特徴とする動画像符号化方法。
The moving image encoding method according to claim 1,
In the temporary prediction method setting step, based on the prediction evaluation value of the prediction method, one of the prediction methods that can be used in the encoding target block of the current frame is selected and set as a temporary prediction method. ,
A moving image encoding method as a feature.
動画像をフレーム内予測によって符号化する動画像符号化方法であって、
現フレームの符号化対象ブロックで利用可能な予測方法の各々に関する予測評価値を算出する予測評価値算出ステップと、
予測評価値算出ステップで算出された予測評価値に基づいて、現フレームの符号化対象ブロックで利用可能な予測方法のうち一つを選択して、それを仮の予測方法として設定する仮予測方法設定ステップと、
現フレームの直前に符号化されたフレームにおいて符号化対象ブロックと同じ位置のブロックで利用された予測方法を用いる場合の予測評価値を、予測方法決定用の予測評価値として設定する前フレーム予測方法評価値設定ステップと、
仮予測方法設定ステップで設定された予測方法の予測評価値と、前フレーム予測方法評価値設定ステップで設定された予測評価値とに基づいて、現フレームの符号化対象ブロックで利用する予測方法を決定する予測方法決定ステップとを有することを、
特徴とする動画像符号化方法。
A moving image encoding method for encoding a moving image by intra-frame prediction,
A prediction evaluation value calculating step for calculating a prediction evaluation value for each of the prediction methods available in the current block encoding target block;
Based on the prediction evaluation value calculated in the prediction evaluation value calculation step, a temporary prediction method for selecting one of the prediction methods available in the current block encoding target block and setting it as a temporary prediction method Configuration steps;
Pre-frame prediction method for setting a prediction evaluation value when a prediction method used in a block at the same position as the encoding target block in a frame encoded immediately before the current frame is used as a prediction evaluation value for determining a prediction method An evaluation value setting step;
Based on the prediction evaluation value of the prediction method set in the provisional prediction method setting step and the prediction evaluation value set in the previous frame prediction method evaluation value setting step, the prediction method used in the current block encoding target block Having a prediction method determination step for determining,
A moving image encoding method as a feature.
請求項3に記載の動画像符号化方法において、
前フレーム予測方法評価値設定ステップでは、予測評価値算出ステップで、現フレームの直前に符号化されたフレームにおいて符号化対象ブロックと同じ位置のブロックで利用された予測方法を用いる場合の予測評価値が算出されている場合には、それを予測方法決定用の予測評価値として設定することを、
特徴とする動画像符号化方法。
In the moving image encoding method according to claim 3,
In the previous frame prediction method evaluation value setting step, in the prediction evaluation value calculation step, a prediction evaluation value in the case of using the prediction method used in the block at the same position as the encoding target block in the frame encoded immediately before the current frame Is calculated as the prediction evaluation value for determining the prediction method,
A moving image encoding method as a feature.
請求項3に記載の動画像符号化方法において、
前フレーム予測方法評価値設定ステップでは、予測評価値算出ステップで、現フレームの直前に符号化されたフレームにおいて符号化対象ブロックと同じ位置のブロックで利用された予測方法を用いる場合の予測評価値が算出されていない場合には、その予測評価値を算出して予測方法決定用の予測評価値として設定することを、
特徴とする動画像符号化方法。
In the moving image encoding method according to claim 3,
In the previous frame prediction method evaluation value setting step, in the prediction evaluation value calculation step, a prediction evaluation value in the case of using the prediction method used in the block at the same position as the encoding target block in the frame encoded immediately before the current frame If is not calculated, calculate the prediction evaluation value and set it as the prediction evaluation value for determining the prediction method.
A moving image encoding method as a feature.
請求項2ないし5のいずれか1項に記載の動画像符号化方法において、
仮予測方法設定ステップでは、最適な予測評価値を示す予測方法を仮の予測方法として設定することを、
特徴とする動画像符号化方法。
In the moving image encoding method according to any one of claims 2 to 5,
In the provisional prediction method setting step, setting a prediction method that shows the optimal prediction evaluation value as a temporary prediction method,
A moving image encoding method as a feature.
請求項1ないし6のいずれか1項に記載の動画像符号化方法において、
予測方法決定ステップでは、2つの予測方法の予測評価値の比に対する閾値処理に基づいて、現フレームの符号化対象ブロックで利用する予測方法を決定することを、
特徴とする動画像符号化方法。
In the moving image encoding method according to any one of claims 1 to 6,
In the prediction method determination step, determining a prediction method to be used in the current block encoding target block based on a threshold process for the ratio of the prediction evaluation values of the two prediction methods,
A moving image encoding method as a feature.
動画像をフレーム内予測によって符号化する動画像符号化装置であって、
現フレームの符号化対象ブロックで利用可能な予測方法のうち一つを選択して、それを仮の予測方法として設定する仮予測方法設定部と、
仮予測方法設定部で設定された予測方法の予測評価値と、現フレームの直前に符号化されたフレームにおいて符号化対象ブロックと同じ位置のブロックで利用された予測方法を用いる場合の予測評価値とに基づいて、現フレームの符号化対象ブロックで利用する予測方法を決定する予測方法決定部とを有することを、
特徴とする動画像符号化装置。
A video encoding device that encodes a video by intra-frame prediction,
A temporary prediction method setting unit that selects one of the prediction methods available in the current block encoding target block and sets it as a temporary prediction method;
Prediction evaluation value of the prediction method set in the temporary prediction method setting unit and prediction evaluation value when using the prediction method used in the block at the same position as the encoding target block in the frame encoded immediately before the current frame And a prediction method determination unit that determines a prediction method to be used in the current block encoding target block,
A moving image encoding device.
請求項8に記載の動画像符号化装置において、
仮予測方法設定部は、予測方法の予測評価値に基づいて、現フレームの符号化対象ブロックで利用可能な予測方法のうち一つを選択して、それを仮の予測方法として設定することを、
特徴とする動画像符号化装置。
The moving image encoding apparatus according to claim 8, wherein
The temporary prediction method setting unit selects one of the prediction methods available in the current block encoding target block based on the prediction evaluation value of the prediction method, and sets it as the temporary prediction method. ,
A moving image encoding device.
動画像をフレーム内予測によって符号化する動画像符号化装置であって、
現フレームの符号化対象ブロックで利用可能な予測方法の各々に関する予測評価値を算出する予測評価値算出部と、
予測評価値算出部で算出された予測評価値に基づいて、現フレームの符号化対象ブロックで利用可能な予測方法のうち一つを選択して、それを仮の予測方法として設定する仮予測方法設定部と、
現フレームの直前に符号化されたフレームにおいて符号化対象ブロックと同じ位置のブロックで利用された予測方法を用いる場合の予測評価値を、予測方法決定用の予測評価値として設定する前フレーム予測方法評価値設定部と、
仮予測方法設定部で設定された予測方法の予測評価値と、前フレーム予測方法評価値設定部で設定された予測評価値とに基づいて、現フレームの符号化対象ブロックで利用する予測方法を決定する予測方法決定部とを有することを、
特徴とする動画像符号化装置。
A video encoding device that encodes a video by intra-frame prediction,
A prediction evaluation value calculation unit that calculates a prediction evaluation value for each of the prediction methods available in the current block encoding target block;
Based on the prediction evaluation value calculated by the prediction evaluation value calculation unit, a temporary prediction method for selecting one of the prediction methods available in the current block encoding target block and setting it as a temporary prediction method A setting section;
Pre-frame prediction method for setting a prediction evaluation value when a prediction method used in a block at the same position as the encoding target block in a frame encoded immediately before the current frame is used as a prediction evaluation value for determining a prediction method An evaluation value setting unit;
Based on the prediction evaluation value of the prediction method set by the provisional prediction method setting unit and the prediction evaluation value set by the previous frame prediction method evaluation value setting unit, a prediction method used in the current block encoding target block Having a prediction method determination unit for determining,
A moving image encoding device.
請求項10に記載の動画像符号化装置において、
前フレーム予測方法評価値設定部は、予測評価値算出部で、現フレームの直前に符号化されたフレームにおいて符号化対象ブロックと同じ位置のブロックで利用された予測方法を用いる場合の予測評価値が算出されている場合には、それを予測方法決定用の予測評価値として設定することを、
特徴とする動画像符号化装置。
The moving image encoding device according to claim 10,
The previous frame prediction method evaluation value setting unit is a prediction evaluation value calculation unit, and a prediction evaluation value in the case of using a prediction method used in a block at the same position as the encoding target block in a frame encoded immediately before the current frame Is calculated as the prediction evaluation value for determining the prediction method,
A moving image encoding device.
請求項10に記載の動画像符号化装置において、
前フレーム予測方法評価値設定部は、予測評価値算出部で、現フレームの直前に符号化されたフレームにおいて符号化対象ブロックと同じ位置のブロックで利用された予測方法を用いる場合の予測評価値が算出されていない場合には、その予測評価値を算出して予測方法決定用の予測評価値として設定することを、
特徴とする動画像符号化装置。
The moving image encoding device according to claim 10,
The previous frame prediction method evaluation value setting unit is a prediction evaluation value calculation unit, and a prediction evaluation value in the case of using a prediction method used in a block at the same position as the encoding target block in a frame encoded immediately before the current frame If is not calculated, calculate the prediction evaluation value and set it as the prediction evaluation value for determining the prediction method.
A moving image encoding device.
請求項9ないし12のいずれか1項に記載の動画像符号化装置において、
仮予測方法設定部は、最適な予測評価値を示す予測方法を仮の予測方法として設定することを、
特徴とする動画像符号化装置。
The moving image encoding device according to any one of claims 9 to 12,
The provisional prediction method setting unit sets a prediction method indicating an optimal prediction evaluation value as a provisional prediction method,
A moving image encoding device.
請求項8ないし13のいずれか1項に記載の動画像符号化装置において、
予測方法決定部は、2つの予測方法の予測評価値の比に対する閾値処理に基づいて、現フレームの符号化対象ブロックで利用する予測方法を決定することを、
特徴とする動画像符号化装置。
The moving image encoding device according to any one of claims 8 to 13,
The prediction method determination unit determines the prediction method to be used in the current block encoding target block based on the threshold processing for the ratio of the prediction evaluation values of the two prediction methods.
A moving image encoding device.
請求項1ないし7のいずれか1項に記載の動画像符号化方法の実現に用いられる処理をコンピュータに実行させるための動画像符号化プログラム。   A moving picture coding program for causing a computer to execute processing used to realize the moving picture coding method according to claim 1. 請求項1ないし7のいずれか1項に記載の動画像符号化方法の実現に用いられる処理をコンピュータに実行させるための動画像符号化プログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium having recorded thereon a moving picture coding program for causing a computer to execute processing used to realize the moving picture coding method according to claim 1.
JP2004164144A 2004-06-02 2004-06-02 Moving picture coding method, moving picture coding apparatus, moving picture coding program, and computer-readable recording medium recording the program Expired - Fee Related JP4216769B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004164144A JP4216769B2 (en) 2004-06-02 2004-06-02 Moving picture coding method, moving picture coding apparatus, moving picture coding program, and computer-readable recording medium recording the program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004164144A JP4216769B2 (en) 2004-06-02 2004-06-02 Moving picture coding method, moving picture coding apparatus, moving picture coding program, and computer-readable recording medium recording the program

Publications (2)

Publication Number Publication Date
JP2005348008A true JP2005348008A (en) 2005-12-15
JP4216769B2 JP4216769B2 (en) 2009-01-28

Family

ID=35499983

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004164144A Expired - Fee Related JP4216769B2 (en) 2004-06-02 2004-06-02 Moving picture coding method, moving picture coding apparatus, moving picture coding program, and computer-readable recording medium recording the program

Country Status (1)

Country Link
JP (1) JP4216769B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006070787A1 (en) * 2004-12-28 2006-07-06 Nec Corporation Moving picture encoding method, device using the same, and computer program
JP2007235944A (en) * 2006-03-02 2007-09-13 Mitsubishi Electric Research Laboratories Inc Method and system for selecting modes for encoding macroblocks in sequence of frames of video
JP2007251923A (en) * 2006-02-15 2007-09-27 Mitsubishi Electric Corp Image encoding device and image coding method
JP2008177834A (en) * 2007-01-18 2008-07-31 Nippon Hoso Kyokai <Nhk> Coding device, and program
JP2008193501A (en) * 2007-02-06 2008-08-21 Canon Inc Image encoding device and image encoding method
JP2008219630A (en) * 2007-03-06 2008-09-18 Kddi Corp Dynamic image encoding device
JP2009177352A (en) * 2008-01-22 2009-08-06 Canon Inc Moving image encoder, its control method and computer program
JP2011510560A (en) * 2008-01-17 2011-03-31 トムソン ライセンシング Flicker measurement method
WO2013125171A1 (en) * 2012-02-20 2013-08-29 日本電気株式会社 Intra-prediction mode determination device, method, and program recording medium

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8325799B2 (en) 2004-12-28 2012-12-04 Nec Corporation Moving picture encoding method, device using the same, and computer program
JPWO2006070787A1 (en) * 2004-12-28 2008-08-07 日本電気株式会社 MOVING IMAGE ENCODING METHOD, DEVICE USING THE SAME, AND COMPUTER PROGRAM
WO2006070787A1 (en) * 2004-12-28 2006-07-06 Nec Corporation Moving picture encoding method, device using the same, and computer program
JP5234241B2 (en) * 2004-12-28 2013-07-10 日本電気株式会社 Moving picture encoding method, apparatus using the same, and computer program
JP2007251923A (en) * 2006-02-15 2007-09-27 Mitsubishi Electric Corp Image encoding device and image coding method
JP2007235944A (en) * 2006-03-02 2007-09-13 Mitsubishi Electric Research Laboratories Inc Method and system for selecting modes for encoding macroblocks in sequence of frames of video
JP2008177834A (en) * 2007-01-18 2008-07-31 Nippon Hoso Kyokai <Nhk> Coding device, and program
JP4628374B2 (en) * 2007-01-18 2011-02-09 日本放送協会 Encoding device and program
JP2008193501A (en) * 2007-02-06 2008-08-21 Canon Inc Image encoding device and image encoding method
JP2008219630A (en) * 2007-03-06 2008-09-18 Kddi Corp Dynamic image encoding device
JP2011510560A (en) * 2008-01-17 2011-03-31 トムソン ライセンシング Flicker measurement method
US8755613B2 (en) 2008-01-17 2014-06-17 Thomson Licensing Method for measuring flicker
JP2009177352A (en) * 2008-01-22 2009-08-06 Canon Inc Moving image encoder, its control method and computer program
WO2013125171A1 (en) * 2012-02-20 2013-08-29 日本電気株式会社 Intra-prediction mode determination device, method, and program recording medium
JPWO2013125171A1 (en) * 2012-02-20 2015-07-30 日本電気株式会社 Intra prediction mode determination device, intra prediction mode determination method, and intra prediction mode determination program

Also Published As

Publication number Publication date
JP4216769B2 (en) 2009-01-28

Similar Documents

Publication Publication Date Title
JP4898467B2 (en) Coding mode determination method and apparatus for variable block size motion prediction
US9451255B2 (en) Image encoding apparatus, image encoding method, image decoding apparatus, and image decoding method
KR101228109B1 (en) Motion prediction apparatus and method and image encoding apparatus and method employing the same
KR100739714B1 (en) Method and apparatus for intra prediction mode decision
JP5266342B2 (en) Video intra prediction method and apparatus
JP5897218B2 (en) Video encoding method and video encoding apparatus using this method
CN101888546B (en) A kind of method of estimation and device
EP0800677B1 (en) Method and device for selectively compressing video codec
JP2005348280A (en) Image encoding method, image encoding apparatus, image encoding program, and computer readable recording medium recorded with the program
JP2006180298A (en) Image encoding control method and its device
JP2007013298A (en) Image coding apparatus
JP4216769B2 (en) Moving picture coding method, moving picture coding apparatus, moving picture coding program, and computer-readable recording medium recording the program
US8964836B2 (en) Method and apparatus for spatial predictive encoding and/or decoding of video data
JP2001251627A (en) Coder, coding method and recording medium recorded with program
JPWO2006100946A1 (en) Image signal re-encoding device and image signal re-encoding method
CN113422959A (en) Video encoding and decoding method and device, electronic equipment and storage medium
JP4257789B2 (en) Video encoding device
JP4130617B2 (en) Moving picture coding method and moving picture coding apparatus
KR100771640B1 (en) H.264 encoder having a fast mode determinning function
CN116055716A (en) Method, system and storage medium for determining coding mode based on temporal and spatial complexity
JP3812808B2 (en) Skip region detection type moving image encoding apparatus and recording medium
JP5295089B2 (en) Image encoding device
JP2005184241A (en) System for determining moving picture interframe mode
JP4676513B2 (en) Encoded picture type determination method, apparatus, program thereof, and recording medium thereof
JP2008301270A (en) Moving image encoding device and moving image encoding method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060719

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080718

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080729

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080924

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080924

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20081104

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20081106

R150 Certificate of patent or registration of utility model

Ref document number: 4216769

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111114

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111114

Year of fee payment: 3

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: R3D02

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111114

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121114

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121114

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131114

Year of fee payment: 5

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees