JP2010283739A - Moving image encoding device - Google Patents
Moving image encoding device Download PDFInfo
- Publication number
- JP2010283739A JP2010283739A JP2009137270A JP2009137270A JP2010283739A JP 2010283739 A JP2010283739 A JP 2010283739A JP 2009137270 A JP2009137270 A JP 2009137270A JP 2009137270 A JP2009137270 A JP 2009137270A JP 2010283739 A JP2010283739 A JP 2010283739A
- Authority
- JP
- Japan
- Prior art keywords
- intra prediction
- image
- prediction mode
- intra
- mode
- 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.)
- Granted
Links
Images
Abstract
Description
この発明は、イントラ予測を実施して、動画像を符号化する動画像符号化装置に関するものである。 The present invention relates to a moving image encoding apparatus that encodes a moving image by performing intra prediction.
動画像圧縮規格であるH.264では、ブロック隣接画素から予測画像を生成するイントラ予測を採用している。
イントラ予測における予測モードとして、輝度4×4イントラ予測モードで9種類、輝度8×8イントラ予測モードで9種類、輝度16×16イントラ予測モードで4種類、色差のイントラ予測で4種類が規定されている。
H. is a video compression standard. H.264 employs intra prediction that generates a predicted image from block adjacent pixels.
As the prediction modes in intra prediction, nine types are specified in the luminance 4 × 4 intra prediction mode, nine types in the
H.264規格のエンコーダでは、精度が高いイントラ予測を行うには、全ての予測モードで、局部復号画像から予測画像を生成し、複数の予測画像を比較してイントラ予測モードを決定することが望ましい。
しかし、全ての予測モードで、局部復号画像から予測画像を生成する場合、全ての予測モードで、局部復号画像を生成する必要があるため演算量が多くなる。
H. In the H.264 standard encoder, in order to perform intra prediction with high accuracy, it is desirable to generate a prediction image from a locally decoded image in all prediction modes and compare the plurality of prediction images to determine the intra prediction mode.
However, when a prediction image is generated from a locally decoded image in all prediction modes, it is necessary to generate a locally decoded image in all prediction modes, which increases the amount of calculation.
そこで、以下の特許文献1に開示されている動画像符号化装置では、原画像からイントラ予測モードを決定するようにしている。
この場合、全ての予測モードで、局部復号画像を生成する必要がないため演算量を削減することができるが、符号化に使用するイントラ予測画像は、局部復号画像から生成するため、原画像と局部復号画像にある程度の差異が発生すると、適切なイントラ予測モードが選択されず、符号化画像の画質に悪影響を与えることがある。
In view of this, in the moving picture encoding device disclosed in
In this case, since it is not necessary to generate a local decoded image in all prediction modes, the amount of calculation can be reduced. However, since an intra predicted image used for encoding is generated from a local decoded image, When a certain degree of difference occurs in the locally decoded image, an appropriate intra prediction mode is not selected, and the image quality of the encoded image may be adversely affected.
従来の動画像符号化装置は以上のように構成されているので、全ての予測モードで、局部復号画像を生成する必要がないため演算量を削減することができる。しかし、原画像からイントラ予測モードを決定し、局部復号画像からイントラ予測画像を生成するため、原画像と局部復号画像にある程度の差異が発生すると、適切なイントラ予測モードが選択されず、符号化画像の画質に悪影響を与えることがあるなどの課題があった。 Since the conventional moving image encoding apparatus is configured as described above, it is not necessary to generate a local decoded image in all prediction modes, and thus the amount of calculation can be reduced. However, since the intra prediction mode is determined from the original image and the intra prediction image is generated from the locally decoded image, if a certain amount of difference occurs between the original image and the locally decoded image, an appropriate intra prediction mode is not selected and encoding is performed. There were problems such as the image quality being adversely affected.
この発明は上記のような課題を解決するためになされたもので、原画像と局部復号画像の差異が大きくなっても、符号化画像の画質劣化を抑制することができる動画像符号化装置を得ることを目的とする。 The present invention has been made in order to solve the above-described problems, and provides a moving image encoding apparatus capable of suppressing deterioration in image quality of an encoded image even when a difference between an original image and a locally decoded image increases. The purpose is to obtain.
この発明に係る動画像符号化装置は、イントラ予測対象の矩形領域の原画像と上記矩形領域に隣接している領域の原画像である隣接原画像からイントラ予測モードを決定するイントラ予測モード決定手段と、その隣接原画像と上記矩形領域に隣接している領域の局部復号画像との差分を求め、その差分が所定の閾値より小さい場合、イントラ予測モード決定手段により決定されたイントラ予測モードを選択し、その差分が所定の閾値より大きい場合、画素値の平均値を用いて予測画像を生成するDCモードを選択するモード選択手段とを設け、イントラ予測画像生成手段が、モード選択手段によりイントラ予測モードが選択された場合、そのイントラ予測モードで、局部復号画像から上記矩形領域のイントラ予測画像を生成し、モード選択手段によりDCモードが選択された場合、そのDCモードで、局部復号画像から上記矩形領域のイントラ予測画像を生成するようにしたものである。 The moving image encoding apparatus according to the present invention includes an intra prediction mode determination unit that determines an intra prediction mode from an original image of a rectangular area to be intra predicted and an adjacent original image that is an original image of an area adjacent to the rectangular area. If the difference is smaller than a predetermined threshold, the intra prediction mode determined by the intra prediction mode determination means is selected. When the difference is larger than a predetermined threshold, a mode selection unit that selects a DC mode for generating a prediction image using an average value of pixel values is provided, and the intra prediction image generation unit performs intra prediction by the mode selection unit. When a mode is selected, an intra-prediction image of the rectangular area is generated from the locally decoded image in the intra-prediction mode. If DC mode is selected by, in the DC mode, in which so as to generate an intra prediction image of the rectangular region from the local decoded image.
この発明によれば、イントラ予測対象の矩形領域の原画像と上記矩形領域に隣接している領域の原画像である隣接原画像からイントラ予測モードを決定するイントラ予測モード決定手段と、その隣接原画像と上記矩形領域に隣接している領域の局部復号画像との差分を求め、その差分が所定の閾値より小さい場合、イントラ予測モード決定手段により決定されたイントラ予測モードを選択し、その差分が所定の閾値より大きい場合、画素値の平均値を用いて予測画像を生成するDCモードを選択するモード選択手段とを設け、イントラ予測画像生成手段が、モード選択手段によりイントラ予測モードが選択された場合、そのイントラ予測モードで、局部復号画像から上記矩形領域のイントラ予測画像を生成し、モード選択手段によりDCモードが選択された場合、そのDCモードで、局部復号画像から上記矩形領域のイントラ予測画像を生成するように構成したので、原画像と局部復号画像の差異が大きくなっても、符号化画像の画質劣化を抑制することができる効果がある。 According to the present invention, the intra prediction mode determining means for determining the intra prediction mode from the original image of the rectangular area to be intra predicted and the adjacent original image that is the original image of the area adjacent to the rectangular area, and the adjacent original When the difference between the image and the locally decoded image in the region adjacent to the rectangular region is obtained and the difference is smaller than a predetermined threshold, the intra prediction mode determined by the intra prediction mode determination unit is selected, and the difference is A mode selection unit that selects a DC mode for generating a prediction image using an average value of pixel values when the threshold value is larger than a predetermined threshold value, and the intra prediction image generation unit selects the intra prediction mode by the mode selection unit. In this case, the intra prediction image of the rectangular area is generated from the locally decoded image in the intra prediction mode, and the DC mode is selected by the mode selection means. In the DC mode, the intra-prediction image of the rectangular area is generated from the local decoded image, so even if the difference between the original image and the local decoded image becomes large, the quality of the encoded image There exists an effect which can suppress deterioration.
実施の形態1.
図1はこの発明の実施の形態1による動画像符号化装置を示す構成図である。
図1において、原画像周辺画素メモリ1はイントラ予測対象の矩形領域に隣接している領域の原画像である隣接原画像を一時的に格納するメモリである。
イントラ予測モード決定部2はイントラ予測対象の矩形領域の原画像と原画像周辺画素メモリ1により格納された隣接原画像から、予測ブロックサイズとイントラ予測モードを決定する処理を実施する。
即ち、イントラ予測モード決定部2は、例えば、原画像周辺画素メモリ1により格納された隣接原画像から、複数のイントラ予測モード(例えば、輝度4×4イントラ予測モードの9種類、輝度8×8イントラ予測モードの9種類、輝度16×16イントラ予測モードの4種類、色差のイントラ予測の4種類)で予測画像を生成して、それらの予測画像とイントラ予測対象の矩形領域の原画像とを比較し、複数の予測画像の中で、その原画像と最も差異が小さい予測画像を選択することで、その予測画像に係る予測ブロックサイズとイントラ予測モードを出力する処理を実施する。
なお、イントラ予測モード決定部2はイントラ予測モード決定手段を構成している。
1 is a block diagram showing a moving picture coding apparatus according to
In FIG. 1, an original image
The intra prediction
That is, the intra prediction
The intra prediction
イントラ予測モード補正部3は原画像周辺画素メモリ1により格納されている隣接原画像と、局部復号画像周辺画素メモリ13により格納されている局部復号画像(イントラ予測対象の矩形領域に隣接している領域の局部復号画像)との差分を求め、その差分が所定の閾値より小さい場合、イントラ予測モード決定部2により決定されたイントラ予測モードの選択指令をセレクタ4に出力し、その差分が所定の閾値より大きい場合、画素値の平均値を用いて予測画像を生成するDCモードの選択指令をセレクタ4に出力する処理を実施する。
ただし、イントラ予測モード補正部3は補正機能ON/OFFフラグ(イントラ予測モードの補正の有無を示すフラグ)を入力し、その補正機能ON/OFFフラグが“補正機能ON”を示している場合に限り、イントラ予測モード決定部2により決定されたイントラ予測モード又はDCモードの選択処理を実施し、その補正機能ON/OFFフラグが“補正機能OFF”を示していれば、その隣接原画像と局部復号画像の差分を算出して所定の閾値と比較する選択処理を実施することなく、DCモードの選択指令をセレクタ4に出力する処理を実施する。
The intra prediction
However, the intra prediction
セレクタ4はイントラ予測モード補正部3からイントラ予測モードの選択指令を受けると、イントラ予測モード決定部2により決定されたイントラ予測モードを選択して、そのイントラ予測モードをイントラ予測画像生成部5に出力し、イントラ予測モード補正部3からDCモードの選択指令を受けると、そのDCモードをイントラ予測画像生成部5に出力する処理を実施する。
なお、イントラ予測モード補正部3及びセレクタ4からモード選択手段が構成されている。
When the selector 4 receives the instruction for selecting the intra prediction mode from the intra prediction
The intra prediction
イントラ予測画像生成部5はセレクタ4からイントラ予測モード決定部2により決定されたイントラ予測モードを受けると、そのイントラ予測モードで、局部復号画像周辺画素メモリ13により格納されている局部復号画像(イントラ予測対象の矩形領域に隣接している領域の局部復号画像)からイントラ予測対象の矩形領域のイントラ予測画像を生成し、セレクタ4からDCモードを受けると、そのDCモードで、その局部復号画像からイントラ予測対象の矩形領域のイントラ予測画像を生成する処理を実施する。なお、イントラ予測画像生成部5はイントラ予測画像生成手段を構成している。
When receiving the intra prediction mode determined by the intra prediction
セレクタ6は外部から入力されるインター/イントラ予測判定結果がインター予測を採用する旨を示していれば、外部から入力されるインター予測画像を選択し、そのインター/イントラ予測判定結果がイントラ予測を採用する旨を示していれば、イントラ予測画像生成部5により生成されたイントラ予測画像を選択する処理を実施する。
減算器7はイントラ予測対象の矩形領域の原画像からセレクタ6により選択された画像(インター予測画像、または、イントラ予測画像)を減算し、その減算結果である差分画像を整数変換部8に出力する処理を実施する。
If the inter / intra prediction determination result input from the outside indicates that the inter prediction is adopted, the
The subtracter 7 subtracts the image (inter prediction image or intra prediction image) selected by the
整数変換部8は減算器7から出力された差分画像を整数変換して、その整数変換係数を量子化部9に出力する処理を実施する。
量子化部9は所定の量子化パラメータを用いて、整数変換部8から出力された整数変換係数を量子化し、その量子化変換係数を逆量子化部10に出力するとともに、その量子化変換係数を例えばエントロピー符号化部などの符号化部(図示せぬ)に出力する処理を実施する。なお、符号化部は、量子化部9から出力された量子化変換係数に対する可変長符号化処理又は算術符号化処理を実施して、符号化データを生成する処理部である。
逆量子化部10は量子化部9から出力された量子化変換係数を逆量子化し、その逆量子化変換係数を逆整数変換部11に出力する処理を実施する。
The
The
The
逆整数変換部11は逆量子化部10から出力された逆量子化変換係数を逆整数変換して、その逆整数変換係数を加算器12に出力する処理を実施する。
加算器12は逆整数変換部11から出力された逆整数変換係数とセレクタ6により選択された画像(インター予測画像、または、イントラ予測画像)を加算し、その加算結果をイントラ予測対象の矩形領域の局部復号画像として局部復号画像周辺画素メモリ13に出力する処理を実施する。
なお、減算器7、整数変換部8、量子化部9、逆量子化部10、逆整数変換部11及び加算器12から局部復号画像生成手段が構成されている。
局部復号画像周辺画素メモリ13は加算器12から出力された局部復号画像を格納するメモリである。
The inverse
The
The subtractor 7,
The local decoded image
次に動作について説明する。
H.264規格では、輝度において、イントラ4×4予測で9種のモード、イントラ8×8予測で9種のモード、イントラ16×16予測で4種のモード、色差において、4種のモードが規定されている。
Next, the operation will be described.
H. In the H.264 standard, nine modes are defined for luminance in intra 4 × 4 prediction, nine modes in
輝度イントラ4×4予測では、図2に示すように、4×4画素ごとに、マクロブロックを16個の矩形領域に分割して、それぞれの矩形領域についてイントラ予測を行う。
ここで、図3は1つの4×4ブロックにおいて、イントラ予測に使用する隣接画素を示している。
輝度イントラ8×8予測では、図4に示すように、8×8画素ごとに、マクロブロックを4個の矩形領域に分割して、それぞれの矩形領域についてイントラ予測を行う。
ここで、図5は1つの8×8ブロックにおいて、イントラ予測に使用する隣接画素を示している。
輝度イントラ16×16予測では、図6に示すように、16×16ブロックについてイントラ予測を行う。
ここで、図7は16×16ブロックにおいて、イントラ予測に使用する隣接画素を示している。
In luminance intra 4 × 4 prediction, as shown in FIG. 2, a macroblock is divided into 16 rectangular areas for each 4 × 4 pixel, and intra prediction is performed for each rectangular area.
Here, FIG. 3 shows adjacent pixels used for intra prediction in one 4 × 4 block.
In the luminance intra 8 × 8 prediction, as shown in FIG. 4, for each 8 × 8 pixel, the macroblock is divided into four rectangular areas, and intra prediction is performed for each rectangular area.
Here, FIG. 5 shows adjacent pixels used for intra prediction in one 8 × 8 block.
In the luminance intra 16 × 16 prediction, as shown in FIG. 6, intra prediction is performed for a 16 × 16 block.
Here, FIG. 7 shows adjacent pixels used for intra prediction in a 16 × 16 block.
まず、原画像周辺画素メモリ1には、イントラ予測対象の矩形領域に隣接している領域の原画像である隣接原画像が一時的に格納される。
即ち、原画像周辺画素メモリ1には、図3に示す4×4ブロックにおける16個の矩形領域に隣接している領域の原画像である隣接原画像、図5に示す8×8ブロックにおける4個の矩形領域に隣接している領域の原画像である隣接原画像、図7に示す16×16ブロックにおける矩形領域に隣接している領域の原画像である隣接原画像が一時的に格納される。
色差ブロックについても同様に、隣接している領域の原画像である隣接原画像が一時的に格納される。
First, the original image
That is, the original image
Similarly, for the color difference block, an adjacent original image that is an original image of an adjacent region is temporarily stored.
局部復号画像周辺画素メモリについても、図3に示す4×4ブロックにおける16個の矩形領域に隣接している領域の局部復号画像、図5に示す8×8ブロックにおける4個の矩形領域に隣接している領域の局部復号画像、図7に示す16×16ブロックにおける矩形領域に隣接している領域の局部復号画像が一時的に格納される。
色差ブロックについても同様に、隣接している領域の局部復号画像が一時的に格納される。
The local decoded image peripheral pixel memory is also adjacent to the 16 pixels in the 4 × 4 block shown in FIG. 3 and the 4 pixels in the 8 × 8 block shown in FIG. The local decoded image of the area being stored, and the local decoded image of the area adjacent to the rectangular area in the 16 × 16 block shown in FIG. 7 are temporarily stored.
Similarly, local decoded images of adjacent areas are temporarily stored for the color difference blocks.
イントラ予測モード決定部2は、イントラ予測対象の矩形領域の原画像と原画像周辺画素メモリ1により格納された隣接原画像から、予測ブロックサイズとイントラ予測モードを決定する。
具体的には、以下のようにして、予測ブロックサイズとイントラ予測モードを決定する。
イントラ予測モード決定部2は、輝度については、例えば、原画像周辺画素メモリ1により格納された隣接原画像から、複数のイントラ予測モード(例えば、輝度4×4イントラ予測モードの9種類、輝度8×8イントラ予測モードの9種類、輝度16×16イントラ予測モードの4種類)で予測画像を生成する。
The intra prediction
Specifically, the prediction block size and the intra prediction mode are determined as follows.
For example, the intra prediction
イントラ予測モード決定部2は、複数のイントラ予測モードで予測画像を生成すると、複数の予測画像とイントラ予測対象の矩形領域の原画像とを比較し、複数の予測画像の中で、その原画像と最も差異が小さい予測画像を選択する。
イントラ予測モード決定部2は、原画像と最も差異が小さい予測画像を選択すると、その予測画像に係る予測ブロックサイズとイントラ予測モードを、最適な予測ブロックサイズとイントラ予測モードとして選択する。
色差についても同様にして、最適なイントラ予測モードを選択する。
When the prediction image is generated in the plurality of intra prediction modes, the intra prediction
When the intra prediction
Similarly, the optimum intra prediction mode is selected for the color difference.
ここで、図8はイントラ4×4予測でのブロックの処理順を示す説明図であり、図9はイントラ8×8予測でのブロックの処理順を示す説明図である。
また、図10はイントラ16×16予測でのブロックの処理順を示す説明図である。
符号化に使用するイントラ予測画像は、局部復号画像から生成する必要があり、例えば、図8におけるサブブロック1のイントラ予測画像を生成するには、サブブロック0の局部復号画像が必要となる。
したがって、あるサブブロックの演算に注目すると、図1の減算器7における減算処理、整数変換部8における整数変換処理、量子化部9における量子化処理、逆量子化部10における逆量子化処理、逆整数変換部11における逆整数変換処理及び加算器12における加算処理は、前のサブブロック番号のサブブロックの局部復号画像が生成されて、その局部復号画像を用いて、イントラ予測画像が生成された後に開始することができる。
Here, FIG. 8 is an explanatory diagram showing the processing order of blocks in intra 4 × 4 prediction, and FIG. 9 is an explanatory diagram showing the processing order of blocks in
FIG. 10 is an explanatory diagram showing the processing order of blocks in intra 16 × 16 prediction.
The intra-predicted image used for encoding needs to be generated from the locally decoded image. For example, in order to generate the intra-predicted image of
Therefore, paying attention to the operation of a certain sub-block, the subtraction process in the subtracter 7 in FIG. 1, the integer conversion process in the
図11はイントラ予測モード補正部3の動作を考えない場合のイントラ4×4予測の演算タイミングを示す説明図であり、図12はイントラ予測モード補正部3の動作を考えない場合のイントラ8×8予測の演算タイミングを示す説明図である。
また、図13はイントラ予測モード補正部3の動作を考えない場合のイントラ16×16予測の演算タイミングを示す説明図である。
例えば、イントラ4×4予測のサブブロック1の演算タイミングに着目すると、図11に示すように、サブブロック0の演算の逆整数変換処理が完了した時点で、図3に示す4×4ブロックの左側の局部復号画像が求まるので、この時点で、イントラ予測画像生成部5において、サブブロック1のイントラ予測画像を生成することが可能となる。
FIG. 11 is an explanatory diagram showing calculation timing of intra 4 × 4 prediction when the operation of the intra prediction
FIG. 13 is an explanatory diagram showing calculation timing of intra 16 × 16 prediction when the operation of the intra prediction
For example, focusing on the calculation timing of
イントラ予測モード補正部3は、補正機能ON/OFFフラグを入力し、その補正機能ON/OFFフラグが“補正機能ON”を示している場合、原画像周辺画素メモリ1により格納されている隣接原画像と、局部復号画像周辺画素メモリ13により格納されている局部復号画像(イントラ予測対象の矩形領域に隣接している領域の局部復号画像であって、イントラ予測画像生成部5によりイントラ予測画像が生成される際に使用される局部復号画像)との差分として、例えば、その隣接原画像と局部復号画像との差分絶対値和を算出する。
The intra prediction
イントラ予測モード補正部3は、その隣接原画像と局部復号画像の差分絶対値和を算出すると、その差分絶対値和と外部から入力された所定の閾値を比較する。
イントラ予測モード補正部3は、その差分絶対値和が所定の閾値より小さい場合、イントラ予測モード決定部2により決定されたイントラ予測モードの選択指令をセレクタ4に出力する。
一方、その差分絶対値和が所定の閾値より大きい場合、DCモードの選択指令をセレクタ4に出力する。
When the intra prediction
When the sum of absolute differences is smaller than a predetermined threshold, the intra prediction
On the other hand, if the sum of absolute differences is larger than a predetermined threshold value, a DC mode selection command is output to the selector 4.
イントラ予測モード補正部3は、補正機能ON/OFFフラグが“補正機能OFF”を示している場合、その隣接原画像と局部復号画像の差分絶対値和を算出して所定の閾値と比較する選択処理を実施することなく、DCモードの選択指令をセレクタ4に出力する。
なお、補正機能ON/OFFフラグは、ピクチャ単位、マクロブロック単位、サブブロック単位で、適応的にON/OFFすることが可能である。
When the correction function ON / OFF flag indicates “correction function OFF”, the intra prediction
The correction function ON / OFF flag can be adaptively turned on / off in units of pictures, macroblocks, and subblocks.
図14はイントラ予測モード補正部3の動作を考えた場合のイントラ4×4予測の演算タイミングを示す説明図であり、図15はイントラ予測モード補正部3の動作を考えた場合のイントラ8×8予測の演算タイミングを示す説明図である。
また、図16はイントラ予測モード補正部3の動作を考えた場合のイントラ16×16予測の演算タイミングを示す説明図である。
例えば、イントラ4×4予測のサブブロック1の演算タイミングに着目すると、図14に示すように、サブブロック0の演算の逆整数変換処理が完了した時点で、図3に示す4×4ブロックの左側の局部復号画像が求まるので、この時点で、イントラ予測モード補正部3において、図3に示す位置のサブブロック1に隣接する原画像と局部復号画像の比較が可能となる。
FIG. 14 is an explanatory diagram showing calculation timing of intra 4 × 4 prediction when the operation of the intra prediction
FIG. 16 is an explanatory diagram showing calculation timing of intra 16 × 16 prediction when the operation of the intra prediction
For example, paying attention to the calculation timing of the
セレクタ4は、イントラ予測モード補正部3からイントラ予測モードの選択指令を受けると、イントラ予測モード決定部2により決定されたイントラ予測モードを選択して、そのイントラ予測モードをイントラ予測画像生成部5に出力する。
一方、イントラ予測モード補正部3からDCモードの選択指令を受けると、そのDCモードをイントラ予測画像生成部5に出力する。
When the selector 4 receives the instruction for selecting the intra prediction mode from the intra prediction
On the other hand, when a DC mode selection command is received from the intra prediction
イントラ予測画像生成部5は、セレクタ4からイントラ予測モード決定部2により決定されたイントラ予測モードを受けると、そのイントラ予測モードで、局部復号画像周辺画素メモリ13により格納されている局部復号画像からイントラ予測対象の矩形領域のイントラ予測画像を生成する。
一方、セレクタ4からDCモードを受けると、そのDCモードで、局部復号画像周辺画素メモリ13により格納されている局部復号画像からイントラ予測対象の矩形領域のイントラ予測画像を生成する。
When receiving the intra prediction mode determined by the intra prediction
On the other hand, when the DC mode is received from the selector 4, an intra-prediction image of a rectangular area to be intra-predicted is generated from the local decoded image stored in the local decoded image
セレクタ6は、外部から入力されるインター/イントラ予測判定結果を参照し、そのインター/イントラ予測判定結果がインター予測を採用する旨を示していれば、外部から入力されるインター予測画像を選択して、そのインター予測画像を減算器7及び加算器12に出力する。
一方、そのインター/イントラ予測判定結果がイントラ予測を採用する旨を示していれば、イントラ予測画像生成部5により生成されたイントラ予測画像を選択して、そのイントラ予測画像を減算器7及び加算器12に出力する。
The
On the other hand, if the inter / intra prediction determination result indicates that the intra prediction is adopted, the intra predicted image generated by the intra predicted
減算器7は、イントラ予測対象の矩形領域の原画像とセレクタ6により選択された画像(インター予測画像、または、イントラ予測画像)を入力し、その原画像からセレクタ6により選択された画像を減算して、その減算結果である差分画像を整数変換部8に出力する。
整数変換部8は、減算器7から差分画像を受けると、その差分画像を整数変換して、その整数変換係数を量子化部9に出力する。
The subtracter 7 inputs the original image of the rectangular area to be intra predicted and the image selected by the selector 6 (inter predicted image or intra predicted image), and subtracts the image selected by the
When the
量子化部9は、整数変換部8から整数変換係数を受けると、所定の量子化パラメータを用いて、その整数変換係数を量子化し、その量子化変換係数を逆量子化部10に出力する。
また、量子化部9は、その量子化変換係数を例えばエントロピー符号化部などの符号化部等にも出力する。
なお、符号化部は、量子化部9から出力された量子化変換係数に対する可変長符号化処理又は算術符号化処理を実施して、符号化データ(符号化画像)を生成する。
When the
The
Note that the encoding unit performs variable-length encoding processing or arithmetic encoding processing on the quantized transform coefficient output from the
逆量子化部10は、量子化部9から量子化変換係数を受けると、その量子化変換係数を逆量子化し、その逆量子化変換係数を逆整数変換部11に出力する。
逆整数変換部11は、逆量子化部10から逆量子化変換係数を受けると、その逆量子化変換係数を逆整数変換して、その逆整数変換係数を加算器12に出力する。
加算器12は、逆整数変換部11から逆整数変換係数を受けると、その逆整数変換係数とセレクタ6により選択された画像(インター予測画像、または、イントラ予測画像)を加算し、その加算結果をイントラ予測対象の矩形領域の局部復号画像として局部復号画像周辺画素メモリ13に格納する。
When receiving the quantized transform coefficient from the
When receiving the inverse quantization transform coefficient from the
When the
以上で明らかなように、この実施の形態1によれば、イントラ予測対象の矩形領域の原画像と上記矩形領域に隣接している領域の原画像である隣接原画像からイントラ予測モードを決定するイントラ予測モード決定部2と、その隣接原画像と上記矩形領域に隣接している領域の局部復号画像との差分を求め、その差分が所定の閾値より小さい場合、イントラ予測モード決定部2により決定されたイントラ予測モードの選択指令をセレクタ4に出力し、その差分が所定の閾値より大きい場合、DCモードの選択指令をセレクタ4に出力するイントラ予測モード補正部3と、イントラ予測モード補正部3からイントラ予測モードの選択指令を受けると、イントラ予測モード決定部2により決定されたイントラ予測モードを選択して、そのイントラ予測モードをイントラ予測画像生成部5に出力し、イントラ予測モード補正部3からDCモードの選択指令を受けると、そのDCモードをイントラ予測画像生成部5に出力するセレクタ4とを設け、イントラ予測画像生成部5が、セレクタ4からイントラ予測モード決定部2により決定されたイントラ予測モードを受けると、そのイントラ予測モードで、イントラ予測対象の矩形領域に隣接している領域の局部復号画像からイントラ予測対象の矩形領域のイントラ予測画像を生成し、セレクタ4からDCモードを受けると、そのDCモードで、その局部復号画像からイントラ予測対象の矩形領域のイントラ予測画像を生成するように構成したので、原画像と局部復号画像の差異が大きくなっても、符号化画像の画質劣化を抑制することができる効果を奏する。
As is clear from the above, according to the first embodiment, the intra prediction mode is determined from the original image of the rectangular region to be intra predicted and the adjacent original image that is the original image of the region adjacent to the rectangular region. A difference between the intra prediction
即ち、原画像と局部復号画像の差異が大きくなると、イントラ予測モード決定部2により決定されたイントラ予測モードが、必ずしも、最適なイントラ予測モードではなくなり、その結果、符号化画像の画質劣化を招くことがあるが、この実施の形態1では、原画像と局部復号画像の差異が大きくなると、イントラ予測モード決定部2により決定されたイントラ予測モードではなく、DCモードで、局部復号画像からイントラ予測画像を生成するようにしているので、原画像と局部復号画像の差異が大きくなっても、符号化画像の画質劣化を抑制することができる。
That is, when the difference between the original image and the locally decoded image increases, the intra prediction mode determined by the intra prediction
また、この実施の形態1によれば、イントラ予測モード補正部3が補正機能ON/OFFフラグを入力し、その補正機能ON/OFFフラグが“補正機能ON”を示している場合に限り、イントラ予測モード決定部2により決定されたイントラ予測モード又はDCモードの選択処理を実施し、その補正機能ON/OFFフラグが“補正機能OFF”を示していれば、隣接原画像と局部復号画像の差分絶対値和を算出して所定の閾値と比較する選択処理を実施することなく、DCモードの選択指令をセレクタ4に出力するように構成したので、例えば、符号化画像の画質状況に応じてイントラ予測モード補正部3の動作を適応的に制御することができる効果を奏する。
Further, according to the first embodiment, the intra prediction
実施の形態2.
図17はこの発明の実施の形態2による動画像符号化装置を示す構成図であり、図において、図1と同一符号は同一又は相当部分を示すので説明を省略する。
セレクタ21は外部から輝度4×4イントラ予測モード、輝度8×8イントラ予測モード、輝度16×16予測モード及び色差イントラ予測モードを入力し、それらのイントラ予測モードの中から、イントラ予測モード決定部2により決定された予測ブロックサイズに対応するイントラ予測モードを選択する処理を実施する。
FIG. 17 is a block diagram showing a moving picture coding apparatus according to
The
イントラ予測モード補正部22は原画像周辺画素メモリ1により格納されている隣接原画像と、局部復号画像周辺画素メモリ13により格納されている局部復号画像(イントラ予測対象の矩形領域に隣接している領域の局部復号画像)との差分を求め、その差分が所定の閾値より小さい場合、イントラ予測モード決定部2により決定されたイントラ予測モードの選択指令をセレクタ23に出力し、その差分が所定の閾値より大きい場合、セレクタ21により選択されたイントラ予測モードの選択指令をセレクタ23に出力する処理を実施する。
ただし、イントラ予測モード補正部22は補正機能ON/OFFフラグを入力し、その補正機能ON/OFFフラグが“補正機能ON”を示している場合に限り、イントラ予測モード決定部2により決定されたイントラ予測モード又はセレクタ21により選択されたイントラ予測モードの選択処理を実施し、その補正機能ON/OFFフラグが“補正機能OFF”を示していれば、その隣接原画像と局部復号画像の差分を算出して所定の閾値と比較する選択処理を実施することなく、セレクタ21により選択されたイントラ予測モードの選択指令をセレクタ23に出力する処理を実施する。
The intra prediction
However, the intra prediction
セレクタ23はイントラ予測モード補正部22からイントラ予測モード決定部2により決定されたイントラ予測モードの選択指令を受けると、イントラ予測モード決定部2により決定されたイントラ予測モードを選択して、そのイントラ予測モードをイントラ予測画像生成部5に出力し、イントラ予測モード補正部22からセレクタ21により選択されたイントラ予測モードの選択指令を受けると、そのイントラ予測モードをイントラ予測画像生成部5に出力する処理を実施する。
なお、セレクタ21、イントラ予測モード補正部22及びセレクタ23からモード選択手段が構成されている。
When the
The
上記実施の形態1では、イントラ予測モード補正部3が、隣接原画像と局部復号画像の差分が所定の閾値より大きい場合、DCモードの選択指令をセレクタ4に出力するものについて示したが、イントラ予測モード補正部22が、隣接原画像と局部復号画像の差分が所定の閾値より大きい場合、セレクタ21により選択されたイントラ予測モード(外部から入力されたイントラ予測モード)の選択指令をセレクタ23に出力するようにしてもよい。
具体的には、以下の通りである。
In the first embodiment, the intra prediction
Specifically, it is as follows.
まず、原画像周辺画素メモリ1には、上記実施の形態1と同様に、イントラ予測対象の矩形領域に隣接している領域の原画像である隣接原画像が一時的に格納される。
即ち、原画像周辺画素メモリ1には、図3に示す4×4ブロックにおける16個の矩形領域に隣接している領域の原画像である隣接原画像、図5に示す8×8ブロックにおける4個の矩形領域に隣接している領域の原画像である隣接原画像、図7に示す16×16ブロックにおける矩形領域に隣接している領域の原画像である隣接原画像が一時的に格納される。
色差ブロックについても同様に、隣接している領域の原画像である隣接原画像が一時的に格納される。
First, in the original image
That is, the original image
Similarly, for the color difference block, an adjacent original image that is an original image of an adjacent region is temporarily stored.
局部復号画像周辺画素メモリについても、図3に示す4×4ブロックにおける16個の矩形領域に隣接している領域の局部復号画像、図5に示す8×8ブロックにおける4個の矩形領域に隣接している領域の局部復号画像、図7に示す16×16ブロックにおける矩形領域に隣接している領域の局部復号画像が一時的に格納される。
色差ブロックについても同様に、隣接している領域の局部復号画像が一時的に格納される。
The local decoded image peripheral pixel memory is also adjacent to the 16 pixels in the 4 × 4 block shown in FIG. 3 and the 4 pixels in the 8 × 8 block shown in FIG. The local decoded image of the area being stored, and the local decoded image of the area adjacent to the rectangular area in the 16 × 16 block shown in FIG. 7 are temporarily stored.
Similarly, local decoded images of adjacent areas are temporarily stored for the color difference blocks.
イントラ予測モード決定部2は、上記実施の形態1と同様に、イントラ予測対象の矩形領域の原画像と原画像周辺画素メモリ1により格納された隣接原画像から、イントラ予測モードを決定する。
即ち、イントラ予測モード決定部2は、例えば、原画像周辺画素メモリ1により格納された隣接原画像から、複数のイントラ予測モード(例えば、輝度4×4イントラ予測モードの9種類、輝度8×8イントラ予測モードの9種類、輝度16×16イントラ予測モードの4種類、色差のイントラ予測の4種類)で予測画像を生成して、それらの予測画像とイントラ予測対象の矩形領域の原画像とを比較し、複数の予測画像の中で、その原画像と最も差異が小さい予測画像を選択することで、その予測画像に係る予測ブロックサイズとイントラ予測モードをセレクタ21,23及びイントラ予測モード補正部22に出力する。
As in the first embodiment, the intra prediction
That is, the intra prediction
セレクタ21は、外部から輝度4×4イントラ予測モード、輝度8×8イントラ予測モード、輝度16×16予測モード及び色差イントラ予測モードを入力し、それらのイントラ予測モードの中から、イントラ予測モード決定部2により決定された予測ブロックサイズに対応するイントラ予測モードを選択してセレクタ23に出力する。
例えば、原画像と最も差異が小さい予測画像に係る予測ブロックサイズが4×4ブロックであれば、輝度4×4イントラ予測モードを選択してセレクタ23に出力し、その予測ブロックサイズが8×8ブロックであれば、輝度8×8イントラ予測モードを選択してセレクタ23に出力する。
The
For example, if the predicted block size related to the predicted image having the smallest difference from the original image is 4 × 4 blocks, the luminance 4 × 4 intra prediction mode is selected and output to the
イントラ予測モード補正部22は、補正機能ON/OFFフラグを入力し、その補正機能ON/OFFフラグが“補正機能ON”を示している場合、図1のイントラ予測モード補正部3と同様に、原画像周辺画素メモリ1により格納されている隣接原画像と、局部復号画像周辺画素メモリ13により格納されている局部復号画像(イントラ予測対象の矩形領域に隣接している領域の局部復号画像であって、イントラ予測画像生成部5によりイントラ予測画像が生成される際に使用される局部復号画像)との差分として、例えば、その隣接原画像と局部復号画像との差分絶対値和を算出する。
When the correction function ON / OFF flag is input and the correction function ON / OFF flag indicates “correction function ON”, the intra prediction
イントラ予測モード補正部22は、その隣接原画像と局部復号画像の差分絶対値和を算出すると、その差分絶対値和と外部から入力された所定の閾値を比較する。
イントラ予測モード補正部22は、その差分絶対値和が所定の閾値より小さい場合、イントラ予測モード決定部2により決定されたイントラ予測モードの選択指令をセレクタ23に出力する。
一方、その差分絶対値和が所定の閾値より大きい場合、セレクタ21により選択されたイントラ予測モードの選択指令をセレクタ23に出力する。
When the intra prediction
When the sum of absolute differences is smaller than a predetermined threshold, the intra prediction
On the other hand, when the sum of absolute differences is larger than a predetermined threshold value, the selection command for the intra prediction mode selected by the
イントラ予測モード補正部22は、補正機能ON/OFFフラグが“補正機能OFF”を示している場合、その隣接原画像と局部復号画像の差分絶対値和を算出して所定の閾値と比較する選択処理を実施することなく、セレクタ21により選択されたイントラ予測モードの選択指令をセレクタ23に出力する。
なお、補正機能ON/OFFフラグは、ピクチャ単位、マクロブロック単位、サブブロック単位で、適応的にON/OFFすることが可能である。
When the correction function ON / OFF flag indicates “correction function OFF”, the intra prediction
The correction function ON / OFF flag can be adaptively turned on / off in units of pictures, macroblocks, and subblocks.
セレクタ23は、イントラ予測モード補正部22からイントラ予測モードの選択指令を受けると、イントラ予測モード決定部2により決定されたイントラ予測モードを選択して、そのイントラ予測モードをイントラ予測画像生成部5に出力する。
一方、イントラ予測モード補正部22からセレクタ21により選択されたイントラ予測モードの選択指令を受けると、セレクタ21により選択されたイントラ予測モードをイントラ予測画像生成部5に出力する。
以降の処理内容は、上記実施の形態1と同様であるため説明を省略する。
When the
On the other hand, when an instruction for selecting the intra prediction mode selected by the
Since the subsequent processing contents are the same as those in the first embodiment, description thereof is omitted.
以上で明らかなように、この実施の形態2によれば、イントラ予測対象の矩形領域の原画像と上記矩形領域に隣接している領域の原画像である隣接原画像からイントラ予測モードを決定するイントラ予測モード決定部2と、外部から輝度4×4イントラ予測モード、輝度8×8イントラ予測モード、輝度16×16予測モード及び色差イントラ予測モードを入力し、それらのイントラ予測モードの中から、イントラ予測モード決定部2により決定された予測ブロックサイズに対応するイントラ予測モードを選択するセレクタ21と、その隣接原画像と上記矩形領域に隣接している領域の局部復号画像との差分を求め、その差分が所定の閾値より小さい場合、イントラ予測モード決定部2により決定されたイントラ予測モードの選択指令をセレクタ23に出力し、その差分が所定の閾値より大きい場合、セレクタ21により選択されたイントラ予測モードの選択指令をセレクタ23に出力するイントラ予測モード補正部22と、イントラ予測モード補正部22からイントラ予測モード決定部2により決定されたイントラ予測モードの選択指令を受けると、イントラ予測モード決定部2により決定されたイントラ予測モードを選択して、そのイントラ予測モードをイントラ予測画像生成部5に出力し、イントラ予測モード補正部3からセレクタ21により選択されたイントラ予測モードの選択指令を受けると、セレクタ21により選択されたイントラ予測モードを選択して、そのイントラ予測モードをイントラ予測画像生成部5に出力するセレクタ23とを設け、イントラ予測画像生成部5が、セレクタ23から出力されたイントラ予測モードで、イントラ予測対象の矩形領域に隣接している領域の局部復号画像からイントラ予測対象の矩形領域のイントラ予測画像を生成するように構成したので、上記実施の形態1と同様に、原画像と局部復号画像の差異が大きくなっても、符号化画像の画質劣化を抑制することができる効果を奏する。
As is apparent from the above, according to the second embodiment, the intra prediction mode is determined from the original image of the rectangular region to be intra predicted and the adjacent original image that is the original image of the region adjacent to the rectangular region. An intra prediction
また、この実施の形態2によれば、隣接原画像と局部復号画像の差分が所定の閾値より大きい場合、固定のDCモードではなく、セレクタ21により選択されたイントラ予測モード(外部から入力されたイントラ予測モード)を選択するようにしているので、例えば、符号化画像の画質状況に応じて、より適切なイントラ予測モードでイントラ予測画像を生成することができるようになり、その結果、上記実施の形態1よりも更に符号化画像の画質劣化を抑制することができる効果を奏する。 Further, according to the second embodiment, when the difference between the adjacent original image and the locally decoded image is larger than the predetermined threshold value, the intra prediction mode selected by the selector 21 (inputted from the outside) is used instead of the fixed DC mode. Intra prediction mode) is selected, for example, an intra prediction image can be generated in a more appropriate intra prediction mode in accordance with the image quality of the encoded image. As compared with the first embodiment, the image quality deterioration of the encoded image can be further suppressed.
また、この実施の形態2によれば、イントラ予測モード補正部22が補正機能ON/OFFフラグを入力し、その補正機能ON/OFFフラグが“補正機能ON”を示している場合に限り、イントラ予測モード決定部2により決定されたイントラ予測モード又はセレクタ21により選択されたイントラ予測モードの選択処理を実施し、その補正機能ON/OFFフラグが“補正機能OFF”を示していれば、隣接原画像と局部復号画像の差分絶対値和を算出して所定の閾値と比較する選択処理を実施することなく、セレクタ21により選択されたイントラ予測モードの選択指令をセレクタ23に出力するように構成したので、例えば、符号化画像の画質状況に応じてイントラ予測モード補正部22の動作を適応的に制御することができる効果を奏する。
In addition, according to the second embodiment, the intra prediction
実施の形態3.
図18はこの発明の実施の形態3による動画像符号化装置を示す構成図であり、図において、図1と同一符号は同一又は相当部分を示すので説明を省略する。
イントラ予測モード補正部31は原画像周辺画素メモリ1により格納されている隣接原画像と、局部復号画像周辺画素メモリ13により格納されている局部復号画像(イントラ予測対象の矩形領域に隣接している領域の局部復号画像)との差分を求め、その差分と所定の閾値を比較し、その比較結果をインター予測強制部32に出力する処理を実施する。
ただし、イントラ予測モード補正部31は補正機能ON/OFFフラグを入力し、その補正機能ON/OFFフラグが“補正機能ON”を示している場合に限り、上記の比較処理を実施し、その補正機能ON/OFFフラグが“補正機能OFF”を示していれば、上記の比較処理を実施せずに動作を停止する。
FIG. 18 is a block diagram showing a moving picture coding apparatus according to
The intra prediction
However, the intra prediction
インター予測強制部32はイントラ予測モード補正部31から出力された比較結果が、隣接原画像と局部復号画像の差分が所定の閾値より小さい旨を示している場合、外部から入力されるインター/イントラ予測判定結果がインター予測を採用する旨を示していれば、外部から入力されるインター予測画像の選択指令をセレクタ33に出力し、そのインター/イントラ予測判定結果がイントラ予測を採用する旨を示していれば、イントラ予測画像生成部5により生成されたイントラ予測画像の選択指令をセレクタ33に出力する処理を実施する。
一方、隣接原画像と局部復号画像の差分が所定の閾値より大きい旨を示している場合、外部から入力されるインター/イントラ予測判定結果に関わらず、外部から入力されるインター予測画像の選択指令をセレクタ33に出力する処理を実施する。
ただし、インター予測強制部32はイントラ予測モード補正部31が比較処理を実施せずに動作を停止している場合、インター/イントラ予測判定結果がインター予測を採用する旨を示していれば、外部から入力されるインター予測画像の選択指令をセレクタ33に出力し、そのインター/イントラ予測判定結果がイントラ予測を採用する旨を示していれば、イントラ予測画像生成部5により生成されたイントラ予測画像の選択指令をセレクタ33に出力する処理を実施する。
When the comparison result output from the intra prediction
On the other hand, when the difference between the adjacent original image and the locally decoded image indicates that the difference is larger than a predetermined threshold, the selection command for the inter prediction image input from the outside regardless of the inter / intra prediction determination result input from the outside Is output to the
However, if the intra prediction
セレクタ33はインター予測強制部32からイントラ予測画像の選択指令を受けると、イントラ予測画像生成部5により生成されたイントラ予測画像を選択して減算器7及び加算器12に出力し、インター予測強制部32からインター予測画像の選択指令を受けると、外部から入力されるインター予測画像を選択して減算器7及び加算器12に出力する処理を実施する。
なお、イントラ予測モード補正部31、インター予測強制部32及びセレクタ33から画像選択手段が構成されている。
When the
The intra prediction
上記実施の形態1では、イントラ予測モード補正部3が、隣接原画像と局部復号画像の差分が所定の閾値より大きい場合、DCモードの選択指令をセレクタ4に出力するものについて示したが、インター予測強制部32が、隣接原画像と局部復号画像の差分が所定の閾値より大きい場合、外部から入力されるインター/イントラ予測判定結果に関わらず、外部から入力されるインター予測画像の選択指令をセレクタ33に出力するようにしてもよい。
具体的には、以下の通りである。
In the first embodiment, the intra prediction
Specifically, it is as follows.
イントラ予測モード補正部31は、補正機能ON/OFFフラグを入力し、その補正機能ON/OFFフラグが“補正機能ON”を示している場合、図1のイントラ予測モード補正部3と同様に、原画像周辺画素メモリ1により格納されている隣接原画像と、局部復号画像周辺画素メモリ13により格納されている局部復号画像(イントラ予測対象の矩形領域に隣接している領域の局部復号画像であって、イントラ予測画像生成部5によりイントラ予測画像が生成される際に使用される局部復号画像)との差分として、例えば、その隣接原画像と局部復号画像との差分絶対値和を算出する。
The intra prediction
イントラ予測モード補正部31は、その隣接原画像と局部復号画像の差分絶対値和を算出すると、その差分絶対値和と外部から入力された所定の閾値を比較し、その比較結果をインター予測強制部32に出力する。
イントラ予測モード補正部31は、補正機能ON/OFFフラグが“補正機能OFF”を示している場合、上記の比較処理を実施せずに動作を停止する。
なお、補正機能ON/OFFフラグは、ピクチャ単位、マクロブロック単位、サブブロック単位で、適応的にON/OFFすることが可能である。
When the intra prediction
When the correction function ON / OFF flag indicates “correction function OFF”, the intra prediction
The correction function ON / OFF flag can be adaptively turned on / off in units of pictures, macroblocks, and subblocks.
インター予測強制部32は、イントラ予測モード補正部31から出力された比較結果が、隣接原画像と局部復号画像の差分が所定の閾値より小さい旨を示している場合、外部から入力されるインター/イントラ予測判定結果がインター予測を採用する旨を示していれば、外部から入力されるインター予測画像の選択指令をセレクタ33に出力する。
そのインター/イントラ予測判定結果がイントラ予測を採用する旨を示していれば、イントラ予測画像生成部5により生成されたイントラ予測画像の選択指令をセレクタ33に出力する。
一方、イントラ予測モード補正部31から出力された比較結果が、隣接原画像と局部復号画像の差分が所定の閾値より大きい旨を示している場合、外部から入力されるインター/イントラ予測判定結果に関わらず、外部から入力されるインター予測画像の選択指令をセレクタ33に出力する。
The inter
If the inter / intra prediction determination result indicates that the intra prediction is adopted, the intra prediction image selection command generated by the intra prediction
On the other hand, when the comparison result output from the intra prediction
ただし、インター予測強制部32は、イントラ予測モード補正部31が比較処理を実施せずに動作を停止している場合(イントラ予測モード補正部31から比較結果が出力されない場合)、インター/イントラ予測判定結果がインター予測を採用する旨を示していれば、外部から入力されるインター予測画像の選択指令をセレクタ33に出力する。
そのインター/イントラ予測判定結果がイントラ予測を採用する旨を示していれば、イントラ予測画像生成部5により生成されたイントラ予測画像の選択指令をセレクタ33に出力する。
However, the inter
If the inter / intra prediction determination result indicates that the intra prediction is adopted, the intra prediction image selection command generated by the intra prediction
セレクタ33は、インター予測強制部32からイントラ予測画像の選択指令を受けると、イントラ予測画像生成部5により生成されたイントラ予測画像を選択して減算器7及び加算器12に出力する。
一方、インター予測強制部32からインター予測画像の選択指令を受けると、外部から入力されるインター予測画像を選択して減算器7及び加算器12に出力する。
以降の処理内容は、上記実施の形態1と同様であるため説明を省略する。
When the
On the other hand, when an inter prediction image selection command is received from the inter
Since the subsequent processing contents are the same as those in the first embodiment, description thereof is omitted.
以上で明らかなように、この実施の形態3によれば、原画像周辺画素メモリ1により格納されている隣接原画像と、局部復号画像周辺画素メモリ13により格納されている局部復号画像との差分を求め、その差分と所定の閾値を比較し、その比較結果をインター予測強制部32に出力するイントラ予測モード補正部31と、イントラ予測モード補正部31から出力された比較結果が、隣接原画像と局部復号画像の差分が所定の閾値より小さい旨を示している場合、外部から入力されるインター/イントラ予測判定結果がインター予測を採用する旨を示していれば、外部から入力されるインター予測画像の選択指令をセレクタ33に出力し、そのインター/イントラ予測判定結果がイントラ予測を採用する旨を示していれば、イントラ予測画像生成部5により生成されたイントラ予測画像の選択指令をセレクタ33に出力し、隣接原画像と局部復号画像の差分が所定の閾値より大きい旨を示している場合、外部から入力されるインター/イントラ予測判定結果に関わらず、外部から入力されるインター予測画像の選択指令をセレクタ33に出力するインター予測強制部32とを設け、セレクタ33が、インター予測強制部32からイントラ予測画像の選択指令を受けると、イントラ予測画像生成部5により生成されたイントラ予測画像を選択して減算器7及び加算器12に出力し、インター予測強制部32からインター予測画像の選択指令を受けると、外部から入力されるインター予測画像を選択して減算器7及び加算器12に出力するように構成したので、上記実施の形態1と同様に、原画像と局部復号画像の差異が大きくなっても、符号化画像の画質劣化を抑制することができる効果を奏する。
As apparent from the above, according to the third embodiment, the difference between the adjacent original image stored in the original image
また、この実施の形態3によれば、イントラ予測モード補正部31が補正機能ON/OFFフラグを入力し、その補正機能ON/OFFフラグが“補正機能ON”を示している場合に限り、差分と閾値の比較結果をインター予測強制部32に出力し、その補正機能ON/OFFフラグが“補正機能OFF”を示していれば、その比較結果を実施せずに、動作を停止するように構成したので、例えば、符号化画像の画質状況に応じてイントラ予測モード補正部31の動作を適応的に制御することができる効果を奏する。
Further, according to the third embodiment, only when the intra prediction
1 原画像周辺画素メモリ、2 イントラ予測モード決定部(イントラ予測モード決定手段)、3 イントラ予測モード補正部(モード選択手段)、4 セレクタ(モード選択手段)、5 イントラ予測画像生成部(イントラ予測画像生成手段)、6 セレクタ、7 減算器(局部復号画像生成手段)、8 整数変換部(局部復号画像生成手段)、9 量子化部(局部復号画像生成手段)、10 逆量子化部(局部復号画像生成手段)、11 逆整数変換部(局部復号画像生成手段)、12 加算器(局部復号画像生成手段)、13 局部復号画像周辺画素メモリ、21 セレクタ(モード選択手段)、22 イントラ予測モード補正部(モード選択手段)、23 セレクタ(モード選択手段)、31 イントラ予測モード補正部(画像選択手段)、32 インター予測強制部(画像選択手段)、33 セレクタ33(画像選択手段)。
DESCRIPTION OF
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009137270A JP5183573B2 (en) | 2009-06-08 | 2009-06-08 | Video encoding device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009137270A JP5183573B2 (en) | 2009-06-08 | 2009-06-08 | Video encoding device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010283739A true JP2010283739A (en) | 2010-12-16 |
JP5183573B2 JP5183573B2 (en) | 2013-04-17 |
Family
ID=43540067
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009137270A Expired - Fee Related JP5183573B2 (en) | 2009-06-08 | 2009-06-08 | Video encoding device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5183573B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016105619A (en) * | 2010-12-23 | 2016-06-09 | サムスン エレクトロニクス カンパニー リミテッド | Method and device for encoding intra prediction mode for image prediction unit, and method and device for decoding intra prediction mode for image prediction unit |
CN110769251A (en) * | 2012-01-18 | 2020-02-07 | 韩国电子通信研究院 | Video decoding device, video encoding device, and computer-readable recording medium |
EP3869799A1 (en) | 2015-03-25 | 2021-08-25 | NTT Electronics Corporation | Moving image encoding device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006025077A (en) * | 2004-07-07 | 2006-01-26 | Sony Corp | Encoder, encoding method, program therefor, and recording medium recording program therefor |
JP2007150913A (en) * | 2005-11-29 | 2007-06-14 | Matsushita Electric Ind Co Ltd | Image encoding device |
JP2007221420A (en) * | 2006-02-16 | 2007-08-30 | Seiko Epson Corp | Encoder and image processor |
JP2008252346A (en) * | 2007-03-29 | 2008-10-16 | Canon Inc | Image encoder and image encoding method |
-
2009
- 2009-06-08 JP JP2009137270A patent/JP5183573B2/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006025077A (en) * | 2004-07-07 | 2006-01-26 | Sony Corp | Encoder, encoding method, program therefor, and recording medium recording program therefor |
JP2007150913A (en) * | 2005-11-29 | 2007-06-14 | Matsushita Electric Ind Co Ltd | Image encoding device |
JP2007221420A (en) * | 2006-02-16 | 2007-08-30 | Seiko Epson Corp | Encoder and image processor |
JP2008252346A (en) * | 2007-03-29 | 2008-10-16 | Canon Inc | Image encoder and image encoding method |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016105619A (en) * | 2010-12-23 | 2016-06-09 | サムスン エレクトロニクス カンパニー リミテッド | Method and device for encoding intra prediction mode for image prediction unit, and method and device for decoding intra prediction mode for image prediction unit |
CN110769251A (en) * | 2012-01-18 | 2020-02-07 | 韩国电子通信研究院 | Video decoding device, video encoding device, and computer-readable recording medium |
US11706438B2 (en) | 2012-01-18 | 2023-07-18 | Electronics And Telecommunications Research Institute | Method and device for encoding and decoding image |
CN110769251B (en) * | 2012-01-18 | 2023-09-15 | 韩国电子通信研究院 | Video decoding device, video encoding device and method for transmitting bit stream |
EP3869799A1 (en) | 2015-03-25 | 2021-08-25 | NTT Electronics Corporation | Moving image encoding device |
US11432005B2 (en) | 2015-03-25 | 2022-08-30 | Ntt Electronics Corporation | Moving image encoding device |
Also Published As
Publication number | Publication date |
---|---|
JP5183573B2 (en) | 2013-04-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6660074B2 (en) | Video decoding method and apparatus | |
JP6047614B2 (en) | Video decoding device | |
JP5989841B2 (en) | Video decoding device | |
JP2015146627A (en) | Intra-prediction mode decoding method and device | |
US20190335173A1 (en) | Image encoding method/device, image decoding method/device and recording medium having bitstream stored therein | |
US20220345703A1 (en) | Image encoding method/device, image decoding method/device and recording medium having bitstream stored therein | |
JP5183573B2 (en) | Video encoding device | |
WO2016194380A1 (en) | Moving image coding device, moving image coding method and recording medium for storing moving image coding program | |
KR20170058870A (en) | Method and apparatus for encoding/dicoding a video with non linear mapping | |
JP2007266861A (en) | Image encoding device | |
JP7069421B2 (en) | Encoding device, decoding device, and program | |
JP7396883B2 (en) | Encoding device, decoding device, and program | |
Won et al. | Rate estimation for CABAC with low complexity | |
KR101802304B1 (en) | Methods of encoding using hadamard transform and apparatuses using the same | |
JP2020109959A (en) | Inter-prediction device, image coding device, image decoding device, and program | |
JP2011166357A (en) | Image encoding device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120120 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120912 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121002 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121126 |
|
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: 20121218 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130115 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5183573 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160125 Year of fee payment: 3 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |