Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7049434B2 - Image decoder, image decoding method and program - Google Patents
[go: Go Back, main page]

JP7049434B2 - Image decoder, image decoding method and program - Google Patents

Image decoder, image decoding method and program Download PDF

Info

Publication number
JP7049434B2
JP7049434B2 JP2020206018A JP2020206018A JP7049434B2 JP 7049434 B2 JP7049434 B2 JP 7049434B2 JP 2020206018 A JP2020206018 A JP 2020206018A JP 2020206018 A JP2020206018 A JP 2020206018A JP 7049434 B2 JP7049434 B2 JP 7049434B2
Authority
JP
Japan
Prior art keywords
conversion
block
transformation
coefficient
unit
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.)
Active
Application number
JP2020206018A
Other languages
Japanese (ja)
Other versions
JP2021044844A5 (en
JP2021044844A (en
Inventor
佳隆 木谷
恭平 海野
圭 河村
整 内藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
KDDI Corp
Original Assignee
KDDI Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by KDDI Corp filed Critical KDDI Corp
Priority to JP2020206018A priority Critical patent/JP7049434B2/en
Publication of JP2021044844A publication Critical patent/JP2021044844A/en
Publication of JP2021044844A5 publication Critical patent/JP2021044844A5/ja
Priority to JP2021144796A priority patent/JP7184984B2/en
Priority to JP2022035020A priority patent/JP2022088421A/en
Application granted granted Critical
Publication of JP7049434B2 publication Critical patent/JP7049434B2/en
Priority to JP2022187830A priority patent/JP7526552B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

本発明は、画像復号装置、画像復号方法及びプログラムに関する。 The present invention relates to an image decoding device, an image decoding method and a program.

従来、一次変換後の係数に対して二次変換を行うRST(Reduced Secondary Transform)(非特許文献2参照)及びLFNST(Low-Fre
quency Non-Separable Transform)(非特許文献1参照
)という技術が知られている。
Conventionally, RST (Reduced Secondary Transfer) (see Non-Patent Document 2) and LFNST (Low-Fre) that perform a secondary conversion on a coefficient after a primary conversion.
A technique called separable Non-Separable Transfer (see Non-Patent Document 1) is known.

Versatile Video Coding(Draft 5)、JVET-N1001Versatile Video Coding (Draft 5), JVET-N1001 CE6:Reduced Secondary Transform(RST)(CE6-3.1)、JVET-N0193CE6: Redened Secondary Transfer (RST) (CE6-3.1), JVET-N0193 Algorithm description for Versatile Video Coding and Test Model 5 (VTM 5), JVET-N1002Algorithm Description for Versatile Video Coding and Test Model 5 (VTM 5), JVET-N1002

しかしながら、上述の従来技術では、係数の復号時に、非ゼロ係数の個数をカウントするカウンタを複数種類備え、カウンタの値を元に二次変換の適用有無を判定する。よって、二次変換の適用有無を判断するためだけに、係数のカウント処理を追加する必要がある。係数の復号処理は、高いスループットが必要とされる処理であるが、そこに追加の処理を行うことで処理負荷が増大してしまうという問題点があった。 However, in the above-mentioned conventional technique, when decoding a coefficient, a plurality of types of counters for counting the number of non-zero coefficients are provided, and whether or not the secondary transformation is applied is determined based on the value of the counter. Therefore, it is necessary to add a coefficient counting process only for determining whether or not the quadratic transformation is applied. The coefficient decoding process is a process that requires a high throughput, but there is a problem that the processing load increases by performing additional processing there.

そこで、本発明は、上述の課題に鑑みてなされたものであり、二次変換の適用有無を判定するための追加処理を省略でき、処理の高速化が期待できる画像復号装置、画像復号方法及びプログラムを提供することを目的とする。 Therefore, the present invention has been made in view of the above-mentioned problems, and an image decoding device, an image decoding method, and an image decoding device, which can omit additional processing for determining whether or not the secondary transformation is applied and can be expected to speed up the processing. The purpose is to provide a program.

本発明の第1の特徴は、画像復号装置であって、逆変換により予測残差信号を生成するように構成されている逆変換部を備え、前記逆変換部は、対象ブロックに対する二次変換の適用有無について判定し、前記判定結果に応じて変換係数の復号方法を制御するように構成されていることを要旨とする。 The first feature of the present invention is an image decoding apparatus, which includes an inverse conversion unit configured to generate a predicted residual signal by inverse conversion, and the inverse conversion unit is a secondary conversion with respect to a target block. It is a gist that it is configured to determine whether or not the application of the above is applied and to control the decoding method of the conversion coefficient according to the determination result.

本発明の第2の特徴は、画像復号装置であって、逆変換により予測残差信号を生成するように構成されている逆変換部を備え、前記逆変換部は、対象ブロックのサイズにより、前記対象ブロックの二次変換インデックスの復号方法を制御するように構成されていることを要旨とする。 The second feature of the present invention is an image decoding apparatus, which includes an inverse conversion unit configured to generate a predicted residual signal by inverse conversion, and the inverse conversion unit depends on the size of the target block. The gist is that it is configured to control the decoding method of the secondary transformation index of the target block.

本発明の第3の特徴は、画像復号装置であって、逆変換により予測残差信号を生成するように構成されている逆変換部を備え、前記逆変換部は、対象ブロックの非ゼロ係数の発生位置を示す情報により、前記対象ブロックの二次変換インデックスの復号方法を制御するように構成されていることを要旨とする。 The third feature of the present invention is an image decoding apparatus, which includes an inverse conversion unit configured to generate a predicted residual signal by inverse conversion, and the inverse conversion unit is a non-zero coefficient of the target block. It is a gist that it is configured to control the decoding method of the secondary transformation index of the target block by the information indicating the occurrence position of.

本発明の第3の特徴において、前記対象ブロックの前記非ゼロ係数の発生位置を示す情報が、前記対象ブロックに前記二次変換が適用されている場合に前記非ゼロ係数が発生し得ない係数位置を指している場合、前記逆変換部は、前記対象ブロックの前記二次変換インデックスを復号しないように構成されていてもよい。 In the third feature of the present invention, the information indicating the occurrence position of the non-zero coefficient of the target block is a coefficient at which the non-zero coefficient cannot occur when the quadratic transformation is applied to the target block. When pointing to a position, the inverse conversion unit may be configured not to decode the secondary conversion index of the target block.

本発明の第3の特徴において、前記対象ブロックの前記非ゼロ係数の発生位置を示す情報が、前記対象ブロックの直流成分の係数位置を指している場合、前記逆変換部は、前記対象ブロックの前記二次変換インデックスを復号しないように構成されていてもよい。 In the third feature of the present invention, when the information indicating the generation position of the non-zero coefficient of the target block points to the coefficient position of the DC component of the target block, the inverse conversion unit is the target block. It may be configured not to decode the secondary transformation index.

本発明の第4の特徴は、画像復号装置であって、逆変換により予測残差信号を生成するように構成されている逆変換部を備え、前記逆変換部は、対象ブロック内の非ゼロ係数の発生の有無を示すフラグにより、前記対象ブロックの二次変換インデックスの復号方法を制御するように構成されていることを要旨とする。 A fourth feature of the present invention is an image decoding apparatus, which includes a reverse conversion unit configured to generate a predicted residual signal by reverse conversion, and the reverse conversion unit is a non-zero in a target block. The gist is that the flag indicating the presence or absence of the occurrence of the coefficient is configured to control the decoding method of the secondary transformation index of the target block.

本発明の第5の特徴は、画像復号装置であって、逆変換により予測残差信号を生成するように構成されている逆変換部を備え、前記逆変換部は、対象ブロック内のサブブロック内の非ゼロ係数の発生の有無を示すフラグにより、前記対象ブロックの二次変換インデックスの復号方法を制御するように構成されていることを要旨とする。 The fifth feature of the present invention is an image decoding device, which includes a reverse conversion unit configured to generate a predicted residual signal by reverse conversion, and the reverse conversion unit is a subblock in a target block. It is gist that it is configured to control the decoding method of the secondary transformation index of the target block by the flag indicating the presence / absence of the non-zero coefficient in.

本発明の第5の特徴において、前記サブブロック内の前記非ゼロ係数の発生の有無を示すフラグが、前記対象ブロックに前記二次変換が適用されている場合に前記非ゼロ係数が発生し得ないサブブロックにおいて前記非ゼロ係数が発生していることを示している場合、前記逆変換部は、前記対象ブロックの前記二次変換インデックスを復号しないように構成されていてもよい。 In the fifth feature of the present invention, the flag indicating the presence or absence of the non-zero coefficient in the sub-block may generate the non-zero coefficient when the secondary transformation is applied to the target block. When it is shown that the non-zero coefficient occurs in a subblock that does not exist, the inverse conversion unit may be configured not to decode the secondary conversion index of the target block.

本発明の第6の特徴は、画像復号方法であって、逆変換により予測残差信号を生成する工程を有し、前記工程において、対象ブロックに対する二次変換の適用有無について判定し、前記判定結果に応じて変換係数の復号方法を制御することを要旨とする。 The sixth feature of the present invention is an image decoding method, which includes a step of generating a predicted residual signal by inverse conversion, and in the step, it is determined whether or not a secondary transformation is applied to a target block, and the determination is made. The gist is to control the decoding method of the conversion coefficient according to the result.

本発明の第7の特徴は、コンピュータを、画像復号装置として機能させるプログラムであって、前記画像復号装置は、逆変換により予測残差信号を生成するように構成されている逆変換部を備え、前記逆変換部は、対象ブロックに対する二次変換の適用有無について判定し、前記判定結果に応じて変換係数の復号方法を制御するように構成されていることを要旨とする。 A seventh feature of the present invention is a program that causes a computer to function as an image decoding device, and the image decoding device includes an inverse conversion unit configured to generate a predicted residual signal by inverse conversion. The gist is that the inverse conversion unit is configured to determine whether or not the secondary conversion is applied to the target block and control the decoding method of the conversion coefficient according to the determination result.

本発明によれば、二次変換の適用有無を判定するための追加処理を省略でき、処理の高速化が期待できる画像復号装置、画像復号方法及びプログラムを提供することができる。 According to the present invention, it is possible to provide an image decoding device, an image decoding method, and a program that can omit additional processing for determining whether or not to apply a secondary transformation and can be expected to speed up the processing.

一実施形態に係る画像処理システム1の構成の一例を示す図である。It is a figure which shows an example of the structure of the image processing system 1 which concerns on one Embodiment. 一実施形態に係る画像符号化装置100の機能ブロックの一例を示す図である。It is a figure which shows an example of the functional block of the image coding apparatus 100 which concerns on one Embodiment. 一実施形態に係る画像符号化装置100の変換・量子化部131の機能ブロックの一例を示す図である。It is a figure which shows an example of the functional block of the conversion / quantization unit 131 of the image coding apparatus 100 which concerns on one Embodiment. 一実施形態に係る画像復号装置200の機能ブロックの一例を示す図である。It is a figure which shows an example of the functional block of the image decoding apparatus 200 which concerns on one Embodiment. 一実施形態に係る画像復号装置200の逆変換・逆量子化部220の機能ブロックの一例を示す図である。It is a figure which shows an example of the functional block of the inverse transformation / inverse quantization unit 220 of the image decoding apparatus 200 which concerns on one Embodiment. 一実施形態に係る画像復号装置200の逆変換・逆量子化部220の機能の一例を説明するための図である。It is a figure for demonstrating an example of the function of the inverse transformation / inverse quantization unit 220 of the image decoding apparatus 200 which concerns on one Embodiment. 一実施形態に係る画像復号装置200の逆変換・逆量子化部220の機能の一例を説明するための図である。It is a figure for demonstrating an example of the function of the inverse transformation / inverse quantization unit 220 of the image decoding apparatus 200 which concerns on one Embodiment. 第1実施形態に係る画像復号装置200における二次変換適用有無判定方法及び係数の復号方法の一例について示すフローチャートである。It is a flowchart which shows an example of the secondary transformation application presence / absence determination method and the coefficient decoding method in the image decoding apparatus 200 which concerns on 1st Embodiment. 第1実施形態に係る画像復号装置200における二次変換適用有無判定方法及び係数の復号方法の一例について示すフローチャートである。It is a flowchart which shows an example of the secondary transformation application presence / absence determination method and the coefficient decoding method in the image decoding apparatus 200 which concerns on 1st Embodiment. 第1実施形態の変更例1に係る画像復号装置200における二次変換適用有無判定方法及び係数の復号方法の一例について示すフローチャートである。It is a flowchart which shows an example of the secondary transformation application presence / absence determination method and the coefficient decoding method in the image decoding apparatus 200 which concerns on modification 1 of 1st Embodiment. 第2実施形態について説明するための図である。It is a figure for demonstrating the 2nd Embodiment. 第3実施形態に係る画像復号装置200における二次変換適用有無判定方法及び係数の復号方法の一例について示すフローチャートである。It is a flowchart which shows an example of the secondary transformation application presence / absence determination method and the coefficient decoding method in the image decoding apparatus 200 which concerns on 3rd Embodiment. 第3実施形態に係る画像復号装置200における二次変換適用有無判定方法及び係数の復号方法の一例について示すフローチャートである。It is a flowchart which shows an example of the secondary transformation application presence / absence determination method and the coefficient decoding method in the image decoding apparatus 200 which concerns on 3rd Embodiment.

<第1実施形態>
以下、図1~図9を参照して、本発明の第1実施形態に係る画像処理システム10について説明する。図1は、本実施形態に係る画像処理システム10について示す図である。
<First Embodiment>
Hereinafter, the image processing system 10 according to the first embodiment of the present invention will be described with reference to FIGS. 1 to 9. FIG. 1 is a diagram showing an image processing system 10 according to the present embodiment.

図1に示すように、本実施形態に係る画像処理システム10は、画像符号化装置100及び画像復号装置200を有する。 As shown in FIG. 1, the image processing system 10 according to the present embodiment includes an image coding device 100 and an image decoding device 200.

画像符号化装置100は、入力画像信号を符号化することによって符号化データを生成するように構成されている。画像復号装置200は、符号化データを復号することによって出力画像信号を生成するように構成されている。 The image coding device 100 is configured to generate encoded data by encoding an input image signal. The image decoding device 200 is configured to generate an output image signal by decoding the coded data.

符号化データは、画像符号化装置100から画像復号装置200に対して伝送路を介して送信されてもよい。符号化データは、記憶媒体に格納された上で、画像符号化装置100から画像復号装置200に提供されてもよい。 The coded data may be transmitted from the image coding device 100 to the image decoding device 200 via a transmission line. The coded data may be stored in the storage medium and then provided from the image coding device 100 to the image decoding device 200.

(画像符号化装置100)
以下、図2を参照して、本実施形態に係る画像符号化装置100について説明する。図2は、本実施形態に係る画像符号化装置100の機能ブロックの一例について示す図である。
(Image Coding Device 100)
Hereinafter, the image coding apparatus 100 according to the present embodiment will be described with reference to FIG. 2. FIG. 2 is a diagram showing an example of a functional block of the image coding apparatus 100 according to the present embodiment.

図2に示すように、画像符号化装置100は、インター予測部111と、イントラ予測部112と、減算器121と、加算器122と、変換・量子化部131と、逆変換・逆量子化部132と、符号化部140と、インループフィルタ処理部150と、フレームバッファ160とを有する。 As shown in FIG. 2, the image coding apparatus 100 includes an inter-prediction unit 111, an intra-prediction unit 112, a subtractor 121, an adder 122, a conversion / quantization unit 131, and an inverse conversion / dequantization. It has a unit 132, a coding unit 140, an in-loop filter processing unit 150, and a frame buffer 160.

インター予測部111は、インター予測(フレーム間予測)によって予測信号を生成するように構成されている。 The inter-prediction unit 111 is configured to generate a prediction signal by inter-prediction (inter-frame prediction).

具体的には、インター予測部111は、符号化対象のフレーム(以下、対象フレーム)とフレームバッファ160に格納される参照フレームとの比較によって、参照フレームに含まれる参照ブロックを特定し、特定された参照ブロックに対する予測動きベクトルを決定するように構成されている。 Specifically, the inter-prediction unit 111 identifies and identifies the reference block included in the reference frame by comparing the frame to be encoded (hereinafter referred to as the target frame) with the reference frame stored in the frame buffer 160. It is configured to determine the predicted motion vector for the referenced block.

また、インター予測部111は、参照ブロック及び動きベクトルに基づいて予測ブロッ
クに含まれる予測信号を予測ブロック毎に生成するように構成されている。インター予測部111は、予測信号を減算器121及び加算器122に出力するように構成されている。ここで、参照フレームは、対象フレームとは異なるフレームである。
Further, the inter-prediction unit 111 is configured to generate a prediction signal included in the prediction block for each prediction block based on the reference block and the motion vector. The inter-prediction unit 111 is configured to output a prediction signal to the subtractor 121 and the adder 122. Here, the reference frame is a frame different from the target frame.

イントラ予測部112は、イントラ予測(フレーム内予測)によって予測信号を生成するように構成されている。 The intra prediction unit 112 is configured to generate a prediction signal by intra prediction (in-frame prediction).

具体的には、イントラ予測部112は、対象フレームに含まれる参照ブロックを特定し、特定された参照ブロックに基づいて予測信号を予測ブロック毎に生成するように構成されている。また、イントラ予測部112は、予測信号を減算器121及び加算器122に出力するように構成されている。 Specifically, the intra prediction unit 112 is configured to specify a reference block included in the target frame and generate a prediction signal for each prediction block based on the specified reference block. Further, the intra prediction unit 112 is configured to output the prediction signal to the subtractor 121 and the adder 122.

ここで、参照ブロックは、予測対象のブロック(以下、対象ブロック)について参照されるブロックである。例えば、参照ブロックは、対象ブロックに隣接するブロックである。 Here, the reference block is a block referred to with respect to the block to be predicted (hereinafter referred to as the target block). For example, the reference block is a block adjacent to the target block.

減算器121は、入力画像信号から予測信号を減算し、予測残差信号を変換・量子化部131に出力するように構成されている。ここで、減算器121は、イントラ予測又はインター予測によって生成される予測信号と入力画像信号との差分である予測残差信号を生成するように構成されている。 The subtractor 121 is configured to subtract the prediction signal from the input image signal and output the prediction residual signal to the conversion / quantization unit 131. Here, the subtractor 121 is configured to generate a prediction residual signal which is a difference between the prediction signal generated by the intra prediction or the inter prediction and the input image signal.

加算器122は、逆変換・逆量子化部132から出力される予測残差信号に予測信号を加算してフィルタ処理前復号信号を生成し、かかるフィルタ処理前復号信号をイントラ予測部112及びインループフィルタ処理部150に出力するように構成されている。 The adder 122 adds a prediction signal to the prediction residual signal output from the inverse conversion / inverse quantization unit 132 to generate a pre-filter processing decoding signal, and the pre-filter processing decoding signal is used by the intra prediction unit 112 and the input. It is configured to output to the loop filter processing unit 150.

ここで、フィルタ処理前復号信号は、イントラ予測部112で用いる参照ブロックを構成する。 Here, the pre-filtered decoding signal constitutes a reference block used by the intra prediction unit 112.

変換・量子化部131は、予測残差信号の変換処理を行うとともに、係数レベル値を取得するように構成されている。さらに、変換・量子化部131は、係数レベル値の量子化を行うように構成されていてもよい。 The conversion / quantization unit 131 is configured to perform conversion processing of the predicted residual signal and acquire a coefficient level value. Further, the conversion / quantization unit 131 may be configured to quantize the coefficient level value.

ここで、変換・量子化部131は、係数レベル値の量子化を行う場合は、量子化インデックスを出力するように構成されている。以降では、変換・量子化部131の出力を、量子化の適用の有無に関わらず、係数レベル値として記述する。 Here, the conversion / quantization unit 131 is configured to output a quantization index when the coefficient level value is quantized. Hereinafter, the output of the conversion / quantization unit 131 will be described as a coefficient level value regardless of whether or not quantization is applied.

ここで、変換処理は、予測残差信号を周波数成分信号に変換する処理である。かかる変換処理では、離散コサイン変換(DCT;Discrete Cosine Transform)に対応する基底パターン(変換行列)が用いられてもよく、離散サイン変換(DST;Discrete Sine Transform)に対応する基底パターン(変換行列)が用いられてもよい。 Here, the conversion process is a process of converting the predicted residual signal into a frequency component signal. In such a conversion process, a base pattern (transformation matrix) corresponding to a discrete cosine transform (DCT) may be used, or a base pattern (transformation matrix) corresponding to a discrete sine transform (DST). May be used.

なお、変換処理は、量子化が行われる前に複数回実施されてもよい。一例として、2回目の変換処理を行う二次変換について後述する。 The conversion process may be performed a plurality of times before the quantization is performed. As an example, a secondary conversion that performs the second conversion process will be described later.

逆変換・逆量子化部132は、変換・量子化部131から出力される係数レベル値の逆変換処理を行うように構成されている。ここで、逆変換・逆量子化部132は、逆変換処理に先立って、係数レベル値の逆量子化を行うように構成されていてもよい。 The inverse conversion / inverse quantization unit 132 is configured to perform an inverse conversion process of the coefficient level value output from the conversion / quantization unit 131. Here, the inverse transformation / inverse quantization unit 132 may be configured to perform inverse quantization of the coefficient level value prior to the inverse transformation process.

ここで、逆変換処理及び逆量子化は、変換・量子化部131で行われる変換処理及び量
子化とは逆の手順で行われる。
Here, the inverse conversion process and the inverse quantization are performed in the reverse procedure of the conversion process and the quantization performed by the conversion / quantization unit 131.

符号化部140は、変換・量子化部131から出力された係数レベル値を符号化し、符号化データを出力するように構成されている。 The coding unit 140 is configured to encode the coefficient level value output from the conversion / quantization unit 131 and output the coded data.

ここで、例えば、符号化は、対象ブロック(符号化ブロック又は変換ブロック)の係数をカウントし、係数レベル値の発生確率に基づいて異なる長さの符号を割り当てるエントロピー符号化である。係数のカウント方法については後述する。 Here, for example, coding is entropy coding that counts the coefficients of the target block (coded block or converted block) and assigns codes of different lengths based on the probability of occurrence of the coefficient level value. The coefficient counting method will be described later.

また、符号化部140は、係数レベル値に加えて、復号処理で用いる制御データを符号化するように構成されている。 Further, the coding unit 140 is configured to encode the control data used in the decoding process in addition to the coefficient level value.

ここで、制御データは、符号化ブロック(CU:Coding Unit)サイズ、予測ブロック(PU:Prediction Unit)サイズ、変換ブロック(TU:Transform Unit)サイズ等のサイズデータを含んでもよい。 Here, the control data may include size data such as a coding block (CU: Coding Unit) size, a prediction block (PU: Precision Unit) size, and a conversion block (TU: Transfer Unit) size.

インループフィルタ処理部150は、加算器122から出力されるフィルタ処理前復号信号に対してフィルタ処理を行うとともに、フィルタ処理後復号信号をフレームバッファ160に出力するように構成されている。 The in-loop filter processing unit 150 is configured to perform filter processing on the pre-filter processing decoding signal output from the adder 122 and output the post-filter processing decoding signal to the frame buffer 160.

ここで、例えば、フィルタ処理は、ブロック(符号化ブロック、予測ブロック又は変換ブロック)の境界部分で生じる歪みを減少するデブロッキングフィルタ処理である。 Here, for example, the filtering process is a deblocking filtering process that reduces the distortion generated at the boundary portion of the block (encoded block, prediction block, or conversion block).

フレームバッファ160は、インター予測部111で用いる参照フレームを蓄積するように構成されている。 The frame buffer 160 is configured to store reference frames used by the inter-prediction unit 111.

ここで、フィルタ処理後復号信号は、インター予測部111で用いる参照フレームを構成する。 Here, the filtered decoded signal constitutes a reference frame used by the inter-prediction unit 111.

(変換・量子化部131)
以下、図3を参照して、本実施形態に係る画像符号化装置110の変換・量子化部131について説明する。図3は、本実施形態に係る画像符号化装置110の変換・量子化部131の機能ブロックの一例について示す図である。
(Conversion / Quantization Unit 131)
Hereinafter, the conversion / quantization unit 131 of the image coding apparatus 110 according to the present embodiment will be described with reference to FIG. FIG. 3 is a diagram showing an example of a functional block of the conversion / quantization unit 131 of the image coding device 110 according to the present embodiment.

図13に示すように、変換・量子化部131は、一次変換部131Aと、二次変換部131B、量子化部131Cとを有する。 As shown in FIG. 13, the conversion / quantization unit 131 includes a primary conversion unit 131A, a secondary conversion unit 131B, and a quantization unit 131C.

変換・量子化部131は、変換・量子化によって予測残差信号から係数レベル値を生成するように構成されている変換・量子化部の一例である。 The conversion / quantization unit 131 is an example of a conversion / quantization unit configured to generate a coefficient level value from a predicted residual signal by conversion / quantization.

一次変換部131Aは、予測残差信号を入力として、対象ブロックの一次変換係数を生成するように構成されている。 The primary conversion unit 131A is configured to generate the primary conversion coefficient of the target block by using the predicted residual signal as an input.

ここで、一次変換処理に用いられる基底パターン(変換行列)は、複数の基底パターンから選択されてもよい。例えば、非特許文献1では、DCT2、DCT8、DST7に対応する基底パターンがそれぞれ用いられている。また、基底パターンの選択方法は、例えば、最も符号化コストが小さいものが画像符号化装置100で選択され、選択された基底パターンがサイド情報として画像復号装置200に伝送される方法がある。 Here, the basis pattern (transformation matrix) used in the linear transformation process may be selected from a plurality of basis patterns. For example, in Non-Patent Document 1, the base patterns corresponding to DCT2, DCT8, and DST7 are used, respectively. Further, as a method of selecting a base pattern, for example, there is a method in which the one having the lowest coding cost is selected by the image coding device 100 and the selected base pattern is transmitted to the image decoding device 200 as side information.

二次変換部131Bは、一次変換部131Aからの一次変換係数を入力として、対象ブ
ロックに対する二次変換の適用有無について判定するように構成されている。
The secondary conversion unit 131B is configured to receive the primary conversion coefficient from the primary conversion unit 131A as an input and determine whether or not the secondary conversion is applied to the target block.

ここで、二次変換部131Bは、二次変換を適用すると判定した場合には、一次変換係数に変換処理を施すことによって二次変換係数を生成し、かかる二次変換係数を量子化部131Cに出力するように構成されている。 Here, when the secondary conversion unit 131B determines that the secondary conversion is applied, the secondary conversion coefficient is generated by performing a conversion process on the primary conversion coefficient, and the secondary conversion coefficient is converted into the quantization unit 131C. It is configured to output to.

一方、二次変換部131Bは、二次変換を適用しないと判定した場合には、一次変換係数を量子化部131Cにそのまま出力するように構成されている。 On the other hand, the secondary conversion unit 131B is configured to output the primary conversion coefficient to the quantization unit 131C as it is when it is determined that the secondary conversion is not applied.

また、二次変換部131Bは、二次変換の適用有無に関する情報(以下、二次変換インデックス)を符号化部140に出力するように構成されている。 Further, the secondary conversion unit 131B is configured to output information regarding whether or not the secondary conversion is applied (hereinafter, secondary conversion index) to the coding unit 140.

量子化部131Cは、変換係数(一次変換係数又は二次変換係数)を入力として、対象ブロックの変換係数に対する量子化の適用有無を判定するように構成されている。 The quantization unit 131C is configured to input the conversion coefficient (first-order conversion coefficient or second-order conversion coefficient) and determine whether or not quantization is applied to the conversion coefficient of the target block.

ここで、量子化部131Cは、量子化を適用すると判定した場合には、量子化インデックスを生成するように構成されている。なお、量子化の適用有無の判定方法や量子化インデックスの生成方法は、公知の方法を用いることができるため、詳細は省略する。 Here, the quantization unit 131C is configured to generate a quantization index when it is determined that the quantization is applied. As a method for determining whether or not quantization is applied and a method for generating a quantized index, known methods can be used, and details thereof will be omitted.

(符号化部140)
符号化部140は、二次変換が適用される場合、二次変換の適用確率に最適化したコンテキストを用いて係数レベル値を符号化するように構成されていてもよい。
(Encoding unit 140)
When the quadratic transformation is applied, the coding unit 140 may be configured to encode the coefficient level value using a context optimized for the application probability of the quadratic transformation.

(逆変換・逆量子化部132)
逆変換・逆量子化部132は、後述する画像復号装置200における逆変換・逆量子化部220と同じ動作をするため、詳細は、逆変換・逆量子化部220の説明で後述し、以降は、逆変換・逆量子化部220と同一に扱うものとする。
(Inverse transformation / inverse quantization unit 132)
Since the inverse conversion / inverse quantization unit 132 operates in the same manner as the inverse conversion / inverse quantization unit 220 in the image decoding device 200 described later, the details will be described later in the description of the inverse conversion / inverse quantization unit 220. Is treated in the same way as the inverse conversion / inverse quantization unit 220.

(画像復号装置200)
以下、図4を参照して、本実施形態に係る画像復号装置200について説明する。図4は、本実施形態に係る画像復号装置200の機能ブロックの一例について示す図である。
(Image Decoding Device 200)
Hereinafter, the image decoding apparatus 200 according to the present embodiment will be described with reference to FIG. FIG. 4 is a diagram showing an example of a functional block of the image decoding apparatus 200 according to the present embodiment.

図4に示すように、画像復号装置200は、復号部210と、逆変換・逆量子化部220と、加算器230と、インター予測部241と、イントラ予測部242と、インループフィルタ処理部250と、フレームバッファ260とを有する。 As shown in FIG. 4, the image decoding device 200 includes a decoding unit 210, an inverse conversion / inverse quantization unit 220, an adder 230, an inter-prediction unit 241 and an intra-prediction unit 242, and an in-loop filter processing unit. It has 250 and a frame buffer 260.

復号部210は、画像符号化装置100によって生成される符号化データを復号し、係数レベル値を復号するように構成されている。 The decoding unit 210 is configured to decode the coded data generated by the image coding device 100 and decode the coefficient level value.

ここで、復号は、例えば、係数の発生確率に基づく、異なる長さの符号を割り当てるエントロピー符号化されたデータの復号である。
復号は、符号化部140で行われるエントロピー符号化とは逆の手順のエントロピー復号である。
Here, decoding is, for example, decoding of entropy-encoded data to which codes of different lengths are assigned based on the probability of occurrence of coefficients.
Decoding is entropy decoding in the reverse procedure of entropy coding performed by the coding unit 140.

また、復号部210は、符号化データの復号処理によって制御データを取得するように構成されていてもよい。 Further, the decoding unit 210 may be configured to acquire control data by decoding processing of encoded data.

なお、上述したように、制御データは、符号化ブロックサイズ、予測ブロックサイズ、変換ブロックサイズ等のサイズデータを含んでもよい。 As described above, the control data may include size data such as a coded block size, a predicted block size, and a conversion block size.

逆変換・逆量子化部220は、復号部210から出力される量子化インデックスの逆量子化及び復号部210から出力される係数レベル値の逆変換処理を行うことによって、予測残差信号を生成するように構成されている。 The inverse conversion / inverse quantization unit 220 generates a predicted residual signal by performing inverse quantization of the quantization index output from the decoding unit 210 and inverse conversion processing of the coefficient level value output from the decoding unit 210. It is configured to do.

加算器230は、逆変換・逆量子化部220から出力される予測残差信号に予測信号を加算してフィルタ処理前復号信号を生成し、フィルタ処理前復号信号をイントラ予測部242及びインループフィルタ処理部250に出力するように構成されている。 The adder 230 adds a prediction signal to the prediction residual signal output from the inverse conversion / inverse quantization unit 220 to generate a pre-filter processing decoding signal, and the pre-filter processing decoding signal is used by the intra prediction unit 242 and the in-loop. It is configured to output to the filter processing unit 250.

ここで、フィルタ処理前復号信号は、イントラ予測部242で用いる参照ブロックを構成する。 Here, the pre-filtered decoding signal constitutes a reference block used by the intra prediction unit 242.

インター予測部241は、インター予測部111と同様に、インター予測(フレーム間予測)によって予測信号を生成するように構成されている。 Similar to the inter-prediction unit 111, the inter-prediction unit 241 is configured to generate a prediction signal by inter-prediction (inter-frame prediction).

具体的には、インター予測部241は、符号化データから復号した動きベクトルと参照フレームに含まれる参照信号とに基づいて予測信号を予測ブロック毎に生成するように構成されている。インター予測部241は、予測信号を加算器230に出力するように構成されている。 Specifically, the inter-prediction unit 241 is configured to generate a prediction signal for each prediction block based on the motion vector decoded from the coded data and the reference signal included in the reference frame. The inter-prediction unit 241 is configured to output a prediction signal to the adder 230.

イントラ予測部242は、イントラ予測部112と同様に、イントラ予測(フレーム内予測)によって予測信号を生成するように構成されている。 Like the intra prediction unit 112, the intra prediction unit 242 is configured to generate a prediction signal by intra prediction (in-frame prediction).

具体的には、イントラ予測部242は、対象フレームに含まれる参照ブロックを特定し、特定された参照ブロックに基づいて予測信号を予測ブロック毎に生成するように構成されている。イントラ予測部242は、予測信号を加算器230に出力するように構成されている。 Specifically, the intra prediction unit 242 is configured to specify a reference block included in the target frame and generate a prediction signal for each prediction block based on the specified reference block. The intra prediction unit 242 is configured to output a prediction signal to the adder 230.

インループフィルタ処理部250は、インループフィルタ処理部150と同様に、加算器230から出力されるフィルタ処理前復号信号に対してフィルタ処理を行うとともに、フィルタ処理後復号信号をフレームバッファ260に出力するように構成されている。 Similar to the in-loop filter processing unit 150, the in-loop filter processing unit 250 performs filter processing on the pre-filter processing decoded signal output from the adder 230, and outputs the post-filter processing decoded signal to the frame buffer 260. It is configured to do.

ここで、例えば、フィルタ処理は、ブロック(符号化ブロック、予測ブロック、変換ブロック、あるいはそれらを分割したサブブロック)の境界部分で生じる歪みを減少するデブロッキングフィルタ処理である。 Here, for example, the filtering process is a deblocking filter process that reduces the distortion that occurs at the boundary portion of a block (encoded block, prediction block, conversion block, or sub-block that divides them).

フレームバッファ260は、フレームバッファ160と同様に、インター予測部241で用いる参照フレームを蓄積するように構成されている。 Like the frame buffer 160, the frame buffer 260 is configured to store reference frames used by the inter-prediction unit 241.

ここで、フィルタ処理後復号信号は、インター予測部241で用いる参照フレームを構成する。 Here, the filtered decoded signal constitutes a reference frame used by the inter-prediction unit 241.

(逆変換・逆量子化部220)
以下、図5を参照して、本実施形態に係る画像復号装置200の逆変換・逆量子化部220について説明する。図5は、本実施形態に係る画像復号装置200の逆変換・逆量子化部220の機能ブロックの一例について示す図である。
(Inverse conversion / inverse quantization unit 220)
Hereinafter, the inverse conversion / inverse quantization unit 220 of the image decoding apparatus 200 according to the present embodiment will be described with reference to FIG. FIG. 5 is a diagram showing an example of a functional block of the inverse transformation / inverse quantization unit 220 of the image decoding apparatus 200 according to the present embodiment.

図5に示すように、逆変換・逆量子化部220は、逆量子化部242Aと、逆二次変換部242Bと、逆一次変換部242Cとを有する。 As shown in FIG. 5, the inverse conversion / inverse quantization unit 220 includes an inverse quantization unit 242A, an inverse secondary conversion unit 242B, and an inverse primary conversion unit 242C.

逆量子化部220Aでは、量子化インデックスを入力信号として、対象ブロックの変換
係数を生成するように構成されている。量子化インデックスから係数レベル値を生成する方法としては、公知の方法を用いることができるため、詳細は省略する。
The inverse quantization unit 220A is configured to generate a conversion coefficient of the target block using the quantization index as an input signal. As a method for generating the coefficient level value from the quantized index, a known method can be used, and thus details will be omitted.

逆二次変換部220Bは、係数レベル値を入力として、対象ブロックの逆二次変換の適用有無を判定するように構成されている。 The inverse quadratic transformation unit 220B is configured to determine whether or not the inverse quadratic transformation of the target block is applied by using the coefficient level value as an input.

ここで、逆二次変換部220Bは、逆二次変換を適用すると判定した場合には、入力された係数レベル値に対して逆変換処理を施すことによって一次変換係数を生成し、かかる一次変換係数を一次変換係数部220Cに出力するように構成されている。 Here, when the inverse secondary transformation unit 220B determines that the inverse secondary transformation is applied, the inverse secondary transformation unit 220B generates a primary transformation coefficient by performing an inverse transformation process on the input coefficient level value, and the linear transformation is performed. The coefficient is configured to be output to the linear conversion coefficient unit 220C.

一方、逆二次変換部220Bは、二次変換を適用しないと判定した場合には、入力された係数レベル値を一次変換係数として一次変換係数部220Cにそのまま出力するように構成されている。 On the other hand, when it is determined that the secondary conversion is not applied, the inverse secondary conversion unit 220B is configured to output the input coefficient level value as the primary conversion coefficient to the primary conversion coefficient unit 220C as it is.

以降では、記述を簡素化するため、二次変換及び逆二次変換を総じて二次変換と呼称し、逆二次変換部における二次変換は、逆二次変換と適宜読み替えることとする。 Hereinafter, for the sake of simplification of the description, the secondary transformation and the inverse secondary transformation are collectively referred to as the secondary transformation, and the secondary transformation in the inverse secondary transformation unit is appropriately read as the inverse secondary transformation.

なお、逆二次変換部220Bによって二次変換を適用するか否かについての判定方法については、後述する。 The method of determining whether or not the secondary conversion is applied by the inverse secondary conversion unit 220B will be described later.

逆一次変換部220Cは、一次変換係数を入力として、対象ブロックの予測残差信号を生成するように構成されている。 The inverse primary conversion unit 220C is configured to generate a predicted residual signal of the target block by using the primary conversion coefficient as an input.

ここで、逆一次変換処理に用いる基底パターン(変換行列)は、画像符号化装置100の場合と同様に、複数の規定パターンから選択されてもよい。基底パターンの選択は、例えば、画像符号化装置100から伝送されるサイド情報(画像符号化装置100で選択された基底パターン情報)を用いて行われてもよい。 Here, the base pattern (transformation matrix) used for the inverse linear transformation process may be selected from a plurality of defined patterns as in the case of the image coding apparatus 100. The selection of the base pattern may be performed using, for example, the side information (base pattern information selected by the image coding device 100) transmitted from the image coding device 100.

(二次変換の説明)
以下、図6を参照して、本実施形態に係る画像符号化装置100及び画像復号装置200によって行われる二次変換の一例について説明する。
(Explanation of secondary transformation)
Hereinafter, an example of the secondary transformation performed by the image coding device 100 and the image decoding device 200 according to the present embodiment will be described with reference to FIG.

二次変換とは、上述の通り、量子化前に、再度、対象ブロックの一次変換係数を変換する技術である。量子化前に、再度、一次変換係数を変換することで、係数レベル値が非ゼロの係数(以降、非ゼロ係数)が低周波領域により密集しやすくなり、後述する係数スキャン処理において、係数レベル値がゼロの係数(以降、ゼロ係数)が連続するようになるため、エントロピー符号化による更なる符号化向上効果が期待できる。 As described above, the secondary transformation is a technique for converting the linear transformation coefficient of the target block again before quantization. By converting the first-order conversion coefficient again before quantization, the coefficient with a non-zero coefficient level value (hereinafter referred to as the non-zero coefficient) becomes more likely to be concentrated in the low frequency region, and the coefficient level in the coefficient scan process described later. Since the coefficient with a value of zero (hereinafter referred to as the zero coefficient) becomes continuous, further coding improvement effect by entropy coding can be expected.

ここで、二次変換は、一次変換と同様に、複数の基底パターン(変換行列)が用いてもよい。例えば、非特許文献2のように、対象ブロックサイズ、イントラ予測モード、および二次変換インデックスによって、予め使用可能な基底パターンを設定してもよい。二次変換インデックスの値が0である場合は、二次変換が無効であることを示す。一方で、値が1以上である場合は、二次変換が有効であることを示す。また、かかる二次変換インデックスによって、例えば非特許文献2のように、2種類の基底パターンを適応的に選択してもよい。 Here, the secondary transformation may use a plurality of basis patterns (transformation matrices) as in the linear transformation. For example, as in Non-Patent Document 2, a base pattern that can be used in advance may be set according to the target block size, the intra prediction mode, and the secondary conversion index. If the value of the secondary transformation index is 0, it indicates that the secondary transformation is invalid. On the other hand, when the value is 1 or more, it indicates that the secondary transformation is effective. Further, two types of base patterns may be adaptively selected by the secondary conversion index, for example, as in Non-Patent Document 2.

また、二次変換の適用範囲は、対象ブロックのブロックサイズに応じて、適応的に設定されてもよい。例えば、図6は、非特許文献2における二次変換の適用範囲の一例を示す。 Further, the applicable range of the secondary transformation may be adaptively set according to the block size of the target block. For example, FIG. 6 shows an example of the scope of application of the secondary transformation in Non-Patent Document 2.

図6(a)に示すように、対象ブロックのブロックサイズが8×8画素である場合、二次変換の適用範囲R1は、64個の一次変換係数の全てが対象となり、さらに、二次変換後の非ゼロ係数の発生領域R2は、二次変換係数の低周波領域(4×2画素)に限定され、その他の領域は、全てゼロ係数とされている(以下、ゼロイング)。 As shown in FIG. 6A, when the block size of the target block is 8 × 8 pixels, the applicable range R1 of the secondary conversion covers all 64 primary conversion coefficients, and further, the secondary conversion is performed. The later non-zero coefficient generation region R2 is limited to the low frequency region (4 × 2 pixels) of the secondary conversion coefficient, and the other regions are all set to the zero coefficient (hereinafter, zeroing).

一方、図6(b)に示すように、対象ブロックのブロックサイズがM×N(但し、M>8、N>8)画素である場合、二次変換の適用範囲R1は、48個の低周波領域の一次変換係数となっている。すなわち、48個の低周波領域以外の一次変換係数には、二次変換は適用されず、一次変換係数がそのまま扱われる。また、二次変換後の非ゼロ係数の発生領域は、二次変換係数の低周波領域(4×4画素)に限定され、その他の領域は、ゼロイングされる。 On the other hand, as shown in FIG. 6B, when the block size of the target block is M × N (however, M> 8, N> 8) pixels, the applicable range R1 of the secondary transformation is 48 low. It is the first-order conversion coefficient in the frequency region. That is, the second-order conversion is not applied to the first-order conversion coefficients other than the 48 low-frequency regions, and the first-order conversion coefficients are treated as they are. Further, the region where the non-zero coefficient is generated after the secondary conversion is limited to the low frequency region (4 × 4 pixels) of the secondary conversion coefficient, and the other regions are zeroed.

(係数の符号化方法)
以下、図7を参照して、係数レベル値の符号化方法について説明する。図7は、対象ブロックの係数レベル値のスキャン方法について示す図である。
(Coefficient coding method)
Hereinafter, a method for coding the coefficient level value will be described with reference to FIG. 7. FIG. 7 is a diagram showing a method of scanning the coefficient level value of the target block.

係数のスキャン方法としては、例えば、非特許文献1にあるように、対象ブロックの最高周波成分の係数C1から最低周波成分の係数Cxへと、左上方向へスキャンする方法(以降、斜めスキャン)が用いられてもよい(図7参照)。 As a coefficient scanning method, for example, as described in Non-Patent Document 1, a method of scanning from the coefficient C1 of the highest frequency component of the target block to the coefficient Cx of the lowest frequency component in the upper left direction (hereinafter, diagonal scan) is used. It may be used (see FIG. 7).

自然画像においては、高周波領域で非ゼロ係数が発生しにくい。そのため、高周波成分から低周波成分へと斜めスキャンすることで、ゼロ係数を連続的に並べることができ、エントロピー符号化による符号化性能向上効果が期待できるようになる。 In natural images, non-zero coefficients are unlikely to occur in the high frequency region. Therefore, by diagonally scanning from the high frequency component to the low frequency component, the zero coefficients can be arranged continuously, and the effect of improving the coding performance by entropy coding can be expected.

また、斜めスキャンの実行単位を、非特許文献1のように、対象ブロックを4×4画素に分割したサブブロック単位で行ってもよい。また、画像符号化装置100は、サブブロック単位の非ゼロ係数の発生個数に応じて、非ゼロ係数の存在の有無を示すフラグ(coded_sub_block_flag)をから画像復号装置200に伝送してもよい。 Further, the execution unit of the oblique scan may be a sub-block unit in which the target block is divided into 4 × 4 pixels as in Non-Patent Document 1. Further, the image coding device 100 may transmit a flag (code_sub_block_flag) indicating the presence or absence of the non-zero coefficient to the image decoding device 200 according to the number of occurrences of the non-zero coefficient in the subblock unit.

ここで、かかるフラグ(coded_sub_block_flag)を用いる理由は、
例えば、1ビットのフラグ(coded_sub_block_flag)を用いて、非ゼ
ロ係数が皆無のサブブロックを符号化及び復号できる点にある。
Here, the reason for using such a flag (coded_sub_block_flag) is
For example, a 1-bit flag (coded_sub_block_flag) can be used to encode and decode subblocks with no nonzero coefficients.

また、画像符号化装置100は、かかるフラグ(coded_sub_block_fl
ag)の符号化前に、スキャン順で、最初に非ゼロ係数が発生するサブブロックから、非ゼロ係数の発生の有無についての判定処理を行ってもよい。
Further, the image encoding device 100 has such a flag (coded_sub_block_fl).
Prior to the coding of ag), a determination process may be performed on whether or not the non-zero coefficient is generated from the subblock in which the non-zero coefficient is first generated in the scan order.

ここで、画像符号化装置100は、最初に非ゼロ係数が発生する位置情報(last_
coeff_pos)を画像復号装置200に伝送してもよい。これにより、最初の非ゼ
ロ係数の発生前のサブブロックは、非ゼロ係数が皆無であることは確定であるため、上述のフラグ(coded_sub_block_flag)の伝送が不要となり、符号量を節
約できる。
Here, the image coding apparatus 100 first generates position information (last_) in which the non-zero coefficient is generated.
coeff_pos) may be transmitted to the image decoding device 200. As a result, since it is certain that the subblock before the occurrence of the first non-zero coefficient has no non-zero coefficient, the transmission of the above-mentioned flag (coded_sub_block_flag) becomes unnecessary, and the code amount can be saved.

なお、画像符号化装置100は、例えば、非特許文献1のように、対象ブロックで最初に非ゼロ係数が発生する位置情報のx座標値及びy座標値を、プレフィックス部とサフィックス部とに分けて、符号化してもよい。 The image coding apparatus 100 divides the x-coordinate value and the y-coordinate value of the position information in which the non-zero coefficient first occurs in the target block into a prefix unit and a suffix unit, as in Non-Patent Document 1, for example. And may be encoded.

(二次変換適用有無判定方法と係数の復号方法)
図8及び図9は、画像復号装置200における二次変換適用有無判定方法及び係数の復号方法の一例について示すフローチャートである。以下、図8を参照して、二次変換適用
有無判定方法の一例について説明し、図9を参照して、係数の復号方法の一例について説明する。
(Method of determining whether secondary transformation is applied and how to decode the coefficient)
8 and 9 are flowcharts showing an example of a method for determining whether or not a secondary transformation is applied and a method for decoding a coefficient in the image decoding apparatus 200. Hereinafter, an example of a method for determining whether or not a secondary transformation is applied will be described with reference to FIG. 8, and an example of a coefficient decoding method will be described with reference to FIG. 9.

図8に示すように、ステップS61において、画像復号装置200は、対象ブロックの非ゼロ係数の存在の有無を示すフラグ(cbf)を復号する。ここで、cbfの値は、0、1のいずれかである。 As shown in FIG. 8, in step S61, the image decoding device 200 decodes a flag (cbf) indicating the presence or absence of the non-zero coefficient of the target block. Here, the value of cbf is either 0 or 1.

ステップS62において、画像復号装置200は、cbfに基づいて、非ゼロ係数が存在するか否かについて判定する。 In step S62, the image decoding device 200 determines whether or not a nonzero coefficient exists based on cbf.

非ゼロ係数が存在しない(非ゼロ係数が0個である)と判定された場合(すなわち、cbf=0であると判定された場合)は、本処理は、終了する。 When it is determined that there is no non-zero coefficient (that is, when it is determined that the non-zero coefficient is 0) (that is, when it is determined that cbf = 0), this process ends.

一方、非ゼロ係数が存在する(非ゼロ係数が1個以上である)と判定された場合(すなわち、cbf=1であると判定された場合)は、本処理は、ステップS63に進む。 On the other hand, when it is determined that the non-zero coefficient exists (that is, when it is determined that the non-zero coefficient is one or more) (that is, when it is determined that cbf = 1), this process proceeds to step S63.

ここで、cbfは、輝度信号(Y信号)及び色差信号(Cb信号及びCr信号)それぞれについて別のフラグとして復号されてもよい。この場合、画像復号装置200は、対象ブロックの輝度信号及び色差信号のブロック分割ツリー構造が異なる場合(Dual Tree)と両者が同じ場合(Single Tree)とで、以下のように判定してもよい。 Here, cbf may be decoded as different flags for each of the luminance signal (Y signal) and the color difference signal (Cb signal and Cr signal). In this case, the image decoding device 200 may determine as follows when the block division tree structure of the luminance signal and the color difference signal of the target block is different (Dual Tree) and when both are the same (Single Tree). ..

画像復号装置200は、Dual Tree時のY信号では、Y信号のcbf=1の場合に、ステップS63へ進み、そうでないときは、本処理を終了すると判定してもよい。 In the Y signal at the time of Dual Tree, the image decoding apparatus 200 may proceed to step S63 when cbf = 1 of the Y signal, and may determine that the present process is terminated otherwise.

画像復号装置200は、Dual Tree時のCb/Cr信号で且つCb/Cr信号の少なくともいずれか一つのcbfが1である場合は、ステップS63へ進み、そうでないときは、本処理を終了すると判定してもよい。 The image decoding device 200 determines that if the Cb / Cr signal at the time of Dual Tree and at least one of the Cb / Cr signals has a cbf of 1, the process proceeds to step S63, and if not, the process is terminated. You may.

画像復号装置200は、Single Tree時のY信号、Cb信号及びCr信号の少なくともいずれか一つのcbfが1である場合は、ステップS63へ進み、そうでないときは、本処理を終了すると判定してもよい。 The image decoding device 200 determines that if at least one of the Y signal, the Cb signal, and the Cr signal at the time of Single Tree has a cbf of 1, the process proceeds to step S63, and if not, the process is terminated. May be good.

ステップS63において、画像復号装置200は、二次変換インデックス(lfnst_idx)を復号する。 In step S63, the image decoding device 200 decodes the secondary conversion index (lfnst_idx).

ステップS64において、画像復号装置200は、スキャン順で、対象ブロックにおける最初の非ゼロ係数の発生位置を示す情報(last_coeff_pos)を復号する。 In step S64, the image decoding device 200 decodes information (last_coeff_pos) indicating the position where the first non-zero coefficient occurs in the target block in the scanning order.

ステップS65において、画像復号装置200は、係数の復号処理を行う(図9参照)。なお、画像復号装置200は、上述の対象ブロックを分割したサブブロック単位で、かかる係数の復号処理を行う。 In step S65, the image decoding device 200 performs a coefficient decoding process (see FIG. 9). The image decoding device 200 performs decoding processing of such a coefficient in sub-block units obtained by dividing the above-mentioned target block.

図9に示すように、ステップS641において、画像復号装置200は、最初に非ゼロ係数が発生したサブブロックが、対象ブロックの中のスキャン順で最初又は最後のサブブロックであるか否かについて判定する。 As shown in FIG. 9, in step S641, the image decoding apparatus 200 determines whether or not the subblock in which the non-zero coefficient first occurs is the first or last subblock in the scan order in the target block. do.

最初又は最後のサブブロックの何れかであると判定された場合、かかるサブブロックには非ゼロ係数が存在することは自明であるため、本処理は、ステップS645に進む。 If it is determined to be either the first or last subblock, it is obvious that such a subblock has a non-zero coefficient, so this process proceeds to step S645.

最初又は最後のサブブロックの何れでもないと判定された場合、ステップS642において、画像復号装置200は、二次変換インデックス(st_idx)に基づいて、かか
るサブブロックにおいて二次変換が適用されているか否について判定する。
If it is determined that it is neither the first nor the last subblock, in step S642, the image decoding apparatus 200 determines whether or not the secondary transformation is applied in such a subblock based on the secondary transformation index (st_idx). Judgment about.

かかるサブブロックにおいて二次変換が適用されている(二次変換が有効である)と判定された場合で、且つ、かかるサブブロックにおいて二次変換に伴い全係数がゼロであることが自明である(ゼロイングされている)場合、coded_sub_block_fl
agの復号が不要であるため、本処理は、ステップS646に進む。
It is obvious that when it is determined that the quadratic transformation is applied (the quadratic transformation is valid) in such a subblock, and the total coefficient is zero due to the quadratic transformation in such a subblock. If (zeroed), coded_sub_block_fl
Since there is no need to decode the ag, this process proceeds to step S646.

一方、かかるサブブロックにおいて二次変換が適用されていない(二次変換が有効でない)と判定された場合、或いは、かかるサブブロックにおいて二次変換が適用されている場合でも非ゼロ係数が発生する可能性が残っている場合、本処理は、ステップS643に進む。 On the other hand, if it is determined that the quadratic transformation is not applied in such a subblock (the quadratic transformation is not valid), or if the quadratic transformation is applied in such a subblock, a non-zero coefficient occurs. If the possibility remains, this process proceeds to step S643.

なお、ステップS641及びステップS642の順番は入れ替えられてもよい。 The order of steps S641 and S642 may be interchanged.

ステップS643において、画像復号装置200は、非ゼロ係数の存在の有無を示すフラグ(coded_sub_block_flag)を復号する。 In step S643, the image decoding device 200 decodes a flag (coded_sub_block_flag) indicating the presence or absence of the non-zero coefficient.

ステップS644において、画像復号装置200は、coded_sub_block_
flagに基づいて、かかるサブブロック内の非ゼロ係数の存在有無について判定する。
In step S644, the image decoder 200 has coded_sub_block_.
Based on the flag, it is determined whether or not there is a non-zero coefficient in such a subblock.

画像復号装置200は、coded_sub_block_flagの値が0である場合
には、非ゼロ係数が存在しないと判定し、本処理は、ステップS646に進む。
When the value of coded_sub_block_flag is 0, the image decoding apparatus 200 determines that the non-zero coefficient does not exist, and the process proceeds to step S646.

一方、画像復号装置200は、coded_sub_block_flagの値が1であ
る場合には、非ゼロ係数が存在すると判定し、本処理は、ステップS645に進む。
On the other hand, when the value of coded_sub_block_flag is 1, the image decoding apparatus 200 determines that the non-zero coefficient exists, and the process proceeds to step S645.

ステップS645において、画像復号装置200は、サブブロック内の各係数のレベル値を復号する。 In step S645, the image decoding device 200 decodes the level value of each coefficient in the subblock.

ステップS646において、画像復号装置200は、本処理対象のサブブロックが、最終ブロックであるか否かについて判定する。 In step S646, the image decoding device 200 determines whether or not the subblock to be processed is the final block.

最終ブロックでないと判定された場合は、本処理は、ステップS641に進み、スキャン順で次のサブブロックに移って本処理を再開し、最終ブロックであると判定された場合は、本処理は、終了する。 If it is determined that it is not the final block, the present process proceeds to step S641, moves to the next subblock in the scan order, restarts the present process, and if it is determined to be the final block, the present process is performed. finish.

上述の逆二次変換適用有無判定方法及び係数の復号方法を用いることで、以下2つの効果が期待できる。 The following two effects can be expected by using the above-mentioned method for determining whether or not the inverse secondary transformation is applied and the method for decoding the coefficient.

1つ目の効果は、二次変換インデックスを対象ブロックの係数の復号処理前に実施することで、従来技術で二次変換の適用有無判定に必要であった係数の復号処理を省略することができるということである。 The first effect is that the secondary conversion index is performed before the decoding process of the coefficient of the target block, so that the decoding process of the coefficient required for determining whether or not the secondary conversion is applied in the prior art can be omitted. It means that you can do it.

具体的には、従来技術では、二次変換の適用有無判定に、2つのカウンタ(対象ブロックで発生した非ゼロ係数の個数測定カウンタおよび二次変換が有効時にゼロ係数の発生が自明な領域に対して発生した非ゼロ係数の発生カウンタ)を用いる必要があったが、本実施形態に係る技術を導入することで、いずれも省略することができる。 Specifically, in the prior art, two counters (a counter for measuring the number of non-zero coefficients generated in the target block and a region where the zero coefficient is obvious when the secondary conversion is enabled are used to determine whether or not the secondary conversion is applied. It was necessary to use a non-zero coefficient generation counter), but any of them can be omitted by introducing the technique according to the present embodiment.

2つ目の効果は、二次変換が有効な場合、従来技術では、二次変換対象ブロックで全係数ゼロが自明なサブブロックに対して、coded_sub_block_flagを冗長
に復号又は符号化する必要があった。これに対して、本実施形態に係る技術を用いれば、かかる処理を省略することができるため、符号化性能の向上が期待できるということである。
The second effect is that when the secondary transformation is effective, in the prior art, it is necessary to redundantly decode or encode the coded_sub_block_flag for the subblock whose all coefficients are obvious to be zero in the secondary transformation target block. .. On the other hand, if the technique according to the present embodiment is used, such processing can be omitted, so that improvement in coding performance can be expected.

<変更例1>
以下、図10を参照して、上述の第1実施形態の変更例1について、上述の第1実施形態との相違点に着目して説明する。
<Change example 1>
Hereinafter, modification 1 of the above-mentioned first embodiment will be described with reference to FIG. 10, focusing on the differences from the above-mentioned first embodiment.

図10に示すフローチャートでは、図8に示すフローチャートに存在していなかったステップS66が、ステップS63の前に追加されている。 In the flowchart shown in FIG. 10, step S66, which did not exist in the flowchart shown in FIG. 8, is added before step S63.

ここで、二次変換が明らかに有効ではない場合、二次変換インデックスの伝送が冗長になるため、図10では、かかるステップS66が追加されている。 Here, if the secondary transformation is clearly not valid, the transmission of the secondary transformation index becomes redundant, so that step S66 is added in FIG.

例えば、二次変換の適用対象がイントラピクチャ或いはイントラブロックに限定される場合、所定条件に対象ブロックがイントラピクチャ或いはイントラブロックであるか否かについての判定を追加してもよい。 For example, when the application target of the secondary transformation is limited to the intra picture or the intra block, a determination as to whether or not the target block is an intra picture or an intra block may be added to a predetermined condition.

また、1つの符号化ブロックが、複数の予測ブロック又は変換ブロックに分割される場合は、二次変換の適用対象となる変換ブロックが増えるため、符号化性能の改善が期待できる一方で、符号化処理及び復号処理の遅延の増大が考えられる。 Further, when one coding block is divided into a plurality of prediction blocks or conversion blocks, the number of conversion blocks to which the secondary conversion is applied increases, so that the coding performance can be expected to be improved, but the coding is performed. It is conceivable that the delay in processing and decoding processing will increase.

そのため、所定条件に、例えば、非特許文献1に記載の符号化ブロックを複数に分割してのイントラ予測(イントラ細分割予測)が有効時には、二次変換を無効として扱うことで、意図しない処理遅延の増大を抑制することができる。したがって、所定条件に、対象ブロックに対してイントラ細分割予測が適用されるか否かについての判定を追加してもよい。 Therefore, for example, when the intra prediction by dividing the coded block described in Non-Patent Document 1 into a plurality of pieces (intra subdivision prediction) is valid under predetermined conditions, the secondary conversion is treated as invalid, which is an unintended process. The increase in delay can be suppressed. Therefore, a determination as to whether or not the intra-subdivision prediction is applied to the target block may be added to the predetermined conditions.

<変更例2>
以下、上述の第1実施形態の変更例2について、上述の第1実施形態及び変更例1との相違点に着目して説明する。
<Change example 2>
Hereinafter, the modified example 2 of the first embodiment described above will be described with a focus on the differences from the first embodiment and the modified example 1 described above.

上述の第1実施形態では、図8に示すように、二次変換インデックスの復号を符号化ブロック単位で行う例について説明した。 In the above-mentioned first embodiment, as shown in FIG. 8, an example in which the decoding of the secondary transformation index is performed in units of coded blocks has been described.

本変更例2では、符号化ブロックが複数の変換ブロックに分割される場合は、変換ブロック単位で二次変換インデックスの復号を行うように構成されていてもよい。 In the second modification, when the coded block is divided into a plurality of conversion blocks, it may be configured to decode the secondary conversion index in units of conversion blocks.

かかる構成によれば、二次変換インデックスを異なる変換ブロック単位で復号できることによって、二次変換の適用ブロック数が増大し、符号化性能の向上が期待できる。 According to such a configuration, since the secondary conversion index can be decoded in units of different conversion blocks, the number of blocks to which the secondary conversion is applied can be increased, and improvement in coding performance can be expected.

<第2実施形態>
以下、図11を参照して、本発明の第2実施形態について、上述の第1実施形態との相違点に着目して説明する。
<Second Embodiment>
Hereinafter, the second embodiment of the present invention will be described with reference to FIG. 11, focusing on the differences from the first embodiment described above.

本実施形態では、図11に示すように、二次変換の適用有無に応じた対象ブロックの最初に非ゼロ係数が発生する位置情報(last_coeff_pos)の復号方法を制御するように構成されている。 In the present embodiment, as shown in FIG. 11, it is configured to control the decoding method of the position information (last_coeff_pos) in which the non-zero coefficient is generated at the beginning of the target block depending on whether or not the secondary transformation is applied.

本実施形態は、last_coeff_posの復号方法に関して上述の第1実施形態1と異なる(図8参照)。本実施形態は、それ以外の部分については上述の第1実施形態と同様の構成を有しているため、説明を省略する。 This embodiment is different from the above-mentioned first embodiment 1 in terms of the method of decoding last_coeff_pos (see FIG. 8). Since this embodiment has the same configuration as that of the first embodiment described above for other parts, the description thereof will be omitted.

例えば、非特許文献2では、二次変換が有効なブロックで、対象ブロックサイズが4x4又は8x8である場合、二次変換の対象領域に対する非ゼロ係数の発生位置及び個数をそれぞれ最左上のサブブロック且つ8個と限定した。 For example, in Non-Patent Document 2, when the block for which the secondary transformation is effective and the target block size is 4x4 or 8x8, the position and the number of non-zero coefficients with respect to the target region of the secondary transformation are set as the upper left subblocks, respectively. And it was limited to eight.

このとき、非ゼロ係数の発生位置は、サブブロックのスキャン順を考慮すれば、図11のように特定できる。 At this time, the position where the non-zero coefficient is generated can be specified as shown in FIG. 11 in consideration of the scan order of the subblocks.

言い換えれば、二次変換が有効な場合、last_coeff_posが、図11に記載のスキャン順8~15を示すことはあり得ない。 In other words, if the secondary transformation is enabled, the last_coeff_pos cannot indicate the scan order 8-15 as shown in FIG.

そのため、last_coeff_posは、通常、x座標値及びy座標値のプレフィックス及びサフィックスにより復号されるが、二次変換が有効な場合で且つ対象ブロックの非ゼロ係数発生位置及び個数が限定される場合は、last_coeff_posの復号方法を、以下のように修正してもよい。 Therefore, last_coeff_pos is usually decoded by the prefix and suffix of the x-coordinate value and the y-coordinate value, but when the quadratic conversion is effective and the non-zero coefficient generation position and the number of the target block are limited, the last_coeff_pos is usually decoded. The decoding method of last_coordinate_pos may be modified as follows.

例えば、last_coeff_posを係数のスキャン順で、非ゼロ係数が発生する可能性のある0~7を範囲として、3ビットのインデックスで伝送できる。 For example, last_coeff_pos can be transmitted with a 3-bit index in the order of coefficient scanning, with a range of 0 to 7 where a non-zero coefficient may occur.

従来技術では、x座標値及びy座標値が、サブブロックに対してそれぞれ2ビットで表現されていたため、その分、符号量が節約でき、結果的に、符号化性能の向上効果が期待できる。 In the prior art, since the x-coordinate value and the y-coordinate value are each represented by 2 bits for each subblock, the code amount can be saved by that amount, and as a result, the effect of improving the coding performance can be expected.

<第3実施形態>
以下、図12及び図13を参照して、本発明の第3実施形態について、上述の第1実施形態及び第2実施形態との相違点に着目して説明する。
<Third Embodiment>
Hereinafter, the third embodiment of the present invention will be described with reference to FIGS. 12 and 13, focusing on the differences from the above-mentioned first embodiment and the second embodiment.

本実施形態は、二次変換適用有無判定方法と係数の復号方法に関して第1実施形態1と異なる(図8参照)。本実施形態は、それ以外の部分については上述の第1実施形態と同様の構成を有しているため、説明を省略する。 This embodiment is different from the first embodiment 1 in terms of the method for determining whether or not the secondary transformation is applied and the method for decoding the coefficients (see FIG. 8). Since this embodiment has the same configuration as that of the first embodiment described above for other parts, the description thereof will be omitted.

図12及び図13は、本実施形態に係る画像復号装置200における二次変換適用有無判定方法及び係数の復号方法の一例を示すフローチャートである。以下、かかるフローチャートを用いて、本実施形態に係る画像復号装置200の動作の一例について説明する。 12 and 13 are flowcharts showing an example of a method for determining whether or not a secondary transformation is applied and a method for decoding a coefficient in the image decoding apparatus 200 according to the present embodiment. Hereinafter, an example of the operation of the image decoding apparatus 200 according to the present embodiment will be described with reference to such a flowchart.

図12に示すように、ステップS61において、画像復号装置200は、図8に示すステップS61と同様に、対象ブロックの非ゼロ係数の存在有無を示すフラグ(cbf)を復号する。 As shown in FIG. 12, in step S61, the image decoding device 200 decodes a flag (cbf) indicating the presence or absence of the non-zero coefficient of the target block, similarly to step S61 shown in FIG.

ステップS62において、画像復号装置200は、図8に示すステップS62と同様に、cbfに基づいて、非ゼロ係数が存在するか否かについて判定する。 In step S62, the image decoding device 200 determines whether or not a non-zero coefficient exists based on cbf, as in step S62 shown in FIG.

非ゼロ係数が存在しない(非ゼロ係数が0個である)と判定された場合(すなわち、cbf=0であると判定された場合)は、本処理は、ステップS91に進む。 When it is determined that the non-zero coefficient does not exist (that is, when it is determined that the non-zero coefficient is 0) (that is, when it is determined that cbf = 0), this process proceeds to step S91.

一方、非ゼロ係数が存在する(非ゼロ係数が1個以上である)と判定された場合(すな
わち、cbf=1であると判定された場合)は、本処理は、ステップS64に進む。
On the other hand, when it is determined that the non-zero coefficient exists (that is, when it is determined that the non-zero coefficient is one or more) (that is, when it is determined that cbf = 1), this process proceeds to step S64.

ステップS64において、画像復号装置200は、図8に示すステップS64と同様に、スキャン順で、対象ブロックにおける最初の非ゼロ係数の発生位置を示す情報(last_coeff_pos)を復号する。 In step S64, the image decoding device 200 decodes the information (last_coeff_pos) indicating the position where the first non-zero coefficient occurs in the target block in the scanning order, similarly to step S64 shown in FIG.

ステップS93において、画像復号装置200は、図13に示す係数の復号処理を行う。図13に示す係数の復号処理は、図9に示すステップS642を含まない点を除いて、図9に示す係数の復号処理と同様である。 In step S93, the image decoding device 200 performs the decoding process of the coefficient shown in FIG. The coefficient decoding process shown in FIG. 13 is the same as the coefficient decoding process shown in FIG. 9, except that step S642 shown in FIG. 9 is not included.

ステップS91において、画像復号装置200は、後述する所定条件が満たされているか否かについて判定する。かかる所定条件が満たされていると判定された場合、本動作は、ステップS92に進み、かかる所定条件が満たされていないと判定された場合、本動作は、終了する。 In step S91, the image decoding device 200 determines whether or not the predetermined conditions described later are satisfied. If it is determined that the predetermined condition is satisfied, the operation proceeds to step S92, and if it is determined that the predetermined condition is not satisfied, the operation ends.

ここで、所定条件は、対象ブロックサイズによる二次変換インデックスの復号の有無という条件であってもよい。 Here, the predetermined condition may be a condition of whether or not the secondary conversion index is decoded according to the target block size.

例えば、画像復号装置200は、ステップS91において、対象の符号化ブロックの幅又は高さの少なくともいずれかが64より大きいと判定したとき、ステップS92において、二次変換インデックスを復号しないと判定してもよい。かかる判定による効果は、以下の通りである。 For example, when the image decoding device 200 determines in step S91 that at least one of the widths or heights of the target coded blocks is larger than 64, the image decoding device 200 determines in step S92 that the secondary conversion index is not decoded. May be good. The effects of this determination are as follows.

非特許文献3では、仮想パイプラインデータユニット(VPDU:Virtual Pipeline Data Units)と呼ばれるデコーダのパイプライン処理単位を維持するためのツールが採用されている。ここで、非特許文献3では、VPDUサイズは、64x64画素と設定されており、変換ブロックの幅及び高さの最大値は、64画素と設定されている。 In Non-Patent Document 3, a tool for maintaining a pipeline processing unit of a decoder called a virtual pipeline data unit (VPDU: Visual Pipeline Data Units) is adopted. Here, in Non-Patent Document 3, the VPDU size is set to 64x64 pixels, and the maximum value of the width and height of the conversion block is set to 64 pixels.

そのため、仮に、対象の符号化ブロックの幅又は高さのいずれかが64画素よりも大きい場合は、変換ブロックの幅及び高さが64画素以下になるように分割される。 Therefore, if either the width or the height of the target coded block is larger than 64 pixels, the conversion block is divided so that the width and height of the conversion block are 64 pixels or less.

例えば、符号化ブロックサイズが128×128画素である場合は、当該符号化ブロック内に64x64画素の変換ブロックが4つ含まれることになる。変換ブロックの最大サイズ及びVPDUのサイズが同じ大きさに規定されているため、変換ブロック毎に処理を行うことで、VPDUで規定するパイプライン処理を維持することができる。 For example, when the coded block size is 128 × 128 pixels, the coded block includes four conversion blocks of 64 × 64 pixels. Since the maximum size of the conversion block and the size of the VPDU are specified to be the same size, the pipeline processing specified by the VPDU can be maintained by performing the processing for each conversion block.

符号化ブロック内に複数の変換ブロックが含まれる場合、画像復号装置200は、全ての変換ブロックについて、図12に示すステップS61、S62、S64及びS93のそれぞれが実施した後、ステップS91を実施する。 When a plurality of conversion blocks are included in the coding block, the image decoding apparatus 200 performs step S91 after each of steps S61, S62, S64 and S93 shown in FIG. 12 is performed for all the conversion blocks. ..

したがって、符号化ブロックの幅又は高さの少なくともいずれかが64画素より大きいとき、二次変換インデックスの復号制御を行うために、対象ブロックを構成する全てのVPDUの処理が完了するのを待たなければならず、デコーダのパイプライン処理が遅延してしまう。 Therefore, when at least one of the width or height of the coded block is larger than 64 pixels, it is necessary to wait for the processing of all the VPDUs constituting the target block to be completed in order to perform the decoding control of the secondary conversion index. Therefore, the pipeline processing of the decoder is delayed.

そこで、上述のように、二次変換インデックスの復号を制限しておけば、この処理遅延を回避できる効果が期待できる。 Therefore, if the decoding of the secondary conversion index is restricted as described above, the effect of avoiding this processing delay can be expected.

また、所定条件は、非ゼロ係数の発生位置情報(last_coeff_pos)又は対
象サブブロックの非ゼロ係数の発生有無を示すフラグ(coded_sub_block_
flag)を用いて判定される二次変換インデックスの復号の有無という条件であってもよい。
In addition, the predetermined condition is the occurrence position information (last_coeff_pos) of the non-zero coefficient or the flag (coded_sub_block_) indicating whether or not the non-zero coefficient of the target subblock is generated.
It may be a condition of presence / absence of decoding of the secondary transformation index determined by using flag).

例えば、所定条件は、非特許文献2に示す対象ブロックが4×4画素や8×8画素である場合のように、二次変換適用時の非ゼロ係数の発生領域が限定される場合、非ゼロ係数が発生し得ない領域に対して、last_coeff_pos又はcoded_sub_block_flagが非ゼロ係数の存在を示していないことという条件を含んでもよい。 For example, the predetermined condition is not when the region where the non-zero coefficient is generated when the secondary transformation is applied is limited, such as when the target block shown in Non-Patent Document 2 is 4 × 4 pixels or 8 × 8 pixels. It may include the condition that the last_coeff_pos or coded_sub_block_flag does not indicate the existence of the non-zero coefficient for the region where the zero coefficient cannot occur.

例えば、所定条件は、対象ブロックのcbfがゼロでないこと或いは対象ブロックのlast_coeff_posがDC成分(直流成分)を指していないことという条件を含んでもよい。 For example, the predetermined condition may include the condition that the cbf of the target block is not zero or that the last_coeff_pos of the target block does not point to the DC component (DC component).

なお、last_coeff_pos及びcbfによる判定は、対象ブロックの輝度信号(Y信号)及び色差信号(Cb信号及びCr信号)のブロック分割ツリー構造が異なる場合(Dual Tree)と両者が同じ場合(Single Tree)とで、以下のように判定してもよい。 The determination based on last_coeff_pos and cbf is based on the case where the block division tree structure of the luminance signal (Y signal) and the color difference signal (Cb signal and Cr signal) of the target block is different (Dual Tree) and when both are the same (Single Tree). Then, it may be determined as follows.

Dual Tree時のY信号で且つlast_coeff_posがDC成分又はcbfが0である場合、画像復号装置200は、二次変換インデックスについて復号しない。 When it is a Y signal at the time of Dual Tree and the last_coeff_pos is a DC component or cbf is 0, the image decoding apparatus 200 does not decode the secondary conversion index.

Dual Tree時のCb/Cr信号で且つCb/Cr信号の両方についてlast_
coeff_posがDC成分又はcbfが0である場合、画像復号装置200は、二次
変換インデックスについて復号しない。
Last_ for both Cb / Cr signal and Cb / Cr signal at the time of Dual Tree
When coeff_pos is a DC component or cbf is 0, the image decoding device 200 does not decode the secondary conversion index.

Single Tree時のY信号、Cb信号及びCr信号の全てについてlast_
coeff_posがDC成分又はcbfが0である場合、画像復号装置200は、二次
変換インデックスについて復号しない。
Last_ for all Y signal, Cb signal and Cr signal at the time of Single Tree
When coeff_pos is a DC component or cbf is 0, the image decoding device 200 does not decode the secondary conversion index.

或いは、Single Tree時は、Y信号のlast_coeff_posがDC成分又はcbfが0である場合、画像復号装置200は、二次変換インデックスについて復号しないとしてもよい。 Alternatively, at the time of Single Tree, if the last_coeff_pos of the Y signal is a DC component or cbf is 0, the image decoding apparatus 200 may not decode the secondary conversion index.

かかる構成によれば、Cb信号及びCr信号のcbf及びlast_coeff_posの値に依存せずに二次変換インデックスの復号の有無について判定することができる。 According to such a configuration, it is possible to determine whether or not the secondary conversion index is decoded without depending on the values of cbf and last_coeff_pos of the Cb signal and the Cr signal.

以上の判定において、二次変換インデックスが復号されない場合は、暗黙的に二次変換インデックスが0であるとして扱われる(すなわち、二次変換を適用しないと判定される)。 In the above determination, if the secondary transformation index is not decoded, it is implicitly treated as having a secondary transformation index of 0 (that is, it is determined that the secondary transformation is not applied).

上述のように、二次変換が適用される時の非ゼロ係数の発生領域が限定される場合、非ゼロ係数が発生し得ない領域に対して、last_coeff_pos又はcoded_s
ub_block_flagが非ゼロ係数の存在を示す場合、対象ブロックに対して二次変換が適用されないことは明らかである。
As described above, when the region where the non-zero coefficient is generated when the quadratic transformation is applied is limited, the region where the non-zero coefficient cannot occur is the last_coeff_pos or coded_s.
If ub_block_flag indicates the presence of a nonzero coefficient, it is clear that no quadratic transformation is applied to the target block.

そのため、例えば、所定条件の判定において、対象ブロックが4×4画素又は8×8画素である場合で、非ゼロ係数が発生し得ない領域に対して、last_coeff_pos又はcoded_sub_block_flagが非ゼロ係数の存在を示す場合は、二次変
換インデックスを復号しないとすることで、二次変換インデックスの伝送にかかる符号量を節約でき、結果的に符号化性能の向上効果を期待することができる。
Therefore, for example, in the determination of a predetermined condition, when the target block has 4 × 4 pixels or 8 × 8 pixels, the last_coeff_pos or coded_sub_block_flag indicates the existence of the non-zero coefficient in the region where the non-zero coefficient cannot occur. In this case, by not decoding the secondary conversion index, the amount of code required for transmission of the secondary conversion index can be saved, and as a result, the effect of improving the coding performance can be expected.

また、last_coeff_posが、対象ブロックのDC成分を指す場合、対象ブロック内の非ゼロ係数は、DC成分のみである。一方で、二次変換が効果を発揮するのは、二次変換が非ゼロの一次変換係数を密集させるという性質上、非ゼロの一次変換が高周波成分にも存在する場合であるため、非ゼロの一次変換係数がDC成分のみである場合には、二次変換を適用しなくてもよい。 Further, when last_coeff_pos points to the DC component of the target block, the non-zero coefficient in the target block is only the DC component. On the other hand, the second-order transformation is effective when the non-zero first-order transformation also exists in the high-frequency component due to the nature that the second-order transformation concentrates the non-zero first-order conversion coefficients, so that it is non-zero. When the primary conversion coefficient is only the DC component, the secondary conversion may not be applied.

そのため、例えば、last_coeff_posが、対象ブロック内のDC成分を指す場合、二次変換インデックスを復号しないと判定することで、二次変換インデックスの伝送にかかる符号量を節約でき、結果的に符号化性能の向上効果を期待することができる。 Therefore, for example, when last_coeff_pos points to the DC component in the target block, it is determined that the secondary conversion index is not decoded, so that the code amount required for transmission of the secondary conversion index can be saved, and as a result, the coding performance can be saved. Can be expected to improve.

次に、対象ブロックのcbfが0である場合、上述の通り、対象ブロック内の非ゼロ係数は、皆無であることから、対象ブロックには、二次変換が適用されないことが自明であるため、二次変換インデックスを復号しないと判定することで、二次変換インデックスの伝送にかかる符号量を節約でき、結果的に符号化性能の向上効果を期待することができる。 Next, when the cbf of the target block is 0, as described above, since there is no non-zero coefficient in the target block, it is obvious that the quadratic transformation is not applied to the target block. By determining that the secondary conversion index is not decoded, the amount of code required for transmission of the secondary conversion index can be saved, and as a result, the effect of improving the coding performance can be expected.

ステップS92において、画像復号装置200は、二次変換インデックスを復号して、本動作を終了する。 In step S92, the image decoding device 200 decodes the secondary conversion index and ends this operation.

<変更例3>
以下、変更例3について、上述の第3実施形態との相違点に着目して説明する。変更例3では、last_coeff_pos及びcoded_sub_block_flagを用
いて二次変換インデックス復号の有無について判定するように構成されている。
<Change example 3>
Hereinafter, the third modification will be described with a focus on the differences from the third embodiment described above. In the third modification, the last_coeff_pos and coded_sub_block_flag are used to determine whether or not the secondary conversion index is decoded.

上述の第3実施形態では、対象ブロックの二次変換インデックスの復号の有無について、last_coeff_pos及びcoded_sub_block_flagが、二次変
換が適用される時に非ゼロ係数の発生が制限される領域に対して非ゼロ係数の存在を示す場合に、二次変換インデックスについて復号しないと判定していた。
In the third embodiment described above, regarding the presence or absence of decoding of the secondary transformation index of the target block, the last_coeff_pos and coded_sub_block_flag are non-zero coefficients for the region where the generation of the non-zero coefficient is restricted when the secondary transformation is applied. When indicating the existence of, it was determined that the secondary transformation index would not be decoded.

一方、変更例3では、例えば、二次変換が適用される場合に、処理簡素化のために、対象ブロックの高周波成分が全てゼロになる(ゼロイングされる)場合は、coded_s
ub_block_flagによる判定は、明らかに不要であるため、last_coef
f_posのみから二次変換の復号の有無について判定してもよい。
On the other hand, in modification 3, for example, when a secondary transformation is applied and the high frequency components of the target block are all zeroed (zeroed) for processing simplification, coded_s
Judgment by ub_block_flag is obviously unnecessary, so last_coef
It may be determined whether or not the secondary transformation is decoded only from f_pos.

<変更例4>
以下、変更例4について、上述の第3実施形態との相違点に着目して説明する。
<Change example 4>
Hereinafter, the fourth modification will be described with a focus on the differences from the third embodiment described above.

上述の実施例3では、二次変換インデックスの復号判定を符号化ブロック単位で行う例について説明した。 In Example 3 described above, an example in which the decoding determination of the secondary transformation index is performed in units of coded blocks has been described.

一方、変更例4では、符号化ブロックが複数の変換ブロックに分割される場合は、変換ブロック単位で、かかる判定を行ってもよい。かかる構成によれば、二次変換インデックスの復号を、変換ブロック単位で判定することによって、二次変換適用の可能性がある対象ブロック数が増大し、結果的に符号化性能の向上を期待することができる。 On the other hand, in the modification example 4, when the coded block is divided into a plurality of conversion blocks, such determination may be performed for each conversion block. According to this configuration, by determining the decoding of the secondary transformation index in units of transformation blocks, the number of target blocks to which the secondary transformation can be applied increases, and as a result, the coding performance is expected to improve. be able to.

なお、上述の画像符号化装置100及び画像復号装置200は、コンピュータに各機能(各工程)を実行させるプログラムであって実現されていてもよい。 The image coding device 100 and the image decoding device 200 described above may be realized by a program that causes a computer to execute each function (each step).

なお、上述の実施形態では、本発明を画像符号化装置100及び画像復号装置200へ
の適用を例にして説明したが、本発明は、かかる例に限定されるものではなく、画像符号化装置100及び画像復号装置200の各機能を備えた画像符号化/復号システムにも同
様に適用できる。
In the above-described embodiment, the present invention has been described by using the application to the image coding device 100 and the image decoding device 200 as an example, but the present invention is not limited to such an example, and the image coding device is not limited to this. It can be similarly applied to an image coding / decoding system having each function of the 100 and the image decoding device 200.

本発明によれば、従来方式では、係数の復号時に二次変換の適用有無を判定するために非ゼロ係数の個数をカウントする追加処理が必要であったが、本発明のような構成とすることで追加処理が不要となり、処理の高速化又は負荷低減が期待できる。 According to the present invention, in the conventional method, an additional process of counting the number of non-zero coefficients is required in order to determine whether or not the secondary transformation is applied at the time of decoding the coefficients. This eliminates the need for additional processing, and can be expected to speed up processing or reduce the load.

さらに、本発明によれば、二次変換が適用されていない又は効果が低いと判断できるブロックについて、二次変換インデックスの復号を省略できるため、符号化性能の向上が期待できる。 Further, according to the present invention, the decoding of the secondary conversion index can be omitted for the block to which the secondary conversion is not applied or the effect can be determined to be low, so that the coding performance can be expected to be improved.

10…画像処理システム
100…画像符号化装置
111、241…インター予測部
112、242…イントラ予測部
121…減算器
122、230…加算器
131…変換・量子化部
131A…一次変換部
131B…二次変換部
131C…量子化部
132、220…逆変換・逆量子化部
220A…逆量子化部
220B…逆二次変換部
220C…逆一次変換部
140…符号化部
150、250…インループフィルタ処理部
160、260…フレームバッファ
200…画像復号装置
210…復号部
10 ... Image processing system 100 ... Image coding device 111, 241 ... Inter prediction unit 112, 242 ... Intra prediction unit 121 ... Subtractor 122, 230 ... Adder 131 ... Conversion / quantization unit 131A ... Primary conversion unit 131B ... Second Next conversion unit 131C ... Quantization unit 132, 220 ... Inverse conversion / inverse quantization unit 220A ... Inverse quantization unit 220B ... Inverse secondary conversion unit 220C ... Inverse primary conversion unit 140 ... Coding unit 150, 250 ... In-loop filter Processing unit 160, 260 ... Frame buffer 200 ... Image decoding device 210 ... Decoding unit

Claims (3)

画像復号装置であって、
逆変換により予測残差信号を生成するように構成されている逆変換部を備え、
前記逆変換部は、符号化ブロックの幅又は高さの少なくともいずれかが変換ブロックの幅及び高さの最大値より大きい場合、前記符号化ブロックの二次変換インデックスを復号しないように構成されており、
前記二次変換インデックスは、前記符号化ブロックに対して二次変換が有効であるか否かについて示すと共に、使用可能な変換行列を設定することを特徴とする画像復号装置。
It is an image decoder
It has an inverse converter configured to generate a predicted residual signal by inverse transformation.
The inverse conversion unit is configured not to decode the secondary conversion index of the coded block when at least one of the width or height of the coded block is larger than the maximum value of the width and height of the coded block. Ori,
The image decoding device is characterized in that the secondary transformation index indicates whether or not the secondary transformation is valid for the coded block, and sets a usable transformation matrix .
逆変換により予測残差信号を生成する工程を有し、
前記工程において、符号化ブロックの幅又は高さの少なくともいずれかが変換ブロックの幅及び高さの最大値より大きい場合、前記符号化ブロックの二次変換インデックスを復号せず、
前記二次変換インデックスは、前記符号化ブロックに対して二次変換が有効であるか否かについて示すと共に、使用可能な変換行列を設定することを特徴とする画像復号方法。
It has a step of generating a predicted residual signal by inverse conversion, and has a process of generating a predicted residual signal.
In the step, if at least one of the width or height of the coded block is greater than the maximum width and height of the converted block, the secondary conversion index of the coded block is not decoded.
The image decoding method , wherein the secondary transformation index indicates whether or not the secondary transformation is valid for the coded block, and sets a usable transformation matrix .
コンピュータを、画像復号装置として機能させるプログラムであって、
前記画像復号装置は、逆変換により予測残差信号を生成するように構成されている逆変換部を備え、
前記逆変換部は、符号化ブロックの幅又は高さの少なくともいずれかが変換ブロックの幅及び高さの最大値より大きい場合、前記符号化ブロックの二次変換インデックスを復号しないように構成されており、
前記二次変換インデックスは、前記符号化ブロックに対して二次変換が有効であるか否かについて示すと共に、使用可能な変換行列を設定することを特徴とするプログラム。
A program that makes a computer function as an image decoder
The image decoding device includes an inverse conversion unit configured to generate a predicted residual signal by inverse conversion.
The inverse conversion unit is configured not to decode the secondary conversion index of the coded block when at least one of the width or height of the coded block is larger than the maximum value of the width and height of the coded block. Ori,
The quadratic transformation index is a program characterized by indicating whether or not a quadratic transformation is valid for the coded block and setting a usable transformation matrix .
JP2020206018A 2020-12-11 2020-12-11 Image decoder, image decoding method and program Active JP7049434B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2020206018A JP7049434B2 (en) 2020-12-11 2020-12-11 Image decoder, image decoding method and program
JP2021144796A JP7184984B2 (en) 2020-12-11 2021-09-06 Image decoding device, image decoding method and program
JP2022035020A JP2022088421A (en) 2020-12-11 2022-03-08 Image decoder, image decoding method and program
JP2022187830A JP7526552B2 (en) 2020-12-11 2022-11-24 Image decoding device, image decoding method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020206018A JP7049434B2 (en) 2020-12-11 2020-12-11 Image decoder, image decoding method and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2019116786A Division JP6912522B2 (en) 2019-06-24 2019-06-24 Image decoding device, image decoding method and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2021144796A Division JP7184984B2 (en) 2020-12-11 2021-09-06 Image decoding device, image decoding method and program

Publications (3)

Publication Number Publication Date
JP2021044844A JP2021044844A (en) 2021-03-18
JP2021044844A5 JP2021044844A5 (en) 2021-04-30
JP7049434B2 true JP7049434B2 (en) 2022-04-06

Family

ID=74864367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020206018A Active JP7049434B2 (en) 2020-12-11 2020-12-11 Image decoder, image decoding method and program

Country Status (1)

Country Link
JP (1) JP7049434B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023010989A (en) * 2020-12-11 2023-01-20 Kddi株式会社 Image decoding device, image decoding method and program
US12382070B2 (en) 2019-06-24 2025-08-05 Kddi Corporation Image decoding device, image decoding method, and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190149822A1 (en) 2016-05-04 2019-05-16 Sharp Kabushiki Kaisha Systems and methods for coding transform data

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190149822A1 (en) 2016-05-04 2019-05-16 Sharp Kabushiki Kaisha Systems and methods for coding transform data

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CHEN, Jianle et al.,Algorithm description for Versatile Video Coding and Test Model 5 (VTM 5),Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11 14th Meeting: Geneva, CH, 19-27 Mar. 2019, [JVET-N1002-v2],JVET-N1002 (version 2),ITU-T,2019年06月11日,pp. 15-16
KOO, Moonmo et al.,CE6: Reduced Secondary Transform (RST) (CE6-3.1),Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11 14th Meeting: Geneva, CH, 19-27 March 2019, [JVET-N0193],JVET-N0193 (version 5),ITU-T,2019年03月27日,<URL:http://phenix.it-sudparis.eu/jvet/doc_end_user/documents/14_Geneva/wg11/JVET-N0193-v5.zip>: JVET-N0193_r3.docx: pp. 1-19
SEREGIN, Vadim et al.,EE2: Grouped signalling for transform,Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11 4th Meeting: Chengdu, CN, 15-21 October 2016, [JVET-D0112r1],JVET-D0112 (version 2),ITU-T,2016年10月12日,pp. 1-4

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12382070B2 (en) 2019-06-24 2025-08-05 Kddi Corporation Image decoding device, image decoding method, and program
JP2023010989A (en) * 2020-12-11 2023-01-20 Kddi株式会社 Image decoding device, image decoding method and program
JP7526552B2 (en) 2020-12-11 2024-08-01 Kddi株式会社 Image decoding device, image decoding method, and program

Also Published As

Publication number Publication date
JP2021044844A (en) 2021-03-18

Similar Documents

Publication Publication Date Title
RU2694012C1 (en) Improved intra prediction encoding using planar views
JP5728671B2 (en) Video decoding device
JP2023126408A (en) Intra prediction method and encoder and decoder using it
TWI558212B (en) Method for post-processing reconstructing pictures
JP7005854B2 (en) Interpolation filters and methods of interpolator for video coding
US20250337936A1 (en) Image decoding device, image decoding method, and program
JP7049434B2 (en) Image decoder, image decoding method and program
JP7526552B2 (en) Image decoding device, image decoding method, and program
WO2020059341A1 (en) Image decoding device, image encoding device, image processing system, and program
CN114640847B (en) Encoding and decoding method, device and equipment thereof
CN112616326B (en) Image decoding device, image decoding method and storage medium
JP7422254B2 (en) Image decoding device, image decoding method and program
JP6115968B2 (en) Image encoding device, image decoding device, image encoding method, image decoding method, image encoding program, and image decoding program
JP2022088421A (en) Image decoder, image decoding method and program
JP7005480B2 (en) Image decoder, image coding device, program and image processing system
CN109891889B (en) Processing apparatus and control method thereof
JP7034363B2 (en) Image decoder, image decoding method and program
JP2014007713A (en) Deblocking method, deblocking device, program, and recording medium
JP7109961B2 (en) Image decoding device, image encoding device, image processing system, image decoding method and program
JP6396782B2 (en) Deblocking processing method, deblocking processing apparatus, computer program, and recording medium
JP6485045B2 (en) Index operation apparatus, program and method
WO2020184262A1 (en) Image decoding device, image decoding method, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210212

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210212

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20210212

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20210330

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210406

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20210407

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210526

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210803

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210914

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20211109

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220208

C60 Trial request (containing other claim documents, opposition documents)

Free format text: JAPANESE INTERMEDIATE CODE: C60

Effective date: 20220208

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20220221

C21 Notice of transfer of a case for reconsideration by examiners before appeal proceedings

Free format text: JAPANESE INTERMEDIATE CODE: C21

Effective date: 20220222

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220322

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220325

R150 Certificate of patent or registration of utility model

Ref document number: 7049434

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150