JP2011151655A - Apparatus, method and program for encoding of moving picture - Google Patents
Apparatus, method and program for encoding of moving picture Download PDFInfo
- Publication number
- JP2011151655A JP2011151655A JP2010012089A JP2010012089A JP2011151655A JP 2011151655 A JP2011151655 A JP 2011151655A JP 2010012089 A JP2010012089 A JP 2010012089A JP 2010012089 A JP2010012089 A JP 2010012089A JP 2011151655 A JP2011151655 A JP 2011151655A
- Authority
- JP
- Japan
- Prior art keywords
- image
- calculation
- unit
- encoded
- intra prediction
- 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
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
本発明は、フレーム内予測符号化を行う動画像符号化装置、動画像符号化方法及び動画像符号化プログラムに関する。 The present invention relates to a moving picture coding apparatus, a moving picture coding method, and a moving picture coding program that perform intra-frame predictive coding.
デジタル動画像の情報圧縮を目的とする動画像符号化は、膨大なデジタル動画像データを狭帯域の通信回線で伝送する必要性から発展し、現在ではMPEGを始め種々の動画像の符号化方式が提案されている。動画像の符号化は予測・変換処理を行った後、量子化レベルの縮退などを行って信号に含まれる時間的・空間的な冗長度を除去し、生成された符号化情報の長さをできるだけ短くするためにエントロピー符号化を行って圧縮する。ここで動画像の予測を行っているが、一般に、動画像信号には空間方向・時間方向とも近傍画素間に高い相関がある。即ち、画素間で予測を行うことにより符号化すべき情報量を削減することができる。予測には符号化済の画像を用いて時間方向の予測を行うインター予測と、同一画像上の近傍画素を用いて予測を行うイントラ予測がある。 Moving picture encoding for the purpose of information compression of digital moving pictures has developed from the necessity of transmitting enormous amounts of digital moving picture data over a narrowband communication line, and is currently encoding various moving pictures such as MPEG. Has been proposed. For video encoding, after performing prediction / conversion processing, the temporal and spatial redundancy included in the signal is removed by reducing the quantization level, and the length of the generated encoding information is reduced. In order to make it as short as possible, it is compressed by entropy coding. Here, a moving image is predicted. Generally, a moving image signal has a high correlation between neighboring pixels in both the spatial direction and the temporal direction. That is, the amount of information to be encoded can be reduced by performing prediction between pixels. Prediction includes inter prediction that performs prediction in the temporal direction using an encoded image and intra prediction that performs prediction using neighboring pixels on the same image.
動画像の符号化方式のひとつH.246におけるイントラ予測では、16×16画素で構成されるマクロブロック(以下、MB)に対して、16×16画素ブロックを予測対象とする16×16予測が4モード、MBを4分割した8×8画素ブロックを予測対象とする8×8予測が9モード、MBを16分割した4×4画素ブロックを予測対象とする4×4予測が9モード、さらに色差信号に対して4モードのイントラ予測モードが定義されている。符号化装置では効率的な符号化を行うためにこれらイントラモードにおける最適と判定したモードで符号化を行う(例えば、特許文献1、2参照)。 One of the video encoding methods. In the intra prediction in H.246, for a macroblock (hereinafter referred to as MB) composed of 16 × 16 pixels, 16 × 16 prediction using a 16 × 16 pixel block as a prediction target is four modes, and MB is divided into four 8 × 8 × 8 prediction with 8 pixel blocks as prediction targets, 9 modes, 4 × 4 prediction with 4 × 4 pixel blocks divided into 16 MBs as prediction targets, 9 modes, and 4 modes for color difference signals A mode is defined. The encoding device performs encoding in a mode determined to be optimal in the intra mode in order to perform efficient encoding (see, for example, Patent Documents 1 and 2).
一方、符号化する動画像には標準テレビ解像度であるSDTVやハイビジョン解像度であるHDTVなどがある。動画像符号化装置は、これらの異なるサイズの動画像に対応する構造や制御を行う。また、H.264における周波数変換においては、MB内の8×8画素または4×4画素を対象に処理を行うが、これら異なるサイズへ対応する構造や制御も行う(例えば、特許文献3、4参照)。
On the other hand, moving images to be encoded include standard television resolution SDTV and high-definition HDTV. The moving image encoding apparatus performs structure and control corresponding to moving images of different sizes. H. In the frequency conversion in H.264, processing is performed on 8 × 8 pixels or 4 × 4 pixels in the MB, but structures and controls corresponding to these different sizes are also performed (see, for example,
しかしながら、上記のようなイントラ予測の予測モード判定を備える従来の動画像符号化装置において、マクロブロックサイズは固定であり、一連の符号化処理においてマクロブロックサイズとして複数のサイズ、例えば、16×16画素や32×32画素、64×64画素といったマクロブロックサイズに切り替えながら符号化処理する場合に、一つの装置構成で対応できなかった。このため、今後のHDTVを越える高解像度の動画像符号化を行う場合の課題となり、各マクロブロックサイズに対応する複数の構成を持たなくてはならず回路規模やメモリ容量が多くなる問題があった。 However, in the conventional moving picture coding apparatus having the intra prediction mode determination as described above, the macroblock size is fixed, and a plurality of sizes, for example, 16 × 16, are used as macroblock sizes in a series of coding processes. When encoding processing is performed while switching to a macroblock size such as pixels, 32 × 32 pixels, or 64 × 64 pixels, it cannot be handled by a single device configuration. For this reason, it becomes a problem when performing high-resolution moving picture encoding beyond HDTV in the future, and there is a problem that a circuit size and a memory capacity increase due to having to have a plurality of configurations corresponding to each macroblock size. It was.
本発明は上記課題を解決するためになされたものであり、一つの構成で複数のマクロブロックサイズに対応したイントラ予測モードの判定を実現し、回路規模やメモリ容量を削減することのできる動画像符号化装置、動画像符号化方法及び動画像符号化プログラムを得ることを目的とする。 The present invention has been made to solve the above-described problems, and realizes a determination of an intra prediction mode corresponding to a plurality of macroblock sizes with a single configuration, and can reduce a circuit scale and a memory capacity. It is an object to obtain an encoding device, a moving image encoding method, and a moving image encoding program.
この発明に係る動画像符号化装置は、符号化マクロブロックサイズ指示を受け取った場合、指示された符号化マクロブロックサイズと演算開始指示を出力し、演算完了フラグを受け取った場合は、符号化マクロブロックサイズと予測モード判定指示を出力するイントラ予測制御部と、田の字型に隣接した符号化画像を保持する4のn(nは1以上の整数)乗個の画像保持部と、符号化画像の上側の画素を保持する横ラインバッファ部と、符号化画像の左側の画素を保持する縦ラインバッファ部と、符号化画像内の水平画素を保持する横ライン一時バッファ部と、符号化画像内の垂直画素を保持する縦ライン一時バッファ部と、4のn乗個の画像保持部に対応して設けられ、イントラ予測演算結果を保持する4のn乗個の演算結果保持部と、イントラ予測制御部より符号化マクロブロックサイズと演算開始指示を受け取り、横ラインバッファ部および縦ラインバッファ部、または、横ライン一時バッファ部および縦ライン一時バッファ部から画素を読み出してフィルタ処理して予測画像を生成すると共に、画像保持部から符号化画像を読み取って予測画像との相関を演算し、符号化画像の位置に対応した演算結果保持部にイントラ予測演算結果を出力し、かつ、読み出した符号化画像の一番下の画像を横ラインバッファ部または横ライン一時バッファ部へ、一番右の画像を縦ラインバッファ部または縦ライン一時バッファ部へ書き込むイントラ予測演算部と、イントラ予測制御部より符号化マクロブロックサイズと予測モード判定指示を受け取った場合、演算結果保持部から演算結果を読み出して符号化マクロブロックサイズに従って予測モードを判定し結果を出力する予測モード判定部とを備えたものである。 The moving picture encoding apparatus according to the present invention outputs an instructed encoding macroblock size and an operation start instruction when receiving an encoding macroblock size instruction, and receives an operation completion flag when receiving an operation completion flag. An intra prediction control unit that outputs a block size and a prediction mode determination instruction, 4 n (n is an integer equal to or greater than 1) image holding units that hold encoded images adjacent to a square shape, and encoding A horizontal line buffer unit that holds pixels on the upper side of the image, a vertical line buffer unit that holds pixels on the left side of the encoded image, a horizontal line temporary buffer unit that holds horizontal pixels in the encoded image, and an encoded image A vertical line temporary buffer unit that holds vertical pixels in the image data, a 4 n power storage unit that holds the intra prediction calculation result, and is provided corresponding to 4 n image storage units. Receives the encoding macroblock size and calculation start instruction from the tiger prediction control unit, reads out pixels from the horizontal line buffer unit and vertical line buffer unit, or horizontal line temporary buffer unit and vertical line temporary buffer unit, and performs filter processing to predict The image is generated, the encoded image is read from the image holding unit, the correlation with the predicted image is calculated, the intra prediction calculation result is output to the calculation result holding unit corresponding to the position of the encoded image, and read out An intra prediction calculation unit that writes the bottom image of the encoded image to the horizontal line buffer unit or horizontal line temporary buffer unit, and the rightmost image to the vertical line buffer unit or vertical line temporary buffer unit, and an intra prediction control unit When the encoding macroblock size and prediction mode determination instruction are received from the calculation result holding unit Is obtained by a prediction mode determination section for outputting a judgment result prediction mode according to the coding macroblock size is read.
この発明の動画像符号化装置は、イントラ予測モード判定時に使用する周辺画素用のバッファ部を複数備え、マクロブロックサイズに応じたバッファ部を用いて制御を行うようにしたので、一つの構成で複数のマクロブロックサイズに対応したイントラ予測モードの判定を実現し、回路規模やメモリ容量を削減することができる。 Since the moving picture encoding apparatus of the present invention includes a plurality of peripheral pixel buffer units used at the time of intra prediction mode determination, and performs control using a buffer unit corresponding to the macroblock size, it has one configuration. Intra prediction mode determination corresponding to a plurality of macroblock sizes can be realized, and the circuit scale and memory capacity can be reduced.
実施の形態1.
図1はこの発明の実施の形態1による動画像符号化装置を示す構成図である。
図1において、動画像符号化装置は、イントラ予測制御部101、符号化A画像保持部102a、符号化B画像保持部102b、符号化C画像保持部102c、符号化D画像保持部102d、横ラインバッファ部103、縦ラインバッファ部104、横ライン一時バッファ部105、縦ライン一時バッファ部106、イントラ予測演算部107、演算結果A保持部108a、演算結果B保持部108b、演算結果C保持部108c、演算結果D保持部108d、予測モード判定部109を備えている。
Embodiment 1 FIG.
1 is a block diagram showing a moving picture coding apparatus according to Embodiment 1 of the present invention.
In FIG. 1, the moving image encoding apparatus includes an intra
イントラ予測制御部101は、符号化マクロブロックサイズ指示を受け取りイントラ予測演算部107へ符号化マクロブロックサイズと演算開始指示を出力し、イントラ予測演算部107から演算完了フラグを受け取った場合、予測モード判定部109へ符号化マクロブロックサイズと予測モード判定指示を出力する。符号化A画像保持部102aは、田の字型に隣接した符号化画像の左上の画像を保持する符号化画像保持部、符号化B画像保持部102bは、田の字型に隣接した符号化画像の右上の画像を保持する符号化画像保持部、符号化C画像保持部102cは、田の字型に隣接した符号化画像の左下の画像を保持する符号化画像保持部、符号化D画像保持部102dは、田の字型に隣接した符号化画像の右下の画像を保持する符号化画像保持部である。
The intra
横ラインバッファ部103は、符号化画像の上側の画素を保持するバッファ部であり、縦ラインバッファ部104は、符号化画像の左側の画素を保持するバッファ部である。また、横ライン一時バッファ部105は、符号化画像内の水平画素を保持するバッファ部であり、縦ライン一時バッファ部106は、符号化画像内の垂直画素を保持するバッファ部である。
The horizontal
イントラ予測演算部107は、イントラ予測制御部101から符号化マクロブロックサイズと演算開始指示を受け取り、横ラインバッファ部103および縦ラインバッファ部104もしくは横ライン一時バッファ部105および縦ライン一時バッファ部106から画素を読み出してフィルタ処理を行って予測画像を生成すると共に、符号化A画像保持部102a〜符号化D画像保持部102dから符号化画像を読み取って予測画像との相関を演算し、符号化画像の位置に対応した演算結果A保持部108a〜演算結果D保持部108dに演算結果を出力し、かつ、読み出した符号化画像の一番下の画像を横ラインバッファ部103または横ライン一時バッファ部105へ、一番右の画像を縦ラインバッファ部104または縦ライン一時バッファ部106へ書き込む演算部である。
The intra
演算結果A保持部108aは、符号化A画像のイントラ予測演算結果を保持する演算結果保持部、演算結果B保持部108bは、符号化B画像のイントラ予測演算結果を保持する演算結果保持部、演算結果C保持部108cは、符号化C画像のイントラ予測演算結果を保持する演算結果保持部、演算結果D保持部108dは、符号化D画像のイントラ予測演算結果を保持する演算結果保持部である。予測モード判定部109は、イントラ予測制御部101から符号化マクロブロックサイズと予測モード判定指示を受け取り、演算結果A保持部108a〜演算結果D保持部108dから演算結果を読み出して符号化マクロブロックサイズに従って予測モードを判定し結果を出力する判定部である。
The calculation result A
本発明の動画像符号化装置はコンピュータを用いて実現され、上記イントラ予測制御部101、イントラ予測演算部107および予測モード判定部109は、それぞれの機能に対応したソフトウェアとこれらソフトウェアを実行するためのCPUやメモリといったハードウェアから構成されている。あるいは、これら機能部を専用のハードウェアで構成してもよい。
The moving image coding apparatus of the present invention is realized by using a computer, and the intra
図2は、符号化フレームにおける符号化画像の説明図である。
図中の符号化A画像2a,符号化B画像2b,符号化C画像2c,符号化D画像2dは、符号化フレーム1内に位置する田の字型に隣接する符号化画像を示し、横ライン3は横ラインバッファ部103に保持されるライン、縦ライン4は、縦ラインバッファ部104に保持されるラインである。このような符号化フレーム1において、例えばHDTVの場合、1920×1080画素のフレームがマクロブロックで分割されている場合、その一部が符号化A画像2a、符号化B画像2b、符号化C画像2c、符号化D画像2dであり、一つ当たりの符号化画像は水平画素数16画素、垂直画素数16画素の画像を保持する。従って、マクロブロックサイズが16×16画素であれば、四つ分のマクロブロックが保持されていることとなり、マクロブロックサイズが32×32画素であれば四つで一つのマクロブロックが保持されることとなる。また、64×64画素以上であっても同様に適用可能である。即ち、田の字型に隣接する4のn(nは1以上の整数)乗個の画像保持部であれば、どのようなマクロブロックサイズにも適用できる。そして、田の字に隣接する符号化画像の上側の画素が横ライン3であり、左側の画素が縦ライン4である。
FIG. 2 is an explanatory diagram of an encoded image in an encoded frame.
The encoded A
図3は、実施の形態1におけるイントラ予測演算部107の内部を示す構成図である。
イントラ予測演算部107は、イントラ予測演算制御部110、予測画生成フィルタ111、差分絶対値和演算部112を備えている。イントラ予測演算制御部110は、イントラ予測制御部101から指定される符号化マクロブックサイズに従って予測モード毎のイントラ予測演算の制御を行う制御部である。予測画生成フィルタ111は、イントラ予測演算制御部110からの指示に従い横ラインバッファ部103、縦ラインバッファ部104、横ライン一時バッファ部105、縦ライン一時バッファ部106から画素データを読み込み、指示された予測モードの予測画像を生成するフィルタである。差分絶対値和演算部112は、イントラ予測演算制御部110からの指示に従い、符号化A画像保持部102a〜符号化D画像保持部102dから、符号化A画像2a〜符号化D画像2dを読み出し、予測画生成フィルタ111で生成した予測画像と符号化画像との差分絶対値和を演算し評価値を出力すると共に符号化画像の一部を横ラインバッファ部103、縦ラインバッファ部104、横ライン一時バッファ部105、縦ライン一時バッファ部106に書き込む演算部である。
FIG. 3 is a configuration diagram showing the inside of the intra
The intra
次に、実施の形態1の動作について説明する。
先ず、符号化マクロブロックサイズ指示が16×16であった場合、符号化A/B/C/D画像2a,2b,2c,2dそれぞれが個別のマクロブロックとなる。イントラ予測制御部101からマクロブロックサイズ指示と演算開始指示を受け取ったイントラ予測演算部107は、符号化A画像保持部102aから符号化画像を読み出し、横ラインバッファ部103および縦ラインバッファ部104から周辺画素の横ライン3および縦ライン4を読み出して予測モードに応じたフィルタ処理にて予測画像を生成する。符号化画像と予測画像の差分絶対値和とその時の予測モードを演算結果A保持部108aへ出力する。
Next, the operation of the first embodiment will be described.
First, when the encoded macroblock size instruction is 16 × 16, each of the encoded A / B / C /
図4は、イントラ予測演算部107で行われるフィルタ処理による予測画生成方法と符号化画像と予測画との例えば差分絶対値和などの評価値演算方法の一部を示したものである。
予測モードによって横ライン3aの画素のみを使うか縦ライン4aの画素のみを使うか、それとも両方の画素を使ってフィルタ処理をするかが異なる。また図4ではフィルタ処理用の周辺画素として横ライン3aと縦ライン4aの1ライン分しか示していないが、フィルタ処理には横ライン3bや縦ライン4bをも使用する場合がある。そのフィルタ処理で生成された予測画と符号化画像の画素とを1画素ずつ差分絶対値を取り、全ての符号化画像との差分絶対を累算して評価値とする。符号化A画像2aの全予測モードに対する評価値の算出完了後、イントラ予測演算部107は、符号化A画像2aの下端の画素を出力し、横ラインバッファ部103における左側部分に書き込み、右端の画素を出力して縦ラインバッファ部1gにおける上側部分に書き込む。同様に符号化B画像2bにも実施し、全予測モードと評価値を算出して演算結果B保持部108bへ出力後、符号化B画像2bの下端の画素を出力し、横ラインバッファ部103の右側部分に書き込み、右端の画素を出力して縦ラインバッファ部104の上側部分に書き込む。同様の処理を符号化C画像2cと符号化D画像2dに対しても行う。即ち、符号化マクロブロックサイズが16×16であった場合、それぞれの符号化画像の演算完了後、横ラインバッファ部103と縦ラインバッファ部104の内容が書き換わる動作となる。
FIG. 4 shows a part of a prediction image generation method by filter processing performed in the intra
Depending on the prediction mode, only the pixels of the horizontal line 3a, only the pixels of the vertical line 4a are used, or whether both pixels are used for filtering. In FIG. 4, only one horizontal line 3a and vertical line 4a are shown as peripheral pixels for filter processing, but horizontal line 3b and vertical line 4b may also be used for filter processing. The absolute value of the difference between the predicted image generated by the filter processing and the pixel of the encoded image is taken pixel by pixel, and the absolute difference from all the encoded images is accumulated to obtain an evaluation value. After completing the calculation of the evaluation values for all prediction modes of the encoded A
次に符号化マクロブロックサイズが32×32であった場合、符号化A/B/C/D画像2a,2b,2c,2dで一つのマクロブロックとなる。符号化A画像2aの全予測モードの評価値を算出し、演算結果A保持部108aへ出力後、イントラ予測演算部107は符号化A画像2aの下端の画素を出力し、横ライン一時バッファ部105の左側部分へ書き込み、右端の画素を出力して縦ライン一時バッファ部106へ書き込む。次に符号化B画像2bの予測画生成時、予測モードによって横ラインバッファ部103と縦ラインバッファ部104もしくは縦ライン一時バッファ部106から画素を読み出し予測画像を生成する。符号化B画像2bの全予測モードの評価値を算出し、演算結果B保持部108bへ出力後、符号化B画像2bの下端の画素を出力し、横ライン一時バッファ部105の右側部分へ書き込み、右端の画素を出力して縦ラインバッファ部104へ書き込む。次に、符号化C画像2cの予測画生成時、予測モードによって横ラインバッファ部103もしくは横ライン一時バッファ部105と縦ラインバッファ部104から画素を読み出し予測画像を生成する。符号化C画像2cの全予測モードの評価値を算出し演算結果C保持部108cへ出力後、符号化C画像2cの下端の画素を出力し横ラインバッファ部103の左側部分へ書き込み、右端の画素を出力して縦ライン一時バッファ部106へ書き込む。最後に、符号化D画像2dの予測画生成時、予測モードによって横ラインバッファ部103もしくは横ライン一時バッファ部105、縦ラインバッファ部104もしくは縦ライン一時バッファ部106から画素を読み出し予測画像を生成する。
Next, when the encoded macroblock size is 32 × 32, the encoded A / B / C /
図5は、符号化D画像2dの予測画生成時に使用する周辺画素用のバッファの関係を示したものである。符号化D画像2dの全予測モードの評価値を算出し、演算結果D保持部108dへ出力後、符号化D画像2dの下端の画素を出力し、横ラインバッファ部103の右側部分へ書き込み、右端の画素を出力して縦ラインバッファ部104へ書き込む。即ち、マクロブロック内に符号化画像が隣接する場合は横ライン一時バッファ部105と縦ライン一時バッファ部106を書き換え、隣接しない場合は横ラインバッファ部103と縦ラインバッファ部104を書き換える動作となる。図6は符号化マクロブロックサイズに対して各符号化A/B/C/D画像2a,2b,2c,2dが読み込むバッファと書き込むバッファの関係を示したものである。
FIG. 5 shows the relationship of the peripheral pixel buffers used when generating the predicted image of the encoded
符号化マクロブロックサイズに従った全予測モード毎の評価値の算出が完了したら、イントラ予測制御部101は、予測モード判定部109へ予測モード判定指示を出力する。符号化マクロブロックサイズが16×16であった場合、予測モード判定部109は、先ず演算結果A保持部108aから符号化A画像2aに対する全予測モードと評価値を読み込み、例えば一番評価値の小さいものを符号化A画像2aのイントラ予測モードとする。同様に符号化B/C/D画像2b,2c,2dに対する全予測モードと評価値を演算結果B/C/D保持部108b,108c.108dから読み出し、イントラ予測モードの判定を行っていく。即ち、符号化画像サイズが16×16で合った場合、それぞれの符号化画像2a,2b,2c,2dに対して個別にイントラ予測モードの判定を行うことになる。
When the calculation of evaluation values for all prediction modes according to the encoded macroblock size is completed, the intra
次に、符号化マクロブロックサイズが32×32であった場合、予測モード判定部109は、A/B/C/D演算結果保持部108a,108b,108c,108dから全予測モードとそれに対する評価値を読み出し、ある予測モードではマクロブロック単位の評価値とすべく四つの評価値を加算して一つの予測モードの評価値として扱い、また、ある予測モードでは符号化A/B/C/D画像2a,2b,2c,2dそれぞれ個別の予測モードとして評価値を扱う。図7の左側がマクロブロック単位のモードであり、右側が個別の予測モードである。予測モード判定部109は、イントラ予測モード判定結果としてブロックサイズおよび各ブロックの予測モードを出力する。
Next, when the encoding macroblock size is 32 × 32, the prediction
以上のように、実施の形態1の動画像符号化装置によれば、符号化マクロブロックサイズ指示を受け取った場合、指示された符号化マクロブロックサイズと演算開始指示を出力し、演算完了フラグを受け取った場合は、符号化マクロブロックサイズと予測モード判定指示を出力するイントラ予測制御部101と、田の字型に隣接した符号化画像を保持する4のn(nは1以上の整数)乗個の画像保持部102a〜102dと、符号化画像の上側の画素を保持する横ラインバッファ部103と、符号化画像の左側の画素を保持する縦ラインバッファ部104と、符号化画像内の水平画素を保持する横ライン一時バッファ部105と、符号化画像内の垂直画素を保持する縦ライン一時バッファ部106と、4のn乗個の画像保持部102a〜102dに対応して設けられ、イントラ予測演算結果を保持する4のn乗個の演算結果保持部108a〜108dと、イントラ予測制御部101より符号化マクロブロックサイズと演算開始指示を受け取り、横ラインバッファ部103および縦ラインバッファ部104、または、横ライン一時バッファ部105および縦ライン一時バッファ部106から画素を読み出してフィルタ処理して予測画像を生成すると共に、画像保持部102a〜102dから符号化画像を読み取って予測画像との相関を演算し、符号化画像の位置に対応した演算結果保持部108a〜108dにイントラ予測演算結果を出力し、かつ、読み出した符号化画像の一番下の画像を横ラインバッファ部103または横ライン一時バッファ部105へ、一番右の画像を縦ラインバッファ部104または縦ライン一時バッファ部106へ書き込むイントラ予測演算部107と、イントラ予測制御部101より符号化マクロブロックサイズと予測モード判定指示を受け取った場合、演算結果保持部108a〜108dから演算結果を読み出して符号化マクロブロックサイズに従って予測モードを判定し結果を出力する予測モード判定部109とを備えたので、符号化マクロブロックサイズによって予測画生成に使用する周辺画素を切り替えることができ、予測モード判定時の判定方法を制御することができるので、符号化マクロブロックサイズが異なるイントラ予測モード判定を一つの構成で実現することができ、従って、回路規模とメモリ容量を削減することができる。
As described above, according to the moving picture encoding apparatus of the first embodiment, when the encoded macroblock size instruction is received, the specified encoded macroblock size and the calculation start instruction are output, and the calculation completion flag is set. If received, the
また、実施の形態1の動画像符号化方法によれば、田の字型に隣接した符号化画像を保持する4のn(nは1以上の整数)乗個の画像保持部102a〜102dと、符号化画像の上側の画素を保持する横ラインバッファ部103と、符号化画像の左側の画素を保持する縦ラインバッファ部104と、符号化画像内の水平画素を保持する横ライン一時バッファ部105と、符号化画像内の垂直画素を保持する縦ライン一時バッファ部106と、4のn乗個の画像保持部102a〜102dに対応して設けられ、イントラ予測演算結果を保持する4のn乗個の演算結果保持部108a〜108dとを備えた動画像符号化装置を用いて動画像符号化を行う動画像符号化方法であって、符号化マクロブロックサイズ指示を受け取った場合、指示された符号化マクロブロックサイズと演算開始指示を出力し、演算完了フラグを受け取った場合は、符号化マクロブロックサイズと予測モード判定指示を出力するイントラ予測制御ステップと、符号化マクロブロックサイズと演算開始指示を受け取り、横ラインバッファ部103および縦ラインバッファ部104、または、横ライン一時バッファ部105および縦ライン一時バッファ部106から画素を読み出してフィルタ処理して予測画像を生成すると共に、画像保持部102a〜102dから符号化画像を読み取って予測画像との相関を演算し、符号化画像の位置に対応した演算結果保持部108a〜108dにイントラ予測演算結果を出力し、かつ、読み出した符号化画像の一番下の画像を横ラインバッファ部103または横ライン一時バッファ部105へ、一番右の画像を縦ラインバッファ部104または縦ライン一時バッファ部106へ書き込むイントラ予測演算ステップと、符号化マクロブロックサイズと予測モード判定指示を受け取った場合、演算結果保持部108a〜108dから演算結果を読み出して符号化マクロブロックサイズに従って予測モードを判定し結果を出力する予測モード判定ステップとを備えたので、回路規模とメモリ容量を削減することのできる動画像符号化装置を実現することができる。
In addition, according to the moving picture coding method of the first embodiment, 4 n (n is an integer of 1 or more)
また、実施の形態1の動画像符号化プログラムによれば、田の字型に隣接した符号化画像を保持する4のn(nは1以上の整数)乗個の画像保持部102a〜102dと、符号化画像の上側の画素を保持する横ラインバッファ部103と、符号化画像の左側の画素を保持する縦ラインバッファ部104と、符号化画像内の水平画素を保持する横ライン一時バッファ部105と、符号化画像内の垂直画素を保持する縦ライン一時バッファ部106と、4のn乗個の画像保持部102a〜102dに対応して設けられ、イントラ予測演算結果を保持する4のn乗個の演算結果保持部108a〜108dとを備えた動画像符号化装置をコンピュータを用いて実現する動画像符号化プログラムであって、コンピュータを、符号化マクロブロックサイズ指示を受け取った場合、指示された符号化マクロブロックサイズと演算開始指示を出力し、演算完了フラグを受け取った場合は、符号化マクロブロックサイズと予測モード判定指示を出力するイントラ予測制御部101と、イントラ予測制御部101より符号化マクロブロックサイズと演算開始指示を受け取り、横ラインバッファ部103および縦ラインバッファ部104、または、横ライン一時バッファ部105および縦ライン一時バッファ部106から画素を読み出してフィルタ処理して予測画像を生成すると共に、画像保持部102a〜102dから符号化画像を読み取って予測画像との相関を演算し、符号化画像の位置に対応した演算結果保持部108a〜108dにイントラ予測演算結果を出力し、かつ、読み出した符号化画像の一番下の画像を横ラインバッファ部103または横ライン一時バッファ部105へ、一番右の画像を縦ラインバッファ部104または縦ライン一時バッファ部106へ書き込むイントラ予測演算部107と、イントラ予測制御部101より符号化マクロブロックサイズと予測モード判定指示を受け取った場合、演算結果保持部108a〜108dから演算結果を読み出して符号化マクロブロックサイズに従って予測モードを判定し結果を出力する予測モード判定部109として機能させるようにしたので、回路規模とメモリ容量を削減することのできる動画像符号化装置をコンピュータを用いて実現することができる。
Further, according to the moving image encoding program of the first embodiment, 4 n (n is an integer equal to or greater than 1)
実施の形態2.
実施の形態1では、全ての予測モードに対する評価値を算出する例を説明したが、次に、予測モードを制限した場合を実施の形態2として説明する。
図8は、実施の形態2の動画像符号化装置を示す構成図である。
図8において、イントラ予測制御部201は、実施の形態1におけるイントラ予測制御部101の機能に加えて、予測モード演算制限指示を受け取った場合に、この予測モード演算制限指示をイントラ予測演算部202へ出力するよう構成されている。また、イントラ予測演算部202は、イントラ予測制御部201から受け取った予測モード演算制限指示に基づいて、制限された予測モードの予測画生成および評価値の演算を行わないよう構成されている。それ以外の構成は実施の形態1と同様であるため、対応する部分に同一符号を付してその説明を省略する。
In the first embodiment, the example in which the evaluation values for all prediction modes are calculated has been described. Next, a case where the prediction mode is limited will be described as a second embodiment.
FIG. 8 is a configuration diagram illustrating the moving picture encoding apparatus according to the second embodiment.
In FIG. 8, in addition to the function of the intra
次に、実施の形態2の動作について説明する。
イントラ予測制御部201から予測モード演算制限指示とマクロブロックサイズ指示と演算開始指示を受け取ったイントラ予測演算部202は、実施の形態1と同様に横ラインバッファ部103、縦ラインバッファ部104、横ライン一時バッファ部105、縦ライン一時バッファ部106から周辺画素を読み出して予測画を生成し、符号化A/B/C/D画像保持部102a、102b,102c,102dから符号化画像を読み出し予測モード毎の予測画を生成して評価値を算出する。この時、予測モード演算制限指示により制限された予測モードの予測画生成と評価は算出せずに、制限された予測モードの評価値として最大値を演算結果A/B/C/D保持部108a,108b.108c,108dへ出力する。これ以外の動作は実施の形態1と同様であるため、その説明は省略する。
Next, the operation of the second embodiment will be described.
The
以上のように、実施の形態2の動画像符号化装置によれば、イントラ予測制御部201は、予測モード演算制限指示を受け取った場合は、予測モード演算制限指示をイントラ予測演算部202へ出力し、イントラ予測演算部202は、受け取った予測モード演算制限指示に基づいて、制限された予測モードの予測画生成および相関の演算を除外してイントラ予測演算を行うようにしたので、予測モード演算制限指示により制限された予測モードの予測画生成と評価値演算を行わないため、演算量を削減することができる。
As described above, according to the video encoding device of
実施の形態3.
実施の形態1、2では予測画像と符号化画像の全ての画素を使って予測モード毎の評価値を算出する例を説明したが、次に予測画像と符号化画像を間引いて評価値を算出する例を実施の形態3として説明する。
図9は、実施の形態3の動画像符号化装置を示す構成図である。
図9において、イントラ予測制御部301は、実施の形態1のイントラ予測制御部101の機能に加えて、イントラ予測演算間引き指示を受け取った場合、このイントラ予測演算間引き指示をイントラ予測演算部302へ出力するよう構成されている。また、イントラ予測演算部302は、イントラ予測制御部301から受け取ったイントラ予測演算間引き指示に従って、予測画像および符号化画像を間引いて評価値演算を行うよう構成されている。その他の構成は実施の形態1と同様であるため、対応する部分に同一符号を付してその説明を省略する。
In the first and second embodiments, the example in which the evaluation value for each prediction mode is calculated using all the pixels of the prediction image and the encoded image has been described. Next, the evaluation value is calculated by thinning out the prediction image and the encoded image. An example of this will be described as a third embodiment.
FIG. 9 is a configuration diagram illustrating the moving picture encoding apparatus according to the third embodiment.
In FIG. 9, in addition to the function of the intra
図10は、本発明のイントラ予測演算部302の内部構成を示した図である。イントラ予測演算制御部303は、実施の形態1のイントラ予測演算制御部110の機能に加えて、イントラ予測演算間引き指示に従って間引き処理部304を制御するよう構成されている。また、間引き処理部304は、イントラ予測演算制御部303の制御に従って予測画生成フィルタ111から出力される予測画像と、符号化A画像保持部102a〜符号化D画像保持部102dから出力される符号化画像の間引き処理を行う処理部である。予測画生成フィルタ111および差分絶対値和演算部112は実施の形態1と同様である。
FIG. 10 is a diagram showing an internal configuration of the intra
次に、実施の形態3の動作について説明する。
イントラ予測制御部301からイントラ予測演算間引き指示とマクロブロックサイズ指示と演算開始指示を受け取ったイントラ予測演算部302は、実施の形態1と同様に横ラインバッファ部103、縦ラインバッファ部104、横ライン一時バッファ部105、縦ライン一時バッファ部106から周辺画素を読み出し予測画を生成し、符号化A/B/C/D画像保持部102a,102b,102c,102dから符号化画像を読み出す。その後、間引き処理部304にて評価値演算を行う前にイントラ予測演算間引き指示に従い生成した予測画像と読み出した符号化画像に対して間引き処理を行う。例えば、イントラ予測演算間引き指示が水平1/2であれば水平方向に1画素おきに間引いた予測画像と符号化画像となり、垂直1/2であれば垂直方向に1画素おきに間引いた予測画像と符号化画像となり、水平1/2かつ垂直1/2であれば水平方向と垂直方向にそれぞれ1画素おきに間引いた予測画像と符号化画像となる。このように間引いた予測画像と符号化画像から評価値を算出し結果を演算結果A/B/C/D保持部108a,108b.108c,108dへ出力する。これ以外の動作は実施の形態1と同様であるため、その説明は省略する。
Next, the operation of the third embodiment will be described.
The intra
以上のように、実施の形態3の動画像符号化装置によれば、イントラ予測制御部301は、イントラ予測演算間引き指示を受け取った場合は、イントラ予測演算間引き指示をイントラ予測演算部302へ出力し、イントラ予測演算部302は、受け取ったイントラ予測演算間引き指示に従い、予測画画像と符号化画像を間引いて相関の演算を行うようにしたので、評価値を算出する対象の画素数が削減されるため、演算量を削減することができる。
As described above, according to the video encoding device of
実施の形態4.
実施の形態1〜3では算出された評価値のみを使って予測モード判定を行う形態であったが、次に、評価値と予測モード判定オフセットを使って予測モード判定を行う例を実施の形態4として説明する。
図11は、実施の形態4の動画像符号化装置を示す構成図である。
図11において、イントラ予測制御部401は、実施の形態1のイントラ予測制御部101の機能に加えて、予測モード判定オフセットを受け取った場合に、これを予測モード判定部402へ出力するよう構成されている。予測モード判定部402は、実施の形態1の予測モード判定部109の機能に加えて、イントラ予測制御部401から受け取った予測モード判定オフセットに従い、演算結果A保持部108a〜演算結果D保持部108dから読み出した演算結果に予測モード判定オフセットを加算して予測モードを判定するよう構成されている。その他の構成は実施の形態1と同様であるため、対応する部分に同一符号を付してその説明を省略する。
In the first to third embodiments, the prediction mode determination is performed using only the calculated evaluation value. Next, an example in which the prediction mode determination is performed using the evaluation value and the prediction mode determination offset is described. This will be described as 4.
FIG. 11 is a configuration diagram illustrating the moving picture encoding apparatus according to the fourth embodiment.
In FIG. 11, the intra
次に、実施の形態4の動作について説明する。
先ず、符号化マクロブロックサイズ指示に基づくイントラ予測制御部401の動作から、イントラ予測演算部107における演算結果が演算結果A保持部108a〜演算結果D保持部108dに保持されるまでの動作は実施の形態1と同様である。イントラ予測制御部401から予測モード判定オフセットを受け取った予測モード判定部402は、演算結果A/B/C/D保持部108a,108b,108c,108dから予測モードとその評価値を読み出し指定された判定オフセットを指定された予測モードの評価値に対して加算する。オフセットには正負の値があるため、正のオフセットが指示された予測モードの評価値は大きくなり、負のオフセットが指示された予測モードの評価値は小さくなる。このようにオフセット加算された評価値を元に予測モード判定値は例えば一番評価値の小さい予測モードを最適な予測モードと判定して出力する。
Next, the operation of the fourth embodiment will be described.
First, the operations from the operation of the intra
以上のように、実施の形態4の動画像符号化装置によれば、イントラ予測制御部401は、予測モード判定オフセットを受け取った場合は、予測モード判定オフセットを予測モード判定部402へ出力し、予測モード判定部402は、演算結果保持部108a〜108dから読み出した演算結果に予測モード判定オフセットを加算して予測モードを判定するようにしたので、予測モード判定においてオフセットを加味することができるため、判定される予測モードを外部から制御することが可能となり、より適切な予測モードを判定させ画質を向上させることができる。
As described above, according to the video encoding device of
実施の形態5.
実施の形態1〜4では、横ラインバッファ部103、縦ラインバッファ部104、横ライン一時バッファ部105、縦ライン一時バッファ部106から読み出した周辺画素をそのまま使用して予測画生成を行う形態であったが、次に、読み出した周辺画素に対して補正を行ったものを使用して予測画生成を行う例を実施の形態5として説明する。
In the first to fourth embodiments, prediction image generation is performed using peripheral pixels read from the horizontal
図12は、実施の形態5の動画像符号化装置を示す構成図である。
図12において、イントラ予測制御部501は、実施の形態1のイントラ予測制御部101の機能に加えて、周辺画素補正指示を受け取った場合、この周辺画素補正指示をイントラ予測演算部502へ出力するよう構成されている。イントラ予測演算部502は、実施の形態1のイントラ予測演算部107の機能に加えて、イントラ予測制御部501から受け取った周辺画素補正指示に従い、横ラインバッファ部103および縦ラインバッファ部104、または横ライン一時バッファ部105および縦ライン一時バッファ部106から読み出した周辺画素値を補正して評価値を算出するよう構成されている。その他の構成については実施の形態1と同様であるため、対応する部分に同一符号を付してその説明を省略する。
FIG. 12 is a configuration diagram illustrating the moving picture coding apparatus according to the fifth embodiment.
In FIG. 12, in addition to the function of the intra
図13は、実施の形態5のイントラ予測演算部502の内部構成を示した図である。イントラ予測演算制御部503は、実施の形態1のイントラ予測演算制御部110の機能に加え、イントラ予測制御部501からの周辺画素補正指示に従って周辺画素補正部504を制御するよう構成されている。周辺画素補正部504は、イントラ予測演算制御部503の制御に従って横ラインバッファ部103および縦ラインバッファ部104、または横ライン一時バッファ部105および縦ライン一時バッファ部106から読み出した周辺画素値を補正するものである。その他の構成は実施の形態1と同様である。
FIG. 13 is a diagram illustrating an internal configuration of the intra
次に、実施の形態5の動作について説明する。
イントラ予測制御部501から周辺画素補正指示とマクロブロックサイズ指示と演算開始指示を受け取ったイントラ予測演算部502は、実施の形態1と同様に横ラインバッファ部103、縦ラインバッファ部104、横ライン一時バッファ部105、縦ライン一時バッファ部106から周辺画素を読み出す。読み出した周辺画素に対してイントラ予測演算制御部502は、周辺画素補正部504を制御して周辺画素の補正を行う。例えば、クリッピング指示であれば指示された値の範囲以上もしくは以下の画素値はクリッピングされ、ローパスフィルタ処理であればフィルタ処理される。このように補正された周辺画素を使って予測画像を生成し、符号化A/B/C/D画像保持部102a,102b,102c,102dから読み出した符号化画像との評価値を算出して結果を演算結果A/B/C/D保持部108a,108b.108c,108dへ出力する。これ以外の動作は実施の形態1と同様である。
Next, the operation of the fifth embodiment will be described.
The intra
以上のように、実施の形態5の動画像符号化装置によれば、イントラ予測制御部501は、周辺画素補正指示を受け取った場合は、周辺画素補正指示をイントラ予測演算部502へ出力し、イントラ予測演算部502は、受け取った周辺画素補正指示に従い、横ラインバッファ部103および縦ラインバッファ部104、または、横ライン一時バッファ部105および縦ライン一時バッファ部106から読み出した周辺画素値を補正して評価値を算出するようにしたので、周辺画素を補正することができるので、画像の特徴に応じた予測画像の生成が可能となり、より適切な予測モードが選択されることで画質を向上させることができる。
As described above, according to the video encoding device of
実施の形態6.
以上の実施の形態1〜5では、生成した予測画生成をそのまま評価値算出に使用する形態であったが、次に、生成した予測画像に対して補正を行う例を実施の形態6として説明する。
図14は、実施の形態6の動画像符号化装置を示す構成図である。
図14において、イントラ予測制御部601は、実施の形態1のイントラ予測制御部101の機能に加えて、予測画補正指示を受け取った場合、この予測画補正指示をイントラ予測演算部602へ出力するよう構成されている。イントラ予測演算部602は、実施の形態1のイントラ予測演算部107の機能に加えて、イントラ予測制御部601から受け取った予測画補正指示に従い、生成した予測画像を補正して評価値を算出するよう構成されている。その他の構成については実施の形態1と同様であるため、対応する部分に同一符号を付してその説明を省略する。
Embodiment 6 FIG.
In the above first to fifth embodiments, the generated predicted image generation is used as it is for the evaluation value calculation. Next, an example in which the generated predicted image is corrected will be described as the sixth embodiment. To do.
FIG. 14 is a configuration diagram illustrating the moving picture coding apparatus according to the sixth embodiment.
In FIG. 14, in addition to the function of the intra
図15は、実施の形態6のイントラ予測演算部602の内部構成を示した図である。イントラ予測演算制御部603は、実施の形態1のイントラ予測演算制御部110の機能に加えて、イントラ予測制御部601からの予測画補正指示に従って予測画補正部604を制御するよう構成されている。また、予測画補正部604は、イントラ予測演算制御部603の制御に従って予測画生成フィルタ111が生成した予測画像を補正するものであり、その他の構成は実施の形態1と同様である。
FIG. 15 is a diagram illustrating an internal configuration of the intra
次に、実施の形態6の動作について説明する。
イントラ予測制御部601から予測画補正指示とマクロブロックサイズ指示と演算開始指示を受け取ったイントラ予測演算部602は、実施の形態1と同様に横ラインバッファ部103、縦ラインバッファ部104、横ライン一時バッファ部105、縦ライン一時バッファ部106から周辺画素を読み出す。読み出した周辺画素に対してイントラ予測演算制御部603は、予測モード毎の予測画像を生成するよう制御を行う。また、イントラ予測演算制御部603はその予測画像に対して予測画補正部604を制御し、予測画像の補正を行う。例えば、クリッピング指示であれば指示された値の範囲以上もしくは以下の画素値はクリッピングされ、ローパスフィルタ処理であればフィルタ処理される。このように補正された予測画像と、符号化A/B/C/D画像保持部102a,102b,102c,102dから読み出した符号化画像との評価値を算出して、その結果を演算結果A/B/C/D保持部108a,108b.108c,108dへ出力する。これ以外の動作は実施の形態1と同様である。
Next, the operation of the sixth embodiment will be described.
The intra
以上のように、実施の形態6の動画像符号化装置によれば、イントラ予測制御部は、予測画補正指示を受け取った場合は、予測画補正指示をイントラ予測演算部へ出力し、イントラ予測演算部は、受け取った予測画補正指示に従い、予測画像生成後の予測画像を補正して評価値を算出するようにしたので、予測画像を補正することができるため、画像の特徴に応じた予測画像を使った評価値の算出が可能となり、より適切な予測モードが選択されることで画質を向上させることができる。 As described above, according to the video encoding device of Embodiment 6, when receiving the predicted image correction instruction, the intra prediction control unit outputs the predicted image correction instruction to the intra prediction calculation unit, and performs intra prediction. Since the calculation unit corrects the predicted image after generating the predicted image and calculates the evaluation value in accordance with the received predicted image correction instruction, it can correct the predicted image, so that the prediction according to the feature of the image is performed. An evaluation value can be calculated using an image, and image quality can be improved by selecting a more appropriate prediction mode.
実施の形態7.
以上の実施の形態1〜6では全ての予測モードに対する評価値を算出する形態であったが、次に、評価値が指定された閾値を下回った場合はそれ以降の予測モードに対する評価値算出を行わないようにした例を実施の形態7として説明する。
Embodiment 7 FIG.
In the above first to sixth embodiments, the evaluation values for all prediction modes are calculated. Next, when the evaluation value falls below a specified threshold value, the evaluation values for the subsequent prediction modes are calculated. An example in which this is not performed will be described as a seventh embodiment.
図16は、実施の形態7の動画像符号化装置を示す構成図である。
図16において、イントラ予測制御部701は、実施の形態1のイントラ予測制御部101の機能に加えて、予測モード演算閾値を受け取った場合、この予測モード演算閾値をイントラ予測演算部702へ出力するよう構成されている。イントラ予測演算部702は、実施の形態1のイントラ予測演算制御部110の機能に加えて、イントラ予測制御部701から受け取った予測モード演算閾値に従い、予測モードの予測画生成および評価値の演算を行って演算結果の評価値が閾値を下回ったらそれ以降の予測モードに対する評価値算出を行わないよう構成されている。その他の構成については実施の形態1と同様であるため、対応する部分に同一符号を付してその説明を省略する。
FIG. 16 is a configuration diagram illustrating the moving picture coding apparatus according to the seventh embodiment.
In FIG. 16, in addition to the function of the intra
次に、実施の形態7の動作について説明する。
イントラ予測制御部701から予測モード演算閾値とマクロブロックサイズ指示と演算開始指示を受け取ったイントラ予測演算部702は、実施の形態1と同様に横ラインバッファ部103、縦ラインバッファ部104、横ライン一時バッファ部105、縦ライン一時バッファ部106から周辺画素を読み出して予測画を生成し、符号化A/B/C/D画像保持部102a,102b,102c,102dから符号化画像を読み出し、予め決められた順番に各予測モードの予測画を生成して評価値を算出する。評価値算出後、受け取った閾値と評価値を比較し評価値が閾値以下であったらそれ以降の予測モードに対する評価値算出を行わずに演算処理を終了する。演算が行われなかった予測モードについては評価値として最大値を演算結果A/B/C/D保持部108a,108b.108c,108dへ出力する。
Next, the operation of the seventh embodiment will be described.
The
以上のように、実施の形態7の動画像符号化装置によれば、イントラ予測制御部は、予測モード演算閾値を受け取った場合は、予測モード演算閾値をイントラ予測演算部へ出力し、イントラ予測演算部は、受け取った予測モード演算閾値に従い、予測モードの予測画生成および相関の演算を行い演算結果が予測モード演算閾値を下回った場合は、それ以降の予測モードの予測画生成および相関の演算から除外するようにしたので、評価値が予測モード演算閾値以下であればそれ以降の演算を行わないため、演算量を削減することができる。 As described above, according to the video encoding device of Embodiment 7, when receiving the prediction mode calculation threshold, the intra prediction control unit outputs the prediction mode calculation threshold to the intra prediction calculation unit, and performs intra prediction. The calculation unit performs prediction image generation and correlation calculation according to the received prediction mode calculation threshold value, and when the calculation result falls below the prediction mode calculation threshold value, the prediction image generation and correlation calculation of the subsequent prediction mode are performed. Therefore, if the evaluation value is equal to or less than the prediction mode calculation threshold value, the subsequent calculation is not performed, so that the calculation amount can be reduced.
尚、上記実施の形態1〜7は、それぞれ別の形態として説明したが、これに限定されるものではなく、各実施の形態を任意に組み合わせてもよい。 In addition, although the said Embodiment 1-7 was demonstrated as another form, respectively, it is not limited to this, You may combine each embodiment arbitrarily.
101,201,301,401,501,601,701 イントラ予測制御部、102a 符号化A画像保持部、102b 符号化B画像保持部、102c 符号化C画像保持部、102d 符号化D画像保持部、103 横ラインバッファ部、104 縦ラインバッファ部、105 横ライン一時バッファ部、106 縦ライン一時バッファ部、107,202,302,502,602,702 イントラ予測演算部、108a 演算結果A保持部、108b 演算結果B保持部、108c 演算結果C保持部、108d 演算結果D保持部、109,402 予測モード判定部。 101, 201, 301, 401, 501, 601, 701 Intra prediction control unit, 102a Encoded A image holding unit, 102b Encoded B image holding unit, 102c Encoded C image holding unit, 102d Encoded D image holding unit, 103 horizontal line buffer unit, 104 vertical line buffer unit, 105 horizontal line temporary buffer unit, 106 vertical line temporary buffer unit, 107, 202, 302, 502, 602, 702 intra prediction calculation unit, 108a calculation result A holding unit, 108b Calculation result B holding unit, 108c Calculation result C holding unit, 108d Calculation result D holding unit, 109, 402 Prediction mode determination unit.
Claims (9)
田の字型に隣接した符号化画像を保持する4のn(nは1以上の整数)乗個の画像保持部と、
前記符号化画像の上側の画素を保持する横ラインバッファ部と、
前記符号化画像の左側の画素を保持する縦ラインバッファ部と、
前記符号化画像内の水平画素を保持する横ライン一時バッファ部と、
前記符号化画像内の垂直画素を保持する縦ライン一時バッファ部と、
前記4のn乗個の画像保持部に対応して設けられ、イントラ予測演算結果を保持する4のn乗個の演算結果保持部と、
前記イントラ予測制御部より前記符号化マクロブロックサイズと前記演算開始指示を受け取り、前記横ラインバッファ部および前記縦ラインバッファ部、または、前記横ライン一時バッファ部および前記縦ライン一時バッファ部から画素を読み出してフィルタ処理して予測画像を生成すると共に、前記画像保持部から符号化画像を読み取って予測画像との相関を演算し、符号化画像の位置に対応した前記演算結果保持部に前記イントラ予測演算結果を出力し、かつ、読み出した符号化画像の一番下の画像を前記横ラインバッファ部または前記横ライン一時バッファ部へ、一番右の画像を前記縦ラインバッファ部または前記縦ライン一時バッファ部へ書き込むイントラ予測演算部と、
前記イントラ予測制御部より前記符号化マクロブロックサイズと前記予測モード判定指示を受け取った場合、前記演算結果保持部から演算結果を読み出して符号化マクロブロックサイズに従って予測モードを判定し結果を出力する予測モード判定部とを備えた動画像符号化装置。 When an encoded macroblock size instruction is received, the instructed encoded macroblock size and an operation start instruction are output. When an operation completion flag is received, an encoded macroblock size and an prediction mode determination instruction are output. An intra prediction control unit;
4 n (n is an integer equal to or greater than 1) image holding units for holding encoded images adjacent to a square shape,
A horizontal line buffer unit for holding pixels on the upper side of the encoded image;
A vertical line buffer unit for holding pixels on the left side of the encoded image;
A horizontal line temporary buffer unit for holding horizontal pixels in the encoded image;
A vertical line temporary buffer unit for holding vertical pixels in the encoded image;
4 n power calculation result holding units that are provided corresponding to the 4 n power image holding units and hold intra prediction calculation results;
The encoded macroblock size and the calculation start instruction are received from the intra prediction control unit, and pixels from the horizontal line buffer unit and the vertical line buffer unit, or the horizontal line temporary buffer unit and the vertical line temporary buffer unit are received. Read and filter to generate a predicted image, read the encoded image from the image holding unit, calculate the correlation with the predicted image, and store the intra prediction in the calculation result holding unit corresponding to the position of the encoded image The operation result is output, and the lowermost image of the read encoded image is output to the horizontal line buffer unit or the horizontal line temporary buffer unit, and the rightmost image is output to the vertical line buffer unit or the vertical line temporary An intra prediction calculation unit for writing to the buffer unit;
When receiving the encoded macroblock size and the prediction mode determination instruction from the intra prediction control unit, the calculation result is read out from the calculation result holding unit, the prediction mode is determined according to the encoded macroblock size, and the result is output. A moving image encoding apparatus including a mode determination unit.
前記イントラ予測演算部は、受け取った予測モード演算制限指示に基づいて、制限された予測モードの予測画生成および相関の演算を除外してイントラ予測演算を行うことを特徴とする請求項1記載の動画像符号化装置。 When receiving the prediction mode calculation restriction instruction, the intra prediction control unit outputs the prediction mode calculation restriction instruction to the intra prediction calculation part,
The intra prediction calculation unit performs intra prediction calculation based on the received prediction mode calculation restriction instruction, excluding prediction picture generation and correlation calculation in the limited prediction mode. Video encoding device.
前記イントラ予測演算部は、受け取ったイントラ予測演算間引き指示に従い、予測画画像と符号化画像を間引いて相関の演算を行うことを特徴とする請求項1記載の動画像符号化装置。 When receiving the intra prediction calculation thinning instruction, the intra prediction control unit outputs the intra prediction calculation thinning instruction to the intra prediction calculation unit,
2. The moving picture coding apparatus according to claim 1, wherein the intra prediction calculation unit performs a correlation calculation by thinning the predicted image and the encoded image in accordance with the received intra prediction calculation thinning instruction.
前記予測モード判定部は、演算結果保持部から読み出した演算結果に前記予測モード判定オフセットを加算して予測モードを判定することを特徴とする請求項1から請求項3のうちのいずれか1項記載の動画像符号化装置。 When receiving the prediction mode determination offset, the intra prediction control unit outputs the prediction mode determination offset to the prediction mode determination unit,
The said prediction mode determination part adds the said prediction mode determination offset to the calculation result read from the calculation result holding | maintenance part, and determines prediction mode, The any one of Claims 1-3 characterized by the above-mentioned. The moving image encoding apparatus described.
前記イントラ予測演算部は、受け取った周辺画素補正指示に従い、横ラインバッファ部および縦ラインバッファ部、または、横ライン一時バッファ部および縦ライン一時バッファ部から読み出した周辺画素値を補正して評価値を算出することを特徴とする請求項1から請求項4のうちのいずれか1項記載の動画像符号化装置。 When receiving the surrounding pixel correction instruction, the intra prediction control unit outputs the surrounding pixel correction instruction to the intra prediction calculation unit,
The intra prediction calculation unit corrects the peripheral pixel value read from the horizontal line buffer unit and the vertical line buffer unit, or the horizontal line temporary buffer unit and the vertical line temporary buffer unit according to the received peripheral pixel correction instruction, and evaluates the evaluation value. 5. The moving picture encoding apparatus according to claim 1, wherein:
前記イントラ予測演算部は、受け取った予測画補正指示に従い、予測画像生成後の予測画像を補正して評価値を算出することを特徴とする請求項1から請求項4のうちのいずれか1項記載の動画像符号化装置。 When receiving the predicted image correction instruction, the intra prediction control unit outputs the predicted image correction instruction to the intra prediction calculation unit,
The intra prediction calculation unit calculates an evaluation value by correcting a predicted image after generating a predicted image in accordance with the received predicted image correction instruction. The moving image encoding apparatus described.
前記イントラ予測演算部は、受け取った予測モード演算閾値に従い、予測モードの予測画生成および相関の演算を行い演算結果が前記予測モード演算閾値を下回った場合は、それ以降の予測モードの予測画生成および相関の演算から除外することを特徴とする請求項1から請求項6のうちのいずれか1項記載の動画像符号化装置。 When receiving the prediction mode calculation threshold, the intra prediction control unit outputs the prediction mode calculation threshold to the intra prediction calculation unit,
The intra prediction calculation unit performs prediction mode generation and correlation calculation according to the received prediction mode calculation threshold value, and when the calculation result falls below the prediction mode calculation threshold value, the prediction image generation for the subsequent prediction mode The moving picture coding apparatus according to claim 1, wherein the moving picture coding apparatus is excluded from the calculation of correlation and correlation.
前記符号化画像の上側の画素を保持する横ラインバッファ部と、
前記符号化画像の左側の画素を保持する縦ラインバッファ部と、
前記符号化画像内の水平画素を保持する横ライン一時バッファ部と、
前記符号化画像内の垂直画素を保持する縦ライン一時バッファ部と、
前記4のn乗個の画像保持部に対応して設けられ、イントラ予測演算結果を保持する4のn乗個の演算結果保持部とを備えた動画像符号化装置を用いて動画像符号化を行う動画像符号化方法であって、
符号化マクロブロックサイズ指示を受け取った場合、当該指示された符号化マクロブロックサイズと演算開始指示を出力し、演算完了フラグを受け取った場合は、符号化マクロブロックサイズと予測モード判定指示を出力するイントラ予測制御ステップと、
前記符号化マクロブロックサイズと前記演算開始指示を受け取り、前記横ラインバッファ部および前記縦ラインバッファ部、または、前記横ライン一時バッファ部および前記縦ライン一時バッファ部から画素を読み出してフィルタ処理して予測画像を生成すると共に、前記画像保持部から符号化画像を読み取って予測画像との相関を演算し、符号化画像の位置に対応した前記演算結果保持部に前記イントラ予測演算結果を出力し、かつ、読み出した符号化画像の一番下の画像を前記横ラインバッファ部または前記横ライン一時バッファ部へ、一番右の画像を前記縦ラインバッファ部または前記縦ライン一時バッファ部へ書き込むイントラ予測演算ステップと、
前記符号化マクロブロックサイズと前記予測モード判定指示を受け取った場合、前記演算結果保持部から演算結果を読み出して符号化マクロブロックサイズに従って予測モードを判定し結果を出力する予測モード判定ステップとを備えた動画像符号化方法。 4 n (n is an integer equal to or greater than 1) image holding units for holding encoded images adjacent to a square shape,
A horizontal line buffer unit for holding pixels on the upper side of the encoded image;
A vertical line buffer unit for holding pixels on the left side of the encoded image;
A horizontal line temporary buffer unit for holding horizontal pixels in the encoded image;
A vertical line temporary buffer unit for holding vertical pixels in the encoded image;
Video encoding using a video encoding apparatus provided corresponding to the 4 n power holding units and having 4 n calculation result holding units holding intra prediction calculation results A video encoding method for performing
When an encoded macroblock size instruction is received, the instructed encoded macroblock size and an operation start instruction are output. When an operation completion flag is received, an encoded macroblock size and an prediction mode determination instruction are output. An intra prediction control step;
Receives the encoded macroblock size and the calculation start instruction, reads out the pixels from the horizontal line buffer unit and the vertical line buffer unit, or the horizontal line temporary buffer unit and the vertical line temporary buffer unit, and performs a filtering process. Generating a predicted image, reading the encoded image from the image holding unit, calculating a correlation with the predicted image, and outputting the intra prediction calculation result to the calculation result holding unit corresponding to the position of the encoded image; In addition, intra prediction for writing the bottom image of the read encoded image to the horizontal line buffer unit or the horizontal line temporary buffer unit and writing the rightmost image to the vertical line buffer unit or the vertical line temporary buffer unit. A calculation step;
A prediction mode determination step of reading a calculation result from the calculation result holding unit, determining a prediction mode according to the encoding macroblock size, and outputting the result when the encoded macroblock size and the prediction mode determination instruction are received; Video encoding method.
前記符号化画像の上側の画素を保持する横ラインバッファ部と、
前記符号化画像の左側の画素を保持する縦ラインバッファ部と、
前記符号化画像内の水平画素を保持する横ライン一時バッファ部と、
前記符号化画像内の垂直画素を保持する縦ライン一時バッファ部と、
前記4のn乗個の画像保持部に対応して設けられ、イントラ予測演算結果を保持する4のn乗個の演算結果保持部とを備えた動画像符号化装置をコンピュータを用いて実現する動画像符号化プログラムであって、
前記コンピュータを、
符号化マクロブロックサイズ指示を受け取った場合、当該指示された符号化マクロブロックサイズと演算開始指示を出力し、演算完了フラグを受け取った場合は、符号化マクロブロックサイズと予測モード判定指示を出力するイントラ予測制御部と、
前記イントラ予測制御部より前記符号化マクロブロックサイズと前記演算開始指示を受け取り、前記横ラインバッファ部および前記縦ラインバッファ部、または、前記横ライン一時バッファ部および前記縦ライン一時バッファ部から画素を読み出してフィルタ処理して予測画像を生成すると共に、前記画像保持部から符号化画像を読み取って予測画像との相関を演算し、符号化画像の位置に対応した前記演算結果保持部に前記イントラ予測演算結果を出力し、かつ、読み出した符号化画像の一番下の画像を前記横ラインバッファ部または前記横ライン一時バッファ部へ、一番右の画像を前記縦ラインバッファ部または前記縦ライン一時バッファ部へ書き込むイントラ予測演算部と、
前記イントラ予測制御部より前記符号化マクロブロックサイズと前記予測モード判定指示を受け取った場合、前記演算結果保持部から演算結果を読み出して符号化マクロブロックサイズに従って予測モードを判定し結果を出力する予測モード判定部として機能させるための動画像符号化プログラム。 4 n (n is an integer equal to or greater than 1) image holding units for holding encoded images adjacent to a square shape,
A horizontal line buffer unit for holding pixels on the upper side of the encoded image;
A vertical line buffer unit for holding pixels on the left side of the encoded image;
A horizontal line temporary buffer unit for holding horizontal pixels in the encoded image;
A vertical line temporary buffer unit for holding vertical pixels in the encoded image;
A moving image encoding apparatus provided corresponding to the 4 n image holding units and having 4 n calculation result holding units holding intra prediction calculation results is realized using a computer. A video encoding program,
The computer,
When an encoded macroblock size instruction is received, the instructed encoded macroblock size and an operation start instruction are output. When an operation completion flag is received, an encoded macroblock size and an prediction mode determination instruction are output. An intra prediction control unit;
The encoded macroblock size and the calculation start instruction are received from the intra prediction control unit, and pixels from the horizontal line buffer unit and the vertical line buffer unit, or the horizontal line temporary buffer unit and the vertical line temporary buffer unit are received. Read and filter to generate a predicted image, read the encoded image from the image holding unit, calculate the correlation with the predicted image, and store the intra prediction in the calculation result holding unit corresponding to the position of the encoded image The operation result is output, and the lowermost image of the read encoded image is output to the horizontal line buffer unit or the horizontal line temporary buffer unit, and the rightmost image is output to the vertical line buffer unit or the vertical line temporary An intra prediction calculation unit for writing to the buffer unit;
When receiving the encoded macroblock size and the prediction mode determination instruction from the intra prediction control unit, the calculation result is read out from the calculation result holding unit, the prediction mode is determined according to the encoded macroblock size, and the result is output. A moving image encoding program for causing a function to function as a mode determination unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010012089A JP2011151655A (en) | 2010-01-22 | 2010-01-22 | Apparatus, method and program for encoding of moving picture |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010012089A JP2011151655A (en) | 2010-01-22 | 2010-01-22 | Apparatus, method and program for encoding of moving picture |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2011151655A true JP2011151655A (en) | 2011-08-04 |
Family
ID=44538245
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010012089A Pending JP2011151655A (en) | 2010-01-22 | 2010-01-22 | Apparatus, method and program for encoding of moving picture |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2011151655A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9549187B2 (en) | 2013-12-19 | 2017-01-17 | Canon Kabushiki Kaisha | Intra prediction mode determination apparatus, intra prediction mode determination method, and recording medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09289643A (en) * | 1996-04-23 | 1997-11-04 | Canon Inc | Image encoding device and method therefor |
JP2005512419A (en) * | 2001-11-30 | 2005-04-28 | ローベルト ボツシユ ゲゼルシヤフト ミツト ベシユレンクテル ハフツング | Image block directivity prediction method |
JP2006094081A (en) * | 2004-09-24 | 2006-04-06 | Sony Corp | Coding device, coding method, program of coding method, and recording medium with program of coding method recorded thereon |
JP2006246431A (en) * | 2005-02-07 | 2006-09-14 | Matsushita Electric Ind Co Ltd | Image coding apparatus and method |
JP2007251923A (en) * | 2006-02-15 | 2007-09-27 | Mitsubishi Electric Corp | Image encoding device and image coding method |
JP2008519484A (en) * | 2004-11-04 | 2008-06-05 | トムソン ライセンシング | Fast intra mode prediction in video encoders |
JP2009177722A (en) * | 2008-01-28 | 2009-08-06 | Canon Inc | Video coding apparatus and video coding method |
-
2010
- 2010-01-22 JP JP2010012089A patent/JP2011151655A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09289643A (en) * | 1996-04-23 | 1997-11-04 | Canon Inc | Image encoding device and method therefor |
JP2005512419A (en) * | 2001-11-30 | 2005-04-28 | ローベルト ボツシユ ゲゼルシヤフト ミツト ベシユレンクテル ハフツング | Image block directivity prediction method |
JP2006094081A (en) * | 2004-09-24 | 2006-04-06 | Sony Corp | Coding device, coding method, program of coding method, and recording medium with program of coding method recorded thereon |
JP2008519484A (en) * | 2004-11-04 | 2008-06-05 | トムソン ライセンシング | Fast intra mode prediction in video encoders |
JP2006246431A (en) * | 2005-02-07 | 2006-09-14 | Matsushita Electric Ind Co Ltd | Image coding apparatus and method |
JP2007251923A (en) * | 2006-02-15 | 2007-09-27 | Mitsubishi Electric Corp | Image encoding device and image coding method |
JP2009177722A (en) * | 2008-01-28 | 2009-08-06 | Canon Inc | Video coding apparatus and video coding method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9549187B2 (en) | 2013-12-19 | 2017-01-17 | Canon Kabushiki Kaisha | Intra prediction mode determination apparatus, intra prediction mode determination method, and recording medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9451255B2 (en) | Image encoding apparatus, image encoding method, image decoding apparatus, and image decoding method | |
TWI533676B (en) | Moving image encoding device, moving image decoding device, moving image encoding method, moving image decoding method, and memory storage | |
JP2006304102A (en) | Image coding unit and image coding method | |
EP3386199A1 (en) | Lossless compression method and system appled to video hard decoding | |
JP2006246431A (en) | Image coding apparatus and method | |
JP2007150913A (en) | Image encoding device | |
JP4774315B2 (en) | Image decoding apparatus and image decoding method | |
JP2006157925A (en) | Pipeline deblocking filter | |
JP6171627B2 (en) | Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method, and image decoding program | |
JP2008271127A (en) | Coding apparatus | |
WO2023155751A1 (en) | Video coding control method, apparatus, device, and storage medium | |
JP2007267123A (en) | Moving image encoding apparatus | |
JP2014078891A (en) | Image processing apparatus and image processing method | |
JP4571069B2 (en) | Video encoding device | |
WO2022116824A1 (en) | Video decoding method, video encoding method, related devices, and storage medium | |
JP2011151655A (en) | Apparatus, method and program for encoding of moving picture | |
JP2009260494A (en) | Image coding apparatus and its control method | |
CN110662074B (en) | Motion vector determination method and device | |
TWI493942B (en) | Moving picture coding method, moving picture coding apparatus, and moving picture coding program | |
JP2010161747A (en) | Apparatus and method for generating sub-pixel, and motion compensating apparatus | |
JP6875800B2 (en) | Super-resolution frame selection device, super-resolution device, and program | |
JP5206070B2 (en) | Decoding device and decoding method | |
JP7451131B2 (en) | Image encoding device, image encoding method, and program | |
JP5815326B2 (en) | Video decoding device and image display device | |
JP5867050B2 (en) | Image processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120823 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130516 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130521 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20131001 |