JP2011151655A - Apparatus, method and program for encoding of moving picture - Google Patents

Apparatus, method and program for encoding of moving picture Download PDF

Info

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
Application number
JP2010012089A
Other languages
Japanese (ja)
Inventor
Nobuaki Motoyama
信明 本山
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2010012089A priority Critical patent/JP2011151655A/en
Publication of JP2011151655A publication Critical patent/JP2011151655A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a moving picture encoding apparatus, capable of reducing a circuit scale and saving memory capacity, by achieving an intra-forecast mode decision corresponding to a plurality of macro-block sizes in only one structure. <P>SOLUTION: As buffers for peripheral pixels, the apparatus includes a lateral line buffer 103, a vertical line buffer 104, a lateral line temporary buffer 105, and a vertical line temporary buffer 106. An intra-forecast calculator 107 computes correlations between encoding images and forecasting images of image holders from an encoding A image holder 102a to an encoding D image holder 102d by using pixels in these buffers in accordance with an encoding macro-block size instruction from an intra-forecast control unit 101. A forecasting mode determiner 109 determines the forecasting mode in accordance with the result of computation in the intra-forecasting calculator 107 and the encoding macro-block size. <P>COPYRIGHT: (C)2011,JPO&INPIT

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, Patent Documents 3 and 4).

特開2006−246431号公報JP 2006-246431 A 特開2008−283481号公報JP 2008-283482 A 特開2006−157481号公報JP 2006-157481 A 特開2008−5243号公報JP 2008-5243 A

しかしながら、上記のようなイントラ予測の予測モード判定を備える従来の動画像符号化装置において、マクロブロックサイズは固定であり、一連の符号化処理においてマクロブロックサイズとして複数のサイズ、例えば、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による動画像符号化装置を示す構成図である。It is a block diagram which shows the moving image encoder by Embodiment 1 of this invention. 符号化フレームにおける符号化画像の説明図である。It is explanatory drawing of the encoding image in an encoding frame. この発明の実施の形態1による動画像符号化装置のイントラ予測演算部の構成図である。It is a block diagram of the intra prediction calculating part of the moving image encoder by Embodiment 1 of this invention. この発明の実施の形態1による動画像符号化装置の予測画生成方法と評価値演算方法を示す説明図である。It is explanatory drawing which shows the predicted image production | generation method and evaluation value calculation method of the moving image encoder by Embodiment 1 of this invention. この発明の実施の形態1による動画像符号化装置の予測画生成時に使用する周辺画素用のバッファの関係を示す説明図である。It is explanatory drawing which shows the relationship of the buffer for surrounding pixels used at the time of the prediction image production | generation of the moving image encoder by Embodiment 1 of this invention. この発明の実施の形態1による動画像符号化装置の符号化マクロブロックサイズと読み込みバッファと書き込みバッファとの関係を示す説明図である。It is explanatory drawing which shows the relationship between the encoding macroblock size of the moving image encoder by Embodiment 1 of this invention, a read buffer, and a write buffer. この発明の実施の形態1による動画像符号化装置の予測モードとブロックとの関係を示す説明図である。It is explanatory drawing which shows the relationship between the prediction mode and block of the moving image encoder by Embodiment 1 of this invention. この発明の実施の形態2による動画像符号化装置の構成図である。It is a block diagram of the moving image encoder by Embodiment 2 of this invention. この発明の実施の形態3による動画像符号化装置の構成図である。It is a block diagram of the moving image encoder by Embodiment 3 of this invention. この発明の実施の形態3による動画像符号化装置のイントラ予測演算部を示す構成図である。It is a block diagram which shows the intra prediction calculating part of the moving image encoder by Embodiment 3 of this invention. この発明の実施の形態4による動画像符号化装置の構成図である。It is a block diagram of the moving image encoder by Embodiment 4 of this invention. この発明の実施の形態5による動画像符号化装置の構成図である。It is a block diagram of the moving image encoder by Embodiment 5 of this invention. この発明の実施の形態5による動画像符号化装置のイントラ予測演算部を示す構成図である。It is a block diagram which shows the intra prediction calculating part of the moving image encoder by Embodiment 5 of this invention. この発明の実施の形態6による動画像符号化装置の構成図である。It is a block diagram of the moving image encoder by Embodiment 6 of this invention. この発明の実施の形態6による動画像符号化装置のイントラ予測演算部を示す構成図である。It is a block diagram which shows the intra prediction calculating part of the moving image encoder by Embodiment 6 of this invention. この発明の実施の形態7による動画像符号化装置の構成図である。It is a block diagram of the moving image encoder by Embodiment 7 of this invention.

実施の形態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 prediction control unit 101, an encoded A image holding unit 102a, an encoded B image holding unit 102b, an encoded C image holding unit 102c, an encoded D image holding unit 102d, Line buffer unit 103, vertical line buffer unit 104, horizontal line temporary buffer unit 105, vertical line temporary buffer unit 106, intra prediction calculation unit 107, calculation result A holding unit 108a, calculation result B holding unit 108b, calculation result C holding unit 108c, a calculation result D holding unit 108d, and a prediction mode determination unit 109.

イントラ予測制御部101は、符号化マクロブロックサイズ指示を受け取りイントラ予測演算部107へ符号化マクロブロックサイズと演算開始指示を出力し、イントラ予測演算部107から演算完了フラグを受け取った場合、予測モード判定部109へ符号化マクロブロックサイズと予測モード判定指示を出力する。符号化A画像保持部102aは、田の字型に隣接した符号化画像の左上の画像を保持する符号化画像保持部、符号化B画像保持部102bは、田の字型に隣接した符号化画像の右上の画像を保持する符号化画像保持部、符号化C画像保持部102cは、田の字型に隣接した符号化画像の左下の画像を保持する符号化画像保持部、符号化D画像保持部102dは、田の字型に隣接した符号化画像の右下の画像を保持する符号化画像保持部である。   The intra prediction control unit 101 receives an encoded macroblock size instruction, outputs an encoded macroblock size and a calculation start instruction to the intra prediction calculation unit 107, and receives a calculation completion flag from the intra prediction calculation unit 107. The encoding macroblock size and the prediction mode determination instruction are output to the determination unit 109. The encoded A image holding unit 102a is an encoded image holding unit that holds an upper left image of the encoded image adjacent to the square shape, and the encoded B image holding unit 102b is an encoded adjacent to the square shape. An encoded image holding unit that holds the upper right image of the image, and an encoded C image holding unit 102c are an encoded image holding unit and an encoded D image that hold the lower left image of the encoded image adjacent to the square shape. The holding unit 102d is a coded image holding unit that holds the lower right image of the coded image adjacent to the square shape.

横ラインバッファ部103は、符号化画像の上側の画素を保持するバッファ部であり、縦ラインバッファ部104は、符号化画像の左側の画素を保持するバッファ部である。また、横ライン一時バッファ部105は、符号化画像内の水平画素を保持するバッファ部であり、縦ライン一時バッファ部106は、符号化画像内の垂直画素を保持するバッファ部である。   The horizontal line buffer unit 103 is a buffer unit that holds the upper pixel of the encoded image, and the vertical line buffer unit 104 is a buffer unit that holds the left pixel of the encoded image. The horizontal line temporary buffer unit 105 is a buffer unit that holds horizontal pixels in the encoded image, and the vertical line temporary buffer unit 106 is a buffer unit that holds vertical pixels in the encoded image.

イントラ予測演算部107は、イントラ予測制御部101から符号化マクロブロックサイズと演算開始指示を受け取り、横ラインバッファ部103および縦ラインバッファ部104もしくは横ライン一時バッファ部105および縦ライン一時バッファ部106から画素を読み出してフィルタ処理を行って予測画像を生成すると共に、符号化A画像保持部102a〜符号化D画像保持部102dから符号化画像を読み取って予測画像との相関を演算し、符号化画像の位置に対応した演算結果A保持部108a〜演算結果D保持部108dに演算結果を出力し、かつ、読み出した符号化画像の一番下の画像を横ラインバッファ部103または横ライン一時バッファ部105へ、一番右の画像を縦ラインバッファ部104または縦ライン一時バッファ部106へ書き込む演算部である。   The intra prediction calculation unit 107 receives the encoded macroblock size and calculation start instruction from the intra prediction control unit 101, and receives the horizontal line buffer unit 103 and the vertical line buffer unit 104 or the horizontal line temporary buffer unit 105 and the vertical line temporary buffer unit 106. Pixels are read out and filtered to generate a predicted image, and the encoded images are read from the encoded A image holding unit 102a to the encoded D image holding unit 102d, and the correlation with the predicted image is calculated and encoded. The calculation result is output to the calculation result A holding unit 108a to the calculation result D holding unit 108d corresponding to the position of the image, and the lowermost image of the read encoded image is displayed as the horizontal line buffer unit 103 or the horizontal line temporary buffer. The rightmost image is transferred to the vertical line buffer unit 104 or the vertical line temporary buffer. An arithmetic unit for writing the part 106.

演算結果A保持部108aは、符号化A画像のイントラ予測演算結果を保持する演算結果保持部、演算結果B保持部108bは、符号化B画像のイントラ予測演算結果を保持する演算結果保持部、演算結果C保持部108cは、符号化C画像のイントラ予測演算結果を保持する演算結果保持部、演算結果D保持部108dは、符号化D画像のイントラ予測演算結果を保持する演算結果保持部である。予測モード判定部109は、イントラ予測制御部101から符号化マクロブロックサイズと予測モード判定指示を受け取り、演算結果A保持部108a〜演算結果D保持部108dから演算結果を読み出して符号化マクロブロックサイズに従って予測モードを判定し結果を出力する判定部である。   The calculation result A holding unit 108a is a calculation result holding unit that holds the intra prediction calculation result of the encoded A image, and the calculation result B holding unit 108b is a calculation result holding unit that holds the intra prediction calculation result of the encoded B image, The calculation result C holding unit 108c is a calculation result holding unit that holds the intra prediction calculation result of the encoded C image, and the calculation result D holding unit 108d is a calculation result holding unit that holds the intra prediction calculation result of the encoded D image. is there. The prediction mode determination unit 109 receives the encoding macroblock size and the prediction mode determination instruction from the intra prediction control unit 101, reads out the calculation results from the calculation result A holding unit 108a to the calculation result D holding unit 108d, and encodes the encoding macroblock size. Is a determination unit that determines the prediction mode and outputs the result.

本発明の動画像符号化装置はコンピュータを用いて実現され、上記イントラ予測制御部101、イントラ予測演算部107および予測モード判定部109は、それぞれの機能に対応したソフトウェアとこれらソフトウェアを実行するためのCPUやメモリといったハードウェアから構成されている。あるいは、これら機能部を専用のハードウェアで構成してもよい。   The moving image coding apparatus of the present invention is realized by using a computer, and the intra prediction control unit 101, the intra prediction calculation unit 107, and the prediction mode determination unit 109 execute software corresponding to each function and the software. It consists of hardware such as CPU and memory. Alternatively, these functional units may be configured with dedicated hardware.

図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 image 2a, the encoded B image 2b, the encoded C image 2c, and the encoded D image 2d in the figure indicate the encoded images adjacent to the square shape located in the encoded frame 1, Line 3 is a line held in the horizontal line buffer unit 103, and vertical line 4 is a line held in the vertical line buffer unit 104. In such an encoded frame 1, for example, in the case of HDTV, when a frame of 1920 × 1080 pixels is divided by a macroblock, a part thereof is an encoded A image 2a, an encoded B image 2b, and an encoded C image. 2c, an encoded D image 2d, and each encoded image holds an image having 16 horizontal pixels and 16 vertical pixels. Therefore, if the macroblock size is 16 × 16 pixels, four macroblocks are held, and if the macroblock size is 32 × 32 pixels, one macroblock is held by four. It will be. Moreover, even if it is 64 * 64 pixels or more, it is applicable similarly. That is, any macroblock size can be applied as long as it is a 4 n (n is an integer greater than or equal to 1) image holding unit adjacent to the square shape. The upper pixel of the encoded image adjacent to the square character is the horizontal line 3, and the left pixel is the vertical line 4.

図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 prediction calculation unit 107 in the first embodiment.
The intra prediction calculation unit 107 includes an intra prediction calculation control unit 110, a prediction image generation filter 111, and a difference absolute value sum calculation unit 112. The intra prediction calculation control unit 110 is a control unit that controls the intra prediction calculation for each prediction mode in accordance with the encoded macrobook size specified by the intra prediction control unit 101. The prediction image generation filter 111 reads pixel data from the horizontal line buffer unit 103, the vertical line buffer unit 104, the horizontal line temporary buffer unit 105, and the vertical line temporary buffer unit 106 in accordance with an instruction from the intra prediction calculation control unit 110, and is instructed. It is a filter which produces | generates the prediction image of the prediction mode which was different. The absolute difference sum calculating unit 112 reads the encoded A image 2a to the encoded D image 2d from the encoded A image holding unit 102a to the encoded D image holding unit 102d in accordance with an instruction from the intra prediction calculation control unit 110. The sum of absolute differences between the prediction image generated by the prediction image generation filter 111 and the encoded image is calculated and an evaluation value is output, and a part of the encoded image is converted into the horizontal line buffer unit 103, the vertical line buffer unit 104, the horizontal This is an arithmetic unit that writes in the line temporary buffer unit 105 and the vertical line temporary buffer unit 106.

次に、実施の形態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 / D images 2a, 2b, 2c, and 2d is an individual macroblock. Receiving the macroblock size instruction and the calculation start instruction from the intra prediction control unit 101, the intra prediction calculation unit 107 reads the encoded image from the encoded A image holding unit 102a, and from the horizontal line buffer unit 103 and the vertical line buffer unit 104. The horizontal lines 3 and vertical lines 4 of the peripheral pixels are read out, and a predicted image is generated by filter processing according to the prediction mode. The sum of absolute differences between the encoded image and the predicted image and the prediction mode at that time are output to the calculation result A holding unit 108a.

図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 prediction calculation unit 107, and an evaluation value calculation method such as a sum of absolute differences between the encoded image and the prediction image.
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 image 2a, the intra prediction calculation unit 107 outputs the pixel at the lower end of the encoded A image 2a, writes it to the left side portion of the horizontal line buffer unit 103, and Pixels are output and written in the upper part of the vertical line buffer unit 1g. Similarly, the process is performed on the encoded B image 2b, and after calculating all prediction modes and evaluation values and outputting them to the operation result B holding unit 108b, the lower end pixel of the encoded B image 2b is output, and the horizontal line buffer unit 103 is output. The rightmost pixel is output, and the rightmost pixel is output and written to the upper part of the vertical line buffer unit 104. Similar processing is performed on the encoded C image 2c and the encoded D image 2d. That is, when the encoded macroblock size is 16 × 16, the operation of rewriting the contents of the horizontal line buffer unit 103 and the vertical line buffer unit 104 is performed after the calculation of each encoded image is completed.

次に符号化マクロブロックサイズが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 / D images 2a, 2b, 2c, and 2d form one macroblock. After the evaluation values of all prediction modes of the encoded A image 2a are calculated and output to the calculation result A holding unit 108a, the intra prediction calculation unit 107 outputs the pixel at the lower end of the encoded A image 2a, and the horizontal line temporary buffer unit Write to the left portion of 105, output the rightmost pixel, and write to the vertical line temporary buffer unit 106. Next, when generating a predicted image of the encoded B image 2b, pixels are read from the horizontal line buffer unit 103 and the vertical line buffer unit 104 or the vertical line temporary buffer unit 106 according to the prediction mode, and a predicted image is generated. The evaluation value of all prediction modes of the encoded B image 2b is calculated and output to the operation result B holding unit 108b. Then, the pixel at the lower end of the encoded B image 2b is output and written to the right portion of the horizontal line temporary buffer unit 105. The rightmost pixel is output and written to the vertical line buffer unit 104. Next, when generating a predicted image of the encoded C image 2c, pixels are read from the horizontal line buffer unit 103 or the horizontal line temporary buffer unit 105 and the vertical line buffer unit 104 according to the prediction mode, and a predicted image is generated. After the evaluation values of all prediction modes of the encoded C image 2c are calculated and output to the calculation result C holding unit 108c, the lower end pixel of the encoded C image 2c is output and written to the left side portion of the horizontal line buffer unit 103, and the right end The pixel is output and written to the vertical line temporary buffer unit 106. Finally, when generating a predicted image of the encoded D image 2d, a prediction image is generated by reading out pixels from the horizontal line buffer unit 103 or the horizontal line temporary buffer unit 105, the vertical line buffer unit 104, or the vertical line temporary buffer unit 106 depending on the prediction mode. To do.

図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 D image 2d. After the evaluation value of all prediction modes of the encoded D image 2d is calculated and output to the calculation result D holding unit 108d, the lowermost pixel of the encoded D image 2d is output and written to the right side portion of the horizontal line buffer unit 103. The rightmost pixel is output and written to the vertical line buffer unit 104. That is, when the encoded image is adjacent to the macro block, the horizontal line buffer unit 105 and the vertical line temporary buffer unit 106 are rewritten. When the encoded image is not adjacent, the horizontal line buffer unit 103 and the vertical line buffer unit 104 are rewritten. . FIG. 6 shows the relationship between the buffer to be read and the buffer to be written by each encoded A / B / C / D image 2a, 2b, 2c, 2d with respect to the encoded macroblock size.

符号化マクロブロックサイズに従った全予測モード毎の評価値の算出が完了したら、イントラ予測制御部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 prediction control unit 101 outputs a prediction mode determination instruction to the prediction mode determination unit 109. When the encoded macroblock size is 16 × 16, the prediction mode determination unit 109 first reads all prediction modes and evaluation values for the encoded A image 2a from the calculation result A holding unit 108a. The smaller one is set as the intra prediction mode of the encoded A image 2a. Similarly, all prediction modes and evaluation values for the encoded B / C / D images 2b, 2c, and 2d are calculated as the calculation result B / C / D holding units 108b, 108c. The data is read from 108d, and the intra prediction mode is determined. That is, when the encoded image size matches 16 × 16, the intra prediction mode is individually determined for each encoded image 2a, 2b, 2c, 2d.

次に、符号化マクロブロックサイズが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 mode determination unit 109 determines from the A / B / C / D calculation result holding units 108a, 108b, 108c, and 108d all the prediction modes and evaluations thereof. The value is read, and in one prediction mode, four evaluation values are added to be an evaluation value in units of macroblocks, and are treated as one evaluation mode evaluation value. In a certain prediction mode, encoded A / B / C / D The evaluation values are handled as individual prediction modes for the images 2a, 2b, 2c, and 2d. The left side of FIG. 7 is a macroblock unit mode, and the right side is an individual prediction mode. The prediction mode determination unit 109 outputs the block size and the prediction mode of each block as an intra prediction mode determination result.

以上のように、実施の形態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 intra-prediction control unit 101 that outputs the encoding macroblock size and the prediction mode determination instruction, and the 4th power of n (n is an integer of 1 or more) that holds the encoded image adjacent to the square shape. Image holding units 102a to 102d, a horizontal line buffer unit 103 that holds pixels on the upper side of the encoded image, a vertical line buffer unit 104 that holds pixels on the left side of the encoded image, and a horizontal line in the encoded image A horizontal line temporary buffer unit 105 that holds pixels, a vertical line temporary buffer unit 106 that holds vertical pixels in an encoded image, and 4 n image holding units 102 a to 102. 4 n power calculation result holding units 108 a to 108 d that hold intra prediction calculation results, and receive an encoding macroblock size and calculation start instruction from the intra prediction control unit 101. Pixels are read from the buffer unit 103 and the vertical line buffer unit 104, or the horizontal line temporary buffer unit 105 and the vertical line temporary buffer unit 106 and filtered to generate a predicted image, and encoded from the image holding units 102a to 102d. The image is read, the correlation with the predicted image is calculated, the intra prediction calculation result is output to the calculation result holding units 108a to 108d corresponding to the position of the encoded image, and the lowest image of the read encoded image To the horizontal line buffer unit 103 or the horizontal line temporary buffer unit 105. When the intra prediction calculation unit 107 that writes to the buffer unit 104 or the vertical line temporary buffer unit 106 and the encoded macroblock size and the prediction mode determination instruction are received from the intra prediction control unit 101, the calculation results are received from the calculation result holding units 108a to 108d. And a prediction mode determination unit 109 that determines the prediction mode according to the encoded macroblock size and outputs the result, so that the surrounding pixels used for prediction image generation can be switched depending on the encoded macroblock size, and the prediction Since the determination method at the time of mode determination can be controlled, intra prediction mode determination with different encoding macroblock sizes can be realized with one configuration, and therefore the circuit scale and memory capacity can be reduced.

また、実施の形態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) image holding units 102a to 102d that hold coded pictures adjacent to a square shape, and The horizontal line buffer unit 103 that holds the upper pixel of the encoded image, the vertical line buffer unit 104 that holds the left pixel of the encoded image, and the horizontal line temporary buffer unit that holds the horizontal pixel in the encoded image 105, a vertical line temporary buffer unit 106 that holds vertical pixels in an encoded image, and 4 n image holding units 102a to 102d that correspond to 4 n image holding units 102a to 102d that hold intra prediction calculation results. A moving picture coding method that performs moving picture coding using a moving picture coding apparatus including multiplication operation result holding units 108a to 108d, and is instructed when an encoding macroblock size instruction is received. The When the encoded macroblock size and the calculation start instruction are output and the calculation completion flag is received, the intra prediction control step for outputting the encoded macroblock size and the prediction mode determination instruction, the encoded macroblock size and the calculation start instruction Are read out from the horizontal line buffer unit 103 and the vertical line buffer unit 104, or the horizontal line temporary buffer unit 105 and the vertical line temporary buffer unit 106, and are subjected to filter processing to generate a predicted image, and the image holding unit 102a. -102d to read the encoded image, calculate the correlation with the predicted image, output the intra-prediction calculation results to the calculation result holding units 108a to 108d corresponding to the position of the encoded image, and the read encoded image The bottom image is stored in the horizontal line buffer unit 103 or horizontal line buffer. When an intra prediction calculation step for writing the rightmost image to the vertical line buffer unit 104 or the vertical line temporary buffer unit 106, and an encoding macroblock size and a prediction mode determination instruction are received in the buffer unit 105, a calculation result holding unit And a prediction mode determination step of reading a calculation result from 108a to 108d, determining a prediction mode according to the encoding macroblock size, and outputting the result, and thus a moving picture coding apparatus capable of reducing the circuit scale and the memory capacity Can be realized.

また、実施の形態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) image holding units 102a to 102d that hold encoded images adjacent to a square shape. The horizontal line buffer unit 103 that holds the upper pixel of the encoded image, the vertical line buffer unit 104 that holds the left pixel of the encoded image, and the horizontal line temporary buffer unit that holds the horizontal pixel in the encoded image 105, a vertical line temporary buffer unit 106 that holds vertical pixels in an encoded image, and 4 n image holding units 102a to 102d that correspond to 4 n image holding units 102a to 102d that hold intra prediction calculation results. A moving picture coding program that uses a computer to implement a moving picture coding apparatus that includes multiplication operation result holding units 108a to 108d. The received encoded macroblock size and the calculation start instruction are output, and when the calculation completion flag is received, the intra prediction control unit 101 that outputs the encoded macroblock size and the prediction mode determination instruction; Receives an encoding macroblock size and a calculation start instruction from the intra prediction control unit 101, and reads out pixels from the horizontal line buffer unit 103 and the vertical line buffer unit 104, or the horizontal line temporary buffer unit 105 and the vertical line temporary buffer unit 106. Filter processing to generate a predicted image, read the encoded image from the image holding units 102a to 102d, calculate the correlation with the predicted image, and output the result to the calculation result holding units 108a to 108d corresponding to the position of the encoded image. The intra prediction calculation result is output, and the read encoded image An intra prediction calculation unit 107 that writes the lowermost image to the horizontal line buffer unit 103 or the horizontal line temporary buffer unit 105, and the rightmost image to the vertical line buffer unit 104 or the vertical line temporary buffer unit 106, and an intra prediction control unit When receiving the encoding macroblock size and prediction mode determination instruction from 101, the prediction mode determination unit 109 reads out the operation results from the operation result holding units 108a to 108d, determines the prediction mode according to the encoding macroblock size, and outputs the result. Therefore, the moving picture encoding apparatus capable of reducing the circuit scale and the memory capacity can be realized using a computer.

実施の形態2.
実施の形態1では、全ての予測モードに対する評価値を算出する例を説明したが、次に、予測モードを制限した場合を実施の形態2として説明する。
図8は、実施の形態2の動画像符号化装置を示す構成図である。
図8において、イントラ予測制御部201は、実施の形態1におけるイントラ予測制御部101の機能に加えて、予測モード演算制限指示を受け取った場合に、この予測モード演算制限指示をイントラ予測演算部202へ出力するよう構成されている。また、イントラ予測演算部202は、イントラ予測制御部201から受け取った予測モード演算制限指示に基づいて、制限された予測モードの予測画生成および評価値の演算を行わないよう構成されている。それ以外の構成は実施の形態1と同様であるため、対応する部分に同一符号を付してその説明を省略する。
Embodiment 2. FIG.
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 prediction control unit 101 in the first embodiment, the intra prediction control unit 201 receives this prediction mode calculation restriction instruction, and receives the prediction mode calculation restriction instruction. It is configured to output to. Further, the intra prediction calculation unit 202 is configured not to perform prediction image generation and evaluation value calculation in the limited prediction mode based on the prediction mode calculation restriction instruction received from the intra prediction control unit 201. Since the other configuration is the same as that of the first embodiment, the same reference numerals are given to the corresponding portions and the description thereof is omitted.

次に、実施の形態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 intra-prediction calculation unit 202 that has received the prediction mode calculation restriction instruction, the macroblock size instruction, and the calculation start instruction from the intra-prediction control unit 201, as in the first embodiment, the horizontal line buffer unit 103, the vertical line buffer unit 104, the horizontal line buffer unit 104, Predictive images are generated by reading neighboring pixels from the temporary line buffer unit 105 and the vertical line temporary buffer unit 106, and encoded images are read from the encoded A / B / C / D image holding units 102a, 102b, 102c, and 102d and predicted. A prediction image for each mode is generated and an evaluation value is calculated. At this time, the calculation result A / B / C / D holding unit 108a does not calculate the prediction image generation and evaluation of the prediction mode restricted by the prediction mode calculation restriction instruction, and calculates the maximum value as the evaluation value of the restricted prediction mode. 108b. 108c and 108d. Since other operations are the same as those in the first embodiment, description thereof is omitted.

以上のように、実施の形態2の動画像符号化装置によれば、イントラ予測制御部201は、予測モード演算制限指示を受け取った場合は、予測モード演算制限指示をイントラ予測演算部202へ出力し、イントラ予測演算部202は、受け取った予測モード演算制限指示に基づいて、制限された予測モードの予測画生成および相関の演算を除外してイントラ予測演算を行うようにしたので、予測モード演算制限指示により制限された予測モードの予測画生成と評価値演算を行わないため、演算量を削減することができる。   As described above, according to the video encoding device of Embodiment 2, when receiving the prediction mode calculation restriction instruction, the intra prediction control unit 201 outputs the prediction mode calculation restriction instruction to the intra prediction calculation unit 202. In addition, since the intra prediction calculation unit 202 performs the intra prediction calculation by excluding the prediction image generation and the correlation calculation of the limited prediction mode based on the received prediction mode calculation restriction instruction, the prediction mode calculation is performed. Since the prediction image generation and the evaluation value calculation in the prediction mode restricted by the restriction instruction are not performed, the calculation amount can be reduced.

実施の形態3.
実施の形態1、2では予測画像と符号化画像の全ての画素を使って予測モード毎の評価値を算出する例を説明したが、次に予測画像と符号化画像を間引いて評価値を算出する例を実施の形態3として説明する。
図9は、実施の形態3の動画像符号化装置を示す構成図である。
図9において、イントラ予測制御部301は、実施の形態1のイントラ予測制御部101の機能に加えて、イントラ予測演算間引き指示を受け取った場合、このイントラ予測演算間引き指示をイントラ予測演算部302へ出力するよう構成されている。また、イントラ予測演算部302は、イントラ予測制御部301から受け取ったイントラ予測演算間引き指示に従って、予測画像および符号化画像を間引いて評価値演算を行うよう構成されている。その他の構成は実施の形態1と同様であるため、対応する部分に同一符号を付してその説明を省略する。
Embodiment 3 FIG.
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 prediction control unit 101 of the first embodiment, the intra prediction control unit 301 receives this intra prediction calculation decimation instruction to the intra prediction calculation unit 302. It is configured to output. In addition, the intra prediction calculation unit 302 is configured to perform evaluation value calculation by thinning out the predicted image and the encoded image in accordance with the intra prediction calculation thinning-out instruction received from the intra prediction control unit 301. Since other configurations are the same as those of the first embodiment, the corresponding parts are denoted by the same reference numerals and description thereof is omitted.

図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 prediction calculation unit 302 of the present invention. In addition to the function of the intra prediction calculation control unit 110 of the first embodiment, the intra prediction calculation control unit 303 is configured to control the thinning processing unit 304 in accordance with an intra prediction calculation thinning instruction. Further, the thinning processing unit 304 includes a prediction image output from the prediction image generation filter 111 according to control of the intra prediction calculation control unit 303, and a code output from the encoded A image holding unit 102a to the encoded D image holding unit 102d. It is a processing part which performs the thinning process of the digitized image. The prediction image generation filter 111 and the difference absolute value sum calculation unit 112 are the same as those in the first embodiment.

次に、実施の形態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 prediction calculation unit 302 that has received the intra prediction calculation decimation instruction, the macroblock size instruction, and the calculation start instruction from the intra prediction control unit 301, as in the first embodiment, the horizontal line buffer unit 103, the vertical line buffer unit 104, Peripheral pixels are read from the line temporary buffer unit 105 and the vertical line temporary buffer unit 106 to generate a predicted image, and the encoded images are read from the encoded A / B / C / D image holding units 102a, 102b, 102c, and 102d. Thereafter, before the evaluation value calculation is performed by the decimation processing unit 304, the decimation process is performed on the predicted image generated according to the intra prediction calculation decimation instruction and the read encoded image. For example, if the intra prediction calculation thinning-out instruction is horizontal 1/2, the prediction image and the encoded image are obtained by thinning every other pixel in the horizontal direction, and if it is vertical 1/2, the prediction image is thinned every other pixel in the vertical direction. If the horizontal ½ and the vertical ½, the prediction image and the coded image are thinned out every other pixel in the horizontal direction and the vertical direction, respectively. An evaluation value is calculated from the predicted image and the encoded image thinned out in this way, and the result is calculated as the operation result A / B / C / D holding unit 108a, 108b. 108c and 108d. Since other operations are the same as those in the first embodiment, description thereof is omitted.

以上のように、実施の形態3の動画像符号化装置によれば、イントラ予測制御部301は、イントラ予測演算間引き指示を受け取った場合は、イントラ予測演算間引き指示をイントラ予測演算部302へ出力し、イントラ予測演算部302は、受け取ったイントラ予測演算間引き指示に従い、予測画画像と符号化画像を間引いて相関の演算を行うようにしたので、評価値を算出する対象の画素数が削減されるため、演算量を削減することができる。   As described above, according to the video encoding device of Embodiment 3, the intra prediction control unit 301 outputs an intra prediction calculation decimation instruction to the intra prediction calculation unit 302 when receiving an intra prediction calculation decimation instruction. In addition, since the intra prediction calculation unit 302 performs the correlation calculation by thinning the predicted image and the encoded image in accordance with the received intra prediction calculation thinning instruction, the number of pixels for which the evaluation value is calculated is reduced. Therefore, the calculation amount can be reduced.

実施の形態4.
実施の形態1〜3では算出された評価値のみを使って予測モード判定を行う形態であったが、次に、評価値と予測モード判定オフセットを使って予測モード判定を行う例を実施の形態4として説明する。
図11は、実施の形態4の動画像符号化装置を示す構成図である。
図11において、イントラ予測制御部401は、実施の形態1のイントラ予測制御部101の機能に加えて、予測モード判定オフセットを受け取った場合に、これを予測モード判定部402へ出力するよう構成されている。予測モード判定部402は、実施の形態1の予測モード判定部109の機能に加えて、イントラ予測制御部401から受け取った予測モード判定オフセットに従い、演算結果A保持部108a〜演算結果D保持部108dから読み出した演算結果に予測モード判定オフセットを加算して予測モードを判定するよう構成されている。その他の構成は実施の形態1と同様であるため、対応する部分に同一符号を付してその説明を省略する。
Embodiment 4 FIG.
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 prediction control unit 401 is configured to output a prediction mode determination offset to the prediction mode determination unit 402 when it receives a prediction mode determination offset in addition to the function of the intra prediction control unit 101 of the first embodiment. ing. In addition to the function of the prediction mode determination unit 109 of the first embodiment, the prediction mode determination unit 402 performs the calculation result A holding unit 108a to the calculation result D holding unit 108d according to the prediction mode determination offset received from the intra prediction control unit 401. The prediction mode is determined by adding the prediction mode determination offset to the calculation result read out from. Since other configurations are the same as those of the first embodiment, the corresponding parts are denoted by the same reference numerals and description thereof is omitted.

次に、実施の形態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 prediction control unit 401 based on the coded macroblock size instruction to the operation result in the intra prediction operation unit 107 being held in the operation result A holding unit 108a to the operation result D holding unit 108d are performed. This is the same as the first embodiment. The prediction mode determination unit 402 that has received the prediction mode determination offset from the intra prediction control unit 401 is designated to read out the prediction mode and its evaluation value from the calculation result A / B / C / D holding units 108a, 108b, 108c, and 108d. The determination offset is added to the evaluation value of the designated prediction mode. Since the offset has positive and negative values, the evaluation value of the prediction mode instructed by the positive offset increases, and the evaluation value of the prediction mode instructed by the negative offset decreases. Based on the evaluation value thus offset-added, the prediction mode determination value is output, for example, by determining the prediction mode having the smallest evaluation value as the optimal prediction mode.

以上のように、実施の形態4の動画像符号化装置によれば、イントラ予測制御部401は、予測モード判定オフセットを受け取った場合は、予測モード判定オフセットを予測モード判定部402へ出力し、予測モード判定部402は、演算結果保持部108a〜108dから読み出した演算結果に予測モード判定オフセットを加算して予測モードを判定するようにしたので、予測モード判定においてオフセットを加味することができるため、判定される予測モードを外部から制御することが可能となり、より適切な予測モードを判定させ画質を向上させることができる。   As described above, according to the video encoding device of Embodiment 4, when receiving the prediction mode determination offset, the intra prediction control unit 401 outputs the prediction mode determination offset to the prediction mode determination unit 402. Since the prediction mode determination unit 402 adds the prediction mode determination offset to the calculation results read from the calculation result holding units 108a to 108d to determine the prediction mode, the prediction mode determination can add the offset. The prediction mode to be determined can be controlled from the outside, and a more appropriate prediction mode can be determined and the image quality can be improved.

実施の形態5.
実施の形態1〜4では、横ラインバッファ部103、縦ラインバッファ部104、横ライン一時バッファ部105、縦ライン一時バッファ部106から読み出した周辺画素をそのまま使用して予測画生成を行う形態であったが、次に、読み出した周辺画素に対して補正を行ったものを使用して予測画生成を行う例を実施の形態5として説明する。
Embodiment 5 FIG.
In the first to fourth embodiments, prediction image generation is performed using peripheral pixels read from the horizontal line buffer unit 103, vertical line buffer unit 104, horizontal line temporary buffer unit 105, and vertical line temporary buffer unit 106 as they are. Next, an example in which predicted image generation is performed using a corrected peripheral pixel that has been read will be described as a fifth embodiment.

図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 prediction control unit 101 of the first embodiment, the intra prediction control unit 501 outputs a peripheral pixel correction instruction to the intra prediction calculation unit 502 when receiving a peripheral pixel correction instruction. It is configured as follows. In addition to the function of the intra prediction calculation unit 107 of the first embodiment, the intra prediction calculation unit 502 performs the horizontal line buffer unit 103 and the vertical line buffer unit 104 according to the peripheral pixel correction instruction received from the intra prediction control unit 501, or An evaluation value is calculated by correcting peripheral pixel values read from the horizontal line temporary buffer unit 105 and the vertical line temporary buffer unit 106. Since other configurations are the same as those in the first embodiment, the same reference numerals are given to corresponding portions, and descriptions thereof are omitted.

図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 prediction calculation unit 502 according to the fifth embodiment. The intra prediction calculation control unit 503 is configured to control the peripheral pixel correction unit 504 according to the peripheral pixel correction instruction from the intra prediction control unit 501 in addition to the function of the intra prediction calculation control unit 110 of the first embodiment. The peripheral pixel correction unit 504 corrects the peripheral pixel values read from the horizontal line buffer unit 103 and the vertical line buffer unit 104, or the horizontal line temporary buffer unit 105 and the vertical line temporary buffer unit 106 according to the control of the intra prediction calculation control unit 503. To do. Other configurations are the same as those of the first embodiment.

次に、実施の形態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 prediction calculation unit 502 that has received the peripheral pixel correction instruction, the macroblock size instruction, and the calculation start instruction from the intra prediction control unit 501 is the horizontal line buffer unit 103, the vertical line buffer unit 104, the horizontal line, as in the first embodiment. The peripheral pixels are read from the temporary buffer unit 105 and the vertical line temporary buffer unit 106. The intra prediction calculation control unit 502 controls the peripheral pixel correction unit 504 for the read peripheral pixels to correct the peripheral pixels. For example, if it is a clipping instruction, pixel values that are above or below the specified value range are clipped, and if it is a low-pass filter process, it is filtered. A predicted image is generated using the peripheral pixels corrected in this way, and an evaluation value with the encoded image read from the encoded A / B / C / D image holding units 102a, 102b, 102c, and 102d is calculated. The result is calculated as an A / B / C / D holding unit 108a, 108b. 108c and 108d. Other operations are the same as those in the first embodiment.

以上のように、実施の形態5の動画像符号化装置によれば、イントラ予測制御部501は、周辺画素補正指示を受け取った場合は、周辺画素補正指示をイントラ予測演算部502へ出力し、イントラ予測演算部502は、受け取った周辺画素補正指示に従い、横ラインバッファ部103および縦ラインバッファ部104、または、横ライン一時バッファ部105および縦ライン一時バッファ部106から読み出した周辺画素値を補正して評価値を算出するようにしたので、周辺画素を補正することができるので、画像の特徴に応じた予測画像の生成が可能となり、より適切な予測モードが選択されることで画質を向上させることができる。   As described above, according to the video encoding device of Embodiment 5, when the intra prediction control unit 501 receives a peripheral pixel correction instruction, the intra prediction control unit 501 outputs the peripheral pixel correction instruction to the intra prediction calculation unit 502. The intra prediction calculation unit 502 corrects the peripheral pixel values read from the horizontal line buffer unit 103 and the vertical line buffer unit 104 or the horizontal line temporary buffer unit 105 and the vertical line temporary buffer unit 106 in accordance with the received peripheral pixel correction instruction. Since the evaluation value is calculated, the surrounding pixels can be corrected, so that a predicted image can be generated according to the image characteristics, and the image quality is improved by selecting a more appropriate prediction mode. Can be made.

実施の形態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 prediction control unit 101 according to the first embodiment, the intra prediction control unit 601 outputs this prediction image correction instruction to the intra prediction calculation unit 602 when receiving a prediction image correction instruction. It is configured as follows. In addition to the function of the intra prediction calculation unit 107 of the first embodiment, the intra prediction calculation unit 602 corrects the generated prediction image and calculates an evaluation value according to the prediction image correction instruction received from the intra prediction control unit 601. It is configured as follows. Since other configurations are the same as those in the first embodiment, the same reference numerals are given to corresponding portions, and descriptions thereof are omitted.

図15は、実施の形態6のイントラ予測演算部602の内部構成を示した図である。イントラ予測演算制御部603は、実施の形態1のイントラ予測演算制御部110の機能に加えて、イントラ予測制御部601からの予測画補正指示に従って予測画補正部604を制御するよう構成されている。また、予測画補正部604は、イントラ予測演算制御部603の制御に従って予測画生成フィルタ111が生成した予測画像を補正するものであり、その他の構成は実施の形態1と同様である。   FIG. 15 is a diagram illustrating an internal configuration of the intra prediction calculation unit 602 according to the sixth embodiment. In addition to the function of the intra prediction calculation control unit 110 of the first embodiment, the intra prediction calculation control unit 603 is configured to control the prediction image correction unit 604 according to the prediction image correction instruction from the intra prediction control unit 601. . The prediction image correction unit 604 corrects the prediction image generated by the prediction image generation filter 111 according to the control of the intra prediction calculation control unit 603, and other configurations are the same as those in the first embodiment.

次に、実施の形態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 prediction calculation unit 602 that has received the prediction image correction instruction, the macroblock size instruction, and the calculation start instruction from the intra prediction control unit 601 has the horizontal line buffer unit 103, the vertical line buffer unit 104, the horizontal line as in the first embodiment. The peripheral pixels are read from the temporary buffer unit 105 and the vertical line temporary buffer unit 106. The intra prediction calculation control unit 603 controls the read neighboring pixels to generate a prediction image for each prediction mode. Further, the intra prediction calculation control unit 603 controls the predicted image correction unit 604 for the predicted image, and corrects the predicted image. For example, if it is a clipping instruction, pixel values that are above or below the specified value range are clipped, and if it is a low-pass filter process, it is filtered. An evaluation value between the predicted image corrected in this way and the encoded images read from the encoded A / B / C / D image holding units 102a, 102b, 102c, and 102d is calculated, and the result is calculated as an operation result A. / B / C / D holding part 108a, 108b. 108c and 108d. Other operations are the same as those in the first embodiment.

以上のように、実施の形態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 prediction control unit 101 of the first embodiment, the intra prediction control unit 701 outputs the prediction mode calculation threshold to the intra prediction calculation unit 702 when receiving the prediction mode calculation threshold. It is configured as follows. In addition to the function of the intra prediction calculation control unit 110 of the first embodiment, the intra prediction calculation unit 702 performs prediction mode generation and evaluation value calculation according to the prediction mode calculation threshold received from the intra prediction control unit 701. If the evaluation value of the calculation result is less than the threshold value, the evaluation value is not calculated for the subsequent prediction mode. Since other configurations are the same as those in the first embodiment, the same reference numerals are given to corresponding portions, and descriptions thereof are omitted.

次に、実施の形態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 intra-prediction calculation unit 702 that has received the prediction mode calculation threshold value, the macroblock size instruction, and the calculation start instruction from the intra-prediction control unit 701 is the horizontal line buffer unit 103, the vertical line buffer unit 104, the horizontal line as in the first embodiment. Peripheral pixels are read out from the temporary buffer unit 105 and the vertical line temporary buffer unit 106 to generate a prediction image, and encoded images are read out from the encoded A / B / C / D image holding units 102a, 102b, 102c, and 102d. An evaluation value is calculated by generating a prediction image of each prediction mode in a predetermined order. After the evaluation value is calculated, the received threshold value is compared with the evaluation value. If the evaluation value is equal to or less than the threshold value, the calculation process is terminated without calculating the evaluation value for the subsequent prediction mode. For the prediction mode in which the calculation is not performed, the maximum value is set as the evaluation value in the calculation result A / B / C / D holding units 108a, 108b. 108c and 108d.

以上のように、実施の形態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(nは1以上の整数)乗個の画像保持部と、
前記符号化画像の上側の画素を保持する横ラインバッファ部と、
前記符号化画像の左側の画素を保持する縦ラインバッファ部と、
前記符号化画像内の水平画素を保持する横ライン一時バッファ部と、
前記符号化画像内の垂直画素を保持する縦ライン一時バッファ部と、
前記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(nは1以上の整数)乗個の画像保持部と、
前記符号化画像の上側の画素を保持する横ラインバッファ部と、
前記符号化画像の左側の画素を保持する縦ラインバッファ部と、
前記符号化画像内の水平画素を保持する横ライン一時バッファ部と、
前記符号化画像内の垂直画素を保持する縦ライン一時バッファ部と、
前記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.
JP2010012089A 2010-01-22 2010-01-22 Apparatus, method and program for encoding of moving picture Pending JP2011151655A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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