JP4774315B2 - Image decoding apparatus and image decoding method - Google Patents

Image decoding apparatus and image decoding method Download PDF

Info

Publication number
JP4774315B2
JP4774315B2 JP2006042794A JP2006042794A JP4774315B2 JP 4774315 B2 JP4774315 B2 JP 4774315B2 JP 2006042794 A JP2006042794 A JP 2006042794A JP 2006042794 A JP2006042794 A JP 2006042794A JP 4774315 B2 JP4774315 B2 JP 4774315B2
Authority
JP
Japan
Prior art keywords
block
decoding
pixel
screen
decoded
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.)
Expired - Fee Related
Application number
JP2006042794A
Other languages
Japanese (ja)
Other versions
JP2007221697A (en
Inventor
浩朗 伊藤
智一 村上
勲 軽部
祐介 谷田部
大輔 吉田
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2006042794A priority Critical patent/JP4774315B2/en
Publication of JP2007221697A publication Critical patent/JP2007221697A/en
Application granted granted Critical
Publication of JP4774315B2 publication Critical patent/JP4774315B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、符号化された動画像データを復号化する画像復号化装置及び画像復号化プログラムに係り、特に、H.264/AVC(Advanced Video Coding)規格に基づいて圧縮符号化された動画像データを復号化する画像復号化装置及び画像復号化方法に関する。   The present invention relates to an image decoding apparatus and an image decoding program for decoding encoded moving image data, and in particular, a moving image compressed and encoded based on the H.264 / AVC (Advanced Video Coding) standard. The present invention relates to an image decoding apparatus and an image decoding method for decoding data.

TV信号などの動画像データを高能率に符号化して記録あるいは伝送する手法として、MPEG(Moving Picture Experts Group)方式などの符号化方式が策定され、MPEG-1規格やMPEG-2規格,MPEG-4規格などとして国際標準の符号化方式が定められている。また、さらに圧縮率を向上させる方式として、H.264/AVC規格などが定められている。   MPEG (Moving Picture Experts Group) and other encoding methods have been established as a method for efficiently recording and transmitting moving image data such as TV signals, and the MPEG-1 standard, MPEG-2 standard, MPEG- The international standard encoding system is defined as 4 standards. In addition, the H.264 / AVC standard is defined as a method for further improving the compression rate.

一般に、動画像符号化では、符号化対象フレームをそのフレーム内の情報のみから符号化を行なう画面内予測符号化モードと、前後のフレームとの相関を利用してフレーム間差分の符号化を行なう画面間予測符号化モードとの2つの符号化モードが適応的に用いられる。   In general, in moving picture coding, interframe difference coding is performed using the correlation between an intra-frame predictive coding mode in which a frame to be coded is coded only from information in the frame and the preceding and following frames. Two encoding modes, the inter-picture prediction encoding mode, are used adaptively.

H.264/AVC規格では、MPEG-2規格などと同様の階層からなるデータ構造をなしているが、画面内予測符号化モードと画面間予測符号化モードとの2つの符号化モードを切り替える単位として、スライスが用いられる。MPEG-2規格などでは、符号化モードを切り替える単位がピクチャ(フレーム)としているのに対し、H.264/AVC規格では、この画面の次の下位階層のスライスとするものである。なお、以下では、1フレームの画面を、MPEG-2などでの「ピクチャ」と区別するために、「画面」ということにする。   The H.264 / AVC standard has a data structure with the same hierarchy as the MPEG-2 standard, etc., but is a unit for switching between the two encoding modes of the intra prediction encoding mode and the inter prediction encoding mode. Is used as a slice. In the MPEG-2 standard and the like, the unit for switching the encoding mode is a picture (frame), whereas in the H.264 / AVC standard, it is a slice in the next lower layer of this screen. In the following, in order to distinguish a one-frame screen from a “picture” in MPEG-2 or the like, it is referred to as a “screen”.

上記のように、スライスが予測符号化モードを切り替える単位となるが、画面内予測符号化モードが設定されるスライスをI(Intra 符号化)スライスといい、時間軸上で過去の画面からの予測(前方予測)を用いて符号化する画面間予測符号化モードが設定されるスライスをP(Predictive符号化)スライスといい、過去の画面からの予測(前方予測)あるいは未来の画面からの予測(後方予測)を用いて符号化する画面間予測符号化モードが設定されるスライスをB(Bidirectionally Predictive符号化)スライスという。なお、I,P,Bスライスというスライスの別を、以下、スライスの種別という。   As described above, the slice is a unit for switching the predictive coding mode. A slice in which the intra-screen predictive coding mode is set is called an I (Intra coding) slice, and prediction from a past screen on the time axis is performed. A slice in which an inter-frame prediction encoding mode to be encoded using (forward prediction) is set is called a P (Predictive encoding) slice, and prediction from a past screen (forward prediction) or prediction from a future screen ( A slice in which an inter-frame predictive coding mode to be coded using backward prediction is set is called a B (Bidirectionally Predictive Coding) slice. The slices called I, P, and B slices are hereinafter referred to as slice types.

図6は1画面のスライスによるデータ構造を模式的に示す図であって、H.264/AVC規格では、図示するように、1画面が複数のスライスに分割され、夫々のスライスはI,P,Bスライスのいずれかである。   FIG. 6 is a diagram schematically showing the data structure of a slice of one screen. In the H.264 / AVC standard, one screen is divided into a plurality of slices as shown in the figure. , B slices.

これらI,P,Bスライスのいずれも、スライスの下位階層のブロックであるMB(マクロブロック)を単位として(即ち、MB毎に)符号化が行なわれるが、MBでの選択可能な予測符号化モードは、スライスに設定される予測符号化モード毎に、即ち、I,P,Bスライス毎に異なる。具体的には、IスライスのMBでは、画面内予測符号化モードのみが選択可能である(即ち、画面内予測符号化モードでのみ、符号化が行なわれる)。PスライスのMBでは、画面内予測符号化と画面間予測符号化(前方予測のみ)が選択可能である(即ち、MBに応じて画面内予測符号化モードと前方予測による画面間予測符号化モードとのいずれかを選択できる)。BスライスのMBでは、画面内予測符号化及び画面間予測符号化(前方予測と後方予測)が選択可能である(即ち、MBに応じて画面内予測符号化モードと前方及び後方予測による画面間予測符号化モードとのいずれかを選択できる)。   All of these I, P, and B slices are encoded in units of MB (macroblocks) that are blocks in the lower layer of the slice (that is, for each MB), but selectable predictive encoding in MB. The mode is different for each predictive coding mode set in a slice, that is, for each I, P, and B slice. Specifically, in the I slice MB, only the intra prediction encoding mode can be selected (that is, encoding is performed only in the intra prediction encoding mode). In the MB of the P slice, intra prediction encoding and inter prediction encoding (only forward prediction) can be selected (that is, intra prediction encoding mode and inter prediction encoding mode based on forward prediction depending on the MB). Or you can choose). In MB of B slice, intra prediction encoding and inter prediction encoding (forward prediction and backward prediction) can be selected (that is, inter prediction encoding mode and inter prediction prediction mode according to MB. One of the prediction encoding modes can be selected).

即ち、P,BスライスのMBは、前方予測による画面間予測符号化モード,前方予測と後方予測による画面間予測符号化モードによって符号化が行なわれるものであるが、また、画面内予測符号化モードによっても符号化が行なわれるのである。   That is, MBs of P and B slices are encoded by the inter prediction encoding mode by forward prediction and the inter prediction encoding mode by forward prediction and backward prediction. Coding is also performed depending on the mode.

なお、H.264/AVC規格では、スライス毎に異なる予測符号化モードを混在させることも可能である。しかしながら、以下の説明では、本発明を明示的に表現することを目的として、1画面中のスライス種別を1種類として説明する。従って、以下では、1画面がI,P,Bスライスのいずれか1種類の、即ち、同じスライス種別のスライスからなるものとする。   In the H.264 / AVC standard, different predictive coding modes can be mixed for each slice. However, in the following description, the slice type in one screen is described as one type for the purpose of explicitly expressing the present invention. Therefore, in the following, it is assumed that one screen is composed of one of the I, P, and B slices, that is, slices of the same slice type.

動画像符号化では、可変長符号化や離散コサイン変換(DCT)などの直交変換,変換係数の量子化,動き補償予測などの手法により、高い圧縮率を実現する。しかしながら、これらは複雑なアルゴリズムを採用しているために、実時間で処理するには、多大なデータ処理能力とメモリ容量が必要である。例えば、動画像復号化において、上記の動き補償予測によって過去及び未来の画面から双方向の予測を行なうためには、最低でも、2枚の参照フレーム・メモリと1枚の復号用フレーム・メモリとを必要とする。これは、標準解像度(SDTV)の映像信号の場合で約1.6MByte、高解像度(HDTV)の映像信号の場合で約9.4Mbyteのフレーム・メモリ容量となる。   In moving picture coding, a high compression rate is realized by techniques such as orthogonal transform such as variable length coding and discrete cosine transform (DCT), quantization of transform coefficients, and motion compensation prediction. However, since these employ complex algorithms, a large amount of data processing capacity and memory capacity are required for processing in real time. For example, in video decoding, in order to perform bidirectional prediction from past and future screens by the above motion compensation prediction, at least two reference frame memories and one decoding frame memory are required. Need. This is a frame memory capacity of about 1.6 MByte for a standard resolution (SDTV) video signal and about 9.4 Mbyte for a high resolution (HDTV) video signal.

このように動画像復号化において、多大なメモリ容量が必要となる問題を解決する手法の1つとして、復号化した画像データを圧縮してメモリに格納し、参照画像としてメモリから読み出す際に、これを伸張することでメモリサイズを削減する手法が提案されている(例えば、特許文献1参照)。
特開2000−50272号公報
As one of the techniques for solving the problem that requires a large memory capacity in moving picture decoding as described above, the decoded image data is compressed and stored in the memory, and is read out from the memory as a reference image. A technique for reducing the memory size by expanding this is proposed (for example, see Patent Document 1).
JP 2000-50272 A

ところで、H.264/AVC規格で符号化された画像データを復号する際に、上記特許文献1に従って参照画像を圧縮・伸張すると、画面内の画面間予測符号化された部分内に存在する画面内予測符号化されたブロックで、周りの画面間予測符号化された部分に比べて大きな画質劣化が発生し、画面内でこれが目立って表示されることがある。以下、この点について説明する。   By the way, when decoding the image data encoded according to the H.264 / AVC standard, if the reference image is compressed / decompressed according to Patent Document 1, the screen existing in the inter-screen predictive encoded portion of the screen In a block that has been subjected to intra prediction encoding, image quality degradation is greater than that of a portion that has been inter prediction encoded, and this may be displayed prominently on the screen. Hereinafter, this point will be described.

H.264/AVC規格では、従来のMPEG-2規格やMPEG-4規格などの符号化方式と比較して、様々な符号化ツールが新規に導入されている。そのうちの1つである画面内予測符号化では、この画面内予測符号化の対象となるブロック(以下、画面内予測符号化対象ブロックという)に隣接する既に符号化されたブロックを復号し、この復号ブロックでの所定の画素を用いて予測値を生成し、画面内予測符号化対象ブロックの画素(以下、画面内予測符号化画素という)毎にその画素値と予測値の差分を求めてこれを符号化する手法である。H.264/AVC規格における画面内予測符号化には、予測符号化の対象となるブロックサイズを決める符号化モードと予測の方向を決める予測モードとの2つのパラメータがあり、符号化モードには、Intra_4×4モード,Intra_8×8モード及びIntra_16×16モードの3種類のイントラ符号化モードがある。   In the H.264 / AVC standard, various encoding tools are newly introduced as compared with conventional encoding methods such as the MPEG-2 standard and the MPEG-4 standard. In the intra prediction encoding which is one of them, an already encoded block adjacent to a block which is the target of the intra prediction encoding (hereinafter referred to as an intra prediction encoding target block) is decoded, and this A prediction value is generated using a predetermined pixel in the decoding block, and a difference between the pixel value and the prediction value is obtained for each pixel of the intra prediction encoding target block (hereinafter referred to as an intra prediction encoding pixel). This is a method for encoding. In the intra prediction encoding in the H.264 / AVC standard, there are two parameters, an encoding mode for determining a block size to be predicted encoding and a prediction mode for determining a prediction direction. There are three types of intra coding modes: Intra_4 × 4 mode, Intra_8 × 8 mode, and Intra_16 × 16 mode.

MBは16×16画素からなるブロックであって、これを4×4画素のサイズの16個のブロックに分割し、これらブロック毎に画面内予測符号化する符号化モードがIntra_4×4モードであり、8×8画素のサイズの4個のブロックに分割し、これらブロック毎に画面内予測符号化するモードがIntra_8×8モードであり、16×16画素のサイズのMBを画面内予測符号化対象ブロックとして画面内予測符号化するモードがIntra_16×16モードである。MB毎に、これらイントラ符号化モードの1つが選択される。   MB is a block composed of 16 × 16 pixels, and this is divided into 16 blocks of 4 × 4 pixel size, and the encoding mode for intra prediction encoding for each block is Intra_4 × 4 mode. Intra_8 × 8 mode is the mode that divides the block into 4 blocks of 8 × 8 pixel size and performs intra prediction encoding for each block, and MB of 16 × 16 pixel size is subject to intra prediction encoding The mode for intra prediction encoding as a block is the Intra_16 × 16 mode. One of these intra coding modes is selected for each MB.

予測の方向とは、画面内予測符号化対象ブロックでの、このブロックに隣接する復号化されたブロックでの予測値を求める画素からの画面内予測符号化の対象となる画素(即ち、符号化対象画素)の配列方向をいう。この予測の方向は、上記のイントラ符号化モードに応ずるが、複数個の予測方向が用意されており、そのいずれかを選択することができる。この予測方向に応じて画面内予測符号化対象画素と予測値との差分の求め方(これをイントラ予測モードという)が異なる。   The prediction direction refers to a pixel to be subjected to intra prediction encoding from a pixel for which a prediction value in a decoded block adjacent to this block is calculated in the intra prediction encoding target block (that is, encoding). This is the direction in which the target pixel is arranged. The prediction direction depends on the intra coding mode, but a plurality of prediction directions are prepared, and any one of them can be selected. The method for obtaining the difference between the intra-frame prediction encoding target pixel and the prediction value (this is called an intra prediction mode) differs depending on the prediction direction.

図7はイントラ符号化モードに対する予測モード(イントラ予測モード)を示す図であって、図示するように、Intra_4×4モードでは、イントラ予測モード0〜8の9種類のイントラ予測モードが決められており、そのいずれかを選択できる。Intra_8×8モードでも、イントラ予測モード0〜8の9種類のイントラ予測モードが決められており、Intra_16×16モードでは、イントラ予測モード0〜3の4種類のイントラ予測モードが決められていて、それらのうちの1つを選択できる。   FIG. 7 is a diagram showing a prediction mode (intra prediction mode) for the intra coding mode. As shown in the figure, in the Intra_4 × 4 mode, nine types of intra prediction modes 0 to 8 are determined. One of them can be selected. In Intra_8 × 8 mode, nine types of intra prediction modes of intra prediction modes 0 to 8 are determined. In Intra_16 × 16 mode, four types of intra prediction modes of intra prediction modes 0 to 3 are determined. One of them can be selected.

図8はIntra_4×4モードでのイントラ予測モードを示す図であって、同図(a)がイントラ予測モード0を示すものであり、以下、同図(b),(c),(d),……,(i)は夫々イントラ予測モード1,2,3,……,8を示している。   FIG. 8 is a diagram showing an intra prediction mode in the Intra_4 × 4 mode, in which FIG. 8A shows the intra prediction mode 0. Hereinafter, FIG. 8B, FIG. 8C, and FIG. ,..., (I) indicate intra prediction modes 1, 2, 3,.

図8(a)〜(i)において、白丸印○は画面内予測符号化対象ブロック(ここでは、単に符号化対象ブロックという)での画素(即ち、画面内予測符号化対象画素:ここでは、単に符号化対象画素という)を示し、4行×4列の配列をなしている。図8(a)では、説明の都合上、各符号化対象画素に、その配列順に左上隅から右下隅まで横方向に1,2,3,……,16の符号をつけている。黒丸印●は符号化対象画素1,2,……の符号化のための予測値を求めるための他のブロック(以下、周辺ブロックという)の画素(以下、予測値画素という)を示すものであって、各予測値画素に符号A,B,C,……を付すとともに、図8(a)に周辺ブロックを明示し、予測値画素A,B,C,……がどの周辺ブロックに属するかを明確にしている。即ち、
予測値画素A〜D:符号化対象ブロックの上側の隣接ブロックBRUの最も下
側に水平方向に配列された4個の画素
予測値画素E〜H:符号化対象ブロックの左側に隣接ブロックBRLの最も右
側に垂直方向に配列された4個の画素
予測値画素I:符号化対象ブロックの左上角側の隣接ブロックBRULの右
下隅の画素
である。かかる予測値画素A,B,C,……と周辺ブロックとの関係は、図8(b)〜(i)についても同様である。
In FIGS. 8A to 8I, white circles ○ are pixels in the intra prediction encoding target block (herein simply referred to as encoding target block) (that is, intra prediction encoding target pixel: It is simply referred to as a pixel to be encoded) and has an array of 4 rows × 4 columns. In FIG. 8 (a), for the convenience of explanation, reference numerals 1, 2, 3,..., 16 are assigned to the respective encoding target pixels in the horizontal direction from the upper left corner to the lower right corner in the arrangement order. A black circle ● indicates a pixel (hereinafter referred to as a prediction value pixel) of another block (hereinafter referred to as a peripheral block) for obtaining a prediction value for encoding the encoding target pixels 1, 2,. In addition, symbols A, B, C,... Are attached to the respective prediction value pixels, and the peripheral blocks are clearly shown in FIG. 8A, and the prediction value pixels A, B, C,. It is clear. That is,
Predicted value pixels to D: the upper coded block lowermost adjacent blocks BR U
4 pixel prediction value pixels arranged in the horizontal direction on the side E-H: rightmost neighbor blocks BR L on the left side of the encoding target block
4 pixel prediction value pixels arranged in the vertical direction on the side I: right adjacent blocks BR UL of the upper left corner side of the encoding target block
This is the pixel at the bottom corner. The relationship between the predicted value pixels A, B, C,... And the peripheral blocks is the same as in FIGS.

図8(a),(b),(d)〜(i)において、矢印で示す方向は予測の方向を示すものであり、予測値画素を用いて求めた予測値は、この予測値を求めるのに用いた予測値画素からこの予測方向に配列される符号化対象画素を符号化するのに用いる。   In FIGS. 8A, 8B, and 8D to 8I, the direction indicated by the arrow indicates the direction of prediction, and the prediction value obtained using the prediction value pixel obtains this prediction value. This is used to encode the encoding target pixels arranged in the prediction direction from the prediction value pixels used in the above.

図8(a)に示すイントラ予測モード0を例にして説明すると、予測方向は下方向であり、この場合には、符号化対象ブロックから見て上側隣接ブロックBRUの画素A,B,C,Dが予測値画素となる。そして、予測方向からして、予測値画素Aの画素値がこの予測値画素Aの下方向に配列される符号化対象画素1,5,9,13の予測値(これを予測値Aとする)となり、これら符号化対象画素1,5,9,13毎に、その画素値とこの予測値Aとの差分が求められて符号化される。 When the intra prediction mode 0 shown in FIG. 8 (a) is described as an example, the prediction direction is the downward direction, in this case, upper side viewed from the encoding target block adjacent blocks BR U of pixels A, B, C , D are prediction value pixels. Then, from the prediction direction, the prediction value of the encoding target pixels 1, 5, 9, and 13 in which the pixel value of the prediction value pixel A is arranged in the downward direction of the prediction value pixel A (this is the prediction value A). For each of the encoding target pixels 1, 5, 9, and 13, the difference between the pixel value and the predicted value A is obtained and encoded.

同様にして、予測値画素Bの画素値がその下方に配列される符号化対象画素2,6,10,14の予測値Bとなり、予測値画素Cの画素値がその下方に配列される符号化対象画素3,7,11,15の予測値Cとなり、予測値画素Dの画素値がその下方に配列される符号化対象画素4,8,12,16の予測値Cとなって、夫々符号化対象画素とその予測値との差分が求められ、その差分がDCT変換,量子化,可変長符号化によって符号化されるのである。   Similarly, the pixel value of the prediction value pixel B becomes the prediction value B of the encoding target pixels 2, 6, 10, and 14 arranged below, and the pixel value of the prediction value pixel C is arranged below it. The prediction value C of the encoding target pixels 3, 7, 11, and 15 becomes the prediction value C, and the pixel value of the prediction value pixel D becomes the prediction value C of the encoding target pixels 4, 8, 12, and 16 arranged below, respectively. The difference between the encoding target pixel and the predicted value is obtained, and the difference is encoded by DCT transform, quantization, and variable length encoding.

図8(b)〜(i)に示すイントラ予測モード1〜8についても同様であり、予測方向を示す図示の矢印の線に沿って、その矢印を発する隣接ブロックの画素の画素値から符号化対象画素の予測値が生成される。   The same applies to the intra prediction modes 1 to 8 shown in FIGS. 8B to 8I, and encoding is performed from the pixel values of the pixels of the adjacent blocks that emit the arrow along the indicated arrow line indicating the prediction direction. A predicted value of the target pixel is generated.

なお、図8(c)に示すイントラ予測モード2では、全ての符号化対象画素の予測値を、この符号化対象ブロックに隣接する画素A〜Hを予測値画素として、それらの平均画素値とする。   In the intra prediction mode 2 shown in FIG. 8C, the prediction values of all the encoding target pixels are set to the average pixel values of the pixels A to H adjacent to the encoding target block as the prediction value pixels. To do.

以上のように、符号化対象ブロックの上辺,左辺及び左上隅に隣接する隣接ブロックの画素を予測値画素とし、かかる予測値画素の画素値から予測値を所定の計算式でもって求め、かかる予測値と符号化対象ブロックでの符号化対象画素の画素値との差分を求め、この差分値を符号化する。   As described above, pixels of adjacent blocks adjacent to the upper side, left side, and upper left corner of the encoding target block are set as predicted value pixels, and a predicted value is obtained from the pixel value of the predicted value pixel by a predetermined calculation formula, and the prediction is performed. The difference between the value and the pixel value of the encoding target pixel in the encoding target block is obtained, and the difference value is encoded.

Intra_8×8モード(図7)でも、1ブロックを8×8画素として、図8に示すIntra_4×4モードと同様の9種類のイントラ予測モードから選択可能とする。   In the Intra_8 × 8 mode (FIG. 7), one block is set to 8 × 8 pixels, and nine types of intra prediction modes similar to the Intra_4 × 4 mode shown in FIG. 8 can be selected.

Intra_16×16モード(図7)は、符号化対象ブロックを16×16画素のMBを符号化対象ブロックとするものであって、図9に示す4種類のイントラ予測モード0〜3から選択可能としている。これらイントラ予測モード0〜3も、図8のイントラ予測モードと同様、符号化対象ブロックの符号化対象画素毎に、符号化対象ブロックの周辺ブロックの画素から求めた予測値と予測方向に配列される符号化対象画素の画素値との差分を求め、その差分を符号化する。   Intra_16 × 16 mode (FIG. 7) is an encoding target block in which an MB of 16 × 16 pixels is an encoding target block, and can be selected from the four types of intra prediction modes 0 to 3 shown in FIG. Yes. These intra prediction modes 0 to 3 are also arranged in the prediction value and the prediction direction obtained from the pixels of the peripheral blocks of the encoding target block for each encoding target pixel of the encoding target block, as in the intra prediction mode of FIG. A difference from the pixel value of the encoding target pixel is obtained, and the difference is encoded.

なお、図9(a)に示すイントラ予測モード0は、図8(a)に示すイントラ予測モード0と同様にして、上側の隣接ブロックの最も下側の列に配列される画素を予測値画素とし、その画素値を予測画素値とし、その予測値画素から下方の予測方向に配列される符号化対象画素の画素値との差分を求めるものである。また、図9(b)に示すイントラ予測モード1は図8(b)に示すイントラ予測モード1と同様であり、図9(c)に示すイントラ予測モード2は図8(c)に示すイントラ予測モード2と同様である。図9(d)に示すイントラ予測モード3も、予測方向が傾斜しているものであって、予測値や符号化対象画素の符号化処理は上記と同様である。   Note that, in the intra prediction mode 0 shown in FIG. 9A, the pixels arranged in the lowermost column of the upper adjacent block are predicted value pixels in the same manner as the intra prediction mode 0 shown in FIG. The pixel value is used as a predicted pixel value, and a difference from the pixel value of the encoding target pixel arranged in the prediction direction below the predicted value pixel is obtained. 9B is the same as the intra prediction mode 1 shown in FIG. 8B, and the intra prediction mode 2 shown in FIG. 9C is the intra prediction mode 1 shown in FIG. This is the same as in prediction mode 2. In the intra prediction mode 3 shown in FIG. 9D, the prediction direction is inclined, and the encoding process of the prediction value and the encoding target pixel is the same as described above.

画像復号化装置は、このように予測値との差分が符号化された各画素を元の画素値の画素に復号するものである。   The image decoding apparatus decodes each pixel in which the difference from the predicted value is encoded in this way into a pixel having the original pixel value.

図10は画面間予測符号化モードが用いられたスライス(即ち、PスライスまたはBスライス)からなる1つの画面での画面内予測符号化されたMBの復号動作例を示す図である。   FIG. 10 is a diagram illustrating an example of decoding operation of intra-screen predictive-coded MBs in one screen composed of slices (that is, P slices or B slices) in which the inter-screen predictive coding mode is used.

図10(a)は、例えば、Pスライスからなる1画面を示すものであって、この画面中の縦2MB×横2MBからなるエリアERを拡大して示したものが図10(b)である。 FIG. 10A shows, for example, one screen made up of P slices, and FIG. 10B shows an enlarged area ER made up of 2 MB × 2 MB in this screen. .

図10(b)において、左上の16×16画素からなるMBをMB−0、右上のMBをMB−1、左下のMB−2、右下のMBをMB−3とする。「インター予測」として示すMB−0〜MB−2は画面間予測符号化されたものが復号されたブロックであり、「イントラ予測」として示すMB−3は、例えば、図9(a)で示すイントラ予測モード0で画面内予測符号化モードで符号化されたものとする。従って、図10(b)は、……,MB−0,MB−1,……の順で復号されて、……,MB−2が復号され、次に、MB−3が復号される状態にあるものとする。復号された画面間予測符号化ブロックを、以下、画面間予測復号ブロックといい、画面内予測復号化の対象となるMB−3を、以下、画面内予測復号化対象ブロックという。   In FIG. 10B, the upper left 16 × 16 pixel MB is MB-0, the upper right MB is MB-1, the lower left MB-2, and the lower right MB is MB-3. MB-0 to MB-2 indicated as "inter prediction" are blocks obtained by decoding inter-frame prediction encoding, and MB-3 indicated as "intra prediction" is illustrated in FIG. 9A, for example. It is assumed that the encoding is performed in the intra prediction mode 0 and the intra prediction encoding mode. Accordingly, FIG. 10B shows a state where..., MB-0, MB-1,... Are decoded in order,..., MB-2 is decoded, and then MB-3 is decoded. It shall be in The decoded inter-screen predictive coding block is hereinafter referred to as an inter-screen predictive decoding block, and MB-3 which is the target of intra-screen predictive decoding is hereinafter referred to as an intra-screen predictive decoding target block.

そして、このときの画面内予測復号化対象ブロックとしてのMB−3では、その画素(画面内予測復号化対象画素)が図9(a)に示すイントラ予測モード0で予測値との差分が符号化されたものであって、ここでは、MB−3の各画素が可変長復号,逆量子化,IDCT変換されて、その画素値が予測値との差分値で表わされているものとする。   Then, in MB-3 as the intra prediction decoding target block at this time, the difference between the pixel (intra prediction decoding target pixel) and the prediction value in the intra prediction mode 0 shown in FIG. Here, it is assumed that each pixel of MB-3 is subjected to variable length decoding, inverse quantization, and IDCT conversion, and the pixel value is represented by a difference value from the predicted value. .

そこで、画面内予測復号化対象ブロックであるMB−3では、既に復号された画面間予測復号ブロックとしてのMB−1の最も下側の画素の画素値を参照値として、これをMB−3の該当する画面内予測復号化対象画素での上記の差分で表わされる画素値に加算して、元の画素値を復元する。このように、画素値を画面内予測復号化対象ブロックでの参照値とする画素を、以下、参照画素といい、この参照画素を含む復号されたブロックを、以下、参照ブロックという。 Therefore, in the MB-3 that is the intra-frame predictive decoding target block, the pixel value of the lowermost pixel of the MB-1 that has already been decoded as the inter-screen predictive decoding block is used as a reference value, and this is used as the MB-3. The original pixel value is restored by adding to the pixel value represented by the above difference in the corresponding intra prediction decoding target pixel. In this way, a pixel whose pixel value is a reference value in an intra-screen predictive decoding target block is hereinafter referred to as a reference pixel, and a decoded block including this reference pixel is hereinafter referred to as a reference block.

図11は図10(b)のMB−3の部分を拡大して示す図であり、白丸が画面内予測復号化対象画素であって、かかる16×16個の画面内予測復号化対象画素からなる部分が図10(b)での画面内予測復号化対象ブロックとしてのMB−3である。また、黒丸で示す画素A,B,C,……はこのMB−3に対する参照画素であり、これらは図10(b)での参照ブロックとしてのMB−1の最も下側に配列されいするものである。さらに、参照画素A,B,C,……からの矢印は、画面内予測復号化対象ブロックの復号化の予測方向を示すものであり、これは符号化のときの予測方向と一致する。   FIG. 11 is an enlarged view of the portion of MB-3 in FIG. 10B, and the white circles are the intra-screen prediction decoding target pixels, and from these 16 × 16 intra-screen prediction decoding target pixels. This part is MB-3 as the intra-frame predictive decoding target block in FIG. Further, pixels A, B, C,... Indicated by black circles are reference pixels for this MB-3, and these are arranged on the lowermost side of MB-1 as a reference block in FIG. Is. Furthermore, the arrows from the reference pixels A, B, C,... Indicate the prediction direction of decoding of the intra-screen predictive decoding target block, and this coincides with the prediction direction at the time of encoding.

図11において、この場合の予測方向は、参照画素A,B,C,……からの矢印で示す下向きの方向であり、このため、参照画素Aから下方向に配列されるMB−3の16個の復号化対象画素の上記差分で表わされる画素値に、この参照値としての参照画素Aの画素値を加算することにより、これら16個の復号化対象画素の画素値が元の符号化前の画素値に復元されることになる。   In FIG. 11, the prediction direction in this case is the downward direction indicated by the arrow from the reference pixels A, B, C,... By adding the pixel value of the reference pixel A as the reference value to the pixel value represented by the difference of the decoding target pixels, the pixel values of the 16 decoding target pixels are converted into the original values before encoding. The pixel value is restored.

以下同様にして、参照画素Bから下方向に配列される16個の復号化対象画素についても、この参照画素Bの画素値を参照値とすることにより、元の画素値が復元され、参照画素Cから下方向に配列される16個の復号化対象画素についても、この参照画素Cの画素値を参照値とすることにより、元の画素値が復元され、このようにして、画面内予測復号化対象ブロックであるMB−3での全ての復号化対象画素の画素値が元の値に復元されることになる。   Similarly, for the 16 decoding target pixels arranged downward from the reference pixel B, the original pixel value is restored by using the pixel value of the reference pixel B as a reference value, and the reference pixel For the 16 decoding target pixels arranged in the downward direction from C, the original pixel value is restored by using the pixel value of the reference pixel C as a reference value, and thus intra-screen predictive decoding is performed. The pixel values of all the decoding target pixels in MB-3 that is the conversion target block are restored to the original values.

このことは、符号化に際し、図9(b)〜(d)に示されるイントラ予測モードを用いた画面内予測復号化対象ブロックについても、符号化の際に予測値として用いて予測値画素に相当する画素(参照画素)から上記の予測値を再現する参照値を取得し、これを用いて画面内予測復号化対象ブロックでの復号化対象画素の画素値を元の値に復元することができる。また、図8に示すIntra_4×4モードのイントラ予測モードが用いられたものであるときも、Intra_8×8モードのイントラ予測モードが用いられたものであるときも、同様である。   This means that, when encoding, the intra prediction decoding target block using the intra prediction mode shown in FIGS. 9B to 9D is also used as a prediction value at the time of encoding to a prediction value pixel. Obtaining a reference value for reproducing the predicted value from a corresponding pixel (reference pixel), and using this to restore the pixel value of the decoding target pixel in the intra prediction decoding target block to the original value it can. The same applies when the intra prediction mode of Intra_4 × 4 mode shown in FIG. 8 is used or when the intra prediction mode of Intra_8 × 8 mode is used.

このようにして、H.264/AVC規格で符号化された画像データは復号されるのであるが、画面間予測符号化ブロックを復号するための参照ブロックを確保するために、復号された画面がメモリに蓄積されて保存される。そして、復号対象となる画面間予測符号化ブロックを復号する際には、これの参照ブロックとなるブロックを含む復号画面がメモリから読み出され、このブロックが画面間予測復号化対象ブロックの参照ブロックとして用いられる。   In this way, image data encoded according to the H.264 / AVC standard is decoded, but in order to secure a reference block for decoding the inter-screen prediction encoded block, the decoded screen is Accumulated and saved in memory. Then, when decoding the inter-screen predictive coding block to be decoded, the decoded screen including the block serving as the reference block is read from the memory, and this block is the reference block of the inter-screen predictive decoding target block. Used as

本発明における画像復号装置では、かかる復号画面のメモリへの蓄積について、メモリの容量を削減するために、ダウンデコード機能を備えている。このダウンデコード機能とは、復号画面をメモリへ書き込む際には、この復号画面を画素の間引き処理してその画面サイズを縮小(圧縮:ダウンコンバート)し、メモリから復号画面を読み出すときには、画素補間処理によって元の画面サイズに戻す(アップコンバートする)ものである。これにより、ダウンデコード機能を備えない画像復号化装置よりも容量が小さいメモリを用いることができる。   The image decoding apparatus according to the present invention has a down-decode function for reducing the memory capacity for storing the decoded screen in the memory. With this down-decode function, when the decoded screen is written to the memory, the decoded screen is subjected to pixel thinning to reduce the screen size (compression: down-conversion), and when the decoded screen is read from the memory, pixel interpolation is performed. The processing returns to the original screen size (up-conversion). This makes it possible to use a memory having a smaller capacity than an image decoding apparatus that does not have a down-decoding function.

しかしながら、このように復号画面をダウンデコードすると、間引きされ、補間されて復元された画素は正確には元の画素値を持つことができず、誤差を含む画素値となる。従って、図11において、画面内予測復号化対象ブロックであるMB−3に対する参照ブロックとなるMB−1の各画素は誤差を含む画素値を有することになり、このMB−1での参照画素A,B,C,……は誤差を含んだものとなる。そこで、かかる誤差を含んだ参照画素A,B,C,……による参照値でもってMB−3の画面内予測復号化対象画素の画素値を復元すると、それら復元された画素値に誤差が含まれることになり、MB−3のブロック全体に空間方向に誤差の影響が波及することになる。   However, when the decoding screen is down-decoded in this way, the pixels that are thinned out, interpolated and restored cannot accurately have the original pixel values, and become pixel values including errors. Accordingly, in FIG. 11, each pixel of MB-1 that is a reference block for MB-3 that is the intra-frame predictive decoding target block has a pixel value including an error, and the reference pixel A in this MB-1 , B, C,... Include errors. Therefore, when the pixel value of the intra-frame predictive decoding target pixel of MB-3 is restored with the reference value of the reference pixels A, B, C,... Including such an error, the restored pixel value includes an error. As a result, the influence of errors propagates in the spatial direction to the entire MB-3 block.

画面内予測符号化されたブロックの参照ブロックとなる画面間予測復号化ブロックでは、上記ダウンデコード機能によりダウンコンバート・アップコンバートが行なわれたことにより、時間軸方向のドリフト誤差が生ずる。   In the inter-frame predictive decoding block that becomes a reference block of the intra-frame predictive-coded block, the down-conversion / up-conversion is performed by the down-decoding function, thereby causing a drift error in the time axis direction.

さらに、画面内予測復号化対象ブロックの参照画素となる画面間予測復号ブロックの復号された画素にかかる重畳されたドリフト誤差が含まれると、かかる画面間予測復号ブロックの所定の画素を参照画素して復号される画面内予測復号化対象ブロックでは、ブロック内の空間方向に同様の誤差が波及することになり、他のブロックと比べて、さらに画質劣化が大きくなるものである。   Further, when a superimposed drift error related to the decoded pixel of the inter-screen prediction decoding block that becomes the reference pixel of the intra-screen prediction decoding target block is included, the predetermined pixel of the inter-screen prediction decoding block is referred to as a reference pixel. In the intra-frame predictive decoding target block that is decoded in this manner, the same error spills over in the spatial direction in the block, and the image quality deterioration is further increased as compared with other blocks.

以上のように、画面間予測復号化した画面に対して上記のダウンデコードすることにより、このダウンデコードのためのメモリのサイズを削減する従来の画像復号化装置では、画面内予測符号化されたブロックを復号する際、参照画素に含まれる上記の重畳された誤差がこの画面内予測復号化対象ブロックで空間方向に伝播するが、従来、この点については考慮されていなかった。このため、復号された画面内での画面間予測復号化ブロックの間に存在する画面内予測復号化ブロックの部分の画質劣化が他の部分よりも大きくなり、主観上の画質劣化が目に付きやすいという問題があった。   As described above, in the conventional image decoding device that reduces the size of the memory for down-decoding by performing the above-described down-decoding on the inter-screen predictive decoded screen, the intra-screen predictive coding is performed. When a block is decoded, the above-described superimposed error included in the reference pixel propagates in the spatial direction in the intra-frame predictive decoding target block, but this point has not been considered conventionally. For this reason, the image quality degradation of the intra prediction decoding block portion existing between the inter prediction decoding blocks in the decoded screen is larger than the other portions, and subjective image quality degradation is noticeable. There was a problem that it was easy.

本発明は、かかる問題に鑑みてなされたものであって、その目的は、画面内の画面間予測復号された部分の間に存在する画面内予測復号されたブロックでの画質劣化を軽減することができるようにした画像復号化装置及び画像復号化方法を提供することにある。   The present invention has been made in view of such a problem, and an object thereof is to reduce image quality deterioration in an intra-screen predictive decoded block existing between inter-screen predictive decoded portions in a screen. It is an object of the present invention to provide an image decoding apparatus and an image decoding method that can perform the above.

上記目的を達成するために、本発明は、一画面が符号化単位としての画面内予測符号化モードで符号化された所定個数の画素からなる画面内予測符号化モードによるブロックからなるIスライスと符号化単位としての画面内予測符号化で符号化された該所定個数の画素からなる画面内予測符号化モードによるブロックと符号化単位としての画面間予測符号化で符号化された該所定個数の画素からなる画面間予測符号化モードによるブロックとからなるP,Bスライスとからなる符号化された画像データを復号化処理する画像復号化装置であって、該I,P,Bスライスでの該画面内予測符号化モードによるブロックの画素を、画面内予測復号化対象画素として、該ブロックと同じ画面内の該ブロックに隣接する他のブロックの画素を参照画素として用いて復号化し、かつ、該P,Bスライスでの該画面間予測符号化モードによる該ブロックの画素を、画面間復号化対象画素として、該ブロックを含む画面に先行もしくは後続する他の画面での該ブロックに該当する位置の他のブロックの画素を参照画素として用いて復号化する復号化部と、
該復号化部からの該画面内予測復号化対象画素の復号画素による復号ブロックが供給される画像補正部と、該画像補正部から出力される該復号ブロックの画像データから該画面内復号化対象画素を復号するための該参照画素を生成する画面内予測部と、該画像補正部から出力される該復号ブロックと該復号化部から出力される該画面間復号化対象画素の復号画素による復号ブロックとによる画像データの画像サイズを縮小する画像縮小部と、該画像サイズが縮小された画像データを保持する記憶部と、該記憶部から読み出した該画像データを元の画像サイズに伸張する画像伸張部と、該画像伸張部からの画像データから該画面間予測復号化対象画素を復号するための該参照画素を作成する動き補償部とを備え、該画像補正部は、該復号化部から供給される該画面内予測符号化モードの復号ブロックのうちの、P,Bスライスに属し、かつ画面間予測符号化モードの復号ブロックの画素を参照画素として復号された画面内予測符号化モードの復号ブロックを補正対象の復号ブロックとし、該補正対象の復号ブロックに対して、画面間予測符号化モードの復号ブロックの画素を参照画素として復号したことによる時間軸方向のドリフト誤差を取り除く画像補正を行ない、該画像補正部の該補正対象の復号ブロックは、画面間予測復号化に用いる画面間予測復号化参照画面での該補正対象ブロックに対応する参照画面対象ブロックと、該補正対象の復号ブロックと該参照画面対象ブロックとの画素値の差分絶対値和の平均値が予め設定された閾値以下であって、相関があり、かつアクティビティが所定の閾値以下で画質劣化が目立つ該復号ブロックであり、該画像補正部は、該参照画面対象ブロックの画素の画素値の平均値と該補正対象の復号ブロックの画素の画素値の平均値との差に該補正対象の復号ブロックと該参照画面対象ブロックとの画素値の差分絶対値和の平均値に応じた係数を乗算した値を、該ドリフト誤差として、該復号ブロックの各画素に加算して、該補正対象の復号ブロックの該画像補正を行なうことを特徴とするものである。
In order to achieve the above object, the present invention provides an I slice consisting of a block according to an intra prediction encoding mode consisting of a predetermined number of pixels encoded in an intra prediction encoding mode as an encoding unit. The predetermined number of blocks encoded by the intra prediction encoding mode and the block by the intra prediction encoding mode consisting of the predetermined number of pixels encoded by the intra prediction encoding as the encoding unit. An image decoding apparatus that decodes encoded image data including P and B slices including blocks in an inter-screen predictive encoding mode including pixels, wherein the I, P, and B slices The pixel in the block in the intra prediction encoding mode is set as the intra prediction decoding target pixel, and the pixel in the other block adjacent to the block in the same screen as the block is the reference pixel. Other pixels that precede or follow the screen containing the block as the inter-screen decoding target pixel, using the pixel of the block in the inter-screen predictive coding mode in the P and B slices. A decoding unit that performs decoding using a pixel of another block at a position corresponding to the block on the screen as a reference pixel;
An image correction unit to which a decoding block based on a decoded pixel of the intra-screen prediction decoding target pixel from the decoding unit is supplied, and an intra-screen decoding target from the image data of the decoding block output from the image correction unit Intra-screen prediction unit that generates the reference pixel for decoding the pixel, the decoding block output from the image correction unit, and the decoding of the inter-screen decoding target pixel output from the decoding unit An image reduction unit that reduces the image size of the image data by the block, a storage unit that holds the image data with the reduced image size, and an image that expands the image data read from the storage unit to the original image size A decompression unit, and a motion compensation unit that creates the reference pixel for decoding the inter-picture prediction decoding target pixel from the image data from the image decompression unit, wherein the image correction unit is the decoding unit Of the decoded blocks in the intra prediction encoding mode supplied, the intra prediction encoding mode decoded in the P and B slices and decoded with the pixel of the decoding block in the inter prediction encoding mode as a reference pixel The decoding block is a decoding block to be corrected, and image correction is performed to remove a drift error in the time-axis direction due to decoding using the decoding block pixel in the inter-frame prediction encoding mode as a reference pixel. The correction target decoding block of the image correction unit includes a reference screen target block corresponding to the correction target block on the inter-screen prediction decoding reference screen used for inter-screen prediction decoding, and the correction target decoding block. The average sum of absolute differences of pixel values between the reference block and the reference screen target block is equal to or less than a preset threshold value, correlated, and active The image correction unit has an average pixel value of pixels of the reference screen target block and an average of pixel values of the pixels of the correction target decoding block. A value obtained by multiplying the difference from the difference by a coefficient corresponding to the average value of the sum of absolute differences of the pixel values of the decoding block to be corrected and the reference screen target block is used as the drift error, and each pixel of the decoding block And the image correction of the decoding block to be corrected is performed.

上記目的を達成するために、本発明は、一画面が符号化単位としての画面内予測符号化モードで符号化された所定個数の画素からなる画面内予測符号化モードによるブロックからなるIスライスと符号化単位としての画面内予測符号化で符号化された該所定個数の画素からなる画面内予測符号化モードによるブロックと符号化単位としての画面間予測符号化で符号化された該所定個数の画素からなる画面間予測符号化モードによるブロックとからなるP,Bスライスとからなる符号化された画像データを復号化処理する画像復号化装置であって、該I,P,Bスライスでの該画面内予測符号化モードによるブロックの画素を、画面内予測復号化対象画素として、該ブロックと同じ画面内の該ブロックに隣接する他のブロックの画素を参照画素として用いて復号化し、かつ、該P,Bスライスでの該画面間予測符号化モードによる該ブロックの画素を、画面間復号化対象画素として、該ブロックを含む画面に先行もしくは後続する他の画面での該ブロックに該当する位置の他のブロックの画素を参照画素として用いて復号化する復号化部と、該復号化部からの該画面内予測復号化対象画素の復号画素による復号ブロックが供給される画像補正部と、該画像補正部から出力される該復号ブロックの画像データから該画面内復号化対象画素を復号するための該参照画素を生成する画面内予測部と、該画像補正部から出力される該復号ブロックと該復号化部から出力される該画面間復号化対象画素の復号画素による復号ブロックとによる画像データの画像サイズを縮小する画像縮小部と、該画像サイズが縮小された画像データを保持する記憶部と、該記憶部から読み出した該画像データを元の画像サイズに伸張する画像伸張部と、該画像伸張部からの画像データから該画面間予測復号化対象画素を復号するための該参照画素を作成する動き補償部とを備え、該画像補正部は、該復号化部から供給される該画面内予測符号化モードの復号ブロックのうちの、P,Bスライスに属し、かつ画面間予測符号化モードの復号ブロックの画素を参照画素として復号された画面内予測符号化モードの復号ブロックを補正対象の復号ブロックとし、該補正対象の復号ブロックに対して、画面間予測符号化モードの復号ブロックの画素を参照画素として復号したことによる時間軸方向のドリフト誤差を取り除く画像補正を行ない、該画像補正部の該補正対象の復号ブロックは、該補正対象の復号ブロックの時間的に先行する隣接ブロックと、該補正対象の復号ブロックと該隣接ブロックとの画素値の差分絶対値和の平均値が予め設定された閾値以下であって、相関があり、かつアクティビティが所定の閾値以下で画質劣化が目立つ該復号ブロックであり、該画像補正部は、該隣接ブロックの画素の画素値の平均値と該補正対象の復号ブロックの画素の画素値の平均値との差に該補正対象の復号ブロックと該隣接ブロックとの画素値の差分絶対値和の平均値に応じた係数を乗算した値を、該ドリフト誤差として、該復号ブロックの各画素に加算して該補正対象の復号ブロックの該画像補正を行なうことを特徴とするものである。 In order to achieve the above object, the present invention provides an I slice consisting of a block according to an intra prediction encoding mode consisting of a predetermined number of pixels encoded in an intra prediction encoding mode as an encoding unit. The predetermined number of blocks encoded by the intra prediction encoding mode and the block by the intra prediction encoding mode consisting of the predetermined number of pixels encoded by the intra prediction encoding as the encoding unit. An image decoding apparatus that decodes encoded image data including P and B slices including blocks in an inter-screen predictive encoding mode including pixels, wherein the I, P, and B slices The pixel in the block in the intra prediction encoding mode is set as the intra prediction decoding target pixel, and the pixel in the other block adjacent to the block in the same screen as the block is the reference pixel. Other pixels that precede or follow the screen containing the block as the inter-screen decoding target pixel, using the pixel of the block in the inter-screen predictive coding mode in the P and B slices. A decoding unit that decodes using a pixel of another block at a position corresponding to the block on the screen as a reference pixel, and a decoding block by a decoded pixel of the intra-screen prediction decoding target pixel from the decoding unit; A supplied image correction unit, an intra-screen prediction unit that generates the reference pixel for decoding the intra-screen decoding target pixel from the image data of the decoded block output from the image correction unit, and the image correction An image reduction unit for reducing an image size of image data by the decoding block output from the decoding unit and a decoding block by the decoding pixel of the inter-screen decoding target pixel output from the decoding unit; A storage unit that holds image data with a reduced image size, an image expansion unit that expands the image data read from the storage unit to the original image size, and the inter-screen prediction from the image data from the image expansion unit A motion compensation unit that creates the reference pixel for decoding the pixel to be decoded, and the image correction unit includes a decoding block of the intra prediction encoding mode supplied from the decoding unit, A decoding block in the intra prediction encoding mode that belongs to the P and B slices and is decoded using a pixel in the decoding block in the inter prediction encoding mode as a reference pixel is set as a correction target decoding block, and the correction target decoding block On the other hand, image correction is performed to remove the drift error in the time axis direction due to the decoding of the pixel of the decoding block in the inter prediction coding mode as the reference pixel, and the correction of the image correction unit is performed. The decoding block of the positive target is preset with an adjacent block temporally preceding the decoding block of the correction target, and an average sum of absolute differences of pixel values of the decoding block of the correction target and the adjacent block. The decoded block that is less than or equal to a threshold value and has a correlation and the activity is less than or equal to a predetermined threshold value and image quality degradation is conspicuous, and the image correction unit includes an average value of pixel values of pixels of the adjacent block A value obtained by multiplying the difference from the average value of the pixel values of the pixels of the decoding block by the coefficient corresponding to the average value of the sum of absolute differences of the pixel values of the decoding block to be corrected and the adjacent block is used as the drift error. The image correction of the decoding block to be corrected is performed by adding to each pixel of the decoding block.

上記目的を達成するために、本発明は、一画面が符号化単位としての画面内予測符号化モードで符号化された所定個数の画素からなる画面内予測符号化モードによるブロックからなるIスライスと符号化単位としての画面内予測符号化で符号化された該所定個数の画素からなる画面内予測符号化モードによるブロックと符号化単位としての画面間予測符号化で符号化された該所定個数の画素からなる画面間予測符号化モードによるブロックとからなるP,Bスライスとからなる符号化された画像データを復号化処理する画像復号化方法であって、該I,P,Bスライスでの該画面内予測符号化モードによるブロックの画素を、画面内予測復号化対象画素として、該ブロックと同じ画面内の該ブロックに隣接する他のブロックの画素を参照画素として用いて復号化し、かつ、該P,Bスライスでの該画面間予測符号化モードによる該ブロックの画素を、画面間復号化対象画素として、該ブロックを含む画面に先行もしくは後続する他の画面での該ブロックに該当する位置の他のブロックの画素を参照画素として用いて復号化処理し、復号化処理された該画面内予測符号化モードによるブロックの復号ブロックのうち、P,Bスライスに属し、かつ復号処理された画面間予測符号化モードの復号ブロックの画素を参照画素として復号された画面内予測符号化モードの復号ブロックを補正対象の復号ブロックとし、該補正対象の復号ブロックに対して、画面間予測符号化モードの復号ブロックの画素を参照画素として復号したことによる時間軸方向のドリフト誤差を取り除く画像補正を行ない、画面内予測符号化モードによるブロックの復号化処理された復号ブロック,画面内予測符号化モードによるブロックの画像補正されたされた復号ブロック及び画面間予測符号化モードによるブロックの復号化処理された復号ブロックの画像データから該画面内復号化対象画素を復号するための該参照画素を生成し、該画面内予測符号化で符号化されたブロックの復号化された復号ブロックや該画面間予測符号化で符号化されたブロックの復号化された復号ブロックを、画面サイズを縮小して記憶部に記憶し、該記憶部から読み出した該復号ブロックを元の画像サイズに伸張し、元の画像サイズに伸張した該復号ブロックの画素を該画面間予測符号化モードによる該ブロックの画素を復号する参照画素とし、画像補正の補正対象の復号ブロックが、画面間予測復号化に用いる画面間予測復号化参照画面での補正対象ブロックに対応する参照画面対象ブロックと、補正対象の復号ブロックと参照画面対象ブロックとの画素値の差分絶対値和の平均値が予め設定された閾値以下であって、相関があり、かつアクティビティが所定の閾値以下で画質劣化が目立つ復号ブロックであり、参照画面対象ブロックの画素の画素値の平均値と補正対象の復号ブロックの画素の画素値の平均値との差に補正対象の復号ブロックと参照画面対象ブロックとの画素値の差分絶対値和の平均値に応じた係数を乗算した値を、ドリフト誤差として、復号ブロックの各画素に加算して、補正対象の復号ブロックの画像補正を行なうことを特徴とするものである。 In order to achieve the above object, the present invention provides an I slice consisting of a block according to an intra prediction encoding mode consisting of a predetermined number of pixels encoded in an intra prediction encoding mode as an encoding unit. The predetermined number of blocks encoded by the intra prediction encoding mode and the block by the intra prediction encoding mode consisting of the predetermined number of pixels encoded by the intra prediction encoding as the encoding unit. An image decoding method for decoding encoded image data consisting of P and B slices consisting of blocks in an inter-screen predictive encoding mode consisting of pixels, wherein the I, P and B slices The pixel in the block in the intra prediction encoding mode is set as the intra prediction decoding target pixel, and the pixel in the other block adjacent to the block in the same screen as the block is the reference pixel. Other pixels that precede or follow the screen containing the block as the inter-screen decoding target pixel, using the pixel of the block in the inter-screen predictive coding mode in the P and B slices. Decoding processing is performed using a pixel in another block at a position corresponding to the block on the screen as a reference pixel, and P and B slices among the decoded blocks of the decoded block in the intra prediction encoding mode. And a decoding block in the intra prediction encoding mode decoded using a pixel in the decoding block in the inter prediction encoding mode that has been subjected to decoding processing as a reference pixel, and the decoding block to be corrected On the other hand, image correction is performed to remove the drift error in the time axis direction due to the decoding of the pixel of the decoding block in the inter prediction coding mode as the reference pixel. A decoded block subjected to block decoding processing in the intra prediction encoding mode, a decoded block subjected to image correction in the block corresponding to the intra prediction encoding mode, and a block decoding processing in accordance with the inter prediction encoding mode. The reference pixel for decoding the intra-screen decoding target pixel is generated from the image data of the decoded block, and the decoded block of the block encoded by the intra-screen prediction encoding or the inter-screen prediction is generated. The decoded block of the block encoded by the encoding is stored in the storage unit with the screen size reduced, the decoded block read from the storage unit is expanded to the original image size, and the original image The pixel of the decoded block expanded to the size is used as a reference pixel for decoding the pixel of the block in the inter-picture prediction encoding mode, and the decoding block to be corrected for image correction is used. The reference screen target block corresponding to the correction target block on the inter-screen predictive decoding reference screen used for inter-screen predictive decoding, and the pixel value difference absolute value between the correction target decoding block and the reference screen target block This is a decoded block in which the average value of the sum is less than or equal to a preset threshold value, there is a correlation, the activity is less than the predetermined threshold value, and image quality degradation is conspicuous. The value obtained by multiplying the difference from the average pixel value of the pixels of the target decoding block by the coefficient corresponding to the average value of the sum of absolute differences of the pixel values of the correction target decoding block and the reference screen target block is the drift error. As described above, it is added to each pixel of the decoding block to perform image correction of the decoding block to be corrected .

上記目的を達成するために、本発明は、一画面が符号化単位としての画面内予測符号化モードで符号化された所定個数の画素からなる画面内予測符号化モードによるブロックからなるIスライスと符号化単位としての画面内予測符号化で符号化された該所定個数の画素からなる画面内予測符号化モードによるブロックと符号化単位としての画面間予測符号化で符号化された該所定個数の画素からなる画面間予測符号化モードによるブロックとからなるP,Bスライスとからなる符号化された画像データを復号化処理する画像復号化方法であって、該I,P,Bスライスでの該画面内予測符号化モードによるブロックの画素を、画面内予測復号化対象画素として、該ブロックと同じ画面内の該ブロックに隣接する他のブロックの画素を参照画素として用いて復号化し、かつ、該P,Bスライスでの該画面間予測符号化モードによる該ブロックの画素を、画面間復号化対象画素として、該ブロックを含む画面に先行もしくは後続する他の画面での該ブロックに該当する位置の他のブロックの画素を参照画素として用いて復号化処理し、復号化処理された該画面内予測符号化モードによるブロックの復号ブロックのうち、P,Bスライスに属し、かつ復号処理された画面間予測符号化モードの復号ブロックの画素を参照画素として復号された画面内予測符号化モードの復号ブロックを補正対象の復号ブロックとし、該補正対象の復号ブロックに対して、画面間予測符号化モードの復号ブロックの画素を参照画素として復号したことによる時間軸方向のドリフト誤差を取り除く画像補正を行ない、画面内予測符号化モードによるブロックの復号化処理された復号ブロック,画面内予測符号化モードによるブロックの画像補正されたされた復号ブロック及び画面間予測符号化モードによるブロックの復号化処理された復号ブロックの画像データから該画面内復号化対象画素を復号するための該参照画素を生成し、該画面内予測符号化で符号化されたブロックの復号化された復号ブロックや該画面間予測符号化で符号化されたブロックの復号化された復号ブロックを、画面サイズを縮小して記憶部に記憶し、該記憶部から読み出した該復号ブロックを元の画像サイズに伸張し、元の画像サイズに伸張した該復号ブロックの画素を該画面間予測符号化モードによる該ブロックの画素を復号する参照画素とし、該画像補正の該補正対象の復号ブロックは、該補正対象の復号ブロックの時間的に先行する隣接ブロックと、該補正対象の復号ブロックと該隣接ブロックとの画素値の差分絶対値和の平均値が予め設定された閾値以下であって、相関があり、かつアクティビティが所定の閾値以下で画質劣化が目立つ該復号ブロックであり、隣接ブロックの画素の画素値の平均値と補正対象の復号ブロックの画素の画素値の平均値との差に補正対象の復号ブロックと隣接ブロックとの画素値の差分絶対値和の平均値に応じた係数を乗算した値を、ドリフト誤差として、復号ブロックの各画素に加算して前記補正対象の復号ブロックの画像補正を行なうことを特徴とするものである。 In order to achieve the above object, the present invention provides an I slice consisting of a block according to an intra prediction encoding mode consisting of a predetermined number of pixels encoded in an intra prediction encoding mode as an encoding unit. The predetermined number of blocks encoded by the intra prediction encoding mode and the block by the intra prediction encoding mode consisting of the predetermined number of pixels encoded by the intra prediction encoding as the encoding unit. An image decoding method for decoding encoded image data consisting of P and B slices consisting of blocks in an inter-screen predictive encoding mode consisting of pixels , wherein the I, P and B slices The pixel in the block in the intra prediction encoding mode is set as the intra prediction decoding target pixel, and the pixel in the other block adjacent to the block in the same screen as the block is the reference pixel. Other pixels that precede or follow the screen containing the block as the inter-screen decoding target pixel, using the pixel of the block in the inter-screen predictive coding mode in the P and B slices. Decoding processing is performed using a pixel in another block at a position corresponding to the block on the screen as a reference pixel , and P and B slices among the decoded blocks of the decoded block in the intra prediction encoding mode. And a decoding block in the intra prediction encoding mode decoded using a pixel in the decoding block in the inter prediction encoding mode that has been subjected to decoding processing as a reference pixel, and the decoding block to be corrected On the other hand, image correction is performed to remove the drift error in the time axis direction due to the decoding of the pixel of the decoding block in the inter prediction coding mode as the reference pixel. A decoded block subjected to block decoding processing in the intra prediction encoding mode, a decoded block subjected to image correction in the block corresponding to the intra prediction encoding mode, and a block decoding processing in accordance with the inter prediction encoding mode. The reference pixel for decoding the intra-screen decoding target pixel is generated from the image data of the decoded block, and the decoded block of the block encoded by the intra-screen prediction encoding or the inter-screen prediction is generated. The decoded block of the block encoded by the encoding is stored in the storage unit with the screen size reduced, the decoded block read from the storage unit is expanded to the original image size, and the original image The pixel of the decoded block expanded to the size is used as a reference pixel for decoding the pixel of the block in the inter-screen predictive coding mode, and the correction target of the image correction is decoded. In the block, the average value of the sum of absolute differences of adjacent pixel blocks of the correction target decoding block and the pixel values of the correction target decoding block and the adjacent block is equal to or less than a preset threshold value. Thus, the decoded block has a correlation and the activity is not more than a predetermined threshold value, and the image quality deterioration is conspicuous . A value obtained by multiplying the difference by a coefficient corresponding to the average value of the sum of absolute differences of the pixel values of the decoding block to be corrected and the adjacent block is added to each pixel of the decoding block as a drift error, thereby decoding the correction target. The image correction of the block is performed.

本発明によると、画面内予測符号化されたブロックの復号ブロックが画像補正されるものであるから、該復号ブロックが画面間予測符号化されたブロックを復号化してこれを参照ブロックとして用いて復号されたことによる画像劣化が補正され、復号された画面での該復号ブロックによる主観上の画質劣化を軽減することができる。   According to the present invention, since the decoded block of the intra prediction coded block is subjected to image correction, the decoded block decodes the inter prediction coded block and uses this as a reference block. The image deterioration due to the correction is corrected, and subjective image quality deterioration due to the decoded block in the decoded screen can be reduced.

以下、本発明の実施形態を図面を用いて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は本発明による画像復号化装置及び画像復号化方法の第1の実施形態を示す構成ブロック図であって、1は復号化部(一点鎖線が囲んだ部分)、2は可変長復号化部、3は逆量子化部、4はIDCT(Inverse Discrete Cosine Transform:2次元の逆離散コサイン変換)部、5,6は可算器、7は画像補正部、8は記憶部、9は画面内予測部、10は動き補償部、11はデブロッキングフィルタ部、12は画像縮小部、13は記憶部、14は画像伸張部である。   FIG. 1 is a configuration block diagram showing a first embodiment of an image decoding apparatus and an image decoding method according to the present invention, where 1 is a decoding unit (a portion surrounded by a one-dot chain line) and 2 is a variable length decoding. , 3 is an inverse quantization unit, 4 is an IDCT (Inverse Discrete Cosine Transform) unit, 5 and 6 are adders, 7 is an image correction unit, 8 is a storage unit, and 9 is in the screen. A prediction unit, 10 is a motion compensation unit, 11 is a deblocking filter unit, 12 is an image reduction unit, 13 is a storage unit, and 14 is an image expansion unit.

同図において、この第1の実施形態の画像復号化装置は、復号化部1、画像補正部7、画像縮小部12、記憶部13及び画像伸張部14を備えている。また、復号化部1は、可変長復号化部2、逆量子化部3、IDCT部4、加算器5,6、記憶部8、デブロッキングフィルタ部11、画面内予測部9及び動き補償部10を備える。なお、これら各部は、ハードウェアによって構成されてもよいし、ソフトウェアによって構成されていてもよい。また、ハードウェアとソフトウェアを組み合わせたモジュールであってもよい。   In the figure, the image decoding apparatus according to the first embodiment includes a decoding unit 1, an image correction unit 7, an image reduction unit 12, a storage unit 13, and an image expansion unit 14. The decoding unit 1 includes a variable length decoding unit 2, an inverse quantization unit 3, an IDCT unit 4, adders 5 and 6, a storage unit 8, a deblocking filter unit 11, an intra-screen prediction unit 9, and a motion compensation unit. 10 is provided. Each of these units may be configured by hardware or software. Further, it may be a module combining hardware and software.

ここで、復号化部1と画像縮小部12,記憶部13,画像伸張部14とは従来のダウンデコード機能による画像復号化装置と同様の構成をなすものであり、この第1の実施形態は、かかる構成に画像補正部7を付加したものである。なお、画像縮小部12,記憶部13,画像伸張部14は、画像復号化装置に上記のダウンデコード機能を持たせるものである。   Here, the decoding unit 1, the image reduction unit 12, the storage unit 13, and the image expansion unit 14 have the same configuration as that of a conventional image decoding device using a down-decoding function, and this first embodiment is In this configuration, an image correction unit 7 is added. Note that the image reduction unit 12, the storage unit 13, and the image expansion unit 14 provide the image decoding apparatus with the down-decoding function described above.

次に、この第1の実施形態の動作について説明する。   Next, the operation of the first embodiment will be described.

入力された画像データは、図示しない画像符号化装置において、図8,図9で説明したように画面内または画面間予測符号化された後、ブロック毎にDCT(Discrete Cosine Transform:2次元の離散コサイン変換)され、そのDCT係数が量子化部で量子化され、さらに、可変長符号化部で可変長符号に変換されて圧縮符号化されている。この入力画像データは、図示しない処理部で処理された後、可変長復号化部2に供給されて可変長復号化され、さらに、逆量子化部3に供給されてDCT係数からなる画像データが得られる。この画像データは、IDCT部4に供給され、画像符号化装置での符号化単位となるブロック単位で、供給されたDCT係数を用い、逆DCT変換されることにより、画面内予測符号化モードによるIスライスや画面間予測符号化モードによるP,Bスライスからなる画面の画像データが得られる。   The input image data is subjected to intra-screen or inter-screen predictive encoding as described with reference to FIGS. 8 and 9 in an image encoding device (not shown), and then DCT (Discrete Cosine Transform: two-dimensional discrete) for each block. The DCT coefficient is quantized by the quantization unit, and further converted into a variable length code by the variable length encoding unit and compressed and encoded. This input image data is processed by a processing unit (not shown), then supplied to the variable length decoding unit 2 and subjected to variable length decoding. Further, the input image data is supplied to the inverse quantization unit 3 to obtain image data composed of DCT coefficients. can get. This image data is supplied to the IDCT unit 4 and is subjected to inverse DCT conversion using the supplied DCT coefficients in units of blocks which are encoding units in the image encoding device, thereby depending on the intra prediction encoding mode. Image data of a screen composed of P slices and B slices in I-slice and inter-screen predictive coding mode is obtained.

ここで、画面間予測符号化モードによるP,Bスライスは、先に説明したように、画面内予測符号化モードによって符号化されたブロックと画面間予測符号化モードによって符号化されたブロックとが混在するものであり、IDCT部4で逆DCT変換の単位となる画面内予測符号化モードで符号化されたブロックは、図8,図9で説明したように、元の画素値と予測値との差分値を画素値とする画素(差分値画素)からなるブロックである。   Here, as described above, the P and B slices in the inter prediction encoding mode are divided into blocks encoded by the intra prediction encoding mode and blocks encoded by the inter prediction encoding mode. As described with reference to FIGS. 8 and 9, the blocks encoded by the IDCT unit 4 in the intra prediction encoding mode that is the unit of the inverse DCT transform are the original pixel value and the predicted value. It is a block which consists of a pixel (difference value pixel) which makes a difference value of a pixel value.

IDCT部4で逆DCT変換された画面内予測符号化モードによる符号化ブロックは、加算器5に供給され、逆DCT変換された画面間予測符号化による符号化ブロックは、加算部6に供給される。   The coding block in the intra prediction encoding mode that has been subjected to inverse DCT conversion by the IDCT unit 4 is supplied to the adder 5, and the encoding block that has been subjected to the inter DC prediction encoding that has been subjected to inverse DCT conversion is supplied to the adding unit 6. The

加算器5では、上記の画面内予測復号化対象ブロックとしての画面内予測符号化による符号化ブロックでの各差分値画素(即ち、上記の画面内予測復号化対象画素)に画面内予測部9で生成される該当の参照画素が加算され、元の画素値の画素からなる復号ブロックが得られる。この場合の参照画素と符号化ブロックでの差分値画素の加算処理は、図11で説明したものであり、参照画素に対して予測方向に配列される差分値画素が加算処理されることになる。加算器5で生成された復号ブロックは、画像補正部7で後述する補正処理がなされた後、記憶部8に供給されて記憶される。   In the adder 5, an intra-screen prediction unit 9 is added to each difference value pixel (that is, the intra-screen predictive decoding target pixel) in the coding block obtained by intra-screen predictive coding as the intra-screen predictive decoding target block. The corresponding reference pixels generated in (1) are added to obtain a decoded block composed of pixels of the original pixel value. The addition process of the reference pixel and the difference value pixel in the coding block in this case is the same as that described in FIG. 11, and the difference value pixel arranged in the prediction direction is added to the reference pixel. . The decoded block generated by the adder 5 is subjected to correction processing described later in the image correction unit 7 and then supplied to and stored in the storage unit 8.

また、加算部6では、画面間予測符号化による符号化ブロックでの各差分値(過去または未来の画面での該当する予測値との差分値)に動き補償部10で生成される該当の参照画像が加算され、元の画素値の画素からなる復号ブロックが得られる。加算部6で生成された復号ブロックは、記憶部8に供給されて記憶される。   In addition, in addition unit 6, the corresponding reference generated in motion compensation unit 10 for each difference value (difference value with a corresponding prediction value in a past or future screen) in a coding block by inter-screen prediction encoding. The images are added to obtain a decoded block made up of pixels of the original pixel value. The decoded block generated by the adding unit 6 is supplied to and stored in the storage unit 8.

記憶部8は、IDCT部4から加算部5に画面内予測符号化による符号化ブロックの差分値画素が供給されたとき、これに該当する参照画素を得ることができるようにするために設けられたものであって、復号ブロックは、その画素が画面内予測符号化による符号化ブロックの差分値画素に対する参照画素として使用されなくなるまで、この記憶部8に記憶されている。画面内予測部9は、IDCT部4から加算部5に画面内予測符号化による符号化ブロックの差分値画素が供給されるようになると、かかる差分値画素に対する参照画素となる画素を含む復号ブロックを、上記の参照ブロックとして、記憶部8から読み取り、かかる参照画素となる画素を基に加算部5に供給される差分値画素の参照値を作成し、加算部5に供給する。これにより、差分値画素の画素値にこれに該当する参照値が加算され、元の画素値に復元した画素が得られる。 The storage unit 8 is provided in order to obtain a reference pixel corresponding to a difference pixel of an encoded block by intra prediction encoding from the IDCT unit 4 to the adding unit 5. Therefore, the decoded block is stored in the storage unit 8 until the pixel is not used as a reference pixel for the difference value pixel of the encoded block by intra prediction encoding. When the difference value pixel of the coding block by the prediction prediction in the screen is supplied from the IDCT unit 4 to the adding unit 5 from the IDCT unit 4, the decoding block including a pixel serving as a reference pixel for the difference value pixel. Is read from the storage unit 8 as the above reference block, a reference value of the difference value pixel supplied to the adding unit 5 is created based on the pixel serving as the reference pixel, and supplied to the adding unit 5. Thereby, the reference value corresponding to this is added to the pixel value of the difference value pixel, and a pixel restored to the original pixel value is obtained.

例えば、図11に示す復号化処理を行なう場合、画面内予測符号化による符号化ブロックであるMB−3が画面内予測復号化対象ブロックとして、その差分値画素が加算部5に供給されると、これに対する参照画素となる画素A,B,C,……を含む画面間予測復号化された復号ブロックMB−1が記憶部8から読み出され、画面内予測部9に供給されてその画素A,B,C,……から参照値が作成されて加算される。勿論、図8,図9で示すように符号化された場合でも、同様にして、予測値を形成した予測値画素を参照値画素とする。 For example, when the decoding process shown in FIG. 11 is performed, when MB-3, which is an encoded block by intra prediction encoding, is used as the intra prediction decoding target block, and the difference value pixel is supplied to the adding unit 5. The decoded block MB-1 subjected to the inter-screen predictive decoding including the pixels A, B, C,... Serving as reference pixels for this is read from the storage unit 8 and supplied to the intra-screen prediction unit 9 to be the pixel. Reference values are created from A, B, C,. Of course, even when encoding is performed as shown in FIGS. 8 and 9, similarly, a prediction value pixel that forms a prediction value is set as a reference value pixel.

このようにして、画面内予測符号化モードによる符号化ブロックは復号され、復号ブロックとして記憶部8に記憶される。なお、画面間予測符号化モードによる符号化ブロックの復号ブロックも記憶部8に記憶するのは、この復号ブロックも、他の画面内予測符号化モードによる符号化ブロックに対する参照ブロックとなり得るものである。例えば、図10(b)において、MB−1は画面間予測符号化モードによって符号化されたブロックであるが、MB−3の復号に対する参照ブロックとなるため、記憶部8に記憶される。   In this way, the encoded block in the intra prediction encoding mode is decoded and stored in the storage unit 8 as a decoded block. Note that the decoding block of the coding block in the inter-picture prediction coding mode is also stored in the storage unit 8 because this decoding block can also be a reference block for a coding block in another intra-picture prediction coding mode. . For example, in FIG. 10B, MB-1 is a block encoded by the inter-picture prediction encoding mode, but is stored in the storage unit 8 because it is a reference block for MB-3 decoding.

記憶部8からは、また、画面内予測符号化による復号ブロックに参照ブロックとして使用されないブロックや参照ブロックとして使用されなくなったブロックが読み出され、デブロッキングフィルタ部11に供給する。このデブロッキングフィルタ部11は、ブロック毎に区切って符号化,復号化したことによるブロック間の色や輝度の違いといったブロック歪を軽減し、ブロック間で画像が滑らかにつながるようにフィルタ処理を行なうものであり、上記の画面内予測符号化と同様、H.264/AVC規格で新たに追加された符号化ツールの1つである。   From the storage unit 8, a block that is not used as a reference block or a block that is no longer used as a reference block for a decoded block by intra prediction encoding is read and supplied to the deblocking filter unit 11. The deblocking filter unit 11 reduces block distortion such as a difference in color and luminance between blocks due to encoding and decoding by dividing each block, and performs filter processing so that images are smoothly connected between blocks. This is one of the encoding tools newly added in the H.264 / AVC standard, similar to the above-mentioned intra prediction encoding.

デブロッキングフィルタ部11でフィルタ処理をされた各ブロックの画像データは画像縮小部12に供給され、画素の間引き処理が行なわれて予め設定された画像サイズが下位レベルの所定フォーマットに変換(ダウンコンバート)されて、記憶部13に格納される。この記憶部13で、各ブロックが1画面を構成する配列で記憶される。また、記憶部13から画面の画像データが読み出され、画像伸張部14で各ブロック毎に画素補間処理が行なわれて(アップコンバート)元のフォーマットに変換される。画像伸張部14から出力された画像データは復号画像として出力されるとともに、画面間予測符号化ブロックの参照ブロックを形成するために、動き補償部10に供給される。   The image data of each block subjected to the filtering process by the deblocking filter unit 11 is supplied to the image reduction unit 12, and a pixel thinning process is performed to convert a preset image size into a predetermined format at a lower level (down-conversion). And stored in the storage unit 13. In the storage unit 13, each block is stored in an array constituting one screen. Further, the image data of the screen is read from the storage unit 13, and pixel interpolation processing is performed for each block by the image expansion unit 14 (up-conversion) and converted to the original format. The image data output from the image decompression unit 14 is output as a decoded image, and is supplied to the motion compensation unit 10 in order to form a reference block of the inter-screen predictive coding block.

次に、画像補正部7について説明する。   Next, the image correction unit 7 will be described.

図2は画像補正部7の処理動作の一具体例を示すフローチャートである。   FIG. 2 is a flowchart showing a specific example of the processing operation of the image correction unit 7.

図1において、上記のように、画面内予測符号化された画面内予測復号化対象ブロックの画面内予測復号化対象画素(差分値画素)は加算器5に供給され、その画素値(差分値)が画面内予測部9から供給される参照値と加算されて、元の画素値の画素からなる復号ブロックが得られる。画像補正部7では、加算部5から供給される復号ブロックについて、この復号ブロックがIスライスに属するものであるのか否かを判定し(図2のS101)、Iスライスに属するものであるときには(図2のS101で“YES”)、処理を終了してこのIスライスのブロックを記憶部8に送り、次のスライスの処理まで待機する。これは、Iスライスの場合には、上記のように、各ブロックが画面内予測符号化モードのみで符号化され、また、これを復号する場合には、同じIスライスの画面内予測復号されたブロックを、ダウンデコードなしに、参照ブロックとして復号するものであるから、画質劣化がなく、従って、画像補正する必要がないためである。   In FIG. 1, as described above, the intra-frame prediction decoding target pixel (difference value pixel) of the intra-frame prediction decoding target block subjected to intra-frame prediction encoding is supplied to the adder 5, and the pixel value (difference value) is supplied. ) Is added to the reference value supplied from the in-screen prediction unit 9 to obtain a decoded block composed of pixels of the original pixel value. The image correction unit 7 determines whether or not the decoded block supplied from the adding unit 5 belongs to the I slice (S101 in FIG. 2), and when it belongs to the I slice ( In step S101 of FIG. 2, “YES”), the process is terminated, the block of this I slice is sent to the storage unit 8, and the process waits until the next slice is processed. In the case of an I slice, as described above, each block is encoded only in the intra prediction encoding mode, and in the case of decoding this, the intra prediction prediction decoding of the same I slice is performed. This is because the block is decoded as a reference block without down-decoding, so there is no deterioration in image quality, and therefore there is no need for image correction.

加算部5から供給される復号ブロックがPスライスまたはBスライスでのブロックである場合には(図2のS101で“NO”)、次に、加算部5からの復号ブロックに対する参照ブロックが適正なブロックであるか否かの判定を行なう(図2のS102)。これは、加算部5から供給される復号ブロックのPまたはBスライスを含む画面をP1(以下、これを復号化対象画面という)とし、この復号化対象画面P1のPまたはBスライスでの画面間予測符号化されたブロックに対して参照ブロックとなるブロックを含む過去または未来の画面をP2(以下、これを画面間予測復号化参照画面という)とすると、これら画面P1,P2間に、例えば、シーン(場面)チェンジなどで画像に大きな変化があるような場合、加算部5から供給される復号ブロックに対して画像補正を行なうため、参照ブロックとすることは適正ではない、とするものである。 If the decoded block supplied from the adder 5 is a block in P slice or B slice (“NO” in S101 of FIG. 2), then the reference block for the decoded block from the adder 5 is appropriate. It is determined whether or not it is a block (S102 in FIG. 2). This is because the screen including the P or B slice of the decoded block supplied from the adder 5 is P 1 (hereinafter referred to as a decoding target screen), and the P or B slice of the decoding target screen P 1 If a past or future screen including a block that becomes a reference block with respect to an inter-screen predictive encoded block is P 2 (hereinafter referred to as an inter-screen predictive decoding reference screen), these screens P 1 and P 2 are used. In the meantime, for example, when there is a large change in the image due to a scene (scene) change or the like, the decoding block supplied from the adding unit 5 is subjected to image correction. It is what.

かかる判定をするために、復号化対象画面P1での加算部5から供給される復号ブロックの画素の画素値をDECij(但し、この復号ブロックのサイズをm画素×n画素として、i=1,2,……,m、j=1,2,……,n)とし、画面間予測復号化参照画面P2での、復号ブロックの復号化対象画面P1での空間位置に対応する空間位置にあり、この復号ブロックと同じサイズのブロック(以下、参照画面対象ブロックという)の画素の画素値をREFTMPijとすると、これら画素値の差分絶対値和(Sum of Absolute Difference:SAD)の平均値、即ち、

Figure 0004774315
In order to make such a determination, the pixel value of the pixel of the decoding block supplied from the adding unit 5 on the decoding target screen P 1 is set to DEC ij (where the size of this decoding block is m pixels × n pixels, i = 1, 2,..., M, j = 1, 2,..., N), corresponding to the spatial position of the decoding block on the decoding target screen P 1 in the inter-screen predictive decoding reference screen P 2. If the pixel value of the pixel of the block in the spatial position and the same size as this decoding block (hereinafter referred to as the reference screen target block) is REFTMP ij , the sum of absolute differences (SAD) of these pixel values Average value, ie
Figure 0004774315

を求め、この平均値DIFF(DECij,REFTMPij)が予め設定された閾値TH_tmpを超えるか否かでもって、かかる判定を行なう。即ち、この平均値DIFF(DECij,REFTMPij)が閾値TH_tmpを超える場合には(図2のS102の“NO”)、上記画面P1,P2間に相関性がないと判定し、処理を終了してこの復号化対象画面P1の加算部5から供給された復号ブロックを記憶部8に送り、次に加算部5から復号ブロックが供給されるまで待機する。また、平均値DIFF(DECij,REFTMPij)が閾値TH_tmp以下の場合には(図2のS102の“YES”)、図2の次のS103に進む。 This determination is made based on whether or not the average value DIFF (DEC ij , REFTMP ij ) exceeds a preset threshold TH_tmp. That is, when the average value DIFF (DEC ij , REFTMP ij ) exceeds the threshold value TH_tmp (“NO” in S102 in FIG. 2), it is determined that there is no correlation between the screens P 1 and P 2 and the processing is performed. And the decoding block supplied from the adding unit 5 of the decoding target screen P 1 is sent to the storage unit 8, and then waits until the decoding block is supplied from the adding unit 5. If the average value DIFF (DEC ij , REFTMP ij ) is equal to or less than the threshold value TH_tmp (“YES” in S102 of FIG. 2), the process proceeds to S103 next in FIG.

なお、S102でこのように復号ブロック毎に判定するのは、シーンチェンジばかりでなく、部分的に画面P1,P2間で相関がない場合もあり、このような場合には、相関がない部分だけ画像補正部7での処理を行なわないようにするものであり、相関がある部分での復号ブロックについては、復号の際の参照画素は適正なものとして、画像補正部7で補正処理を行なう候補とするものである。 It should be noted that the determination in S102 for each decoded block is not limited to the scene change, and there may be a partial correlation between the screens P 1 and P 2. In such a case, there is no correlation. The processing in the image correction unit 7 is not performed only for the portion. For the decoded block in the correlated portion, the correction processing is performed in the image correction unit 7 assuming that the reference pixel at the time of decoding is appropriate. Candidates to do.

上記平均値DIFF(DECij,REFTMPij)が閾値TH_tmp以下となる(図2のS102の“YES”)加算部5からの復号ブロックは、次に、画像のエッジや煩雑な模様のようなものがないほぼ均一な情報内容のブロックであるか否かの判定が行なわれる(図2のS103)。 The decoding block from the adding unit 5 in which the average value DIFF (DEC ij , REFTMP ij ) is equal to or less than the threshold value TH_tmp (“YES” in S102 in FIG. 2) is next an image edge or a complicated pattern. It is determined whether or not the block is a substantially uniform block of information content (S103 in FIG. 2).

かかる判定は、復号ブロックのアクティビティを求めて評価するものであり、このアクティビティは、復号ブロックの画素の画素値をDECijとして、次の評価式ACT(DECij)、即ち、

Figure 0004774315
Such determination is to evaluate seeking activities decoded block, this activity is the pixel value of the pixel of the decoded blocks as DEC ij, the following evaluation formula ACT (DEC ij), i.e.,
Figure 0004774315

から求められる。ここで、DECaveはm×n画素からなる復号ブロックの平均画素値であり、評価式ACT(DECij)で算出されるアクティビティは、復号ブロックの画素値DECijとその平均画素値DECaveとの2乗誤差和(Sum of Square Difference:SSD)の平均値である。 It is requested from. Here, DEC ave is the average pixel value of the decoded block composed of m × n pixels, and the activity calculated by the evaluation formula ACT (DEC ij ) is the pixel value DEC ij of the decoded block and its average pixel value DEC ave Is the average value of the sum of square differences (SSD).

図2のS103は、このアクティビティACT(DECij)と予め設定された閾値TH_actとを比較し、アクティビティACT(DECij)がこの閾値TH_actを超えた場合には、ほぼ均一な情報内容でない復号ブロックであると判定し(図2のS103の“NO”)、処理を終了してこの復号ブロックを記憶部8に送り、加算部5から次の復号ブロックが供給されるまで待機する。アクティビティACT(DECij)がこの閾値TH_act以下である場合には、ほぼ均一な情報内容の復号ブロックであると判定し(図2のS103の“YES”)、この復号ブロックの画像補正が行なわれる(図2のS104)。 S103 in FIG. 2 compares this activity ACT (DEC ij ) with a preset threshold TH_act, and if the activity ACT (DEC ij ) exceeds this threshold TH_act, a decoding block that has almost no uniform information content. (NO in S103 of FIG. 2), the process ends, this decoded block is sent to the storage unit 8, and it waits until the next decoded block is supplied from the adding unit 5. If the activity ACT (DEC ij ) is less than or equal to this threshold value TH_act, it is determined that the block is a decoding block having almost uniform information content (“YES” in S103 of FIG. 2), and image correction of this decoding block is performed. (S104 in FIG. 2).

以上のようにして、画像補正部7では、加算部5から供給される画面内予測符号化ブロックの復号ブロックは、Iスライスに属しておらず(図2のS101)、この復号ブロックとこの復号ブロックが属するPまたはBスライスを含む復号対象画面での画面間予測復号の際に参照ブロックとなる画面(即ち、画面間予測復号化参照画面)において、上記復号ブロックでの空間位置に対応するブロックとの間で相関性があって(図2のS102)、かつほぼ均一な情報内容であるとき(図2のS103)、図2のS104により、画面間予測復号された参照ブロックのドリフト誤差を取り除く画像補正が行なわれるものである。   As described above, in the image correction unit 7, the decoded block of the intra prediction encoding block supplied from the adding unit 5 does not belong to the I slice (S101 in FIG. 2). A block corresponding to a spatial position in the decoded block in a screen that becomes a reference block at the time of inter-screen predictive decoding on a decoding target screen including a P or B slice to which the block belongs (that is, an inter-screen predictive decoding reference screen) 2 (S102 in FIG. 2) and almost uniform information content (S103 in FIG. 2), the drift error of the reference block decoded by inter-screen prediction is calculated in S104 in FIG. The image correction to be removed is performed.

図2のS104の画像補正は、画面間予測符号化参照画面での、この復号ブロックの空間位置に対応する画素の画素値を用いて復号ブロックでの各画素の画素値を補正するものである。   The image correction of S104 in FIG. 2 is to correct the pixel value of each pixel in the decoded block using the pixel value of the pixel corresponding to the spatial position of this decoded block on the inter-screen predictive coding reference screen. .

この画像補正は、次の数3、即ち、

Figure 0004774315
This image correction is performed by the following equation (3):
Figure 0004774315

ここで、数3での右辺第2項の括弧内は、参照画面対象ブロックでの画素値REFTMPijの平均値と復号ブロックの画素値DECijの平均値との差(平均誤差)であり、この平均誤差に重み付け係数αを乗算した値を、上記のドリフト誤差として、復号ブロックの各画素DECijに加算して画像補正を行なうものである。 Here, in parentheses in the second term on the right side of Equation 3 is a difference (average error) between the average value of the pixel value REFTMP ij in the reference screen target block and the average value of the pixel value DEC ij in the decoded block, A value obtained by multiplying the average error by the weighting coefficient α is added to each pixel DEC ij of the decoding block as the drift error to perform image correction.

図3は数3での重み付け係数αの設定を示す説明図であって、横軸は上記数1で示す復号対象画面の復号ブロックと画面間予測復号化参照画面の参照画面対象ブロックとの相関を示す上記数1の評価式DIFF(DECij,REFTMPij)の値を表わし、縦軸は重み付け係数αを表わす。 FIG. 3 is an explanatory diagram showing the setting of the weighting coefficient α in Equation 3, and the horizontal axis indicates the correlation between the decoding block of the decoding target screen shown in Equation 1 and the reference screen target block of the inter-screen predictive decoding reference screen. Represents the value of the evaluation formula DIFF (DEC ij , REFTMP ij ) of the above equation 1 and the vertical axis represents the weighting coefficient α.

同図において、重み付け係数αは、図2のS102で用いる評価式DIFF(DECij,REFTMPij)の値に応じたものであり、評価式DIFF(DECij,REFTMPij)の演算結果の値が大きいほど重み付け係数αが大きく設定される。その結果として、復号ブロックでの画素値DECijと対応する参照画面対象ブロックでの画素値REFTMPijとの差が大きいほど、強い画像補正が行なわれ、これら画素値DECij,REFTMPijとの差が小さくするように補正制御される。 In the figure, the weighting coefficient α corresponds to the value of the evaluation expression DIFF (DEC ij , REFTMP ij ) used in S102 of FIG. 2, and the value of the calculation result of the evaluation expression DIFF (DEC ij , REFTMP ij ) is As the value increases, the weighting coefficient α is set larger. As a result, the larger the difference between the pixel value DEC ij in the decoding block and the pixel value REFTMP ij in the corresponding reference screen target block, the stronger the image correction is performed, and the difference between these pixel values DEC ij and REFTMP ij The correction is controlled so as to be small.

以上のように、この第1の実施形態では、画面間予測符号化されたスライス中の画面内予測符号化されたブロックの復号化されたブロック(即ち、復号ブロック)に対して、この復号ブロックを含む画面(復号対象画面)で画面間予測復号化に用いた画面(即ち、画面間予測復号化参照画面)での上記復号ブロックに対応した空間位置にあるブロック(即ち、参照画面対象ブロック)に基づいて画像補正を行なうものであるから、この復号ブロックでの主観上の画質劣化を軽減することができる。   As described above, in the first embodiment, the decoded block is decoded with respect to the decoded block (that is, the decoded block) of the intra-frame predictive coded block in the inter-frame predictive coded slice. A block in a spatial position corresponding to the decoding block on the screen (that is, the inter-screen prediction decoding reference screen) used for the inter-screen prediction decoding on the screen including the decoding screen (that is, the decoding target screen) (that is, the reference screen target block) Therefore, subjective image quality degradation in the decoded block can be reduced.

なお、かかる画像補正に対し、復号ブロックがIスライスに属する場合、復号ブロックと参照画面対象ブロックとの画素値の差分が予め定めた閾値より大きい場合及び復号ブロックのアクティビティが予め定めた閾値より大きい場合には、画像補正を行なわない条件を設けることにより、例えば、シーンチェンジなどによって復号ブロックと参照画面対象ブロックとで画像が大きく異なる場合や、復号ブロックでの空間周波数が高く、画質劣化が目立ちにくい場合には、画像補正の対象から外し、画質劣化が目立ちやすい領域についてのみ、画像補正を適用することができるものである。   For such image correction, when the decoded block belongs to the I slice, the difference between the pixel values of the decoded block and the reference screen target block is larger than a predetermined threshold, and the activity of the decoded block is larger than the predetermined threshold. In such a case, by setting a condition not to perform image correction, for example, when the image is greatly different between the decoded block and the reference screen target block due to a scene change or the like, or when the spatial frequency in the decoded block is high, image quality deterioration is conspicuous. If it is difficult, the image correction can be applied only to a region that is excluded from the image correction target and the image quality deterioration is conspicuous.

次に、本発明による画像復号化装置及び画像復号化方法の第2の実施形態について説明するが、その構成は図1と同様であり、その説明を省略する。   Next, a second embodiment of the image decoding apparatus and the image decoding method according to the present invention will be described. The configuration is the same as that in FIG. 1, and the description thereof will be omitted.

図4はこの第2の実施形態での画像補正部7(図1)の動作の一具体例を示すフローチャートである。   FIG. 4 is a flowchart showing a specific example of the operation of the image correction unit 7 (FIG. 1) in the second embodiment.

上記第1の実施形態では、画像補正部7での図2に示す画像補正では、画像補正対象となる復号ブロックの判定及び画像処理に、この復号ブロックを含む画面(復号対象画面)に対して、その画面間予測符号化ブロックの参照ブロックとなるブロックを含む過去もしくは未来の画面(即ち、画面間予測符号化参照画面)のブロックを用いたが、この第2の実施形態では、この復号ブロックを含む画面でのブロック、具体的には、この復号ブロックに隣接する左側のブロック(例えば、図10における復号ブロックとしてのMB−3に対するMB−2)を用いるものである。以下、図1及び図4を用いてこの第2の実施形態での画像補正部7の動作を説明する。これ以外の第2の実施形態の動作は、第1の実施形態と同様であり、その説明を省略する。   In the first embodiment, in the image correction shown in FIG. 2 in the image correction unit 7, the decoding block to be corrected and image processing are determined for the screen (decoding target screen) including the decoding block. A block of a past or future screen (that is, an inter-screen predictive coding reference screen) including a block that becomes a reference block of the inter-screen predictive coding block is used. In the second embodiment, this decoding block is used. Specifically, the left block adjacent to the decoded block (for example, MB-2 with respect to MB-3 as the decoded block in FIG. 10) is used. Hereinafter, the operation of the image correction unit 7 in the second embodiment will be described with reference to FIGS. 1 and 4. The operation of the second embodiment other than this is the same as that of the first embodiment, and the description thereof is omitted.

図1において、上記の第1の実施形態と同様にして、加算器5から画像補正部7に復号ブロックが供給されると、画像補正部7では、まず、この復号ブロックがIスライスに属するものであるのか否かを判定し(図4のS201)、Iスライスに属するものであるときには(図4のS201で“YES”)、処理を終了してこのIスライスのブロックを記憶部8に送り、次のスライスの処理まで待機する。加算部5から供給される復号ブロックがPスライスまたはBスライスでのブロックである場合には(図4のS201で“NO”)、加算部5からの復号ブロックよりも時間的に先行するブロック、即ち、復号ブロックに対して左側に隣接するブロック(以下、左側隣接ブロックという)とこの復号ブロックとの相関性を判定する(図4のS202)。この判定は、これらブロック間で画像内容に大きな変化があると、復号ブロックにドリフト誤差が混入しても、画像としては格別目立つことがなく、このような復号ブロックに対しては、画像補正をしなくてもよいようにするものである。   In FIG. 1, when a decoding block is supplied from the adder 5 to the image correction unit 7 in the same manner as in the first embodiment, the image correction unit 7 firstly has this decoding block belonging to the I slice. (S201 in FIG. 4) and if it belongs to the I slice (“YES” in S201 in FIG. 4), the process is terminated and the block of this I slice is sent to the storage unit 8. Wait until the next slice is processed. When the decoded block supplied from the adding unit 5 is a block in a P slice or a B slice (“NO” in S201 in FIG. 4), a block temporally preceding the decoded block from the adding unit 5; That is, the correlation between the block adjacent to the left side of the decoded block (hereinafter referred to as the left adjacent block) and the decoded block is determined (S202 in FIG. 4). In this determination, if there is a large change in the image content between these blocks, even if a drift error is mixed in the decoded block, the image is not particularly noticeable. For such a decoded block, image correction is performed. This is what you do not have to do.

かかる判定をするために、加算部5から供給される復号ブロックの画素の画素値を、第1の実施形態と同様、DECij(但し、この復号ブロックのサイズをm画素×n画素として、i=1,2,……,m、j=1,2,……,n)とし、これに隣接する左側隣接ブロックでの画素の画素値をREFTSPijとすると、これら画素値の差分絶対値和(Sum of Absolute Difference:SAD)の平均値、即ち、

Figure 0004774315
In order to make such a determination, the pixel value of the pixel of the decoded block supplied from the adding unit 5 is set to DEC ij (where the size of the decoded block is m pixels × n pixels, as in the first embodiment, i = 1, 2,..., M, j = 1, 2,..., N), and assuming that the pixel value of the pixel in the left adjacent block adjacent thereto is REFTSP ij , the sum of absolute differences of these pixel values Average value of (Sum of Absolute Difference: SAD), that is,
Figure 0004774315

を求め、この平均値DIFF(DECij,REFTSPij)が予め設定された閾値TH_spを超えるか否かでもって、かかる判定を行なう。即ち、この平均値DIFF(DECij,REFTSPij)が閾値TH_spを超える場合には(図4のS202の“NO”)、復号ブロックと左側隣接ブロックとの間に相関性がないと判定し、処理を終了してこの復号ブロックを記憶部8に送り、次に加算部5から次の復号ブロックが供給されるまで待機する。また、平均値DIFF(DECij,REFTSPij)が閾値TH_sp以下の場合には(図4のS202の“YES”)、図4の次のS203に進む。 This determination is made based on whether or not the average value DIFF (DEC ij , REFTSP ij ) exceeds a preset threshold TH_sp. That is, when the average value DIFF (DEC ij , REFTSP ij ) exceeds the threshold value TH_sp (“NO” in S202 of FIG. 4), it is determined that there is no correlation between the decoded block and the left adjacent block. The process ends and this decoded block is sent to the storage unit 8 and then waits until the next decoded block is supplied from the adding unit 5. If the average value DIFF (DEC ij , REFTSP ij ) is less than or equal to the threshold value TH_sp (“YES” in S202 of FIG. 4), the process proceeds to S203 next in FIG.

図4のS203は、第1の実施形態に対する図2のS103と同様、画像のエッジや煩雑な模様のようなものがないほぼ均一な情報内容のブロックであるか否かの判定が行なわれるものである。   S203 in FIG. 4 is similar to S103 in FIG. 2 with respect to the first embodiment, and it is determined whether or not the block has almost uniform information contents without any image edges or complicated patterns. It is.

このS203でのかかる判定は、復号ブロックのアクティビティを求めて評価するものであり、このアクティビティは、上記のように、復号ブロックの画素の画素値をDECijとして、次の評価式ACT(DECij)、即ち、

Figure 0004774315
This determination in S203 is performed by obtaining and evaluating the activity of the decoded block. As described above, this activity uses the pixel value of the pixel of the decoded block as DEC ij and the following evaluation expression ACT (DEC ij ), That is,
Figure 0004774315

から求められる。この数5は、第1の実施形態での数2と同じである。 It is requested from. This number 5 is the same as the number 2 in the first embodiment.

図4のS203では、図2でのS103と同様、このアクティビティACT(DECij)と予め設定された閾値TH_actとを比較し、アクティビティACT(DECij)がこの閾値TH_actを超えた場合には、ほぼ均一な情報内容でない復号ブロックであると判定し(図4のS203の“NO”)、処理を終了してこの復号ブロックを記憶部8に送り、加算部5から次の復号ブロックが供給されるまで待機する。アクティビティACT(DECij)がこの閾値TH_act以下である場合には、ほぼ均一な情報内容の復号ブロックであると判定し(図4のS203の“YES”)、この復号ブロックの画像補正が行なわれる(図4のS204)。 In S203 of FIG. 4, if the same as S103 in FIG. 2, and compares the activity ACT (DEC ij) with a preset threshold Th_act, activity ACT (DEC ij) exceeds this threshold Th_act is It is determined that the decoded block is not substantially uniform information content (“NO” in S203 in FIG. 4), the process is terminated, this decoded block is sent to the storage unit 8, and the next decoded block is supplied from the adding unit 5 Wait until If the activity ACT (DEC ij ) is less than or equal to this threshold TH_act, it is determined that the block is a decoding block with almost uniform information content (“YES” in S203 in FIG. 4), and image correction of this decoding block is performed. (S204 in FIG. 4).

以上のようにして、第2実施形態での画像補正部7においても、加算部5から供給される画面内予測符号化ブロックの復号ブロックは、Iスライスに属しておらず(図4のS201)、この復号ブロックがその左側隣接ブロックとの間で相関性があって(図4のS202)、かつほぼ均一な情報内容であるとき(図4のS203)、図4のS204により、画面間予測復号された参照ブロックのドリフト誤差を取り除く画像補正が行なわれるものである。   As described above, also in the image correction unit 7 in the second embodiment, the decoding block of the intra prediction encoding block supplied from the addition unit 5 does not belong to the I slice (S201 in FIG. 4). When this decoded block has a correlation with its left adjacent block (S202 in FIG. 4) and has almost uniform information content (S203 in FIG. 4), the inter-screen prediction is performed by S204 in FIG. Image correction is performed to remove the drift error of the decoded reference block.

図4のS204の画像補正は、復号ブロックの左側隣接ブロックの画素の画素値を用いて参照ブロックでのドリフト誤差を近似し、これでもって復号ブロックでの各画素の画素値を補正するものである。   The image correction in S204 of FIG. 4 approximates the drift error in the reference block using the pixel value of the pixel in the left adjacent block of the decoded block, and corrects the pixel value of each pixel in the decoded block. is there.

この画像補正は、次の数6、即ち、

Figure 0004774315
This image correction is performed by the following equation 6, that is,
Figure 0004774315

ここで、数6での右辺第2項の括弧内は、左側隣接ブロックでの画素値REFTSPijの平均値と復号ブロックの画素値DECijの平均値との差(平均誤差)であり、この平均誤差に重み付け係数βを乗算した値を、上記のドリフト誤差として、復号ブロックの各画素DECijに加算して画像補正を行なうものである。 Here, in parentheses in the second term on the right side of Equation 6 is the difference (average error) between the average value of the pixel value REFTSP ij in the left adjacent block and the average value of the pixel value DEC ij in the decoded block. A value obtained by multiplying the average error by the weighting coefficient β is added to each pixel DEC ij of the decoding block as the above drift error to perform image correction.

図5は数6での重み付け係数βの設定を示す説明図であって、横軸は上記数4で示す復号ブロックと左側隣接ブロックとの相関を示す上記数4の評価式DIFF(DECij,REFTSPij)の値を表わし、縦軸は重み付け係数βを表わす。 FIG. 5 is an explanatory diagram showing the setting of the weighting coefficient β in Equation 6, wherein the horizontal axis indicates the correlation between the decoded block shown in Equation 4 and the left adjacent block, and the evaluation equation DIFF (DEC ij , REFTSP ij ), and the vertical axis represents the weighting coefficient β.

同図において、重み付け係数βは、図4のS202で用いる評価式DIFF(DECij,REFTSPij)の値に応じたものであり、評価式DIFF(DECij,REFTSPij)の演算結果の値が大きいほど重み付け係数βが大きく設定される。その結果として、復号ブロックでの画素値DECijと対応する左側隣接ブロックでの画素値REFTSPijとの差が大きいほど、強い画像補正が行なわれ、これら画素値DECij,REFTSPijとの差が小さくするように補正制御される。 In the figure, the weighting coefficient β corresponds to the value of the evaluation expression DIFF (DEC ij , REFTSP ij ) used in S202 of FIG. 4, and the value of the calculation result of the evaluation expression DIFF (DEC ij , REFTSP ij ) is As the value increases, the weighting coefficient β is set larger. As a result, the larger the difference between the pixel value DEC ij in the decoding block and the corresponding pixel value REFTSP ij in the left adjacent block, the stronger the image correction is performed, and the difference between these pixel values DEC ij and REFTSP ij becomes smaller. Correction control is performed to make it smaller.

以上のように、この第2の実施形態でも、画面間予測符号化されたスライス中の画面内予測符号化されたブロックの復号化されたブロック(即ち、復号ブロック)に対して、これと左側で隣接するブロック(即ち、左側隣接ブロック)に基づいて画像補正を行なうものであるから、この復号ブロックでのドラフト誤差が低減されて主観上の画質劣化を軽減することができる。   As described above, also in the second embodiment, the left side of the decoded block (ie, the decoded block) of the intra prediction encoded block in the inter prediction predictive slice Since the image correction is performed based on the adjacent block (that is, the left adjacent block), the draft error in the decoded block is reduced and subjective image quality deterioration can be reduced.

なお、かかる画像補正は、復号ブロックがIスライスに属する場合、復号ブロックと左側隣接ブロックとの画素値の差分が予め定めた閾値より大きい場合及び復号ブロックのアクティビティが予め定めた閾値より大きい場合には、画像補正を行なわない条件を設けることにより、例えば、絵柄によって復号ブロックと左側隣接ブロックとで画像が大きく異なる場合や、復号ブロックでの空間周波数が高く、画質劣化が目立ちにくい場合には、画像補正の対象から外し、画質劣化が目立ちやすい領域についてのみ、適用することができるものである。   Such image correction is performed when the decoded block belongs to the I slice, when the difference between the pixel values of the decoded block and the left adjacent block is larger than a predetermined threshold, and when the activity of the decoded block is larger than the predetermined threshold. By providing a condition that does not perform image correction, for example, when the image differs greatly between the decoded block and the left adjacent block depending on the design, or when the spatial frequency in the decoded block is high and image quality degradation is not noticeable, This method can be applied only to a region that is excluded from image correction targets and in which image quality degradation is conspicuous.

また、この第2の実施形態では、復号ブロックを画像補正するために、その左側隣接ブロックを利用したが、上側隣接ブロック(例えば、図10におけるMB−1)を利用するようにしてもよい。また、左側隣接ブロックと上側隣接ブロックとを利用可能とし、そのうちで数4で示す評価式DIFF(DECij,REFTSPij)の演算結果の値が小さい方の隣接ブロックを利用するようにしてもよい。 In the second embodiment, the left adjacent block is used for image correction of the decoded block. However, the upper adjacent block (for example, MB-1 in FIG. 10) may be used. Also, the left adjacent block and the upper adjacent block can be used, and the adjacent block with the smaller value of the calculation result of the evaluation expression DIFF (DEC ij , REFTSP ij ) expressed by Equation 4 may be used. .

さらに、第1,第2の実施形態での画像補正部7の処理を組み合わせることにより、時間方向のブロック(即ち、画面間予測復号化参照画面の参照画面対象ブロック)あるいは空間方向のブロック(即ち、復号ブロックの隣接ブロック)のいずれかのブロックを利用して復号ブロックの画像補正を行なってもよく、同様の効果を得ることが可能である。   Further, by combining the processing of the image correction unit 7 in the first and second embodiments, a temporal block (that is, a reference screen target block of the inter-screen prediction decoding reference screen) or a spatial block (that is, Any of the blocks adjacent to the decoded block) may be used to perform image correction of the decoded block, and the same effect can be obtained.

なお、本発明による画像復号化装置及び画像復号化方法は、DVDプレーヤなどの画像記録再生装置やテレビジョン受像機,画像情報の受信を行なう携帯電話などの携帯端末などに適用可能である。例えば、DVDプレーヤなどの画像記録再生装置が装備されたビデオカメラにおいては、H.264/AVC規格に基づく符号化装置と本発明による復号化装置が設けることが可能である。この場合、撮影された画像データが装着されたDVDにH.264/AVC規格に基づいて圧縮符号化されて記録され、このDVDから読み出される圧縮符号化された画像データは、本発明による復号化装置によって復号される。   The image decoding apparatus and the image decoding method according to the present invention can be applied to an image recording / reproducing apparatus such as a DVD player, a television receiver, and a portable terminal such as a mobile phone that receives image information. For example, in a video camera equipped with an image recording / playback apparatus such as a DVD player, an encoding apparatus based on the H.264 / AVC standard and a decoding apparatus according to the present invention can be provided. In this case, the compressed and encoded image data recorded on the DVD on which the captured image data is compression-encoded based on the H.264 / AVC standard and read from the DVD is decoded according to the present invention. Decoded by the device.

本発明による画像復号化装置及び画像復号化方法の第1の実施形態を示す構成ブロック図である。1 is a configuration block diagram illustrating a first embodiment of an image decoding apparatus and an image decoding method according to the present invention. 図1における画像補正部の処理動作の一具体例を示すを示すフローチャートである。2 is a flowchart illustrating a specific example of processing operation of an image correction unit in FIG. 1. 図2のS104での補正処理を示す数3での重み付け係数重み付け係数αの設定の一具体例の説明図である。It is explanatory drawing of a specific example of the setting of the weighting coefficient weighting coefficient (alpha) by several 3 which shows the correction process in S104 of FIG. 本発明による画像復号化装置及び画像復号化方法の第2の実施形態の画像補正処理を示すフローチャートである。It is a flowchart which shows the image correction process of 2nd Embodiment of the image decoding apparatus and image decoding method by this invention. 本発明による画像復号化装置及び画像復号化方法の第2の実施形態の重み付け係数βの設定の一具体例の説明図である。It is explanatory drawing of a specific example of the setting of the weighting coefficient (beta) of 2nd Embodiment of the image decoding apparatus and image decoding method by this invention. 1画面のスライスによるデータ構造を模式的に示す図である。It is a figure which shows typically the data structure by the slice of 1 screen. H.264/AVC規格における画面内予測符号化での符号化モードと予測モードの一覧を示す図である。It is a figure which shows the list of the encoding modes and prediction modes in the prediction encoding in a screen in a H.264 / AVC specification. 図7におけるIntra4×4モードでのイントラ予測モードを具体的に示す図である。FIG. 8 is a diagram specifically illustrating an intra prediction mode in the Intra4 × 4 mode in FIG. 7. 図7におけるIntra16×16モードでのイントラ予測モードを具体的に示す図である。FIG. 8 is a diagram specifically illustrating an intra prediction mode in the Intra16 × 16 mode in FIG. 7. 画面間予測符号化ブロックを予測ブロックとした画面内予測符号化ブロックの復号動作の一具体例を示す図である。It is a figure which shows an example of the decoding operation | movement of the prediction encoding block in a screen which used the inter prediction encoding block as the prediction block. 図10(b)のMB−3の部分を拡大して示す図である。It is a figure which expands and shows the part of MB-3 of FIG.10 (b).

符号の説明Explanation of symbols

1 復号化部
2 可変長復号化部
3 逆量子化部
4 IDCT部
5,6 可算器
7 画像補正部
8 記憶部
9 画面内予測部
10 動き補償部
11 デブロッキングフィルタ部
12 画像縮小部
13 画像記憶部
14 画像伸張部
DESCRIPTION OF SYMBOLS 1 Decoding part 2 Variable length decoding part 3 Inverse quantization part 4 IDCT part 5,6 Adder 7 Image correction part 8 Storage part 9 In-screen prediction part 10 Motion compensation part 11 Deblocking filter part 12 Image reduction part 13 Image Storage unit 14 Image expansion unit

Claims (4)

一画面が符号化単位としての画面内予測符号化モードで符号化された所定個数の画素からなる画面内予測符号化モードによるブロックからなるIスライスと符号化単位としての画面内予測符号化で符号化された該所定個数の画素からなる画面内予測符号化モードによるブロックと符号化単位としての画面間予測符号化で符号化された該所定個数の画素からなる画面間予測符号化モードによるブロックとからなるP,Bスライスとからなる符号化された画像データを復号化処理する画像復号化装置であって、
該I,P,Bスライスでの該画面内予測符号化モードによるブロックの画素を、画面内予測復号化対象画素として、該ブロックと同じ画面内の該ブロックに隣接する他のブロックの画素を参照画素として用いて復号化し、かつ、該P,Bスライスでの該画面間予測符号化モードによる該ブロックの画素を、画面間復号化対象画素として、該ブロックを含む画面に先行もしくは後続する他の画面での該ブロックに該当する位置の他のブロックの画素を参照画素として用いて復号化する復号化部と、
該復号化部からの該画面内予測復号化対象画素の復号画素による復号ブロックが供給される画像補正部と、
該画像補正部から出力される該復号ブロックの画像データから該画面内復号化対象画素を復号するための該参照画素を生成する画面内予測部と、
該画像補正部から出力される該復号ブロックと該復号化部から出力される該画面間復号化対象画素の復号画素による復号ブロックとによる画像データの画像サイズを縮小する画像縮小部と、
該画像サイズが縮小された画像データを保持する記憶部と、
該記憶部から読み出した該画像データを元の画像サイズに伸張する画像伸張部と、
該画像伸張部からの画像データから該画面間予測復号化対象画素を復号するための該参照画素を作成する動き補償部と
を備え、
該画像補正部は、該復号化部から供給される該画面内予測符号化モードの復号ブロックのうちの、P,Bスライスに属し、かつ画面間予測符号化モードの復号ブロックの画素を参照画素として復号された画面内予測符号化モードの復号ブロックを補正対象の復号ブロックとし、該補正対象の復号ブロックに対して、画面間予測符号化モードの復号ブロックの画素を参照画素として復号したことによる時間軸方向のドリフト誤差を取り除く画像補正を行ない、
該画像補正部の該補正対象の復号ブロックは、画面間予測復号化に用いる画面間予測復号化参照画面での該補正対象ブロックに対応する参照画面対象ブロックと、該補正対象の復号ブロックと該参照画面対象ブロックとの画素値の差分絶対値和の平均値が予め設定された閾値以下であって、相関があり、かつアクティビティが所定の閾値以下で画質劣化が目立つ該復号ブロックであり、
該画像補正部は、該参照画面対象ブロックの画素の画素値の平均値と該補正対象の復号ブロックの画素の画素値の平均値との差に該補正対象の復号ブロックと該参照画面対象ブロックとの画素値の差分絶対値和の平均値に応じた係数を乗算した値を、該ドリフト誤差として、該復号ブロックの各画素に加算して、該補正対象の復号ブロックの該画像補正を行なうことを特徴とする画像復号化装置。
An I-slice consisting of a block according to an intra-screen prediction encoding mode consisting of a predetermined number of pixels encoded in one intra-screen prediction encoding mode as an encoding unit and an intra-screen prediction encoding as an encoding unit A block in the intra prediction encoding mode consisting of the predetermined number of pixels, and a block in the inter prediction encoding mode consisting of the predetermined number of pixels encoded in the inter prediction encoding as a coding unit. An image decoding apparatus for decoding encoded image data consisting of P and B slices consisting of:
The pixel of the block according to the intra prediction encoding mode in the I, P, and B slices is used as the intra prediction prediction target pixel, and the pixel of another block adjacent to the block in the same screen as the block is referred to Other pixels preceding or following the screen including the block, using the pixel of the block in the inter-frame predictive coding mode in the P and B slices as the inter-screen decoding target pixel A decoding unit that performs decoding using a pixel of another block at a position corresponding to the block on the screen as a reference pixel;
An image correction unit to which a decoded block of decoded pixels of the intra-screen predictive decoding target pixel from the decoding unit is supplied;
An intra-screen prediction unit that generates the reference pixel for decoding the intra-screen decoding target pixel from the image data of the decoded block output from the image correction unit;
An image reduction unit for reducing the image size of the image data by the decoding block output from the image correction unit and the decoding block output by the decoding pixel of the inter-screen decoding target pixel output from the decoding unit;
A storage unit for holding image data in which the image size is reduced;
An image expansion unit that expands the image data read from the storage unit to the original image size;
A motion compensation unit that creates the reference pixel for decoding the inter-picture prediction decoding target pixel from the image data from the image decompression unit,
The image correcting unit belongs to the P and B slices of the decoded block in the intra prediction encoding mode supplied from the decoding unit, and the pixel of the decoding block in the inter prediction encoding mode is a reference pixel. The decoding block in the intra prediction encoding mode decoded as a decoding block to be corrected is decoded, and the decoding block in the inter prediction encoding mode is decoded as a reference pixel for the correction decoding block Perform image correction to remove drift errors in the time axis direction ,
The decoding block to be corrected of the image correction unit includes a reference screen target block corresponding to the correction target block on the inter-screen prediction decoding reference screen used for inter-screen predictive decoding, the correction target decoding block, The average value of the sum of absolute differences of the pixel values from the reference screen target block is equal to or less than a preset threshold value, and there is a correlation.
The image correcting unit calculates the difference between the average value of the pixel values of the pixels of the reference screen target block and the average value of the pixel values of the pixels of the correction block to be corrected and the reference screen target block. A value obtained by multiplying the coefficient corresponding to the average value of the sum of absolute differences of the pixel values with the value is added to each pixel of the decoding block as the drift error, and the image correction of the decoding block to be corrected is performed. An image decoding apparatus characterized by that.
一画面が符号化単位としての画面内予測符号化モードで符号化された所定個数の画素からなる画面内予測符号化モードによるブロックからなるIスライスと符号化単位としての画面内予測符号化で符号化された該所定個数の画素からなる画面内予測符号化モードによるブロックと符号化単位としての画面間予測符号化で符号化された該所定個数の画素からなる画面間予測符号化モードによるブロックとからなるP,Bスライスとからなる符号化された画像データを復号化処理する画像復号化装置であって、
該I,P,Bスライスでの該画面内予測符号化モードによるブロックの画素を、画面内予測復号化対象画素として、該ブロックと同じ画面内の該ブロックに隣接する他のブロックの画素を参照画素として用いて復号化し、かつ、該P,Bスライスでの該画面間予測符号化モードによる該ブロックの画素を、画面間復号化対象画素として、該ブロックを含む画面に先行もしくは後続する他の画面での該ブロックに該当する位置の他のブロックの画素を参照画素として用いて復号化する復号化部と、
該復号化部からの該画面内予測復号化対象画素の復号画素による復号ブロックが供給される画像補正部と、
該画像補正部から出力される該復号ブロックの画像データから該画面内復号化対象画素を復号するための該参照画素を生成する画面内予測部と、
該画像補正部から出力される該復号ブロックと該復号化部から出力される該画面間復号化対象画素の復号画素による復号ブロックとによる画像データの画像サイズを縮小する画像縮小部と、
該画像サイズが縮小された画像データを保持する記憶部と、
該記憶部から読み出した該画像データを元の画像サイズに伸張する画像伸張部と、
該画像伸張部からの画像データから該画面間予測復号化対象画素を復号するための該参照画素を作成する動き補償部と
を備え、
該画像補正部は、該復号化部から供給される該画面内予測符号化モードの復号ブロックのうちの、P,Bスライスに属し、かつ画面間予測符号化モードの復号ブロックの画素を参照画素として復号された画面内予測符号化モードの復号ブロックを補正対象の復号ブロックとし、該補正対象の復号ブロックに対して、画面間予測符号化モードの復号ブロックの画素を参照画素として復号したことによる時間軸方向のドリフト誤差を取り除く画像補正を行ない、
該画像補正部の該補正対象の復号ブロックは、該補正対象の復号ブロックの時間的に先行する隣接ブロックと、該補正対象の復号ブロックと該隣接ブロックとの画素値の差分絶対値和の平均値が予め設定された閾値以下であって、相関があり、かつアクティビティが所定の閾値以下で画質劣化が目立つ該復号ブロックであり、
該画像補正部は、該隣接ブロックの画素の画素値の平均値と該補正対象の復号ブロックの画素の画素値の平均値との差に該補正対象の復号ブロックと該隣接ブロックとの画素値の差分絶対値和の平均値に応じた係数を乗算した値を、該ドリフト誤差として、該復号ブロックの各画素に加算して該補正対象の復号ブロックの該画像補正を行なうことを特徴とする画像復号化装置。
An I-slice consisting of a block according to an intra-screen prediction encoding mode consisting of a predetermined number of pixels encoded in one intra-screen prediction encoding mode as an encoding unit and an intra-screen prediction encoding as an encoding unit A block in the intra prediction encoding mode consisting of the predetermined number of pixels, and a block in the inter prediction encoding mode consisting of the predetermined number of pixels encoded in the inter prediction encoding as a coding unit. An image decoding apparatus for decoding encoded image data consisting of P and B slices consisting of:
The pixel of the block according to the intra prediction encoding mode in the I, P, and B slices is used as the intra prediction prediction target pixel, and the pixel of another block adjacent to the block in the same screen as the block is referred to Other pixels preceding or following the screen including the block, using the pixel of the block in the inter-frame predictive coding mode in the P and B slices as the inter-screen decoding target pixel A decoding unit that performs decoding using a pixel of another block at a position corresponding to the block on the screen as a reference pixel;
An image correction unit to which a decoded block of decoded pixels of the intra-screen predictive decoding target pixel from the decoding unit is supplied;
An intra-screen prediction unit that generates the reference pixel for decoding the intra-screen decoding target pixel from the image data of the decoded block output from the image correction unit;
An image reduction unit for reducing the image size of the image data by the decoding block output from the image correction unit and the decoding block output by the decoding pixel of the inter-screen decoding target pixel output from the decoding unit;
A storage unit for holding image data in which the image size is reduced;
An image expansion unit that expands the image data read from the storage unit to the original image size;
A motion compensation unit that creates the reference pixel for decoding the inter-picture prediction decoding target pixel from the image data from the image decompression unit;
With
The image correcting unit belongs to the P and B slices of the decoded block in the intra prediction encoding mode supplied from the decoding unit, and the pixel of the decoding block in the inter prediction encoding mode is a reference pixel. The decoding block in the intra prediction encoding mode decoded as a decoding block to be corrected is decoded, and the decoding block in the inter prediction encoding mode is decoded as a reference pixel for the correction decoding block Perform image correction to remove drift errors in the time axis direction,
The decoding block to be corrected of the image correction unit includes an adjacent block temporally preceding the decoding block to be corrected, and an average sum of absolute differences of pixel values of the decoding block to be corrected and the adjacent block. A decoding block whose value is equal to or less than a preset threshold value, which is correlated, and whose activity is equal to or less than a predetermined threshold value and image quality degradation is conspicuous;
The image correction unit calculates a pixel value between the decoding block to be corrected and the adjacent block based on a difference between an average value of pixel values of the pixels of the adjacent block and an average value of pixel values of the pixels of the decoding block to be corrected. A value obtained by multiplying a coefficient corresponding to an average value of the sum of absolute differences is added to each pixel of the decoding block as the drift error to perform the image correction of the decoding block to be corrected. Image decoding device.
一画面が符号化単位としての画面内予測符号化モードで符号化された所定個数の画素からなる画面内予測符号化モードによるブロックからなるIスライスと符号化単位としての画面内予測符号化で符号化された該所定個数の画素からなる画面内予測符号化モードによるブロックと符号化単位としての画面間予測符号化で符号化された該所定個数の画素からなる画面間予測符号化モードによるブロックとからなるP,Bスライスとからなる符号化された画像データを復号化処理する画像復号化方法であって、
該I,P,Bスライスでの該画面内予測符号化モードによるブロックの画素を、画面内予測復号化対象画素として、該ブロックと同じ画面内の該ブロックに隣接する他のブロックの画素を参照画素として用いて復号化し、かつ、該P,Bスライスでの該画面間予測符号化モードによる該ブロックの画素を、画面間復号化対象画素として、該ブロックを含む画面に先行もしくは後続する他の画面での該ブロックに該当する位置の他のブロックの画素を参照画素として用いて復号化処理し、
復号化処理された該画面内予測符号化モードによるブロックの復号ブロックのうち、P,Bスライスに属し、かつ復号処理された画面間予測符号化モードの復号ブロックの画素を参照画素として復号された画面内予測符号化モードの復号ブロックを補正対象の復号ブロックとし、該補正対象の復号ブロックに対して、画面間予測符号化モードの復号ブロックの画素を参照画素として復号したことによる時間軸方向のドリフト誤差を取り除く画像補正を行ない、
画面内予測符号化モードによるブロックの復号化処理された復号ブロック,画面内予測符号化モードによるブロックの画像補正されたされた復号ブロック及び画面間予測符号化モードによるブロックの復号化処理された復号ブロックの画像データから該画面内復号化対象画素を復号するための該参照画素を生成し、
該画面内予測符号化で符号化されたブロックの復号化された復号ブロックや該画面間予測符号化で符号化されたブロックの復号化された復号ブロックを、画面サイズを縮小して記憶部に記憶し、該記憶部から読み出した該復号ブロックを元の画像サイズに伸張し、元の画像サイズに伸張した該復号ブロックの画素を該画面間予測符号化モードによる該ブロックの画素を復号する参照画素とし、
該画像補正の該補正対象の復号ブロックは、画面間予測復号化に用いる画面間予測復号化参照画面での該補正対象ブロックに対応する参照画面対象ブロックと、該補正対象の復号ブロックと該参照画面対象ブロックとの画素値の差分絶対値和の平均値が予め設定された閾値以下であって、相関があり、かつアクティビティが所定の閾値以下で画質劣化が目立つ該復号ブロックであり、
該参照画面対象ブロックの画素の画素値の平均値と該補正対象の復号ブロックの画素の画素値の平均値との差に該補正対象の復号ブロックと該参照画面対象ブロックとの画素値の差分絶対値和の平均値に応じた係数を乗算した値を、該ドリフト誤差として、該復号ブロックの各画素に加算して、該補正対象の復号ブロックの該画像補正を行なうことを特徴とする画像復号化方法。
An I-slice consisting of a block according to an intra-screen prediction encoding mode consisting of a predetermined number of pixels encoded in one intra-screen prediction encoding mode as an encoding unit and an intra-screen prediction encoding as an encoding unit A block in the intra prediction encoding mode consisting of the predetermined number of pixels, and a block in the inter prediction encoding mode consisting of the predetermined number of pixels encoded in the inter prediction encoding as a coding unit. An image decoding method for decoding encoded image data consisting of P and B slices consisting of :
The pixel of the block according to the intra prediction encoding mode in the I, P, and B slices is used as the intra prediction prediction target pixel, and the pixel of another block adjacent to the block in the same screen as the block is referred to Other pixels preceding or following the screen including the block, using the pixel of the block in the inter-frame predictive coding mode in the P and B slices as the inter-screen decoding target pixel Decoding using a pixel in another block at a position corresponding to the block on the screen as a reference pixel ;
Of the decoded blocks of the block in the intra prediction encoding mode that has been decoded, the pixels belonging to the P and B slices and decoded in the inter prediction encoding mode in the inter picture prediction encoding mode are decoded as reference pixels. The decoding block in the intra prediction encoding mode is set as a correction target decoding block, and the decoding target decoding block is decoded in the time axis direction by decoding the decoding block pixel in the inter prediction encoding mode as a reference pixel. Perform image correction to remove drift error,
Decoded block subjected to decoding process of block by intra prediction encoding mode, decoded block of image block corrected by intra prediction encoding mode, and decoding block decoded by inter prediction encoding mode Generating the reference pixel for decoding the intra-screen decoding target pixel from the image data of the block;
The decoded block of the block encoded by the intra prediction encoding or the decoded block of the block encoded by the inter prediction encoding is reduced in the screen size and stored in the storage unit. Reference is made to store the decoded block read from the storage unit to the original image size, and decode the pixel of the decoded block expanded to the original image size to decode the pixel of the block in the inter-screen predictive coding mode Pixels,
The decoding block to be corrected for the image correction includes a reference screen target block corresponding to the correction target block in the inter-screen prediction decoding reference screen used for inter-screen predictive decoding, the decoding block to be corrected, and the reference The average value of the sum of absolute differences of pixel values from the screen target block is equal to or less than a preset threshold value, and there is a correlation.
The difference between the average value of the pixel values of the pixels of the reference screen target block and the average value of the pixel values of the pixels of the decoding block to be corrected is the difference between the pixel values of the decoding block to be corrected and the reference screen target block. A value obtained by multiplying a coefficient corresponding to an average value of the sum of absolute values is added to each pixel of the decoding block as the drift error, and the image correction of the decoding block to be corrected is performed. Decryption method.
一画面が符号化単位としての画面内予測符号化モードで符号化された所定個数の画素からなる画面内予測符号化モードによるブロックからなるIスライスと符号化単位としての画面内予測符号化で符号化された該所定個数の画素からなる画面内予測符号化モードによるブロックと符号化単位としての画面間予測符号化で符号化された該所定個数の画素からなる画面間予測符号化モードによるブロックとからなるP,Bスライスとからなる符号化された画像データを復号化処理する画像復号化方法であって、
該I,P,Bスライスでの該画面内予測符号化モードによるブロックの画素を、画面内予測復号化対象画素として、該ブロックと同じ画面内の該ブロックに隣接する他のブロックの画素を参照画素として用いて復号化し、かつ、該P,Bスライスでの該画面間予測符号化モードによる該ブロックの画素を、画面間復号化対象画素として、該ブロックを含む画面に先行もしくは後続する他の画面での該ブロックに該当する位置の他のブロックの画素を参照画素として用いて復号化処理し、
復号化処理された該画面内予測符号化モードによるブロックの復号ブロックのうち、P,Bスライスに属し、かつ復号処理された画面間予測符号化モードの復号ブロックの画素を参照画素として復号された画面内予測符号化モードの復号ブロックを補正対象の復号ブロックとし、該補正対象の復号ブロックに対して、画面間予測符号化モードの復号ブロックの画素を参照画素として復号したことによる時間軸方向のドリフト誤差を取り除く画像補正を行ない、
画面内予測符号化モードによるブロックの復号化処理された復号ブロック,画面内予測符号化モードによるブロックの画像補正されたされた復号ブロック及び画面間予測符号化モードによるブロックの復号化処理された復号ブロックの画像データから該画面内復号化対象画素を復号するための該参照画素を生成し、
該画面内予測符号化で符号化されたブロックの復号化された復号ブロックや該画面間予測符号化で符号化されたブロックの復号化された復号ブロックを、画面サイズを縮小して記憶部に記憶し、該記憶部から読み出した該復号ブロックを元の画像サイズに伸張し、元の画像サイズに伸張した該復号ブロックの画素を該画面間予測符号化モードによる該ブロックの画素を復号する参照画素とし、
該画像補正の該補正対象の復号ブロックは、該補正対象の復号ブロックの時間的に先行する隣接ブロックと、該補正対象の復号ブロックと該隣接ブロックとの画素値の差分絶対値和の平均値が予め設定された閾値以下であって、相関があり、かつアクティビティが所定の閾値以下で画質劣化が目立つ該復号ブロックであり、
該隣接ブロックの画素の画素値の平均値と該補正対象の復号ブロックの画素の画素値の平均値との差に該補正対象の復号ブロックと該隣接ブロックとの画素値の差分絶対値和の平均値に応じた係数を乗算した値を、該ドリフト誤差として、該復号ブロックの各画素に加算して該補正対象の復号ブロックの該画像補正を行なうことを特徴とする画像復号化方法。
An I-slice consisting of a block according to an intra-screen prediction encoding mode consisting of a predetermined number of pixels encoded in one intra-screen prediction encoding mode as an encoding unit and an intra-screen prediction encoding as an encoding unit A block in the intra prediction encoding mode consisting of the predetermined number of pixels, and a block in the inter prediction encoding mode consisting of the predetermined number of pixels encoded in the inter prediction encoding as a coding unit. An image decoding method for decoding encoded image data consisting of P and B slices consisting of :
The pixel of the block according to the intra prediction encoding mode in the I, P, and B slices is used as the intra prediction prediction target pixel, and the pixel of another block adjacent to the block in the same screen as the block is referred to Other pixels preceding or following the screen including the block, using the pixel of the block in the inter-frame predictive coding mode in the P and B slices as the inter-screen decoding target pixel Decoding using a pixel in another block at a position corresponding to the block on the screen as a reference pixel ;
Of the decoded blocks of the block in the intra prediction encoding mode that has been decoded, the pixels belonging to the P and B slices and decoded in the inter prediction encoding mode in the inter picture prediction encoding mode are decoded as reference pixels. The decoding block in the intra prediction encoding mode is set as a correction target decoding block, and the decoding target decoding block is decoded in the time axis direction by decoding the decoding block pixel in the inter prediction encoding mode as a reference pixel. Perform image correction to remove drift error,
Decoded block subjected to decoding process of block by intra prediction encoding mode, decoded block of image block corrected by intra prediction encoding mode, and decoding block decoded by inter prediction encoding mode Generating the reference pixel for decoding the intra-screen decoding target pixel from the image data of the block;
The decoded block of the block encoded by the intra prediction encoding or the decoded block of the block encoded by the inter prediction encoding is reduced in the screen size and stored in the storage unit. Reference is made to store the decoded block read from the storage unit to the original image size, and decode the pixel of the decoded block expanded to the original image size to decode the pixel of the block in the inter-screen predictive coding mode Pixels,
The decoding block to be corrected in the image correction includes an adjacent block temporally preceding the decoding block to be corrected, and an average value of sums of absolute differences between pixel values of the decoding block to be corrected and the adjacent block. Is a decoding block that is less than or equal to a preset threshold, has a correlation, and activity is less than or equal to a predetermined threshold and image quality degradation is conspicuous,
The difference between the average value of the pixel values of the pixels of the adjacent block and the average value of the pixel values of the pixels of the decoding block to be corrected is the sum of absolute differences of the pixel values of the decoding block to be corrected and the adjacent block. An image decoding method , wherein a value obtained by multiplying a coefficient corresponding to an average value is added to each pixel of the decoding block as the drift error to perform the image correction of the decoding block to be corrected .
JP2006042794A 2006-02-20 2006-02-20 Image decoding apparatus and image decoding method Expired - Fee Related JP4774315B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006042794A JP4774315B2 (en) 2006-02-20 2006-02-20 Image decoding apparatus and image decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006042794A JP4774315B2 (en) 2006-02-20 2006-02-20 Image decoding apparatus and image decoding method

Publications (2)

Publication Number Publication Date
JP2007221697A JP2007221697A (en) 2007-08-30
JP4774315B2 true JP4774315B2 (en) 2011-09-14

Family

ID=38498411

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006042794A Expired - Fee Related JP4774315B2 (en) 2006-02-20 2006-02-20 Image decoding apparatus and image decoding method

Country Status (1)

Country Link
JP (1) JP4774315B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011089876A1 (en) * 2010-01-22 2011-07-28 パナソニック株式会社 Video decoding device, video decoding method, and video decoding-use integrated chip device
US8259808B2 (en) 2010-03-25 2012-09-04 Mediatek Inc. Low complexity video decoder
US9172980B2 (en) 2010-03-25 2015-10-27 Mediatek Inc. Method for adaptively performing video decoding, and associated adaptive complexity video decoder and adaptive audio/video playback system
US10063873B2 (en) 2010-03-25 2018-08-28 Mediatek Inc. Method for adaptively performing video decoding, and associated adaptive complexity video decoder and adaptive audio/video playback system
WO2012008616A1 (en) * 2010-07-16 2012-01-19 Sharp Kabushiki Kaisha Video decoder for low resolution power reduction using low resolution data
US9313523B2 (en) 2010-07-16 2016-04-12 Sharp Laboratories Of America, Inc. System for low resolution power reduction using deblocking
US8767828B2 (en) 2010-07-16 2014-07-01 Sharp Laboratories Of America, Inc. System for low resolution power reduction with compressed image
WO2012008614A1 (en) * 2010-07-16 2012-01-19 Sharp Kabushiki Kaisha Video decoder for low resolution power reduction using low resolution data
US8548062B2 (en) 2010-07-16 2013-10-01 Sharp Laboratories Of America, Inc. System for low resolution power reduction with deblocking flag

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000165875A (en) * 1998-11-26 2000-06-16 Oki Electric Ind Co Ltd Moving image resolution converting and encoding/ decoding device with a little memory capacity
JP2001309384A (en) * 2000-04-18 2001-11-02 Oki Electric Ind Co Ltd Picture compressor
JP2005175882A (en) * 2003-12-11 2005-06-30 Matsushita Electric Ind Co Ltd Apparatus and method for detecting motion vector
JP4411131B2 (en) * 2004-05-06 2010-02-10 Kddi株式会社 Encoded video playback device

Also Published As

Publication number Publication date
JP2007221697A (en) 2007-08-30

Similar Documents

Publication Publication Date Title
JP4774315B2 (en) Image decoding apparatus and image decoding method
US8588301B2 (en) Image coding apparatus, control method therefor and computer program
US20170272758A1 (en) Video encoding method and apparatus using independent partition coding and associated video decoding method and apparatus
JP4723025B2 (en) Image encoding method and image encoding apparatus
US8325799B2 (en) Moving picture encoding method, device using the same, and computer program
US20060013315A1 (en) Filtering method, apparatus, and medium used in audio-video codec
US20090190660A1 (en) Image encoding method
US9591305B2 (en) Moving image decoding apparatus, moving image decoding method and moving image encoding apparatus, and moving image encoding method
JP4804107B2 (en) Image encoding apparatus, image encoding method and program thereof
KR101394209B1 (en) Method for predictive intra coding for image data
JP4875007B2 (en) Moving picture coding apparatus, moving picture coding method, and moving picture decoding apparatus
JP2007329693A (en) Image encoding device and method
US20110002387A1 (en) Techniques for motion estimation
WO2012063878A1 (en) Image processing device, and image processing method
JP2005513968A (en) Improving temporary consistency in improving image definition
JP5396711B2 (en) Moving picture decoding apparatus, moving picture decoding method, and program
WO2007148619A1 (en) Dynamic image decoding device, decoded image recording device, and their method and program
JP2011250400A (en) Moving picture encoding apparatus and moving picture encoding method
JP4643437B2 (en) Information processing device
JP2014075652A (en) Image encoder, and image encoding method
JP6253406B2 (en) Image encoding apparatus, imaging apparatus, image encoding method, and program
JP4357560B2 (en) Moving picture coding apparatus, moving picture coding method, and moving picture coding program
US8249373B2 (en) Image data decoding apparatus and method for decoding image data
JP4196929B2 (en) Noise detection apparatus and noise detection program
WO2022196133A1 (en) Encoding device and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090126

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100803

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100817

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101018

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110329

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110527

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110614

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110627

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

Free format text: PAYMENT UNTIL: 20140701

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees