JP2023101760A - Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method and image decoding program - Google Patents

Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method and image decoding program Download PDF

Info

Publication number
JP2023101760A
JP2023101760A JP2023090936A JP2023090936A JP2023101760A JP 2023101760 A JP2023101760 A JP 2023101760A JP 2023090936 A JP2023090936 A JP 2023090936A JP 2023090936 A JP2023090936 A JP 2023090936A JP 2023101760 A JP2023101760 A JP 2023101760A
Authority
JP
Japan
Prior art keywords
luminance
block
prediction
chrominance
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2023090936A
Other languages
Japanese (ja)
Inventor
茂 福島
Shigeru Fukushima
博哉 中村
Hiroya Nakamura
徹 熊倉
Toru Kumakura
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.)
Godo Kaisha IP Bridge 1
Original Assignee
Godo Kaisha IP Bridge 1
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
Priority claimed from JP2021141337A external-priority patent/JP2022019711A/en
Application filed by Godo Kaisha IP Bridge 1 filed Critical Godo Kaisha IP Bridge 1
Priority to JP2023090936A priority Critical patent/JP2023101760A/en
Publication of JP2023101760A publication Critical patent/JP2023101760A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

To provide an image encoding device which improves encoding efficiency by performing block division suitable for image encoding and image decoding.SOLUTION: An image encoding device 100 which divides an image into blocks and performs encoding on a divided block basis comprises: a luminance signal block dividing unit for generating a luminance signal block by dividing a luminance signal of an image into rectangles in a predetermined size; a color difference signal block dividing unit for generating a color difference signal block by dividing a color difference signal of an image into rectangles in a predetermined size; and a prediction image generating unit including a luminance signal predicting section for predicting a luminance signal and a color difference signal predicting section for predicting a color difference signal. The luminance signal block and the color difference signal block are each independently divided in the case of intra-prediction and divided together in the case of inter-prediction. The color difference signal predicting section is capable of performing luminance/color difference intra-prediction, in which the color difference signal is predicted from the decoded luminance signal, and in a case where a size of the luminance signal block is equal to or larger than the predetermined size, use of the luminance/color difference intra-prediction is inhibited.SELECTED DRAWING: Figure 1

Description

本発明は、画像をブロックに分割し、分割されたブロック単位で符号化及び復号化を行う技術に関する。 The present invention relates to a technique of dividing an image into blocks and performing encoding and decoding on a block-by-block basis.

画像符号化及び復号化では、画像を所定数の画素の集合であるブロックに分割し、ブロック単位で符号化及び復号化を行う。適切なブロックの分割を行うことで画面内予測(イントラ予測)及び画面間予測(インター予測)の符号化効率が向上する。また、イントラ予測において、プライマリ信号の復号画像からセカンダリ信号を予測することで符号化効率が向上する。 In image coding and decoding, an image is divided into blocks, each of which is a set of a predetermined number of pixels, and the blocks are coded and decoded. Appropriate block division improves the coding efficiency of intra-prediction and inter-prediction. Also, in intra prediction, encoding efficiency is improved by predicting the secondary signal from the decoded image of the primary signal.

特開2013-90015号公報JP 2013-90015 A

しかし、プライマリ信号の復号画像からセカンダリ信号を予測すると、処理量が増大するとともにプライマリ信号に対する処理とセカンダリ信号に対する処理の依存関係が発生し並列処理が難しくなる。 However, when the secondary signal is predicted from the decoded image of the primary signal, the amount of processing increases and the dependency relationship between the processing for the primary signal and the processing for the secondary signal occurs, making parallel processing difficult.

本発明はこうした状況に鑑みてなされたものであり、その目的は、画像符号化及び復号化に適したブロック分割を行うことにより、符号化効率を向上させる技術を提供することにある。 The present invention has been made in view of such circumstances, and its object is to provide a technique for improving coding efficiency by performing block division suitable for image coding and decoding.

上記課題を解決するために、本発明のある態様の画像符号化装置は、画像をブロックに分割し、分割されたブロック単位で符号化を行う画像符号化装置であって、前記画像の輝度信号を所定サイズの矩形に分割して輝度信号ブロックを生成する輝度信号ブロック分割部と、前記画像の色差信号を所定サイズの矩形に分割して色差信号ブロックを生成する色差信号ブロック分割部と、輝度信号を予測する輝度信号予測部と、色差信号を予測する色差信号予測部とを含み、前記輝度信号ブロックと前記色差信号ブロックは、イントラ予測の場合にはそれぞれ独立して分割され、インター予測の場合には一緒に分割され、前記色差信号予測部は、復号化された輝度信号から色差信号を予測する輝度色差イントラ予測が可能であり、前記輝度信号ブロックのサイズが所定サイズ以上の場合、前記輝度色差イントラ予測の使用を禁止する。 In order to solve the above-described problems, an image coding apparatus according to one aspect of the present invention is an image coding apparatus that divides an image into blocks and performs coding in units of divided blocks, the image coding apparatus comprising: a luminance signal block division unit that divides a luminance signal of the image into rectangles of a predetermined size to generate luminance signal blocks; a color difference signal block division unit that divides the color difference signals of the image into rectangles of a predetermined size to generate color difference signal blocks; a luminance signal prediction unit that predicts the luminance signal; , the luminance signal block and the chrominance signal block are divided independently in the case of intra prediction, and divided together in the case of inter prediction, the chrominance signal prediction unit is capable of luminance chrominance intra prediction for predicting the chrominance signal from the decoded luminance signal, and prohibits the use of the luminance chrominance intra prediction when the size of the luminance signal block is equal to or larger than a predetermined size.

本発明の別の態様は、画像符号化方法である。この方法は、画像をブロックに分割し、分割されたブロック単位で符号化を行う画像符号化方法であって、前記画像の輝度信号を所定サイズの矩形に分割して輝度信号ブロックを生成する輝度信号ブロック分割ステップと、前記画像の色差信号を所定サイズの矩形に分割して色差信号ブロックを生成する色差信号ブロック分割ステップと、輝度信号を予測する輝度信号予測ステップと、色差信号を予測する色差信号予測ステップとを含み、前記輝度信号ブロックと前記色差信号ブロックは、イントラ予測の場合にはそれぞれ独立して分割され、インター予測の場合には一緒に分割され、前記色差信号予測ステップは、復号化された輝度信号から色差信号を予測する輝度色差イントラ予測が可能であり、前記輝度信号ブロックのサイズが所定サイズ以上の場合、前記輝度色差イントラ予測の使用を禁止する。 Another aspect of the present invention is an image coding method. This method is an image coding method for dividing an image into blocks and performing coding in units of divided blocks, comprising: a luminance signal block division step of dividing a luminance signal of the image into rectangles of a predetermined size to generate luminance signal blocks; a chrominance signal block division step of dividing the chrominance signals of the image into rectangles of a predetermined size to generate chrominance signal blocks; a luminance signal prediction step of predicting the luminance signal; In the case of tiger prediction, they are divided independently, and in the case of inter prediction, they are divided together, and the chrominance signal prediction step is capable of luminance chrominance intra prediction that predicts the chrominance signal from the decoded luminance signal, and if the size of the luminance signal block is equal to or larger than a predetermined size, the use of the luminance chrominance intra prediction is prohibited.

本発明のさらに別の態様は、画像復号化装置である。この装置は、画像を分割したブロック単位で復号化を行う画像復号化装置であって、前記画像の輝度信号を所定サイズの矩形に分割して輝度信号ブロックを生成する輝度信号ブロック分割部と、前記画像の色差信号を所定サイズの矩形に分割して色差信号ブロックを生成する色差信号ブロック分割部と、輝度信号を予測する輝度信号予測部と、色差信号を予測する色差信号予測部とを含み、前記輝度信号ブロックと前記色差信号ブロックは、イントラ予測の場合にはそれぞれ独立して分割され、インター予測の場合には一緒に分割され、前記色差信号予測部は、復号化された輝度信号から色差信号を予測する輝度色差イントラ予測が可能であり、前記輝度信号ブロックのサイズが所定サイズ以上の場合、前記輝度色差イントラ予測の使用を禁止する。 Yet another aspect of the present invention is an image decoding device. This apparatus is an image decoding apparatus that performs decoding in block units obtained by dividing an image, and includes a luminance signal block division unit that divides the luminance signal of the image into rectangles of a predetermined size to generate luminance signal blocks, a color difference signal block division unit that divides the color difference signals of the image into rectangles of a predetermined size to generate color difference signal blocks, a luminance signal prediction unit that predicts the luminance signal, and a color difference signal prediction unit that predicts the color difference signals. It is divided independently, and in the case of inter prediction, it is divided together, the chrominance signal prediction unit is capable of luminance chrominance intra prediction for predicting the chrominance signal from the decoded luminance signal, and prohibits the use of the luminance chrominance intra prediction when the size of the luminance signal block is equal to or larger than a predetermined size.

本発明のさらに別の態様は、画像復号化方法である。この方法は、画像を分割したブロック単位で復号化を行う画像復号化方法であって、前記画像の輝度信号を所定サイズの矩形に分割して輝度信号ブロックを生成する輝度信号ブロック分割ステップと、前記画像の色差信号を所定サイズの矩形に分割して色差信号ブロックを生成する色差信号ブロック分割ステップと、輝度信号を予測する輝度信号予測ステップと、色差信号を予測する色差信号予測ステップとを含み、前記輝度信号ブロックと前記色差信号ブロックは、イントラ予測の場合にはそれぞれ独立して分割され、インター予測の場合には一緒に分割され、前記色差信号予測ステップは、復号化された輝度信号から色差信号を予測する輝度色差イントラ予測が可能であり、前記輝度信号ブロックのサイズが所定サイズ以上の場合、前記輝度色差イントラ予測の使用を禁止する。 Yet another aspect of the present invention is an image decoding method. This method is an image decoding method in which decoding is performed in block units obtained by dividing an image, and includes a luminance signal block division step of dividing a luminance signal of the image into rectangles of a predetermined size to generate luminance signal blocks, a chrominance signal block division step of dividing the chrominance signals of the image into rectangles of a predetermined size to generate chrominance signal blocks, a luminance signal prediction step of predicting the luminance signal, and a chrominance signal prediction step of predicting the chrominance signals. Separated independently and jointly in the case of inter prediction, the chrominance signal prediction step is capable of luminance chrominance intra prediction for predicting a chrominance signal from a decoded luminance signal, and prohibiting the use of the luminance chrominance intra prediction when the size of the luminance signal block is equal to or greater than a predetermined size.

なお、以上の構成要素の任意の組合せ、本発明の表現を方法、装置、システム、記録媒体、コンピュータプログラムなどの間で変換したものもまた、本発明の態様として有効である。 Any combination of the above constituent elements, and conversion of expressions of the present invention into methods, devices, systems, recording media, computer programs, etc. are also effective as aspects of the present invention.

本発明によれば、画像符号化及び復号化に適したブロック分割が可能になり、符号化効率を向上させ、処理量の少ない画像符号化及び復号化を提供することができる。 According to the present invention, block division suitable for image encoding and decoding becomes possible, encoding efficiency is improved, and image encoding and decoding with a small amount of processing can be provided.

第1の実施の形態に係る画像符号化装置の構成図である。1 is a configuration diagram of an image encoding device according to a first embodiment; FIG. 第1の実施の形態に係る画像復号化装置の構成図である。1 is a configuration diagram of an image decoding device according to a first embodiment; FIG. ツリーブロックへの分割及びツリーブロック内部の分割を説明するフローチャートである。Fig. 4 is a flow chart illustrating splitting into treeblocks and splitting inside treeblocks; 入力された画像をツリーブロックに分割する様子を示す図である。FIG. 4 is a diagram showing how an input image is divided into treeblocks; z-スキャンを説明する図である。FIG. 4 is a diagram for explaining z-scan; ツリーブロックを水平かつ垂直方向に4分割した図である。It is the figure which divided the treeblock into four horizontally and vertically. ツリーブロックを水平方向に2分割した図である。It is the figure which divided the treeblock into two in the horizontal direction. ツリーブロックを垂直方向に2分割した図である。It is the figure which divided the treeblock into two in the vertical direction. ツリーブロックを水平方向及び垂直方向に4分割した場合の分割された各ブロックの処理を説明するフローチャートである。FIG. 10 is a flowchart for explaining the processing of each divided block when the treeblock is divided into four in the horizontal direction and the vertical direction; FIG. ツリーブロックを水平方向に2分割した場合の分割された各ブロックの処理を説明するフローチャートである。FIG. 10 is a flowchart for explaining processing of each divided block when a treeblock is horizontally divided into two; FIG. ツリーブロックの分割が水平方向に2分割された場合の分割されたブロックの再分割の様子を示す図である。FIG. 10 is a diagram showing how a divided block is re-divided when a treeblock is horizontally divided into two. ツリーブロックを垂直方向に2分割した場合の分割された各ブロックの処理を説明するフローチャートである。FIG. 10 is a flowchart for explaining processing of each divided block when a treeblock is vertically divided into two; FIG. ツリーブロックの分割が垂直方向に2分割された場合の分割されたブロックの再分割の様子を示す図である。FIG. 10 is a diagram showing how a divided block is re-divided when a treeblock is vertically divided into two; 第1の実施の形態のブロック分割に関するシンタックスの例を示す図である。FIG. 4 is a diagram showing an example of syntax regarding block division according to the first embodiment; FIG. イントラ予測を説明する図である。It is a figure explaining intra prediction. インター予測を説明する図である。It is a figure explaining inter prediction. 色差フォーマットを説明する図である。FIG. 4 is a diagram for explaining a color difference format; 輝度色差イントラ予測を説明する図である。It is a figure explaining luma-chrominance intra prediction. 輝度色差イントラ予測を説明するフローチャートである。10 is a flow chart illustrating luma-chrominance intra prediction; 色差ブロックのサイズが輝度ブロックのサイズよりも大きい場合を説明する図である。FIG. 4 is a diagram illustrating a case where the size of a chrominance block is larger than the size of a luminance block; 色差ブロックのサイズが輝度ブロックのサイズよりも小さい場合を説明する図である。FIG. 4 is a diagram illustrating a case where the size of a chrominance block is smaller than the size of a luminance block; イントラ色差予測モードのシンタックスの例を説明する図である。FIG. 10 is a diagram illustrating an example of syntax of intra color difference prediction mode; 周辺画素を置き換えてイントラ色差予測を制限する例を説明する図である。FIG. 10 is a diagram illustrating an example of limiting intra color difference prediction by replacing peripheral pixels; 輝度ブロックのサイズの違いによる輝度色差イントラ予測を説明する図である。FIG. 10 is a diagram illustrating luminance/chrominance intra prediction based on a difference in luminance block size;

本発明の実施の形態は、画像を矩形ブロックに分割し、分割されたブロックを符号化・復号化する画像符号化技術を提供する。 Embodiments of the present invention provide an image coding technique that divides an image into rectangular blocks and encodes/decodes the divided blocks.

(第1の実施の形態)
本発明の実施の形態1に係る画像符号化装置100及び画像復号化装置200について説明する。
(First embodiment)
An image encoding device 100 and an image decoding device 200 according to Embodiment 1 of the present invention will be described.

図1は第1の実施の形態に係る画像符号化装置100の構成図である。ここで、図1では画像信号に関するデータの流れのみを表しており、動きベクトルや予測モードなど画像信号以外の付加情報については各構成要素が符号化ビット列生成部105に供給して対応する符号化データを生成するが、付加情報に関するデータの流れは図示していない。 FIG. 1 is a configuration diagram of an image coding apparatus 100 according to the first embodiment. Here, FIG. 1 only shows the flow of data related to image signals, and each component supplies additional information other than image signals such as motion vectors and prediction modes to the encoded bit string generation unit 105 to generate corresponding encoded data, but the flow of data related to additional information is not shown.

ブロック分割部101は、画像を符号化の処理単位となる符号化対象ブロックに分割し、符号化対象ブロック内の画像信号を残差信号生成部103に供給する。また、ブロック分割部101は、予測画像の一致度を評価するために符号化対象ブロックの画像信号を予測画像生成部102に供給する。 The block division unit 101 divides an image into blocks to be encoded, which are processing units for encoding, and supplies image signals in the blocks to be encoded to the residual signal generation unit 103 . In addition, the block dividing unit 101 supplies the image signal of the encoding target block to the predicted image generation unit 102 in order to evaluate the degree of matching of the predicted images.

ブロック分割部101は、画像を所定サイズの矩形に再帰的に分割して符号化対象ブロックを生成する。ブロック分割部101は、再帰的分割における対象ブロックを水平方向かつ垂直方向に4分割して4つのブロックを生成する4分割部と、再帰的分割における対象ブロックを水平方向又は垂直方向に2分割して2つのブロックを生成する2分割部とを含む。ブロック分割部101の詳細の動作については後述する。 A block division unit 101 recursively divides an image into rectangles of a predetermined size to generate encoding target blocks. The block dividing unit 101 includes a 4-dividing unit that horizontally and vertically divides the target block in the recursive division into 4 blocks to generate 4 blocks, and a 2-dividing unit that generates 2 blocks by horizontally or vertically dividing the target block in the recursive division into 2 blocks. A detailed operation of the block dividing unit 101 will be described later.

予測画像生成部102は、復号画像メモリ108から供給される復号画像信号から、予測モードを基にピクチャ内予測(イントラ予測)或いはピクチャ間予測(インター予測)を行い、予測画像信号を生成する。ブロック分割部101から供給される符号化対象ブロック内の画像信号はイントラ予測及びインター予測の評価に用いられる。イントラ予測では、ブロック分割部101から供給される符号化対象ブロックの画像信号と、復号画像メモリ108から供給される符号化対象のブロックと同じピクチャ内に存在する符号化対象のブロックに近接する周囲の符号化済みブロックの画像信号を用いて予測画像信号を生成する。インター予測では、ブロック分割部101から供給され符号化対象ブロックの画像信号を、符号化対象ブロックを含むピクチャ(符号化ピクチャ)の時系列で前または後ろにある復号画像メモリ108に格納されている符号化済みピクチャを参照ピクチャとし、符号化ピクチャと参照ピクチャとの間でブロックマッチング等のブロック一致度評価を行い、動き量を示す動きベクトルを求め、この動き量を基に参照ピクチャから動き補償を行い、予測画像信号を生成する。予測画像生成部102は、こうして生成された予測画像信号を残差信号生成部103に供給する。 The predicted image generation unit 102 performs intra-picture prediction (intra prediction) or inter-picture prediction (inter prediction) based on the prediction mode from the decoded image signal supplied from the decoded image memory 108 to generate a predicted image signal. The image signal in the encoding target block supplied from the block division unit 101 is used for evaluation of intra prediction and inter prediction. In intra prediction, a predictive image signal is generated using the image signal of the block to be coded supplied from the block division unit 101 and the image signal of the coded blocks in the same picture as the block to be coded supplied from the decoded image memory 108 and adjacent to the block to be coded. In inter-prediction, the image signal of the block to be coded supplied from the block division unit 101 is stored in the decoded image memory 108 before or after the picture (coded picture) including the block to be coded in time series as a reference picture, and block matching such as block matching is evaluated between the coded picture and the reference picture, a motion vector indicating the amount of motion is obtained, motion compensation is performed from the reference picture based on the amount of motion, and a predicted image signal is generated. The predicted image generator 102 supplies the predicted image signal thus generated to the residual signal generator 103 .

残差信号生成部103は、符号化する画像信号と予測画像生成部102にて生成された予測信号との減算を行い残差信号を生成し、直交変換・量子化部104に供給する。 The residual signal generation unit 103 performs subtraction between the image signal to be encoded and the prediction signal generated by the prediction image generation unit 102 to generate a residual signal, and supplies the residual signal to the orthogonal transformation/quantization unit 104 .

直交変換・量子化部104は、残差信号生成部103から供給される残差信号を直交変換・量子化し、直交変換・量子化された残差信号を符号化ビット列生成部105及び逆量子化・逆直交変換部106に供給する。 The orthogonal transformation/quantization unit 104 orthogonally transforms/quantizes the residual signal supplied from the residual signal generation unit 103, and supplies the orthogonal transformation/quantized residual signal to the encoded bit string generation unit 105 and the inverse quantization/inverse orthogonal transformation unit 106.

符号化ビット列生成部105は直交変換・量子化部104から供給される直交変換・量子化された残差信号に対する符号化ビット列を生成する。また、符号化ビット列生成部105は動きベクトルや予測モード、ブロック分割情報などの付加情報について、対応する符号化ビット列を生成する。 The coded bit string generation unit 105 generates a coded bit string for the orthogonally transformed and quantized residual signal supplied from the orthogonal transforming/quantizing unit 104 . Also, the coded bit string generation unit 105 generates coded bit strings corresponding to additional information such as motion vectors, prediction modes, and block division information.

逆量子化・逆直交変換部106は、直交変換・量子化部104から供給される直交変換・量子化された残差信号を逆量子化・逆直交変換し、逆量子化・逆直交変換された残差信号を復号画像信号重畳部107に供給する。 The inverse quantization/inverse orthogonal transformation unit 106 inversely quantizes/inverse orthogonally transforms the orthogonally transformed/quantized residual signal supplied from the orthogonal transformation/quantization unit 104, and supplies the inversely quantized/inverse orthogonally transformed residual signal to the decoded image signal superimposing unit 107.

復号画像信号重畳部107は、予測画像生成部102により生成された予測画像信号と逆量子化・逆直交変換部106で逆量子化及び逆直交変換された残差信号を重畳して復号画像を生成し、復号画像メモリ108に格納する。尚、復号画像に対して符号化によるブロック歪等を減少させるフィルタリング処理を施して、復号画像メモリ108に格納することもある。 The decoded image signal superimposing unit 107 superimposes the predicted image signal generated by the predicted image generating unit 102 and the residual signal inversely quantized and inverse orthogonally transformed by the inverse quantization/inverse orthogonal transformation unit 106 to generate a decoded image, and stores it in the decoded image memory 108. The decoded image may be stored in the decoded image memory 108 after being subjected to filtering processing for reducing block distortion or the like due to encoding.

図2は実施の形態1に係る画像復号化装置200の構成図である。ここで、図2では画像信号に関するデータの流れのみを表しており、動きベクトルや予測モードなど画像信号以外の付加情報についてはビット列復号部201が各構成要素に供給して対応する処理に用いるが、付加情報に関するデータの流れは図示していない。 FIG. 2 is a configuration diagram of the image decoding device 200 according to Embodiment 1. As shown in FIG. Here, FIG. 2 shows only the data flow related to the image signal, and additional information other than the image signal such as the motion vector and prediction mode is supplied to each component by the bit string decoding unit 201 and used for the corresponding processing, but the data flow related to the additional information is not shown.

ビット列復号部201は、供給された符号化ビット列を復号化して、直交変換・量子化された残差信号をブロック分割部202に供給する。 The bit string decoding unit 201 decodes the supplied encoded bit string and supplies the orthogonally transformed and quantized residual signal to the block dividing unit 202 .

ブロック分割部202は、復号化したブロック分割情報に基づいて復号化対象ブロックの形状を決定し、決定された復号化対象ブロックの直交変換・量子化された残差信号を逆量子化・逆直交変換部203に供給する。 The block division unit 202 determines the shape of the decoding target block based on the decoded block division information, and supplies the orthogonal transform/quantized residual signal of the determined decoding target block to the inverse quantization/inverse orthogonal transform unit 203.

ブロック分割部202は、画像を復号化されたブロック分割情報に基づいて所定サイズの矩形に再帰的に分割して復号化対象ブロックを生成する。ブロック分割部202は、再帰的分割における対象ブロックを水平方向かつ垂直方向に4分割して4つのブロックを生成する4分割部と、再帰的分割における対象ブロックを水平方向又は垂直方向に2分割して2つのブロックを生成する2分割部とを含む。ブロック分割部202の詳細の動作については後述する。 The block division unit 202 recursively divides the image into rectangles of a predetermined size based on the decoded block division information to generate decoding target blocks. The block dividing unit 202 includes a 4-dividing unit that horizontally and vertically divides the target block in the recursive division into 4 blocks to generate 4 blocks, and a 2-dividing unit that generates 2 blocks by horizontally or vertically dividing the target block in the recursive division into 2 blocks. A detailed operation of the block dividing unit 202 will be described later.

逆量子化・逆直交変換部203は、供給された直交変換・量子化された残差信号に対して、逆直交変換及び逆量子化を行い、逆直交変換・逆量子化された残差信号を得る。 The inverse quantization/inverse orthogonal transform unit 203 performs inverse orthogonal transform and inverse quantization on the supplied orthogonal transform/quantized residual signal to obtain an inverse orthogonal transform/inverse quantized residual signal.

予測画像生成部204は、復号画像メモリ206から供給される復号画像信号から予測画像信号を生成し、復号画像信号重畳部205に供給する。 The predicted image generation unit 204 generates a predicted image signal from the decoded image signal supplied from the decoded image memory 206 and supplies it to the decoded image signal superimposing unit 205 .

復号画像信号重畳部205は、予測画像生成部204で生成された予測画像信号と、逆量子化・逆直交変換部203により逆直交変換・逆量子化された残差信号とを重畳することにより、復号画像信号を生成し、出力するとともに復号画像メモリ206に格納する。尚、復号画像に対して符号化によるブロック歪等を減少させるフィルタリング処理を施して、復号画像メモリ206に格納することもある。 The decoded image signal superimposition unit 205 superimposes the predicted image signal generated by the predicted image generation unit 204 and the residual signal inversely orthogonally transformed and inversely quantized by the inverse quantization/inverse orthogonal transformation unit 203 to generate a decoded image signal, output it, and store it in the decoded image memory 206. The decoded image may be stored in the decoded image memory 206 after being subjected to filtering processing for reducing block distortion or the like due to encoding.

画像符号化装置100のブロック分割部101の動作について詳細に説明する。図3はツリーブロックへの分割及びツリーブロック内部の分割を説明するフローチャートである。 The operation of the block dividing section 101 of the image encoding device 100 will be described in detail. FIG. 3 is a flow chart illustrating the partitioning into treeblocks and the partitioning within the treeblocks.

まず、入力された画像を所定サイズのツリーブロックに分割する(S1000)。例えば、ツリーブロックを128画素x128画素とする。ただし、ツリーブロックは128画素x128画素に限定されず、矩形であればどのような大きさ及び形状を用いてもよい。また、ツリーブロックの大きさ及び形状は、符号化装置と復号化装置の間で固定の値を定めておいてもよいが、符号化装置が決定して符号化ビットストリーム内に記録し復号化装置が記録されたブロックサイズを用いる構成にしてもよい。入力された画像をツリーブロックに分割する様子を図4に示す。ツリーブロックは、ラスタスキャン順、すなわち左から右、上から下に符号化及び復号化される。 First, an input image is divided into tree blocks of a predetermined size (S1000). For example, assume that the treeblock is 128 pixels by 128 pixels. However, the treeblock is not limited to 128 pixels×128 pixels, and any rectangular size and shape may be used. Also, the size and shape of the treeblock may be fixed values between the encoding device and the decoding device, or may be determined by the encoding device and recorded in the encoded bitstream, and the decoding device may use the recorded block size. FIG. 4 shows how an input image is divided into treeblocks. The treeblocks are encoded and decoded in raster scan order, left to right, top to bottom.

ツリーブロックの内部をさらに矩形のブロックに分割していく。ツリーブロック内部はz-スキャン順に符号化・復号化していく。図5にz-スキャンの順序を示す。z-スキャンでは、左上、右上、左下、右下、の順序で符号化及び復号化する。ツリーブロック内部の分割は4分割と2分割が可能であり、4分割は水平方向かつ垂直方向に分割する。2分割は水平方向又は垂直方向に分割する。図6はツリーブロックを水平かつ垂直方向に4分割した図である。図7はツリーブロックを水平方向に2分割した図である。図8はツリーブロックを垂直方向に2分割した図である。 The interior of the treeblock is further divided into rectangular blocks. The inside of the treeblock is encoded/decoded in z-scan order. FIG. 5 shows the order of z-scans. The z-scan encodes and decodes in the order top left, top right, bottom left, bottom right. The division inside the treeblock can be divided into 4 or 2, and the 4 division is divided in the horizontal direction and the vertical direction. The split into two is split horizontally or vertically. FIG. 6 is a diagram of a treeblock divided into four horizontally and vertically. FIG. 7 is a diagram of a treeblock horizontally divided into two. FIG. 8 is a diagram of a treeblock vertically divided into two.

再び図3を参照する。ツリーブロック内部を水平及び垂直方向に4分割するかどうかを判断する(S1001)。 Refer to FIG. 3 again. It is determined whether the inside of the treeblock is to be divided horizontally and vertically into four (S1001).

ツリーブロック内部を4分割すると判断した場合(S1001:Yes)、ツリーブロック内部を4分割し(S1002)、水平かつ垂直方向に4分割したブロックの各処理を行う(S1003)。4分割されたブロックの再分割処理については後述する(図9)。 When it is determined that the inside of the treeblock is to be divided into four (S1001: Yes), the inside of the treeblock is divided into four (S1002), and each block divided horizontally and vertically is processed (S1003). The re-division processing of the blocks divided into four will be described later (FIG. 9).

ツリーブロック内部を4分割しないと判断した場合(S1001:No)、ツリーブロック内部を2分割するかどうかを判断する(S1004)。 If it is determined not to divide the inside of the treeblock into four (S1001: No), it is determined whether to divide the inside of the treeblock into two (S1004).

ツリーブロック内部を2分割すると判断した場合(S1004:Yes)、2分割する方向を水平方向とするかどうかを判断する(S1005)。 If it is determined that the inside of the treeblock is to be divided into two (S1004: Yes), it is determined whether the direction of division into two is the horizontal direction (S1005).

2分割する方向を水平方向と判断した場合(S1005:Yes)、ツリーブロック内部を水平方向に2分割し(S1006)、水平方向に2分割したブロックの各処理を行う(S1007)。水平方向に2分割されたブロックの再分割処理については後述する(図10)。 If it is determined that the direction of division into two is the horizontal direction (S1005: Yes), the inside of the treeblock is horizontally divided into two (S1006), and each process of the two horizontally divided blocks is performed (S1007). The re-division processing of the blocks divided into two in the horizontal direction will be described later (FIG. 10).

2分割する方向を水平方向ではなく垂直方向と判断した場合(S1005:No)、ツリーブロック内部を垂直方向に2分割し(S1008)、垂直方向に2分割したブロックの各処理を行う(S1009)。水平方向に2分割されたブロックの再分割処理については後述する(図11)。 If it is determined that the direction of division into two is not the horizontal direction but the vertical direction (S1005: No), the inside of the treeblock is vertically divided into two (S1008), and the vertically divided blocks are processed (S1009). The re-division processing of the horizontally divided blocks will be described later (FIG. 11).

ツリーブロック内部を2分割しないと判断した場合(S1004:No)、ツリーブロックの内部をブロック分割せずにブロック分割処理を終了する(S1010)。 If it is determined not to split the inside of the treeblock into two (S1004: No), the block splitting process ends without splitting the inside of the treeblock into blocks (S1010).

続いて、ツリーブロックを水平方向かつ垂直方向に4分割した場合の分割された各ブロックの処理について図9のフローチャートを用いて説明する。 Next, the processing of each divided block when the treeblock is horizontally and vertically divided into four will be described with reference to the flowchart of FIG.

ブロック内部を水平かつ垂直方向に再び4分割するかどうかを判断する(S1101)。 It is determined whether or not the inside of the block is to be divided into four again in the horizontal and vertical directions (S1101).

ブロック内部を再び4分割すると判断した場合(S1101:Yes)、ブロック内部を再び4分割し(S1102)、水平かつ垂直方向に4分割したブロックの各処理を行う(S1103)。 If it is determined that the inside of the block is to be divided into four again (S1101: Yes), the inside of the block is again divided into four (S1102), and the blocks divided into four horizontally and vertically are processed (S1103).

ブロック内部を再び4分割しないと判断した場合(S1101:No)、ブロック内部を2分割するかどうかを判断する(S1104)。 If it is determined not to divide the inside of the block into four again (S1101: No), it is determined whether to divide the inside of the block into two (S1104).

ブロック内部を2分割すると判断した場合(S1104:Yes)、2分割する方向を水平方向とするかどうかを判断する(S1105)。 If it is determined that the inside of the block is to be divided into two (S1104: Yes), it is determined whether the direction of division into two should be the horizontal direction (S1105).

2分割する方向を水平方向と判断した場合(S1105:Yes)、ブロック内部を水平方向に2分割し(S1106)、水平方向に2分割したブロックの各処理を行う(S1107)。 When it is determined that the direction of division into two is the horizontal direction (S1105: Yes), the inside of the block is horizontally divided into two (S1106), and each process of the two horizontally divided blocks is performed (S1107).

2分割する方向を水平方向ではなく垂直方向と判断した場合(S1105:No)、ブロック内部を垂直方向に2分割し(S1108)、垂直方向に2分割したブロックの各処理を行う(S1109)。 If it is determined that the direction of division into two is not the horizontal direction but the vertical direction (S1105: No), the inside of the block is vertically divided into two (S1108), and the vertically divided blocks are processed (S1109).

ブロック内部を2分割しないと判断した場合(S1104:No)、ブロックの内部をブロック分割せずにブロック分割処理を終了する(S1110)。 If it is determined not to divide the inside of the block into two (S1104: No), the block division processing ends without dividing the inside of the block into blocks (S1110).

図9のフローチャートに示す処理が4分割された各ブロックについて実行される。4分割されたブロックの内部もz-スキャン順に符号化及び復号化していく。 The processing shown in the flowchart of FIG. 9 is executed for each of the four divided blocks. The inside of the block divided into four is also encoded and decoded in z-scan order.

続いて、ツリーブロックを水平方向に2分割した場合の分割された各ブロックの処理について図10のフローチャートを用いて説明する。 Next, the processing of each divided block when the treeblock is horizontally divided into two will be described with reference to the flowchart of FIG.

ツリーブロックを水平方向に2分割した場合、2分割された各ブロックは、まず、ブロック内部を水平及び垂直方向に4分割するかどうかを判断する(S1201)。 When the treeblock is horizontally divided into two blocks, each divided block first determines whether the inside of the block is to be divided into four horizontally and vertically (S1201).

ブロック内部を4分割すると判断した場合(S1201:Yes)、ブロック内部を4分割し(S1202)、水平かつ垂直方向に4分割したブロックの各処理を行う(S1203)。 When it is determined that the inside of the block is to be divided into four (S1201: Yes), the inside of the block is divided into four (S1202), and the blocks divided horizontally and vertically are each processed (S1203).

ブロック内部を4分割しないと判断した場合(S1201:No)、ブロック内部を再び2分割するかどうかを判断する(S1204)。 If it is determined not to divide the inside of the block into four (S1201: No), it is determined whether to divide the inside of the block into two again (S1204).

再び2分割すると判断した場合(S1204:Yes)、ブロック内部を垂直方向に分割し(S1205)、垂直方向に2分割したブロックの各処理を行う(S1206)。 If it is determined to divide into two again (S1204: Yes), the inside of the block is vertically divided (S1205), and each process of the vertically divided two blocks is performed (S1206).

再び2分割しないと判断した場合(S1204:No)、ブロックの内部を再分割せずブロック分割処理を終了する(S1207)。 If it is determined not to divide into two again (S1204: No), the block dividing process is terminated without redividing the inside of the block (S1207).

図11にツリーブロックの分割が水平方向に2分割された場合の分割されたブロックの再分割の様子を示す。ここで、親ブロックであるツリーブロックが水平方向に2分割された場合、分割されたブロックの再2分割では、垂直方向のみの2分割を許容し、自動的に垂直方向に2分割する。また、親ブロックであるツリーブロックが2分割された場合、子ブロックでは4分割も完全に禁止することも可能である。これにより、親ブロックと同一方向にブロックが分割されることを禁止できるため、より横方向に細長い長方形となるブロック分割を防止でき、符号化・復号化の処理がしやすくなる。 FIG. 11 shows how the divided block is re-divided when the treeblock is horizontally divided into two. Here, when the tree block, which is the parent block, is divided into two in the horizontal direction, the re-divided block into two is allowed to be divided into two only in the vertical direction, and is automatically divided into two in the vertical direction. Also, when a tree block, which is a parent block, is split into two, it is possible to completely prohibit splitting into four child blocks. As a result, it is possible to prevent a block from being split in the same direction as the parent block, thereby preventing block splitting into a rectangle that is elongated in the horizontal direction, thereby facilitating the encoding/decoding process.

図10のフローチャートに示す処理が水平方向に2分割された各ブロックについて実行される。2分割されたブロックの内部も上、下の順に符号化及び復号化していく。 The processing shown in the flowchart of FIG. 10 is executed for each block divided horizontally. The inside of the block divided into two is also encoded and decoded in order from the top to the bottom.

続いて、ツリーブロックを垂直方向に2分割した場合の分割された各ブロックの処理について図12のフローチャートを用いて説明する。 Next, the processing of each divided block when the treeblock is vertically divided into two will be described with reference to the flowchart of FIG.

ツリーブロックを垂直方向に2分割した場合、2分割された各ブロックは、まず、ブロック内部を水平及び垂直方向に4分割するかどうかを判断する(S1301)。 When the treeblock is vertically divided into two, each divided block first determines whether the inside of the block is to be divided into four horizontally and vertically (S1301).

ブロック内部を4分割すると判断した場合(S1301:Yes)、ブロック内部を4分割し(S1302)、水平かつ垂直方向に4分割したブロックの各処理を行う(S1303)。 When it is determined that the inside of the block is to be divided into four (S1301: Yes), the inside of the block is divided into four (S1302), and the blocks divided into four horizontally and vertically are processed (S1303).

ブロック内部を4分割しないと判断した場合(S1301:No)、ブロック内部を再び2分割するかどうかを判断する(S1304)。 If it is determined not to divide the inside of the block into four (S1301: No), it is determined whether to divide the inside of the block into two again (S1304).

再び2分割すると判断した場合(S1304:Yes)、ブロック内部を水平方向に分割し(S1305)、水平方向に2分割したブロックの各処理を行う(S1306)。 If it is determined to divide into two again (S1304: Yes), the inside of the block is horizontally divided (S1305), and each process of the horizontally divided two blocks is performed (S1306).

再び2分割しないと判断した場合(S1304:No)、ブロックの内部を再分割せずブロック分割処理を終了する(S1307)。 If it is determined not to divide into two again (S1304: No), the block dividing process is terminated without redividing the inside of the block (S1307).

図13にツリーブロックの分割が垂直方向に2分割された場合の分割されたブロックの再分割の様子を示す。ここで、親ブロックであるツリーブロックが垂直方向に2分割された場合、分割されたブロックの再2分割では、水平方向のみの2分割を許容し、自動的に水平方向に2分割する。また、親ブロックであるツリーブロックが2分割された場合、子ブロックでは4分割も完全に禁止することも可能である。これにより、親ブロックと同一方向にブロックが分割されることを禁止できるため、より縦方向に細長い長方形となるブロック分割を防止でき、符号化・復号化の処理がしやすくなる。 FIG. 13 shows how the divided block is re-divided when the treeblock is vertically divided into two. Here, when the tree block, which is the parent block, is vertically divided into two, the re-divided block into two is allowed to be divided into two only horizontally, and is automatically divided into two horizontally. Also, when a tree block, which is a parent block, is split into two, it is possible to completely prohibit splitting into four child blocks. As a result, it is possible to prevent blocks from being divided in the same direction as the parent block, thereby preventing block division into elongated rectangles in the vertical direction, thereby facilitating encoding/decoding processing.

図12のフローチャートに示す処理が垂直方向に2分割された各ブロックについて実行される。2分割されたブロックの内部も左、右の順に符号化及び復号化していく。 The processing shown in the flowchart of FIG. 12 is executed for each block divided vertically. The inside of the block divided into two is also encoded and decoded in order of left and right.

なお、ツリーブロックが分割された時の分割されたブロックの再分割について説明したが、親ブロックがツリーブロックでなくてもよい。例えば、ツリーブロック(128x128)を4分割し、4分割されたブロック(64x64)をさらに4分割又は2分割した場合に、再分割されたブロックの分割にも上記処理を適用していく。 Although re-division of a divided block when a treeblock is divided has been described, the parent block need not be a treeblock. For example, when a treeblock (128×128) is divided into 4 and the 4-divided block (64×64) is further divided into 4 or 2, the above processing is also applied to division of the re-divided blocks.

次に、画像復号化装置200のブロック分割部202の動作について説明する。画像符号化装置100のブロック分割部101と同じ処理手順でブロックを分割するが、画像符号化装置100のブロック分割部101では、ブロック分割のパターンを選択し、選択したブロック分割情報を出力するのに対して、画像復号化装置のブロック分割部202は、符号化ビットストリームから復号化されたブロック分割情報を用いてブロックを分割すること、また、符号化ビットストリームからブロック分割情報を復号化する際に、同一方向への再分割が禁止される状況では、選択肢のない情報はビットストリーム内で伝送しないシンタックス構造となっていることが異なる。 Next, the operation of the block dividing section 202 of the image decoding device 200 will be described. The block division unit 101 of the image encoding device 100 divides blocks according to the same processing procedure as the block division unit 101 of the image coding device 100, but the block division unit 101 of the image coding device 100 selects a block division pattern and outputs the selected block division information. is different in that it has a syntax structure in which information without options is not transmitted in the bitstream.

第1の実施の形態のブロック分割に関するシンタックス(符号化ビットストリームの構文規則)の例を図14に示す。ツリーブロックの内部の分割は、まず4分割をするかどうかのフラグ(4_division_flag)を送受信する。4分割する場合(4_division_flagが1)は、ツリーブロック内を4分割して処理を終了する。その後4分割されたブロックについて再度図14に示すシンタックスで内部を再分割する。4分割しない場合(4_division_flagが0)は、2分割するかどうかのフラグ(2_division_flag)を送受信する。2分割する場合(2_division_flagが1)は、さらに、2分割する方向を示すフラグ(2_division_direction)を送受信する。2_division_directionが1の場合は垂直方向への分割を示し、2_division_directionが0の場合は水平方向への分割を示す。その後2分割されたブロックについて再度図14に示すシンタックスでブロック内部を再分割する。2分割しない場合(2_division_flagが0)は、ツリーブロックを分割せずに処理を終了する。 FIG. 14 shows an example of syntax (code bitstream syntax rules) regarding block division in the first embodiment. For division inside the treeblock, first, a flag (4_division_flag) indicating whether to divide into four is transmitted and received. When dividing into four (4_division_flag is 1), the treeblock is divided into four and the process ends. After that, the inside of the four-divided block is re-divided according to the syntax shown in FIG. When not dividing into 4 (4_division_flag is 0), a flag (2_division_flag) indicating whether to divide into 2 is transmitted/received. When dividing into two (2_division_flag is 1), a flag (2_division_direction) indicating the direction of division into two is further transmitted and received. If 2_division_direction is 1, it indicates division in the vertical direction, and if 2_division_direction is 0, it indicates division in the horizontal direction. After that, the inside of the block divided into two is redivided by the syntax shown in FIG. 14 again. If the treeblock is not divided into two (2_division_flag is 0), the process ends without dividing the treeblock.

ここで、4分割又は2分割されたブロックの内部を再分割する処理について説明する。ブロック内部を再分割する処理も図14に示すシンタックスを用いるが、ツリーブロックを分割する場合と比較して、2分割する場合の分割方向に制限があることが異なる。つまり、ツリーブロックを2分割している場合、2分割されたブロックの内部を再分割する場合には、ツリーブロックを2分割した分割方向と同一の方向で分割することを禁止する。これにより、分割されたブロックがより細長い長方形になることを防止し、イントラ予測やインター予測で必要となるメモリ帯域の増加を防止することができる。メモリ帯域の増加の防止についての詳細は後述する。 Here, processing for re-dividing the inside of a block divided into four or two will be described. The syntax shown in FIG. 14 is also used for the process of re-dividing the inside of a block, but it differs from the case of dividing a treeblock in that there are restrictions on the direction of division when dividing into two. In other words, when the treeblock is divided into two, when redividing the inside of the two-divided block, it is prohibited to divide the treeblock in the same direction as the direction in which the treeblock was divided into two. This prevents the divided blocks from becoming longer and narrower rectangles, and prevents an increase in memory bandwidth required for intra prediction and inter prediction. The details of preventing an increase in memory bandwidth will be described later.

また、同一方向に2分割した数をカウントして所定回数を超えた場合に同一方向に分割することを制限してももちろんよい。例えば、2回まで同一方向への2分割を許可するが、3回目からは同一方向への2分割を禁止する。 Further, it is of course possible to limit the division in the same direction when the number of divisions in the same direction is counted and the number exceeds a predetermined number. For example, although division into two in the same direction is permitted up to two times, division into two in the same direction is prohibited from the third time.

図14では、4分割を優先して選択し、4分割するかどうかの情報を2分割するかどうかの情報よりも先に送受信するシンタックスとした。一方、2分割を優先して選択する場合、2分割するかどうかの情報を4分割するかどうかの情報よりも先に送受信するシンタックスとすることも可能である。確率的により発生しやすい事象を先に送受信する方がビットストリームとして伝送する符号量が少なくなるためである。つまり、予め4分割と2分割のどちらが発生しやすいか推定し、より発生しやすい分割情報を先にする送受信するシンタックスとしてもよい。例えば、画像のヘッダ情報で4分割を優先するか、2分割を優先するかを送受信することで、符号化装置が適応的に符号化効率の高い優先分割数を決定して、復号化装置では選択された優先分割数に基づいたシンタックスでツリーブロック内部を分割することもできる。 In FIG. 14, 4-division is selected preferentially, and the syntax is such that the information on whether to divide into 4 is transmitted and received prior to the information on whether to divide into 2 or not. On the other hand, when the division into two is selected preferentially, it is also possible to have a syntax in which the information on whether to divide into two is transmitted and received prior to the information on whether to divide into four. This is because the amount of code to be transmitted as a bit stream is reduced by transmitting/receiving events that are more likely to occur probabilistically first. In other words, the syntax may be such that it is presumed which of the four divisions and the two divisions is likely to occur, and the division information that is more likely to occur is transmitted and received first. For example, by transmitting/receiving whether to give priority to division into 4 or division into 2 in the header information of the image, the coding device adaptively determines the priority division number with high coding efficiency, and the decoding device can divide the inside of the tree block with the syntax based on the selected priority division number.

画像符号化装置100及び画像復号化装置200において、分割されたブロックを用いてイントラ予測やインター予測が行われる。イントラ予測、インター予測ともにメモリからの画素のコピーを伴う。 In the image encoding device 100 and the image decoding device 200, intra prediction and inter prediction are performed using the divided blocks. Both intra prediction and inter prediction involve copying pixels from memory.

図15(a)~図15(d)にイントラ予測の一例を示す。図15(a)及び図15(b)はイントラ予測の予測方向とモード番号を示す。イントラ予測は、図15(c)及び図15(d)に示すように、符号化・復号化対象ブロックに近接する符号化・復号化済の画素から画素をコピーすることで符号化・復号化対象ブロックの予測画像を生成する。イントラ予測では、ブロック単位で予測画像生成から符号化・復号化画素生成を繰り返すため、処理順序がブロック単位でシーケンシャルとなり、ブロック内部を小さく分割するほど全体の処理の負荷が大きくなる。また、ブロックの形状が細長い長方形になるほどメモリからの画素コピーの処理が大きくなる。また、符号化・復号化には残差信号の直交変換を行うため、長方形のサイズの種類が多くなればなるほど必要な直交変換の種類が多くなり、その結果回路規模の増大につながる。そのため、ブロック内部を2分割する場合に、親ブロックの分割方法と同一方向に2分割することを制限することで、イントラ予測で必要となるメモリ帯域の増加を防止することができる。 An example of intra prediction is shown in FIGS. 15(a) to 15(d). FIGS. 15A and 15B show prediction directions and mode numbers of intra prediction. In intra prediction, as shown in FIGS. 15(c) and 15(d), by copying pixels from encoded/decoded pixels close to the encoding/decoding target block, a prediction image of the encoding/decoding target block is generated. In intra prediction, since prediction image generation and encoding/decoding pixel generation are repeated in units of blocks, the processing order is sequential in units of blocks, and the smaller the inside of the block is divided, the greater the overall processing load. Also, as the shape of the block becomes a long and narrow rectangle, the process of copying pixels from the memory becomes large. In addition, since orthogonal transformation of residual signals is performed for encoding/decoding, the more types of rectangular sizes are required, the more types of orthogonal transformations are required, resulting in an increase in circuit size. Therefore, when dividing the inside of a block into two, by restricting the division into two in the same direction as the method of dividing the parent block, it is possible to prevent an increase in the memory bandwidth required for intra prediction.

図16にインター予測の一例を示す。インター予測は、符号化・復号化済の画像に含まれる画素からブロック単位で画素をコピーすることで符号化・復号化対象ブロックの予測画像を生成する。インター予測では、参照画像からブロック単位で画素をコピーする際に、必要な画素が含まれるメモリの管理単位での取得が必要な装置の構成となることが多い。そのため、ブロックを小さく分割するほど、また、ブロックの形状が細長い長方形になるほど、全体の処理の負荷が大きくなる。また、参照画像に対して補間フィルタを用いた小数精度の動き補償を行う場合には、ブロック内に含まれる画素に数画素を加えた画素のコピーが必要となり、ブロックの大きさが小さいほど、追加する数画素の相対的な比率が大きくなり、全体の処理の負荷が大きくなる。そのため、ブロック内部を2分割する場合に、親のブロックの分割方向と同一方向に2分割することを制限することで、インター予測で必要となるメモリ帯域の増加を防止することができる。 FIG. 16 shows an example of inter prediction. In inter-prediction, a prediction image of a block to be encoded/decoded is generated by copying pixels in block units from pixels included in an encoded/decoded image. In inter-prediction, when copying pixels from a reference image in units of blocks, it is often the case that the configuration of the apparatus requires acquisition of memory management units that include necessary pixels. Therefore, the smaller the block is divided or the longer the block is in the rectangular shape, the greater the overall processing load. In addition, when performing decimal-precision motion compensation using an interpolation filter on a reference image, it is necessary to copy pixels in which several pixels are added to the pixels contained in the block. Therefore, when dividing the inside of a block into two, by restricting the division into two in the same direction as the dividing direction of the parent block, it is possible to prevent an increase in the memory bandwidth required for inter prediction.

続いて、イントラ予測での輝度信号と色差信号の関係について説明する。輝度信号と色差信号間のフォーマットとして、4:2:0、4:2:2、4:4:4などが従来から知られている。図17(a)に示す4:2:0フォーマットは、輝度信号を水平/垂直方向ともに2画素をサンプリングするのに対して、色差信号を水平/垂直方向ともに1画素をサンプリングする。人間の目は色差信号よりも輝度信号をより敏感に知覚できるため、輝度信号よりも色差信号の情報量を減らしている。図17(b)に示す4:2:2フォーマットは、輝度信号を水平方向に2画素をサンプリングするのに対して、色差信号を水平方向に1画素サンプリングする。垂直方向については、輝度信号を垂直方向に2画素をサンプリングするのに対して、色差信号を垂直方向に2画素サンプリングする。図17(c)に示す4:4:4フォーマットは、輝度信号を水平/垂直方向に2画素をサンプリングするのに対して、色差信号を水平/垂直方向ともに2画素をサンプリングする。 Next, the relationship between the luminance signal and the color difference signal in intra prediction will be described. 4:2:0, 4:2:2, 4:4:4, etc. are conventionally known as formats between luminance signals and color difference signals. In the 4:2:0 format shown in FIG. 17A, two pixels of the luminance signal are sampled both horizontally and vertically, while one pixel of the color difference signal is sampled both horizontally and vertically. Since the human eye can perceive the luminance signal more sensitively than the color difference signal, the information amount of the color difference signal is reduced rather than the luminance signal. In the 4:2:2 format shown in FIG. 17B, two pixels of the luminance signal are sampled in the horizontal direction, while one pixel of the color difference signal is sampled in the horizontal direction. In the vertical direction, two pixels of the luminance signal are sampled in the vertical direction, while two pixels of the color difference signal are sampled in the vertical direction. In the 4:4:4 format shown in FIG. 17C, two pixels of the luminance signal are sampled horizontally and vertically, while two pixels of the color difference signal are sampled both horizontally and vertically.

画像符号化で最も広く使用されている4:2:0フォーマットを例として本実施の形態を説明する。ブロック分割部101、202は、画像の輝度信号を分割して輝度ブロックを生成する輝度ブロック分割部と、画像の色差信号を分割して色差ブロックを生成する色差ブロック分割部とを含み、イントラ予測において、輝度信号と色差信号をそれぞれ独立してブロック分割する。つまり、イントラ予測では輝度ブロックの大きさと色差ブロックの大きさは独立して決定される。イントラ予測では、輝度信号と色差信号のそれぞれが周辺画素から画素値をコピーするため、輝度信号と色差信号を独立してブロック分割すると予測効率が高まる。それに対して、インター予測については輝度信号と色差信号を一緒に扱ってブロック分割する。つまり、インター予測では輝度ブロックの大きさと色差ブロックの大きさは同一である。インター予測では動き補償において輝度と色差を区別する必要がないためである。 This embodiment will be described by taking the 4:2:0 format, which is most widely used in image coding, as an example. The block division units 101 and 202 include a luminance block division unit that divides the luminance signal of the image to generate luminance blocks and a chrominance block division unit that divides the chrominance signal of the image to generate chrominance blocks, and independently divides the luminance signal and the chrominance signal into blocks in intra prediction. That is, in intra prediction, the size of the luminance block and the size of the chrominance block are determined independently. In intra prediction, each of the luminance signal and the color difference signal copies the pixel value from the surrounding pixels. Therefore, the prediction efficiency is improved by independently dividing the luminance signal and the color difference signal into blocks. In inter prediction, on the other hand, luminance signals and color difference signals are treated together and divided into blocks. That is, in inter prediction, the size of the luminance block and the size of the chrominance block are the same. This is because inter prediction does not need to distinguish between luminance and color difference in motion compensation.

予測画像生成部102、204は、輝度信号を予測する輝度信号予測部と、色差信号を予測する色差信号予測部とを含み、色差信号予測部は、イントラ予測における色差信号の予測効率を高めるため、輝度信号の符号化・復号化済画素から色差信号を予測する輝度色差イントラ予測を行う。輝度色差イントラ予測では、プライマリ信号をセカンダリ信号よりも先に符号化・復号化し、符号化・復号化済のプライマリ信号を用いてセカンダリ信号を予測する。ここで、4:2:0フォーマットや4:2:2フォーマットでは色差信号よりも輝度信号の情報量が多いため、輝度信号をプライマリ信号とし、色差信号をセカンダリ信号とする。4:4:4フォーマットでは、輝度信号と色差信号の情報量は同じであるが、他のフォーマットに合わせて、輝度信号をプライマリ信号とし、色差信号をセカンダリ信号とするのが普通である。 The predicted image generation units 102 and 204 include a luminance signal prediction unit that predicts the luminance signal and a color difference signal prediction unit that predicts the color difference signal. The color difference signal prediction unit performs luminance color difference intra prediction that predicts the color difference signal from the encoded/decoded pixels of the luminance signal in order to increase the prediction efficiency of the color difference signal in intra prediction. In luminance/chrominance intra prediction, the primary signal is coded/decoded before the secondary signal, and the secondary signal is predicted using the coded/decoded primary signal. Here, in the 4:2:0 format and 4:2:2 format, since the information amount of the luminance signal is larger than that of the color difference signal, the luminance signal is used as the primary signal and the color difference signal is used as the secondary signal. In the 4:4:4 format, the luminance signal and the color difference signal have the same amount of information, but in accordance with other formats, it is common to use the luminance signal as the primary signal and the color difference signal as the secondary signal.

図18は、輝度色差イントラ予測を説明する図であり、図19は、輝度色差イントラ予測を説明するフローチャートである。 FIG. 18 is a diagram explaining luminance/chrominance intra prediction, and FIG. 19 is a flowchart explaining luminance/chrominance intra prediction.

図18に示すように、輝度色差イントラ予測は、輝度ブロック10の符号化・復号化済の周辺画素12a、12bと、色差ブロック14の符号化・復号化済の周辺画素16a、16bとの間の相関度合いに基づいて行われる。輝度色差イントラ予測は、色差信号を予測するものであるから、相関度合いを算出する対象となる周辺画素は、符号化・復号化対象の色差ブロックの周辺画素を基準にして規定される。すなわち、色差ブロックに対して決まる周辺画素と同一位置にある輝度ブロックの周辺画素が相関度合いの算出の対象となる。 As shown in FIG. 18, the luminance/chrominance intra prediction is performed based on the degree of correlation between the encoded/decoded neighboring pixels 12a and 12b of the luminance block 10 and the encoded/decoded neighboring pixels 16a and 16b of the color difference block 14. Since the luminance/chrominance intra prediction predicts the color difference signal, the surrounding pixels for which the degree of correlation is to be calculated are specified based on the surrounding pixels of the color difference block to be encoded/decoded. In other words, the peripheral pixels of the luminance block located at the same position as the peripheral pixels determined for the chrominance block are the targets for calculating the degree of correlation.

まず、符号化・復号化済の輝度信号の周辺画素と色差信号の周辺画素間の相関度合いを算出する(S1901)。続いて、符号化・復号化対象ブロックの符号化・復号化済輝度信号をダウンサンプルする(S1902)。ここで、ダウンサンプルするフィルタタイプを複数準備してフィルタタイプを選択できるようにしてもよい。例えば、強度の異なるフィルタを準備して複数のフィルタタイプを選択する、又は、フィルタのタップ数が異なるフィルタを準備して複数のフィルタタイプを選択するようにしてもよい。フィルタタイプは周辺画素間の相関度合いを用いて自動選択してもよく、フィルタタイプをビットストリーム内に符号化・復号化して伝送してもよい。また、周辺画素間の相関度合いを用いて符号化・復号化対象ブロックの輝度信号のダウンサンプルフィルタを決定するのでなければ、ステップS1901とステップS1902の処理は順不同であり、ステップS1901とステップS1902は並列処理可能である。 First, the degree of correlation between the peripheral pixels of the encoded/decoded luminance signal and the peripheral pixels of the color difference signal is calculated (S1901). Subsequently, the encoded/decoded luminance signal of the encoding/decoding target block is down-sampled (S1902). Here, a plurality of filter types for downsampling may be prepared so that the filter type can be selected. For example, filters with different intensities may be prepared and a plurality of filter types may be selected, or filters with different numbers of filter taps may be prepared and a plurality of filter types may be selected. The filter type may be automatically selected using the degree of correlation between surrounding pixels, or the filter type may be encoded/decoded in the bitstream and transmitted. Unless the degree of correlation between neighboring pixels is used to determine the down-sampling filter for the luminance signal of the block to be encoded/decoded, the processing of steps S1901 and S1902 can be performed in any order, and steps S1901 and S1902 can be processed in parallel.

最後に、周辺画素間の相関度合いに基づいて、ダウンサンプルした輝度信号から色差信号を予測する(S1903)。ダウンサンプルは、4:2:0フォーマットの場合は、水平/垂直方向に1/2となる。4:2:2フォーマットの場合は、水平方向に1/2となり、垂直方向にはダウンサンプルしない。4:4:4フォーマットの場合は、水平/垂直方向ともにダウンサンプルしない。 Finally, a color difference signal is predicted from the downsampled luminance signal based on the degree of correlation between surrounding pixels (S1903). Down-sampling is 1/2 horizontally/vertically for 4:2:0 format. For 4:2:2 format, it is halved horizontally and not downsampled vertically. In the case of 4:4:4 format, downsampling is not performed in both the horizontal and vertical directions.

輝度色差イントラ予測では、符号化・復号化対象ブロックの輝度信号の符号化・復号化が完了した後に、色差信号の予測処理を開始できる。そのため、色差ブロックの予測処理を開始できるタイミングは、輝度ブロックのサイズと色差ブロックのサイズに依存する。 In the luminance/color difference intra prediction, the prediction process of the color difference signal can be started after the coding/decoding of the luminance signal of the encoding/decoding target block is completed. Therefore, the timing at which prediction processing of the chrominance block can be started depends on the size of the luminance block and the size of the chrominance block.

図20(a)及び図20(b)は、色差ブロックのサイズが輝度ブロックのサイズよりも大きい場合の輝度色差イントラ予測を説明する図である。図20(a)に示す4分割された第1~第4輝度ブロック20a、20b、20c、20dの画素数は16x16であり、図20(b)に示す色差ブロック20eの画素数は16x16である。 FIGS. 20(a) and 20(b) are diagrams illustrating luminance/chrominance intra prediction when the size of the chrominance block is larger than the size of the luminance block. The number of pixels of the first to fourth luminance blocks 20a, 20b, 20c, and 20d divided into four shown in FIG. 20(a) is 16×16, and the number of pixels of the color difference block 20e shown in FIG. 20(b) is 16×16.

ここで、輝度ブロックと色差ブロックのサイズの比較は、ブロック内の画素数での比較ではなく、色差フォーマットを考慮した面積での比較である。即ち、4:2:0フォーマットにおいて、輝度ブロックが占める面積は、色差ブロックが占める面積の1/2であるから、輝度ブロックの画素数が16x16であり、色差ブロックの画素数が16x16である場合、輝度ブロックのサイズの方が小さい。4:2:0フォーマットにおいて、輝度ブロックの画素数が16x16であり、色差ブロックの画素数が8x8である場合、両者のブロックが占める面積は同一であり、輝度ブロックと色差ブロックは同一のサイズである。 Here, the comparison of the sizes of the luminance block and the chrominance block is not based on the number of pixels in the block, but on the area considering the chrominance format. That is, in the 4:2:0 format, the area occupied by a luma block is half the area occupied by a chroma block, so if the number of pixels in a luma block is 16×16 and the number of pixels in a chroma block is 16×16, then the size of the luma block is smaller. In a 4:2:0 format, if the luminance block has 16×16 pixels and the chrominance block has 8×8 pixels, the area occupied by both blocks is the same, and the luminance and chroma blocks are the same size.

輝度ブロックと色差ブロックのサイズの比較を、ブロックの面積の比較ではなく、ブロック内の画素数の比較で行うには、色差フォーマットにおける輝度信号と色差信号の比率で色差ブロックの画素数を輝度ブロックの画素数に換算すればよい。4:2:0フォーマットの場合、輝度信号の画素数は色差信号の画素数の2倍であるから、色差ブロックの縦横の画素数を2倍して輝度ブロックの縦横の画素数に換算する。たとえば、4:2:0フォーマットにおいて、輝度ブロックのサイズが16x16であり、色差ブロックのサイズが16x16である場合、輝度ブロックの画素数に換算した色差ブロックの換算サイズは32x32になり、色差ブロックのサイズの方が大きいことがわかる。 In order to compare the sizes of the luminance block and the chrominance block by comparing the number of pixels in the block instead of comparing the block area, the number of pixels in the chrominance block should be converted to the number of pixels in the luminance block by the ratio of the luminance signal to the chrominance signal in the chrominance format. In the case of the 4:2:0 format, the number of pixels of the luminance signal is twice the number of pixels of the color difference signal, so the number of vertical and horizontal pixels of the color difference block is doubled to convert to the number of vertical and horizontal pixels of the luminance block. For example, in the 4:2:0 format, if the size of the luminance block is 16×16 and the size of the chrominance block is 16×16, the converted size of the chrominance block converted to the number of pixels of the luminance block is 32×32, and it can be seen that the size of the chrominance block is larger.

イントラ予測はブロック単位で復号処理を完了した後に、続くブロックの予測処理が可能になる。つまり、第1輝度ブロック20aの復号が完了した後に、第2輝度ブロック20bの復号が可能になり、第2輝度ブロック20bの復号が完了した後に、第3輝度ブロック20cの復号が可能になり、第3輝度ブロック20cの復号が完了した後に、第4輝度ブロック20dの復号が可能になる。 In intra-prediction, prediction processing of subsequent blocks becomes possible after completion of decoding processing in block units. That is, the second luminance block 20b can be decoded after the decoding of the first luminance block 20a is completed, the third luminance block 20c can be decoded after the decoding of the second luminance block 20b is completed, and the fourth luminance block 20d can be decoded after the decoding of the third luminance block 20c is completed.

色差ブロックのサイズが輝度ブロックのサイズよりも大きい場合、色差ブロック20eの予測処理に必要な周辺画素は、輝度画素、色差画素ともに4つの輝度ブロック20a、20b、20c、20dの復号前に存在しており、4つの輝度ブロック20a、20b、20c、20dの復号を待たずに、図19のステップS1901の輝度信号の周辺画素と色差信号の周辺画素間の相関度合いを算出可能である。 When the size of the chrominance block is larger than the size of the luminance block, the peripheral pixels required for prediction processing of the chrominance block 20e exist before the four luminance blocks 20a, 20b, 20c, and 20d are decoded, and the degree of correlation between the peripheral pixels of the luminance signal and the peripheral pixels of the chrominance signal in step S1901 of FIG. 19 can be calculated without waiting for the decoding of the four luminance blocks 20a, 20b, 20c, and 20d. .

次に、第1輝度ブロック20aの復号完了後、図19のステップS1902の輝度信号のダウンサンプルを実行する。第2輝度ブロック20bの復号完了を待たずに、第1輝度ブロック20aの位置に対応する色差ブロック20eの画素が予測可能である。同様に、第2輝度ブロック20bの復号完了後、輝度信号のダウンサンプルを実行し、第3輝度ブロック20cの復号完了を待たずに、第2輝度ブロック20bの位置に対応する色差ブロック20eの画素を予測する。さらに、第3輝度ブロック20cの復号完了後、輝度信号のダウンサンプルを実行し、第4輝度ブロック20dの復号完了を待たずに、第3輝度ブロック20cの位置に対応する色差ブロック20eの画素を予測する。最後に、第4輝度ブロック20dの復号完了後、輝度信号のダウンサンプルを実行し、第4輝度ブロック20dの位置に対応する色差ブロック20eの画素を予測する。 Next, after the decoding of the first luminance block 20a is completed, down-sampling of the luminance signal in step S1902 of FIG. 19 is performed. The pixel of the chrominance block 20e corresponding to the position of the first luminance block 20a can be predicted without waiting for the completion of decoding of the second luminance block 20b. Similarly, after the decoding of the second luminance block 20b is completed, the luminance signal is down-sampled, and the pixels of the chrominance block 20e corresponding to the position of the second luminance block 20b are predicted without waiting for the completion of decoding of the third luminance block 20c. Furthermore, after the decoding of the third luminance block 20c is completed, the luminance signal is down-sampled, and the pixels of the chrominance block 20e corresponding to the position of the third luminance block 20c are predicted without waiting for the completion of decoding of the fourth luminance block 20d. Finally, after the decoding of the fourth luminance block 20d is completed, the luminance signal is down-sampled to predict the pixels of the color difference block 20e corresponding to the position of the fourth luminance block 20d.

図21(a)及び図21(b)は、色差ブロックのサイズが輝度ブロックのサイズよりも小さい場合の輝度色差イントラ予測を説明する図である。図21(a)に示す輝度ブロック21aの画素数は16x16であり、図21(b)に示す4分割された第1~第4色差ブロック21b、21c、21d、21eの画素数は4x4である。 FIGS. 21A and 21B are diagrams for explaining luminance/chrominance intra prediction when the size of the chrominance block is smaller than the size of the luminance block. The number of pixels of the luminance block 21a shown in FIG. 21(a) is 16×16, and the number of pixels of the first to fourth color difference blocks 21b, 21c, 21d and 21e shown in FIG. 21(b) is 4×4.

4:2:0フォーマットにおいて、輝度ブロックが占める面積は、色差ブロックが占める面積の1/2であるから、輝度ブロックの画素数が16x16であり、色差ブロックの画素数が4x4である場合、色差ブロックのサイズの方が小さい。輝度ブロックと色差ブロックのサイズの比較を、ブロックの面積の比較ではなく、ブロック内の画素数の比較で行うには、4:2:0フォーマットの場合、色差ブロックの縦横の画素数を2倍して輝度ブロックの縦横の画素数に換算する。4:2:0フォーマットにおいて、輝度ブロックのサイズが16x16であり、色差ブロックのサイズが4x4である場合、輝度ブロックの画素数に換算した色差ブロックの換算サイズは8x8になり、色差ブロックのサイズの方が小さいことがわかる。 In the 4:2:0 format, the area occupied by the luma block is half the area occupied by the chroma block, so if the number of pixels in the luma block is 16×16 and the number of pixels in the chroma block is 4×4, the size of the chroma block is smaller. In order to compare the sizes of the luminance block and the color difference block by comparing the number of pixels in the block instead of comparing the block area, in the case of the 4:2:0 format, the number of vertical and horizontal pixels of the color difference block is doubled and converted into the number of vertical and horizontal pixels of the luminance block. In the 4:2:0 format, when the size of the luminance block is 16×16 and the size of the chrominance block is 4×4, the converted size of the chrominance block converted to the number of pixels of the luminance block is 8×8, and it can be seen that the size of the chrominance block is smaller.

色差ブロックのサイズが輝度ブロックのサイズよりも小さい場合、第1色差ブロック21bの周辺画素は、輝度画素、色差画素ともに輝度ブロック21aの復号前から利用できるが、第2~第4色差ブロック21c、21d、21eの周辺画素は、輝度ブロック21aの復号が完了しないと利用できない。つまり、輝度ブロック21aの復号が完了し、第1色差ブロック21bの復号が完了しないと、第2色差ブロック21cについて、図19のステップS1901の輝度信号の周辺画素と色差信号の周辺画素間の相関度合いを算出できない。同様に、第3色差ブロック21dについて、輝度ブロック21aの復号が完了し、第1、第2色差ブロック21b、21cの復号が完了しないと、第3色差ブロック21dについて、輝度信号の周辺画素と色差信号の周辺画素間の相関度合いを算出できない。同様に、第4色差ブロック21eについて、輝度ブロック21aの復号が完了し、第1~第3色差ブロック21b、21c、21dの復号が完了しないと、第4色差ブロック21eについて、輝度信号の周辺画素と色差信号の周辺画素間の相関度合いを算出できない。 When the size of the chrominance block is smaller than the size of the luminance block, the surrounding pixels of the first chrominance block 21b can be used before the luminance pixel and the chrominance pixel are decoded from the luminance block 21a, but the surrounding pixels of the second to fourth chrominance blocks 21c, 21d, and 21e cannot be used until the decoding of the luminance block 21a is completed. That is, until the decoding of the luminance block 21a is completed and the decoding of the first chrominance block 21b is not completed, the degree of correlation between the peripheral pixels of the luminance signal and the peripheral pixels of the chrominance signal in step S1901 of FIG. 19 cannot be calculated for the second chrominance block 21c. Similarly, for the third chrominance block 21d, until the decoding of the luminance block 21a is completed and the decoding of the first and second chrominance blocks 21b and 21c is not completed, the degree of correlation between the peripheral pixels of the luminance signal and the peripheral pixels of the chrominance signals cannot be calculated for the third chrominance block 21d. Similarly, for the fourth chrominance block 21e, unless the decoding of the luminance block 21a is completed and the decoding of the first to third chrominance blocks 21b, 21c, and 21d is not completed, the degree of correlation between the surrounding pixels of the luminance signal and the surrounding pixels of the chrominance signals cannot be calculated for the fourth chrominance block 21e.

このように、色差ブロックのサイズが輝度ブロックのサイズよりも小さい場合、輝度色差イントラ予測を行うと、色差ブロックの予測処理において、輝度ブロックと色差ブロック間及び色差ブロック間で処理の依存関係があり並列処理に向かない。そこで、色差ブロックのサイズが輝度ブロックのサイズよりも小さい場合、輝度色差イントラ予測を制限する。輝度色差イントラ予測を制限する方法としては、(1)シンタックスで制限する、(2)イントラ色差モードを置き換える、(3)周辺画素を置き換える、などがある。 In this way, when the size of the chrominance block is smaller than the size of the luma block, performing luma-chrominance intra prediction results in processing dependencies between the luma block and the chrominance block and between the chroma blocks in the prediction processing of the chroma block, making parallel processing unsuitable. Therefore, when the size of the chrominance block is smaller than the size of the luma block, the luma-chrominance intra prediction is restricted. Methods for restricting luma-chrominance intra prediction include (1) restricting by syntax, (2) replacing intra-chroma mode, and (3) replacing peripheral pixels.

図22にイントラ色差予測モードのシンタックスの例を示す。色差予測モードの番号が0の場合、輝度予測モードと同一のイントラ予測モードを色差予測モードに使用する。例えば、輝度予測モードが水平予測モードの場合、色差予測モードも水平予測モードとなる。色差予測モードの番号が1の場合、平均値モード(DCモード)を使用する。DCモードは周辺画素の平均値でイントラ予測する。色差予測モードの番号が2の場合、輝度色差イントラ予測モードを使用する。 FIG. 22 shows an example of the syntax of intra color difference prediction mode. When the color difference prediction mode number is 0, the same intra prediction mode as the luminance prediction mode is used for the color difference prediction mode. For example, when the luminance prediction mode is the horizontal prediction mode, the color difference prediction mode is also the horizontal prediction mode. When the color difference prediction mode number is 1, the mean value mode (DC mode) is used. In the DC mode, intra prediction is performed using the average value of surrounding pixels. If the chrominance prediction mode number is 2, then the luma chrominance intra prediction mode is used.

輝度色差イントラ予測を制限する方法として、(1)シンタックスで制限する場合、モード2は輝度色差イントラ予測を表すため使用禁止となる。つまり、モード2は伝送されず、イントラ色差モードはモード0とモード1から選択される。 As a method of restricting luma-chrominance intra prediction, (1) when restricting by syntax, mode 2 is prohibited because it represents luma-chrominance intra prediction. That is, mode 2 is not transmitted, and the intra color difference mode is selected from mode 0 and mode 1.

輝度色差イントラ予測を制限する方法として、(2)イントラ色差モードを置き換える場合、色差予測モードの番号がモード2として指定された場合に、輝度色差イントラ予測モードではなく、代わりに垂直予測モードを使用する。ただし、置き換える予測モードは垂直予測モードに限らず、他の予測モードでもよい。また、モード0の輝度予測モードとモード2で置き換えるモードが同一になり、使用するモードが重複することがないようにすることがより好ましい。 As a method of limiting luma-chrominance intra prediction, (2) when replacing intra-chroma mode, if the number of the chroma prediction mode is specified as mode 2, instead of luma-chrominance intra prediction mode, use vertical prediction mode instead. However, the replacement prediction mode is not limited to the vertical prediction mode, and may be another prediction mode. Moreover, it is more preferable that the luminance prediction mode of mode 0 and the mode to be replaced by mode 2 are the same so that the modes to be used do not overlap.

輝度色差イントラ予測を制限する方法として、(3)周辺画素を置き換える場合、図19のステップS1901の輝度信号の周辺画素と色差信号の周辺画素間の相関度合いを算出するための周辺画素を置き換える。図21の第2~第4色差ブロック21c、21d、21eにおいても輝度ブロック21aの復号を待たずに周辺画素の相関度合いを算出できるようにする。 As a method of limiting the luminance/chrominance intra prediction, (3) when replacing the surrounding pixels, the surrounding pixels for calculating the degree of correlation between the surrounding pixels of the luminance signal and the surrounding pixels of the color difference signals in step S1901 of FIG. 19 are replaced. In the second to fourth chrominance blocks 21c, 21d, and 21e in FIG. 21 as well, the degree of correlation of peripheral pixels can be calculated without waiting for the decoding of the luminance block 21a.

周辺画素の置き換えの例を図23に示す。第2色差ブロック21cの左辺の周辺画素として通常は第1色差ブロック21b内の画素を使用するが、第1色差ブロック21b内の画素を使用するには、輝度ブロック21a及び第1色差ブロック21bの復号完了を待つ必要がある。そこで、輝度ブロック21aの復号完了を待たずに使用可能な領域21fを第2色差ブロック21cの周辺画素として使用する。同様に、第3色差ブロック21dについても、輝度ブロック21aの復号完了を待たずに使用可能な領域21fを第3色差ブロック21dの周辺画素として使用する。同様に、第4色差ブロック21eについても、輝度ブロック21aの復号完了を待たずに使用可能な領域21fを第4色差ブロック21eの周辺画素として使用する。 FIG. 23 shows an example of replacement of peripheral pixels. The pixels in the first chrominance block 21b are normally used as the peripheral pixels on the left side of the second chrominance block 21c, but in order to use the pixels in the first chrominance block 21b, it is necessary to wait until the decoding of the luminance block 21a and the first chrominance block 21b is completed. Therefore, the usable area 21f is used as the peripheral pixels of the second chrominance block 21c without waiting for the completion of the decoding of the luminance block 21a. Similarly, for the third chrominance block 21d, the available area 21f is used as peripheral pixels of the third chrominance block 21d without waiting for the completion of decoding of the luminance block 21a. Similarly, for the fourth chrominance block 21e, the available area 21f is used as the peripheral pixels of the fourth chrominance block 21e without waiting for the completion of decoding of the luminance block 21a.

このように、第1の実施の形態では、輝度色差イントラ予測を行う際に、色差ブロックのサイズが輝度ブロックのサイズよりも小さい場合、輝度色差イントラ予測を制限することにより、輝度ブロックと色差ブロック間で処理の依存関係を緩和することが可能になる。これにより、輝度ブロックと色差ブロックの並列処理が可能になり、符号化・復号化の処理量を削減できる。 As described above, in the first embodiment, if the size of a chrominance block is smaller than the size of a luminance block when performing luminance/chrominance intra prediction, by limiting the luminance/chrominance intra prediction, it is possible to relax the processing dependency between the luminance block and the chrominance block. This enables parallel processing of luminance blocks and chrominance blocks, reducing the amount of processing for encoding and decoding.

(第2の実施の形態)
本発明の第2の実施の形態について説明する。第2の実施の形態では、輝度ブロックと色差ブロックのサイズの大小関係ではなく、輝度ブロックのサイズと色差ブロックのサイズのそれぞれを独立に評価して輝度色差イントラ予測を制限することが第1の実施の形態とは異なり、それ以外の構成と動作は第1の実施の形態と同じである。
(Second embodiment)
A second embodiment of the present invention will be described. The second embodiment is different from the first embodiment in that the size of the luminance block and the size of the chrominance block are independently evaluated instead of the size relationship between the luminance block and the chrominance block to limit the luminance/chrominance intra prediction.

まず、輝度ブロックのサイズに基づく制限について説明する。図24(a)~図24(c)に輝度ブロックのサイズの違いによる輝度色差イントラ予測を示す。図24(a)、図24(b)に示すように、第1輝度ブロック24aは第1色差ブロック24eの位置に対応し、第2輝度ブロック24bは第2色差ブロック24fの位置に対応し、第3輝度ブロック24cは第3色差ブロック24gの位置に対応し、第4輝度ブロック24dは第4色差ブロック24hの位置に対応する。また、図24(c)の輝度ブロック24iは、図24(b)の第1~第4色差ブロック24e、24f、24g、24hの位置に対応する。 First, the limitation based on the size of the luminance block will be described. FIGS. 24(a) to 24(c) show luma-chrominance intra prediction with different luma block sizes. As shown in FIGS. 24A and 24B, the first luminance block 24a corresponds to the position of the first color difference block 24e, the second luminance block 24b corresponds to the position of the second color difference block 24f, the third luminance block 24c corresponds to the position of the third color difference block 24g, and the fourth luminance block 24d corresponds to the position of the fourth color difference block 24h. Also, the luminance block 24i in FIG. 24(c) corresponds to the positions of the first to fourth color difference blocks 24e, 24f, 24g, and 24h in FIG. 24(b).

輝度ブロックと色差ブロックの依存関係について説明する。図24(a)のように輝度ブロックのサイズが小さい場合、第1輝度ブロック24aの復号が完了すると、第1色差ブロック24eの復号が可能になる。第2輝度ブロック24bの復号が完了すると、第2色差ブロック24fの復号が可能になる。第3輝度ブロック24cの復号が完了すると、第3色差ブロック24gの復号が可能になる。第4輝度ブロック24dの復号が完了すると、第4色差ブロック24hの復号が可能になる。 Dependencies between luminance blocks and chrominance blocks will be described. When the size of the luminance block is small as shown in FIG. 24(a), when the decoding of the first luminance block 24a is completed, the first chrominance block 24e can be decoded. Once the decoding of the second luminance block 24b is completed, the second chrominance block 24f can be decoded. Once the decoding of the third luminance block 24c is completed, the third chrominance block 24g can be decoded. When the decoding of the fourth luminance block 24d is completed, the fourth chrominance block 24h can be decoded.

一方、図24(c)のように輝度ブロックのサイズが大きい場合、輝度ブロック24iの復号が完了しないと、第1~第4色差ブロック24e、24f、24g、24hの復号はすべて可能にならない。 On the other hand, when the size of the luminance block is large as shown in FIG. 24(c), all the first to fourth color difference blocks 24e, 24f, 24g, and 24h cannot be decoded until the decoding of the luminance block 24i is completed.

輝度ブロックの分割と色差ブロックの分割を独立して決定する場合、輝度ブロックの絶対サイズが大きいと、色差ブロックのサイズが輝度ブロックのサイズよりも小さくなる可能性が高まる。そこで、輝度ブロックの絶対サイズが所定サイズ以上の場合、対応する色差ブロックの輝度色差イントラ予測を制限する。 If the luminance block division and the chrominance block division are determined independently, a large absolute size of the luminance block increases the possibility that the size of the chroma block will be smaller than the size of the luminance block. Therefore, when the absolute size of a luminance block is equal to or larger than a predetermined size, the luminance/chrominance intra-prediction of the corresponding chrominance block is restricted.

同様に、色差ブロックの絶対サイズが小さいと、色差ブロックのサイズが輝度ブロックのサイズよりも小さくなる可能性が高まる。そこで、色差ブロックの絶対サイズが所定サイズ以下の場合、色差ブロックの輝度色差イントラ予測を制限する。 Similarly, the smaller absolute size of the chroma blocks increases the likelihood that the size of the chroma blocks will be smaller than the size of the luma blocks. Therefore, when the absolute size of the chrominance block is equal to or less than a predetermined size, the luminance/chrominance intra prediction of the chrominance block is restricted.

輝度色差イントラ予測の制限方法は、第1の実施の形態と同様である。 The method of limiting luminance/chrominance intra prediction is the same as in the first embodiment.

このように、第2の実施の形態では、輝度ブロックの絶対サイズが閾値よりも大きい場合、又は、色差ブロックの絶対サイズが閾値よりも小さい場合に、輝度色差イントラ予測を制限する。これにより、色差ブロックのサイズが輝度ブロックのサイズよりも小さくなる場合を予想して、輝度色差イントラ予測を制限し、輝度ブロックと色差ブロック間で処理の依存関係を確率的に緩和することが可能になる。 Thus, in the second embodiment, luma-chrominance intra prediction is restricted when the absolute size of a luma block is larger than a threshold or when the absolute size of a chrominance block is smaller than a threshold. As a result, in anticipation of the case where the size of the chroma block is smaller than the size of the luma block, it is possible to limit luma-chrominance intra prediction and stochastically relax the processing dependency between the luma block and the chroma block.

(第3の実施の形態)
本発明の第3の実施の形態について説明する。第3の実施の形態では、ブロック分割部101において、色差ブロックのサイズが輝度ブロックのサイズより小さくならないように、色差ブロックを分割することが第1の実施の形態とは異なり、それ以外の構成と動作は第1の実施の形態と同じである。ブロック分割部101は、色差ブロックを分割する際、色差ブロックのサイズが輝度ブロックのサイズ未満になるような分割を禁止する。これにより、輝度色差イントラ予測において、色差ブロックのサイズが輝度ブロックのサイズより小さくなることが回避され、輝度ブロックと色差ブロックの並列処理が常に可能になる。
(Third Embodiment)
A third embodiment of the present invention will be described. In the third embodiment, the block division unit 101 divides the chrominance blocks so that the size of the chrominance blocks does not become smaller than the size of the luminance blocks. When dividing a chrominance block, the block division unit 101 prohibits division such that the size of the chrominance block is smaller than the size of the luminance block. This prevents the size of the chrominance block from being smaller than the size of the luma block in the luma-chrominance intra prediction, and parallel processing of the luma block and the chroma block is always possible.

以上述べた実施の形態の画像符号化装置が出力する画像の符号化ビットストリームは、実施の形態で用いられた符号化方法に応じて復号化することができるように特定のデータフォーマットを有しており、画像符号化装置に対応する画像復号化装置がこの特定のデータフォーマットの符号化ビットストリームを復号化することができる。 The coded bitstream of the image output by the image coding apparatus of the embodiment described above has a specific data format so that it can be decoded according to the coding method used in the embodiment, and the image decoding apparatus corresponding to the image coding apparatus can decode the coded bitstream of this specific data format.

画像符号化装置と画像復号化装置の間で符号化ビットストリームをやりとりするために、有線または無線のネットワークが用いられる場合、符号化ビットストリームを通信路の伝送形態に適したデータ形式に変換して伝送してもよい。その場合、画像符号化装置が出力する符号化ビットストリームを通信路の伝送形態に適したデータ形式の符号化データに変換してネットワークに送信する送信装置と、ネットワークから符号化データを受信して符号化ビットストリームに復元して画像復号化装置に供給する受信装置とが設けられる。 When a wired or wireless network is used to exchange an encoded bitstream between an image encoding device and an image decoding device, the encoded bitstream may be converted into a data format suitable for the transmission format of the communication channel and transmitted. In this case, a transmission device that converts an encoded bitstream output from an image encoding device into encoded data in a data format suitable for the transmission mode of a communication channel and transmits the encoded data to a network, and a receiving device that receives the encoded data from the network, restores it to an encoded bitstream, and supplies the encoded bitstream to the image decoding device are provided.

送信装置は、画像符号化装置が出力する符号化ビットストリームをバッファするメモリと、符号化ビットストリームをパケット化するパケット処理部と、パケット化された符号化データをネットワークを介して送信する送信部とを含む。受信装置は、パケット化された符号化データをネットワークを介して受信する受信部と、受信された符号化データをバッファするメモリと、符号化データをパケット処理して符号化ビットストリームを生成し、画像復号化装置に提供するパケット処理部とを含む。 The transmission device includes a memory that buffers the encoded bitstream output from the image encoding device, a packet processing unit that packetizes the encoded bitstream, and a transmission unit that transmits the packetized encoded data via the network. The receiving device includes a receiving unit that receives packetized encoded data via a network, a memory that buffers the received encoded data, and a packet processing unit that packetizes the encoded data to generate an encoded bitstream and provides it to an image decoding device.

また、画像復号化装置で復号化された画像を表示する表示部を構成に追加することで、表示装置とすることも可能である。その場合、表示部は、復号画像信号重畳部205により生成され、復号画像メモリ206に格納された復号画像信号を読み出して画面に表示する。 Further, by adding a display section for displaying an image decoded by the image decoding device to the configuration, it is also possible to make a display device. In this case, the display unit reads the decoded image signal generated by the decoded image signal superimposing unit 205 and stored in the decoded image memory 206 and displays it on the screen.

また、撮像部を構成に追加し、撮像した画像を画像符号化装置に入力することで、撮像装置とすることも可能である。その場合、撮像部は、撮像した画像信号をブロック分割部101に入力する。 Further, by adding an imaging unit to the configuration and inputting the captured image to the image encoding device, it is possible to construct an imaging device. In that case, the imaging unit inputs the image signal of the imaged image to the block dividing unit 101 .

以上の符号化及び復号化に関する処理は、ハードウェアを用いた伝送、蓄積、受信装置として実現することができるのは勿論のこと、ROM(リード・オンリ・メモリ)やフラッシュメモリ等に記憶されているファームウェアや、コンピュータ等のソフトウェアによっても実現することができる。そのファームウェアプログラム、ソフトウェアプログラムをコンピュータ等で読み取り可能な記録媒体に記録して提供することも、有線あるいは無線のネットワークを通してサーバから提供することも、地上波あるいは衛星ディジタル放送のデータ放送として提供することも可能である。 The above encoding and decoding processes can be realized not only as a transmission, storage, and reception device using hardware, but also as firmware stored in a ROM (read only memory), flash memory, etc., or software such as a computer. The firmware program and software program can be recorded on a computer-readable recording medium and provided, provided from a server through a wired or wireless network, or provided as data broadcasting of terrestrial or satellite digital broadcasting.

以上、本発明を実施の形態をもとに説明した。実施の形態は例示であり、それらの各構成要素や各処理プロセスの組合せにいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。 The present invention has been described above based on the embodiments. It should be understood by those skilled in the art that the embodiment is an example, and that various modifications can be made to the combination of each component and each treatment process, and that such modifications are within the scope of the present invention.

100 画像符号化装置、 101 ブロック分割部、 102 予測画像生成部、 103 残差信号生成部、 104 直交変換・量子化部、 105 符号化ビット列生成部、 106 逆量子化・逆直交変換部、 107 復号画像信号重畳部、 108 復号画像メモリ、 200 画像復号化装置、 201 ビット列復号部、 202 ブロック分割部、 203 逆量子化・逆直交変換部、 204 予測画像生成部、 205 復号画像信号重畳部、 206 復号画像メモリ。 100 image encoding device 101 block division unit 102 prediction image generation unit 103 residual signal generation unit 104 orthogonal transformation/quantization unit 105 encoded bit string generation unit 106 inverse quantization/inverse orthogonal transformation unit 107 decoded image signal superimposition unit 108 decoded image memory 200 image decoding device 201 bit string decoding unit 202 block division Section 203 Inverse Quantization/Inverse Orthogonal Transformation Section 204 Predicted Image Generation Section 205 Decoded Image Signal Superposition Section 206 Decoded Image Memory.

Claims (8)

画像をブロックに分割し、分割されたブロック単位で符号化を行う画像符号化装置であって、
前記画像の輝度信号を所定サイズの矩形に分割して輝度信号ブロックを生成する輝度信号ブロック分割部と、
前記画像の色差信号を所定サイズの矩形に分割して色差信号ブロックを生成する色差信号ブロック分割部と、
輝度信号を予測する輝度信号予測部と、
色差信号を予測する色差信号予測部と、
予測モードを符号化してビットストリームを生成する符号化部とを含み、
前記輝度信号ブロックと前記色差信号ブロックは、イントラ予測の場合にはそれぞれ独立して分割され、インター予測の場合には一緒に分割され、
前記色差信号予測部は、符号化された輝度信号から色差信号を予測する輝度色差イントラ予測が前記予測モードの一部として可能であり、前記輝度信号ブロックのサイズが所定サイズ以上の場合、前記輝度色差イントラ予測の使用を前記予測モードの一部としないことにより禁止し、
インター予測の場合、輝度信号ブロックと色差信号ブロックは、同一のサイズのブロックに分割される
ことを特徴とする画像符号化装置。
An image encoding device that divides an image into blocks and performs coding in units of divided blocks,
a luminance signal block division unit that divides the luminance signal of the image into rectangles of a predetermined size to generate luminance signal blocks;
a color difference signal block division unit that divides the color difference signals of the image into rectangles of a predetermined size to generate color difference signal blocks;
a luminance signal prediction unit that predicts a luminance signal;
a color difference signal prediction unit that predicts color difference signals;
an encoding unit that encodes the prediction mode to generate a bitstream;
the luminance signal block and the chrominance signal block are split independently for intra prediction and jointly for inter prediction;
The chrominance signal prediction unit is capable of performing luminance chrominance intra prediction for predicting a chrominance signal from an encoded luminance signal as part of the prediction mode, and when the size of the luminance signal block is equal to or larger than a predetermined size, prohibits the use of the luminance chrominance intra prediction by not making it part of the prediction mode,
1. An image coding apparatus characterized in that, in the case of inter prediction, a luminance signal block and a color difference signal block are divided into blocks of the same size.
画像をブロックに分割し、分割されたブロック単位で符号化を行う画像符号化方法であって、
前記画像の輝度信号を所定サイズの矩形に分割して輝度信号ブロックを生成する輝度信号ブロック分割ステップと、
前記画像の色差信号を所定サイズの矩形に分割して色差信号ブロックを生成する色差信号ブロック分割ステップと、
輝度信号を予測する輝度信号予測ステップと、
色差信号を予測する色差信号予測ステップと、
予測モードを符号化してビットストリームを生成する符号化ステップとを含み、
前記輝度信号ブロックと前記色差信号ブロックは、イントラ予測の場合にはそれぞれ独立して分割され、インター予測の場合には一緒に分割され、
前記色差信号予測ステップは、符号化された輝度信号から色差信号を予測する輝度色差イントラ予測が前記予測モードの一部として可能であり、前記輝度信号ブロックのサイズが所定サイズ以上の場合、前記輝度色差イントラ予測の使用を前記予測モードの一部としないことにより禁止し、
インター予測の場合、輝度信号ブロックと色差信号ブロックは、同一のサイズのブロックに分割される
ことを特徴とする画像符号化方法。
An image encoding method that divides an image into blocks and encodes each divided block,
a luminance signal block division step of dividing the luminance signal of the image into rectangles of a predetermined size to generate luminance signal blocks;
a chrominance signal block dividing step of dividing the chrominance signals of the image into rectangles of a predetermined size to generate color difference signal blocks;
a luminance signal prediction step of predicting a luminance signal;
a color difference signal prediction step of predicting a color difference signal;
encoding the prediction mode to generate a bitstream;
the luminance signal block and the chrominance signal block are split independently for intra prediction and jointly for inter prediction;
In the chrominance signal prediction step, if luminance chrominance intra prediction for predicting a chrominance signal from an encoded luminance signal is possible as part of the prediction mode, and the size of the luminance signal block is equal to or larger than a predetermined size, use of the luminance chrominance intra prediction is prohibited by not making it part of the prediction mode,
An image coding method, wherein, in the case of inter prediction, a luminance signal block and a color difference signal block are divided into blocks of the same size.
画像をブロックに分割し、分割されたブロック単位で符号化を行う画像符号化プログラムであって、
前記画像の輝度信号を所定サイズの矩形に分割して輝度信号ブロックを生成する輝度信号ブロック分割ステップと、
前記画像の色差信号を所定サイズの矩形に分割して色差信号ブロックを生成する色差信号ブロック分割ステップと、
輝度信号を予測する輝度信号予測ステップと、
色差信号を予測する色差信号予測ステップと、
予測モードを符号化してビットストリームを生成する符号化ステップとをコンピュータに実行させ、
前記輝度信号ブロックと前記色差信号ブロックは、イントラ予測の場合にはそれぞれ独立して分割され、インター予測の場合には一緒に分割され、
前記色差信号予測ステップは、符号化された輝度信号から色差信号を予測する輝度色差イントラ予測が前記予測モードの一部として可能であり、前記輝度信号ブロックのサイズが所定サイズ以上の場合、前記輝度色差イントラ予測の使用を前記予測モードの一部としないことにより禁止し、
インター予測の場合、輝度信号ブロックと色差信号ブロックは、同一のサイズのブロックに分割される
ことを特徴とする画像符号化プログラム。
An image encoding program that divides an image into blocks and encodes each divided block unit,
a luminance signal block division step of dividing the luminance signal of the image into rectangles of a predetermined size to generate luminance signal blocks;
a chrominance signal block dividing step of dividing the chrominance signals of the image into rectangles of a predetermined size to generate color difference signal blocks;
a luminance signal prediction step of predicting a luminance signal;
a color difference signal prediction step of predicting a color difference signal;
causing a computer to perform an encoding step of encoding the prediction mode to generate a bitstream;
the luminance signal block and the chrominance signal block are split independently for intra prediction and jointly for inter prediction;
In the chrominance signal prediction step, if luminance chrominance intra prediction for predicting a chrominance signal from an encoded luminance signal is possible as part of the prediction mode, and the size of the luminance signal block is equal to or larger than a predetermined size, use of the luminance chrominance intra prediction is prohibited by not making it part of the prediction mode,
An image coding program characterized in that, in the case of inter prediction, luminance signal blocks and color difference signal blocks are divided into blocks of the same size.
画像を分割したブロック単位で復号を行う画像復号装置であって、
符号化されたビットストリームを復号して予測モードを得る復号部と、
前記画像の輝度信号を所定サイズの矩形に分割して輝度信号ブロックを生成する輝度信号ブロック分割部と、
前記画像の色差信号を所定サイズの矩形に分割して色差信号ブロックを生成する色差信号ブロック分割部と、
輝度信号を予測する輝度信号予測部と、
色差信号を予測する色差信号予測部とを含み、
前記輝度信号ブロックと前記色差信号ブロックは、イントラ予測の場合にはそれぞれ独立して分割され、インター予測の場合には一緒に分割され、
前記色差信号予測部は、復号された輝度信号から色差信号を予測する輝度色差イントラ予測が前記予測モードの一部として可能であり、前記輝度信号ブロックのサイズが所定サイズ以上の場合、前記輝度色差イントラ予測の使用を前記予測モードの一部としないことにより禁止し、
インター予測の場合、輝度信号ブロックと色差信号ブロックは、同一のサイズのブロックに分割される
ことを特徴とする画像復号装置。
An image decoding device that performs decoding in units of blocks obtained by dividing an image,
a decoding unit that decodes the encoded bitstream to obtain a prediction mode;
a luminance signal block division unit that divides the luminance signal of the image into rectangles of a predetermined size to generate luminance signal blocks;
a color difference signal block division unit that divides the color difference signals of the image into rectangles of a predetermined size to generate color difference signal blocks;
a luminance signal prediction unit that predicts a luminance signal;
a color difference signal prediction unit that predicts color difference signals;
the luminance signal block and the chrominance signal block are split independently for intra prediction and jointly for inter prediction;
The chrominance signal prediction unit is capable of performing luminance chrominance intra prediction for predicting a chrominance signal from a decoded luminance signal as part of the prediction mode, and when the size of the luminance signal block is equal to or larger than a predetermined size, prohibits the use of the luminance chrominance intra prediction by not making it part of the prediction mode,
An image decoding device characterized in that, in the case of inter prediction, a luminance signal block and a color difference signal block are divided into blocks of the same size.
画像を分割したブロック単位で復号を行う画像復号方法であって、
符号化されたビットストリームを復号して予測モードを得る復号ステップと、
前記画像の輝度信号を所定サイズの矩形に分割して輝度信号ブロックを生成する輝度信号ブロック分割ステップと、
前記画像の色差信号を所定サイズの矩形に分割して色差信号ブロックを生成する色差信号ブロック分割ステップと、
輝度信号を予測する輝度信号予測ステップと、
色差信号を予測する色差信号予測ステップとを含み、
前記輝度信号ブロックと前記色差信号ブロックは、イントラ予測の場合にはそれぞれ独立して分割され、インター予測の場合には一緒に分割され、
前記色差信号予測ステップは、復号された輝度信号から色差信号を予測する輝度色差イントラ予測が前記予測モードの一部として可能であり、前記輝度信号ブロックのサイズが所定サイズ以上の場合、前記輝度色差イントラ予測の使用を前記予測モードの一部としないことにより禁止し、
インター予測の場合、輝度信号ブロックと色差信号ブロックは、同一のサイズのブロックに分割される
ことを特徴とする画像復号方法。
An image decoding method for decoding in units of blocks obtained by dividing an image,
a decoding step of decoding the encoded bitstream to obtain a prediction mode;
a luminance signal block division step of dividing the luminance signal of the image into rectangles of a predetermined size to generate luminance signal blocks;
a chrominance signal block dividing step of dividing the chrominance signals of the image into rectangles of a predetermined size to generate color difference signal blocks;
a luminance signal prediction step of predicting a luminance signal;
a color difference signal prediction step of predicting the color difference signal;
the luminance signal block and the chrominance signal block are split independently for intra prediction and jointly for inter prediction;
In the chrominance signal prediction step, when luminance chrominance intra prediction for predicting a chrominance signal from a decoded luminance signal is possible as part of the prediction mode, and the size of the luminance signal block is equal to or larger than a predetermined size, use of the luminance chrominance intra prediction is prohibited by not making it part of the prediction mode,
An image decoding method, wherein, in the case of inter prediction, a luminance signal block and a color difference signal block are divided into blocks of the same size.
画像を分割したブロック単位で復号を行う画像復号プログラムであって、
符号化されたビットストリームを復号して予測モードを得る復号ステップと、
前記画像の輝度信号を所定サイズの矩形に分割して輝度信号ブロックを生成する輝度信号ブロック分割ステップと、
前記画像の色差信号を所定サイズの矩形に分割して色差信号ブロックを生成する色差信号ブロック分割ステップと、
輝度信号を予測する輝度信号予測ステップと、
色差信号を予測する色差信号予測ステップとをコンピュータに実行させ、
前記輝度信号ブロックと前記色差信号ブロックは、イントラ予測の場合にはそれぞれ独立して分割され、インター予測の場合には一緒に分割され、
前記色差信号予測ステップは、復号された輝度信号から色差信号を予測する輝度色差イントラ予測が前記予測モードの一部として可能であり、前記輝度信号ブロックのサイズが所定サイズ以上の場合、前記輝度色差イントラ予測の使用を前記予測モードの一部としないことにより禁止し、
インター予測の場合、輝度信号ブロックと色差信号ブロックは、同一のサイズのブロックに分割される
ことを特徴とする画像復号プログラム。
An image decoding program for decoding in units of blocks obtained by dividing an image,
a decoding step of decoding the encoded bitstream to obtain a prediction mode;
a luminance signal block division step of dividing the luminance signal of the image into rectangles of a predetermined size to generate luminance signal blocks;
a chrominance signal block dividing step of dividing the chrominance signals of the image into rectangles of a predetermined size to generate color difference signal blocks;
a luminance signal prediction step of predicting a luminance signal;
causing a computer to execute a color difference signal prediction step of predicting a color difference signal;
the luminance signal block and the chrominance signal block are split independently for intra prediction and jointly for inter prediction;
In the chrominance signal prediction step, when luminance chrominance intra prediction for predicting a chrominance signal from a decoded luminance signal is possible as part of the prediction mode, and the size of the luminance signal block is equal to or larger than a predetermined size, use of the luminance chrominance intra prediction is prohibited by not making it part of the prediction mode,
An image decoding program characterized in that, in the case of inter prediction, luminance signal blocks and color difference signal blocks are divided into blocks of the same size.
画像をブロックに分割し、分割されたブロック単位で符号化したビットストリームを記録媒体に格納する格納方法であって、
前記画像の輝度信号を所定サイズの矩形に分割して輝度信号ブロックを生成する輝度信号ブロック分割ステップと、
前記画像の色差信号を所定サイズの矩形に分割して色差信号ブロックを生成する色差信号ブロック分割ステップと、
輝度信号を予測する輝度信号予測ステップと、
色差信号を予測する色差信号予測ステップと、
予測モードを符号化してビットストリームを生成する符号化ステップと、
前記ビットストリームを記録媒体に格納する格納ステップと、
前記輝度信号ブロックと前記色差信号ブロックは、イントラ予測の場合にはそれぞれ独立して分割され、インター予測の場合には一緒に分割され、
前記色差信号予測ステップは、符号化された輝度信号から色差信号を予測する輝度色差イントラ予測が前記予測モードの一部として可能であり、前記輝度信号ブロックのサイズが所定サイズ以上の場合、前記輝度色差イントラ予測の使用を前記予測モードの一部としないことにより禁止し、
インター予測の場合、輝度信号ブロックと色差信号ブロックは、同一のサイズのブロックに分割されることを特徴とする格納方法。
A storage method for dividing an image into blocks and storing a bitstream encoded in units of divided blocks in a recording medium,
a luminance signal block division step of dividing the luminance signal of the image into rectangles of a predetermined size to generate luminance signal blocks;
a chrominance signal block dividing step of dividing the chrominance signals of the image into rectangles of a predetermined size to generate color difference signal blocks;
a luminance signal prediction step of predicting a luminance signal;
a color difference signal prediction step of predicting a color difference signal;
an encoding step of encoding the prediction mode to generate a bitstream;
a storing step of storing the bitstream on a recording medium;
the luminance signal block and the chrominance signal block are split independently for intra prediction and jointly for inter prediction;
In the chrominance signal prediction step, if luminance chrominance intra prediction for predicting a chrominance signal from an encoded luminance signal is possible as part of the prediction mode, and the size of the luminance signal block is equal to or larger than a predetermined size, use of the luminance chrominance intra prediction is prohibited by not making it part of the prediction mode,
A storage method characterized in that, in the case of inter prediction, a luminance signal block and a color difference signal block are divided into blocks of the same size.
画像をブロックに分割し、分割されたブロック単位で符号化したビットストリームを伝送する伝送方法であって、
前記画像の輝度信号を所定サイズの矩形に分割して輝度信号ブロックを生成する輝度信号ブロック分割ステップと、
前記画像の色差信号を所定サイズの矩形に分割して色差信号ブロックを生成する色差信号ブロック分割ステップと、
輝度信号を予測する輝度信号予測ステップと、
色差信号を予測する色差信号予測ステップと、
予測モードを符号化してビットストリームを生成する符号化ステップと、
前記ビットストリームを伝送する伝送ステップと、
前記輝度信号ブロックと前記色差信号ブロックは、イントラ予測の場合にはそれぞれ独立して分割され、インター予測の場合には一緒に分割され、
前記色差信号予測ステップは、符号化された輝度信号から色差信号を予測する輝度色差イントラ予測が前記予測モードの一部として可能であり、前記輝度信号ブロックのサイズが所定サイズ以上の場合、前記輝度色差イントラ予測の使用を前記予測モードの一部としないことにより禁止し、
インター予測の場合、輝度信号ブロックと色差信号ブロックは、同一のサイズのブロックに分割されることを特徴とする伝送方法。
A transmission method for dividing an image into blocks and transmitting a bitstream encoded in units of the divided blocks,
a luminance signal block division step of dividing the luminance signal of the image into rectangles of a predetermined size to generate luminance signal blocks;
a chrominance signal block dividing step of dividing the chrominance signals of the image into rectangles of a predetermined size to generate color difference signal blocks;
a luminance signal prediction step of predicting a luminance signal;
a color difference signal prediction step of predicting a color difference signal;
an encoding step of encoding the prediction mode to generate a bitstream;
a transmitting step of transmitting said bitstream;
the luminance signal block and the chrominance signal block are split independently for intra prediction and jointly for inter prediction;
In the chrominance signal prediction step, if luminance chrominance intra prediction for predicting a chrominance signal from an encoded luminance signal is possible as part of the prediction mode, and the size of the luminance signal block is equal to or larger than a predetermined size, use of the luminance chrominance intra prediction is prohibited by not making it part of the prediction mode,
A transmission method characterized in that, in the case of inter prediction, a luminance signal block and a color difference signal block are divided into blocks of the same size.
JP2023090936A 2021-08-31 2023-06-01 Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method and image decoding program Pending JP2023101760A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023090936A JP2023101760A (en) 2021-08-31 2023-06-01 Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method and image decoding program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2021141337A JP2022019711A (en) 2020-02-27 2021-08-31 Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method and image decoding program
JP2023090936A JP2023101760A (en) 2021-08-31 2023-06-01 Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method and image decoding program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2021141337A Division JP2022019711A (en) 2020-02-27 2021-08-31 Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method and image decoding program

Publications (1)

Publication Number Publication Date
JP2023101760A true JP2023101760A (en) 2023-07-21

Family

ID=80204151

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2023090936A Pending JP2023101760A (en) 2021-08-31 2023-06-01 Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method and image decoding program

Country Status (1)

Country Link
JP (1) JP2023101760A (en)

Similar Documents

Publication Publication Date Title
RU2770686C1 (en) Image encoding device, image encoding method, image decoding device and image decoding method
JP7183334B2 (en) Image encoding device, image encoding method and image encoding program, image decoding device, image decoding method and image decoding program
KR102302932B1 (en) Picture coding apparatus, picture coding method and picture coding program, and picture decoding apparatus, picture decoding method and picture decoding program
JP2023101760A (en) Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method and image decoding program
JP7276549B2 (en) Image encoding device, image encoding method and image encoding program, image decoding device, image decoding method and image decoding program
JP2022019711A (en) Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method and image decoding program
RU2749503C9 (en) Picture encoding device, picture encoding method and computer readable medium with picture encoding program, and picture decoding device, picture decoding method and computer readable medium with picture decoding program
RU2754635C9 (en) Image encoding device, image encoding method, computer readable medium with image encoding program, image decoding device, image decoding method and computer readable medium with image decoding program
RU2773145C9 (en) Picture encoding device, picture encoding method, picture decoding device and picture decoding method
RU2773145C1 (en) Image encoding device, image encoding method, image decoding device and image decoding method
JP2020010342A (en) Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method, and image decoding program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230601

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240531

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240604