JP2007288473A - Coding unit, and image processing unit - Google Patents

Coding unit, and image processing unit Download PDF

Info

Publication number
JP2007288473A
JP2007288473A JP2006113006A JP2006113006A JP2007288473A JP 2007288473 A JP2007288473 A JP 2007288473A JP 2006113006 A JP2006113006 A JP 2006113006A JP 2006113006 A JP2006113006 A JP 2006113006A JP 2007288473 A JP2007288473 A JP 2007288473A
Authority
JP
Japan
Prior art keywords
image
intra
generating
prediction
image data
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
JP2006113006A
Other languages
Japanese (ja)
Inventor
Akihiko Tamura
明彦 田村
Katsumi Tsukada
克巳 塚田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2006113006A priority Critical patent/JP2007288473A/en
Publication of JP2007288473A publication Critical patent/JP2007288473A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a coding unit capable of reducing a load upon an arithmetic unit and providing a high quality moving image with a more compact and simpler structure. <P>SOLUTION: The coding unit includes a motion estimator 212 and a motion compensator 211, for generating an inter-predicted image by comparing the correlation values of image data between frames; a prediction image generator 215 for generating the inter-predicted image, based on the prediction result; after the start of comparing the correlation values in the motion estimator 212 and the motion compensator 211, and before the start of generating the inter-predicted image in the prediction image generator 215; an intra-prediction section 213 for determining an arithmetic mode for generating an intra-predicted image; and the prediction image generator 215 for generating the intra-predicted image, based on the above prediction result. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、符号化装置に係り、特にH.264/AVCを用いて動画像データを符号化する符号化装置及び画像処理装置に関する。   The present invention relates to an encoding apparatus, and more particularly to H.264. The present invention relates to an encoding device and an image processing device that encode moving image data using H.264 / AVC.

現在、携帯電話やTV電話等の小型端末装置において、動画像を符号、復号化する技術が普及している。このような小型端末装置は、当然のことながら携帯するために可能な限り小型、軽量化されることが望ましい。また、装置の普及のためには装置の製造コストを低減して価格を下げる必要がある。
ところで、動画像を符号化する方式の一つに、H.264/AVCがある。H.264/AVCには、画像データの相関値をフレーム間で比較して予測画像を生成するインター予測画像生成処理と、相関値を1フレーム分の画像データを分割して得られるブロック画像間で比較して予測画像を生成するイントラ予測画像生成処理とが行われる。H.264/AVCの処理では、生成されたインター予測画像、イントラ予測画像のいずれか高い圧縮率が得られるものを選択し、選択された画像と符号化の対象となるオリジナル画像との差分を符号化する。
Currently, a technology for encoding and decoding a moving image is widely used in a small terminal device such as a mobile phone or a TV phone. As a matter of course, it is desirable that such a small terminal device be as small and light as possible in order to carry it. Further, in order to spread the apparatus, it is necessary to reduce the manufacturing cost of the apparatus and reduce the price.
By the way, one of the methods for encoding moving images is H.264. H.264 / AVC. H. In H.264 / AVC, inter-prediction image generation processing that generates a predicted image by comparing correlation values of image data between frames, and a correlation value is compared between block images obtained by dividing image data for one frame. Then, intra prediction image generation processing for generating a prediction image is performed. H. In the H.264 / AVC processing, the generated inter prediction image or intra prediction image is selected to obtain a higher compression rate, and the difference between the selected image and the original image to be encoded is encoded. To do.

ところで、イントラ予測は、1フレームを分割して得られる所定の数の画素で構成されるブロック画像ごとに行われる。ブロック画像は、16×16、8×8、4×4というように、同数の画素を縦、横方向配置して構成される。イントラ予測方式で画像データを符号化する場合、符号化の対象となるブロック画像において配置される画素の例えば縦、または横といった特定の配置方向を定め、この方向に沿って先に符号化された他のブロック画像に含まれる画素の画素値から順次画素値を減算する。   By the way, intra prediction is performed for each block image composed of a predetermined number of pixels obtained by dividing one frame. The block image is configured by arranging the same number of pixels in the vertical and horizontal directions, such as 16 × 16, 8 × 8, and 4 × 4. When image data is encoded by the intra prediction method, a specific arrangement direction such as vertical or horizontal, for example, of pixels arranged in a block image to be encoded is determined, and encoded in advance along this direction. Pixel values are sequentially subtracted from pixel values of pixels included in other block images.

なお、上記した処理において、複数の配置方向のうち、配置方向に沿って減算の結果得られる予測誤差値の総和が最も小さい方向が、予測画像生成の際の減算の方向(予測モード)に設定される。各画素の予測誤差値の総和が最も小さくなる方向が減算方向に設定される理由は、予測誤差値の総和が小さいほど符号化後のデータ量が小さくなるためである。   In the above-described processing, the direction with the smallest sum of the prediction error values obtained as a result of subtraction along the arrangement direction among the plurality of arrangement directions is set as the subtraction direction (prediction mode) when generating the predicted image. Is done. The reason that the direction in which the sum of the prediction error values of each pixel is the smallest is set as the subtraction direction is that the amount of data after encoding is smaller as the sum of the prediction error values is smaller.

このようなイントラ予測は、従来の符号化技術に比べて演算量が大きくなり、処理時間が長くなる上に演算装置にかかる負荷をも増大させる。このため、イントラ予測画像の生成処理にかかる負荷を低減することを目的とした従来技術が従来から提案されている。
イントラ予測に関する従来技術としては、例えば、特許文献1が挙げられる。特許文献1は、このようなイントラ予測の処理において、演算に画像の特性を考慮する、あるいは演算に使用されるデータを間引く等の方法によって演算方向を決定するための処理にかかる負荷を軽減するものである。
特開2004−304724号公報
Such intra prediction increases the amount of calculation compared to conventional coding techniques, increases the processing time, and increases the load on the arithmetic unit. For this reason, the prior art aiming at reducing the load concerning the production | generation process of an intra estimated image has been proposed conventionally.
As a prior art regarding intra prediction, for example, Patent Literature 1 can be cited. Japanese Patent Application Laid-Open No. 2004-228561 reduces the load on processing for determining the calculation direction by considering the characteristics of an image for calculation or thinning out data used for calculation in such intra prediction processing. Is.
JP 2004-304724 A

しかしながら、上記した特許文献1は、本来イントラ予測に使用されるべきデータを間引くことによってイントラ予測の精度を低下させるおそれがある。近年、小型端末装置には益々高画質な画像の提供が要求されていて、特許文献1に記載された技術は、処理速度の高速化のため、このような要求に逆行するものであるとも考えられる。
本発明は、以上の点に鑑みてなされたものであり、イントラ予測の精度を維持したまま処理を効率化することにより、より高速にあるいは小型、簡易な構成によって高品質の動画像を提供できる符号化装置、画像処理装置を提供することを目的とする。
However, Patent Document 1 described above may reduce the accuracy of intra prediction by thinning out data that should originally be used for intra prediction. In recent years, small-sized terminal devices have been increasingly required to provide high-quality images, and the technique described in Patent Document 1 is considered to go against such demands in order to increase the processing speed. It is done.
The present invention has been made in view of the above points, and by improving the efficiency of processing while maintaining the accuracy of intra prediction, a high-quality moving image can be provided at a higher speed or with a smaller and simple configuration. An object is to provide an encoding device and an image processing device.

以上の課題を解決するため、本発明の符号化装置は、画像データの相関値をフレーム間で比較してインター予測画像を生成するインター予測画像生成手段と、画像データの相関値を1フレーム分の画像データを分割して得られるブロック画像間で比較してイントラ予測画像を生成するイントラ予測画像生成手段と、前記イントラ予測画像生成手段によるイントラ予測画像の生成のための演算のモードを決定するモード決定手段と、を備え、前記モード決定手段が、前記インター予測画像生成手段による相関値の比較開始後であって、かつインター予測画像の生成開始以前に、イントラ予測画像の生成のための演算のモードを決定することを特徴とする。   In order to solve the above problems, an encoding apparatus according to the present invention includes inter prediction image generation means for generating an inter prediction image by comparing correlation values of image data between frames, and the correlation value of image data for one frame. An intra-predicted image generating unit that generates an intra-predicted image by comparing block images obtained by dividing the image data, and an operation mode for generating the intra-predicted image by the intra-predicted image generating unit Mode determination means, and the mode determination means performs an operation for generating an intra prediction image after the start of comparison of correlation values by the inter prediction image generation means and before the start of generation of the inter prediction image. The mode is determined.

このような発明によれば、画像データの相関値をフレーム間で比較して生成されるインター予測画像、画像データの相関値を1フレーム分の画像データを分割して得られるブロック画像間で比較して生成されるイントラ予測画像を生成可能な構成において、インター予測画像生成手段による相関値の比較開始後であって、かつインター予測画像の生成開始以前に、イントラ予測画像の生成のための演算のモードを決定することができる。   According to such an invention, the inter prediction image generated by comparing the correlation value of the image data between the frames, and the correlation value of the image data are compared between the block images obtained by dividing the image data for one frame. In the configuration capable of generating the intra-predicted image generated in this way, the calculation for generating the intra-predicted image is performed after the start of the comparison of the correlation value by the inter-predicted image generating unit and before the generation of the inter-predicted image Mode can be determined.

このため、処理を効率化し、より高速にあるいは小型、簡易な構成によって画像データを符号化することができる符号化装置を提供することができる。また、このような本発明は、処理効率を高めるにあたって処理対象となるデータを間引く等の方法を用いないので、イントラ予測の精度を維持し、高品質の動画像を提供することができる。
また、本発明の画像処理装置は、符号化装置と、該符号化装置によって符号化された画像データを復号する復号化装置とを備えた画像処理装置であって、前記符号化装置が、画像データの相関値をフレーム間で比較してインター予測画像を生成するインター予測画像生成手段と、画像データの相関値を1フレーム分の画像データを分割して得られるブロック画像間で比較してイントラ予測画像を生成するイントラ予測画像生成手段と、前記インター予測画像生成手段による相関値の比較開始後であって、かつインター予測画像の生成開始以前に、前記イントラ予測画像生成手段によるイントラ予測画像の生成のための演算のモードを決定するモード決定手段と、を備え、前記復号化装置は、前記符号化装置によって符号化された画像データを復号する復号手段と、前記復号手段によって復号された画像データと加算される予測画像を生成する予測画像生成手段と、を備えることを特徴とする。
For this reason, it is possible to provide an encoding device capable of encoding the image data at a higher speed or with a smaller and simpler configuration, making processing more efficient. In addition, since the present invention does not use a method such as thinning out data to be processed in order to increase the processing efficiency, the accuracy of intra prediction can be maintained and a high-quality moving image can be provided.
An image processing apparatus according to the present invention is an image processing apparatus including an encoding device and a decoding device that decodes image data encoded by the encoding device. Inter prediction image generation means for comparing data correlation values between frames to generate an inter prediction image, and comparing the correlation values of image data between block images obtained by dividing image data for one frame. Intra prediction image generation means for generating a prediction image, and after the start of comparison of correlation values by the inter prediction image generation means and before the start of generation of the inter prediction image, the intra prediction image generation means of the intra prediction image generation means Mode determining means for determining a mode of operation for generation, and the decoding device receives the image data encoded by the encoding device. And Gosuru decoding means, characterized in that it comprises, the predicted image generating means for generating a prediction image to be added with the decoded image data by said decoding means.

このような発明によれば、符号化装置において、画像データの相関値をフレーム間で比較して生成されるインター予測画像、画像データの相関値を1フレーム分の画像データを分割して得られるブロック画像間で比較して生成されるイントラ予測画像を生成可能な構成において、インター予測画像生成手段による相関値の比較開始後であって、かつインター予測画像の生成開始以前に、イントラ予測画像の生成のための演算のモードを決定することができる。   According to such an invention, in the encoding device, an inter prediction image generated by comparing the correlation value of image data between frames, and the correlation value of image data can be obtained by dividing image data for one frame. In the configuration capable of generating an intra prediction image generated by comparing between block images, the intra prediction image is generated after the start of the comparison of the correlation value by the inter prediction image generation means and before the generation of the inter prediction image. The mode of operation for generation can be determined.

そして、生成されたイントラ予測画像を使って対象となる画像データを符号化し、復号化装置側で復号することができる。
このため、処理を効率化し、より高速にあるいは小型、簡易な構成によって画像データを符号化し、復号化することができる画像処理装置を提供することができる。また、このような本発明は、処理効率を高めるにあたって処理対象となるデータを間引く等の方法を用いないので、イントラ予測の精度を維持し、高品質の動画像を提供することができる。
And the image data used as object can be encoded using the produced | generated intra estimated image, and it can decode on the decoding apparatus side.
For this reason, it is possible to provide an image processing apparatus that can process efficiently and encode and decode image data at a higher speed or with a small and simple configuration. In addition, since the present invention does not use a method such as thinning out data to be processed in order to increase the processing efficiency, the accuracy of intra prediction can be maintained and a high-quality moving image can be provided.

以下、図を参照して本発明に係る符号化装置、画像処理装置の実施の形態1を説明する。
図1は、本実施形態の符号化装置の構成を説明するための図である。符号化装置は、外部から入力された符号化の対象となる画像データ(入力画像データ)を1マクロブロックずつ順次入力する。そして、入力画像データと、この入力画像データを予測した予測画像データとの差分である予測誤差を符号化する符号化装置である。
Embodiment 1 of an encoding apparatus and an image processing apparatus according to the present invention will be described below with reference to the drawings.
FIG. 1 is a diagram for explaining the configuration of the encoding apparatus according to the present embodiment. The encoding apparatus sequentially inputs image data (input image data) to be encoded, which is input from the outside, one macroblock at a time. The encoding apparatus encodes a prediction error that is a difference between input image data and predicted image data obtained by predicting the input image data.

符号化装置は、ソフトウェアとハードウェアとが共同して動作する構成であって、ソフトウェア処理する構成を図中にプロセッサ1、ハードウェア構成をアクセラレータ2と記す。
プロセッサ1は、予測画像から入力した画像データを減算する減算器202、減算値をアダマール変換あるいはDCT(Discrete Cosine Transform)処理する直行変換部203、直行変換部203で処理されたデータを量子化する量子化部204、量子化された画像データを符号化する可逆符号化部205を備えている。
The encoding device has a configuration in which software and hardware operate together, and a configuration for processing software is referred to as a processor 1 and a hardware configuration is referred to as an accelerator 2 in the drawing.
The processor 1 quantizes the data processed by the subtractor 202 that subtracts the input image data from the predicted image, the direct transform unit 203 that performs Hadamard transform or DCT (Discrete Cosine Transform) processing on the subtraction value, and the direct transform unit 203. The quantization unit 204 includes a lossless encoding unit 205 that encodes the quantized image data.

また、イントラ予測、インター予測では、より正確に予測画像を予測するため、復号された状態の画像データを使ってインター予測及びイントラ予測する。このため、アクセラレータ2は、いったん量子化された画像データを逆量子化する逆量子化部206、先に行われたアダマール変換やDCTの処理と逆の処理する逆直行変換部207、逆直行変換部207によって処理されたデータに予測画像をたし合わせる加算器208を備えている。   In intra prediction and inter prediction, in order to predict a prediction image more accurately, inter prediction and intra prediction are performed using image data in a decoded state. For this reason, the accelerator 2 includes an inverse quantization unit 206 that inversely quantizes image data that has been once quantized, an inverse orthogonal transform unit 207 that performs an inverse process to the Hadamard transform or DCT process performed earlier, and an inverse orthogonal transform. An adder 208 that adds the predicted image to the data processed by the unit 207 is provided.

アクセラレータ2は、加算器208で加算された画像データのブロックノイズの発生を抑制するデブロックフィルタ(Deblocking Filter)部209を備えている。デブロックフィルタ部209は、直行変換のブロック境界のみを平滑化するものである。
また、アクセラレータ2は、加算器208において加算された画像データを蓄積するフレーム蓄積部210を有している。フレーム蓄積部210は、インター予測画像の生成(インター予測を含む)用のデータを蓄積するフレームメモリである。さらに本実施形態の符号化装置は、フレーム蓄積部210に保存されている画像データを使ってインター予測する動き補償部211及びインター予測処理に必要な動きベクトルの検出をする動き推定部212を備えている。動き補償部211は、動き推定部212によって検出された動きベクトルに基づいて入力された画像データとの絶対値差分和の最小値(コストとも記す)に関するデータを生成する。
The accelerator 2 includes a deblocking filter (Deblocking Filter) unit 209 that suppresses the occurrence of block noise in the image data added by the adder 208. The deblocking filter unit 209 smoothes only the block boundary of the orthogonal transform.
The accelerator 2 includes a frame storage unit 210 that stores the image data added by the adder 208. The frame storage unit 210 is a frame memory that stores data for generating an inter predicted image (including inter prediction). Furthermore, the encoding apparatus according to the present embodiment includes a motion compensation unit 211 that performs inter prediction using image data stored in the frame storage unit 210 and a motion estimation unit 212 that detects a motion vector necessary for inter prediction processing. ing. The motion compensation unit 211 generates data relating to the minimum value (also referred to as cost) of the absolute value difference sum from the input image data based on the motion vector detected by the motion estimation unit 212.

また、本実施形態の符号化装置は、イントラ予測を実行するイントラ予測部213を備えている。本実施形態のイントラ予測部213は、入力画像データをマクロブロック単位で入力し、データを間引くことなく予測画像データの圧縮率を演算する。
なお、イントラ予測部213は、マクロブロック単位の演算の複数の種別(イントラ予測のモードと記す。現状ではイントラ予測のモードは8個ある。)のうち、最も高い圧縮率が得られるイントラ予測のモードを選択する。そして、選択されたイントラ予測のモードに関する情報を外部に出力する。
In addition, the encoding apparatus according to the present embodiment includes an intra prediction unit 213 that performs intra prediction. The intra prediction unit 213 according to the present embodiment inputs input image data in units of macroblocks and calculates a compression rate of the predicted image data without thinning out the data.
The intra-prediction unit 213 performs intra-prediction that provides the highest compression ratio among a plurality of types of operations in units of macroblocks (denoted as intra-prediction modes. Currently, there are eight intra-prediction modes). Select a mode. And the information regarding the mode of selected intra prediction is output outside.

インター予測とは、画像データのフレーム間の相関に基づいて予測画像を得る処理である。フレーム間の相関は、動きベクトルの検出によって行われる。また、イントラ予測とは、入力画像データを、1フレーム分の画像データを分割して得られるブロック画像(マクロブロック)間の相関に基づいて予測画像を得る処理である。なお、インター予測、イントラ予測のいずれもが公知の技術であるので、ここではこれ以上の説明を省くものとする。   Inter prediction is a process for obtaining a predicted image based on the correlation between frames of image data. The correlation between frames is performed by detecting a motion vector. Intra prediction is a process of obtaining a predicted image based on the correlation between block images (macroblocks) obtained by dividing input image data from image data for one frame. Since both inter prediction and intra prediction are known techniques, further explanation is omitted here.

さらに、アクセラレータ2は、モード判定部214、予測画像生成部215を備えている。モード判定部214は、動き補償部211から出力されたコスト及び動きベクトル、イントラ予測部213から出力したイントラ予測モードを入力し、インター予測またはイントラ予測を選択する。インター予測またはイントラ予測の選択は、インター予測またはイントラ予測のうち符号化後の画像データの圧縮率がより高いもの、すなわち予測画像の入力画像に対する予測誤差がより少ないものを選択することによって行われる。   Further, the accelerator 2 includes a mode determination unit 214 and a predicted image generation unit 215. The mode determination unit 214 receives the cost and motion vector output from the motion compensation unit 211 and the intra prediction mode output from the intra prediction unit 213, and selects inter prediction or intra prediction. The selection of inter prediction or intra prediction is performed by selecting the inter prediction or intra prediction that has a higher compression ratio of the encoded image data, that is, the prediction image having a smaller prediction error with respect to the input image. .

予測画像生成部215は、モード判定部214によって選択されたインター予測画像またはイントラ予測画像を生成する。なお、図示していないが、予測画像生成部215には動き補償部211に入力される画像データ、イントラ予測部213に入力される画像データが入力されている。
また、図1の構成において、イントラ予測部213は加算器208によって加算された画像データをデブロックフィルタ部209の直前で分岐して入力するものとした。このような構成においては、イントラ予測部213の内部または直前に少なくとも1マクロブロック分の画像データを保存するメモリが設けられる。また、本実施形態は、イントラ予測に入力画像データを使用することも考えられる。
The prediction image generation unit 215 generates the inter prediction image or the intra prediction image selected by the mode determination unit 214. Although not shown, image data input to the motion compensation unit 211 and image data input to the intra prediction unit 213 are input to the predicted image generation unit 215.
In the configuration of FIG. 1, the intra prediction unit 213 branches and inputs the image data added by the adder 208 immediately before the deblocking filter unit 209. In such a configuration, a memory for storing image data for at least one macroblock is provided inside or immediately before the intra prediction unit 213. Moreover, this embodiment can also consider using input image data for intra prediction.

このような本実施形態の符号化装置は、インター予測画像とイントラ予測画像の両方を生成し、いずれか一方が選択されて符号化に使用される。インター予測は、フレーム間で画像データの相関を比較するため、フレーム蓄積部210に1フレーム分の画像データが保存されるまで実行することができない。
一方、イントラ予測は、マクロブロック単位で入力画像データを処理するため、1回のイントラ予測がインター予測よりも短時間のうちに完了する。本発明は、この点に着目してなされたものであって、インター予測の処理の間にイントラ予測及びイントラ予測に基づくマクロブロック単位のイントラ予測画像生成をする。
Such an encoding apparatus of this embodiment generates both an inter prediction image and an intra prediction image, and either one is selected and used for encoding. Since inter prediction compares the correlation of image data between frames, it cannot be executed until image data for one frame is stored in the frame storage unit 210.
On the other hand, since intra prediction processes input image data in units of macroblocks, one intra prediction is completed within a shorter time than inter prediction. The present invention has been made paying attention to this point, and generates intra prediction images in units of macroblocks based on intra prediction and intra prediction during inter prediction processing.

このような本実施形態によれば、イントラ予測画像の生成をインター予測画像の処理待ちの間に実行することによって符号化装置の各機能を有効に利用することができる。各機能部を有効利用することは、より高速にあるいは小型、簡易な構成によって画像データを符号化できる符号化装置を提供することができる。
また、本実施形態は、イントラ予測に使用されるデータ数を低減する等の手法を用いないため、イントラ予測の精度を維持したまま処理を効率化することができる。したがって、処理効率を高めながら高品質の動画像を提供することができる。
According to the present embodiment as described above, each function of the encoding device can be effectively used by generating an intra predicted image while waiting for processing of an inter predicted image. Effective use of each functional unit can provide an encoding device capable of encoding image data at a higher speed or with a small and simple configuration.
Moreover, since this embodiment does not use a technique such as reducing the number of data used for intra prediction, the processing can be made more efficient while maintaining the accuracy of intra prediction. Therefore, it is possible to provide a high-quality moving image while improving the processing efficiency.

図2は、図1に示した各構成と機能との関係を説明するための図である。アクセラレータ2は、入力画像データと、入力画像データの相関値をフレーム間で比較するInter予測コスト計算部105、Inter予測コスト計算部105の予測結果に基づいてインター予測画像を生成するInter予測画像生成部106を備えている。なお、相関値の比較は、動きベクトルの検出によって行われる。Inter予測コスト計算部105及びInter予測画像生成部106は、本実施形態のインター予測画像生成手段として機能する。   FIG. 2 is a diagram for explaining the relationship between each configuration and function shown in FIG. The accelerator 2 compares the input image data and the correlation value of the input image data between frames, and generates an inter prediction image based on the prediction result of the inter prediction cost calculation unit 105 and the inter prediction cost calculation unit 105. Part 106 is provided. The correlation value is compared by detecting a motion vector. The Inter prediction cost calculation unit 105 and the Inter prediction image generation unit 106 function as an inter prediction image generation unit of the present embodiment.

また、アクセラレータ2は、Inter予測コスト計算部105による相関値の比較のための処理開始後であって、かつInter予測画像生成部106によるインター予測画像の生成開始以前に、イントラ予測画像生成手段によるイントラ予測画像の生成のための演算のモードを決定するIntra予測コスト計算部107、決定したイントラ予測モードによってイントラ予測画像を生成するIntra予測画像生成部108を備えている。Intra予測コスト計算部107は、本実施形態のモード決定手段として機能する。   Further, the accelerator 2 uses the intra prediction image generation unit after the start of the process for comparing the correlation value by the inter prediction cost calculation unit 105 and before the generation of the inter prediction image by the inter prediction image generation unit 106. An intra prediction cost calculation unit 107 that determines a calculation mode for generating an intra prediction image, and an intra prediction image generation unit 108 that generates an intra prediction image according to the determined intra prediction mode are provided. The intra prediction cost calculation unit 107 functions as a mode determination unit of the present embodiment.

図2に示したアクセラレータ2の構成のうち、プロセッサ101は上記したアクセラレータ2の機能を統括的に制御するためのプロセッサ1より小型のプロセッサである。プロセッサ101は、モード判定部214として機能するものであってもよい。また、ローカルバッファ103は、各機能が処理を実行する際のワークエリア等として利用するメモリである。アクセラレータ2とバスBによって接続される外部のメモリ102は、アクセラレータが生成した予測画像を受け取るメモリである。   In the configuration of the accelerator 2 shown in FIG. 2, the processor 101 is a smaller processor than the processor 1 for comprehensively controlling the functions of the accelerator 2 described above. The processor 101 may function as the mode determination unit 214. The local buffer 103 is a memory used as a work area or the like when each function executes processing. An external memory 102 connected to the accelerator 2 via the bus B is a memory that receives a predicted image generated by the accelerator.

本実施形態では、図1に示した動き補償部211及び動き推定部212がInter予測コスト計算部105に相当する。また、イントラ予測部213がIntra予測コスト計算部107に相当する。さらに、予測画像生成部215がIntra予測画像生成部108及びInter予測画像生成部106に相当する。
次に、図3のフローチャートを用い、以上述べた本実施形態の符号化装置の動作を説明する。本実施形態の符号化装置は、プロセッサ1からアクセラレータ2に対し、インター予測、イントラ予測のいずれによって画像データを符号化すべきか予測するコマンドが発行されたことによって開始する。
In the present embodiment, the motion compensation unit 211 and the motion estimation unit 212 illustrated in FIG. 1 correspond to the Inter prediction cost calculation unit 105. The intra prediction unit 213 corresponds to the intra prediction cost calculation unit 107. Further, the predicted image generation unit 215 corresponds to the Intra predicted image generation unit 108 and the Inter predicted image generation unit 106.
Next, the operation of the encoding apparatus of the present embodiment described above will be described using the flowchart of FIG. The encoding apparatus according to the present embodiment starts when a command for predicting whether image data should be encoded by inter prediction or intra prediction is issued from the processor 1 to the accelerator 2.

アクセラレータ2は、コマンドを受け取った後、入力画像データ及び逆量子化された差分の画像データを入力する。そして、予測画像のモードを判定する並列処理Aを実行する(SA)。並列処理Aにあっては、動き補償部211によるインター予測(S301)、イントラ予測部213によるイントラ予測(S302)及び予測画像生成部215によるイントラ予測画像の生成(S303)が並列に実行される。   After receiving the command, the accelerator 2 inputs the input image data and the image data of the dequantized difference. And the parallel processing A which determines the mode of an estimated image is performed (SA). In the parallel processing A, inter prediction (S301) by the motion compensation unit 211, intra prediction (S302) by the intra prediction unit 213, and generation of an intra prediction image by the prediction image generation unit 215 (S303) are executed in parallel. .

インター予測とイントラ予測及びイントラ予測画像の並列処理は、図1で述べたように、フレーム蓄積部211と、加算器208で加算された画像データを蓄積するメモリとを別個に設けることによって簡単に実現できる。また、イントラ予測及びイントラ予測画像の生成に入力画像データを使用することによっても可能になる。
モード判定部214は、ステップS301において予測されたインター予測画像を使った場合の予測誤差の最小値と、ステップS302において予測されたイントラ予測モードによって生成されたイントラ予測画像の絶対値差分和とを比較する。そして、符号化後の画像データの圧縮率がより高くなる方式としてインター予測、イントラ予測の一方を選択する。さらに、選択されたインター予測またはイントラ予測のモードを予測画像の生成に適用されるモードに決定する(S304)。
Inter-prediction, intra-prediction, and intra-prediction image parallel processing can be easily performed by separately providing a frame storage unit 211 and a memory for storing the image data added by the adder 208, as described in FIG. realizable. It is also possible to use input image data for intra prediction and generation of an intra predicted image.
The mode determination unit 214 calculates the minimum value of the prediction error when using the inter prediction image predicted in step S301 and the absolute value difference sum of the intra prediction image generated in the intra prediction mode predicted in step S302. Compare. Then, one of inter prediction and intra prediction is selected as a method for increasing the compression rate of the encoded image data. Furthermore, the mode of the selected inter prediction or intra prediction is determined as a mode applied to generation of a prediction image (S304).

本実施形態では、モード判定部214がモードをインター予測に決定した場合(Sインター)、予測画像生成部215は、フレーム間の動きベクトル、処理に使用されたブロック画像のサイズ、参照されるフレーム画像の番号等のパラメータにしたがってインター予測画像を生成する(S305)。生成されたインター予測画像は、減算器202に転送されて入力画像データと減算される。   In the present embodiment, when the mode determination unit 214 determines the mode to inter prediction (S inter), the prediction image generation unit 215 displays the motion vector between frames, the size of the block image used for processing, and the frame to be referred to An inter prediction image is generated according to parameters such as an image number (S305). The generated inter prediction image is transferred to the subtracter 202 and subtracted from the input image data.

また、本実施形態では、インター予測画像と共にフレーム間の動きベクトル、予測のモード、参照されるフレーム画像の番号を含む情報をパラメータとして出力するものとする。この情報は、符号化された画像データを復号側で復号する際に必要な情報であって、符号化装置から出力される符号化された予測誤差のデータに付加される。
また、モード判定部214がモードをイントラ予測に決定した場合(Sイントラ)、予測画像生成部215は、ステップS302において決定されたイントラ予測のモードにしたがい、ステップS303において生成されたイントラ予測画像を減算器202に転送する(S306)。本実施形態では、イントラ予測画像と共にイントラ予測画像の生成に使用されたイントラ予測のモードを含むパラメータが出力される。パラメータは、符号化された画像データを復号側で復号する際に必要な情報であって、符号化装置から出力される符号化された予測誤差のデータに付加される。
Further, in the present embodiment, information including a motion vector between frames, a prediction mode, and a frame image number to be referred to is output as a parameter together with the inter prediction image. This information is information necessary for decoding the encoded image data on the decoding side, and is added to the encoded prediction error data output from the encoding device.
In addition, when the mode determination unit 214 determines the mode to intra prediction (S intra), the predicted image generation unit 215 uses the intra predicted image generated in step S303 according to the intra prediction mode determined in step S302. The data is transferred to the subtracter 202 (S306). In the present embodiment, parameters including the intra prediction mode used to generate the intra prediction image are output together with the intra prediction image. The parameter is information necessary for decoding the encoded image data on the decoding side, and is added to the encoded prediction error data output from the encoding device.

以上述べた本実施形態は、インター予測画像をするために1フレーム分の画像データがフレーム蓄積部210に蓄積されるまでの間にイントラ予測及びイントラ予測画像の生成を完了することができる。このため、モード判定部215がモードをイントラ予測に決定した場合、改めてイントラ予測画像を生成することなく生成されているイントラ予測画像を減算器202に転送することができる。   In the present embodiment described above, intra prediction and generation of an intra predicted image can be completed before one frame of image data is stored in the frame storage unit 210 in order to form an inter predicted image. For this reason, when the mode determination unit 215 determines the mode to intra prediction, the intra prediction image generated without generating the intra prediction image again can be transferred to the subtracter 202.

また、モード判定部215がモードをインター予測に決定した場合、生成されたイントラ予測画像を廃棄して改めてインター予測画像を生成すればよい。このような場合にあっても、廃棄されるイントラ予測画像はインター予測の間に生成されたものである。したがって、イントラ予測画像生成のために符号化の処理時間が長くなること、あるいは処理効率の低下は起こらない。   In addition, when the mode determination unit 215 determines the mode to inter prediction, the generated intra prediction image may be discarded and an inter prediction image may be generated again. Even in such a case, the intra prediction image to be discarded is generated during the inter prediction. Therefore, the encoding processing time for generating an intra predicted image does not increase or the processing efficiency does not decrease.

なお、以上述べた本実施形態では、ステップS304においてモードが決定してからインター予測画像を生成しているが、本実施形態はこのような構成に限定されるものではない。すなわち、従来の通りモード決定の以前にインター予測画像を生成し、先に生成されたイントラ予測画像と比較して一方を符号化に使用した場合にも、本実施形態はイントラ予測画像を改めて生成する必要がない。したがって、本発明は、符号化装置の処理効率を高める効果を奏する。   In the present embodiment described above, the inter prediction image is generated after the mode is determined in step S304. However, the present embodiment is not limited to such a configuration. That is, when the inter prediction image is generated before mode determination as in the past and one is used for encoding as compared with the previously generated intra prediction image, the present embodiment generates the intra prediction image again. There is no need to do. Therefore, the present invention has an effect of increasing the processing efficiency of the encoding device.

図4は、以上述べた本実施形態の符号化装置の特徴と比較するために示した従来の構成の動作を示すフローチャートである。従来構成では、インター予測の後(S401)、予測結果に基づいてインター予測画像が生成される(S402)。続いて、イントラ予測を実行し(S403)、実行の結果イントラ予測のモードを決定する。そして、決定したモードにしたがってイントラ予測画像を生成する(S404)。   FIG. 4 is a flowchart showing the operation of the conventional configuration shown for comparison with the characteristics of the encoding apparatus of the present embodiment described above. In the conventional configuration, after inter prediction (S401), an inter prediction image is generated based on the prediction result (S402). Subsequently, intra prediction is executed (S403), and the mode of intra prediction is determined as a result of the execution. Then, an intra-predicted image is generated according to the determined mode (S404).

生成されたインター予測画像、イントラ予測画像は、モード判定部に入力される。そして、モード判定部がインター予測画像、イントラ予測画像のうちいずれか一方をモードに決定する(S405)。モード判定部は、選択したモードにしたがってインター予測画像またはイントラ予測画像を減算器に転送する(S406、S407)。符号化装置は、転送された予測画像を入力画像データと減算されるものとして得る(S408)。   The generated inter prediction image and intra prediction image are input to the mode determination unit. Then, the mode determination unit determines one of the inter predicted image and the intra predicted image as a mode (S405). The mode determination unit transfers the inter prediction image or the intra prediction image to the subtracter according to the selected mode (S406, S407). The encoding apparatus obtains the transferred predicted image as subtracted from the input image data (S408).

このような従来例は、インター予測画像を生成した後に改めてイントラ予測画像を生成することが必要である。このような従来例に比べ、インター予測画像を生成する間にイントラ予測画像を生成する本実施形態の符号化装置は、予測画像を生成する処理にかかる時間や機能部の負荷を軽減することができる。
以上述べた本実施形態の符号化装置は、符号化装置単独で機器等に設けることが可能である。また、符号化装置と組み合わせて画像処理装置を構成することも可能である。図5に復号化装置の一例を示す。なお、図5に示した構成のうち、図1で説明した構成と同様の構成については同様の符号を付し、説明を一部略すものとする。
In such a conventional example, it is necessary to generate an intra prediction image again after generating an inter prediction image. Compared to such a conventional example, the encoding apparatus according to the present embodiment that generates an intra-prediction image while generating an inter-prediction image can reduce the time required for processing to generate the prediction image and the load on the functional unit. it can.
The encoding apparatus of the present embodiment described above can be provided in a device or the like by the encoding apparatus alone. It is also possible to configure an image processing device in combination with an encoding device. FIG. 5 shows an example of a decoding device. Note that, in the configuration illustrated in FIG. 5, the same configuration as the configuration described in FIG.

図示した復号化装置は、先に述べた本実施形態の符号化装置によって符号化された予測誤差データを復号する復号部501と、復号部501によって復号された画像データと加算される予測画像を生成するための逆量子化部206、逆直行返還部207、デブロックフィルタ部209、フレーム蓄積部210、予測画像生成部215、モード判定部214を備えている。   The illustrated decoding apparatus includes a decoding unit 501 that decodes prediction error data encoded by the encoding apparatus of the present embodiment described above, and a prediction image that is added to the image data decoded by the decoding unit 501. An inverse quantization unit 206, an inverse orthogonal return unit 207, a deblock filter unit 209, a frame storage unit 210, a predicted image generation unit 215, and a mode determination unit 214 are provided.

なお、復号化装置には、一般にインター予測、イントラ予測の結果が符号化されたデータと共に入力される。このため、独自にインター予測、イントラ予測をする必要がなく、符号化装置のようにインター予測の間にイントラ予測をする構成を要するものではない。   Note that generally, the results of inter prediction and intra prediction are input to the decoding apparatus together with the encoded data. For this reason, it is not necessary to perform inter prediction and intra prediction independently, and a configuration for performing intra prediction during inter prediction as in the case of an encoding device is not required.

本発明の一実施形態の符号化装置の構成を説明するための図である。It is a figure for demonstrating the structure of the encoding apparatus of one Embodiment of this invention. 図1に示した各構成と機能との関係を説明するための図である。It is a figure for demonstrating the relationship between each structure and function shown in FIG. 本発明の一実施形態の符号化装置の動作を説明するためのフローチャートである。It is a flowchart for demonstrating operation | movement of the encoding apparatus of one Embodiment of this invention. 本発明の一実施形態の符号化装置の特徴と比較するために示した従来の構成の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the conventional structure shown in order to compare with the characteristic of the encoding apparatus of one Embodiment of this invention. 本発明の一実施形態の復号化装置の構成を説明するための図である。It is a figure for demonstrating the structure of the decoding apparatus of one Embodiment of this invention.

符号の説明Explanation of symbols

1,101 プロセッサ、2 アクセラレータ、102 メモリ、103 ローカルバッファ、105 Inter予測コスト計算部,106 Inter予測画像生成部,107 Intra予測コスト計算部、108 Intra予測画像生成部、201 符号化制御部、202 減算器、203 直行変換部、204 量子化部、205 可逆符号化部、206 可逆量子化部、207 逆直行変換部、208 加算器、209 デブロックフィルタ部、210 フレーム蓄積部、211 動き補償部、212 動き推定部、213 イントラ予測部、214 モード判定部、215 予測画像生成部、501 復号部 DESCRIPTION OF SYMBOLS 1,101 Processor, 2 Accelerator, 102 Memory, 103 Local buffer, 105 Inter prediction cost calculation part, 106 Inter prediction image generation part, 107 Intra prediction cost calculation part, 108 Intra prediction image generation part, 201 Coding control part, 202 Subtractor, 203 Direct transformation unit, 204 Quantization unit, 205 Lossless encoding unit, 206 Lossless quantization unit, 207 Inverse transformation unit, 208 Adder, 209 Deblock filter unit, 210 Frame accumulation unit, 211 Motion compensation unit 212 motion estimation unit, 213 intra prediction unit, 214 mode determination unit, 215 predicted image generation unit, 501 decoding unit

Claims (2)

画像データの相関値をフレーム間で比較してインター予測画像を生成するインター予測画像生成手段と、
画像データの相関値を1フレーム分の画像データを分割して得られるブロック画像間で比較してイントラ予測画像を生成するイントラ予測画像生成手段と、
前記イントラ予測画像生成手段によるイントラ予測画像の生成のための演算のモードを決定するモード決定手段と、
を備え、
前記モード決定手段は、前記インター予測画像生成手段による相関値の比較開始後であって、かつインター予測画像の生成開始以前に、イントラ予測画像の生成のための演算のモードを決定することを特徴とする符号化装置。
An inter prediction image generating means for generating an inter prediction image by comparing correlation values of image data between frames;
An intra-predicted image generating means for generating an intra-predicted image by comparing the correlation values of image data between block images obtained by dividing image data for one frame;
Mode determining means for determining a mode of calculation for generating an intra predicted image by the intra predicted image generating means;
With
The mode determination unit determines a calculation mode for generating an intra prediction image after the start of comparison of correlation values by the inter prediction image generation unit and before the start of generation of an inter prediction image. An encoding device.
符号化装置と、該符号化装置によって符号化された画像データを復号する復号化装置とを備えた画像処理装置であって、
前記符号化装置は、
画像データの相関値をフレーム間で比較してインター予測画像を生成するインター予測画像生成手段と、
画像データの相関値を1フレーム分の画像データを分割して得られるブロック画像間で比較してイントラ予測画像を生成するイントラ予測画像生成手段と、
前記インター予測画像生成手段による相関値の比較開始後であって、かつインター予測画像の生成開始以前に、前記イントラ予測画像生成手段によるイントラ予測画像の生成のための演算のモードを決定するモード決定手段と、を備え、
前記復号化装置は、
前記符号化装置によって符号化された画像データを復号する復号手段と、前記復号手段によって復号された画像データと加算される予測画像を生成する予測画像生成手段と、を備えることを特徴とする画像処理装置。

An image processing apparatus comprising: an encoding device; and a decoding device that decodes image data encoded by the encoding device,
The encoding device includes:
An inter prediction image generating means for generating an inter prediction image by comparing correlation values of image data between frames;
An intra-predicted image generating means for generating an intra-predicted image by comparing the correlation values of image data between block images obtained by dividing image data for one frame;
Mode determination for determining an operation mode for generating an intra-predicted image by the intra-predicted image generating unit after the start of comparison of correlation values by the inter-predicted image generating unit and before starting the generation of the inter-predicted image Means, and
The decoding device
An image comprising: decoding means for decoding image data encoded by the encoding device; and prediction image generation means for generating a prediction image to be added to the image data decoded by the decoding means. Processing equipment.

JP2006113006A 2006-04-17 2006-04-17 Coding unit, and image processing unit Pending JP2007288473A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006113006A JP2007288473A (en) 2006-04-17 2006-04-17 Coding unit, and image processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006113006A JP2007288473A (en) 2006-04-17 2006-04-17 Coding unit, and image processing unit

Publications (1)

Publication Number Publication Date
JP2007288473A true JP2007288473A (en) 2007-11-01

Family

ID=38759832

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006113006A Pending JP2007288473A (en) 2006-04-17 2006-04-17 Coding unit, and image processing unit

Country Status (1)

Country Link
JP (1) JP2007288473A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012175548A (en) * 2011-02-23 2012-09-10 Hitachi Kokusai Electric Inc Moving image encoding apparatus and moving image encoding method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012175548A (en) * 2011-02-23 2012-09-10 Hitachi Kokusai Electric Inc Moving image encoding apparatus and moving image encoding method

Similar Documents

Publication Publication Date Title
US8279942B2 (en) Image data processing apparatus, image data processing method, program for image data processing method, and recording medium recording program for image data processing method
CA2863170C (en) Video decoder, video encoder, video decoding method, and video encoding method
KR101362590B1 (en) Image processing device and method
JP4501631B2 (en) Image coding apparatus and method, computer program for image coding apparatus, and portable terminal
JP4635016B2 (en) Information processing apparatus and inter prediction mode determination method
US9332275B2 (en) Methods, apparatuses, and programs for encoding and decoding picture
JP2010016454A (en) Image encoding apparatus and method, image decoding apparatus and method, and program
US20240031576A1 (en) Method and apparatus for video predictive coding
KR101623064B1 (en) Video encoding device, video encoding method and video encoding program
JP4732184B2 (en) Moving picture encoding apparatus and control method therefor, computer program, and storage medium
JP2007251865A (en) Image data processing apparatus, image data processing method, program for image data processing method, and recording medium recording program for image data processing method
JP2007013298A (en) Image coding apparatus
JP2013115583A (en) Moving image encoder, control method of the same, and program
JP2008017225A (en) Communication terminal device
JP4922101B2 (en) Information processing apparatus and inter prediction mode determination method
US8792549B2 (en) Decoder-derived geometric transformations for motion compensated inter prediction
KR20090041944A (en) Method and apparatus for motion estimation using mode information of neighbor blocks
JP2007110409A (en) Image processing device and program for making computer perform image processing method
JP2007288473A (en) Coding unit, and image processing unit
TWI493942B (en) Moving picture coding method, moving picture coding apparatus, and moving picture coding program
JP2007259247A (en) Encoding device, decoding device, and data processing system
JP2007288674A (en) Coding unit, decoding unit, and image processing unit
JP2007208802A (en) Image encoding apparatus and image encoding method
WO2019187396A1 (en) Image decoding device, image coding device, image processing system, image decoding method, and program
WO2021248135A1 (en) Methods and apparatuses for video coding using satd based cost calculation