JP2007266861A - Image encoding device - Google Patents

Image encoding device Download PDF

Info

Publication number
JP2007266861A
JP2007266861A JP2006087582A JP2006087582A JP2007266861A JP 2007266861 A JP2007266861 A JP 2007266861A JP 2006087582 A JP2006087582 A JP 2006087582A JP 2006087582 A JP2006087582 A JP 2006087582A JP 2007266861 A JP2007266861 A JP 2007266861A
Authority
JP
Japan
Prior art keywords
unit
pixels
image
processing
register
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
JP2006087582A
Other languages
Japanese (ja)
Inventor
Takushi Tashiro
拓志 田代
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan Ltd
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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP2006087582A priority Critical patent/JP2007266861A/en
Publication of JP2007266861A publication Critical patent/JP2007266861A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To reduce a circuit size of an image encoding device by performing and repeating processing of a pixel block size of the minimum processing unit. <P>SOLUTION: The image encoding device repeats and performs various processing of intra prediction, excess in 4×4 pixel and 16×16 pixel units in a decoding processing unit 3, discrete cosine transformation, quantization, etc., and respective processing of excess in 8×8 pixel unit, quantization, inverse quantization, addition, and SATD (Sum of Absolute Transformed Difference) addition, in a 4×4 pixel unit. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、画像を圧縮符号化する画像符号化装置に関する。   The present invention relates to an image encoding device that compresses and encodes an image.

近年、MPEG−2やMPEG−4に代表される画像圧縮符号化方式が、ビデオカメラやディスクレコーダ等、一般家庭用機器にも幅広く使用されている。   In recent years, image compression coding systems represented by MPEG-2 and MPEG-4 have been widely used in general household equipment such as video cameras and disk recorders.

しかし、これらの方法は、割り当てる符号量が圧縮画像の質を大きく左右し、特に低ビットレートで激烈な画像の劣化を伴う。今後、高解像度の画像圧縮符号化はより一般的になると考えられ、より高い符号化効率を持つ符号化方式が強く求められている。   However, in these methods, the amount of codes to be assigned greatly affects the quality of the compressed image, and is accompanied by drastic image degradation particularly at a low bit rate. In the future, high-resolution image compression coding will be more common, and there is a strong demand for coding schemes with higher coding efficiency.

近年実用化が進みつつあるH.264|MPEG−4 AVC(ITU-T Rec. H.264 | ISO/IEC 14496-10 MPEG-4 Part10 Advanced Video Coding)もその一つである。以降、この規格をH.264/AVCと呼ぶことにする。H.264/AVCは、MPEG−2と比べ2倍から3倍の符号化効率を持つことが知られている。   In recent years, H.P. One example is H.264 | MPEG-4 AVC (ITU-T Rec. H.264 | ISO / IEC 14496-10 MPEG-4 Part 10 Advanced Video Coding). Hereinafter, this standard is referred to as H.264. It will be called H.264 / AVC. H. H.264 / AVC is known to have encoding efficiency twice to three times that of MPEG-2.

H.264/AVCの符号化においては、ブロック毎にブロックサイズを4×4〜16×16画素に変えることができ、画像に応じてその中から最適のブロックサイズを選択して符号化することにより、符号化効率を向上させている。   H. In H.264 / AVC encoding, the block size can be changed to 4 × 4 to 16 × 16 pixels for each block, and by selecting and encoding the optimum block size from among them according to the image, Encoding efficiency is improved.

ここで、H.264/AVCに基づいた従来の画像符号化装置を、図面を参照して説明する。   Here, H. A conventional image coding apparatus based on H.264 / AVC will be described with reference to the drawings.

図3は従来の画像符号化装置の構成を示すブロック図である。図3に示すように、H.264/AVCに基づいた従来の画像符号化装置は、インター予測部10、輝度4×4処理部20、輝度8×8処理部40、輝度16×16処理部60、色差4×4処理部80、選択部101、制御部102、デブロックフィルタ106、エントロピー符号化部107を備える。また、制御部102は、レジスタ103、選択結果格納部104、ラインメモリ105を備える。   FIG. 3 is a block diagram showing a configuration of a conventional image coding apparatus. As shown in FIG. A conventional image coding apparatus based on H.264 / AVC includes an inter prediction unit 10, a luminance 4 × 4 processing unit 20, a luminance 8 × 8 processing unit 40, a luminance 16 × 16 processing unit 60, and a color difference 4 × 4 processing unit 80. A selection unit 101, a control unit 102, a deblocking filter 106, and an entropy encoding unit 107. The control unit 102 includes a register 103, a selection result storage unit 104, and a line memory 105.

図3において、画像信号がインター予測部10に入力されると、インター予測部10は、インター予測処理を行い、動きベクトル情報等を含むインター予測データを生成する。そして、生成したインター予測データと原画像の画像信号とを、輝度4×4処理部20、輝度8×8処理部40、輝度16×16処理部60、および色差4×4処理部80に供給する。   In FIG. 3, when an image signal is input to the inter prediction unit 10, the inter prediction unit 10 performs inter prediction processing and generates inter prediction data including motion vector information and the like. Then, the generated inter prediction data and the image signal of the original image are supplied to the luminance 4 × 4 processing unit 20, the luminance 8 × 8 processing unit 40, the luminance 16 × 16 processing unit 60, and the color difference 4 × 4 processing unit 80. To do.

また、輝度4×4処理部20、輝度8×8処理部40、輝度16×16処理部60、および色差4×4処理部80には、制御部102のラインメモリ105に予め格納されている周辺情報が入力される。周辺情報は、符号化対象のブロックの周辺にある復号済みの画素の画素値である。   The luminance 4 × 4 processing unit 20, the luminance 8 × 8 processing unit 40, the luminance 16 × 16 processing unit 60, and the color difference 4 × 4 processing unit 80 are stored in advance in the line memory 105 of the control unit 102. Peripheral information is input. The peripheral information is a pixel value of a pixel that has been decoded around the block to be encoded.

輝度4×4処理部20、輝度8×8処理部40、輝度16×16処理部60、および色差4×4処理部80では、後述する処理により、原画像とインター予測データまたは周辺情報とから、それぞれSATD(Sum of Absolute Transformed Difference)が評価値として算出され、算出されたSATDは選択部101に供給される。   In the luminance 4 × 4 processing unit 20, the luminance 8 × 8 processing unit 40, the luminance 16 × 16 processing unit 60, and the color difference 4 × 4 processing unit 80, an original image and inter-prediction data or peripheral information are obtained by processing described later. , SATD (Sum of Absolute Transformed Difference) is calculated as an evaluation value, and the calculated SATD is supplied to the selection unit 101.

選択部101は、入力されたSATD(評価値)に基づいて、SATDが最も小さいブロックサイズを、最も符号量の少ないブロックサイズとして選択する。輝度信号については、インター予測データを用いてSATDを算出した場合は、4×4画素,8×8画素のいずれかが選択される。また、周辺情報を用いてSATDを算出した場合は、4×4画素,8×8画素,16×16画素の中から選択される。つまり、輝度信号については、ブロックサイズは、4×4画素(インター),8×8画素(インター),4×4画素(イントラ),8×8画素(イントラ),16×16画素(イントラ)の5種類の中から選択される。   The selection unit 101 selects the block size with the smallest SATD as the block size with the smallest code amount based on the input SATD (evaluation value). As for the luminance signal, when SATD is calculated using inter prediction data, either 4 × 4 pixels or 8 × 8 pixels is selected. When the SATD is calculated using the peripheral information, it is selected from 4 × 4 pixels, 8 × 8 pixels, and 16 × 16 pixels. That is, for the luminance signal, the block size is 4 × 4 pixels (inter), 8 × 8 pixels (inter), 4 × 4 pixels (intra), 8 × 8 pixels (intra), 16 × 16 pixels (intra). Are selected from the following five types.

また、色差信号については、4×4画素(インター),4×4画素(イントラ)のいずれかが選択される。   For the color difference signal, either 4 × 4 pixels (inter) or 4 × 4 pixels (intra) is selected.

さらに、周辺情報を用いてSATDを算出した場合については、選択部101において、予測モードも選択される。輝度信号の場合、4×4画素(イントラ),8×8画素(イントラ)についてはそれぞれ9種類、16×16画素(イントラ)については4種類の中から選択される。また、色差信号の場合、4×4画素(イントラ)について4種類の中から選択される。   Further, when the SATD is calculated using the peripheral information, the selection unit 101 also selects the prediction mode. In the case of a luminance signal, 9 types are selected for 4 × 4 pixels (intra) and 8 × 8 pixels (intra), and 4 types are selected for 16 × 16 pixels (intra). In the case of a color difference signal, 4 × 4 pixels (intra) are selected from four types.

選択部101は、最も符号量の少ないブロックサイズ(および予測モード)を選択すると、その結果を選択結果格納部104に供給する。   When selecting the block size (and prediction mode) with the smallest code amount, the selection unit 101 supplies the result to the selection result storage unit 104.

そして、制御部102は、供給された選択結果に基づき、輝度信号について、輝度4×4処理部20、輝度8×8処理部40、輝度16×16処理部60のうちの1つに、後述する内部復号処理を行わせる。これにより生成された復号画像情報は、制御部102のレジスタ103に格納される。   Then, based on the supplied selection result, the control unit 102 sends a luminance signal to one of the luminance 4 × 4 processing unit 20, the luminance 8 × 8 processing unit 40, and the luminance 16 × 16 processing unit 60, which will be described later. The internal decoding process is performed. The decoded image information generated thereby is stored in the register 103 of the control unit 102.

その後、制御部102は、色差信号について、選択されたブロックサイズ単位で、色差4×4処理部80に後述する内部復号処理を行わせる。これにより生成された復号画像情報は、制御部102のレジスタ103に格納される。また、ここで内部復号処理における量子化処理により生成される量子化データは、制御部102のレジスタ103に格納される。   Thereafter, the control unit 102 causes the color difference 4 × 4 processing unit 80 to perform an internal decoding process to be described later on the color difference signal in units of the selected block size. The decoded image information generated thereby is stored in the register 103 of the control unit 102. Here, the quantized data generated by the quantization process in the inner decoding process is stored in the register 103 of the control unit 102.

制御部102は、レジスタ103に格納された量子化データをエントロピー符号化部107に供給し、エントロピー符号化部107は、この量子化データにエントロピー符号化処理を施して符号化データとして出力する。   The control unit 102 supplies the quantized data stored in the register 103 to the entropy encoding unit 107, and the entropy encoding unit 107 performs entropy encoding processing on the quantized data and outputs it as encoded data.

制御部102のレジスタ103に格納された復号画像情報は、デブロックフィルタ106に供給され、ブロック歪を除去する処理が施された後、制御部102のラインメモリ105に格納され、輝度4×4処理部20、輝度8×8処理部40等において周辺情報として使用される。   The decoded image information stored in the register 103 of the control unit 102 is supplied to the deblocking filter 106, subjected to a process for removing block distortion, and then stored in the line memory 105 of the control unit 102. The luminance 4 × 4 It is used as peripheral information in the processing unit 20, the luminance 8 × 8 processing unit 40, and the like.

ここで、輝度4×4処理部20について、図4を参照して説明する。図4に示すように、輝度4×4処理部20は、画像レジスタ21、予測データレジスタ22、減算部23、離散アダマール変換(DHT:Discrete Hadamard Transform)部24、SATD加算部25、離散コサイン変換(DCT:Discrete Cosine Transform)部26、量子化部27、逆量子化部28、逆離散コサイン変換(IDCT:Inverse DCT)部29、加算部30、セレクタ31を備える。輝度4×4処理部20に備えられた各部は、すべて4×4画素単位で処理を行う。   Here, the luminance 4 × 4 processing unit 20 will be described with reference to FIG. As shown in FIG. 4, the luminance 4 × 4 processing unit 20 includes an image register 21, a prediction data register 22, a subtraction unit 23, a discrete Hadamard transform (DHT) unit 24, a SATD addition unit 25, and a discrete cosine transform. (DCT: Discrete Cosine Transform) section 26, quantization section 27, inverse quantization section 28, inverse discrete cosine transform (IDCT) section 29, addition section 30, and selector 31 are provided. Each unit included in the luminance 4 × 4 processing unit 20 performs processing in units of 4 × 4 pixels.

図4において、画像レジスタ21は、インター予測部10から入力された原画像の画像信号(輝度信号)を格納する。予測データレジスタ22は、インター予測部10からセレクタ31を介して入力されるインター予測データと、ラインメモリ105からセレクタ31を介して入力される周辺情報とを格納する。   In FIG. 4, the image register 21 stores the image signal (luminance signal) of the original image input from the inter prediction unit 10. The prediction data register 22 stores inter prediction data input from the inter prediction unit 10 via the selector 31 and peripheral information input from the line memory 105 via the selector 31.

まず、インター予測データを用いてSATDを算出する場合、減算部23において、原画像の画像信号とインター予測データとの差分情報が生成され、この差分情報は離散アダマール変換部24に供給される。離散アダマール変換部24では、この差分情報に離散アダマール変換が施され、得られた変換係数はSATD加算部25において合計され、算出されたSATDは選択部101に供給される。   First, when calculating SATD using inter prediction data, the subtraction unit 23 generates difference information between the image signal of the original image and the inter prediction data, and the difference information is supplied to the discrete Hadamard transform unit 24. In the discrete Hadamard transform unit 24, the discrete Hadamard transform is performed on the difference information, and the obtained transform coefficients are summed in the SATD addition unit 25, and the calculated SATD is supplied to the selection unit 101.

周辺情報を用いてSATDを算出する場合、減算部23において、原画像の画像信号と周辺情報との差分情報が生成される。その後は上記と同様にSATDが算出され、選択部101に供給される。   When calculating the SATD using the peripheral information, the subtracting unit 23 generates difference information between the image signal of the original image and the peripheral information. Thereafter, the SATD is calculated and supplied to the selection unit 101 in the same manner as described above.

次に、内部復号処理について説明する。選択部101により、輝度信号の処理ブロックサイズについて、4×4画素(インター)または4×4画素(イントラ)が選択されたとき、輝度4×4処理部20において、内部復号処理が行われる。   Next, the internal decoding process will be described. When the selection unit 101 selects 4 × 4 pixels (inter) or 4 × 4 pixels (intra) for the processing block size of the luminance signal, the luminance 4 × 4 processing unit 20 performs an internal decoding process.

4×4画素(インター)が選択されたとき、減算部23において、原画像の画像信号と予測データレジスタ22に格納されているインター予測データとの差分情報が生成され、この差分情報は離散コサイン変換部26に供給される。   When 4 × 4 pixels (inter) is selected, difference information between the image signal of the original image and the inter prediction data stored in the prediction data register 22 is generated in the subtraction unit 23, and this difference information is a discrete cosine. It is supplied to the conversion unit 26.

離散コサイン変換部26では、この差分情報に離散コサイン変換が施され、得られたDCT係数は量子化部27に供給される。量子化部27では、DCT係数の量子化がなされ、生成された量子化データは、制御部102のレジスタ103および逆量子化部28に出力される。   In the discrete cosine transform unit 26, discrete cosine transform is performed on the difference information, and the obtained DCT coefficients are supplied to the quantization unit 27. The quantization unit 27 quantizes the DCT coefficients, and the generated quantized data is output to the register 103 and the inverse quantization unit 28 of the control unit 102.

逆量子化部28に供給された量子化データは、そこで逆量子化がなされ、その逆量子化されたデータは、逆離散コサイン変換部29に供給されて逆離散コサイン変換が施され、復号された差分情報となる。   The quantized data supplied to the inverse quantization unit 28 is inversely quantized there, and the inversely quantized data is supplied to the inverse discrete cosine transform unit 29 to be subjected to inverse discrete cosine transform and decoded. Difference information.

復号された差分情報は、加算部30において、予測データレジスタ22に格納されているインター予測データと加算され、復号画像情報となって制御部102のレジスタ103に出力される。   The decoded difference information is added to the inter prediction data stored in the prediction data register 22 in the adding unit 30 and is output to the register 103 of the control unit 102 as decoded image information.

次に、輝度信号の処理ブロックサイズとして4×4画素(イントラ)が選択されたとき、減算部23において、原画像の画像信号と予測データレジスタ22に格納されている周辺情報との差分情報が生成され、この差分情報は離散コサイン変換部26に供給される。その他の処理は4×4画素(インター)が選択されたときと同様である。   Next, when 4 × 4 pixels (intra) is selected as the processing block size of the luminance signal, the subtraction unit 23 obtains difference information between the image signal of the original image and the peripheral information stored in the prediction data register 22. The difference information is generated and supplied to the discrete cosine transform unit 26. Other processes are the same as when 4 × 4 pixels (inter) are selected.

次に、輝度8×8処理部40について、図5を参照して説明する。図5に示すように、輝度8×8処理部40は、画像レジスタ41、予測データレジスタ42、減算部43、離散アダマール変換部44、SATD加算部45、離散コサイン変換部46、量子化部47、逆量子化部48、逆離散コサイン変換部49、加算部50、セレクタ51を備える。   Next, the luminance 8 × 8 processing unit 40 will be described with reference to FIG. As shown in FIG. 5, the luminance 8 × 8 processing unit 40 includes an image register 41, a prediction data register 42, a subtraction unit 43, a discrete Hadamard transform unit 44, a SATD addition unit 45, a discrete cosine transform unit 46, and a quantization unit 47. , An inverse quantization unit 48, an inverse discrete cosine transform unit 49, an addition unit 50, and a selector 51.

輝度8×8処理部40においても、上記の輝度4×4処理部20と同様の処理によりSATDが算出され、選択部101に供給される。   Also in the luminance 8 × 8 processing unit 40, the SATD is calculated by the same process as the luminance 4 × 4 processing unit 20 and is supplied to the selection unit 101.

そして、選択部101により、輝度信号の処理ブロックサイズについて、8×8画素(インター)または8×8画素(イントラ)が選択されたとき、輝度8×8処理部40において、内部復号処理が行われる。輝度8×8処理部40においては、すべての処理が8×8画素単位で行われること以外は、輝度4×4処理部20と同様の処理が行われる。   When the selection unit 101 selects 8 × 8 pixels (inter) or 8 × 8 pixels (intra) for the processing block size of the luminance signal, the luminance 8 × 8 processing unit 40 performs an internal decoding process. Is called. The luminance 8 × 8 processing unit 40 performs the same processing as the luminance 4 × 4 processing unit 20 except that all processing is performed in units of 8 × 8 pixels.

次に、輝度16×16処理部60について、図6を参照して説明する。図6に示すように、輝度16×16処理部60は、画像レジスタ61、予測データレジスタ62、減算部63、離散アダマール変換部64、SATD加算部65、離散コサイン変換部66、離散アダマール変換部67、量子化部68、逆量子化部69、逆離散アダマール変換(IDHT:Inverse DHT)部70、逆離散コサイン変換部71、加算部72、セレクタ73を備える。   Next, the luminance 16 × 16 processing unit 60 will be described with reference to FIG. As shown in FIG. 6, the luminance 16 × 16 processing unit 60 includes an image register 61, a prediction data register 62, a subtraction unit 63, a discrete Hadamard transform unit 64, a SATD addition unit 65, a discrete cosine transform unit 66, and a discrete Hadamard transform unit. 67, a quantization unit 68, an inverse quantization unit 69, an inverse discrete Hadamard transform (IDHT: Inverse DHT) unit 70, an inverse discrete cosine transform unit 71, an addition unit 72, and a selector 73.

図6において、画像レジスタ61は、インター予測部10から入力された原画像の画像信号を格納する。予測データレジスタ62は、インター予測部10からセレクタ73を介して入力されるインター予測データと、ラインメモリ105からセレクタ73を介して入力される周辺情報とを格納する。   In FIG. 6, the image register 61 stores the image signal of the original image input from the inter prediction unit 10. The prediction data register 62 stores inter prediction data input from the inter prediction unit 10 via the selector 73 and peripheral information input from the line memory 105 via the selector 73.

まず、インター予測データを用いてSATDを算出する場合、減算部63において、原画像の画像信号とインター予測データとの差分情報が生成され、この差分情報は離散アダマール変換部64に供給される。離散アダマール変換部64では、この差分情報に離散アダマール変換が施され、得られた変換係数はSATD加算部65において合計され、算出されたSATDは選択部101に供給される。ここで、減算部63、離散アダマール変換部64、SATD加算部65ではそれぞれ、16×16画素を16個のブロックに分割した4×4画素単位の処理が16回繰り返し行われる。   First, when calculating the SATD using inter prediction data, the subtraction unit 63 generates difference information between the image signal of the original image and the inter prediction data, and this difference information is supplied to the discrete Hadamard transform unit 64. In the discrete Hadamard transform unit 64, the discrete Hadamard transform is performed on the difference information, and the obtained transform coefficients are summed in the SATD addition unit 65, and the calculated SATD is supplied to the selection unit 101. Here, each of the subtracting unit 63, discrete Hadamard transforming unit 64, and SATD adding unit 65 repeats the processing in units of 4 × 4 pixels by dividing 16 × 16 pixels into 16 blocks.

周辺情報を用いてSATDを算出する場合、減算部63において、原画像の画像信号と周辺情報との差分情報が生成される。その後は上記と同様にSATDが算出され、選択部101に供給される。   When calculating the SATD using the peripheral information, the subtracting unit 63 generates difference information between the image signal of the original image and the peripheral information. Thereafter, the SATD is calculated and supplied to the selection unit 101 in the same manner as described above.

次に、内部復号処理について説明する。選択部101により、輝度信号の処理ブロックサイズについて、16×16画素(イントラ)が選択されたとき、輝度16×16処理部60において、内部復号処理が行われる。   Next, the internal decoding process will be described. When the selection unit 101 selects 16 × 16 pixels (intra) for the processing block size of the luminance signal, the luminance 16 × 16 processing unit 60 performs an internal decoding process.

16×16画素(イントラ)が選択されたとき、減算部63において、原画像の画像信号と予測データレジスタ62に格納されているインター予測データとの差分情報が生成され、この差分情報は離散コサイン変換部66に供給される。   When 16 × 16 pixels (intra) is selected, difference information between the image signal of the original image and the inter prediction data stored in the prediction data register 62 is generated in the subtraction unit 63, and this difference information is the discrete cosine. This is supplied to the conversion unit 66.

離散コサイン変換部66では、この差分情報に離散コサイン変換が施される。離散コサイン変換部66では、4×4画素単位の処理が16回繰り返し行われ、DCT係数の直流(DC)成分が16個得られる。得られた直流成分は、離散アダマール変換部67に供給される。また、離散コサイン変換部66で得られたDCT係数の交流(AC)成分は、量子化部68に供給される。   In the discrete cosine transform unit 66, discrete cosine transform is performed on the difference information. In the discrete cosine transform unit 66, processing in units of 4 × 4 pixels is repeatedly performed 16 times, and 16 direct current (DC) components of the DCT coefficient are obtained. The obtained direct current component is supplied to the discrete Hadamard transform unit 67. The alternating current (AC) component of the DCT coefficient obtained by the discrete cosine transform unit 66 is supplied to the quantization unit 68.

離散アダマール変換部67では、離散コサイン変換部66から入力された16個の直流成分をまとめて4×4画素の直流ブロックが構成され、この4×4画素直流ブロックに離散アダマール変換が施される。ここで得られた変換係数は、量子化部68に供給される。   In the discrete Hadamard transform unit 67, the 16 DC components input from the discrete cosine transform unit 66 are combined to form a 4 × 4 pixel DC block, and the discrete Hadamard transform is performed on the 4 × 4 pixel DC block. . The transform coefficient obtained here is supplied to the quantization unit 68.

そして、量子化部68では、離散コサイン変換部66から入力されるDCT係数の交流成分に量子化処理が施されて量子化データが生成され、この交流成分の量子化データは制御部102内のレジスタ103と、逆量子化部69とに供給される。これは4×4画素単位で16回繰り返される。   The quantizing unit 68 quantizes the AC component of the DCT coefficient input from the discrete cosine transform unit 66 to generate quantized data, and the quantized data of the AC component is stored in the control unit 102. This is supplied to the register 103 and the inverse quantization unit 69. This is repeated 16 times in units of 4 × 4 pixels.

また、量子化部68では、離散アダマール変換部67からの変換係数に量子化処理が施され、生成された量子化データは逆離散アダマール変換部70に供給される。   Further, the quantization unit 68 performs quantization processing on the transform coefficient from the discrete Hadamard transform unit 67, and the generated quantized data is supplied to the inverse discrete Hadamard transform unit 70.

DCT係数の直流成分の量子化データは、逆離散アダマール変換部70において逆離散アダマール変換が施される。逆離散アダマール変換部70の出力となる、逆離散アダマール変換された直流成分は、逆量子化部69に供給され、ここで逆量子化処理が施される。逆量子化された直流成分のデータは逆離散コサイン変換部71に供給される。   The inverse discrete Hadamard transform unit 70 performs inverse discrete Hadamard transform on the quantized data of the DC component of the DCT coefficient. The DC component subjected to the inverse discrete Hadamard transform, which is the output of the inverse discrete Hadamard transform unit 70, is supplied to the inverse quantization unit 69, where an inverse quantization process is performed. The inversely quantized DC component data is supplied to the inverse discrete cosine transform unit 71.

また、逆量子化部69では、量子化部68からの交流成分の量子化データに逆量子化処理が施される。逆量子化された交流成分のデータは逆離散コサイン変換部71に供給される。   Further, in the inverse quantization unit 69, inverse quantization processing is performed on the quantized data of the AC component from the quantization unit 68. The inverse quantized AC component data is supplied to the inverse discrete cosine transform unit 71.

逆離散コサイン変換部71では、逆量子化されたデータについて、直流成分を元の位置に戻し、直流成分1画素と交流成分15画素とからなる16(4×4)画素の単位で逆離散コサイン変換が施され、復号された差分情報となる。これは4×4画素単位で16回繰り返される。   The inverse discrete cosine transform unit 71 returns the direct current component to the original position for the inversely quantized data, and the inverse discrete cosine in units of 16 (4 × 4) pixels including 1 direct current component pixel and 15 alternating current component pixels. Conversion is performed and the difference information is decoded. This is repeated 16 times in units of 4 × 4 pixels.

復号された差分情報は、加算部72において、予測データレジスタ62に格納されている周辺情報と加算され、復号画像情報となって制御部102のレジスタ103に出力される。   The decoded difference information is added to the peripheral information stored in the prediction data register 62 in the adding unit 72, and is output to the register 103 of the control unit 102 as decoded image information.

次に、色差4×4処理部80について、図7を参照して説明する。図7に示すように、色差4×4処理部80は、画像レジスタ81、予測データレジスタ82、減算部83、離散アダマール変換部84、SATD加算部85、離散コサイン変換部86、量子化部87、逆量子化部88、逆離散コサイン変換部89、加算部90、離散アダマール変換部91、量子化部92、逆離散アダマール変換部93、逆量子化部94、セレクタ95を備える。   Next, the color difference 4 × 4 processing unit 80 will be described with reference to FIG. As shown in FIG. 7, the color difference 4 × 4 processing unit 80 includes an image register 81, a prediction data register 82, a subtraction unit 83, a discrete Hadamard transform unit 84, a SATD addition unit 85, a discrete cosine transform unit 86, and a quantization unit 87. , An inverse quantization unit 88, an inverse discrete cosine transform unit 89, an addition unit 90, a discrete Hadamard transform unit 91, a quantization unit 92, an inverse discrete Hadamard transform unit 93, an inverse quantization unit 94, and a selector 95.

ここで、色差4×4処理部80において、離散アダマール変換部91、量子化部92、逆離散アダマール変換部93、逆量子化部94を除く各部では、8×8画素ブロックを4つのブロックに分割した4×4画素単位の処理が、C,Cについてそれぞれ行われるため、4×4画素単位の処理が8回行われる。 Here, in the color difference 4 × 4 processing unit 80, in each unit excluding the discrete Hadamard transform unit 91, the quantization unit 92, the inverse discrete Hadamard transform unit 93, and the inverse quantization unit 94, the 8 × 8 pixel block is changed to four blocks. Since the divided 4 × 4 pixel unit processing is performed for C b and C r , the 4 × 4 pixel unit processing is performed 8 times.

図7において、画像レジスタ81は、インター予測部10から入力された原画像の画像信号(色差信号)を格納する。予測データレジスタ82は、インター予測部10からセレクタ95を介して入力されるインター予測データと、ラインメモリ105からセレクタ95を介して入力される周辺情報とを格納する。   In FIG. 7, the image register 81 stores the image signal (color difference signal) of the original image input from the inter prediction unit 10. The prediction data register 82 stores inter prediction data input from the inter prediction unit 10 via the selector 95 and peripheral information input from the line memory 105 via the selector 95.

まず、インター予測データを用いてSATDを算出する場合、減算部83において、原画像の画像信号とインター予測データとの差分情報が生成され、この差分情報は離散アダマール変換部84に供給される。離散アダマール変換部84では、この差分情報に離散アダマール変換が施され、得られた変換係数はSATD加算部85において合計され、算出されたSATDは選択部101に供給される。   First, when calculating the SATD using inter prediction data, the subtraction unit 83 generates difference information between the image signal of the original image and the inter prediction data, and this difference information is supplied to the discrete Hadamard transform unit 84. In the discrete Hadamard transform unit 84, the discrete Hadamard transform is performed on the difference information, and the obtained transform coefficients are summed in the SATD addition unit 85, and the calculated SATD is supplied to the selection unit 101.

周辺情報を用いてSATDを算出する場合、減算部83において、原画像の画像信号と周辺情報との差分情報が生成される。その後は上記と同様にSATDが算出され、選択部101に供給される。   When calculating the SATD using the peripheral information, the subtraction unit 83 generates difference information between the image signal of the original image and the peripheral information. Thereafter, the SATD is calculated and supplied to the selection unit 101 in the same manner as described above.

次に、内部復号処理について説明する。選択部101により、色差信号の処理ブロックサイズについて、4×4画素(インター)が選択されたとき、減算部83において、原画像の画像信号と予測データレジスタ82に格納されているインター予測データとの差分情報が生成され、この差分情報は離散コサイン変換部86に供給される。   Next, the internal decoding process will be described. When the selection unit 101 selects 4 × 4 pixels (inter) for the processing block size of the color difference signal, the subtraction unit 83 selects the image signal of the original image and the inter prediction data stored in the prediction data register 82. Difference information is generated, and this difference information is supplied to the discrete cosine transform unit 86.

離散コサイン変換部86では、この差分情報に離散コサイン変換が施される。得られたDCT係数の交流成分は、量子化部87に供給される。また、離散コサイン変換部86では、DCT係数の直流成分が4個得られる。得られた直流成分は、離散アダマール変換部91に供給される。   The discrete cosine transform unit 86 performs discrete cosine transform on the difference information. The AC component of the obtained DCT coefficient is supplied to the quantization unit 87. The discrete cosine transform unit 86 obtains four DC components of the DCT coefficient. The obtained direct current component is supplied to the discrete Hadamard transform unit 91.

そして、量子化部87では、離散コサイン変換部86から入力されるDCT係数の交流成分に量子化処理が施されて量子化データが生成され、この交流成分の量子化データは制御部102内のレジスタ103と、逆量子化部88とに供給される。   In the quantizing unit 87, the AC component of the DCT coefficient input from the discrete cosine transform unit 86 is quantized to generate quantized data, and the quantized data of the AC component is stored in the control unit 102. This is supplied to the register 103 and the inverse quantization unit 88.

逆量子化部88に供給された交流成分の量子化データは、そこで逆量子化がなされ、その逆量子化された交流成分のデータは、逆離散コサイン変換部89に供給される。   The quantized data of the AC component supplied to the inverse quantization unit 88 is inversely quantized there, and the AC data of the inverse quantized AC component is supplied to the inverse discrete cosine transform unit 89.

一方、離散アダマール変換部91では、離散コサイン変換部86から入力された4個の直流成分をまとめて2×2画素の直流ブロックが構成され、この2×2画素直流ブロックに離散アダマール変換が施される。ここで得られた変換係数は、量子化部92に供給される。   On the other hand, the discrete Hadamard transform unit 91 combines the four DC components input from the discrete cosine transform unit 86 to form a DC block of 2 × 2 pixels, and performs the discrete Hadamard transform on the 2 × 2 pixel DC block. Is done. The transform coefficient obtained here is supplied to the quantization unit 92.

また、量子化部92では、離散アダマール変換部91からの変換係数に量子化処理が施される。量子化部92で生成された量子化データは逆離散アダマール変換部93に供給され、ここで逆離散アダマール変換が施される。逆離散アダマール変換部93の出力となる、逆離散アダマール変換された直流成分は、逆量子化部94に供給され、ここで逆量子化処理が施される。逆量子化された直流成分のデータは逆離散コサイン変換部89に供給される。   In addition, the quantization unit 92 performs a quantization process on the transform coefficient from the discrete Hadamard transform unit 91. The quantized data generated by the quantization unit 92 is supplied to the inverse discrete Hadamard transform unit 93, where the inverse discrete Hadamard transform is performed. The DC component subjected to the inverse discrete Hadamard transform, which is the output of the inverse discrete Hadamard transform unit 93, is supplied to the inverse quantization unit 94, where inverse quantization processing is performed. The inversely quantized DC component data is supplied to the inverse discrete cosine transform unit 89.

逆離散コサイン変換部89では、逆量子化されたデータについて、直流成分を元の位置に戻し、直流成分1画素と交流成分15画素とからなる16(4×4)画素の単位で逆離散コサイン変換が施され、復号された差分情報となる。   In the inverse discrete cosine transform unit 89, the DC component of the inverse quantized data is returned to the original position, and the inverse discrete cosine is obtained in units of 16 (4 × 4) pixels including one DC component and 15 AC components. Conversion is performed and the difference information is decoded.

復号された差分情報は、加算部90において、予測データレジスタ82に格納されている周辺情報と加算され、復号画像情報となって制御部102のレジスタ103に出力される。   The decoded difference information is added to the peripheral information stored in the prediction data register 82 in the adding unit 90, and is output to the register 103 of the control unit 102 as decoded image information.

次に、色差信号の処理ブロックサイズとして4×4画素(イントラ)が選択されたとき、減算部83において、原画像の画像信号と予測データレジスタ82に格納されている周辺情報との差分情報が生成され、この差分情報は離散コサイン変換部86に供給される。その他の処理は4×4画素(インター)が選択されたときと同様である。   Next, when 4 × 4 pixels (intra) is selected as the processing block size of the color difference signal, the subtraction unit 83 obtains difference information between the image signal of the original image and the peripheral information stored in the prediction data register 82. The difference information is generated and supplied to the discrete cosine transform unit 86. Other processes are the same as when 4 × 4 pixels (inter) are selected.

なお、H.264/AVC画像符号化方式に関しては、非特許文献1,2に詳細が記載されている。
Joint Video Team(JVT) of ISO/IEC MPEG & ITU−T VCEG,「Draft ITU-T Recommendation and Final Draft International Standard of Joint Video Specification (ITU-T Rec. H.264 | ISO/IEC 14496-10 AVC) 」, 2003.5 大久保榮監修、「H.264/AVC教科書」、インプレス、2004年8月11日
H. The details of the H.264 / AVC image coding system are described in Non-Patent Documents 1 and 2.
Joint Video Team (JVT) of ISO / IEC MPEG & ITU-T VCEG, “Draft ITU-T Recommendation and Final Draft International Standard of Joint Video Specification (ITU-T Rec. H.264 | ISO / IEC 14496-10 AVC) ”, 2003.5 Supervised by Satoshi Okubo, “H.264 / AVC Textbook”, Impress, August 11, 2004

上述のように、H.264/AVCのようなブロック分割を用いた高能率の画像圧縮方式においては、マクロブロック(16×16画素)内を4×4画素、8×8画素、16×16画素と様々なブロックサイズで処理を行う。   As mentioned above, H.M. In a high-efficiency image compression method using block division such as H.264 / AVC, macroblocks (16 × 16 pixels) have various block sizes such as 4 × 4 pixels, 8 × 8 pixels, and 16 × 16 pixels. Process.

このため、図3〜7に示す輝度4×4処理部20、輝度8×8処理部40、輝度16×16処理部60、色差4×4処理部80のように、各々のブロックサイズに対応した演算処理回路が必要となる。   Therefore, it corresponds to each block size, such as the luminance 4 × 4 processing unit 20, the luminance 8 × 8 processing unit 40, the luminance 16 × 16 processing unit 60, and the color difference 4 × 4 processing unit 80 shown in FIGS. An arithmetic processing circuit is required.

また、図5に示す輝度8×8処理部40の減算部43、量子化部47、逆量子化部48、加算部50、SATD加算部45は、図4に示す輝度4×4処理部20の対応する各部と比べて、回路規模にして4倍となる。   In addition, the subtraction unit 43, the quantization unit 47, the inverse quantization unit 48, the addition unit 50, and the SATD addition unit 45 of the luminance 8 × 8 processing unit 40 illustrated in FIG. 5 are the luminance 4 × 4 processing unit 20 illustrated in FIG. The circuit scale is four times that of the corresponding parts.

このように、H.264/AVCの画像圧縮符号化方式においては、画像符号化装置における回路規模が極端に大きくなるという問題があった。   In this way, H.C. In the H.264 / AVC image compression coding system, there has been a problem that the circuit scale of the image coding apparatus becomes extremely large.

特に、リアルタイムでの圧縮処理を行う場合は、高速で処理することが必要となり、このため回路規模がより大きくなる傾向がある。また、回路規模の増大に伴う消費電力の増加も問題となる。   In particular, when performing compression processing in real time, it is necessary to perform processing at high speed, which tends to increase the circuit scale. In addition, an increase in power consumption accompanying an increase in circuit scale is also a problem.

そこで本発明は、H.264/AVC画像圧縮符号化方式のように様々なブロックサイズで演算処理をおこなう方式を用いた画像符号化装置において、回路規模を削減することを目的とする。   Therefore, the present invention relates to H.264. An object of the present invention is to reduce the circuit scale in an image encoding apparatus using a method that performs arithmetic processing with various block sizes such as the H.264 / AVC image compression encoding method.

本発明の画像符号化装置は、画像を画素ブロックに分割して、画素ブロックごとに符号化処理を行う画像符号化装置であって、原画像と予測画像との差分情報をアダマール変換して生成された変換係数の総和を評価値として算出する評価値算出処理を最小処理単位の画素ブロックサイズで行い、複数の画素ブロックサイズに対応して最小処理単位の画素ブロックサイズの処理を繰り返すことにより、前記複数の画素ブロックサイズのそれぞれの評価値を算出する評価値算出手段と、この評価値算出手段で算出された前記評価値に基づいて符号化処理の処理単位となる画素ブロックサイズを選択する選択手段と、前記原画像と前記予測画像との差分情報を直交変換して生成された直交変換係数を量子化し、生成された量子化データを逆量子化し、生成された逆量子化データを逆直交変換して復号された差分情報を生成し、この復号された差分情報に前記予測画像を加算して復号画像情報を生成する内部復号処理を行う内部復号手段とを備え、この内部復号手段は、前記選択手段において選択された画素ブロックサイズに応じて、最小処理単位の画素ブロックサイズの処理を繰り返し行うことを特徴とする。   The image coding apparatus according to the present invention is an image coding apparatus that divides an image into pixel blocks and performs coding processing for each pixel block, and generates the difference information between an original image and a predicted image by Hadamard transform By performing the evaluation value calculation process for calculating the sum of the conversion coefficients as an evaluation value with the pixel block size of the minimum processing unit, by repeating the processing of the pixel block size of the minimum processing unit corresponding to a plurality of pixel block sizes, Evaluation value calculating means for calculating each evaluation value of the plurality of pixel block sizes, and selection for selecting a pixel block size as a processing unit of the encoding process based on the evaluation value calculated by the evaluation value calculating means Means for quantizing an orthogonal transform coefficient generated by orthogonal transform of difference information between the original image and the predicted image, and dequantizing the generated quantized data Inner decoding means for performing an inner decoding process for generating decoded difference information by generating inverse difference transform of the generated inverse quantized data and adding the predicted image to the decoded difference information The internal decoding unit repeatedly performs the processing of the pixel block size of the minimum processing unit according to the pixel block size selected by the selection unit.

本発明の画像符号化装置は、符号化処理の処理単位となる画素ブロックサイズを選択するための評価値を算出する処理、および選択された画素ブロックサイズに応じた内部復号処理において、最小処理単位の画素ブロックサイズの処理を繰り返し行うことにより各種の画素ブロックサイズの処理を行うので、すべての画素ブロックサイズに対応した演算処理回路を設ける必要がなく、回路規模を削減することができる。   An image encoding apparatus according to the present invention includes a minimum processing unit in processing for calculating an evaluation value for selecting a pixel block size as a processing unit of encoding processing, and in internal decoding processing in accordance with the selected pixel block size. Since processing of various pixel block sizes is performed by repeatedly performing the processing of the pixel block size, it is not necessary to provide an arithmetic processing circuit corresponding to all pixel block sizes, and the circuit scale can be reduced.

以下、本発明の画像符号化装置を実施するための最良の形態について、図面を参照して説明する。   Hereinafter, the best mode for carrying out the image coding apparatus of the present invention will be described with reference to the drawings.

図1は本発明の実施形態に係る画像符号化装置の構成を示すブロック図、図2は図1に示す画像符号化装置における制御部およびイントラ予測・復号処理部を詳細に示すブロック図である。   FIG. 1 is a block diagram showing a configuration of an image encoding device according to an embodiment of the present invention, and FIG. 2 is a block diagram showing in detail a control unit and an intra prediction / decoding processing unit in the image encoding device shown in FIG. .

図1,2に示すように、本実施形態の画像符号化装置は、インター予測部1、制御部2、イントラ予測・復号処理部3、デブロックフィルタ4、エントロピー符号化部5を備える。制御部2は、RAM201、レジスタ202、ラインメモリ203、セレクタ204〜216を備える。また、イントラ予測・復号処理部3は、離散アダマール変換部301,302、SATD加算部303、選択部304、減算部305、離散コサイン変換部306,307、離散アダマール変換部308、量子化部309、逆量子化部310、逆離散コサイン変換部311,312、加算部313を備える。   As shown in FIGS. 1 and 2, the image coding apparatus according to the present embodiment includes an inter prediction unit 1, a control unit 2, an intra prediction / decoding processing unit 3, a deblocking filter 4, and an entropy coding unit 5. The control unit 2 includes a RAM 201, a register 202, a line memory 203, and selectors 204 to 216. The intra prediction / decoding processing unit 3 includes discrete Hadamard transform units 301 and 302, a SATD addition unit 303, a selection unit 304, a subtraction unit 305, discrete cosine transform units 306 and 307, a discrete Hadamard transform unit 308, and a quantization unit 309. , An inverse quantization unit 310, inverse discrete cosine transform units 311 and 312, and an addition unit 313.

インター予測部1は、画像信号が入力されると、インター予測処理を行い、動きベクトル情報等を含むインター予測データを生成し、RAM201に出力する。また、インター予測部1は、入力された画像信号をRAM201に出力する。RAM201は、インター予測部1からのインター予測データおよび画像信号を記憶する。   When the image signal is input, the inter prediction unit 1 performs inter prediction processing, generates inter prediction data including motion vector information and the like, and outputs the inter prediction data to the RAM 201. Further, the inter prediction unit 1 outputs the input image signal to the RAM 201. The RAM 201 stores the inter prediction data and the image signal from the inter prediction unit 1.

レジスタ202は、原画像の画像信号、インター予測データ、周辺情報、およびイントラ予測・復号処理部3で生成される各種データを記憶する。ラインメモリ203は、すでに復号された画像情報を、周辺情報として予め記憶する。   The register 202 stores an image signal of the original image, inter prediction data, peripheral information, and various data generated by the intra prediction / decoding processing unit 3. The line memory 203 stores in advance the already decoded image information as peripheral information.

セレクタ204は、RAM201に記憶したインター予測データ、またはラインメモリ203に記憶した周辺情報を選択してレジスタ202に出力する。   The selector 204 selects the inter prediction data stored in the RAM 201 or the peripheral information stored in the line memory 203 and outputs it to the register 202.

減算部305は、レジスタ202からセレクタ209を介して原画像信号、インター予測データまたは周辺情報が入力されると、4×4画素単位で、原画像とインター予測データの差分情報、または原画像とイントラ予測データの差分情報を生成する。生成した差分情報は、レジスタ202と離散コサイン変換部306に出力する。   When the original image signal, the inter prediction data, or the peripheral information is input from the register 202 via the selector 209, the subtraction unit 305 outputs the difference information between the original image and the inter prediction data or the original image in units of 4 × 4 pixels. Difference information of intra prediction data is generated. The generated difference information is output to the register 202 and the discrete cosine transform unit 306.

セレクタ209は、原画像信号、インター予測データまたは周辺情報を減算部305に出力する。   The selector 209 outputs the original image signal, inter prediction data, or peripheral information to the subtraction unit 305.

離散アダマール変換部301は、減算部305で生成された差分情報がセレクタ205を介して入力されると、4×4画素単位で、差分情報に離散アダマール変換を施し、変換係数をレジスタ202に出力する。また、離散アダマール変換部301は、減算部305で生成された差分情報が離散コサイン変換されて得られるDCT係数の直流成分に離散アダマール変換を施して変換係数を生成する。また、離散アダマール変換部301は、この直流成分の変換係数を量子化したデータに逆離散アダマール変換を施す。   When the difference information generated by the subtraction unit 305 is input via the selector 205, the discrete Hadamard transform unit 301 performs the discrete Hadamard transform on the difference information in units of 4 × 4 pixels, and outputs the transform coefficient to the register 202. To do. Also, the discrete Hadamard transform unit 301 generates a transform coefficient by performing a discrete Hadamard transform on the DC component of the DCT coefficient obtained by subjecting the difference information generated by the subtractor 305 to a discrete cosine transform. The discrete Hadamard transform unit 301 performs inverse discrete Hadamard transform on the data obtained by quantizing the transform coefficient of the DC component.

セレクタ205は、減算部305で生成された差分情報、この差分情報が離散コサイン変換されて得られるDCT係数の直流成分、この直流成分の変換係数を量子化したデータ、の中から離散アダマール変換部301への出力を選択する。   The selector 205 is a discrete Hadamard transform unit among the difference information generated by the subtraction unit 305, a DC component of a DCT coefficient obtained by subjecting the difference information to discrete cosine transform, and data obtained by quantizing the transform coefficient of the DC component. Select the output to 301.

離散アダマール変換部302は、減算部305で生成された差分情報が、レジスタ202からセレクタ206を介して入力されると、8×8画素単位で、差分情報に離散アダマール変換を施し、変換係数をレジスタ202に出力する。   When the difference information generated by the subtraction unit 305 is input from the register 202 via the selector 206, the discrete Hadamard transform unit 302 performs a discrete Hadamard transform on the difference information in units of 8 × 8 pixels, and obtains a transform coefficient. Output to the register 202.

セレクタ206は、減算部305で生成された差分情報をレジスタ202から離散アダマール変換部302に供給する。   The selector 206 supplies the difference information generated by the subtraction unit 305 from the register 202 to the discrete Hadamard transform unit 302.

SATD加算部303は、離散アダマール変換部301または離散アダマール変換部302で生成された変換係数が、レジスタ202からセレクタ207を介して入力されると、4×4画素単位で、離散アダマール変換部301または離散アダマール変換部302で生成された変換係数の合計を評価値として算出し、算出されたSATD(評価値)をレジスタ202へ出力する。   When the transform coefficient generated by the discrete Hadamard transform unit 301 or the discrete Hadamard transform unit 302 is input from the register 202 via the selector 207, the SATD addition unit 303 performs the discrete Hadamard transform unit 301 in units of 4 × 4 pixels. Alternatively, the sum of transform coefficients generated by the discrete Hadamard transform unit 302 is calculated as an evaluation value, and the calculated SATD (evaluation value) is output to the register 202.

セレクタ207は、離散アダマール変換部301で生成された変換係数、または離散アダマール変換部302で生成された変換係数をSATD加算部303に出力する。   The selector 207 outputs the transform coefficient generated by the discrete Hadamard transform unit 301 or the transform coefficient generated by the discrete Hadamard transform unit 302 to the SATD addition unit 303.

選択部304は、SATD加算部303で算出されたSATD(評価値)が入力されると、入力されたSATDに基づいて、SATDが最も小さいブロックサイズを、最も符号量の少ないブロックサイズとして選択する。輝度信号については、インター予測データを用いてSATDを算出した場合は、4×4画素,8×8画素のいずれかが選択される。また、周辺情報を用いてSATDを算出した場合は、4×4画素,8×8画素,16×16画素の中から選択される。つまり、輝度信号については、ブロックサイズは、4×4画素(インター),8×8画素(インター),4×4画素(イントラ),8×8画素(イントラ),16×16画素(イントラ)の5種類の中から選択される。   When the SATD (evaluation value) calculated by the SATD addition unit 303 is input, the selection unit 304 selects the block size with the smallest SATD as the block size with the smallest code amount based on the input SATD. . As for the luminance signal, when SATD is calculated using inter prediction data, either 4 × 4 pixels or 8 × 8 pixels is selected. When the SATD is calculated using the peripheral information, it is selected from 4 × 4 pixels, 8 × 8 pixels, and 16 × 16 pixels. That is, for the luminance signal, the block size is 4 × 4 pixels (inter), 8 × 8 pixels (inter), 4 × 4 pixels (intra), 8 × 8 pixels (intra), 16 × 16 pixels (intra). Are selected from the following five types.

また、色差信号については、4×4画素(インター),4×4画素(イントラ)のいずれかが選択される。   For the color difference signal, either 4 × 4 pixels (inter) or 4 × 4 pixels (intra) is selected.

さらに、周辺情報を用いてSATDを算出した場合については、選択部304は、予測モードも選択する。輝度信号の場合、4×4画素(イントラ),8×8画素(イントラ)についてはそれぞれ9種類、16×16画素(イントラ)については4種類の中から選択する。また、色差信号の場合、4×4画素(イントラ)について4種類の中から選択する。   Further, when the SATD is calculated using the peripheral information, the selection unit 304 also selects the prediction mode. In the case of a luminance signal, nine types are selected for 4 × 4 pixels (intra) and 8 × 8 pixels (intra), and four types are selected for 16 × 16 pixels (intra). In the case of a color difference signal, 4 × 4 pixels (intra) are selected from four types.

選択部304は、最も符号量の少ないブロックサイズ(および予測モード)を選択すると、その結果をレジスタ202に出力する。   When selecting the block size (and prediction mode) with the smallest code amount, the selection unit 304 outputs the result to the register 202.

セレクタ208は、SATD加算部303で算出されたSATDをレジスタ202から選択部304に出力する。   The selector 208 outputs the SATD calculated by the SATD addition unit 303 from the register 202 to the selection unit 304.

離散コサイン変換部306は、原画像とインター予測データの差分情報、または原画像と周辺情報の差分情報が減算部305から入力されると、4×4画素単位で、差分情報に離散コサイン変換を施し、DCT係数をレジスタ202とセレクタ212に出力する。輝度信号の処理単位として16×16画素(イントラ)が選択されたときは、この4×4画素単位の処理を16回繰り返す。また、色差信号の場合、8×8画素ブロックを4つのブロックに分割した4×4画素単位の処理を、C,Cについてそれぞれ行うため、4×4画素単位の処理を8回行う。 When the difference information between the original image and the inter prediction data or the difference information between the original image and the peripheral information is input from the subtraction unit 305, the discrete cosine transform unit 306 performs the discrete cosine transform on the difference information in units of 4 × 4 pixels. The DCT coefficient is output to the register 202 and the selector 212. When 16 × 16 pixels (intra) is selected as the processing unit of the luminance signal, this 4 × 4 pixel unit processing is repeated 16 times. Further, in the case of a color difference signal, 4 × 4 pixel unit processing in which an 8 × 8 pixel block is divided into four blocks is performed for C b and Cr , respectively, so that 4 × 4 pixel unit processing is performed eight times.

離散コサイン変換部307は、原画像とインター予測データの差分情報、または原画像と周辺情報の差分情報が、レジスタ202からセレクタ210を介して入力されると、8×8画素単位で、差分情報に離散コサイン変換を施し、DCT係数をレジスタ202に出力する。なお、この離散コサイン変換部307は、選択部304において8×8画素(インター)、8×8画素(イントラ)が選択されたときのみ使用される。   When the difference information between the original image and the inter prediction data or the difference information between the original image and the peripheral information is input from the register 202 via the selector 210, the discrete cosine transform unit 307 receives the difference information in units of 8 × 8 pixels. Is subjected to discrete cosine transform, and DCT coefficients are output to the register 202. The discrete cosine transform unit 307 is used only when 8 × 8 pixels (inter) or 8 × 8 pixels (intra) are selected by the selection unit 304.

セレクタ210は、原画像とインター予測データの差分情報、または原画像と周辺情報の差分情報を、レジスタ202から離散コサイン変換部307に供給する。   The selector 210 supplies the difference information between the original image and the inter prediction data or the difference information between the original image and the peripheral information from the register 202 to the discrete cosine transform unit 307.

離散アダマール変換部308は、減算部305で生成された色差信号の差分情報が離散コサイン変換されて得られるDCT係数の直流成分に、2×2画素単位で離散アダマール変換を施し、変換係数をレジスタ202に出力する。また、離散アダマール変換部308は、この直流成分の変換係数を量子化したデータに、2×2画素単位で逆離散アダマール変換を施し、逆離散アダマール変換された直流成分をレジスタ202に出力する。   The discrete Hadamard transform unit 308 performs discrete Hadamard transform in units of 2 × 2 pixels on the DC component of the DCT coefficient obtained by performing discrete cosine transform on the difference information of the color difference signal generated by the subtractor 305, and registers the transform coefficient To 202. The discrete Hadamard transform unit 308 performs inverse discrete Hadamard transform on the data obtained by quantizing the transform coefficient of the DC component in units of 2 × 2 pixels, and outputs the DC component subjected to the inverse discrete Hadamard transform to the register 202.

セレクタ211は、減算部305で生成された色差信号の差分情報が離散コサイン変換されて得られるDCT係数の直流成分、このDCT係数の直流成分に離散アダマール変換を施して量子化したデータ、の中から離散アダマール変換部308への出力を選択する。   The selector 211 includes a DC component of a DCT coefficient obtained by subjecting the difference information of the color difference signal generated by the subtracting unit 305 to a discrete cosine transform, and data obtained by quantizing the DC component of the DCT coefficient by performing a discrete Hadamard transform. To the output to the discrete Hadamard transform unit 308.

量子化部309は、離散アダマール変換部301において生成された、減算部305で生成された差分情報が離散コサイン変換されて得られるDCT係数の直流成分に離散アダマール変換を施して得られる変換係数を、4×4画素単位で量子化する。   The quantization unit 309 generates transform coefficients obtained by performing discrete Hadamard transform on the DC component of the DCT coefficient obtained by the discrete cosine transform of the difference information generated by the subtraction unit 305 generated by the discrete Hadamard transform unit 301. Quantization is performed in units of 4 × 4 pixels.

また、量子化部309は、離散コサイン変換部306で生成されたDCT係数に4×4画素単位で量子化処理を施す。また、4×4画素単位の量子化処理を16回繰り返すことにより1マクロブロック(16×16画素)分の量子化を行う。   Further, the quantization unit 309 performs quantization processing on the DCT coefficients generated by the discrete cosine transform unit 306 in units of 4 × 4 pixels. Further, quantization for one macroblock (16 × 16 pixels) is performed by repeating the quantization process in units of 4 × 4 pixels 16 times.

また、量子化部309は、離散コサイン変換部307で生成されたDCT係数に量子化処理を施す。この量子化処理は、4×4画素単位で行い、これを4回繰り返し、さらに4回繰り返すことにより1マクロブロック(16×16画素)分の量子化を行う。   Further, the quantization unit 309 performs a quantization process on the DCT coefficient generated by the discrete cosine transform unit 307. This quantization process is performed in units of 4 × 4 pixels, and this is repeated four times, and further four times, thereby performing quantization for one macroblock (16 × 16 pixels).

また、量子化部309は、離散アダマール変換部308において生成された、減算部305で生成された色差信号の差分情報が離散コサイン変換されて得られるDCT係数の直流成分に2×2画素単位で離散アダマール変換を施して得られる変換係数を、2×2画素単位で量子化する。   In addition, the quantization unit 309 converts the difference information of the color difference signal generated by the subtraction unit 305 generated by the discrete Hadamard transform unit 308 into a DC component of a DCT coefficient obtained by performing discrete cosine transform in units of 2 × 2 pixels. The transform coefficient obtained by performing the discrete Hadamard transform is quantized in units of 2 × 2 pixels.

セレクタ212は、離散アダマール変換部301、離散コサイン変換部306、離散コサイン変換部307、離散アダマール変換部308の出力をレジスタ202から、量子化部309に供給する。   The selector 212 supplies the outputs of the discrete Hadamard transform unit 301, the discrete cosine transform unit 306, the discrete cosine transform unit 307, and the discrete Hadamard transform unit 308 from the register 202 to the quantization unit 309.

逆量子化部310は、量子化部309で生成された量子化データに逆量子化処理を施し、逆量子化処理されたデータをレジスタ202またはセレクタ214に出力する。選択部304において、輝度信号について4×4画素(インター),4×4画素(イントラ)が選択されたときは、逆量子化処理を4×4画素単位で16回繰り返す。8×8画素(インター),8×8画素(イントラ)が選択されたときは、4×4画素単位の逆量子化処理を4回繰り返し、さらに4回繰り返す。16×16画素(イントラ)が選択されたときは、交流成分の量子化データについて逆量子化処理を4×4画素単位で16回繰り返す。色差信号の処理の場合は、交流成分の量子化データについて逆量子化処理を4×4画素単位で4回繰り返す。この処理は、C,Cについてそれぞれ行われる。 The inverse quantization unit 310 performs inverse quantization processing on the quantized data generated by the quantization unit 309, and outputs the data subjected to the inverse quantization processing to the register 202 or the selector 214. When the selection unit 304 selects 4 × 4 pixels (inter) or 4 × 4 pixels (intra) for the luminance signal, the inverse quantization process is repeated 16 times in units of 4 × 4 pixels. When 8 × 8 pixels (inter) and 8 × 8 pixels (intra) are selected, the inverse quantization process in units of 4 × 4 pixels is repeated four times and further four times. When 16 × 16 pixels (intra) is selected, the inverse quantization process is repeated 16 times in units of 4 × 4 pixels for the AC component quantized data. In the case of color difference signal processing, inverse quantization processing is repeated four times in units of 4 × 4 pixels for the AC component quantized data. This process is performed for C b and C r , respectively.

また、逆量子化部310は、離散アダマール変換部301において生成された、DCT係数の直流成分の変換係数を量子化したデータに逆離散アダマール変換を施したデータに4×4画素単位で逆量子化処理を施し、逆量子化処理されたデータをレジスタ202およびセレクタ214に出力する。この処理は、選択部304において16×16画素(イントラ)が選択されたときのみ行われる。   In addition, the inverse quantization unit 310 performs inverse quantization in units of 4 × 4 pixels on the data obtained by performing the inverse discrete Hadamard transform on the data generated by the discrete Hadamard transform unit 301 and quantizing the transform coefficient of the DC component of the DCT coefficient. The data subjected to the quantization process is output to the register 202 and the selector 214. This process is performed only when 16 × 16 pixels (intra) are selected by the selection unit 304.

また、逆量子化部310は、離散アダマール変換部308において生成された、色差信号のDCT係数の直流成分の変換係数を量子化したデータに逆離散アダマール変換を施したデータに2×2画素単位で逆量子化処理を施し、逆量子化処理されたデータをレジスタ202およびセレクタ214に出力する。この処理は、C,Cについてそれぞれ1回ずつ行われる。 In addition, the inverse quantization unit 310 performs 2 × 2 pixel units on the data obtained by performing the inverse discrete Hadamard transform on the data generated by the discrete Hadamard transform unit 308 and quantized the DC component transform coefficient of the DCT coefficient of the color difference signal. Then, the inverse quantization process is performed, and the data subjected to the inverse quantization process is output to the register 202 and the selector 214. This process is performed once for each of C b and C r .

セレクタ213は、量子化部309、離散アダマール変換部301、離散アダマール変換部308の出力をレジスタ202から逆量子化部310に供給する。   The selector 213 supplies the outputs of the quantization unit 309, the discrete Hadamard transform unit 301, and the discrete Hadamard transform unit 308 from the register 202 to the inverse quantization unit 310.

逆離散コサイン変換部311は、逆量子化部310で生成された逆量子化データに逆離散コサイン変換処理を施し、復号された差分情報をレジスタ202またはセレクタ216に出力する。選択部304において、輝度信号について4×4画素(インター),4×4画素(イントラ)が選択されたときは、逆離散コサイン変換処理を4×4画素単位で16回繰り返す。16×16画素(イントラ)が選択されたときは、逆量子化されたデータについて、直流成分1画素と交流成分15画素とからなる16(4×4)画素の単位で逆離散コサイン変換を施し、この4×4画素単位の処理を16回繰り返す。色差信号の処理の場合は、逆量子化されたデータについて、直流成分1画素と交流成分15画素とからなる16(4×4)画素の単位で逆離散コサイン変換を施し、この4×4画素単位の処理を4回繰り返す。この色差信号の処理は、C,Cについてそれぞれ行われる。 The inverse discrete cosine transform unit 311 performs an inverse discrete cosine transform process on the inversely quantized data generated by the inverse quantization unit 310 and outputs the decoded difference information to the register 202 or the selector 216. When the selection unit 304 selects 4 × 4 pixels (inter) or 4 × 4 pixels (intra) for the luminance signal, the inverse discrete cosine transform process is repeated 16 times in units of 4 × 4 pixels. When 16 × 16 pixels (intra) is selected, inverse discrete cosine transform is applied to the dequantized data in units of 16 (4 × 4) pixels consisting of 1 DC component and 15 AC components. This process of 4 × 4 pixels is repeated 16 times. In the case of color difference signal processing, the inverse quantized data is subjected to inverse discrete cosine transform in units of 16 (4 × 4) pixels including 1 DC component and 15 AC components, and the 4 × 4 pixels. Repeat the unit process four times. This color difference signal processing is performed for C b and C r , respectively.

セレクタ214は、逆量子化部310で生成された逆量子化データをレジスタ202から逆離散コサイン変換部311に供給する。   The selector 214 supplies the inverse quantized data generated by the inverse quantization unit 310 from the register 202 to the inverse discrete cosine transform unit 311.

逆離散コサイン変換部312は、逆量子化部310で生成された逆量子化データに逆離散コサイン変換処理を施し、復号された差分情報をレジスタ202に出力する。この逆離散コサイン変換部312は、選択部304において、輝度信号について8×8画素(インター),8×8画素(イントラ)が選択されたときのみ使用され、8×8画素単位で処理が行われる。   The inverse discrete cosine transform unit 312 performs an inverse discrete cosine transform process on the inversely quantized data generated by the inverse quantizer 310 and outputs the decoded difference information to the register 202. The inverse discrete cosine transform unit 312 is used only when the selection unit 304 selects 8 × 8 pixels (inter) or 8 × 8 pixels (intra) for the luminance signal, and performs processing in units of 8 × 8 pixels. Is called.

セレクタ215は、逆量子化部310で生成された逆量子化データをレジスタ202から逆離散コサイン変換部312に供給する。   The selector 215 supplies the inverse quantized data generated by the inverse quantization unit 310 from the register 202 to the inverse discrete cosine transform unit 312.

加算部313は、逆離散コサイン変換部311,312で生成された、復号された差分情報に、レジスタ202に記憶されている周辺情報を加算し、復号画像情報を生成する。輝度信号については、この処理を4×4画素単位で16回繰り返す。色差信号については、C,Cそれぞれについて、4×4画素単位で4回繰り返す。そして、生成した復号画像情報をレジスタ202に出力する。 The adding unit 313 adds the peripheral information stored in the register 202 to the decoded difference information generated by the inverse discrete cosine transform units 311 and 312 to generate decoded image information. For the luminance signal, this process is repeated 16 times in units of 4 × 4 pixels. With respect to the color difference signal, each of C b and C r is repeated four times in units of 4 × 4 pixels. Then, the generated decoded image information is output to the register 202.

デブロックフィルタ4は、加算部313で生成された復号画像情報にブロック歪を除去する処理を施し、ラインメモリ203に出力する。   The deblocking filter 4 performs a process for removing block distortion on the decoded image information generated by the adding unit 313 and outputs the result to the line memory 203.

エントロピー符号化部5は、量子化部309で生成された量子化データにエントロピー符号化処理を施して符号化データとして出力する。   The entropy encoding unit 5 performs entropy encoding processing on the quantized data generated by the quantization unit 309 and outputs the result as encoded data.

次に、本実施形態に係る画像符号化装置の動作を説明する。   Next, the operation of the image coding apparatus according to this embodiment will be described.

画像信号が入力されると、インター予測部1は、インター予測処理を行い、動きベクトル情報等を含むインター予測データを生成し、RAM201に出力する。また、インター予測部1に入力された画像信号をRAM201に記憶された後、レジスタ202に格納される。   When an image signal is input, the inter prediction unit 1 performs inter prediction processing, generates inter prediction data including motion vector information and the like, and outputs the inter prediction data to the RAM 201. The image signal input to the inter prediction unit 1 is stored in the RAM 201 and then stored in the register 202.

そして、RAM201に記憶されたインター予測データ、または制御部2のラインメモリ203に予め格納されている周辺情報は、セレクタ204を介してレジスタ202に格納される。   The inter prediction data stored in the RAM 201 or the peripheral information stored in advance in the line memory 203 of the control unit 2 is stored in the register 202 via the selector 204.

まず、後述する内部復号処理を行う処理単位となるブロックサイズを選択するため、原画像とインター予測データまたは周辺情報とから、各ブロックサイズについてSATDを算出する。   First, in order to select a block size as a processing unit for performing an internal decoding process to be described later, SATD is calculated for each block size from the original image and inter prediction data or peripheral information.

インター予測データを用いて、輝度信号について、4×4画素単位でSATDを算出する場合、減算部305において、4×4画素単位で原画像の画像信号とインター予測データとの差分情報が生成され、この差分情報は、レジスタ202に記憶された後、セレクタ205を介して離散アダマール変換部301に供給される。   When calculating the SATD for the luminance signal in units of 4 × 4 pixels using the inter prediction data, the subtraction unit 305 generates difference information between the image signal of the original image and the inter prediction data in units of 4 × 4 pixels. The difference information is stored in the register 202 and then supplied to the discrete Hadamard transform unit 301 via the selector 205.

離散アダマール変換部301では、この差分情報に4×4画素単位で離散アダマール変換が施され、得られた変換係数はSATD加算部303において合計され、算出されたSATDは、レジスタ202に記憶された後、セレクタ208を介して選択部304に供給される。   In the discrete Hadamard transform unit 301, this difference information is subjected to discrete Hadamard transform in units of 4 × 4 pixels, and the obtained transform coefficients are summed in the SATD addition unit 303, and the calculated SATD is stored in the register 202. Thereafter, the data is supplied to the selection unit 304 via the selector 208.

周辺情報を用いて、輝度信号について、4×4画素単位でSATDを算出する場合、減算部305において、原画像の画像信号と周辺情報との差分情報が生成される。その他は上記と同様にSATDが算出され、選択部304に供給される。   When the SATD is calculated for the luminance signal in units of 4 × 4 pixels using the peripheral information, the subtraction unit 305 generates difference information between the image signal of the original image and the peripheral information. In other cases, the SATD is calculated and supplied to the selection unit 304 in the same manner as described above.

次に、インター予測データを用いて、輝度信号について、8×8画素単位でSATDを算出する場合、減算部305において、原画像の画像信号とインター予測データとの差分情報が生成され、この差分情報は、レジスタ202に記憶された後、セレクタ205を介して離散アダマール変換部302に供給される。   Next, when calculating the SATD in units of 8 × 8 pixels using the inter prediction data, the subtraction unit 305 generates difference information between the image signal of the original image and the inter prediction data. The information is stored in the register 202 and then supplied to the discrete Hadamard transform unit 302 via the selector 205.

離散アダマール変換部302では、減算部305で生成された差分情報に8×8画素単位で離散アダマール変換が施され、得られた変換係数はSATD加算部303において合計され、算出されたSATDは、レジスタ202に記憶された後、セレクタ208を介して選択部304に供給される。ここで、減算部305、SATD加算部303では、8×8画素を4個のブロックに分割した4×4画素単位の処理が4回繰り返し行われる。   In the discrete Hadamard transform unit 302, the discrete Hadamard transform is performed on the difference information generated by the subtraction unit 305 in units of 8 × 8 pixels, and the obtained transform coefficients are summed in the SATD addition unit 303, and the calculated SATD is After being stored in the register 202, it is supplied to the selection unit 304 via the selector 208. Here, in the subtracting unit 305 and the SATD adding unit 303, processing of 4 × 4 pixel units in which 8 × 8 pixels are divided into four blocks is repeatedly performed four times.

周辺情報を用いて、輝度信号について、8×8画素単位でSATDを算出する場合、減算部305において、原画像の画像信号と周辺情報との差分情報が生成される。その後は上記と同様にSATDが算出され、選択部304に供給される。   When the SATD is calculated for the luminance signal in units of 8 × 8 pixels using the peripheral information, the subtraction unit 305 generates difference information between the image signal of the original image and the peripheral information. Thereafter, the SATD is calculated and supplied to the selection unit 304 in the same manner as described above.

次に、インター予測データを用いて、輝度信号について、16×16画素単位でSATDを算出する場合、減算部305において、原画像の画像信号とインター予測データとの差分情報が生成され、この差分情報は、レジスタ202に記憶された後、セレクタ205を介して離散アダマール変換部301に供給される。   Next, when calculating the SATD in units of 16 × 16 pixels using the inter prediction data, the subtraction unit 305 generates difference information between the image signal of the original image and the inter prediction data. The information is stored in the register 202 and then supplied to the discrete Hadamard transform unit 301 via the selector 205.

離散アダマール変換部301では、減算部305で生成された差分情報に離散アダマール変換が施され、得られた変換係数はSATD加算部303において合計され、算出されたSATDは、レジスタ202に記憶された後、セレクタ208を介して選択部304に供給される。ここで、減算部305、離散アダマール変換部301、SATD加算部303では、16×16画素を16個のブロックに分割した4×4画素単位の処理が16回繰り返し行われる。   In the discrete Hadamard transform unit 301, the discrete Hadamard transform is performed on the difference information generated by the subtraction unit 305, and the obtained transform coefficients are summed in the SATD addition unit 303, and the calculated SATD is stored in the register 202. Thereafter, the data is supplied to the selection unit 304 via the selector 208. Here, in the subtraction unit 305, the discrete Hadamard transform unit 301, and the SATD addition unit 303, processing of 4 × 4 pixel units in which 16 × 16 pixels are divided into 16 blocks is repeatedly performed 16 times.

周辺情報を用いて、輝度信号について、16×16画素単位でSATDを算出する場合、減算部305において、原画像の画像信号と周辺情報との差分情報が生成される。その他は上記と同様にSATDが算出され、選択部304に供給される。   When the SATD is calculated for the luminance signal in units of 16 × 16 pixels using the peripheral information, the subtraction unit 305 generates difference information between the image signal of the original image and the peripheral information. In other cases, the SATD is calculated and supplied to the selection unit 304 in the same manner as described above.

次に、インター予測データを用いて、色差信号について、SATDを算出する場合、減算部305において、原画像の画像信号とインター予測データとの差分情報が生成され、この差分情報は、レジスタ202に記憶された後、セレクタ205を介して離散アダマール変換部301に供給される。   Next, when the SATD is calculated for the color difference signal using the inter prediction data, the subtraction unit 305 generates difference information between the image signal of the original image and the inter prediction data, and the difference information is stored in the register 202. After being stored, it is supplied to the discrete Hadamard transform unit 301 via the selector 205.

離散アダマール変換部301では、減算部305で生成された差分情報に離散アダマール変換が施され、得られた変換係数はSATD加算部303において合計され、算出されたSATDは、レジスタ202に記憶された後、セレクタ208を介して選択部304に供給される。ここで、減算部305、離散アダマール変換部301、SATD加算部303では、8×8画素を4個のブロックに分割した4×4画素単位の処理が、C,Cについてそれぞれ4回繰り返し行われる。 In the discrete Hadamard transform unit 301, the discrete Hadamard transform is performed on the difference information generated by the subtraction unit 305, and the obtained transform coefficients are summed in the SATD addition unit 303, and the calculated SATD is stored in the register 202. Thereafter, the data is supplied to the selection unit 304 via the selector 208. Here, in the subtraction unit 305, discrete Hadamard transform unit 301, and SATD addition unit 303, the processing in units of 4 × 4 pixels obtained by dividing 8 × 8 pixels into four blocks is repeated four times for C b and C r , respectively. Done.

周辺情報を用いて、色差信号について、SATDを算出する場合、減算部305において、原画像の画像信号と周辺情報との差分情報が生成される。その他は上記と同様にSATDが算出され、選択部304に供給される。   When the SATD is calculated for the color difference signal using the peripheral information, the subtraction unit 305 generates difference information between the image signal of the original image and the peripheral information. In other cases, the SATD is calculated and supplied to the selection unit 304 in the same manner as described above.

各ブロックサイズについてのSATDが算出されると、選択部304は、このSATDに基づいて、最も符号量の少ないブロックサイズを選択する。   When the SATD for each block size is calculated, the selection unit 304 selects the block size with the smallest code amount based on the SATD.

ブロックサイズは、上述のとおり、輝度信号については、4×4画素(インター),8×8画素(インター),4×4画素(イントラ),8×8画素(イントラ),16×16画素(イントラ)の5種類の中から選択され、色差信号については、4×4画素(インター),4×4画素(イントラ)のいずれかが選択される。   As described above, the block size is 4 × 4 pixels (inter), 8 × 8 pixels (inter), 4 × 4 pixels (intra), 8 × 8 pixels (intra), 16 × 16 pixels ( Intra) is selected from among five types, and either 4 × 4 pixels (inter) or 4 × 4 pixels (intra) is selected for the color difference signal.

さらに、周辺情報を用いてSATDを算出した場合については、選択部304において、予測モードも選択される。輝度信号の場合、4×4画素(イントラ),8×8画素(イントラ)についてはそれぞれ9種類、16×16画素(イントラ)については4種類の中から選択される。また、色差信号の場合、4×4画素(イントラ)について4種類の中から選択される。選択部304は、最も符号量の少ないブロックサイズ(および予測モード)を選択すると、その結果をレジスタ202に出力する。   Further, when the SATD is calculated using the peripheral information, the selection unit 304 also selects the prediction mode. In the case of a luminance signal, 9 types are selected for 4 × 4 pixels (intra) and 8 × 8 pixels (intra), and 4 types are selected for 16 × 16 pixels (intra). In the case of a color difference signal, 4 × 4 pixels (intra) are selected from four types. When selecting the block size (and prediction mode) with the smallest code amount, the selection unit 304 outputs the result to the register 202.

次いで、各ブロックサイズにおける内部復号処理について説明する。まず、輝度信号の処理ブロックサイズについて、4×4画素(インター)が選択された場合、減算部305で生成された、原画像の画像信号とインター予測データとの差分情報が、離散コサイン変換部306に供給される。   Next, the internal decoding process for each block size will be described. First, when 4 × 4 pixels (inter) is selected for the processing block size of the luminance signal, the difference information between the image signal of the original image and the inter prediction data generated by the subtraction unit 305 is the discrete cosine transform unit. 306 is supplied.

離散コサイン変換部306では、この差分情報に4×4画素単位で離散コサイン変換が施され、得られたDCT係数は、セレクタ212を介して量子化部309に供給される。   In the discrete cosine transform unit 306, this difference information is subjected to discrete cosine transform in units of 4 × 4 pixels, and the obtained DCT coefficients are supplied to the quantization unit 309 via the selector 212.

量子化部309では、4×4画素単位でDCT係数の量子化がなされ、生成された量子化データは、セレクタ213を介して逆量子化部310に供給される。また、ここで生成された量子化データは、レジスタ202に記憶された後、エントロピー符号化部5に出力される。   In the quantization unit 309, DCT coefficients are quantized in units of 4 × 4 pixels, and the generated quantized data is supplied to the inverse quantization unit 310 via the selector 213. The quantized data generated here is stored in the register 202 and then output to the entropy encoding unit 5.

逆量子化部310に供給された量子化データは、そこで4×4画素単位で逆量子化がなされ、その逆量子化されたデータは、セレクタ214を介して逆離散コサイン変換部29に供給されて4×4画素単位で逆離散コサイン変換が施され、復号された差分情報となる。   The quantized data supplied to the inverse quantization unit 310 is inversely quantized in units of 4 × 4 pixels, and the inverse quantized data is supplied to the inverse discrete cosine transform unit 29 via the selector 214. Then, inverse discrete cosine transform is performed in units of 4 × 4 pixels, and becomes decoded difference information.

復号された差分情報は、加算部313において、4×4画素単位で、レジスタ202に格納されているインター予測データと加算され、復号画像情報となってレジスタ202に出力される。加算部313では、この加算処理が4×4画素単位で16回繰り返される。   The decoded difference information is added to the inter prediction data stored in the register 202 in units of 4 × 4 pixels in the adding unit 313, and is output to the register 202 as decoded image information. In the addition unit 313, this addition process is repeated 16 times in units of 4 × 4 pixels.

輝度信号の処理ブロックサイズとして4×4画素(イントラ)が選択された場合、減算部305で生成された、原画像の画像信号と周辺情報との差分情報が離散コサイン変換部306に供給される。その他の処理は4×4画素(インター)が選択されたときと同様である。   When 4 × 4 pixels (intra) is selected as the processing block size of the luminance signal, difference information between the image signal of the original image and the peripheral information generated by the subtraction unit 305 is supplied to the discrete cosine transform unit 306. . Other processes are the same as when 4 × 4 pixels (inter) are selected.

次に、輝度信号の処理ブロックサイズについて、8×8画素(インター)が選択された場合、減算部305で生成された、原画像の画像信号とインター予測データとの差分情報が、離散コサイン変換部307に供給される。   Next, when 8 × 8 pixels (inter) is selected for the processing block size of the luminance signal, the difference information between the image signal of the original image and the inter prediction data generated by the subtraction unit 305 is converted into discrete cosine transform. Supplied to the unit 307.

離散コサイン変換部307では、この差分情報に8×8画素単位で離散コサイン変換が施され、得られたDCT係数は、セレクタ212を介して量子化部309に供給される。   In the discrete cosine transform unit 307, this difference information is subjected to discrete cosine transform in units of 8 × 8 pixels, and the obtained DCT coefficients are supplied to the quantization unit 309 via the selector 212.

量子化部309では、離散コサイン変換部307で生成されたDCT係数に量子化処理が施される。この量子化処理は、4×4画素単位で行われ、これを4回繰り返し、さらに4回繰り返すことにより1マクロブロック(16×16画素)分の量子化が行われる。生成された量子化データは、セレクタ213を介して逆量子化部310に供給される。また、ここで生成された量子化データは、レジスタ202に記憶された後、エントロピー符号化部5に出力される。   In the quantization unit 309, the DCT coefficient generated by the discrete cosine transform unit 307 is subjected to quantization processing. This quantization process is performed in units of 4 × 4 pixels, and this is repeated four times, and further four times, thereby performing quantization for one macroblock (16 × 16 pixels). The generated quantized data is supplied to the inverse quantization unit 310 via the selector 213. The quantized data generated here is stored in the register 202 and then output to the entropy encoding unit 5.

逆量子化部310に供給された量子化データは、そこで逆量子化が施される。逆量子化部310では、4×4画素単位の逆量子化処理を4回繰り返し、さらに4回繰り返すことにより1マクロブロック(16×16画素)分の逆量子化が行われる。ここで得られる逆量子化データは、レジスタ202に記憶された後、セレクタ215を介して逆離散コサイン変換部312に供給されて8×8画素単位で逆離散コサイン変換が施され、復号された差分情報となる。   The quantized data supplied to the inverse quantization unit 310 is subjected to inverse quantization there. The inverse quantization unit 310 repeats the inverse quantization process in units of 4 × 4 pixels four times, and further repeats four times to perform inverse quantization for one macroblock (16 × 16 pixels). The inversely quantized data obtained here is stored in the register 202, then supplied to the inverse discrete cosine transform unit 312 via the selector 215, and subjected to inverse discrete cosine transform in units of 8 × 8 pixels and decoded. It becomes difference information.

復号された差分情報は、加算部313において、4×4画素単位で、レジスタ202に格納されているインター予測データと加算され、復号画像情報となってレジスタ202に出力される。加算部313では、この加算処理が4×4画素単位で16回繰り返される。   The decoded difference information is added to the inter prediction data stored in the register 202 in units of 4 × 4 pixels in the adding unit 313, and is output to the register 202 as decoded image information. In the addition unit 313, this addition process is repeated 16 times in units of 4 × 4 pixels.

輝度信号の処理ブロックサイズとして8×8画素(イントラ)が選択された場合、減算部305で生成された、原画像の画像信号と周辺情報との差分情報が離散コサイン変換部306に供給される。その他の処理は8×8画素(インター)が選択されたときと同様である。   When 8 × 8 pixels (intra) is selected as the processing block size of the luminance signal, difference information between the image signal of the original image and the peripheral information generated by the subtraction unit 305 is supplied to the discrete cosine transform unit 306. . Other processes are the same as when 8 × 8 pixels (inter) are selected.

次に、輝度信号の処理ブロックサイズについて、16×16画素(イントラ)が選択された場合、減算部305で生成された、原画像の画像信号とインター予測データとの差分情報が、離散コサイン変換部306に供給される。   Next, when 16 × 16 pixels (intra) is selected for the processing block size of the luminance signal, the difference information between the image signal of the original image and the inter prediction data generated by the subtraction unit 305 is converted into a discrete cosine transform. Supplied to the unit 306.

離散コサイン変換部306では、この差分情報に離散コサイン変換が施される。離散コサイン変換部306では、4×4画素単位の処理が16回繰り返し行われ、DCT係数の直流(DC)成分が16個得られる。得られた直流成分は、レジスタ202に記憶された後、セレクタ205を介して離散アダマール変換部301に供給される。また、離散コサイン変換部306で得られたDCT係数の交流(AC)成分は、量子化部309に供給される。   The discrete cosine transform unit 306 performs discrete cosine transform on the difference information. In the discrete cosine transform unit 306, the process in units of 4 × 4 pixels is repeatedly performed 16 times, and 16 direct current (DC) components of the DCT coefficient are obtained. The obtained DC component is stored in the register 202 and then supplied to the discrete Hadamard transform unit 301 via the selector 205. The alternating current (AC) component of the DCT coefficient obtained by the discrete cosine transform unit 306 is supplied to the quantization unit 309.

離散アダマール変換部301では、離散コサイン変換部306で生成された16個の直流成分をまとめて4×4画素の直流ブロックが構成され、この4×4画素直流ブロックに離散アダマール変換が施される。ここで得られた変換係数は、レジスタ202に記憶された後、セレクタ212を介して量子化部309に供給される。   In the discrete Hadamard transform unit 301, the 16 DC components generated by the discrete cosine transform unit 306 are combined to form a 4 × 4 pixel DC block, and the discrete Hadamard transform is performed on the 4 × 4 pixel DC block. . The transform coefficient obtained here is stored in the register 202 and then supplied to the quantization unit 309 via the selector 212.

そして、量子化部309では、離散コサイン変換部306で生成されたDCT係数の交流成分に量子化処理が施されて量子化データが生成され、この交流成分の量子化データはセレクタ213を介して逆量子化部310に供給される。また、ここで生成された量子化データは、レジスタ202に記憶された後、エントロピー符号化部5に出力される。量子化部309での処理は、4×4画素単位で16回繰り返される。   Then, the quantization unit 309 performs quantization processing on the AC component of the DCT coefficient generated by the discrete cosine transform unit 306 to generate quantized data. The quantized data of the AC component is sent via the selector 213. This is supplied to the inverse quantization unit 310. The quantized data generated here is stored in the register 202 and then output to the entropy encoding unit 5. The processing in the quantization unit 309 is repeated 16 times in units of 4 × 4 pixels.

また、量子化部309では、離散アダマール変換部301で生成された直流成分の変換係数に量子化処理が施され、生成された量子化データはレジスタ202に記憶された後、セレクタ205を介して離散アダマール変換部301に供給される。   Further, the quantization unit 309 performs a quantization process on the transform coefficient of the DC component generated by the discrete Hadamard transform unit 301, and the generated quantized data is stored in the register 202 and then passed through the selector 205. This is supplied to the discrete Hadamard transform unit 301.

DCT係数の直流成分の量子化データは、離散アダマール変換部301において逆離散アダマール変換が施される。逆離散アダマール変換された直流成分は、レジスタ202に記憶された後、セレクタ213を介して逆量子化部310に供給され、ここで逆量子化処理が施される。逆量子化された直流成分のデータは、レジスタ202に記憶された後、セレクタ214を介して逆離散コサイン変換部311に供給される。   The discrete Hadamard transform unit 301 performs inverse discrete Hadamard transform on the quantized data of the DC component of the DCT coefficient. The DC component subjected to the inverse discrete Hadamard transform is stored in the register 202, and then supplied to the inverse quantization unit 310 via the selector 213, where an inverse quantization process is performed. The inversely quantized DC component data is stored in the register 202 and then supplied to the inverse discrete cosine transform unit 311 via the selector 214.

また、逆量子化部310では、量子化部309で生成された交流成分の量子化データに逆量子化処理が施される。逆量子化された交流成分のデータはセレクタ214を介して逆離散コサイン変換部311に供給される。   Further, in the inverse quantization unit 310, inverse quantization processing is performed on the quantized data of the AC component generated by the quantization unit 309. The inversely quantized AC component data is supplied to the inverse discrete cosine transform unit 311 via the selector 214.

逆離散コサイン変換部311では、逆量子化されたデータについて、直流成分1画素と交流成分15画素とからなる16(4×4)画素の単位で逆離散コサイン変換が施され、復号された差分情報となる。これは4×4画素単位で16回繰り返される。   In the inverse discrete cosine transform unit 311, the inverse quantized data is subjected to inverse discrete cosine transform in units of 16 (4 × 4) pixels including one DC component pixel and 15 AC component pixels, and the decoded difference Information. This is repeated 16 times in units of 4 × 4 pixels.

復号された差分情報は、加算部313において、4×4画素単位で、レジスタ202に格納されているインター予測データと加算され、復号画像情報となってレジスタ202に出力される。ここでは、4×4画素単位の処理が16回繰り返し行われる。   The decoded difference information is added to the inter prediction data stored in the register 202 in units of 4 × 4 pixels in the adding unit 313, and is output to the register 202 as decoded image information. Here, the process of 4 × 4 pixel units is repeated 16 times.

次に、色差信号の処理ブロックサイズについて、4×4画素(インター)が選択された場合、減算部305で生成された、原画像の画像信号とインター予測データとの差分情報が、離散コサイン変換部306に供給される。   Next, when 4 × 4 pixels (inter) is selected as the processing block size of the color difference signal, the difference information between the image signal of the original image and the inter prediction data generated by the subtraction unit 305 is converted into a discrete cosine transform. Supplied to the unit 306.

離散コサイン変換部306では、この差分情報に離散コサイン変換が施される。C,Cについてそれぞれ4×4画素単位の処理が行われる。得られたDCT係数の交流成分は、量子化部309に供給される。 The discrete cosine transform unit 306 performs discrete cosine transform on the difference information. Processing of 4 × 4 pixel units is performed for C b and C r , respectively. The AC component of the obtained DCT coefficient is supplied to the quantization unit 309.

また、離散コサイン変換部306では、DCT係数の直流成分が4個得られる。得られた直流成分は、レジスタ202に記憶された後、セレクタ211を介して離散アダマール変換部308に供給される。   The discrete cosine transform unit 306 obtains four DC components of DCT coefficients. The obtained direct current component is stored in the register 202 and then supplied to the discrete Hadamard transform unit 308 via the selector 211.

離散アダマール変換部308では、離散コサイン変換部306で生成された色差信号の4個の直流成分をまとめて2×2画素の直流ブロックが構成され、この2×2画素直流ブロックに離散アダマール変換が施される。ここで得られた変換係数は、レジスタ202に記憶された後、セレクタ212を介して量子化部309に供給される。   In the discrete Hadamard transform unit 308, the four DC components of the color difference signals generated by the discrete cosine transform unit 306 are combined to form a 2 × 2 pixel DC block, and the discrete Hadamard transform is applied to the 2 × 2 pixel DC block. Applied. The transform coefficient obtained here is stored in the register 202 and then supplied to the quantization unit 309 via the selector 212.

そして、量子化部309では、離散コサイン変換部306で生成されたDCT係数の交流成分に量子化処理が施されて量子化データが生成され、この交流成分の量子化データはセレクタ213を介して逆量子化部310に供給される。また、ここで生成された量子化データは、レジスタ202に記憶された後、エントロピー符号化部5に出力される。ここでは、C,Cについてそれぞれ4×4画素単位の処理が4回繰り返し行われる。 Then, the quantization unit 309 performs quantization processing on the AC component of the DCT coefficient generated by the discrete cosine transform unit 306 to generate quantized data. The quantized data of the AC component is sent via the selector 213. This is supplied to the inverse quantization unit 310. The quantized data generated here is stored in the register 202 and then output to the entropy encoding unit 5. Here, the process of 4 × 4 pixel units is repeated four times for each of C b and C r .

また、量子化部309では、離散アダマール変換部308で生成された直流成分の変換係数に量子化処理が施され、生成された量子化データはレジスタ202に記憶された後、セレクタ211を介して離散アダマール変換部308に供給される。   In addition, the quantization unit 309 performs quantization processing on the transform coefficient of the DC component generated by the discrete Hadamard transform unit 308, and the generated quantized data is stored in the register 202 and then passed through the selector 211. This is supplied to the discrete Hadamard transform unit 308.

色差信号のDCT係数の直流成分の量子化データは、離散アダマール変換部308において2×2画素単位で逆離散アダマール変換が施される。逆離散アダマール変換された直流成分は、レジスタ202に記憶された後、セレクタ213を介して逆量子化部310に供給され、ここで逆量子化処理が施される。逆量子化された直流成分のデータは、レジスタ202に記憶された後、セレクタ214を介して逆離散コサイン変換部311に供給される。   The quantized data of the DC component of the DCT coefficient of the color difference signal is subjected to inverse discrete Hadamard transform in units of 2 × 2 pixels in the discrete Hadamard transform unit 308. The DC component subjected to the inverse discrete Hadamard transform is stored in the register 202, and then supplied to the inverse quantization unit 310 via the selector 213, where an inverse quantization process is performed. The inversely quantized DC component data is stored in the register 202 and then supplied to the inverse discrete cosine transform unit 311 via the selector 214.

また、逆量子化部310では、量子化部309で生成された色差信号の交流成分の量子化データに逆量子化処理が施される。逆量子化された交流成分のデータはセレクタ214を介して逆離散コサイン変換部311に供給される。ここでは、C,Cについてそれぞれ4×4画素単位の処理が4回繰り返し行われる。 In addition, in the inverse quantization unit 310, inverse quantization processing is performed on the quantized data of the AC component of the color difference signal generated by the quantization unit 309. The inversely quantized AC component data is supplied to the inverse discrete cosine transform unit 311 via the selector 214. Here, the process of 4 × 4 pixel units is repeated four times for each of C b and C r .

逆離散コサイン変換部311では、逆量子化されたデータについて、直流成分1画素と交流成分15画素とからなる16(4×4)画素の単位で逆離散コサイン変換が施され、復号された差分情報となる。これは、C,Cについてそれぞれ4×4画素単位の処理が4回繰り返し行われる。 In the inverse discrete cosine transform unit 311, the inverse quantized data is subjected to inverse discrete cosine transform in units of 16 (4 × 4) pixels including one DC component pixel and 15 AC component pixels, and the decoded difference Information. In this case, processing of 4 × 4 pixel units is repeated four times for C b and Cr .

復号された差分情報は、加算部313において、4×4画素単位で、レジスタ202に格納されているインター予測データと加算され、復号画像情報となってレジスタ202に出力される。ここでは、C,Cについてそれぞれ4×4画素単位の処理が4回繰り返し行われる。 The decoded difference information is added to the inter prediction data stored in the register 202 in units of 4 × 4 pixels in the adding unit 313, and is output to the register 202 as decoded image information. Here, the process of 4 × 4 pixel units is repeated four times for each of C b and C r .

量子化部309で生成され、レジスタ202に記憶された量子化データは、エントロピー符号化部5に供給される。そして、エントロピー符号化部5は、この量子化データにエントロピー符号化処理を施して符号化データとして出力する。   The quantized data generated by the quantization unit 309 and stored in the register 202 is supplied to the entropy coding unit 5. Then, the entropy encoding unit 5 performs entropy encoding processing on the quantized data and outputs it as encoded data.

また、レジスタ202に記憶された復号画像情報は、デブロックフィルタ4に供給され、ブロック歪を除去する処理が施された後、ラインメモリ203に格納され、イントラ予測・復号処理部において周辺情報として使用される。   Also, the decoded image information stored in the register 202 is supplied to the deblocking filter 4, subjected to processing for removing block distortion, and then stored in the line memory 203, as peripheral information in the intra prediction / decoding processing unit. used.

このように本実施形態の画像符号化装置によれば、4×4画素、16×16画素単位での画像符号化処理における差分、離散コサイン変換、量子化等の各種処理、および8×8画素単位での画像符号化処理における差分、量子化、逆量子化、加算、SATD加算のそれぞれの処理を4×4画素単位で繰り返し行うので、すべての画素ブロックサイズに対応した演算処理回路を設ける必要がなく、回路規模を削減することができる。また、回路規模の増大に伴う消費電力の増加も軽減することができる。   As described above, according to the image encoding device of the present embodiment, the difference in the image encoding process in units of 4 × 4 pixels and 16 × 16 pixels, various processes such as discrete cosine transform, quantization, and 8 × 8 pixels. Since each process of difference, quantization, inverse quantization, addition, and SATD addition in image coding processing in units is repeated in units of 4 × 4 pixels, it is necessary to provide an arithmetic processing circuit corresponding to all pixel block sizes Therefore, the circuit scale can be reduced. In addition, an increase in power consumption accompanying an increase in circuit scale can be reduced.

本発明の実施形態に係る画像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image coding apparatus which concerns on embodiment of this invention. 図1に示す画像符号化装置における制御部およびイントラ予測・復号処理部を詳細に示すブロック図である。It is a block diagram which shows in detail the control part and intra prediction and decoding process part in the image coding apparatus shown in FIG. 従来の画像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the conventional image coding apparatus. 図3に示す画像符号化装置の輝度4×4処理部の構成を示すブロック図である。It is a block diagram which shows the structure of the brightness | luminance 4x4 process part of the image coding apparatus shown in FIG. 図3に示す画像符号化装置の輝度8×8処理部の構成を示すブロック図である。It is a block diagram which shows the structure of the brightness | luminance 8x8 process part of the image coding apparatus shown in FIG. 図3に示す画像符号化装置の輝度16×16処理部の構成を示すブロック図である。It is a block diagram which shows the structure of the luminance 16x16 process part of the image coding apparatus shown in FIG. 図3に示す画像符号化装置の色差4×4処理部の構成を示すブロック図である。It is a block diagram which shows the structure of the color difference 4x4 process part of the image coding apparatus shown in FIG.

符号の説明Explanation of symbols

1 インター予測部
2 制御部
3 イントラ予測・復号処理部
4 デブロックフィルタ
5 エントロピー符号化部
201 RAM
202 レジスタ
203 ラインメモリ
204〜216 セレクタ
301,302 離散アダマール変換部
303 SATD加算部
304 選択部
305 減算部
306,307 離散コサイン変換部
308 離散アダマール変換部
309 量子化部
310 逆量子化部
311,312 逆離散コサイン変換部
313 加算部
DESCRIPTION OF SYMBOLS 1 Inter prediction part 2 Control part 3 Intra prediction and decoding process part 4 Deblock filter 5 Entropy encoding part 201 RAM
202 Register 203 Line Memory 204 to 216 Selector 301, 302 Discrete Hadamard Transformer 303 SATD Adder 304 Selector 305 Subtractor 306, 307 Discrete Cosine Transformer 308 Discrete Hadamard Transformer 309 Quantizer 310 Inverse Quantizer 311, 312 Inverse discrete cosine transform unit 313 Adder

Claims (1)

画像を画素ブロックに分割して、画素ブロックごとに符号化処理を行う画像符号化装置であって、
原画像と予測画像との差分情報をアダマール変換して生成された変換係数の総和を評価値として算出する評価値算出処理を最小処理単位の画素ブロックサイズで行い、複数の画素ブロックサイズに対応して最小処理単位の画素ブロックサイズの処理を繰り返すことにより、前記複数の画素ブロックサイズのそれぞれの評価値を算出する評価値算出手段と、
この評価値算出手段で算出された前記評価値に基づいて符号化処理の処理単位となる画素ブロックサイズを選択する選択手段と、
前記原画像と前記予測画像との差分情報を直交変換して生成された直交変換係数を量子化し、生成された量子化データを逆量子化し、生成された逆量子化データを逆直交変換して復号された差分情報を生成し、この復号された差分情報に前記予測画像を加算して復号画像情報を生成する内部復号処理を行う内部復号手段とを備え、
この内部復号手段は、前記選択手段において選択された画素ブロックサイズに応じて、最小処理単位の画素ブロックサイズの処理を繰り返し行うことを特徴とする画像符号化装置。
An image encoding device that divides an image into pixel blocks and performs an encoding process for each pixel block,
The evaluation value calculation process is performed with the pixel block size of the minimum processing unit, and the total of the conversion coefficients generated by Hadamard transform of the difference information between the original image and the predicted image is calculated as the evaluation value. Evaluation value calculating means for calculating the evaluation value of each of the plurality of pixel block sizes by repeating the processing of the pixel block size of the minimum processing unit,
A selection unit that selects a pixel block size that is a processing unit of an encoding process based on the evaluation value calculated by the evaluation value calculation unit;
Quantize the orthogonal transform coefficient generated by orthogonal transform of the difference information between the original image and the predicted image, dequantize the generated quantized data, and inverse orthogonal transform the generated dequantized data An internal decoding means for generating decoded difference information, and performing an internal decoding process for generating decoded image information by adding the predicted image to the decoded difference information;
The internal decoding unit repeatedly performs a process of a pixel block size of a minimum processing unit in accordance with the pixel block size selected by the selection unit.
JP2006087582A 2006-03-28 2006-03-28 Image encoding device Pending JP2007266861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006087582A JP2007266861A (en) 2006-03-28 2006-03-28 Image encoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006087582A JP2007266861A (en) 2006-03-28 2006-03-28 Image encoding device

Publications (1)

Publication Number Publication Date
JP2007266861A true JP2007266861A (en) 2007-10-11

Family

ID=38639434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006087582A Pending JP2007266861A (en) 2006-03-28 2006-03-28 Image encoding device

Country Status (1)

Country Link
JP (1) JP2007266861A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010128969A (en) * 2008-11-28 2010-06-10 Fujitsu Ltd Hadamard transform circuit
JP2010128968A (en) * 2008-11-28 2010-06-10 Fujitsu Ltd Hadamard transform circuit
CN106231342A (en) * 2010-04-13 2016-12-14 三星电子株式会社 Perform the method that video is decoded of block elimination filtering

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010128969A (en) * 2008-11-28 2010-06-10 Fujitsu Ltd Hadamard transform circuit
JP2010128968A (en) * 2008-11-28 2010-06-10 Fujitsu Ltd Hadamard transform circuit
CN106231342A (en) * 2010-04-13 2016-12-14 三星电子株式会社 Perform the method that video is decoded of block elimination filtering
US10306262B2 (en) 2010-04-13 2019-05-28 Samsung Electronics Co., Ltd. Video encoding method and video encoding apparatus and video decoding method and video decoding apparatus, which perform deblocking filtering based on tree-structure encoding units
US10412411B2 (en) 2010-04-13 2019-09-10 Samsung Electronics Co., Ltd. Video-encoding method and video-encoding apparatus using prediction units based on encoding units determined in accordance with a tree structure, and video-decoding method and video-decoding apparatus using prediction units based on encoding units determined in accordance with a tree structure
US10432965B2 (en) 2010-04-13 2019-10-01 Samsung Electronics Co., Ltd. Video-encoding method and video-encoding apparatus based on encoding units determined in accordance with a tree structure, and video-decoding method and video-decoding apparatus based on encoding units determined in accordance with a tree structure

Similar Documents

Publication Publication Date Title
KR102165340B1 (en) Methods of determination for chroma quantization parameter and apparatuses for using the same
JP4617644B2 (en) Encoding apparatus and method
JP4927207B2 (en) Encoding method, decoding method and apparatus
EP2755388B1 (en) Method, device, and program for encoding and decoding image
WO2010001999A1 (en) Dynamic image encoding/decoding method and device
KR20090097688A (en) Method and apparatus of encoding/decoding image based on intra prediction
JP2009518940A (en) Image encoding method and apparatus, decoding method and apparatus
KR20080103907A (en) Efficient encoding/decoding of a sequence of data frames
CN102422643A (en) Image processing device, method, and program
WO2008035842A1 (en) Apparatus and method for encoding and decoding using alternative converter according to the correlation of residual signal
KR100718122B1 (en) Lossless color image coding method and apparatus using inter-plane prediction
JP2023168518A (en) Prediction block generation device, image encoder, image decoder, and program
JP5375938B2 (en) Decoding apparatus and method
JP6708211B2 (en) Moving picture coding apparatus, moving picture coding method, and recording medium storing moving picture coding program
KR20110090841A (en) Apparatus and method for encoding/decoding of video using weighted prediction
JP2007266861A (en) Image encoding device
JP2023027401A (en) Decoding device, program, and decoding method
JP4924708B2 (en) Decoding apparatus and method
JP2008166916A (en) Intra prediction encoder and intra prediction coding method
JP5375935B2 (en) Encoding apparatus and method
WO2021100450A1 (en) Intra prediction device, image encoding device, image decoding device, and program
JP2011049816A (en) Moving image encoding device, moving image decoding device, moving image encoding method, moving image decoding method, and program
JP2008104072A (en) Method and apparatus for encoding image data
WO2021251398A1 (en) Deblocking filter device, decoding device, and program
JP4983908B2 (en) Decoding apparatus and method