JP2021082913A - Moving image decoding device and moving image encoding device - Google Patents

Moving image decoding device and moving image encoding device Download PDF

Info

Publication number
JP2021082913A
JP2021082913A JP2019207986A JP2019207986A JP2021082913A JP 2021082913 A JP2021082913 A JP 2021082913A JP 2019207986 A JP2019207986 A JP 2019207986A JP 2019207986 A JP2019207986 A JP 2019207986A JP 2021082913 A JP2021082913 A JP 2021082913A
Authority
JP
Japan
Prior art keywords
prediction
unit
parameter
moving image
geo
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
JP2019207986A
Other languages
Japanese (ja)
Inventor
天洋 周
Tianyang Zhou
天洋 周
知宏 猪飼
Tomohiro Igai
知宏 猪飼
瑛一 佐々木
Eiichi Sasaki
瑛一 佐々木
友子 青野
Tomoko Aono
友子 青野
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2019207986A priority Critical patent/JP2021082913A/en
Publication of JP2021082913A publication Critical patent/JP2021082913A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

To provide a moving image encoding and decoding technology that can shorten encoding time and improve encoding efficiency.SOLUTION: A moving image decoding device includes a parameter decoding unit and a prediction unit. The parameter decoding unit decodes a plurality of parameters. The prediction unit performs prediction for each of two non-rectangular prediction units in which a target block is divided by a linear segment spanning the target block. Furthermore, the prediction unit switches a prediction process between a case where the two non-rectangular prediction units are two triangular prediction units and a case where the two non-rectangular prediction units are not two triangular prediction units, based at least on values of two parameters among the plurality of parameters decoded by the parameter decoding unit.SELECTED DRAWING: Figure 26

Description

本発明の実施形態は、動画像復号装置および動画像符号化装置に関する。 Embodiments of the present invention relate to a moving image decoding device and a moving image coding device.

動画像を効率的に伝送または記録するために、動画像を符号化することによって符号化データを生成する動画像符号化装置、および、当該符号化データを復号することによって復号画像を生成する動画像復号装置が用いられている。 In order to efficiently transmit or record a moving image, a moving image coding device that generates encoded data by encoding the moving image, and a moving image that generates a decoded image by decoding the encoded data. An image decoding device is used.

具体的な動画像符号化方式としては、例えば、H.264/AVCやHEVC(High-Efficiency Video Coding)方式などが挙げられる。 Specific examples of the moving image coding method include H.264 / AVC and HEVC (High-Efficiency Video Coding) method.

このような動画像符号化方式においては、動画像を構成する画像(ピクチャ)は、画像を分割することにより得られるスライス、スライスを分割することにより得られる符号化ツリーユニット(CTU:Coding Tree Unit)、符号化ツリーユニットを分割することで得られる符号化単位(符号化ユニット(Coding Unit:CU)と呼ばれることもある)、及び、符号化単位を分割することより得られる変換ユニット(TU:Transform Unit)からなる階層構造により管理され、CU毎に符号化/復号される。 In such a moving image coding method, the image (picture) constituting the moving image is a slice obtained by dividing the image and a coding tree unit (CTU: Coding Tree Unit) obtained by dividing the slice. ), A coding unit obtained by dividing the coding tree unit (sometimes called a coding unit (CU)), and a conversion unit (TU:) obtained by dividing the coding unit. It is managed by a hierarchical structure consisting of (Transform Unit), and is encoded / decoded for each CU.

また、このような動画像符号化方式においては、通常、入力画像を符号化/復号することによって得られる局所復号画像に基づいて予測画像が生成され、当該予測画像を入力画像(原画像)から減算して得られる予測誤差(「差分画像」または「残差画像」と呼ぶこともある)が符号化される。予測画像の生成方法としては、画面間予測(インター予測)、および、画面内予測(イントラ予測)が挙げられる。 Further, in such a moving image coding method, a predicted image is usually generated based on a locally decoded image obtained by encoding / decoding an input image, and the predicted image is obtained from the input image (original image). The prediction error obtained by subtraction (sometimes referred to as "difference image" or "residual image") is encoded. Examples of the method for generating a prediction image include inter-screen prediction (inter-screen prediction) and in-screen prediction (intra-prediction).

また、近年の動画像符号化及び復号の技術として非特許文献1が挙げられる。非特許文献1には、マージ予測が開示されている。マージ予測には、例えば、対象ブロックを三角形状の領域に分割し、領域ごとに異なるインター予測を実施するTriangle予測が含まれる。非特許文献2には、Triangle予測を拡張することによってより一般化されたマージ予測であって、対象ブロックを矩形以外の形状に分割し、領域ごとに異なるインター予測を実施するGEO(geometric partition)予測が開示されている。このように対象ブロックを矩形以外の形状に分割することにより、複雑なテクスチャに対してもより正確に予測することができ、符号化効率が向上する。 In addition, Non-Patent Document 1 is mentioned as a recent moving image coding and decoding technique. Non-Patent Document 1 discloses a merge prediction. The merge prediction includes, for example, a Triangle prediction in which the target block is divided into triangular regions and different inter predictions are performed for each region. Non-Patent Document 2 is a merge prediction that is more generalized by extending the Triangle prediction. GEO (geometric partition) that divides the target block into shapes other than rectangles and performs different inter prediction for each region. The forecast is disclosed. By dividing the target block into shapes other than the rectangle in this way, it is possible to predict more accurately even for a complicated texture, and the coding efficiency is improved.

"Versatile Video Coding (Draft 6)", JVET-O2001-vE, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 2019-05-29"Versatile Video Coding (Draft 6)", JVET-O2001-vE, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29/WG 11, 2019-05-29 "Simplified GEO without multiplication and minimum blending mask storage", JVET-P0884-WD, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11,16th Meeting: Geneva, CH, 1-11 October 2019"Simplified GEO without multiplication and minimum blending mask storage", JVET-P0884-WD, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29/WG 11,16th Meeting: Geneva , CH, 1-11 October 2019

しかしながら非特許文献2に記載の方法では、GEO予測モードは、Triangle予測モードより処理が複雑であるため、符号化装置の能力や対象シーケンスによっては処理が間に合わなくなる可能性があるという課題がある。また、符号化装置の能力や対象シーケンスに応じて、GEO予測モードのまま、GEO予測モードに含まれる一部の分割パターンのみを用いる場合、処理を間に合わせることはできるが、分割パターンのパーティションインデックスのシンタックスのオーバーヘッドが大きくなり、符号化効率が低下するという課題がある。 However, in the method described in Non-Patent Document 2, since the processing of the GEO prediction mode is more complicated than that of the Triangle prediction mode, there is a problem that the processing may not be in time depending on the capability of the encoding device and the target sequence. Further, depending on the capability of the encoding device and the target sequence, when only a part of the division patterns included in the GEO prediction mode is used while the GEO prediction mode is maintained, the processing can be made in time, but the partition index of the division pattern can be used. There is a problem that the overhead of the syntax of the above increases and the coding efficiency decreases.

そこで、本発明の一態様は、上記の課題に鑑みてなされたものであり、その目的は、符号化処理を簡略化した予測モードを提供するとともに、簡略化モードにおける符号化効率を向上させることができる動画像復号装置および動画像符号化装置を提供することにある。 Therefore, one aspect of the present invention has been made in view of the above problems, and an object of the present invention is to provide a prediction mode in which the coding process is simplified and to improve the coding efficiency in the simplified mode. It is an object of the present invention to provide a moving image decoding device and a moving image coding device capable of performing the above.

本発明の一態様に係る動画像復号装置は、パラメータ復号部と予測部とを備えている。パラメータ復号部は、複数のパラメータを復号する。予測部は、対象ブロックをまたがる直線分によって対象ブロックが分割された2つの非矩形予測単位毎に予測を行う。さらに、予測部は、パラメータ復号部によって復号された複数のパラメータのうちの2つのパラメータの値に基づいて、2つの非矩形予測単位が2つの三角形予測単位である場合と2つの非矩形予測単位が2つの三角形予測単位でない場合との間で、予測処理を切り替える。 The moving image decoding device according to one aspect of the present invention includes a parameter decoding unit and a prediction unit. The parameter decoding unit decodes a plurality of parameters. The prediction unit makes a prediction for each of two non-rectangular prediction units in which the target block is divided by a straight line portion straddling the target block. Further, the prediction unit is based on the values of two of the plurality of parameters decoded by the parameter decoding unit, and the case where the two non-rectangular prediction units are two triangle prediction units and the case where the two non-rectangular prediction units are two non-rectangular prediction units. The prediction process is switched between the case where is not two triangle prediction units.

本発明の一態様によれば、動画像符号化・復号処理において、符号化時間を短くするとともに符号化効率を向上させることができる。 According to one aspect of the present invention, in the moving image coding / decoding process, the coding time can be shortened and the coding efficiency can be improved.

本実施形態に係る画像伝送システムの構成を示す概略図である。It is the schematic which shows the structure of the image transmission system which concerns on this embodiment. 本実施形態に係る動画像符号化装置を搭載した送信装置、および、動画像復号装置を搭載した受信装置の構成について示した図である。(a)は動画像符号化装置を搭載した送信装置を示しており、(b)は動画像復号装置を搭載した受信装置を示している。It is a figure which showed the structure of the transmission device which carried out the moving image coding device which concerns on this embodiment, and the receiving device which carried out moving image decoding device. (a) shows a transmitting device equipped with a moving image coding device, and (b) shows a receiving device equipped with a moving image decoding device. 本実施形態に係る動画像符号化装置を搭載した記録装置、および、動画像復号装置を搭載した再生装置の構成について示した図である。(a)は動画像符号化装置を搭載した記録装置を示しており、(b)は動画像復号装置を搭載した再生装置を示している。It is a figure which showed the structure of the recording apparatus which carried out the moving image coding apparatus which concerns on this embodiment, and the reproduction apparatus which mounted on moving image decoding apparatus. (a) shows a recording device equipped with a moving image coding device, and (b) shows a reproducing device equipped with a moving image decoding device. 符号化ストリームのデータの階層構造を示す図である。It is a figure which shows the hierarchical structure of the data of a coded stream. CTUの分割例を示す図である。It is a figure which shows the division example of CTU. 参照ピクチャおよび参照ピクチャリストの一例を示す概念図である。It is a conceptual diagram which shows an example of a reference picture and a reference picture list. 動画像復号装置の構成を示す概略図である。It is the schematic which shows the structure of the moving image decoding apparatus. 動画像復号装置の概略的動作を説明するフローチャートである。It is a flowchart explaining the schematic operation of the moving image decoding apparatus. インター予測パラメータ導出部の構成を示す概略図である。It is the schematic which shows the structure of the inter prediction parameter derivation part. マージ予測パラメータ導出部、および、AMVP予測パラメータ導出部の構成を示す概略図である。It is the schematic which shows the structure of the merge prediction parameter derivation part and AMVP prediction parameter derivation part. インター予測画像生成部の構成を示す概略図である。It is the schematic which shows the structure of the inter prediction image generation part. 動画像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the moving image coding apparatus. インター予測パラメータ符号化部の構成を示す概略図である。It is the schematic which shows the structure of the inter prediction parameter coding part. BIO部が予測画像を導出する処理の流れを説明するフローチャートである。It is a flowchart explaining the flow of the process which the BIO part derives a predicted image. BIO部の構成を示す概略図である。It is the schematic which shows the structure of the BIO part. MMVDを説明する図である。It is a figure explaining MMVD. GEO予測を説明する図である。It is a figure explaining GEO prediction. 第1の例におけるGEO予測の符号化パラメータを説明するシンタックス図である。It is a syntax diagram explaining the coding parameter of GEO prediction in the 1st example. 第1の例におけるGEO予測の符号化パラメータを説明するシンタックス図である。It is a syntax diagram explaining the coding parameter of GEO prediction in the 1st example. 第2の例におけるGEO予測の符号化パラメータを説明するシンタックス図である。It is a syntax diagram explaining the coding parameter of GEO prediction in the 2nd example. 第2の例におけるGEO予測の符号化パラメータを説明するシンタックス図である。It is a syntax diagram explaining the coding parameter of GEO prediction in the 2nd example. GEO予測におけるwedge_partition_idxとangleIdxおよびdistanceIdxとの対応を示すGEO予測用テーブルの構造を示す図である。It is a figure which shows the structure of the GEO prediction table which shows the correspondence between wedge_partition_idx and angleIdx and distanceIdx in GEO prediction. Triangle予測におけるwedge_partition_idxとangleIdxおよびdistanceIdxとの対応を示すTriangle予測用テーブルの構造を示す図である。It is a figure which shows the structure of the table for Triangle prediction which shows the correspondence between wedge_partition_idx and angleIdx and distanceIdx in Triangle prediction. GEO予測における重み係数導出処理および動きベクトル格納処理において用いられるidxとDis[idx]との対応を示すテーブルの構造を示す図である。It is a figure which shows the structure of the table which shows the correspondence of idx and Dis [idx] used in the weighting coefficient derivation process and the motion vector storage process in GEO prediction. GEO予測における重み係数導出処理において用いられるidxとWedgeFilter[idx]との対応を示すテーブルの構造を示す図である。It is a figure which shows the structure of the table which shows the correspondence between idx and WedgeFilter [idx] used in the weighting coefficient derivation process in GEO prediction. 第1の例におけるGEO予測の処理の流れを示すフローチャートである。It is a flowchart which shows the process flow of GEO prediction in the 1st example. 第2の例におけるGEO予測の処理の流れを示すフローチャートである。It is a flowchart which shows the process flow of GEO prediction in the 2nd example. 第1の例の拡張例におけるシンタックス図である。It is a syntax diagram in the extended example of the 1st example.

(第1の実施形態)
以下、図面を参照しながら本発明の実施形態について説明する。
(First Embodiment)
Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本実施形態に係る画像伝送システム1の構成を示す概略図である。 FIG. 1 is a schematic view showing a configuration of an image transmission system 1 according to the present embodiment.

画像伝送システム1は、対象画像を符号化した符号化ストリームを伝送し、伝送された符号化ストリームを復号し画像を表示するシステムである。画像伝送システム1は、動画像符号化装置(画像符号化装置)11、ネットワーク21、動画像復号装置(画像復号装置)31、及び動画像表示装置(画像表示装置)41を含んで構成される。 The image transmission system 1 is a system that transmits a coded stream in which a target image is encoded, decodes the transmitted coded stream, and displays an image. The image transmission system 1 includes a moving image coding device (image coding device) 11, a network 21, a moving image decoding device (image decoding device) 31, and a moving image display device (image display device) 41. ..

動画像符号化装置11には画像Tが入力される。 The image T is input to the moving image coding device 11.

ネットワーク21は、動画像符号化装置11が生成した符号化ストリームTeを動画像復号装置31に伝送する。ネットワーク21は、インターネット(Internet)、広域ネットワーク(WAN:Wide Area Network)、小規模ネットワーク(LAN:Local Area Network)またはこれらの組み合わせである。ネットワーク21は、必ずしも双方向の通信網に限らず、地上デジタル放送、衛星放送等の放送波を伝送する一方向の通信網であっても良い。また、ネットワーク21は、DVD(Digital Versatile Disc:登録商標)、BD(Blue-ray Disc:登録商標)等の符号化ストリームTeを記録した記憶媒体で代替されても良い。 The network 21 transmits the coded stream Te generated by the moving image coding device 11 to the moving image decoding device 31. The network 21 is an Internet (Internet), a wide area network (WAN: Wide Area Network), a small network (LAN: Local Area Network), or a combination thereof. The network 21 is not necessarily limited to a two-way communication network, but may be a one-way communication network that transmits broadcast waves such as terrestrial digital broadcasting and satellite broadcasting. Further, the network 21 may be replaced with a storage medium on which a coded stream Te such as a DVD (Digital Versatile Disc: registered trademark) or BD (Blue-ray Disc: registered trademark) is recorded.

動画像復号装置31は、ネットワーク21が伝送した符号化ストリームTeのそれぞれを復号し、復号した1または複数の復号画像Tdを生成する。 The moving image decoding device 31 decodes each of the coded streams Te transmitted by the network 21 and generates one or a plurality of decoded images Td.

動画像表示装置41は、動画像復号装置31が生成した1または複数の復号画像Tdの全部または一部を表示する。動画像表示装置41は、例えば、液晶ディスプレイ、有機EL(Electro-luminescence)ディスプレイ等の表示デバイスを備える。ディスプレイの形態としては、据え置き、モバイル、HMD等が挙げられる。また、動画像復号装置31が高い処理能力を有する場合には、画質の高い画像を表示し、より低い処理能力しか有しない場合には、高い処理能力、表示能力を必要としない画像を表示する。 The moving image display device 41 displays all or a part of one or a plurality of decoded images Td generated by the moving image decoding device 31. The moving image display device 41 includes, for example, a display device such as a liquid crystal display or an organic EL (Electro-luminescence) display. Examples of the display form include stationary, mobile, and HMD. Further, when the moving image decoding device 31 has a high processing capacity, an image having a high image quality is displayed, and when the moving image decoding device 31 has a lower processing capacity, an image which does not require a high processing capacity and a display capacity is displayed. ..

<演算子>
本明細書で用いる演算子を以下に記載する。
<Operator>
The operators used herein are described below.

>>は右ビットシフト、<<は左ビットシフト、&はビットワイズAND、|はビットワイズOR、|=はOR代入演算子であり、||は論理和を示す。 >> is a right bit shift, << is a left bit shift, & is a bitwise AND, | is a bitwise OR, | = is an OR assignment operator, and || is a logical sum.

x?y:zは、xが真(0以外)の場合にy、xが偽(0)の場合にzをとる3項演算子である。 x? y: z is a ternary operator that takes y when x is true (other than 0) and z when x is false (0).

Clip3(a,b,c)は、cをa以上b以下の値にクリップする関数であり、c<aの場合にはaを返し、c>bの場合にはbを返し、その他の場合にはcを返す関数である(ただし、a<=b)。 Clip3 (a, b, c) is a function that clips c to a value greater than or equal to a and less than or equal to b. Is a function that returns c (where a <= b).

abs(a)はaの絶対値を返す関数である。 abs (a) is a function that returns the absolute value of a.

Int(a)はaの整数値を返す関数である。 Int (a) is a function that returns an integer value of a.

floor(a)はa以下の最大の整数を返す関数である。 floor (a) is a function that returns the largest integer less than or equal to a.

ceil(a)はa以上の最小の整数を返す関数である。 ceil (a) is a function that returns the smallest integer greater than or equal to a.

a/dはdによるaの除算(小数点以下切り捨て)を表す。 a / d represents the division of a by d (rounded down to the nearest whole number).

<符号化ストリームTeの構造>
本実施形態に係る動画像符号化装置11および動画像復号装置31の詳細な説明に先立って、動画像符号化装置11によって生成され、動画像復号装置31によって復号される符号化ストリームTeのデータ構造について説明する。
<Structure of coded stream Te>
Prior to the detailed description of the moving image coding device 11 and the moving image decoding device 31 according to the present embodiment, the data of the coded stream Te generated by the moving image coding device 11 and decoded by the moving image decoding device 31. The structure will be described.

図4は、符号化ストリームTeにおけるデータの階層構造を示す図である。符号化ストリームTeは、例示的に、シーケンス、およびシーケンスを構成する複数のピクチャを含む。図4の(a)〜(f)は、それぞれ、シーケンスSEQを既定する符号化ビデオシーケンス、ピクチャPICTを規定する符号化ピクチャ、スライスSを規定する符号化スライス、スライスデータを規定する符号化スライスデータ、符号化スライスデータに含まれる符号化ツリーユニット、符号化ツリーユニットに含まれる符号化ユニットを示す図である。 FIG. 4 is a diagram showing a hierarchical structure of data in the coded stream Te. The coded stream Te typically includes a sequence and a plurality of pictures that make up the sequence. In FIGS. 4 (a) to 4 (f), a coded video sequence that defines the sequence SEQ, a coded picture that defines the picture PICT, a coded slice that defines the slice S, and a coded slice that defines the slice data, respectively. It is a figure which shows the coded tree unit included in the data, the coded slice data, and the coded unit included in a coded tree unit.

(符号化ビデオシーケンス)
符号化ビデオシーケンスでは、処理対象のシーケンスSEQを復号するために動画像復号装置31が参照するデータの集合が規定されている。シーケンスSEQは、図4に示すように、ビデオパラメータセット(Video Parameter Set)、シーケンスパラメータセットSPS(Sequence Parameter Set)、ピクチャパラメータセットPPS(Picture Parameter Set)、Adaptation Parameter Set(APS)、ピクチャPICT、及び、付加拡張情報SEI(Supplemental Enhancement Information)を含んでいる。
(Encoded video sequence)
The coded video sequence defines a set of data that the moving image decoding device 31 refers to in order to decode the sequence SEQ to be processed. As shown in FIG. 4, the sequence SEQ includes a video parameter set (Video Parameter Set), a sequence parameter set SPS (Sequence Parameter Set), a picture parameter set PPS (Picture Parameter Set), an Adaptation Parameter Set (APS), and a picture PICT. It also includes SEI (Supplemental Enhancement Information).

ビデオパラメータセットVPSは、複数のレイヤから構成されている動画像において、複数の動画像に共通する符号化パラメータの集合および動画像に含まれる複数のレイヤおよび個々のレイヤに関連する符号化パラメータの集合が規定されている。 The video parameter set VPS is a set of coding parameters common to a plurality of moving images in a moving image composed of a plurality of layers, and a set of coding parameters related to the plurality of layers included in the moving image and individual layers. The set is defined.

シーケンスパラメータセットSPSでは、対象シーケンスを復号するために動画像復号装置31が参照する符号化パラメータの集合が規定されている。例えば、ピクチャの幅や高さが規定される。なお、SPSは複数存在してもよい。その場合、PPSから複数のSPSの何れかを選択する。 The sequence parameter set SPS defines a set of coding parameters that the moving image decoding device 31 refers to in order to decode the target sequence. For example, the width and height of the picture are specified. There may be a plurality of SPS. In that case, select one of multiple SPSs from PPS.

ピクチャパラメータセットPPSでは、対象シーケンス内の各ピクチャを復号するために動画像復号装置31が参照する符号化パラメータの集合が規定されている。例えば、ピクチャの復号に用いられる量子化幅の基準値(pic_init_qp_minus26)や重み付き予測の適用を示すフラグ(weighted_pred_flag)が含まれる。なお、PPSは複数存在してもよい。その場合、対象シーケンス内の各ピクチャから複数のPPSの何れかを選択する。 The picture parameter set PPS defines a set of coding parameters that the moving image decoding device 31 refers to in order to decode each picture in the target sequence. For example, a reference value of the quantization width used for decoding a picture (pic_init_qp_minus26) and a flag indicating the application of weighted prediction (weighted_pred_flag) are included. There may be a plurality of PPSs. In that case, one of a plurality of PPSs is selected from each picture in the target sequence.

(符号化ピクチャ)
符号化ピクチャでは、処理対象のピクチャPICTを復号するために動画像復号装置31が参照するデータの集合が規定されている。ピクチャPICTは、図4に示すように、スライス0〜スライスNS-1を含む(NSはピクチャPICTに含まれるスライスの総数)。
(Encoded picture)
The coded picture defines a set of data referred to by the moving image decoding device 31 in order to decode the picture PICT to be processed. The picture PICT includes slices 0 to NS-1 as shown in FIG. 4 (NS is the total number of slices contained in the picture PICT).

なお、以下、スライス0〜スライスNS-1のそれぞれを区別する必要が無い場合、符号の添え字を省略して記述することがある。また、以下に説明する符号化ストリームTeに含まれるデータであって、添え字を付している他のデータについても同様である。 In the following, when it is not necessary to distinguish between slice 0 and slice NS-1, the subscripts of the symbols may be omitted. The same applies to the data included in the coded stream Te described below and with subscripts.

(符号化スライス)
符号化スライスでは、処理対象のスライスSを復号するために動画像復号装置31が参照するデータの集合が規定されている。スライスは、図4に示すように、スライスヘッダ、および、スライスデータを含んでいる。
(Coded slice)
The coded slice defines a set of data referred to by the moving image decoding device 31 in order to decode the slice S to be processed. The slice contains a slice header and slice data as shown in FIG.

スライスヘッダには、対象スライスの復号方法を決定するために動画像復号装置31が参照する符号化パラメータ群が含まれる。スライスタイプを指定するスライスタイプ指定情報(slice_type)は、スライスヘッダに含まれる符号化パラメータの一例である。 The slice header contains a group of coding parameters referred to by the moving image decoding device 31 to determine the decoding method of the target slice. The slice type specification information (slice_type) that specifies the slice type is an example of the coding parameters included in the slice header.

スライスタイプ指定情報により指定可能なスライスタイプとしては、(1)符号化の際にイントラ予測のみを用いるIスライス、(2)符号化の際に単方向予測、または、イントラ予測を用いるPスライス、(3)符号化の際に単方向予測、双方向予測、または、イントラ予測を用いるBスライスなどが挙げられる。なお、インター予測は、単予測、双予測に限定されず、より多くの参照ピクチャを用いて予測画像を生成してもよい。以下、P、Bスライスと呼ぶ場合には、インター予測を用いることができるブロックを含むスライスを指す。 The slice types that can be specified by the slice type specification information include (1) I slices that use only intra-prediction during coding, and (2) P-slices that use unidirectional prediction or intra-prediction during coding. (3) Examples thereof include a B slice that uses unidirectional prediction, bidirectional prediction, or intra prediction at the time of coding. Note that the inter-prediction is not limited to single prediction and bi-prediction, and a prediction image may be generated using more reference pictures. Hereinafter, when referred to as P and B slices, they refer to slices containing blocks for which inter-prediction can be used.

なお、スライスヘッダは、ピクチャパラメータセットPPSへの参照(pic_parameter_set_id)を含んでいても良い。 The slice header may include a reference (pic_parameter_set_id) to the picture parameter set PPS.

(符号化スライスデータ)
符号化スライスデータでは、処理対象のスライスデータを復号するために動画像復号装置31が参照するデータの集合が規定されている。スライスデータは、図4(d)に示すように、CTUを含んでいる。CTUは、スライスを構成する固定サイズ(例えば64x64)のブロックであり、最大符号化単位(LCU:Largest Coding Unit)と呼ぶこともある。
(Coded slice data)
The coded slice data defines a set of data referred to by the moving image decoding device 31 in order to decode the slice data to be processed. The slice data includes the CTU, as shown in FIG. 4 (d). A CTU is a fixed-size (for example, 64x64) block that constitutes a slice, and is sometimes called a maximum coding unit (LCU).

(符号化ツリーユニット)
図4には、処理対象のCTUを復号するために動画像復号装置31が参照するデータの集合が規定されている。CTUは、再帰的な4分木分割(QT(Quad Tree)分割)、2分木分割(BT(Binary Tree)分割)あるいは3分木分割(TT(Ternary Tree)分割)により、符号化処理の基本的な単位である符号化ユニットCUに分割される。BT分割とTT分割を合わせてマルチツリー分割(MT(Multi Tree)分割)と呼ぶ。再帰的な4分木分割により得られる木構造のノードのことを符号化ノード(Coding Node)と称する。4分木、2分木、及び3分木の中間ノードは、符号化ノードであり、CTU自身も最上位の符号化ノードとして規定される。
(Encoded tree unit)
FIG. 4 defines a set of data referred to by the moving image decoding device 31 in order to decode the CTU to be processed. CTU is encoded by recursive quadtree division (QT (Quad Tree) division), quadtree division (BT (Binary Tree) division) or ternary tree division (TT (Ternary Tree) division). It is divided into a coding unit CU, which is a basic unit. The BT division and the TT division are collectively called a multi-tree division (MT (Multi Tree) division). A tree-structured node obtained by recursive quadtree division is called a coding node. The intermediate nodes of the quadtree, binary, and ternary tree are coded nodes, and the CTU itself is also defined as the highest level coded node.

CTは、CT情報として、CT分割を行うか否かを示すCU分割フラグ(split_cu_flag)、QT分割を行うか否かを示すQT分割フラグ(qt_split_cu_flag)、MT分割の分割方向を示すMT分割方向(mtt_split_cu_vertical_flag)、MT分割の分割タイプを示すMT分割タイプ(mtt_split_cu_binary_flag)を含む。split_cu_flag、qt_split_cu_flag、mtt_split_cu_vertical_flag、mtt_split_cu_binary_flagは符号化ノード毎に伝送される。 CT has a CU division flag (split_cu_flag) indicating whether or not to perform CT division, a QT division flag (qt_split_cu_flag) indicating whether or not to perform QT division, and an MT division direction (MT division direction) indicating the division direction of MT division as CT information. Includes mtt_split_cu_vertical_flag) and MT split type (mtt_split_cu_binary_flag) indicating the split type of MT split. split_cu_flag, qt_split_cu_flag, mtt_split_cu_vertical_flag, mtt_split_cu_binary_flag are transmitted for each encoding node.

split_cu_flagが1かつqt_split_cu_flagが1の場合、符号化ノードは4つの符号化ノードに分割される(図5(b))。 When split_cu_flag is 1 and qt_split_cu_flag is 1, the coding node is divided into 4 coding nodes (Fig. 5 (b)).

split_cu_flagが0の場合に符号化ノードは分割されず1つのCUをノードとして持つ(図5(a))。CUは符号化ノードの末端ノードであり、これ以上分割されない。CUは、符号化処理の基本的な単位となる。 When split_cu_flag is 0, the coded node is not split and has one CU as a node (Fig. 5 (a)). The CU is the terminal node of the encoding node and is not divided any further. The CU is the basic unit of coding processing.

split_cu_flagが1かつqt_split_cu_flagが0の場合に符号化ノードは以下のようにMT分割される。mtt_split_cu_binary_flagが1の時、mtt_split_cu_vertical_flagが0の場合に符号化ノードは2つの符号化ノードに水平分割され(図5(d))、mtt_split_cu_vertical_flagが1の場合に符号化ノードは2つの符号化ノードに垂直分割される(図5(c))。また、mtt_split_cu_binary_flagが0の時、mtt_split_cu_vertical_flagが0の場合に符号化ノードは3つの符号化ノードに水平分割され(図5(f))、mtt_split_cu_vertical_flagが1の場合に符号化ノードは3つの符号化ノードに垂直分割される(図5(e))。これらを図5(g)に示す。 When split_cu_flag is 1 and qt_split_cu_flag is 0, the coded node is MT-split as follows. When mtt_split_cu_binary_flag is 1, the coded node is horizontally divided into two coded nodes when mtt_split_cu_vertical_flag is 0 (Fig. 5 (d)), and when mtt_split_cu_vertical_flag is 1, the coded node is perpendicular to the two coded nodes. It is divided (Fig. 5 (c)). When mtt_split_cu_binary_flag is 0, the coding node is horizontally divided into 3 coding nodes when mtt_split_cu_vertical_flag is 0 (Fig. 5 (f)), and when mtt_split_cu_vertical_flag is 1, the coding node is 3 coding nodes. It is vertically divided into (Fig. 5 (e)). These are shown in Fig. 5 (g).

また、CTUのサイズが64x64画素の場合には、CUのサイズは、64x64画素、64x32画素、32x64画素、32x32画素、64x16画素、16x64画素、32x16画素、16x32画素、16x16画素、64x8画素、8x64画素、32x8画素、8x32画素、16x8画素、8x16画素、8x8画素、64x4画素、4x64画素、32x4画素、4x32画素、16x4画素、4x16画素、8x4画素、4x8画素、及び、4x4画素の何れかをとり得る。 If the CTU size is 64x64 pixels, the CU size is 64x64 pixels, 64x32 pixels, 32x64 pixels, 32x32 pixels, 64x16 pixels, 16x64 pixels, 32x16 pixels, 16x32 pixels, 16x16 pixels, 64x8 pixels, 8x64 pixels. , 32x8 pixels, 8x32 pixels, 16x8 pixels, 8x16 pixels, 8x8 pixels, 64x4 pixels, 4x64 pixels, 32x4 pixels, 4x32 pixels, 16x4 pixels, 4x16 pixels, 8x4 pixels, 4x8 pixels, and 4x4 pixels. ..

輝度と色差で異なるツリーを用いても良い。ツリーの種別をtreeTypeで示す。例えば、輝度(Y, cIdx=0)と色差(Cb/Cr, cIdx=1,2)で共通のツリーを用いる場合、共通単一ツリーをtreeType=SINGLE_TREEで示す。輝度と色差で異なる2つのツリー(DUALツリー)を用いる場合、輝度のツリーをtreeType= DUAL_TREE_LUMA、色差のツリーをtreeType=DUAL_TREE_CHROMAで示す。 Trees that differ in brightness and color difference may be used. The tree type is indicated by treeType. For example, when a common tree is used for brightness (Y, cIdx = 0) and color difference (Cb / Cr, cIdx = 1,2), a common single tree is indicated by treeType = SINGLE_TREE. When two trees (DUAL trees) that differ in brightness and color difference are used, the brightness tree is indicated by treeType = DUAL_TREE_LUMA, and the color difference tree is indicated by treeType = DUAL_TREE_CHROMA.

(符号化ユニット)
図4は、処理対象の符号化ユニットを復号するために動画像復号装置31が参照するデータの集合が規定されている。具体的には、CUは、CUヘッダCUH、予測パラメータ、変換パラメータ、量子化変換係数等から構成される。CUヘッダでは予測モード等が規定される。
(Encoding unit)
FIG. 4 defines a set of data referred to by the moving image decoding device 31 in order to decode the coding unit to be processed. Specifically, the CU is composed of a CU header CUH, a prediction parameter, a conversion parameter, a quantization conversion coefficient, and the like. The CU header defines the prediction mode and so on.

予測処理は、CU単位で行われる場合と、CUをさらに分割したサブCU単位で行われる場合がある。CUとサブCUのサイズが等しい場合には、CU中のサブCUは1つである。CUがサブCUのサイズよりも大きい場合、CUはサブCUに分割される。たとえばCUが8x8、サブCUが4x4の場合、CUは水平2分割、垂直2分割からなる、4つのサブCUに分割される。 The prediction process may be performed in CU units or in sub-CU units in which the CU is further divided. If the size of the CU and the sub CU are equal, there is only one sub CU in the CU. If the CU is larger than the size of the sub CU, the CU is split into sub CUs. For example, when the CU is 8x8 and the sub CU is 4x4, the CU is divided into four sub CUs consisting of two horizontal divisions and two vertical divisions.

予測の種類(予測モード)は、イントラ予測と、インター予測の2つがある。イントラ予測は、同一ピクチャ内の予測であり、インター予測は、互いに異なるピクチャ間(例えば、表示時刻間、レイヤ画像間)で行われる予測処理を指す。 There are two types of prediction (prediction mode): intra-prediction and inter-prediction. Intra-prediction is prediction within the same picture, and inter-prediction refers to prediction processing performed between different pictures (for example, between display times and between layer images).

変換・量子化処理はCU単位で行われるが、量子化変換係数は4x4等のサブブロック単位でエントロピー符号化してもよい。 The conversion / quantization process is performed in CU units, but the quantization conversion coefficient may be entropy-encoded in subblock units such as 4x4.

(予測パラメータ)
予測画像は、ブロックに付随する予測パラメータによって導出される。予測パラメータには、イントラ予測とインター予測の予測パラメータがある。
(Prediction parameter)
The prediction image is derived by the prediction parameters associated with the block. Prediction parameters include intra-prediction and inter-prediction prediction parameters.

以下、インター予測の予測パラメータについて説明する。インター予測パラメータは、予測リスト利用フラグpredFlagL0とpredFlagL1、参照ピクチャインデックスrefIdxL0とrefIdxL1、動きベクトルmvL0とmvL1から構成される。predFlagL0、predFlagL1は、参照ピクチャリスト(L0リスト、L1リスト)が用いられるか否かを示すフラグであり、値が1の場合に対応する参照ピクチャリストが用いられる。なお、本明細書中「XXであるか否かを示すフラグ」と記す場合、フラグが0以外(たとえば1)をXXである場合、0をXXではない場合とし、論理否定、論理積などでは1を真、0を偽と扱う(以下同様)。但し、実際の装置や方法では真値、偽値として他の値を用いることもできる。 Hereinafter, the prediction parameters of the inter-prediction will be described. The inter-prediction parameter is composed of the prediction list usage flags predFlagL0 and predFlagL1, the reference picture indexes refIdxL0 and refIdxL1, and the motion vectors mvL0 and mvL1. predFlagL0 and predFlagL1 are flags indicating whether or not the reference picture list (L0 list, L1 list) is used, and the reference picture list corresponding to the case where the value is 1 is used. In the present specification, when "a flag indicating whether or not it is XX" is described, it is assumed that the flag other than 0 (for example, 1) is XX, 0 is not XX, and logical negation, logical product, etc. Treat 1 as true and 0 as false (same below). However, in an actual device or method, other values can be used as true values and false values.

インター予測パラメータを導出するためのシンタックス要素には、例えば、マージモードで用いるアフィンフラグaffine_flag、マージフラグmerge_flag、マージインデックスmerge_idx、MMVDフラグmmvd_flag、AMVPモードで用いる参照ピクチャを選択するためのインター予測識別子inter_pred_idc、参照ピクチャインデックスrefIdxLX、動きベクトルを導出するための予測ベクトルインデックスmvp_LX_idx、差分ベクトルmvdLX、動きベクトル精度モードamvr_modeがある。 The syntax elements for deriving the inter-prediction parameters include, for example, the affine flag affine_flag used in the merge mode, the merge flag merge_flag, the merge index merge_idx, the MMVD flag mmvd_flag, and the inter-prediction identifier for selecting the reference picture used in the AMVP mode. There are inter_pred_idc, reference picture index refIdxLX, prediction vector index mvp_LX_idx for deriving motion vector, difference vector mvdLX, motion vector accuracy mode amvr_mode.

(参照ピクチャリスト)
参照ピクチャリストは、参照ピクチャメモリ306に記憶された参照ピクチャからなるリストである。図6は、参照ピクチャおよび参照ピクチャリストの一例を示す概念図である。図6(a)において、矩形はピクチャ、矢印はピクチャの参照関係、横軸は時間、矩形中のI、P、Bは各々イントラピクチャ、単予測ピクチャ、双予測ピクチャ、矩形中の数字は復号順を示す。図に示すように、ピクチャの復号順は、I0、P1、B2、B3、B4であり、表示順は、I0、B3、B2、B4、P1である。図6(b)に、ピクチャB3(対象ピクチャ)の参照ピクチャリストの例を示す。参照ピクチャリストは、参照ピクチャの候補を表すリストであり、1つのピクチャ(スライス)が1つ以上の参照ピクチャリストを有してもよい。図の例では、対象ピクチャB3は、L0リストRefPicList0およびL1リストRefPicList1の2つの参照ピクチャリストを持つ。個々のCUでは、参照ピクチャリストRefPicListX(X=0または1)中のどのピクチャを実際に参照するかをrefIdxLXで指定する。図は、refIdxL0=2、refIdxL1=0の例である。なお、LXは、L0予測とL1予測を区別しない場合に用いられる記述方法であり、以降では、LXをL0、L1に置き換えることでL0リストに対するパラメータとL1リストに対するパラメータを区別する。
(Reference picture list)
The reference picture list is a list composed of reference pictures stored in the reference picture memory 306. FIG. 6 is a conceptual diagram showing an example of a reference picture and a reference picture list. In Fig. 6 (a), the rectangle is the picture, the arrow is the reference relationship of the picture, the horizontal axis is the time, I, P, B in the rectangle are the intra picture, the single prediction picture, the double prediction picture, and the numbers in the rectangle are decoded. Show the order. As shown in the figure, the decoding order of the pictures is I0, P1, B2, B3, B4, and the display order is I0, B3, B2, B4, P1. Figure 6 (b) shows an example of the reference picture list of picture B3 (target picture). The reference picture list is a list representing candidates for reference pictures, and one picture (slice) may have one or more reference picture lists. In the example of the figure, the target picture B3 has two reference picture lists, L0 list RefPicList0 and L1 list RefPicList1. In each CU, refIdxLX specifies which picture in the reference picture list RefPicListX (X = 0 or 1) is actually referenced. The figure is an example of refIdxL0 = 2 and refIdxL1 = 0. Note that LX is a description method used when the L0 prediction and the L1 prediction are not distinguished. In the following, the parameters for the L0 list and the parameters for the L1 list are distinguished by replacing LX with L0 and L1.

(マージ予測とAMVP予測)
予測パラメータの復号(符号化)方法には、マージ予測(merge)モードとAMVP(Advanced Motion Vector Prediction、適応動きベクトル予測)モードがあり、merge_flagは、これらを識別するためのフラグである。マージ予測モードは、予測リスト利用フラグpredFlagLX、参照ピクチャインデックスrefIdxLX、動きベクトルmvLXを符号化データに含めずに、既に処理した近傍ブロックの予測パラメータ等から導出するモードである。AMVPモードは、inter_pred_idc、refIdxLX、mvLXを符号化データに含めるモードである。なお、mvLXは、予測ベクトルmvpLXを識別するmvp_LX_idxと差分ベクトルmvdLXとして符号化される。また、マージ予測モードの他に、アフィン予測モード、MMVD予測モードがあってもよい。
(Merge Prediction and AMVP Prediction)
Prediction parameter decoding (encoding) methods include merge prediction (merge) mode and AMVP (Advanced Motion Vector Prediction) mode, and merge_flag is a flag for identifying these. The merge prediction mode is a mode in which the prediction list usage flag predFlagLX, the reference picture index refIdxLX, and the motion vector mvLX are not included in the encoded data, but are derived from the prediction parameters of the neighboring blocks that have already been processed. AMVP mode is a mode that includes inter_pred_idc, refIdxLX, and mvLX in the coded data. Note that mvLX is encoded as mvp_LX_idx that identifies the prediction vector mvpLX and the difference vector mvdLX. In addition to the merge prediction mode, there may be an affine prediction mode and an MMVD prediction mode.

inter_pred_idcは、参照ピクチャの種類および数を示す値であり、PRED_L0、PRED_L1、PRED_BIの何れかの値をとる。PRED_L0、PRED_L1は、各々L0リスト、L1リストで管理された1枚の参照ピクチャを用いる単予測を示す。PRED_BIはL0リストとL1リストで管理された2枚の参照ピクチャを用いる双予測を示す。 inter_pred_idc is a value indicating the type and number of reference pictures, and takes one of PRED_L0, PRED_L1, and PRED_BI. PRED_L0 and PRED_L1 indicate a simple prediction using one reference picture managed by the L0 list and the L1 list, respectively. PRED_BI shows a bi-prediction using two reference pictures managed by the L0 list and the L1 list.

merge_idxは、処理が完了したブロックから導出される予測パラメータ候補(マージ候補)のうち、いずれの予測パラメータを対象ブロックの予測パラメータとして用いるかを示すインデックスである。 merge_idx is an index indicating which of the prediction parameter candidates (merge candidates) derived from the processed block is used as the prediction parameter of the target block.

(動きベクトル)
mvLXは、異なる2つのピクチャ上のブロック間のシフト量を示す。mvLXに関する予測ベクトル、差分ベクトルを、それぞれmvpLX、mvdLXと呼ぶ。
(Motion vector)
mvLX indicates the amount of shift between blocks on two different pictures. The prediction vector and difference vector related to mvLX are called mvpLX and mvdLX, respectively.

(インター予測識別子inter_pred_idcと予測リスト利用フラグpredFlagLX)
inter_pred_idcと、predFlagL0、predFlagL1の関係は以下のとおりであり、相互に変換可能である。
(Inter prediction identifier inter_pred_idc and prediction list usage flag predFlagLX)
The relationship between inter_pred_idc, predFlagL0, and predFlagL1 is as follows, and they can be converted to each other.

inter_pred_idc = (predFlagL1<<1)+predFlagL0
predFlagL0 = inter_pred_idc & 1
predFlagL1 = inter_pred_idc >> 1
なお、インター予測パラメータは、予測リスト利用フラグを用いても良いし、インター予測識別子を用いてもよい。また、予測リスト利用フラグを用いた判定は、インター予測識別子を用いた判定に置き替えてもよい。逆に、インター予測識別子を用いた判定は、予測リスト利用フラグを用いた判定に置き替えてもよい。
inter_pred_idc = (predFlagL1 << 1) + predFlagL0
predFlagL0 = inter_pred_idc & 1
predFlagL1 = inter_pred_idc >> 1
As the inter-prediction parameter, the prediction list use flag may be used, or the inter-prediction identifier may be used. Further, the determination using the prediction list use flag may be replaced with the determination using the inter-prediction identifier. On the contrary, the determination using the inter-prediction identifier may be replaced with the determination using the prediction list utilization flag.

(双予測biPredの判定)
双予測であるかのフラグbiPredは、2つの予測リスト利用フラグがともに1であるかによって導出できる。例えば以下の式で導出できる。
(Judgment of bipred biPred)
The bipred flag biPred can be derived depending on whether the two prediction list usage flags are both 1. For example, it can be derived by the following formula.

biPred = (predFlagL0==1 && predFlagL1==1)
あるいは、biPredは、インター予測識別子が2つの予測リスト(参照ピクチャ)を使うことを示す値であるか否かによっても導出できる。例えば以下の式で導出できる。
biPred = (predFlagL0 == 1 && predFlagL1 == 1)
Alternatively, biPred can also be derived by whether or not the inter-prediction identifier is a value indicating that two prediction lists (reference pictures) are used. For example, it can be derived by the following formula.

biPred = (inter_pred_idc==PRED_BI) ? 1 : 0
(動画像復号装置の構成)
本実施形態に係る動画像復号装置31(図7)の構成について説明する。
biPred = (inter_pred_idc == PRED_BI)? 1: 0
(Configuration of moving image decoding device)
The configuration of the moving image decoding device 31 (FIG. 7) according to the present embodiment will be described.

動画像復号装置31は、エントロピー復号部301、パラメータ復号部(予測画像復号装置)302、ループフィルタ305、参照ピクチャメモリ306、予測パラメータメモリ307、予測画像生成部(予測画像生成装置)308、逆量子化・逆変換部311、及び加算部312、予測パラメータ導出部320を含んで構成される。なお、後述の動画像符号化装置11に合わせ、動画像復号装置31にループフィルタ305が含まれない構成もある。 The moving image decoding device 31 includes an entropy decoding unit 301, a parameter decoding unit (predicted image decoding device) 302, a loop filter 305, a reference picture memory 306, a predicted parameter memory 307, a predicted image generator (predicted image generator) 308, and a reverse. It includes a quantization / inverse conversion unit 311, an addition unit 312, and a prediction parameter derivation unit 320. In addition, in accordance with the moving image coding device 11 described later, there is also a configuration in which the moving image decoding device 31 does not include the loop filter 305.

パラメータ復号部302は、さらに、ヘッダ復号部3020、CT情報復号部3021、及びCU復号部3022(予測モード復号部)を備えており、CU復号部3022はさらにTU復号部3024を備えている。これらを総称して復号モジュールと呼んでもよい。ヘッダ復号部3020は、符号化データからVPS、SPS、PPS、APSなどのパラメータセット情報、スライスヘッダ(スライス情報)を復号する。CT情報復号部3021は、符号化データからCTを復号する。CU復号部3022は符号化データからCUを復号する。TU復号部3024は、TUに予測誤差が含まれている場合に、符号化データからQP更新情報(量子化補正値)と量子化予測誤差(residual_coding)を復号する。 The parameter decoding unit 302 further includes a header decoding unit 3020, a CT information decoding unit 3021, and a CU decoding unit 3022 (prediction mode decoding unit), and the CU decoding unit 3022 further includes a TU decoding unit 3024. These may be generically called a decoding module. The header decoding unit 3020 decodes the parameter set information such as VPS, SPS, PPS, and APS, and the slice header (slice information) from the encoded data. The CT information decoding unit 3021 decodes the CT from the encoded data. The CU decoding unit 3022 decodes the CU from the encoded data. The TU decoding unit 3024 decodes the QP update information (quantization correction value) and the quantization prediction error (residual_coding) from the coded data when the TU contains a prediction error.

TU復号部3024は、スキップモード以外(skip_mode==0)の場合に、符号化データからQP更新情報と量子化予測誤差を復号する。より具体的には、TU復号部3024は、skip_mode==0の場合に、対象ブロックに量子化予測誤差が含まれているか否かを示すフラグcu_cbpを復号し、cu_cbpが1の場合に量子化予測誤差を復号する。cu_cbpが符号化データに存在しない場合は0と導出する。 The TU decoding unit 3024 decodes the QP update information and the quantization prediction error from the encoded data when the mode is other than the skip mode (skip_mode == 0). More specifically, the TU decoding unit 3024 decodes the flag cu_cbp indicating whether or not the target block contains a quantization prediction error when skip_mode == 0, and quantizes when cu_cbp is 1. Decrypt the prediction error. If cu_cbp does not exist in the encoded data, it is derived as 0.

TU復号部3024は、符号化データから変換基底を示すインデックスmts_idxを復号する。また、TU復号部3024は、符号化データからセカンダリ変換の利用及び変換基底を示すインデックスstIdxを復号する。stIdxは0の場合にセカンダリ変換の非適用を示し、1の場合にセカンダリ変換基底のセット(ペア)のうち一方の変換を示し、2の場合に上記ペアのうち他方の変換を示す。 The TU decoding unit 3024 decodes the index mts_idx indicating the conversion basis from the encoded data. Further, the TU decoding unit 3024 decodes the index stIdx indicating the use of the secondary conversion and the conversion basis from the encoded data. When stIdx is 0, it indicates that the secondary conversion is not applied, when it is 1, it indicates the conversion of one of the set (pair) of the secondary conversion basis, and when it is 2, it indicates the conversion of the other of the above pairs.

また、TU復号部3024はサブブロック変換フラグcu_sbt_flagを復号してもよい。cu_sbt_flagが1の場合には、CUを複数のサブブロックに分割し、特定の1つのサブブロックのみ残差を復号する。さらにTU復号部3024は、サブブロックの数が4であるか2であるかを示すフラグcu_sbt_quad_flag、分割方向を示すcu_sbt_horizontal_flag、非ゼロの変換係数が含まれるサブブロックを示すcu_sbt_pos_flagを復号してもよい。 Further, the TU decoding unit 3024 may decode the subblock conversion flag cu_sbt_flag. When cu_sbt_flag is 1, the CU is divided into a plurality of subblocks, and the residual is decoded only in one specific subblock. Further, the TU decoding unit 3024 may decode the flag cu_sbt_quad_flag indicating whether the number of subblocks is 4 or 2, the cu_sbt_horizontal_flag indicating the division direction, and the cu_sbt_pos_flag indicating the subblock containing the non-zero conversion coefficient. ..

予測画像生成部308は、インター予測画像生成部309(図9)及びイントラ予測画像生成部を含んで構成される。 The prediction image generation unit 308 includes an inter-prediction image generation unit 309 (FIG. 9) and an intra-prediction image generation unit.

予測パラメータ導出部320は、インター予測パラメータ導出部303(図9)及びイントラ予測パラメータ導出部を含んで構成される。 The prediction parameter derivation unit 320 includes an inter-prediction parameter derivation unit 303 (FIG. 9) and an intra-prediction parameter derivation unit.

また、以降では処理の単位としてCTU、CUを使用した例を記載するが、この例に限らず、サブCU単位で処理をしてもよい。あるいはCTU、CUをブロック、サブCUをサブブロックと読み替え、ブロックあるいはサブブロック単位の処理としてもよい。 In the following, an example in which CTU and CU are used as the processing unit will be described, but the processing is not limited to this example, and processing may be performed in sub-CU units. Alternatively, CTU and CU may be read as blocks, sub-CUs may be read as sub-blocks, and processing may be performed in units of blocks or sub-blocks.

エントロピー復号部301は、外部から入力された符号化ストリームTeに対してエントロピー復号を行って、個々の符号(シンタックス要素)を復号する。エントロピー符号化には、シンタックス要素の種類や周囲の状況に応じて適応的に選択したコンテキスト(確率モデル)を用いてシンタックス要素を可変長符号化する方式と、あらかじめ定められた表、あるいは計算式を用いてシンタックス要素を可変長符号化する方式がある。前者のCABAC(Context Adaptive Binary Arithmetic Coding)は、コンテキストのCABAC状態(優勢シンボルの種別(0 or 1)と確率を指定する確率状態インデックスpStateIdx)をメモリに格納する。エントロピー復号部301は、セグメント(タイル、CTU行、スライス)の先頭で全てのCABAC状態を初期化する。エントロピー復号部301は、シンタックス要素をバイナリ列(Bin String)に変換し、Bin Stringの各ビットを復号する。コンテキストを用いる場合には、シンタックス要素の各ビットに対してコンテキストインデックスctxIncを導出し、コンテキストを用いてビットを復号し、用いたコンテキストのCABAC状態を更新する。コンテキストを用いないビットは、等確率(EP, bypass)で復号され、ctxInc導出やCABAC状態は省略される。復号されたシンタックス要素には、予測画像を生成するための予測情報および、差分画像を生成するための予測誤差などがある。 The entropy decoding unit 301 performs entropy decoding on the coded stream Te input from the outside, and decodes each code (syntax element). For entropy coding, a method of variable-length coding of syntax elements using a context (probability model) adaptively selected according to the type of syntax element and the surrounding situation, a predetermined table, or There is a method of variable-length coding the syntax element using a calculation formula. The former CABAC (Context Adaptive Binary Arithmetic Coding) stores the CABAC state of the context (the type of dominant symbol (0 or 1) and the probability state index pStateIdx that specifies the probability) in memory. The entropy decoding unit 301 initializes all CABAC states at the beginning of the segment (tile, CTU row, slice). The entropy decoding unit 301 converts the syntax element into a binary string (Bin String) and decodes each bit of the Bin String. When using a context, the context index ctxInc is derived for each bit of the syntax element, the bit is decoded using the context, and the CABAC state of the used context is updated. Bits that do not use context are decoded with equal probability (EP, bypass), and ctxInc derivation and CABAC state are omitted. The decoded syntax elements include prediction information for generating a prediction image, prediction error for generating a difference image, and the like.

エントロピー復号部301は、復号した符号をパラメータ復号部302に出力する。復号した符号とは、例えば、予測モードpredMode、merge_flag、merge_idx、inter_pred_idc、refIdxLX、mvp_LX_idx、mvdLX、amvr_mode等である。どの符号を復号するかの制御は、パラメータ復号部302の指示に基づいて行われる。 The entropy decoding unit 301 outputs the decoded code to the parameter decoding unit 302. The decoded code is, for example, the prediction mode predMode, merge_flag, merge_idx, inter_pred_idc, refIdxLX, mvp_LX_idx, mvdLX, amvr_mode and the like. The control of which code is decoded is performed based on the instruction of the parameter decoding unit 302.

(基本フロー)
図8は、動画像復号装置31の概略的動作を説明するフローチャートである。
(Basic flow)
FIG. 8 is a flowchart illustrating a schematic operation of the moving image decoding device 31.

(S1100:パラメータセット情報復号)ヘッダ復号部3020は、符号化データからVPS、SPS、PPSなどのパラメータセット情報を復号する。 (S1100: Parameter set information decoding) The header decoding unit 3020 decodes the parameter set information such as VPS, SPS, and PPS from the encoded data.

(S1200:スライス情報復号)ヘッダ復号部3020は、符号化データからスライスヘッダ(スライス情報)を復号する。 (S1200: Decoding of slice information) The header decoding unit 3020 decodes the slice header (slice information) from the encoded data.

以下、動画像復号装置31は、対象ピクチャに含まれる各CTUについて、S1300からS5000の処理を繰り返すことにより各CTUの復号画像を導出する。 Hereinafter, the moving image decoding device 31 derives a decoded image of each CTU by repeating the processes of S1300 to S5000 for each CTU included in the target picture.

(S1300:CTU情報復号)CT情報復号部3021は、符号化データからCTUを復号する。 (S1300: CTU information decoding) The CT information decoding unit 3021 decodes the CTU from the encoded data.

(S1400:CT情報復号)CT情報復号部3021は、符号化データからCTを復号する。 (S1400: CT information decoding) The CT information decoding unit 3021 decodes the CT from the encoded data.

(S1500:CU復号)CU復号部3022はS1510、S1520を実施して、符号化データからCUを復号する。 (S1500: CU decoding) The CU decoding unit 3022 executes S1510 and S1520 to decode the CU from the encoded data.

(S1510:CU情報復号)CU復号部3022は、符号化データからCU情報、予測情報、TU分割フラグsplit_transform_flag、CU残差フラグcbf_cb、cbf_cr、cbf_luma等を復号する。 (S1510: CU information decoding) The CU decoding unit 3022 decodes CU information, prediction information, TU division flag split_transform_flag, CU residual flags cbf_cb, cbf_cr, cbf_luma, etc. from the encoded data.

(S1520:TU情報復号)TU復号部3024は、TUに予測誤差が含まれている場合に、符号化データからQP更新情報と量子化予測誤差、変換インデックスmts_idxを復号する。なお、QP更新情報は、量子化パラメータQPの予測値である量子化パラメータ予測値qPpredからの差分値である。 (S1520: TU information decoding) The TU decoding unit 3024 decodes the QP update information, the quantization prediction error, and the conversion index mts_idx from the encoded data when the TU contains a prediction error. The QP update information is a difference value from the quantization parameter prediction value qPpred, which is the prediction value of the quantization parameter QP.

(S2000:予測画像生成)予測画像生成部308は、対象CUに含まれる各ブロックについて、予測情報に基づいて予測画像を生成する。 (S2000: Prediction image generation) The prediction image generation unit 308 generates a prediction image based on the prediction information for each block included in the target CU.

(S3000:逆量子化・逆変換)逆量子化・逆変換部311は、対象CUに含まれる各TUについて、逆量子化・逆変換処理を実行する。 (S3000: Inverse quantization / inverse transformation) The inverse quantization / inverse transformation unit 311 executes the inverse quantization / inverse transformation processing for each TU included in the target CU.

(S4000:復号画像生成)加算部312は、予測画像生成部308より供給される予測画像と、逆量子化・逆変換部311より供給される予測誤差とを加算することによって、対象CUの復号画像を生成する。 (S4000: Decoded image generation) The addition unit 312 decodes the target CU by adding the prediction image supplied by the prediction image generation unit 308 and the prediction error supplied by the inverse quantization / inverse conversion unit 311. Generate an image.

(S5000:ループフィルタ)ループフィルタ305は、復号画像にデブロッキングフィルタ、SAO、ALFなどのループフィルタをかけ、復号画像を生成する。 (S5000: Loop filter) The loop filter 305 applies a loop filter such as a deblocking filter, SAO, or ALF to the decoded image to generate a decoded image.

(インター予測パラメータ導出部の構成)
インター予測パラメータ導出部303は、パラメータ復号部302から入力されたシンタックス要素に基づいて、予測パラメータメモリ307に記憶された予測パラメータを参照してインター予測パラメータを導出する。また、インター予測パラメータをインター予測画像生成部309、予測パラメータメモリ307に出力する。インター予測パラメータ導出部303及びその内部の要素であるAMVP予測パラメータ導出部3032、マージ予測パラメータ導出部3036、アフィン予測部30372、MMVD予測部30373、GEO予測部30377、DMVR部30537、MV加算部3038は、動画像符号化装置、動画像復号装置で共通する手段であるので、これらを総称して動きベクトル導出部(動きベクトル導出装置)と称してもよい。
(Structure of inter-prediction parameter derivation section)
The inter-prediction parameter derivation unit 303 derives the inter-prediction parameter based on the syntax element input from the parameter decoding unit 302 with reference to the prediction parameter stored in the prediction parameter memory 307. Further, the inter-prediction parameter is output to the inter-prediction image generation unit 309 and the prediction parameter memory 307. Inter-prediction parameter derivation unit 303 and its internal elements AMVP prediction parameter derivation unit 3032, merge prediction parameter derivation unit 3036, Affin prediction unit 30372, MMVD prediction unit 30373, GEO prediction unit 30377, DMVR unit 30537, MV addition unit 3038 Is a means common to the moving image coding device and the moving image decoding device, and therefore, these may be collectively referred to as a motion vector derivation unit (motion vector derivation device).

affine_flagが1、すなわち、アフィン予測モードを示す場合、アフィン予測部30372は、サブブロック単位のインター予測パラメータを導出する。 When the affine_flag is 1, that is, the affine prediction mode is indicated, the affine prediction unit 30372 derives the inter prediction parameter for each subblock.

mmvd_flagが1、すなわち、MMVD予測モードを示す場合、MMVD予測部30373は、マージ予測パラメータ導出部3036で導出されるマージ候補と差分ベクトルからインター予測パラメータを導出する。 When mmvd_flag is 1, that is, the MMVD prediction mode is indicated, the MMVD prediction unit 30373 derives the inter prediction parameter from the merge candidate and the difference vector derived by the merge prediction parameter derivation unit 3036.

GEO_Flagが1、すなわち、GEO予測モードを示す場合、GEO予測部30377はGEO予測パラメータを導出する。 When GEO_Flag is 1, that is, GEO prediction mode is indicated, GEO prediction unit 30377 derives GEO prediction parameters.

merge_flagが1、すなわち、マージ予測モードを示す場合、merge_idxを導出し、マージ予測パラメータ導出部3036に出力する。 When merge_flag is 1, that is, when the merge prediction mode is indicated, merge_idx is derived and output to the merge prediction parameter derivation unit 3036.

merge_flagが0、すなわち、AMVP予測モードを示す場合、AMVP予測パラメータ導出部3032はinter_pred_idc、refIdxLXかmvp_LX_idxからmvpLXを導出する。 When merge_flag is 0, that is, indicates the AMVP prediction mode, the AMVP prediction parameter derivation unit 3032 derives mvpLX from inter_pred_idc, refIdxLX or mvp_LX_idx.

(MV加算部)
MV加算部3038では導出されたmvpLXとmvdLXを加算し、mvLXを導出する。
(MV addition part)
In the MV addition unit 3038, the derived mvpLX and mvdLX are added to derive mvLX.

(アフィン予測部)
アフィン予測部30372は、1)対象ブロックの2つの制御点CP0、CP1、もしくは3つの制御点CP0, CP1, CP2の動きベクトルを導出し、2)対象ブロックのアフィン予測パラメータを導出し、3)アフィン予測パラメータから各サブブロックの動きベクトルを導出する。
(Affine prediction department)
The affine prediction unit 30372 derives 1) motion vectors of two control points CP0, CP1 or three control points CP0, CP1 and CP2 of the target block, and 2) derives affine prediction parameters of the target block, and 3). The motion vector of each subblock is derived from the affine prediction parameters.

(マージ予測)
図10(a)は、本実施形態に係るマージ予測パラメータ導出部3036の構成を示す概略図である。マージ予測パラメータ導出部3036は、マージ候補導出部30361、マージ候補選択部30362を備える。なお、マージ候補は、予測パラメータ(predFlagLX、mvLX、refIdxLX)を含んで構成され、マージ候補リストに格納される。マージ候補リストに格納されたマージ候補には、所定の規則に従ってインデックスが割り当てられる。
(Merge prediction)
FIG. 10A is a schematic diagram showing the configuration of the merge prediction parameter derivation unit 3036 according to the present embodiment. The merge prediction parameter derivation unit 3036 includes a merge candidate derivation unit 30361 and a merge candidate selection unit 30362. The merge candidate is configured to include prediction parameters (predFlagLX, mvLX, refIdxLX) and is stored in the merge candidate list. The merge candidates stored in the merge candidate list are indexed according to a predetermined rule.

マージ候補導出部30361は、復号済の隣接ブロックの動きベクトルとrefIdxLXをそのまま用いてマージ候補を導出する。それ以外に、マージ候補導出部30361は、後述する空間マージ候補導出処理、時間マージ候補導出処理、ペアワイズマージ候補導出処理、およびゼロマージ候補導出処理を適用してもよい。 The merge candidate derivation unit 30361 derives the merge candidate by using the motion vector of the decoded adjacent block and refIdxLX as they are. In addition, the merge candidate derivation unit 30361 may apply the spatial merge candidate derivation process, the time merge candidate derivation process, the pairwise merge candidate derivation process, and the zero merge candidate derivation process, which will be described later.

空間マージ候補導出処理として、マージ候補導出部30361は、所定の規則に従って、予測パラメータメモリ307が記憶している予測パラメータを読み出し、マージ候補に設定する。参照ピクチャの指定方法は、例えば、対象ブロックから予め定めた範囲内にある隣接ブロック(例えば、対象ブロックの左A1、右B1、右上B0、左下A0、左上B2にそれぞれ接するブロックの全部または一部)のそれぞれに係る予測パラメータである。各々のマージ候補をA1,B1,B0,A0,B2と呼ぶ。ここで、A1,B1,B0,A0,B2は各々、下記の座標を含むブロックから導出される動き情報である。図16(b)にA1,B1,B0,A0,B2の位置を示す。 As the spatial merge candidate derivation process, the merge candidate derivation unit 30361 reads the prediction parameter stored in the prediction parameter memory 307 and sets it as a merge candidate according to a predetermined rule. The reference picture can be specified, for example, by all or part of adjacent blocks within a predetermined range from the target block (for example, all or a part of blocks in contact with the target block's left A1, right B1, upper right B0, lower left A0, and upper left B2, respectively. ) Are the prediction parameters. Each merge candidate is called A1, B1, B0, A0, B2. Here, A1, B1, B0, A0, and B2 are motion information derived from the block including the following coordinates, respectively. Figure 16 (b) shows the positions of A1, B1, B0, A0, and B2.

A1: (xCb - 1, yCb + cbHeight - 1)
B1: (xCb + cbWidth - 1, yCb - 1)
B0: (xCb + cbWidth, yCb - 1)
A0: (xCb - 1, yCb + cbHeight)
B2: (xCb - 1, yCb - 1)
対象ブロックの左上座標を(xCb, yCb)、幅cbWidth、高さcbHeightとする。
A1: (xCb ―― 1, yCb + cbHeight ―― 1)
B1: (xCb + cbWidth --1, yCb --1)
B0: (xCb + cbWidth, yCb --1)
A0: (xCb --1, yCb + cbHeight)
B2: (xCb ―― 1, yCb ―― 1)
Let the upper left coordinates of the target block be (xCb, yCb), width cbWidth, and height cbHeight.

時間マージ導出処理として、マージ候補導出部30361は、対象ブロックの右下CBR、あるいは、中央の座標を含む参照画像中のブロックCの予測パラメータを、予測パラメータメモリ307から読み出してマージ候補Colとし、マージ候補リストmergeCandList[]に格納する。 As the time merge derivation process, the merge candidate derivation unit 30361 reads the prediction parameter of the lower right CBR of the target block or the prediction parameter of the block C in the reference image including the center coordinates from the prediction parameter memory 307 and sets it as the merge candidate Col. Merge candidate list Store in mergeCandList [].

ペアワイズ候補導出部は、mergeCandListに格納済みの2つのマージ候補(p0Cand, p1Cand)の平均からペアワイズ候補avgKを導出し、mergeCandList[]に格納する。 The pairwise candidate derivation unit derives the pairwise candidate avgK from the average of the two merge candidates (p0Cand, p1Cand) stored in the mergeCandList and stores them in the mergeCandList [].

mvLXavgK[0] = (mvLXp0Cand[0]+mvLXp1Cand[0])/2
mvLXavgK[1] = (mvLXp0Cand[1]+mvLXp1Cand[1])/2
マージ候補導出部30361は、refIdxLXが0…Mであり、mvLXのX成分、Y成分が共に0であるゼロマージ候補Z0,…, ZMを導出しマージ候補リストに格納する。
mvLXavgK [0] = (mvLXp0Cand [0] + mvLXp1Cand [0]) / 2
mvLXavgK [1] = (mvLXp0Cand [1] + mvLXp1Cand [1]) / 2
The merge candidate derivation unit 30361 derives zero merge candidates Z0, ..., ZM in which refIdxLX is 0 ... M and both the X component and Y component of mvLX are 0, and stores them in the merge candidate list.

mergeCandList[]に格納する順番は、例えば、空間マージ候補(A1,B1,B0,A0,B2)、時間マージ候補Col、ペアワイズ候補avgK、ゼロマージ候補ZKである。なお、利用可能でない(ブロックがイントラ予測等)参照ブロックはマージ候補リストに格納しない。
i = 0
if( availableFlagA1 )
mergeCandList[ i++ ] = A1
if( availableFlagB1 )
mergeCandList[ i++ ] = B1
if( availableFlagB0 )
mergeCandList[ i++ ] = B0
if( availableFlagA0 )
mergeCandList[ i++ ] = A0
if( availableFlagB2 )
mergeCandList[ i++ ] = B2
if( availableFlagCol )
mergeCandList[ i++ ] = Col
if( availableFlagAvgK )
mergeCandList[ i++ ] = avgK
if( i < MaxNumMergeCand )
mergeCandList[ i++ ] = ZK
マージ候補選択部30362は、マージ候補リストに含まれるマージ候補のうち、merge_idxが示すマージ候補Nを以下の式で選択する。
The order of storage in mergeCandList [] is, for example, spatial merge candidate (A1, B1, B0, A0, B2), time merge candidate Col, pairwise candidate avgK, and zero merge candidate ZK. Reference blocks that are not available (blocks are intra-predicted, etc.) are not stored in the merge candidate list.
i = 0
if (availableFlagA1)
mergeCandList [i ++] = A1
if (availableFlagB1)
mergeCandList [i ++] = B1
if (availableFlagB0)
mergeCandList [i ++] = B0
if (availableFlagA0)
mergeCandList [i ++] = A0
if (availableFlagB2)
mergeCandList [i ++] = B2
if (availableFlagCol)
mergeCandList [i ++] = Col
if (availableFlagAvgK)
mergeCandList [i ++] = avgK
if (i <MaxNumMergeCand)
mergeCandList [i ++] = ZK
The merge candidate selection unit 30362 selects the merge candidate N indicated by merge_idx from the merge candidates included in the merge candidate list by the following formula.

N = mergeCandList[merge_idx]
ここでNは、マージ候補を示すラベルであり、A1,B1,B0,A0,B2,Col,avgK,ZKなどをとる。ラベルNで示されるマージ候補の動き情報は(mvLXN[0], mvLXN[0])、predFlagLXN, refIdxLXNで示される。
N = mergeCandList [merge_idx]
Here, N is a label indicating a merge candidate, and takes A1, B1, B0, A0, B2, Col, avgK, ZK, and the like. The movement information of the merge candidate indicated by the label N (mvLXN [0], mvLXN [0]) is indicated by predFlagLXN and refIdxLXN.

選択された(mvLXN[0], mvLXN[0])、predFlagLXN, refIdxLXNを対象ブロックのインター予測パラメータとして選択する。マージ候補選択部30362は選択したマージ候補のインター予測パラメータを予測パラメータメモリ307に記憶するとともに、インター予測画像生成部309に出力する。 The selected (mvLXN [0], mvLXN [0]), predFlagLXN, refIdxLXN are selected as the inter-prediction parameters of the target block. The merge candidate selection unit 30362 stores the inter-prediction parameter of the selected merge candidate in the prediction parameter memory 307 and outputs it to the inter-prediction image generation unit 309.

(MMVD予測部30373)
MMVD予測部30373は、マージ候補導出部30361で導出した中心ベクトルmvpLX(マージ候補Nの動きベクトルmvLXN)に、所定の距離及び所定の方向のmvdLXを加算することでmvLXを求める。
(MMVD Prediction Unit 30373)
The MMVD prediction unit 30373 obtains mvLX by adding mvdLX of a predetermined distance and a predetermined direction to the center vector mvpLX (motion vector mvLXN of the merge candidate N) derived by the merge candidate derivation unit 30361.

(GEO予測)
続いてGEO予測について説明する。図17(a)の(a2)に示すように、Triangle予測では、上述のように、対角線を境界として、対象CUが2つの三角形の予測単位に分割される。一方、GEO予測では、図17(a)の(a2)以外にも、図17(a)の(a1)に示すように、対象CUをまたがる直線分を境界として、対象CUが2つの非矩形の予測単位に多様に分割される。図17(a)から分かるように、GEO予測はTriangle予測を包含する。換言すれば、Triangle予測の拡張版がGEO予測であるとも言えるし、GEO予測の制限版がTriangle予測であるとも言える。
(GEO forecast)
Next, the GEO forecast will be described. As shown in (a2) of FIG. 17 (a), in the Triangle prediction, as described above, the target CU is divided into two triangular prediction units with the diagonal line as the boundary. On the other hand, in the GEO prediction, in addition to (a2) in FIG. 17 (a), as shown in (a1) in FIG. It is divided into various prediction units. As can be seen from FIG. 17 (a), the GEO prediction includes the Triangle prediction. In other words, it can be said that the extended version of Triangle prediction is GEO prediction, and the limited version of GEO prediction is Triangle prediction.

対角線を含む直線分は、図17(b)に示すように、角度インデックスangleIdxと、距離インデックスdistanceIdxと、によって規定される。angleIdxは水平方向の直線と対象CUの中心を通り当該直線分に対する垂線とがなす角度φを示す。distanceIdxは対象CUの中心と当該直線分との交点までの距離ρ(上記垂線の長さ)を示す。角度に関しては、図17(c)の(c1)に示すように、11.25度ごとに1個の角度モードが割り当てられる32個の角度モードの一部を使用してもよい。例えば、垂直方向の6,7,9,10,22,23,25,26の番号が付された角度モードは使用されず、図17(c)の(c2)に示すように、24個の角度モード(例えば、図22に示すangleIdx = 0〜23)が使用される。距離に関しては、例えば、図22に示すdistanceIdx=0〜3が使用される。 As shown in FIG. 17 (b), the straight line including the diagonal line is defined by the angle index angleIdx and the distance index distanceIdx. angleIdx indicates the angle φ formed by the horizontal straight line and the perpendicular line passing through the center of the target CU. distanceIdx indicates the distance ρ (the length of the perpendicular line) to the intersection of the center of the target CU and the straight line. With respect to angles, as shown in (c1) of FIG. 17 (c), some of the 32 angle modes to which one angle mode is assigned every 11.25 degrees may be used. For example, the vertical numbered angular modes 6,7,9,10,22,23,25,26 are not used, and 24 as shown in (c2) of Figure 17 (c). The angle mode (eg angleIdx = 0-23 shown in FIG. 22) is used. For the distance, for example, distanceIdx = 0 to 3 shown in FIG. 22 is used.

GEO予測の予測画像は、非矩形予測単位に対応する「非矩形の」予測画像を導出するのではなく、非矩形予測単位を含む「矩形の」予測画像を2つ導出し、上記2つの矩形領域を、非矩形予測単位の形状に応じた重み付けを行うことで導出される。つまり、動き補償部3091が対象CUの一時予測画像を2つ導出し、GEO合成部30952が、上記2つの一時予測画像の各画素に、画素の位置に応じた重み付けマスク処理を施すことで予測画像を導出する。予測画像の適応的な重み付け処理は、2つの非矩形の予測単位に分割するための直線分をはさんだ双方の領域に対して適用され、2つの予測画像を用いた適応的重み付け処理により対象CU(矩形ブロック)の1つの予測画像が導出される。この処理を、GEO合成処理と呼ぶ。予測以外の処理(例えば変換(逆変換)及び量子化(逆量子化))は対象CUの全体に対して適用される。なお、GEO予測は、マージ予測モードの場合にのみ適用される。 For the GEO prediction prediction image, instead of deriving the "non-rectangular" prediction image corresponding to the non-rectangular prediction unit, two "rectangular" prediction images including the non-rectangular prediction unit are derived, and the above two rectangles are derived. The region is derived by weighting according to the shape of the non-rectangular prediction unit. That is, the motion compensation unit 3091 derives two temporary prediction images of the target CU, and the GEO synthesis unit 30952 predicts by applying weighting mask processing according to the pixel position to each pixel of the above two temporary prediction images. Derive the image. The adaptive weighting process of the predicted image is applied to both regions sandwiching the straight line for dividing into two non-rectangular prediction units, and the target CU is subjected to the adaptive weighting process using the two predicted images. One predicted image of (rectangular block) is derived. This process is called GEO synthesis process. Processing other than prediction (for example, transformation (inverse transformation) and quantization (inverse quantization)) is applied to the entire target CU. Note that GEO prediction is applied only in the merge prediction mode.

GEO予測部30377は、GEO予測に用いられる2つの非矩形領域に対応する予測パラメータを導出し、インター予測画像生成部309に供給する。GEO予測では処理の簡略化のために、双予測を用いない構成でもよい。この場合、1つの非矩形領域において単方向予測のインター予測パラメータを導出する。なお、2つの予測画像の導出及び予測画像を用いた合成は、動き補償部3091(図11)およびGEO合成部30952(図11)によって行われる。 The GEO prediction unit 30377 derives prediction parameters corresponding to the two non-rectangular regions used for GEO prediction and supplies them to the inter-prediction image generation unit 309. For GEO prediction, a configuration that does not use bi-prediction may be used for simplification of processing. In this case, the inter-prediction parameters for unidirectional prediction are derived in one non-rectangular region. The derivation of the two predicted images and the composition using the predicted images are performed by the motion compensation unit 3091 (FIG. 11) and the GEO composition unit 30952 (FIG. 11).

(GEO予測におけるシンタックスの復号)
GEO予測のオン/オフ、およびGEO予測がオンである場合のパラメータは、符号化データで以下のように通知される。
(Syntax decoding in GEO prediction)
The on / off of GEO prediction and the parameters when GEO prediction is on are notified in the coded data as follows.

(第1の例)
第1の例は、Triangle予測の拡張版がGEO予測であるとして、Triangle予測を拡張するか否かを示すシンタックス要素(sps_triangle_extend_enabled_flag)によって、シンタックスの復号処理と、分割パターン導出処理を切り替える。
(First example)
In the first example, assuming that the extended version of the Triangle prediction is a GEO prediction, the syntax decoding process and the division pattern derivation process are switched by the syntax element (sps_triangle_extend_enabled_flag) indicating whether or not the Triangle prediction is extended.

図18(a)に示すように、sps_triangle_enabled_flagは、SPSで通知され、対象シーケンスにおいて、Triangle予測モードが用いられる可能性があるか否かを示す。sps_triangle_enabled_flagが0である場合、対象シーケンスにおいて、Triangle予測モードもGEO予測モードも用いられないことが示される。sps_triangle_enabled_flagが1である場合、対象シーケンスにおいて、Triangle予測モードもしくはGEO予測モードが用いられる可能性があることを示す。また、sps_triangle_enabled_flagが1である場合、sps_triangle_extend_enabled_flagはSPSで通知され、対象シーケンスにおいて、Triangle予測モードの拡張であるGEO予測モードが用いられるか否かを示す。sps_triangle_extend_enabled_flagが0である場合、対象シーケンスにおいて、GEO予測モードが用いられないことを示す。sps_triangle_extend_enabled_flagが1である場合、対象シーケンスにおいて、GEO予測モードが用いられることを示す。sps_triangle_extend_enabled_flagが通知されない場合、0と推定する。以下で説明するように、これら2つのパラメータの値に基づいて、2つの非矩形予測単位が2つの三角形予測単位である場合(図17(a2))と2つの非矩形予測単位が2つの三角形予測単位でない場合(図17(a1))とで、予測処理が切り替えられる。具体的には、sps_triangle_extend_enabled_flagが0である場合には、以下で説明するように、Triangle予測モードに特化した処理が実行される。なお、GEO拡張シンタックス要素sps_triangle_extend_enabled_flagは、SPSに限定されず、PPSやピクチャヘッダ、スライスヘッダで伝送してもよい。 As shown in FIG. 18 (a), sps_triangle_enabled_flag is notified by SPS and indicates whether or not the Triangle prediction mode may be used in the target sequence. If sps_triangle_enabled_flag is 0, it indicates that neither Triangle prediction mode nor GEO prediction mode is used in the target sequence. When sps_triangle_enabled_flag is 1, it indicates that Triangle prediction mode or GEO prediction mode may be used in the target sequence. When sps_triangle_enabled_flag is 1, sps_triangle_extend_enabled_flag is notified by SPS, indicating whether or not GEO prediction mode, which is an extension of Triangle prediction mode, is used in the target sequence. When sps_triangle_extend_enabled_flag is 0, it indicates that GEO prediction mode is not used in the target sequence. When sps_triangle_extend_enabled_flag is 1, it indicates that GEO prediction mode is used in the target sequence. If sps_triangle_extend_enabled_flag is not notified, it is estimated to be 0. As described below, based on the values of these two parameters, the two non-rectangular prediction units are two triangle prediction units (FIG. 17 (a2)) and the two non-rectangular prediction units are two triangles. The prediction process is switched depending on whether the unit is not a prediction unit (Fig. 17 (a1)). Specifically, when sps_triangle_extend_enabled_flag is 0, a process specialized for the Triangle prediction mode is executed as described below. The GEO extended syntax element sps_triangle_extend_enabled_flag is not limited to SPS, and may be transmitted by PPS, a picture header, or a slice header.

図18(b)はPPSで通知されるシンタックスの一部であり、図18(c)はスライスヘッダで通知されるシンタックスの一部であり、図19はmerge_dataで通知されるシンタックスの一部である。パラメータ復号部302は、符号化データ中のシンタックス要素を復号し、GEO予測部30377(インター予測パラメータ導出部303)は、以下の規則に従ってGEO予測のパラメータを導出する。 Figure 18 (b) is part of the syntax notified by PPS, Figure 18 (c) is part of the syntax notified by the slice header, and Figure 19 is the syntax notified by merge_data. It is a part. The parameter decoding unit 302 decodes the syntax element in the encoded data, and the GEO prediction unit 30377 (inter-prediction parameter derivation unit 303) derives the GEO prediction parameters according to the following rules.

PPSでは、pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1が通知される。pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1は、スライスヘッダでmax_num_merge_cand_minus_max_num_wedge_candが通知されるか否かを示すフラグである。pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1=0は、スライスヘッダでmax_num_merge_cand_minus_max_num_wedge_candが通知されることを示す。pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1が0でない場合、スライスヘッダではmax_num_merge_cand_minus_max_num_wedge_candは通知されない。 In PPS, pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 is notified. pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 is a flag indicating whether max_num_merge_cand_minus_max_num_wedge_cand is notified in the slice header. pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 = 0 indicates that max_num_merge_cand_minus_max_num_wedge_cand is notified in the slice header. If pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 is non-zero, the slice header will not notify max_num_merge_cand_minus_max_num_wedge_cand.

pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1は、0からMaxNumMergeCand-1の範囲の値をとる。 pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 takes a value in the range 0 to MaxNumMergeCand-1.

図18(c)は、sps_triange_enabled_flagが1であり、かつ、MaxNumMergeCandが2以上であり、かつ、pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1が0である場合に、スライスヘッダでmax_num_merge_cand_minus_max_num_wedge_candが通知される例を示す。 Figure 18 (c) shows an example where max_num_merge_cand_minus_max_num_wedge_c is notified in the slice header when sps_triange_enabled_flag is 1, MaxNumMergeCand is 2 or more, and pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 is 0.

max_num_merge_cand_minus_max_num_wedge_candは、GEO予測の候補数の最大値MaxNumWedgeMergeCandの導出に使用されるパラメータである。GEO予測部30377は、MaxNumWedgeMergeCandを下式で導出する。 max_num_merge_cand_minus_max_num_wedge_cand is a parameter used to derive the maximum number of GEO prediction candidates, MaxNumWedgeMergeCand. GEO prediction unit 30377 derives MaxNumWedgeMergeCand by the following equation.

MaxNumWedgeMergeCand = MaxNumMergeCand - max_num_merge_cand_minus_max_num_wedge_cand
上式において、MaxNumMergeCandはマージ予測の候補数の最大値である。max_num_merge_cand_minus_max_num_wedge_candがスライスヘッダで通知されず、かつ、MaxNumMergeCand>=2である場合、GEO予測部30377は、下式でmax_num_merge_cand_minus_max_num_wedge_candを設定する。
MaxNumWedgeMergeCand = MaxNumMergeCand --max_num_merge_cand_minus_max_num_wedge_cand
In the above equation, MaxNumMergeCand is the maximum number of candidates for merge prediction. If max_num_merge_cand_minus_max_num_wedge_cand is not notified in the slice header and MaxNumMergeCand> = 2, GEO predictor 30377 sets max_num_merge_cand_minus_max_num_wedge_cand in the following formula.

max_num_merge_cand_minus_max_num_wedge_cand = pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 + 1
max_num_merge_cand_minus_max_num_wedge_candがスライスヘッダで通知される場合、MaxNumWedgeMergeCandは2以上、MaxNumMergeCand以下でなければならない。
max_num_merge_cand_minus_max_num_wedge_cand = pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 + 1
If max_num_merge_cand_minus_max_num_wedge_cand is notified in the slice header, MaxNumWedgeMergeCand must be greater than or equal to 2 and less than or equal to MaxNumMergeCand.

max_num_merge_cand_minus_max_num_wedge_candがスライスヘッダで通知されず、かつ、sps_triangle_enabled_flagが0である、またはMaxNumMergeCand<2である場合、GEO予測部30377は、MaxNumWedgeMergeCand=0に設定する。そして、MaxNumWedgeMergeCandが0の場合、対象スライスではGEO予測は禁止される。 If max_num_merge_cand_minus_max_num_wedge_cand is not notified in the slice header and sps_triangle_enabled_flag is 0 or MaxNumMergeCand <2, GEO predictor 30377 sets MaxNumWedgeMergeCand = 0. And when MaxNumWedgeMergeCand is 0, GEO prediction is prohibited in the target slice.

図19は、対象ブロックにおいてマージ予測がオンである(general_merge_flag==1)場合にmerge_data()が通知されるシンタックス例である。general_merge_flagは、対象ブロックがスキップモードでない場合に通知される。スキップモードの場合、インター予測パラメータ導出部303は、general_merge_flag=1に設定する。merge_data()はマージ予測のパラメータを通知するシンタックスである。図19の例では、ciip_flagが0であり、かつ、MaxNumWedgeMergeCandが2以上であり、かつ、sps_triangle_enabled_flagが1である場合に、GEO予測のシンタックス要素wedge_partition_idx、merge_wedge_idx0、およびmerge_wedge_idx1が通知される。wedge_partition_idxはGEO予測モードの分割タイプを示すインデックス(パーティションインデックス)である。具体的には、分割タイプは、対象ブロックを2つの非矩形領域に分割にするための、対象ブロックをまたがる直線分を特定するangleIdxおよびdistanceIdxの組み合わせを示すインデックスである。merge_wedge_idx0およびmerge_wedge_idx1はそれぞれ、2つの非矩形領域の動き情報を示すインデックスである。2つの非矩形領域の動き情報には、マージ候補を用いる。merge_wedge_idx0、merge_wedge_idx1はマージ候補リスト中のマージ候補のインデックスである。sps_triangle_extend_enabled_flagが0である場合には、パーティションインデックスの選択肢の数はNumGEOConst(例えば2)であり、wedge_partition_idxは、0〜NumGEOConst-1(=1)のうちのいずれかの整数値をとる。具体的には、例えば、図17(a)の(a2)の左側の分割が、wedge_partition_idx=1に対応し、図9(a)の(a2)の右側の分割が、wedge_partition_idx=0に対応する。sps_triangle_extend_enabled_flagが1である場合には、パーティションインデックスの選択肢の数はNumGeoConstraintよりも大きいNumGEOFull(例えば=82)であり、wedge_partition_idxは、0〜NumGeoFull-1(=81)のうちのいずれかの整数値をとる。パラメータ復号部302は、sps_triangle_extend_enabled_flagが0である場合には、最大数cmax= NumGEOConst-1=1のtruncated binaryのbin列を復号して、それ以外の場合には、最大数cmax= NumGEOFull-1のtruncated binaryのbin列を復号してもよい。 FIG. 19 is a syntax example in which merge_data () is notified when merge prediction is turned on (general_merge_flag == 1) in the target block. general_merge_flag is notified when the target block is not in skip mode. In the skip mode, the inter-prediction parameter derivation unit 303 sets general_merge_flag = 1. merge_data () is a syntax that notifies the parameters of merge prediction. In the example of FIG. 19, when ciip_flag is 0, MaxNumWedgeMergeCand is 2 or more, and sps_triangle_enabled_flag is 1, the GEO prediction syntax elements wedge_partition_idx, merge_wedge_idx0, and merge_wedge_idx1 are notified. wedge_partition_idx is an index (partition index) indicating the partition type of GEO prediction mode. Specifically, the division type is an index indicating a combination of angleIdx and distanceIdx that specifies a straight line portion straddling the target block for dividing the target block into two non-rectangular regions. merge_wedge_idx0 and merge_wedge_idx1 are indexes showing motion information of two non-rectangular regions, respectively. Merge candidates are used for the motion information of the two non-rectangular areas. merge_wedge_idx0 and merge_wedge_idx1 are the indexes of merge candidates in the merge candidate list. When sps_triangle_extend_enabled_flag is 0, the number of partition index choices is NumGEOConst (eg 2), and wedge_partition_idx takes an integer value from 0 to NumGEOConst-1 (= 1). Specifically, for example, the division on the left side of (a2) in FIG. 17 (a) corresponds to wedge_partition_idx = 1, and the division on the right side of (a2) in FIG. 9 (a) corresponds to wedge_partition_idx = 0. .. If sps_triangle_extend_enabled_flag is 1, the number of partition index choices is NumGEOFull (eg = 82), which is greater than NumGeoConstraint, and wedge_partition_idx is an integer value from 0 to NumGeoFull-1 (= 81). Take. The parameter decoding unit 302 decodes the bin column of the truncated binary with the maximum number cmax = NumGEOConst-1 = 1 when sps_triangle_extend_enabled_flag is 0, and otherwise, the maximum number cmax = NumGEOFull-1. You may decrypt the bin column of truncated binary.

WedgeMergeModeは、Bスライスにおいて、対象ブロックでGEO予測を実施するか否かを示すフラグである。以下の条件(GEO判定条件)がすべて満たされる場合には、GEO予測部30377は、WedgeMergeMode=1(GEO予測オン)に設定し、そうでない場合には、GEO予測部30377は、WedgeMergeMode=0に設定する。
・sps_triangle_extend_enabled_flag=1(対象SPSにおいてGEO予測が利用可能)
・slice_typeはBスライス
・general_merge_flag=1(マージ予測がオン、対象ブロックのインター予測パラメータは近傍のインター予測ブロックから推定する)
・MaxNumWedgeMergeCand>=2(GEO予測の候補数の最大値が2以上)
・cbWidth>=8かつcbHeight>=8
・regular_merge_flag=0(基本的なマージ予測またはMMVD予測がオフ)
・merge_subblock_flag=0(サブブロック単位のインター予測がオフ)
・ciip_flag=0(イントラ予測画像とインター予測画像との合成処理がオフ)
GEO予測部30377は、WedgeMergeMode=1の場合に、以下の手順で予測画像生成に必要なパラメータを導出し、GEO合成部30952(図11)に出力する。
WedgeMergeMode is a flag indicating whether or not GEO prediction is performed in the target block in the B slice. If all of the following conditions (GEO judgment conditions) are satisfied, the GEO prediction unit 30377 is set to WedgeMergeMode = 1 (GEO prediction is on), otherwise the GEO prediction unit 30377 is set to WedgeMergeMode = 0. Set.
・ Sps_triangle_extend_enabled_flag = 1 (GEO prediction can be used in the target SPS)
-Slice_type is B slice-general_merge_flag = 1 (merge prediction is on, inter-prediction parameters of the target block are estimated from nearby inter-prediction blocks)
-MaxNumWedgeMergeCand> = 2 (Maximum number of GEO prediction candidates is 2 or more)
・ CbWidth> = 8 and cbHeight> = 8
-Regular_merge_flag = 0 (basic merge prediction or MMVD prediction is off)
-Merge_subblock_flag = 0 (inter prediction for each subblock is off)
・ Ciip_flag = 0 (composition processing of intra prediction image and inter prediction image is off)
When WedgeMergeMode = 1, the GEO prediction unit 30377 derives the parameters required for predictive image generation by the following procedure and outputs them to the GEO synthesis unit 30952 (Fig. 11).

なお、以下で参照される各種テーブルの内容は、動画像復号装置31に含まれるテーブル記憶部(例えば、メモリ)に予め記憶されている。 The contents of various tables referred to below are stored in advance in a table storage unit (for example, a memory) included in the moving image decoding device 31.

(第1の例の拡張例)
上記の例では、GEO拡張シンタックス要素によって切り替えるGEOモードの数NumGEOConst, NumGEOFullをTriangle予測の2とGEO予測モードの82としたが、上記に限定されず、分割パターン数(選択可能なパーティションインデックスの数として)、2、4、8、16、32などを用いても良い。また、GEO拡張シンタックス要素は2つのモードを切り替えるフラグである必要はなく、分割パターン数(パーティションインデックスの最大値cMax)の異なる3つ以上のモードを切り替える構成でもよい。
(Extension example of the first example)
In the above example, the number of GEO modes switched by the GEO extended syntax element NumGEOConst and NumGEOFull are set to 2 for Triangle prediction and 82 for GEO prediction mode, but the number of division patterns (selectable partition index) is not limited to the above. As a number), 2, 4, 8, 16, 32 and the like may be used. Further, the GEO extended syntax element does not have to be a flag for switching between two modes, and may be configured to switch between three or more modes having different numbers of division patterns (maximum value of partition index cMax).

例えば、サブセットのパーティションインデックス数として2〜82のいずれかを用いてもよい(例、インデックス数は2、4、8、16など)。 For example, any of 2 to 82 may be used as the number of partition indexes of the subset (eg, the number of indexes is 2, 4, 8, 16 and so on).

具体的に、図28(a)示すように、sps_triangle_enabled_flagが1である場合、パーティションインデックスの最大値を示すインデックスmax_wedge_partition_idxをさらにSPSで通知してもよい。対象シーケンスにおいて、Triangle予測モード拡張版であるGEO予測モードが用いられることを示してもよい。max_wedge_partition_idx = 0, 1, 2, 3は各々、以下に対応してもよい。また、このとき、以下にしますcMaxのTruncated binary符号を用いてbinを復号してもよい。 Specifically, as shown in FIG. 28 (a), when sps_triangle_enabled_flag is 1, the index max_wedge_partition_idx indicating the maximum value of the partition index may be further notified by SPS. It may be shown that the GEO prediction mode, which is an extended version of the Triangle prediction mode, is used in the target sequence. max_wedge_partition_idx = 0, 1, 2, 3 may correspond to the following, respectively. At this time, bin may be decoded using the Truncated binary code of cMax as follows.

分割パターン数:2 (cMax = 1) (max_wedge_partition_idx == 0の場合)
分割パターン数:8 (cMax = 7) (max_wedge_partition_idx == 1の場合)
分割パターン数:32 (cMax = 31) (max_wedge_partition_idx == 2の場合)
分割パターン数:82 (cMax = 81) (max_wedge_partition_idx == 3の場合)
また、sps_triangle_enabled_flagが1である場合、sps_triangle_extend_flagを復号し、図28(c)示すように、sps_triangle_enabled_flagが1で、かつ、sps_triangle_enabled_flagが1である場合、スライスヘッダでパーティションインデックスの最大値を示すシンタックス要素max_wedge_partition_idxが通知してもよい。
Number of division patterns: 2 (cMax = 1) (when max_wedge_partition_idx == 0)
Number of division patterns: 8 (cMax = 7) (when max_wedge_partition_idx == 1)
Number of division patterns: 32 (cMax = 31) (when max_wedge_partition_idx == 2)
Number of division patterns: 82 (cMax = 81) (when max_wedge_partition_idx == 3)
Also, if sps_triangle_enabled_flag is 1, sps_triangle_extend_flag is decoded, and as shown in Figure 28 (c), if sps_triangle_enabled_flag is 1 and sps_triangle_enabled_flag is 1, a syntax element that indicates the maximum value of the partition index in the slice header. max_wedge_partition_idx may notify you.

(第2の例)
第2の例は、GEO予測の制限版がTriangle予測であるとして、GEO予測を拡張するか否かを示すsps_wedge_constraint_flagフラグによって、シンタックスの復号処理と、分割パターン導出処理を切り替える。
(Second example)
In the second example, assuming that the restricted version of the GEO prediction is the Triangle prediction, the syntax decoding process and the division pattern derivation process are switched by the sps_wedge_constraint_flag flag indicating whether or not the GEO prediction is extended.

図20(a)に示すように、sps_wedge_enabled_flagは、SPSで通知され、対象シーケンスにおいて、GEO予測モードが用いられる可能性があるか否かを示す。sps_wedge_enabled_flagが0である場合、対象シーケンスにおいて、GEO予測モードが用いられないことを示す。sps_wedge_enabled_flagが1である場合、対象シーケンスにおいて、GEO予測モードが用いられる可能性があることを示す。また、sps_wedge_enabled_flagが1である場合、GEO制限シンタックス要素sps_wedge_constraint_flagを通知する。sps_wedge_constraint_flagが0である場合、対象シーケンスにおいて、選択可能な分割パターン数がNumGeoFullのGEO予測モードが用いられ、sps_wedge_constraint_flagが1である場合、対象シーケンスにおいて選択可能な分割パターン数がNumGeoConstraint(<NumGeoFull)のTriangle予測モードのみが用いられることを示す。sps_wedge_constraint_flagが通知されない場合、0と推定する。以下で説明するように、これら2つのパラメータの値に少なくとも基づいて、2つの非矩形予測単位が2つの三角形予測単位である場合と2つの非矩形予測単位が2つの三角形予測単位でない場合とで、予測処理が切り替えられる。具体的には、sps_wedge_constraint_flagが1である場合には、以下で説明するように、Triangle予測モードに特化した処理が実行される。なお、GEO制限シンタックス要素sps_wedge_constraint_flagは、SPSに限定されず、PPSやピクチャヘッダ、スライスヘッダで伝送してもよい。 As shown in FIG. 20 (a), sps_wedge_enabled_flag is notified by SPS and indicates whether or not the GEO prediction mode may be used in the target sequence. When sps_wedge_enabled_flag is 0, it indicates that GEO prediction mode is not used in the target sequence. A value of 1 for sps_wedge_enabled_flag indicates that the GEO prediction mode may be used in the target sequence. Also, if sps_wedge_enabled_flag is 1, the GEO restriction syntax element sps_wedge_constraint_flag is notified. When sps_wedge_constraint_flag is 0, the GEO prediction mode in which the number of selectable division patterns is NumGeoFull is used in the target sequence, and when sps_wedge_constraint_flag is 1, the number of selectable division patterns in the target sequence is NumGeoConstraint (<NumGeoFull). Indicates that only Triangle prediction mode is used. If sps_wedge_constraint_flag is not notified, it is estimated to be 0. As described below, based on at least the values of these two parameters, two non-rectangular predictive units are two triangular predictive units and two non-rectangular predictive units are not two triangular predictive units. , Prediction processing is switched. Specifically, when sps_wedge_constraint_flag is 1, a process specialized for the Triangle prediction mode is executed as described below. The GEO restriction syntax element sps_wedge_constraint_flag is not limited to SPS, and may be transmitted by PPS, a picture header, or a slice header.

図20(b)はPPSで通知されるシンタックスの一部であり、図20(c)はスライスヘッダで通知されるシンタックスの一部であり、図21はmerge_dataで通知されるシンタックスの一部である。パラメータ復号部302は、符号化データ中のシンタックス要素を復号し、GEO予測部30377(インター予測パラメータ導出部303)は、以下の規則に従ってGEO予測のパラメータを導出する。 Figure 20 (b) is part of the syntax notified by PPS, Figure 20 (c) is part of the syntax notified by slice header, and Figure 21 is the syntax notified by merge_data. It is a part. The parameter decoding unit 302 decodes the syntax element in the encoded data, and the GEO prediction unit 30377 (inter-prediction parameter derivation unit 303) derives the GEO prediction parameters according to the following rules.

PPSでは、pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1が通知される。pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1は、スライスヘッダでmax_num_merge_cand_minus_max_num_wedge_candが通知されるか否かを示すフラグである。pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1=0は、スライスヘッダでmax_num_merge_cand_minus_max_num_wedge_candが通知されることを示す。pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1が0でない場合、スライスヘッダではmax_num_merge_cand_minus_max_num_wedge_candは通知されない。 In PPS, pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 is notified. pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 is a flag indicating whether max_num_merge_cand_minus_max_num_wedge_cand is notified in the slice header. pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 = 0 indicates that max_num_merge_cand_minus_max_num_wedge_cand is notified in the slice header. If pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 is non-zero, the slice header will not notify max_num_merge_cand_minus_max_num_wedge_cand.

pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1は、0からMaxNumMergeCand-1の範囲の値をとる。 pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 takes a value in the range 0 to MaxNumMergeCand-1.

図20(c)は、sps_wedge_enabled_flagが1であり、かつ、pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1が0である場合に、スライスヘッダでmax_num_merge_cand_minus_max_num_wedge_candが通知される例を示す。 FIG. 20 (c) shows an example in which max_num_merge_cand_minus_max_num_wedge_cand is notified in the slice header when sps_wedge_enabled_flag is 1 and pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 is 0.

max_num_merge_cand_minus_max_num_wedge_candは、GEO予測の候補数の最大値MaxNumWedgeMergeCandの導出に使用されるパラメータである。GEO予測部30377は、MaxNumWedgeMergeCandを下式で導出する。 max_num_merge_cand_minus_max_num_wedge_cand is a parameter used to derive the maximum number of GEO prediction candidates, MaxNumWedgeMergeCand. GEO prediction unit 30377 derives MaxNumWedgeMergeCand by the following equation.

MaxNumWedgeMergeCand = MaxNumMergeCand - max_num_merge_cand_minus_max_num_wedge_cand
上式において、MaxNumMergeCandはマージ予測の候補数の最大値である。max_num_merge_cand_minus_max_num_wedge_candがスライスヘッダで通知されず、かつ、sps_wedge_enabled_flagが1であり、かつ、MaxNumMergeCand>=2である場合、GEO予測部30377は、下式でmax_num_merge_cand_minus_max_num_wedge_candを設定する。
MaxNumWedgeMergeCand = MaxNumMergeCand --max_num_merge_cand_minus_max_num_wedge_cand
In the above equation, MaxNumMergeCand is the maximum number of candidates for merge prediction. If max_num_merge_cand_minus_max_num_wedge_cand is not notified in the slice header, sps_wedge_enabled_flag is 1, and MaxNumMergeCand> = 2, GEO predictor 30377 sets max_num_merge_cand_minus_max_num_wedge_cand in the following equation.

max_num_merge_cand_minus_max_num_wedge_cand = pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 + 1
max_num_merge_cand_minus_max_num_wedge_candがスライスヘッダで通知される場合、MaxNumWedgeMergeCandは、2以上MaxNumMergeCand以下でなければならない。
max_num_merge_cand_minus_max_num_wedge_cand = pps_max_num_merge_cand_minus_max_num_wedge_cand_minus1 + 1
If max_num_merge_cand_minus_max_num_wedge_cand is notified in the slice header, MaxNumWedgeMergeCand must be greater than or equal to 2 and less than or equal to MaxNumMergeCand.

max_num_merge_cand_minus_max_num_wedge_candがスライスヘッダで通知されず、かつ、sps_wedge_enabled_flagが0である、またはMaxNumMergeCand<2である場合、GEO予測部30377は、MaxNumWedgeMergeCand=0に設定する。そして、MaxNumWedgeMergeCandが0の場合、対象スライスではGEO予測は禁止される。 If max_num_merge_cand_minus_max_num_wedge_cand is not notified in the slice header and sps_wedge_enabled_flag is 0 or MaxNumMergeCand <2, GEO predictor 30377 sets MaxNumWedgeMergeCand = 0. And when MaxNumWedgeMergeCand is 0, GEO prediction is prohibited in the target slice.

図21は、対象ブロックにおいてマージ予測がオン(general_merge_flag==1)の場合にmerge_data()が通知されるシンタックス例である。general_nmerge_flagは、対象ブロックがスキップモードでない場合に通知される。スキップモードの場合、インター予測パラメータ導出部303は、general_merge_flag=1に設定する。merge_data()はマージ予測のパラメータを通知するシンタックスである。図21の例では、ciip_flagが0であり、かつ、MaxNumWedgeMergeCandが2以上である場合に、GEO予測のシンタックス要素wedge_partition_idx、merge_wedge_idx0、およびmerge_wedge_idx1が通知される。これらのシンタックス要素は、上述した通りである。sps_wedge_constraint_flagが1である場合には、wedge_partition_idxは、0〜NumGEOConst-1(=1)のうちのいずれかである。具体的には、例えば、上述した通りである。sps_wedge_constraint_flagが0である場合には、wedge_partition_idxは、0〜NumGEOFull-1(81)のうちのいずれかである。パラメータ復号部302は、sps_triangle_extend_enabled_flagが0である場合には、最大数cmax= NumGEOConst-1=1のtruncated binaryのbin列を復号して、それ以外の場合には、最大数cmax= NumGEOFull-1のtruncated binaryのbin列を復号してもよい。 FIG. 21 is a syntax example in which merge_data () is notified when merge prediction is on (general_merge_flag == 1) in the target block. general_nmerge_flag is notified when the target block is not in skip mode. In the skip mode, the inter-prediction parameter derivation unit 303 sets general_merge_flag = 1. merge_data () is a syntax that notifies the parameters of merge prediction. In the example of FIG. 21, when ciip_flag is 0 and MaxNumWedgeMergeCand is 2 or more, the syntax elements wedge_partition_idx, merge_wedge_idx0, and merge_wedge_idx1 of GEO prediction are notified. These syntax elements are as described above. If sps_wedge_constraint_flag is 1, wedge_partition_idx is one of 0 to NumGEOConst-1 (= 1). Specifically, for example, as described above. If sps_wedge_constraint_flag is 0, wedge_partition_idx is one of 0 to NumGEOFull-1 (81). The parameter decoding unit 302 decodes the bin column of the truncated binary with the maximum number cmax = NumGEOConst-1 = 1 when sps_triangle_extend_enabled_flag is 0, and otherwise, the maximum number cmax = NumGEOFull-1. You may decrypt the bin column of truncated binary.

WedgeMergeModeは、Bスライスにおいて、対象ブロックでGEO予測を実施するか否かを示すフラグである。以下の条件(GEO判定条件)がすべて満たされる場合には、GEO予測部30377は、WedgeMergeMode=1(GEO予測オン)に設定し、そうでない場合には、GEO予測部30377は、WedgeMergeMode=0に設定する。
・sps_wedge_constraint_flag=0(対象SPSにおいてGEO予測が利用可能)
・slice_typeはBスライス
・general_merge_flag=1(マージ予測がオン、対象ブロックのインター予測パラメータは近傍のインター予測ブロックから推定する)
・MaxNumWedgeMergeCand>=2(GEO予測の候補数の最大値が2以上)
・cbWidth>=8かつcbHeight>=8
・regular_merge_flag=0(基本的なマージ予測またはMMVD予測がオフ)
・merge_subblock_flag=0(サブブロック単位のインター予測がオフ)
・ciip_flag=0(イントラ予測画像とインター予測画像との合成処理がオフ)
GEO予測部30377は、WedgeMergeMode=1の場合に、以下の手順で予測画像生成に必要なパラメータを導出し、GEO合成部30952に出力する。
WedgeMergeMode is a flag indicating whether or not GEO prediction is performed in the target block in the B slice. If all of the following conditions (GEO judgment conditions) are satisfied, the GEO prediction unit 30377 is set to WedgeMergeMode = 1 (GEO prediction is on), otherwise the GEO prediction unit 30377 is set to WedgeMergeMode = 0. Set.
・ Sps_wedge_constraint_flag = 0 (GEO prediction is available in the target SPS)
-Slice_type is B slice-general_merge_flag = 1 (merge prediction is on, inter-prediction parameters of the target block are estimated from nearby inter-prediction blocks)
-MaxNumWedgeMergeCand> = 2 (Maximum number of GEO prediction candidates is 2 or more)
・ CbWidth> = 8 and cbHeight> = 8
-Regular_merge_flag = 0 (basic merge prediction or MMVD prediction is off)
-Merge_subblock_flag = 0 (inter prediction for each subblock is off)
・ Ciip_flag = 0 (composition processing of intra-prediction image and inter-prediction image is off)
When WedgeMergeMode = 1, the GEO prediction unit 30377 derives the parameters required for the prediction image generation by the following procedure and outputs them to the GEO synthesis unit 30952.

なお、以下で参照される各種テーブルの内容は、動画像復号装置31に含まれるテーブル記憶部(例えば、メモリ)に予め記憶されている。 The contents of various tables referred to below are stored in advance in a table storage unit (for example, a memory) included in the moving image decoding device 31.

(GEO予測における動き情報導出処理)
GEO予測部30377は、以下のように、2つの非矩形領域の動き情報を示すシンタックスmerge_wedge_idx0およびmerge_wedge_idx1からマージインデックスmおよびnを導出する。
(Motion information derivation processing in GEO prediction)
The GEO prediction unit 30377 derives the merge indexes m and n from the syntax merge_wedge_idx0 and merge_wedge_idx1 that indicate the motion information of the two non-rectangular regions as follows.

m = merge_wedge_idx0
n = merge_wedge_idx1 + (merge_wedge_idx1 >= m) ? 1 : 0
以下では、マージインデックスmが指すマージ候補がMとして示され、マージインデックスnが指すマージ候補がNとして示される。
m = merge_wedge_idx0
n = merge_wedge_idx1 + (merge_wedge_idx1> = m)? 1: 0
In the following, the merge candidate pointed to by the merge index m is shown as M, and the merge candidate pointed to by the merge index n is shown as N.

マージ予測パラメータ導出部3036は、(マージ予測)に記載された方法でマージ候補MおよびNの動き情報(mvLXM、mvLXN、refIdxLXM、refIdxLXN、predFlagLXM、predFlagLXN、bcwIdx、mergeCandList等)を導出する。GEO予測部30377は、これらの動き情報を用いて、以下のように、merge_wedge_idx0およびmerge_wedge_idx1の動きベクトルmvAおよびmvB、参照インデックスrefIdxAおよびrefIdxB、ならびに、予測リストフラグpredListFlagAおよびpredListFlagBを設定する。 The merge prediction parameter derivation unit 3036 derives the motion information (mvLXM, mvLXN, refIdxLXM, refIdxLXN, predFlagLXM, predFlagLXN, bcwIdx, mergeCandList, etc.) of the merge candidates M and N by the method described in (Merge prediction). Using these motion information, the GEO prediction unit 30377 sets the motion vectors mvA and mvB of merge_wedge_idx0 and merge_wedge_idx1, the reference indexes refIdxA and refIdxB, and the prediction list flags predListFlagA and predListFlagB as follows.

mvA[0] = mvLXM[0]
mvA[1] = mvLXM[1]
refIdxA = refIdxLXM
predListFlagA = X
ここで、GEO予測部30377は、Xにmの下位1bitを設定する(m & 0x01)。なお、predFlagLXMが0である場合、GEO予測部30377は、Xを(1-X)に設定する。
mvA [0] = mvLXM [0]
mvA [1] = mvLXM [1]
refIdxA = refIdxLXM
predListFlagA = X
Here, the GEO prediction unit 30377 sets the lower 1 bit of m in X (m & 0x01). When predFlagLXM is 0, the GEO prediction unit 30377 sets X to (1-X).

mvB[0] = mvLXN[0]
mvB[1] = mvLXN[1]
refIdxB = refIdxLXN
predListFlagB = X
ここで、GEO予測部30377は、Xにnの下位1bitを設定する(n & 0x01)。なお、predFlagLXNが0である場合、GEO予測部30377は、Xを(1-X)に設定する。
mvB [0] = mvLXN [0]
mvB [1] = mvLXN [1]
refIdxB = refIdxLXN
predListFlagB = X
Here, the GEO prediction unit 30377 sets the lower 1 bit of n in X (n & 0x01). When predFlagLXN is 0, the GEO prediction unit 30377 sets X to (1-X).

これらの動き情報は、2つの非矩形領域の予測画像を生成するために参照される。 These motion information is referred to to generate a predicted image of the two non-rectangular regions.

(GEO予測における重み係数導出処理)
GEO予測部30377は、2つの非矩形領域に対して適用される重み予測の係数sampleWeightを以下の手順で導出する。ここで、nCbW=cbWidth、nCbH=cbHeightである。
(Weight coefficient derivation process in GEO prediction)
The GEO prediction unit 30377 derives the weight prediction coefficient sampleWeight applied to the two non-rectangular regions by the following procedure. Here, nCbW = cbWidth and nCbH = cbHeight.

(第1の例における処理)
sps_triangle_extend_enabled_flagが0である場合には、GEO予測部30377は、以下のように、パラメータ復号部302から入力されたwedge_partition_idx(0または1)から、wedge_partition_idxを導出する。
(Processing in the first example)
When sps_triangle_extend_enabled_flag is 0, GEO prediction unit 30377 derives wedge_partition_idx from wedge_partition_idx (0 or 1) input from parameter decoding unit 302 as follows.

wedge_partition_idx = (wedge_partition_idx == 0) ? 11 : 34
GEO予測部30377は、図22に示すテーブルを用いて、導出されたwedge_partition_idxに対応するangleIdxおよびdistanceIdxを導出する。ここで、図22に示すテーブルは、GEO予測におけるwedge_partition_idxとangleIdxおよびdistanceIdxとの対応を示すGEO予測(非矩形予測単位)用テーブルである。
wedge_partition_idx = (wedge_partition_idx == 0)? 11:34
The GEO prediction unit 30377 derives the angleIdx and the distanceIdx corresponding to the derived wedge_partition_idx using the table shown in FIG. 22. Here, the table shown in FIG. 22 is a GEO prediction (non-rectangular prediction unit) table showing the correspondence between wedge_partition_idx and angleIdx and distanceIdx in GEO prediction.

一方、sps_triangle_extend_enabled_flagが1である場合には、GEO予測部30377は、図22に示すテーブルを用いて、wedge_partition_idxを参照してangleIdxおよびdistanceIdxを導出する。 On the other hand, when sps_triangle_extend_enabled_flag is 1, GEO prediction unit 30377 derives angleIdx and distanceIdx by referring to wedge_partition_idx using the table shown in FIG.

代替的に、sps_triangle_extend_enabled_flagが0である場合には、GEO予測部30377は、図23に示すテーブルを用いて、wedge_partition_idxに対応するangleIdxおよびdistanceIdxを導出して良い。ここで、図23に示すテーブルは、wedge_partition_idxとangleIdxおよびdistanceIdxとの対応を示すTriangle予測(三角形予測単位)用テーブルである。一方、sps_triangle_extend_enabled_flagが1である場合には、GEO予測部30377は、図22に示すテーブルを用いて、wedge_partition_idxに対応するangleIdxおよびDistanceIdxを導出して良い。 Alternatively, if sps_triangle_extend_enabled_flag is 0, GEO predictor 30377 may derive the angleIdx and distanceIdx corresponding to wedge_partition_idx using the table shown in FIG. Here, the table shown in FIG. 23 is a table for Triangle prediction (triangle prediction unit) showing the correspondence between wedge_partition_idx and angleIdx and distanceIdx. On the other hand, when sps_triangle_extend_enabled_flag is 1, GEO prediction unit 30377 may derive angleIdx and DistanceIdx corresponding to wedge_partition_idx using the table shown in FIG.

(第2の例の拡張例)
上記の例では、GEO制限シンタックス要素によって切り替えるGEOモードの数NumGEOConst, NumGEOFullをTriangle予測の2とGEO予測モードの82としたが、上記に限定されず、分割パターン数(選択可能なパーティションインデックスの数として)、2、4、8、16、32などを用いても良い。また、GEO拡張シンタックス要素は2つのモードを切り替えるフラグである必要はなく、分割パターン数(パーティションインデックスの最大値cMax)の異なる3つ以上のモードを切り替える構成でもよい。
(Extended example of the second example)
In the above example, the number of GEO modes switched by the GEO limiting syntax element NumGEOConst and NumGEOFull are set to 2 for Triangle prediction and 82 for GEO prediction mode, but the number of division patterns (selectable partition index) is not limited to the above. As a number), 2, 4, 8, 16, 32 and the like may be used. Further, the GEO extended syntax element does not have to be a flag for switching between two modes, and may be configured to switch between three or more modes having different numbers of division patterns (maximum value of partition index cMax).

例えば、サブセットのパーティションインデックス数として2〜82のいづれかを用いてもよい(例、インデックス数は2、4、8、16など)。 For example, any of 2 to 82 may be used as the number of partition indexes of the subset (eg, the number of indexes is 2, 4, 8, 16 and so on).

具体的に、GEO制限シンタックス要素として、パーティションインデックスの最大値を示すインデックスmax_wedge_partition_idxをSPSで通知してもよい。max_wedge_partition_idx = 0, 1, 2, 3は各々、以下に対応してもよい。また、このとき、以下にしますcMaxのTruncated binary符号を用いてbinを復号してもよい。 Specifically, as a GEO restriction syntax element, the index max_wedge_partition_idx indicating the maximum value of the partition index may be notified by SPS. max_wedge_partition_idx = 0, 1, 2, 3 may correspond to the following, respectively. At this time, bin may be decoded using the Truncated binary code of cMax as follows.

分割パターン数:2 (cMax = 1) (max_wedge_partition_idx == 0の場合)
分割パターン数:8 (cMax = 7) (max_wedge_partition_idx == 1の場合)
分割パターン数:32 (cMax = 31) (max_wedge_partition_idx == 2の場合)
分割パターン数:82 (cMax = 81) (max_wedge_partition_idx == 3の場合)
また、スライスヘッダでパーティションインデックスの最大値を示すシンタックス要素max_wedge_partition_idxを通知してもよい。
Number of division patterns: 2 (cMax = 1) (when max_wedge_partition_idx == 0)
Number of division patterns: 8 (cMax = 7) (when max_wedge_partition_idx == 1)
Number of division patterns: 32 (cMax = 31) (when max_wedge_partition_idx == 2)
Number of division patterns: 82 (cMax = 81) (when max_wedge_partition_idx == 3)
In addition, the syntax element max_wedge_partition_idx indicating the maximum value of the partition index may be notified in the slice header.

(第2の例における処理)
sps_wedge_constraint_flagが1である場合には、GEO予測部30377は、以下のように、シンタックス要素の値wedge_partition_idx(0または1)から、wedge_partition_idxを導出する。
(Processing in the second example)
When sps_wedge_constraint_flag is 1, GEO prediction unit 30377 derives wedge_partition_idx from the value wedge_partition_idx (0 or 1) of the syntax element as follows.

wedge_partition_idx = (wedge_partition_idx == 0) ? 11 : 34
つまり、復号したシンタックス要素の値から、実際に利用する分割パターンのパーティションインデックス(distanceIdx = 0、angleIdxが所定の数に対応する11, 34)に変換する。
wedge_partition_idx = (wedge_partition_idx == 0)? 11:34
That is, the value of the decoded syntax element is converted into the partition index of the partition pattern actually used (distanceIdx = 0, angleIdx is 11, 34 corresponding to a predetermined number).

GEO予測部30377は、図22に示すテーブルを用いて、導出されたwedge_partition_idxを参照してangleIdxおよびdistanceIdxを導出する。 The GEO prediction unit 30377 derives angleIdx and distanceIdx by referring to the derived wedge_partition_idx using the table shown in FIG. 22.

一方、sps_wedge_constraint_flagが0である場合には、GEO予測部30377は、図22に示すテーブルを用いて、wedge_partition_idxを参照してangleIdxおよびdistanceIdxを導出する。 On the other hand, when sps_wedge_constraint_flag is 0, the GEO prediction unit 30377 derives angleIdx and distanceIdx by referring to wedge_partition_idx using the table shown in FIG.

代替的に、sps_wedge_constraint_flagが1である場合には、GEO予測部30377は、図23に示すテーブルを用いて、wedge_partition_idxを参照してangleIdxおよびdistanceIdxを導出して良い。一方、sps_wedge_constraint_flagが0である場合には、GEO予測部30377は、図22に示すテーブルを用いて、wedge_partition_idxを参照してangleIdxおよびdistanceIdxを導出して良い。 Alternatively, if sps_wedge_constraint_flag is 1, GEO Predictor 30377 may use the table shown in FIG. 23 to derive angleIdx and distanceIdx with reference to wedge_partition_idx. On the other hand, when sps_wedge_constraint_flag is 0, the GEO prediction unit 30377 may derive angleIdx and distanceIdx by referring to wedge_partition_idx using the table shown in FIG.

以下では、第1の例および第2の例に共通する処理を説明する。 Hereinafter, the processing common to the first example and the second example will be described.

GEO予測部30377は、以下のように、bitDepthを導出する。 GEO prediction unit 30377 derives bitDepth as follows.

cIdxが0である場合、GEO予測部30377は、bitDepthを、輝度画素ビット数BitDepthYに設定する。 When cIdx is 0, the GEO prediction unit 30377 sets bitDepth to the number of luminance pixel bits BitDepthY.

cIdxが0である場合、GEO予測部30377は、nWおよびnHをそれぞれ、nCbWおよびnCbHに設定する。cIdxが0でない場合、GEO予測部30377は、nWおよびnHをそれぞれ、nCbW x SubWidthCおよびnCbH x SubHeightCに設定する。ここで、SubWidthCおよびSubHeightCは、色差フォーマットに応じて予め定められた値である。 If cIdx is 0, GEO predictor 30377 sets nW and nH to nCbW and nCbH, respectively. If cIdx is non-zero, GEO predictor 30377 sets nW and nH to nCbW x SubWidth C and nCbH x SubHeight C, respectively. Here, SubWidthC and SubHeightC are predetermined values according to the color difference format.

cIdxが0である場合、GEO予測部30377は、subWおよびsubHを両方とも1に設定する。cIdxが0でない場合、GEO予測部30377は、subWおよびsubHをそれぞれ、SubWidthCおよびSubHeightCに設定する。 If cIdx is 0, GEO predictor 30377 sets both subW and subH to 1. If cIdx is non-zero, GEO predictor 30377 sets subW and subH to SubWidthC and SubHeightC, respectively.

cIdxが0でない場合、GEO予測部30377は、bitDepthを、色差画素ビット数BitDepthCに設定する。 If cIdx is not 0, the GEO prediction unit 30377 sets bitDepth to BitDepthC, which is the number of color difference pixel bits.

GEO予測部30377は、ブロックの縦横比hwRatioの値をnH/nWに設定する。 The GEO prediction unit 30377 sets the value of the block aspect ratio hwRatio to nH / nW.

GEO予測部30377は、displacementXの値をangleIdxに設定する。 GEO prediction unit 30377 sets the value of displacementX to angleIdx.

GEO予測部30377は、displacementYの値を(displacementX + 6)%24に設定する。 GEO Prediction Unit 30377 sets the value of displacementY to (displacementX + 6)% 24.

GEO予測部30377は、図24に示すDisルックアップテーブルを用いて、rhoの値を、(Dis[displacementX] << 8) + (Dis[displacementY] << 8)に設定する。 The GEO prediction unit 30377 sets the value of rho to (Dis [displacementX] << 8) + (Dis [displacementY] << 8) using the Dis lookup table shown in FIG. 24.

ここで、図24に示すDisは、idxとDis[idx]との対応を示すテーブルである。 Here, Dis shown in FIG. 24 is a table showing the correspondence between idx and Dis [idx].

以下の条件のうちの1つが満たされる場合には、GEO予測部30377は、shiftHorを0に設定し、そうでない場合には、GEO予測部30377は、shiftHorを1に設定する。
・angleIdx%12が6である
・angleIdx%12が0でなく、かつ、hwRatio>=1である
shiftHorが0である場合、GEO予測部30377は、以下のように、offsetXおよびoffsetYを導出する。
If one of the following conditions is met, the GEO prediction unit 30377 sets shiftHor to 0, otherwise the GEO prediction unit 30377 sets shiftHor to 1.
AngleIdx% 12 is 6 ・ angleIdx% 12 is not 0 and hwRatio> = 1.
When shiftHor is 0, GEO prediction unit 30377 derives offsetX and offsetY as follows.

offsetX = (256 - nW) >> 1
offsetY = (256 - nH) >> 1 + angleIdx < 12 ? (distanceIdx * nH) >> 3 : -((distanceIdx * nH) >> 3)
shiftHorが1である場合、GEO予測部30377は、以下のように、offsetXおよびoffsetYを導出する。
offsetX = (256 --nW) >> 1
offsetY = (256 --nH) >> 1 + angleIdx <12? (DistanceIdx * nH) >> 3:-((distanceIdx * nH) >> 3)
When shiftHor is 1, GEO prediction unit 30377 derives offsetX and offsetY as follows.

offsetX = (256 - nW) >> 1 + angleIdx < 12 ? (distanceIdx * nW) >> 3 : -((distanceIdx * nW) >> 3)
offsetY = (256 - nH) >> 1
GEO予測部30377は、以下のステップに従って、sampleWeightを導出する。
offsetX = (256 --nW) >> 1 + angleIdx <12? (DistanceIdx * nW) >> 3:-((distanceIdx * nW) >> 3)
offsetY = (256 --nH) >> 1
GEO prediction unit 30377 derives sampleWeight according to the following steps.

GEO予測部30377は、図24に示すDisを用いて、以下のように、weightIdxおよびweightIdxAbsを算出する。 The GEO prediction unit 30377 calculates weightIdx and weightIdxAbs using Dis shown in FIG. 24 as follows.

weightIdx = (((x * subW + offsetX) << 1) + 1) * Dis[displacementX] + (((y * subH + offsetY) << 1) + 1)) * Dis[displacementY] - rho
weightIdxAbs = Clip3(0, 26, abs(weightIdx))
GEO予測部30377は、図25に示すテーブルに従って、以下のように、sampleWeightの値を導出する。
weightIdx = (((x * subW + offsetX) << 1) + 1) * Dis [displacementX] + (((y * subH + offsetY) << 1) + 1)) * Dis [displacementY] --rho
weightIdxAbs = Clip3 (0, 26, abs (weightIdx))
The GEO prediction unit 30377 derives the value of sampleWeight according to the table shown in FIG. 25 as follows.

sampleWeight = weightIdx <= 0 ? WedgeFilter[weightIdxAbs] : 8 - WedgeFilter[weightIdxAbs]
ここで、図25に示すテーブルは、idxとWedgeFilter[idx]との対応を示すテーブルである。
sampleWeight = weightIdx <= 0? WedgeFilter [weightIdxAbs]: 8 --WedgeFilter [weightIdxAbs]
Here, the table shown in FIG. 25 is a table showing the correspondence between idx and WedgeFilter [idx].

(GEO予測における動きベクトル格納処理)
GEO予測部30377は、後続の処理で参照できるように、以下の手順で、非矩形領域AおよびBの動きベクトルを4*4サブブロック単位でメモリに格納する。
(Motion vector storage processing in GEO prediction)
The GEO prediction unit 30377 stores the motion vectors of the non-rectangular areas A and B in the memory in units of 4 * 4 subblocks in the following procedure so that it can be referred to in the subsequent processing.

以下では、第1の例および第2の例に共通する処理を説明する。 Hereinafter, the processing common to the first example and the second example will be described.

numSbXおよびnumSbYはそれぞれ、対象ブロックの水平および垂直方向の4*4サブブロックの個数であり、GEO予測部30377は、numSbX = cbWidth >> 2、numSbY = cbHeight >> 2に設定する。GEO予測部30377は、displacementXをangleIdxに設定し、displacementYを(displacementX + 6)%24に設定し、hwRatioをnCbH/nCbWに設定する。 numSbX and numSbY are the number of 4 * 4 subblocks in the horizontal and vertical directions of the target block, respectively, and the GEO predictor 30377 sets numSbX = cbWidth >> 2 and numSbY = cbHeight >> 2. GEO prediction unit 30377 sets displacementX to angleIdx, displacementY to (displacementX + 6)% 24, and hwRatio to nCbH / nCbW.

以下の条件のうちの少なくとも1つが満たされる場合には、GEO予測部30377は、shiftHorを0に設定し、そうでない場合には、GEO予測部30377は、shiftHorを1に設定する。
・angleIdx%12が8である
・angleIdx%12が0でなく、かつ、hwRatio>=1である
GEO予測部30377は、partIdxを、(angleIdx >= 10 && angleIdx <= 20) ? 1 : 0に設定する。
If at least one of the following conditions is met, the GEO prediction unit 30377 sets shiftHor to 0, otherwise the GEO prediction unit 30377 sets shiftHor to 1.
AngleIdx% 12 is 8 ・ angleIdx% 12 is not 0 and hwRatio> = 1.
The GEO prediction unit 30377 sets partIdx to (angleIdx> = 10 && angleIdx <= 20)? 1: 0.

shiftHorが0である場合、GEO予測部30377は、以下のように、offsetXおよびoffsetYを導出する。 When shiftHor is 0, GEO prediction unit 30377 derives offsetX and offsetY as follows.

offsetX = (64 - numSbX) >> 1
offsetY = (64 - numSbY) >> 1 + (angleIdx < 12) ? (distanceIdx * nCbH) >> 5 : -((distanceIdx * nCbH) >> 5)
shiftHorが1である場合、GEO予測部30377は、以下のように、offsetXおよびoffsetYを導出する。
offsetX = (64 --numSbX) >> 1
offsetY = (64 --numSbY) >> 1 + (angleIdx <12)? (DistanceIdx * nCbH) >> 5:-((distanceIdx * nCbH) >> 5)
When shiftHor is 1, GEO prediction unit 30377 derives offsetX and offsetY as follows.

offsetX = (64 - numSbX) >> 1 + (angleIdx < 12) ? (distanceIdx * nCbW) >> 5 : -((distanceIdx * nCbW) >> 5)
offsetY = (64 - numSbY) >> 1
GEO予測部30377は、以下の式と図24に示すDisとに従って、rhoの値を導出する。
offsetX = (64 --numSbX) >> 1 + (angleIdx <12)? (DistanceIdx * nCbW) >> 5:-((distanceIdx * nCbW) >> 5)
offsetY = (64 --numSbY) >> 1
The GEO prediction unit 30377 derives the value of rho according to the following equation and Dis shown in FIG. 24.

rho = (Dis[displacementX] << 8) + (Dis[displacementY] << 8)
GEO予測部30377は、図24に示すDisを用いて、motionOffsetを、3 * Dis[displacementX] + 3 * Dis[displacementY]に設定する。
rho = (Dis [displacementX] << 8) + (Dis [displacementY] << 8)
The GEO prediction unit 30377 sets the motionOffset to 3 * Dis [displacementX] + 3 * Dis [displacementY] using Dis shown in FIG. 24.

GEO予測部30377は、xSbIdx = 0..numSbX - 1、ySbIdx = 0..numSbY - 1である4*4サブブロックの位置(xSbIdx,ySbIdx)毎に、以下の処理を実行する。 The GEO prediction unit 30377 executes the following processing for each 4 * 4 subblock position (xSbIdx, ySbIdx) in which xSbIdx = 0..numSbX -1 and ySbIdx = 0..numSbY -1.

GEO予測部30377は、図24に示すDisを用いて、以下のように、motionIdxを算出する。 The GEO prediction unit 30377 calculates motionIdx as follows using Dis shown in FIG. 24.

motionIdx = (((xSbIdx + offsetX) <<3) + 1) * Dis[displacementX] + (((xSbIdx + offsetY << 3) + 1)) * Dis[displacementY] - rho + motionOffset
GEO予測部30377は、以下のように、sTypeを導出する。
motionIdx = (((xSbIdx + offsetX) << 3) + 1) * Dis [displacementX] + (((xSbIdx + offsetY << 3) + 1)) * Dis [displacementY] --rho + motionOffset
GEO prediction unit 30377 derives sType as follows.

sType = (abs(motionIdx) < 32) ? 2 : ((motionIdx <= 0) ? partIdx : 1 - partIdx)
sTypeが0である場合、GEO予測部30377は、以下を実施する。
sType = (abs (motionIdx) <32)? 2: ((motionIdx <= 0)? partIdx: 1 --partIdx)
If sType is 0, GEO Prediction Unit 30377 implements:

Aの予測リストフラグが0である(predListFlagA==0)場合、GEO予測部30377は、単方向予測としてL0にAの動きベクトルを格納する。Aの予測リストフラグが0でない(predListFlagA!=0)場合、GEO予測部30377は、単方向予測としてL1にAの動きベクトルを格納する。 When the prediction list flag of A is 0 (predListFlagA == 0), the GEO prediction unit 30377 stores the motion vector of A in L0 as a unidirectional prediction. If the prediction list flag of A is not 0 (predListFlagA! = 0), the GEO prediction unit 30377 stores the motion vector of A in L1 as a unidirectional prediction.

predFlagL0 = (predListFlagA == 0) ? 1 : 0
predFlagL1 = (predListFlagA == 0) ? 0 : 1
refIdxL0 = (predListFlagA == 0) ? refIdxA : -1
refIdxL1 = (predListFlagA == 0) ? -1 : refIdxA
mvL0[0] = (predListFlagA == 0) ? mvA[0] : 0
mvL0[1] = (predListFlagA == 0) ? mvA[1] : 0
mvL1[0] = (predListFlagA == 0) ? 0 : mvA[0]
mvL1[1] = (predListFlagA == 0) ? 0 : mvA[1]
そうではなく、sTypeが1である、または、sTypeが2でありかつpredListFlagA+predListFlagBが1でない場合、GEO予測部30377は、以下を実施する。ここで、predListFlagA+predListFlagBが1でないことは、AおよびBの参照ピクチャリストが同じであることを表す。
predFlagL0 = (predListFlagA == 0)? 1: 0
predFlagL1 = (predListFlagA == 0)? 0: 1
refIdxL0 = (predListFlagA == 0)? refIdxA: -1
refIdxL1 = (predListFlagA == 0)? -1: refIdxA
mvL0 [0] = (predListFlagA == 0)? mvA [0]: 0
mvL0 [1] = (predListFlagA == 0)? mvA [1]: 0
mvL1 [0] = (predListFlagA == 0)? 0: mvA [0]
mvL1 [1] = (predListFlagA == 0)? 0: mvA [1]
Otherwise, if sType is 1, or sType is 2 and predListFlagA + predListFlagB is not 1, GEO Predictor 30377 will: Here, the fact that predListFlagA + predListFlagB is not 1 means that the reference picture lists of A and B are the same.

Bの予測リストフラグが0である(predListFlagB==0)場合、GEO予測部30377は、単方向予測としてL0にBの動きベクトルを格納する。Bの予測リストフラグが0でない(predListFlagB!=0)場合、GEO予測部30377は、単方向予測としてL1にBの動きベクトルを格納する。 When the prediction list flag of B is 0 (predListFlagB == 0), the GEO prediction unit 30377 stores the motion vector of B in L0 as a unidirectional prediction. If the prediction list flag of B is not 0 (predListFlagB! = 0), the GEO prediction unit 30377 stores the motion vector of B in L1 as a unidirectional prediction.

predFlagL0 = (predListFlagB == 0) ? 1 : 0
predFlagL1 = (predListFlagB == 0) ? 0 : 1
refIdxL0 = (predListFlagB == 0) ? refIdxB : -1
refIdxL1 = (predListFlagB == 0) ? -1 : refIdxB
mvL0[0] = (predListFlagB == 0) ? mvB[0] : 0
mvL0[1] = (predListFlagB == 0) ? mvB[1] : 0
mvL1[0] = (predListFlagB == 0) ? 0 : mvB[0]
mvL1[1] = (predListFlagB == 0) ? 0 : mvB[1]
そうでない場合(sTypeが2でありかつpredListFlagA+predListFlagBが1である場合)、GEO予測部30377は、以下を実施する。ここで、predListFlagA+predListFlagBが1であることは、AおよびBの参照ピクチャリストが異なることを表す。
predFlagL0 = (predListFlagB == 0)? 1: 0
predFlagL1 = (predListFlagB == 0)? 0: 1
refIdxL0 = (predListFlagB == 0)? refIdxB: -1
refIdxL1 = (predListFlagB == 0)? -1: refIdxB
mvL0 [0] = (predListFlagB == 0)? mvB [0]: 0
mvL0 [1] = (predListFlagB == 0)? mvB [1]: 0
mvL1 [0] = (predListFlagB == 0)? 0: mvB [0]
mvL1 [1] = (predListFlagB == 0)? 0: mvB [1]
If not (when sType is 2 and predListFlagA + predListFlagB is 1), GEO Prediction Unit 30377 implements: Here, when predListFlagA + predListFlagB is 1, it means that the reference picture lists of A and B are different.

Aの予測リストフラグが0である(predListFlagA==0)の場合、GEO予測部30377は、L0にAの動きベクトルを格納し、L1にBの動きベクトルを格納した双方向予測に設定する。Aの予測リストフラグが0でない(predListFlagA!=0)場合、GEO予測部30377は、L0にBの動きベクトルを格納し、L1にAの動きベクトルを格納した双方向予測に設定する。 When the prediction list flag of A is 0 (predListFlagA == 0), the GEO prediction unit 30377 sets the motion vector of A in L0 and the motion vector of B in L1 for bidirectional prediction. If the prediction list flag of A is not 0 (predListFlagA! = 0), the GEO prediction unit 30377 sets the motion vector of B in L0 and the motion vector of A in L1 for bidirectional prediction.

predFlagL0 = 1
predFlagL1 = 1
refIdxL0 = (predListFlagA == 0) ? refIdxA : refIdxB
refIdxL1 = (predListFlagA == 0) ? refIdxB : refIdxA
mvL0[0] = (predListFlagA == 0) ? mvA[0] : mvB[0]
mvL0[1] = (predListFlagA == 0) ? mvA[1] : mvB[1]
mvL1[0] = (predListFlagA == 0) ? mvB[0] : mvA[0]
mvL1[1] = (predListFlagA == 0) ? mvB[1] : mvA[1]
(GEO予測の処理の流れ)
図26は、第1の例におけるGEO予測の処理の流れを示すフローチャートである。以下では、上記のようにWedgeMergeMode=1(GEO予測オン)に設定される条件がすべて満たされるという前提で、GEO予測の処理の流れを説明する。
predFlagL0 = 1
predFlagL1 = 1
refIdxL0 = (predListFlagA == 0)? refIdxA: refIdxB
refIdxL1 = (predListFlagA == 0)? refIdxB: refIdxA
mvL0 [0] = (predListFlagA == 0)? mvA [0]: mvB [0]
mvL0 [1] = (predListFlagA == 0)? mvA [1]: mvB [1]
mvL1 [0] = (predListFlagA == 0)? mvB [0]: mvA [0]
mvL1 [1] = (predListFlagA == 0)? mvB [1]: mvA [1]
(GEO forecast processing flow)
FIG. 26 is a flowchart showing the processing flow of GEO prediction in the first example. In the following, the flow of GEO prediction processing will be described on the assumption that all the conditions set to WedgeMergeMode = 1 (GEO prediction on) are satisfied as described above.

S2601において、パラメータ復号部302は、例えば図8に示すように、SPS、PPS、スライスヘッダ、マージデータ等で通知された各種のシンタックス要素を適宜復号し、これらのシンタックス要素をインター予測パラメータ導出部303(マージ予測パラメータ導出部3036、GEO予測部30377等)に出力する。 In S2601, the parameter decoding unit 302 appropriately decodes various syntax elements notified by SPS, PPS, slice header, merge data, etc., and converts these syntax elements into inter-prediction parameters, as shown in FIG. 8, for example. Output to the derivation unit 303 (merge prediction parameter derivation unit 3036, GEO prediction unit 30377, etc.).

S2602において、GEO予測部30377は、sps_triangle_enabled_flagが1であるか否かを判定する。 In S2602, the GEO prediction unit 30377 determines whether or not sps_triangle_enabled_flag is 1.

S2602において、sps_triangle_enabled_flagが1でない場合、S2610において、GEO予測部30377は、GEO予測をオフにして、処理を終了する。 In S2602, if sps_triangle_enabled_flag is not 1, in S2610, the GEO prediction unit 30377 turns off GEO prediction and ends the process.

S2602において、sps_triangle_enabled_flagが1である場合、S2603において、GEO予測部30377は、sps_triangle_extend_enabled_flagが0であるか否かを判定する。 In S2602, when sps_triangle_enabled_flag is 1, in S2603, the GEO prediction unit 30377 determines whether or not sps_triangle_extend_enabled_flag is 0.

S2603において、sps_triangle_extend_enabled_flagが0である場合、GEO予測部30377は、S2604〜S2606において、2つの三角形予測単位に対して、Triangle予測の予測処理を実施する。 In S2603, when sps_triangle_extend_enabled_flag is 0, the GEO prediction unit 30377 executes the prediction processing of Triangle prediction for two triangle prediction units in S2604 to S2606.

S2604において、GEO予測部30377は、上記の(GEO予測における動き情報導出処理)に記載された方法で、動き情報を導出する。 In S2604, the GEO prediction unit 30377 derives motion information by the method described in the above (motion information derivation process in GEO prediction).

S2605において、GEO予測部30377は、上記の(GEO予測における重み係数導出処理)に記載された方法で、重み係数を導出する。 In S2605, the GEO prediction unit 30377 derives the weight coefficient by the method described in the above (weight coefficient derivation process in GEO prediction).

S2603において、sps_triangle_extend_enabled_flagが0でない場合、GEO予測部30377は、S2607〜S2609において、2つの三角形予測単位ではない2つの非矩形予測単位に対して、GEO予測の予測処理を実施する。 In S2603, when sps_triangle_extend_enabled_flag is not 0, the GEO prediction unit 30377 performs GEO prediction prediction processing on two non-rectangular prediction units other than the two triangle prediction units in S2607 to S2609.

S2607において、GEO予測部30377は、上記の(GEO予測における動き情報導出処理)に記載された方法で、動き情報を導出する。 In S2607, the GEO prediction unit 30377 derives motion information by the method described in the above (motion information derivation process in GEO prediction).

S2608において、GEO予測部30377は、上記の(GEO予測における重み係数導出処理)に記載された方法で、重み係数を導出する。 In S2608, the GEO prediction unit 30377 derives the weight coefficient by the method described in the above (weight coefficient derivation process in GEO prediction).

より具体的には、GEO予測部30377は、図22に示すGEO予測用テーブルを用いて、wedge_partition_idxを参照してangleIdxおよびdistanceIdxを導出する。さらに、GEO予測部30377は、angleIdxおよびdistanceIdx等に基づいて、重み係数を導出する。 More specifically, the GEO prediction unit 30377 uses the GEO prediction table shown in FIG. 22 to derive angleIdx and distanceIdx with reference to wedge_partition_idx. Further, the GEO prediction unit 30377 derives a weighting coefficient based on angleIdx, distanceIdx, and the like.

S2609において、GEO予測部30377は、上記の(GEO予測における動きベクトル格納処理)に記載された方法で、動きベクトルをメモリに格納する。 In S2609, the GEO prediction unit 30377 stores the motion vector in the memory by the method described in the above (motion vector storage process in GEO prediction).

図27は、第2の例におけるGEO予測の処理の流れを示すフローチャートである。以下では、上記のようにWedgeMergeMode=1(GEO予測オン)に設定される条件がすべて満たされるという前提で、GEO予測の処理の流れを説明する。 FIG. 27 is a flowchart showing the processing flow of GEO prediction in the second example. In the following, the flow of GEO prediction processing will be described on the assumption that all the conditions set to WedgeMergeMode = 1 (GEO prediction on) are satisfied as described above.

S2701において、パラメータ復号部302は、例えば図8に示すように、SPS、PPS、スライスヘッダ、マージデータ等で通知された各種のシンタックス要素を適宜復号し、これらのシンタックス要素をインター予測パラメータ導出部303(マージ予測パラメータ導出部3036、GEO予測部30377等)に出力する。 In S2701, the parameter decoding unit 302 appropriately decodes various syntax elements notified by SPS, PPS, slice header, merge data, etc., and converts these syntax elements into inter-prediction parameters, as shown in FIG. 8, for example. Output to the derivation unit 303 (merge prediction parameter derivation unit 3036, GEO prediction unit 30377, etc.).

S2702において、GEO予測部30377は、sps_wedge_enabled_flagが1であるか否かを判定する。 In S2702, the GEO prediction unit 30377 determines whether or not sps_wedge_enabled_flag is 1.

S2702において、sps_wedge_enabled_flagが1でない場合、S2710において、GEO予測部30377は、GEO予測をオフにして、処理が終了する。 In S2702, if sps_wedge_enabled_flag is not 1, in S2710, the GEO prediction unit 30377 turns off GEO prediction and the process ends.

S2702において、sps_wedge_enabled_flagが1である場合、S2703において、GEO予測部30377は、sps_wedge_constraint_flagが1であるか否かを判定する。 In S2702, when sps_wedge_enabled_flag is 1, in S2703, the GEO prediction unit 30377 determines whether or not sps_wedge_constraint_flag is 1.

S2703において、sps_wedge_constraint_flagが1である場合、GEO予測部30377は、S2704〜S2706において、GEOの一部の分割パターンのみを用いて、予測処理を実施する。ここでは、GEOの分割パターン内、対象ブロックの中心を通過する直線で分割される2つの三角形予測単位に対して、Triangle予測の予測処理を実施する。 In S2703, when sps_wedge_constraint_flag is 1, GEO prediction unit 30377 performs prediction processing in S2704 to S2706 using only a part of GEO division patterns. Here, the prediction process of Triangle prediction is performed on two triangle prediction units divided by a straight line passing through the center of the target block in the GEO division pattern.

S2704において、GEO予測部30377は、上記の(GEO予測における動き情報導出処理)に記載された方法で、動き情報を導出する。 In S2704, the GEO prediction unit 30377 derives motion information by the method described in the above (motion information derivation process in GEO prediction).

S2705において、GEO予測部30377は、上記の(GEO予測における重み係数導出処理)に記載された方法で、重み係数を導出する。 In S2705, the GEO prediction unit 30377 derives the weight coefficient by the method described in the above (weight coefficient derivation process in GEO prediction).

より具体的には、GEO予測部30377は、以下のように、wedge_partition_idx(0または1)から、wedge_partition_idxを導出する。 More specifically, the GEO prediction unit 30377 derives wedge_partition_idx from wedge_partition_idx (0 or 1) as follows.

wedge_partition_idx = (wedge_partition_idx == 0) ? 11 : 34
さらに、GEO予測部30377は、図22に示すGEO予測用テーブルを用いて、導出されたwedge_partition_idxを参照してangleIdxおよびdistanceIdxを導出する。ここで、代替的に、GEO予測部30377は、図23に示すTriangle予測用テーブルを用いて、wedge_partition_idx(0または1)を参照してangleIdxおよびdistanceIdxを導出しても良い。さらに、GEO予測部30377は、angleIdxおよびdistanceIdx等に基づいて、重み係数を導出する。
wedge_partition_idx = (wedge_partition_idx == 0)? 11:34
Further, the GEO prediction unit 30377 derives angleIdx and distanceIdx by referring to the derived wedge_partition_idx using the GEO prediction table shown in FIG. 22. Here, instead, GEO prediction unit 30377 may derive angleIdx and distanceIdx by referring to wedge_partition_idx (0 or 1) using the Triangle prediction table shown in FIG. 23. Further, the GEO prediction unit 30377 derives a weighting coefficient based on angleIdx, distanceIdx, and the like.

S2706において、GEO予測部30377は、上記の(GEO予測における動きベクトル格納処理)に記載された方法で、動きベクトルをメモリに格納する。 In S2706, the GEO prediction unit 30377 stores the motion vector in the memory by the method described in the above (motion vector storage process in GEO prediction).

S2703において、sps_wedge_constraint_flagが1でない場合、GEO予測部30377は、2つの三角形予測単位ではない2つの非矩形予測単位に対して、S2707〜S2709において、GEO予測の予測処理を実施する。 In S2703, when sps_wedge_constraint_flag is not 1, GEO prediction unit 30377 executes GEO prediction prediction processing in S2707 to S2709 for two non-rectangular prediction units that are not two triangle prediction units.

S2707において、GEO予測部30377は、上記の(GEO予測における動き情報導出処理)に記載された方法で、動き情報を導出する。 In S2707, the GEO prediction unit 30377 derives motion information by the method described in the above (motion information derivation process in GEO prediction).

S2708において、GEO予測部30377は、上記の(GEO予測における重み係数導出処理)に記載された方法で、重み係数を導出する。 In S2708, the GEO prediction unit 30377 derives the weight coefficient by the method described in the above (weight coefficient derivation process in GEO prediction).

より具体的には、GEO予測部30377は、図22に示すGEO予測用テーブルを用いて、wedge_partition_idxを参照してangleIdxおよびdistanceIdxを導出する。さらに、GEO予測部30377は、angleIdxおよびdistanceIdx等に基づいて、重み係数を導出する。 More specifically, the GEO prediction unit 30377 uses the GEO prediction table shown in FIG. 22 to derive angleIdx and distanceIdx with reference to wedge_partition_idx. Further, the GEO prediction unit 30377 derives a weighting coefficient based on angleIdx, distanceIdx, and the like.

S2709において、GEO予測部30377は、上記の(GEO予測における動きベクトル格納処理)に記載された方法で、動きベクトルをメモリに格納する。 In S2709, the GEO prediction unit 30377 stores the motion vector in the memory by the method described in the above (motion vector storage process in GEO prediction).

(DMVR)
続いて、DMVR部30375が行うDMVR(Decoder side Motion Vector Refinement)処理について説明する。DMVR部30375は、対象CUに対して、merge_flagが1の場合、又は、スキップフラグskip_flagが1の場合、マージ予測部30374が導出する当該対象CUのmvLXを、参照画像を用いて修正する。具体的には、マージ予測部30374が導出する予測パラメータが双予測である場合において、2つの参照ピクチャに対応すると動きベクトルから導出される予測画像を用いて、動きベクトルを修正する。修正後のmvLXはインター予測画像生成部309に供給される。
(DMVR)
Next, the DMVR (Decoder side Motion Vector Refinement) process performed by the DMVR unit 30375 will be described. When the merge_flag is 1 or the skip flag skip_flag is 1 for the target CU, the DMVR unit 30375 corrects the mvLX of the target CU derived by the merge prediction unit 30374 by using the reference image. Specifically, when the prediction parameter derived by the merge prediction unit 30374 is bi-prediction, the motion vector is corrected by using the prediction image derived from the motion vector corresponding to the two reference pictures. The modified mvLX is supplied to the inter-prediction image generation unit 309.

(AMVP予測)
図10(b)は、本実施形態に係るAMVP予測パラメータ導出部3032の構成を示す概略図である。AMVP予測パラメータ導出部3032は、ベクトル候補導出部3033とベクトル候補選択部3034を備える。ベクトル候補導出部3033は、refIdxLXに基づいて予測パラメータメモリ307が記憶する復号済みの隣接ブロックの動きベクトルから予測ベクトル候補を導出し、予測ベクトル候補リストmvpListLX[]に格納する。
(AMVP forecast)
FIG. 10B is a schematic diagram showing the configuration of the AMVP prediction parameter derivation unit 3032 according to the present embodiment. The AMVP prediction parameter derivation unit 3032 includes a vector candidate derivation unit 3033 and a vector candidate selection unit 3034. The vector candidate derivation unit 3033 derives the prediction vector candidate from the motion vector of the decoded adjacent block stored in the prediction parameter memory 307 based on refIdxLX, and stores it in the prediction vector candidate list mvpListLX [].

ベクトル候補選択部3034は、mvpListLX[]の予測ベクトル候補のうち、mvp_LX_idxが示す動きベクトルmvpListLX[mvp_LX_idx]をmvpLXとして選択する。ベクトル候補選択部3034は選択したmvpLXをMV加算部3038に出力する。 The vector candidate selection unit 3034 selects the motion vector mvpListLX [mvp_LX_idx] indicated by mvp_LX_idx from the prediction vector candidates of mvpListLX [] as mvpLX. The vector candidate selection unit 3034 outputs the selected mvpLX to the MV addition unit 3038.

(MV加算部)
MV加算部3038は、AMVP予測パラメータ導出部3032から入力されたmvpLXと復号したmvdLXを加算してmvLXを算出する。加算部3038は、算出したmvLXをインター予測画像生成部309および予測パラメータメモリ307に出力する。
(MV addition part)
The MV addition unit 3038 calculates mvLX by adding the mvpLX input from the AMVP prediction parameter derivation unit 3032 and the decoded mvdLX. The addition unit 3038 outputs the calculated mvLX to the inter-prediction image generation unit 309 and the prediction parameter memory 307.

mvLX[0] = mvpLX[0]+mvdLX[0]
mvLX[1] = mvpLX[1]+mvdLX[1]
(動きベクトルの精度)
amvr_modeは、AMVPモードで導出される動きベクトルの精度を切り替えるシンタックス要素である、例えば、amvr_mode=0, 1, 2において、1/4画素、1画素、4画素精度を切り替える。amvr_modeの代わりに、1/4であるかのフラグamvr_flagと、1/16と1を切り替えるフラグamvr_precision_flagを用いても良い。
mvLX [0] = mvpLX [0] + mvdLX [0]
mvLX [1] = mvpLX [1] + mvdLX [1]
(Accuracy of motion vector)
amvr_mode is a syntax element that switches the accuracy of the motion vector derived in AMVP mode. For example, in amvr_mode = 0, 1, 2, it switches the accuracy of 1/4 pixel, 1 pixel, and 4 pixels. Instead of amvr_mode, the 1/4 flag amvr_flag and the 1/16 / 1 switching flag amvr_precision_flag may be used.

動きベクトルの精度を1/16精度とする場合、1/4, 1, 4画素精度の動きベクトル差分を1/16画素精度の動きベクトル差分に変更するために下記のように、amvr_modeから導出されるMvShift (=1<<amvr_mode =(amvr_flag+amvr_precision_flag)<<1)を用いて逆量子化してもよい。 When the motion vector accuracy is 1/16 accuracy, it is derived from amvr_mode as shown below to change the motion vector difference with 1/4, 1, 4 pixel accuracy to the motion vector difference with 1/16 pixel accuracy. MvShift (= 1 << amvr_mode = (amvr_flag + amvr_precision_flag) << 1) may be used for inverse quantization.

MvdLX[0] = MvdLX[0] << (MvShift + 2)
MvdLX[1] = MvdLX[1] << (MvShift + 2)
同様に、affine_flagが1の場合には、以下の式で導出される。
MvdLX [0] = MvdLX [0] << (MvShift + 2)
MvdLX [1] = MvdLX [1] << (MvShift + 2)
Similarly, when affine_flag is 1, it is derived by the following formula.

MvShift = amvr_precision_flag ? (amvr_precision_flag<<1):(-(amvr_flag<<1)))
MvdCpLX[cpIdx][0] = MvdLX[cpIdx][0] << (MvShift + 2)
MvdCpLX[cpIdx][1] = MvdLX[cpIdx][1] << (MvShift + 2)
なお、さらにパラメータ復号部302は、上記MvShiftでシフトする前のmvdLX[]を、以下のシンタックス要素を復号して導出してもよい。
・abs_mvd_greater0_flag
・abs_mvd_minus2
・mvd_sign_flag
そして、パラメータ復号部302は、以下の式を用いることによって、シンタックス要素から差分ベクトルlMvd[]を復号する。
MvShift = amvr_precision_flag? (amvr_precision_flag << 1) :(-(amvr_flag << 1)))
MvdCpLX [cpIdx] [0] = MvdLX [cpIdx] [0] << (MvShift + 2)
MvdCpLX [cpIdx] [1] = MvdLX [cpIdx] [1] << (MvShift + 2)
Further, the parameter decoding unit 302 may derive the mvdLX [] before shifting by the above MvShift by decoding the following syntax elements.
・ Abs_mvd_greater0_flag
・ Abs_mvd_minus2
・ Mvd_sign_flag
Then, the parameter decoding unit 302 decodes the difference vector lMvd [] from the syntax element by using the following equation.

lMvd[compIdx] = abs_mvd_greater0_flag[compIdx] * (abs_mvd_minus2[compIdx]+2) * (1-2*mvd_sign_flag[compIdx])
さらにlMvd[]は、並進MVDの場合(MotionModelIdc==0)にはMvdLXに設定され、制御点MVDの場合(MotionModelIdc!=0)には、MvdCpLXに設定される。
lMvd [compIdx] = abs_mvd_greater0_flag [compIdx] * (abs_mvd_minus2 [compIdx] +2) * (1-2 * mvd_sign_flag [compIdx])
Furthermore, lMvd [] is set to MvdLX in the case of translational MVD (MotionModelIdc == 0) and to MvdCpLX in the case of control point MVD (MotionModelIdc! = 0).

if (MotionModelIdc == 0)
MvdLX[compIdx] = lMvd[compIdx]
else
MvdCpLX[cpIdx][compIdx] = lMvd[cpIdx][compIdx]
ここでcompIdx = 0, 1、cpIdx = 0, 1, 2である。
if (MotionModelIdc == 0)
MvdLX [compIdx] = lMvd [compIdx]
else else
MvdCpLX [cpIdx] [compIdx] = lMvd [cpIdx] [compIdx]
Where compIdx = 0, 1, cpIdx = 0, 1, 2.

(イントラ予測パラメータ導出部の構成)
イントラ予測パラメータ導出部は、パラメータ復号部302からの入力に基づいて、予測パラメータメモリ307に記憶された予測パラメータを参照してイントラ予測パラメータ、例えば、イントラ予測モードIntraPredModeを導出する。イントラ予測パラメータ導出部は、イントラ予測パラメータを予測画像生成部308に出力し、また予測パラメータメモリ307に記憶する。イントラ予測パラメータ導出部は、輝度と色差で異なるイントラ予測モードを導出しても良い。
(Structure of intra prediction parameter derivation section)
The intra prediction parameter derivation unit derives an intra prediction parameter, for example, an intrapred mode, based on the input from the parameter decoding unit 302, with reference to the prediction parameter stored in the prediction parameter memory 307. The intra prediction parameter derivation unit outputs the intra prediction parameter to the prediction image generation unit 308 and stores it in the prediction parameter memory 307. The intra prediction parameter derivation unit may derive an intra prediction mode that differs depending on the brightness and the color difference.

ループフィルタ305は、符号化ループ内に設けたフィルタで、ブロック歪やリンギング歪を除去し、画質を改善するフィルタである。ループフィルタ305は、加算部312が生成したCUの復号画像に対し、デブロッキングフィルタ、サンプル適応オフセット(SAO)、適応ループフィルタ(ALF)等のフィルタを施す。 The loop filter 305 is a filter provided in the coding loop, which removes block distortion and ringing distortion to improve image quality. The loop filter 305 applies filters such as a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter (ALF) to the decoded image of the CU generated by the addition unit 312.

参照ピクチャメモリ306は、CUの復号画像を、対象ピクチャ及び対象CU毎に予め定めた位置に記憶する。 The reference picture memory 306 stores the decoded image of the CU at a predetermined position for each target picture and the target CU.

予測パラメータメモリ307は、CTUあるいはCU毎に予め定めた位置に予測パラメータを記憶する。具体的には、予測パラメータメモリ307は、パラメータ復号部302が復号したパラメータ及び予測パラメータ導出部320が導出したパラメータ等を記憶する。 The prediction parameter memory 307 stores the prediction parameters at a predetermined position for each CTU or CU. Specifically, the prediction parameter memory 307 stores the parameters decoded by the parameter decoding unit 302, the parameters derived by the prediction parameter derivation unit 320, and the like.

予測画像生成部308には予測パラメータ導出部320が導出したパラメータが入力される。また、予測画像生成部308は、参照ピクチャメモリ306から参照ピクチャを読み出す。予測画像生成部308は、predModeが示す予測モードで、パラメータと参照ピクチャ(参照ピクチャブロック)を用いてブロックもしくはサブブロックの予測画像を生成する。ここで、参照ピクチャブロックとは、参照ピクチャ上の画素の集合(通常矩形であるのでブロックと呼ぶ)であり、予測画像を生成するために参照する領域である。 The parameters derived by the prediction parameter derivation unit 320 are input to the prediction image generation unit 308. Further, the prediction image generation unit 308 reads the reference picture from the reference picture memory 306. The prediction image generation unit 308 generates a prediction image of a block or a subblock by using a parameter and a reference picture (reference picture block) in the prediction mode indicated by predMode. Here, the reference picture block is a set of pixels on the reference picture (usually called a block because it is rectangular), and is an area to be referred to for generating a predicted image.

(インター予測画像生成部309)
predModeがインター予測モードを示す場合、インター予測画像生成部309は、インター予測パラメータ導出部303から入力されたインター予測パラメータと参照ピクチャを用いてインター予測によりブロックもしくはサブブロックの予測画像を生成する。
(Inter-prediction image generation unit 309)
When the predMode indicates the inter-prediction mode, the inter-prediction image generation unit 309 generates a block or sub-block prediction image by inter-prediction using the inter-prediction parameter and the reference picture input from the inter-prediction parameter derivation unit 303.

図11は、本実施形態に係る予測画像生成部308に含まれるインター予測画像生成部309の構成を示す概略図である。インター予測画像生成部309は、動き補償部(予測画像生成装置)3091、合成部3095を含んで構成される。合成部3095は、IntraInter合成部30951、GEO合成部30952、BIO部30954、重み予測部3094を含んで構成される。 FIG. 11 is a schematic view showing the configuration of the inter-prediction image generation unit 309 included in the prediction image generation unit 308 according to the present embodiment. The inter-prediction image generation unit 309 includes a motion compensation unit (prediction image generation device) 3091 and a composition unit 3095. The synthesis unit 3095 includes an IntraInter synthesis unit 30951, a GEO synthesis unit 30952, a BIO unit 30954, and a weight prediction unit 3094.

(動き補償)
動き補償部3091(補間画像生成部3091)は、インター予測パラメータ導出部303から入力された、インター予測パラメータ(predFlagLX、refIdxLX、mvLX)に基づいて、参照ピクチャメモリ306から参照ブロックを読み出すことによって補間画像(動き補償画像)を生成する。参照ブロックは、refIdxLXで指定された参照ピクチャRefPicLX上で、対象ブロックの位置からmvLXシフトした位置のブロックである。ここで、mvLXが整数精度でない場合には、動き補償フィルタと呼ばれる小数位置の画素を生成するためのフィルタを施して、補間画像を生成する。
(Motion compensation)
The motion compensation unit 3091 (interpolated image generation unit 3091) interpolates by reading the reference block from the reference picture memory 306 based on the inter-prediction parameters (predFlagLX, refIdxLX, mvLX) input from the inter-prediction parameter derivation unit 303. Generate an image (motion compensation image). The reference block is a block at a position shifted by mvLX from the position of the target block on the reference picture RefPicLX specified by refIdxLX. Here, when mvLX is not integer precision, an interpolated image is generated by applying a filter called a motion compensation filter for generating pixels at decimal positions.

動き補償部3091は、まず、予測ブロック内座標(x,y)に対応する整数位置(xInt,yInt)および位相(xFrac,yFrac)を以下の式で導出する。 First, the motion compensation unit 3091 derives the integer position (xInt, yInt) and the phase (xFrac, yFrac) corresponding to the coordinates (x, y) in the prediction block by the following equations.

xInt = xPb+(mvLX[0]>>(log2(MVPREC)))+x
xFrac = mvLX[0]&(MVPREC-1)
yInt = yPb+(mvLX[1]>>(log2(MVPREC)))+y
yFrac = mvLX[1]&(MVPREC-1)
ここで、(xPb,yPb)は、bW*bHサイズのブロックの左上座標、x=0…bW-1、y=0…bH-1であり、MVPRECは、mvLXの精度(1/MVPREC画素精度)を示す。例えばMVPREC=16である。
xInt = xPb + (mvLX [0] >> (log2 (MVPREC))) + x
xFrac = mvLX [0] & (MVPREC-1)
yInt = yPb + (mvLX [1] >> (log2 (MVPREC))) + y
yFrac = mvLX [1] & (MVPREC-1)
Here, (xPb, yPb) is the upper left coordinate of the bW * bH size block, x = 0… bW-1, y = 0… bH-1, and MVPREC is the accuracy of mvLX (1 / MVPREC pixel accuracy). ) Is shown. For example, MVPREC = 16.

動き補償部3091は、参照ピクチャrefImgに補間フィルタを用いて水平補間処理を行うことで、一時的画像temp[][]を導出する。以下のΣはk=0..NTAP-1のkに関する和、shift1は値のレンジを調整する正規化パラメータ、offset1=1<<(shift1-1)である。 The motion compensation unit 3091 derives a temporary image temp [] [] by performing horizontal interpolation processing on the reference picture refImg using an interpolation filter. The following Σ is the sum of k = 0..NTAP-1 with respect to k, shift1 is the normalization parameter that adjusts the range of values, offset1 = 1 << (shift1-1).

temp[x][y] = (ΣmcFilter[xFrac][k]*refImg[xInt+k-NTAP/2+1][yInt]+offset1)>>shift1
続いて、動き補償部3091は、一時的画像temp[][]を垂直補間処理により、補間画像Pred[][]を導出する。以下のΣはk=0..NTAP-1のkに関する和、shift2は値のレンジを調整する正規化パラメータ、offset2=1<<(shift2-1)である。
temp [x] [y] = (ΣmcFilter [xFrac] [k] * refImg [xInt + k-NTAP / 2 + 1] [yInt] + offset1) >> shift1
Subsequently, the motion compensation unit 3091 derives the interpolated image Pred [] [] by vertically interpolating the temporary image temp [] []. The following Σ is the sum of k = 0..NTAP-1 with respect to k, shift2 is the normalization parameter that adjusts the range of values, offset2 = 1 << (shift2-1).

Pred[x][y] = (ΣmcFilter[yFrac][k]*temp[x][y+k-NTAP/2+1]+offset2)>>shift2 なお、双予測の場合、上記のPred[][]をL0リスト、L1リスト毎に導出し(補間画像PredL0[][]とPredL1[][]と呼ぶ)、PredL0[][]とPredL1[][]から補間画像Pred[][]を生成する。 Pred [x] [y] = (ΣmcFilter [yFrac] [k] * temp [x] [y + k-NTAP / 2 + 1] + offset2) >> shift2 In the case of double prediction, the above Pred [] [] Is derived for each L0 list and L1 list (called interpolated images PredL0 [] [] and PredL1 [] []), and the interpolated images Pred [] [] are derived from PredL0 [] [] and PredL1 [] []. Generate.

合成部3095は、IntraInter合成部30951、GEO合成部30952、重み予測部3094、BIO部30954を備えている。 The synthesis unit 3095 includes an IntraInter synthesis unit 30951, a GEO synthesis unit 30952, a weight prediction unit 3094, and a BIO unit 30954.

(IntraInter合成処理)
IntraInter合成部30951は、インター予測画像とイントラ予測画像の重み付け和により予測画像を生成する。
(IntraInter synthesis processing)
The IntraInter compositing unit 30951 generates a predicted image by the weighted sum of the inter predicted image and the intra predicted image.

(GEO合成処理)
GEO合成部30952は、上述したGEO予測を用いた予測画像を生成する。
(GEO synthesis processing)
The GEO synthesis unit 30952 generates a prediction image using the above-mentioned GEO prediction.

WedgeMergeModeが1である場合、GEO合成部30952は予測画像predSamplesを生成する。 When WedgeMergeMode is 1, GEO synthesizer 30952 generates predicted image predSamples.

以下では、predSamplesはcbWidth*cbHeightサイズの予測ブロックである。predSamplesLAおよびpredSamplesLBは、動き補償部3091がAおよびBの動き情報を用いて生成した予測画像である。 Below, predSamples is a predictive block of cbWidth * cbHeight size. The predSamplesLA and predSamplesLB are prediction images generated by the motion compensation unit 3091 using the motion information of A and B.

GEO合成部30952は、(GEO予測における重み係数導出処理)においてsampleWeightを用いて重み予測処理を適用して、以下のように、predSamplesを生成する。 The GEO synthesis unit 30952 applies the weight prediction process using sampleWeight in (weight coefficient derivation process in GEO prediction) to generate predSamples as follows.

pbSamples[x][y] = Clip3(0, (1 << bitDepth) - 1, (predSamplesLPART1[x][y] * (8 - sampleWeight) + predSamplesLPART2[x][y] * sampleWeight + offset1) >> shift1)
ここで、PART1およびPART2の値はそれぞれ、angleIdxが10以上20以下である場合、AおよびBであり、そうでない場合、BおよびAであり、shift1 = Max(5, 17 - bitDepth)、offset1 = 1 << (shift1 - 1)である(「angleIdx」および「bitDepth」については「GEO予測における重み係数導出処理」を参照されたい)。
pbSamples [x] [y] = Clip3 (0, (1 << bitDepth) --1, (predSamplesLPART1 [x] [y] * (8 --sampleWeight) + predSamplesLPART2 [x] [y] * sampleWeight + offset1) >> shift1)
Here, the values of PART1 and PART2 are A and B if angleIdx is 10 or more and 20 or less, respectively, and B and A otherwise, shift1 = Max (5, 17 --bitDepth), offset1 = 1 << (shift1-1) (For "angleIdx" and "bitDepth", refer to "Weight coefficient derivation process in GEO prediction").

(BIO予測)
次に、BIO部30954が行うBIO予測(Bi-Directional Optical Flow, BDOF処理)の詳細について説明する。BIO部30954は、双予測モードにおいて、2つの予測画像(第1の予測画像及び第2の予測画像)及び勾配補正項を参照して予測画像を生成する。
(BIO prediction)
Next, the details of the BIO prediction (Bi-Directional Optical Flow, BDOF processing) performed by the BIO unit 30954 will be described. The BIO unit 30954 generates a prediction image by referring to the two prediction images (the first prediction image and the second prediction image) and the gradient correction term in the bi-prediction mode.

(重み予測)
重み予測部3094は、補間画像PredLXに重み係数を乗算することによりブロックの予測画像を生成する。予測リスト利用フラグの一方(predFlagL0もしくはpredFlagL1)が1(単予測)、かつ、重み予測を用いない場合、PredLX(LXはL0もしくはL1)を画素ビット数bitDepthに合わせる以下の式の処理を行う。
(Weight prediction)
The weight prediction unit 3094 generates a block prediction image by multiplying the interpolated image PredLX by a weighting coefficient. When one of the prediction list usage flags (predFlagL0 or predFlagL1) is 1 (single prediction) and weight prediction is not used, PredLX (LX is L0 or L1) is adjusted to the number of pixel bits bitDepth.

Pred[x][y] = Clip3(0,(1<<bitDepth)-1,(PredLX[x][y]+offset1)>>shift1)
ここで、shift1=14-bitDepth、offset1=1<<(shift1-1)である。
また、予測リスト利用フラグの両者(predFlagL0とpredFlagL1)が1(双予測PRED_BI)、かつ、重み予測を用いない場合、PredL0、PredL1を平均し画素ビット数に合わせる以下の式の処理を行う。
Pred [x] [y] = Clip3 (0, (1 << bitDepth) -1, (PredLX [x] [y] + offset1) >> shift1)
Here, shift1 = 14-bitDepth and offset1 = 1 << (shift1-1).
If both of the prediction list usage flags (predFlagL0 and predFlagL1) are 1 (bi-prediction PRED_BI) and weight prediction is not used, the following formula is performed to average PredL0 and PredL1 to match the number of pixel bits.

Pred[x][y] = Clip3(0,(1<<bitDepth)-1,(PredL0[x][y]+PredL1[x][y]+offset2)>>shift2)
ここで、shift2=15-bitDepth、offset2=1<<(shift2-1)である。
Pred [x] [y] = Clip3 (0, (1 << bitDepth) -1, (PredL0 [x] [y] + PredL1 [x] [y] + offset2) >> shift2)
Here, shift2 = 15-bitDepth, offset2 = 1 << (shift2-1).

さらに、単予測、かつ、重み予測を行う場合、重み予測部3094は重み予測係数w0とオフセットo0を符号化データから導出し、以下の式の処理を行う。 Further, in the case of simple prediction and weight prediction, the weight prediction unit 3094 derives the weight prediction coefficient w0 and the offset o0 from the coded data, and performs the processing of the following equation.

Pred[x][y] = Clip3(0,(1<<bitDepth)-1,((PredLX[x][y]*w0+2^(log2WD-1))>>log2WD)+o0)
ここで、log2WDは所定のシフト量を示す変数である。
Pred [x] [y] = Clip3 (0, (1 << bitDepth) -1, ((PredLX [x] [y] * w0 + 2 ^ (log2WD-1)) >> log2WD) + o0)
Here, log2WD is a variable indicating a predetermined shift amount.

さらに、双予測PRED_BI、かつ、重み予測を行う場合、重み予測部3094は重み予測係数w0、w1、o0、o1を符号化データから導出し、以下の式の処理を行う。 Further, when the bi-prediction PRED_BI and the weight prediction are performed, the weight prediction unit 3094 derives the weight prediction coefficients w0, w1, o0, and o1 from the coded data, and performs the processing of the following equation.

Pred[x][y] = Clip3(0,(1<<bitDepth)-1,(PredL0[x][y]*w0+PredL1[x][y]*w1+((o0+o1+1)<<log2WD))>>(log2WD+1))
インター予測画像生成部309は生成したブロックの予測画像を加算部312に出力する。
Pred [x] [y] = Clip3 (0, (1 << bitDepth) -1, (PredL0 [x] [y] * w0 + PredL1 [x] [y] * w1 + ((o0 + o1 + 1) <<log2WD))>> (log2WD + 1))
The inter-prediction image generation unit 309 outputs the prediction image of the generated block to the addition unit 312.

(イントラ予測画像生成部)
predModeがイントラ予測モードを示す場合、イントラ予測画像生成部は、イントラ予測パラメータ導出部から入力されたイントラ予測パラメータと参照ピクチャメモリ306から読み出した参照画素を用いてイントラ予測を行う。
(Intra prediction image generator)
When predMode indicates the intra prediction mode, the intra prediction image generation unit performs intra prediction using the intra prediction parameters input from the intra prediction parameter derivation unit and the reference pixels read from the reference picture memory 306.

逆量子化・逆変換部311は、パラメータ復号部302から入力された量子化変換係数を逆量子化して変換係数を求める。 The inverse quantization / inverse transformation unit 311 inversely quantizes the quantization conversion coefficient input from the parameter decoding unit 302 to obtain the conversion coefficient.

加算部312は、予測画像生成部308から入力されたブロックの予測画像と逆量子化・逆変換部311から入力された予測誤差を画素毎に加算して、ブロックの復号画像を生成する。加算部312はブロックの復号画像を参照ピクチャメモリ306に記憶し、また、ループフィルタ305に出力する。 The addition unit 312 adds the prediction image of the block input from the prediction image generation unit 308 and the prediction error input from the inverse quantization / inverse conversion unit 311 for each pixel to generate a decoded image of the block. The addition unit 312 stores the decoded image of the block in the reference picture memory 306, and outputs the decoded image to the loop filter 305.

(動画像符号化装置の構成)
次に、本実施形態に係る動画像符号化装置11の構成について説明する。図12は、本実施形態に係る動画像符号化装置11の構成を示すブロック図である。動画像符号化装置11は、予測画像生成部101、減算部102、変換・量子化部103、逆量子化・逆変換部105、加算部106、ループフィルタ107、予測パラメータメモリ(予測パラメータ記憶部、フレームメモリ)108、参照ピクチャメモリ(参照画像記憶部、フレームメモリ)109、符号化パラメータ決定部110、パラメータ符号化部111、予測パラメータ導出部120、エントロピー符号化部104を含んで構成される。
(Configuration of moving image encoding device)
Next, the configuration of the moving image coding device 11 according to the present embodiment will be described. FIG. 12 is a block diagram showing the configuration of the moving image coding device 11 according to the present embodiment. The moving image coding device 11 includes a prediction image generation unit 101, a subtraction unit 102, a conversion / quantization unit 103, an inverse quantization / inverse conversion unit 105, an addition unit 106, a loop filter 107, and a prediction parameter memory (prediction parameter storage unit). , Frame memory) 108, reference picture memory (reference image storage unit, frame memory) 109, coding parameter determination unit 110, parameter coding unit 111, prediction parameter derivation unit 120, and entropy coding unit 104. ..

予測画像生成部101はCU毎に予測画像を生成する。予測画像生成部101は既に説明したインター予測画像生成部309とイントラ予測画像生成部を含んでおり、説明を省略する。 The prediction image generation unit 101 generates a prediction image for each CU. The prediction image generation unit 101 includes the inter-prediction image generation unit 309 and the intra-prediction image generation unit already described, and the description thereof will be omitted.

減算部102は、予測画像生成部101から入力されたブロックの予測画像の画素値を、画像Tの画素値から減算して予測誤差を生成する。減算部102は予測誤差を変換・量子化部103に出力する。 The subtraction unit 102 subtracts the pixel value of the predicted image of the block input from the prediction image generation unit 101 from the pixel value of the image T to generate a prediction error. The subtraction unit 102 outputs the prediction error to the conversion / quantization unit 103.

変換・量子化部103は、減算部102から入力された予測誤差に対し、周波数変換によって変換係数を算出し、量子化によって量子化変換係数を導出する。変換・量子化部103は、量子化変換係数をパラメータ符号化部111及び逆量子化・逆変換部105に出力する。 The conversion / quantization unit 103 calculates the conversion coefficient by frequency conversion with respect to the prediction error input from the subtraction unit 102, and derives the quantization conversion coefficient by quantization. The conversion / quantization unit 103 outputs the quantization conversion coefficient to the parameter coding unit 111 and the inverse quantization / inverse conversion unit 105.

逆量子化・逆変換部105は、動画像復号装置31における逆量子化・逆変換部311(図77)と同じであり、説明を省略する。算出した予測誤差は加算部106に出力される。 The inverse quantization / inverse transformation unit 105 is the same as the inverse quantization / inverse transformation unit 311 (FIG. 77) in the moving image decoding apparatus 31, and the description thereof will be omitted. The calculated prediction error is output to the addition unit 106.

パラメータ符号化部111は、ヘッダ符号化部1110、CT情報符号化部1111、CU符号化部1112(予測モード符号化部)を備えている。CU符号化部1112はさらにTU符号化部1114を備えている。以下、各モジュールの概略動作を説明する。 The parameter coding unit 111 includes a header coding unit 1110, a CT information coding unit 1111, and a CU coding unit 1112 (prediction mode coding unit). The CU coding unit 1112 further includes a TU coding unit 1114. The outline operation of each module will be described below.

ヘッダ符号化部1110はヘッダ情報、分割情報、予測情報、量子化変換係数等のパラメータの符号化処理を行う。 The header coding unit 1110 performs coding processing of parameters such as header information, division information, prediction information, and quantization conversion coefficient.

CT情報符号化部1111は、QT、MT(BT、TT)分割情報等を符号化する。 The CT information coding unit 1111 encodes QT, MT (BT, TT) division information and the like.

CU符号化部1112はCU情報、予測情報、分割情報等を符号化する。 The CU coding unit 1112 encodes CU information, prediction information, division information, and the like.

TU符号化部1114は、TUに予測誤差が含まれている場合に、QP更新情報と量子化予測誤差を符号化する。 The TU coding unit 1114 encodes the QP update information and the quantization prediction error when the TU contains a prediction error.

CT情報符号化部1111、CU符号化部1112は、インター予測パラメータ(predMode、merge_flag、merge_idx、inter_pred_idc、refIdxLX、mvp_LX_idx、mvdLX)、イントラ予測パラメータ(intra_luma_mpm_flag、intra_luma_mpm_idx、intra_luma_mpm_reminder、intra_chroma_pred_mode)、量子化変換係数等のシンタックス要素をパラメータ符号化部111に供給する。 CT information coding unit 1111 and CU coding unit 1112 have inter-prediction parameters (predMode, merge_flag, merge_idx, inter_pred_idc, refIdxLX, mvp_LX_idx, mvdLX), intra-prediction parameters (intra_luma_mpm_flag, intra_luma_mpm_idx, intra_luma_mpm_idx, intra_luma) Etc. are supplied to the parameter coding unit 111.

エントロピー符号化部104には、パラメータ符号化部111から量子化変換係数と符号化パラメータ(分割情報、予測パラメータ)が入力される。エントロピー符号化部104はこれらをエントロピー符号化して符号化ストリームTeを生成し、出力する。 The quantization conversion coefficient and coding parameters (division information, prediction parameters) are input to the entropy coding unit 104 from the parameter coding unit 111. The entropy coding unit 104 entropy-codes these to generate a coded stream Te and outputs it.

予測パラメータ導出部120は、インター予測パラメータ符号化部112、イントラ予測パラメータ符号化部を含む手段であり、符号化パラメータ決定部110から入力されたパラメータからイントラ予測パラメータ及びイントラ予測パラメータを導出する。導出されたイントラ予測パラメータ及びイントラ予測パラメータは、パラメータ符号化部111に出力される。 The prediction parameter derivation unit 120 is a means including an inter-prediction parameter coding unit 112 and an intra-prediction parameter coding unit, and derives an intra-prediction parameter and an intra-prediction parameter from the parameters input from the coding parameter determination unit 110. The derived intra-prediction parameter and intra-prediction parameter are output to the parameter coding unit 111.

(インター予測パラメータ符号化部の構成)
インター予測パラメータ符号化部112は図13に示すように、パラメータ符号化制御部1121、インター予測パラメータ導出部303を含んで構成される。インター予測パラメータ導出部303は動画像復号装置と共通の構成である。パラメータ符号化制御部1121は、マージインデックス導出部11211とベクトル候補インデックス導出部11212を含む。
(Structure of inter-prediction parameter coding unit)
As shown in FIG. 13, the inter-prediction parameter coding unit 112 includes a parameter coding control unit 1121 and an inter-prediction parameter derivation unit 303. The inter-prediction parameter derivation unit 303 has the same configuration as the moving image decoding device. The parameter coding control unit 1121 includes a merge index derivation unit 11211 and a vector candidate index derivation unit 11212.

マージインデックス導出部11211は、マージ候補等を導出し、インター予測パラメータ導出部303に出力する。ベクトル候補インデックス導出部11212は予測ベクトル候補等を導出し、インター予測パラメータ導出部303とパラメータ符号化部111に出力する。 The merge index derivation unit 11211 derives merge candidates and the like and outputs them to the inter-prediction parameter derivation unit 303. The vector candidate index derivation unit 11212 derives the prediction vector candidate and the like, and outputs them to the inter-prediction parameter derivation unit 303 and the parameter coding unit 111.

(イントラ予測パラメータ符号化部の構成)
イントラ予測パラメータ符号化部は、パラメータ符号化制御部とイントラ予測パラメータ導出部を備える。イントラ予測パラメータ導出部は動画像復号装置と共通の構成である。
(Structure of intra prediction parameter coding unit)
The intra prediction parameter coding unit includes a parameter coding control unit and an intra prediction parameter derivation unit. The intra prediction parameter derivation unit has the same configuration as the moving image decoding device.

ただし、動画像復号装置と異なり、インター予測パラメータ導出部303、イントラ予測パラメータ導出部への入力は符号化パラメータ決定部110、予測パラメータメモリ108であり、パラメータ符号化部111に出力する。 However, unlike the moving image decoding device, the inputs to the inter-prediction parameter derivation unit 303 and the intra-prediction parameter derivation unit are the coding parameter determination unit 110 and the prediction parameter memory 108, and are output to the parameter coding unit 111.

加算部106は、予測画像生成部101から入力された予測ブロックの画素値と逆量子化・逆変換部105から入力された予測誤差を画素毎に加算して復号画像を生成する。加算部106は生成した復号画像を参照ピクチャメモリ109に記憶する。 The addition unit 106 adds the pixel value of the prediction block input from the prediction image generation unit 101 and the prediction error input from the inverse quantization / inverse conversion unit 105 for each pixel to generate a decoded image. The addition unit 106 stores the generated decoded image in the reference picture memory 109.

ループフィルタ107は加算部106が生成した復号画像に対し、デブロッキングフィルタ、SAO、ALFを施す。なお、ループフィルタ107は、必ずしも上記3種類のフィルタを含まなくてもよく、例えばデブロッキングフィルタのみの構成であってもよい。 The loop filter 107 applies a deblocking filter, SAO, and ALF to the decoded image generated by the addition unit 106. The loop filter 107 does not necessarily have to include the above three types of filters, and may have, for example, a configuration of only a deblocking filter.

予測パラメータメモリ108は、符号化パラメータ決定部110が生成した予測パラメータを、対象ピクチャ及びCU毎に予め定めた位置に記憶する。 The prediction parameter memory 108 stores the prediction parameters generated by the coding parameter determination unit 110 at predetermined positions for each target picture and CU.

参照ピクチャメモリ109は、ループフィルタ107が生成した復号画像を対象ピクチャ及びCU毎に予め定めた位置に記憶する。 The reference picture memory 109 stores the decoded image generated by the loop filter 107 at a predetermined position for each target picture and CU.

符号化パラメータ決定部110は、符号化パラメータの複数のセットのうち、1つのセットを選択する。符号化パラメータとは、上述したQT、BTあるいはTT分割情報、予測パラメータ、あるいはこれらに関連して生成される符号化の対象となるパラメータである。予測画像生成部101は、これらの符号化パラメータを用いて予測画像を生成する。 The coding parameter determination unit 110 selects one set from the plurality of sets of coding parameters. The coding parameter is the above-mentioned QT, BT or TT division information, prediction parameter, or a parameter to be coded generated in connection with these. The prediction image generation unit 101 generates a prediction image using these coding parameters.

符号化パラメータ決定部110は、複数のセットの各々について情報量の大きさと符号化誤差を示すRDコスト値を算出する。RDコスト値は、例えば、符号量と二乗誤差に係数λを乗じた値との和である。符号量は、量子化誤差と符号化パラメータをエントロピー符号化して得られる符号化ストリームTeの情報量である。二乗誤差は、減算部102において算出された予測誤差の二乗和である。係数λは、予め設定されたゼロよりも大きい実数である。符号化パラメータ決定部110は、算出したコスト値が最小となる符号化パラメータのセットを選択する。符号化パラメータ決定部110は決定した符号化パラメータをパラメータ符号化部111と予測パラメータ導出部120に出力する。 The coding parameter determination unit 110 calculates an RD cost value indicating the magnitude of the amount of information and the coding error for each of the plurality of sets. The RD cost value is, for example, the sum of the code amount and the squared error multiplied by the coefficient λ. The code amount is the amount of information of the coded stream Te obtained by entropy-coding the quantization error and the coded parameters. The square error is the sum of squares of the prediction error calculated by the subtraction unit 102. The coefficient λ is a real number greater than the preset zero. The coding parameter determination unit 110 selects the set of coding parameters that minimizes the calculated cost value. The coding parameter determination unit 110 outputs the determined coding parameter to the parameter coding unit 111 and the prediction parameter derivation unit 120.

なお、上述した実施形態における動画像符号化装置11、動画像復号装置31の一部、例えば、エントロピー復号部301、パラメータ復号部302、ループフィルタ305、予測画像生成部308、逆量子化・逆変換部311、加算部312、予測パラメータ導出部320、予測画像生成部101、減算部102、変換・量子化部103、エントロピー符号化部104、逆量子化・逆変換部105、ループフィルタ107、符号化パラメータ決定部110、パラメータ符号化部111、予測パラメータ導出部120をコンピュータで実現するようにしても良い。その場合、この制御機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現しても良い。なお、ここでいう「コンピュータシステム」とは、動画像符号化装置11、動画像復号装置31のいずれかに内蔵されたコンピュータシステムであって、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD-ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでも良い。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであっても良い。 A part of the moving image coding device 11 and the moving image decoding device 31 in the above-described embodiment, for example, the entropy decoding unit 301, the parameter decoding unit 302, the loop filter 305, the predicted image generation unit 308, and the inverse quantization / reverse. Conversion unit 311, Addition unit 312, Prediction parameter derivation unit 320, Prediction image generation unit 101, Subtraction unit 102, Conversion / quantization unit 103, Entropy coding unit 104, Inverse quantization / inverse conversion unit 105, Loop filter 107, The coding parameter determination unit 110, the parameter coding unit 111, and the prediction parameter derivation unit 120 may be realized by a computer. In that case, the program for realizing this control function may be recorded on a computer-readable recording medium, and the program recorded on the recording medium may be read by the computer system and executed. The "computer system" referred to here is a computer system built into either the moving image coding device 11 or the moving image decoding device 31, and includes hardware such as an OS and peripheral devices. Further, the "computer-readable recording medium" refers to a portable medium such as a flexible disk, a magneto-optical disk, a ROM, or a CD-ROM, or a storage device such as a hard disk built in a computer system. Furthermore, a "computer-readable recording medium" is a medium that dynamically holds a program for a short period of time, such as a communication line when a program is transmitted via a network such as the Internet or a communication line such as a telephone line. In that case, a program may be held for a certain period of time, such as a volatile memory inside a computer system serving as a server or a client. Further, the above-mentioned program may be a program for realizing a part of the above-mentioned functions, and may be a program for realizing the above-mentioned functions in combination with a program already recorded in the computer system.

また、上述した実施形態における動画像符号化装置11、動画像復号装置31の一部、または全部を、LSI(Large Scale Integration)等の集積回路として実現しても良い。動画像符号化装置11、動画像復号装置31の各機能ブロックは個別にプロセッサ化しても良いし、一部、または全部を集積してプロセッサ化しても良い。また、集積回路化の手法はLSIに限らず専用回路、または汎用プロセッサで実現しても良い。また、半導体技術の進歩によりLSIに代替する集積回路化の技術が出現した場合、当該技術による集積回路を用いても良い。 Further, a part or all of the moving image coding device 11 and the moving image decoding device 31 in the above-described embodiment may be realized as an integrated circuit such as an LSI (Large Scale Integration). Each functional block of the moving image coding device 11 and the moving image decoding device 31 may be individually converted into a processor, or a part or all of them may be integrated into a processor. Further, the method of making an integrated circuit is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. Further, when an integrated circuit technology that replaces an LSI appears due to advances in semiconductor technology, an integrated circuit based on this technology may be used.

以上、図面を参照してこの発明の一実施形態について詳しく説明してきたが、具体的な構成は上述のものに限られることはなく、この発明の要旨を逸脱しない範囲内において様々な設計変更等をすることが可能である。 Although one embodiment of the present invention has been described in detail with reference to the drawings, the specific configuration is not limited to the above, and various design changes and the like are made without departing from the gist of the present invention. It is possible to do.

〔応用例〕
上述した動画像符号化装置11及び動画像復号装置31は、動画像の送信、受信、記録、再生を行う各種装置に搭載して利用することができる。なお、動画像は、カメラ等により撮像された自然動画像であってもよいし、コンピュータ等により生成された人工動画像(CGおよびGUIを含む)であってもよい。
[Application example]
The moving image coding device 11 and the moving image decoding device 31 described above can be mounted on and used in various devices for transmitting, receiving, recording, and reproducing moving images. The moving image may be a natural moving image captured by a camera or the like, or an artificial moving image (including CG and GUI) generated by a computer or the like.

まず、上述した動画像符号化装置11及び動画像復号装置31を、動画像の送信及び受信に利用できることを、図2を参照して説明する。 First, it will be described with reference to FIG. 2 that the moving image coding device 11 and the moving image decoding device 31 described above can be used for transmitting and receiving moving images.

図2(a)は、動画像符号化装置11を搭載した送信装置PROD_Aの構成を示したブロック図である。図に示すように、送信装置PROD_Aは、動画像を符号化することによって符号化データを得る符号化部PROD_A1と、符号化部PROD_A1が得た符号化データで搬送波を変調することによって変調信号を得る変調部PROD_A2と、変調部PROD_A2が得た変調信号を送信する送信部PROD_A3と、を備えている。上述した動画像符号化装置11は、この符号化部PROD_A1として利用される。 FIG. 2A is a block diagram showing the configuration of the transmission device PROD_A equipped with the moving image coding device 11. As shown in the figure, the transmitter PROD_A has a coding unit PROD_A1 that obtains encoded data by encoding a moving image, and a modulation signal by modulating a carrier wave with the coded data obtained by the coding unit PROD_A1. It includes a modulation unit PROD_A2 to obtain and a transmission unit PROD_A3 to transmit the modulation signal obtained by the modulation unit PROD_A2. The moving image coding device 11 described above is used as the coding unit PROD_A1.

送信装置PROD_Aは、符号化部PROD_A1に入力する動画像の供給源として、動画像を撮像するカメラPROD_A4、動画像を記録した記録媒体PROD_A5、動画像を外部から入力するための入力端子PROD_A6、及び、画像を生成または加工する画像処理部A7を更に備えていてもよい。図においては、これら全てを送信装置PROD_Aが備えた構成を例示しているが、一部を省略しても構わない。 The transmitter PROD_A has a camera PROD_A4 for capturing a moving image, a recording medium PROD_A5 for recording a moving image, an input terminal PROD_A6 for inputting a moving image from the outside, and a moving image as a source of the moving image to be input to the coding unit PROD_A1. , An image processing unit A7 for generating or processing an image may be further provided. In the figure, the configuration in which the transmitter PROD_A is provided with all of these is illustrated, but some of them may be omitted.

なお、記録媒体PROD_A5は、符号化されていない動画像を記録したものであってもよいし、伝送用の符号化方式とは異なる記録用の符号化方式で符号化された動画像を記録したものであってもよい。後者の場合、記録媒体PROD_A5と符号化部PROD_A1との間に、記録媒体PROD_A5から読み出した符号化データを記録用の符号化方式に従って復号する復号部(不図示)を介在させるとよい。 The recording medium PROD_A5 may be a recording of an unencoded moving image, or a moving image encoded by a recording coding method different from the transmission coding method. It may be a thing. In the latter case, it is preferable to interpose a decoding unit (not shown) between the recording medium PROD_A5 and the coding unit PROD_A1 to decode the coded data read from the recording medium PROD_A5 according to the coding method for recording.

図2(b)は、動画像復号装置31を搭載した受信装置PROD_Bの構成を示したブロック図である。図に示すように、受信装置PROD_Bは、変調信号を受信する受信部PROD_B1と、受信部PROD_B1が受信した変調信号を復調することによって符号化データを得る復調部PROD_B2と、復調部PROD_B2が得た符号化データを復号することによって動画像を得る復号部PROD_B3と、を備えている。上述した動画像復号装置31は、この復号部PROD_B3として利用される。 FIG. 2B is a block diagram showing the configuration of the receiving device PROD_B equipped with the moving image decoding device 31. As shown in the figure, the receiving device PROD_B is obtained by a receiving unit PROD_B1 that receives a modulated signal, a demodulating unit PROD_B2 that obtains coded data by demodulating the modulated signal received by the receiving unit PROD_B1, and a demodulating unit PROD_B2. It includes a decoding unit PROD_B3 that obtains a moving image by decoding the encoded data. The moving image decoding device 31 described above is used as the decoding unit PROD_B3.

受信装置PROD_Bは、復号部PROD_B3が出力する動画像の供給先として、動画像を表示するディスプレイPROD_B4、動画像を記録するための記録媒体PROD_B5、及び、動画像を外部に出力するための出力端子PROD_B6を更に備えていてもよい。図においては、これら全てを受信装置PROD_Bが備えた構成を例示しているが、一部を省略しても構わない。 The receiving device PROD_B serves as a supply destination of the moving image output by the decoding unit PROD_B3, a display PROD_B4 for displaying the moving image, a recording medium PROD_B5 for recording the moving image, and an output terminal for outputting the moving image to the outside. It may also have PROD_B6. In the figure, the configuration in which the receiving device PROD_B is provided with all of these is illustrated, but some of them may be omitted.

なお、記録媒体PROD_B5は、符号化されていない動画像を記録するためのものであってもよいし、伝送用の符号化方式とは異なる記録用の符号化方式で符号化されたものであってもよい。後者の場合、復号部PROD_B3と記録媒体PROD_B5との間に、復号部PROD_B3から取得した動画像を記録用の符号化方式に従って符号化する符号化部(不図示)を介在させるとよい。 The recording medium PROD_B5 may be used for recording an unencoded moving image, or may be encoded by a recording coding method different from the transmission coding method. You may. In the latter case, a coding unit (not shown) that encodes the moving image acquired from the decoding unit PROD_B3 according to the recording coding method may be interposed between the decoding unit PROD_B3 and the recording medium PROD_B5.

なお、変調信号を伝送する伝送媒体は、無線であってもよいし、有線であってもよい。また、変調信号を伝送する伝送態様は、放送(ここでは、送信先が予め特定されていない送信態様を指す)であってもよいし、通信(ここでは、送信先が予め特定されている送信態様を指す)であってもよい。すなわち、変調信号の伝送は、無線放送、有線放送、無線通信、及び有線通信の何れによって実現してもよい。 The transmission medium for transmitting the modulated signal may be wireless or wired. Further, the transmission mode for transmitting the modulated signal may be broadcasting (here, a transmission mode in which the destination is not specified in advance) or communication (here, transmission in which the destination is specified in advance). Refers to an aspect). That is, the transmission of the modulated signal may be realized by any of wireless broadcasting, wired broadcasting, wireless communication, and wired communication.

例えば、地上デジタル放送の放送局(放送設備など)/受信局(テレビジョン受像機など)は、変調信号を無線放送で送受信する送信装置PROD_A/受信装置PROD_Bの一例である。また、ケーブルテレビ放送の放送局(放送設備など)/受信局(テレビジョン受像機など)は、変調信号を有線放送で送受信する送信装置PROD_A/受信装置PROD_Bの一例である。 For example, a broadcasting station (broadcasting equipment, etc.) / receiving station (television receiver, etc.) of terrestrial digital broadcasting is an example of a transmitting device PROD_A / receiving device PROD_B that transmits and receives modulated signals by wireless broadcasting. Further, a broadcasting station (broadcasting equipment, etc.) / receiving station (television receiver, etc.) of cable television broadcasting is an example of a transmitting device PROD_A / receiving device PROD_B that transmits and receives modulated signals by wired broadcasting.

また、インターネットを用いたVOD(Video On Demand)サービスや動画共有サービスなどのサーバ(ワークステーションなど)/クライアント(テレビジョン受像機、パーソナルコンピュータ、スマートフォンなど)は、変調信号を通信で送受信する送信装置PROD_A/受信装置PROD_Bの一例である(通常、LANにおいては伝送媒体として無線または有線の何れかが用いられ、WANにおいては伝送媒体として有線が用いられる)。ここで、パーソナルコンピュータには、デスクトップ型PC、ラップトップ型PC、及びタブレット型PCが含まれる。また、スマートフォンには、多機能携帯電話端末も含まれる。 In addition, servers (workstations, etc.) / clients (television receivers, personal computers, smartphones, etc.) for VOD (Video On Demand) services and video sharing services using the Internet are transmitters that send and receive modulated signals via communication. This is an example of PROD_A / receiver PROD_B (usually, in LAN, either wireless or wired is used as a transmission medium, and in WAN, wired is used as a transmission medium). Here, personal computers include desktop PCs, laptop PCs, and tablet PCs. Smartphones also include multifunctional mobile phone terminals.

なお、動画共有サービスのクライアントは、サーバからダウンロードした符号化データを復号してディスプレイに表示する機能に加え、カメラで撮像した動画像を符号化してサーバにアップロードする機能を有している。すなわち、動画共有サービスのクライアントは、送信装置PROD_A及び受信装置PROD_Bの双方として機能する。 The client of the video sharing service has a function of decoding the encoded data downloaded from the server and displaying it on the display, as well as a function of encoding the moving image captured by the camera and uploading it to the server. That is, the client of the video sharing service functions as both the transmitting device PROD_A and the receiving device PROD_B.

次に、上述した動画像符号化装置11及び動画像復号装置31を、動画像の記録及び再生に利用できることを、図3を参照して説明する。 Next, it will be described with reference to FIG. 3 that the moving image coding device 11 and the moving image decoding device 31 described above can be used for recording and reproducing a moving image.

図3(a)は、上述した動画像符号化装置11を搭載した記録装置PROD_Cの構成を示したブロック図である。図に示すように、記録装置PROD_Cは、動画像を符号化することによって符号化データを得る符号化部PROD_C1と、符号化部PROD_C1が得た符号化データを記録媒体PROD_Mに書き込む書込部PROD_C2と、を備えている。上述した動画像符号化装置11は、この符号化部PROD_C1として利用される。 FIG. 3A is a block diagram showing the configuration of the recording device PROD_C equipped with the above-mentioned moving image coding device 11. As shown in the figure, the recording device PROD_C has a coding unit PROD_C1 that obtains coded data by encoding a moving image and a writing unit PROD_C2 that writes the coded data obtained by the coding unit PROD_C1 to the recording medium PROD_M. And have. The moving image coding device 11 described above is used as the coding unit PROD_C1.

なお、記録媒体PROD_Mは、(1)HDD(Hard Disk Drive)やSSD(Solid State Drive)などのように、記録装置PROD_Cに内蔵されるタイプのものであってもよいし、(2)SDメモリカードやUSB(Universal Serial Bus)フラッシュメモリなどのように、記録装置PROD_Cに接続されるタイプのものであってもよいし、(3)DVD(Digital Versatile Disc:登録商標)やBD(Blu-ray Disc:登録商標)などのように、記録装置PROD_Cに内蔵されたドライブ装置(不図示)に装填されるものであってもよい。 The recording medium PROD_M may be of a type built in the recording device PROD_C, such as (1) HDD (Hard Disk Drive) or SSD (Solid State Drive), or (2) SD memory. It may be a type that is connected to the recording device PROD_C, such as a card or USB (Universal Serial Bus) flash memory, and (3) DVD (Digital Versatile Disc: registered trademark) or BD (Blu-ray). It may be loaded in a drive device (not shown) built in the recording device PROD_C, such as Disc (registered trademark).

また、記録装置PROD_Cは、符号化部PROD_C1に入力する動画像の供給源として、動画像を撮像するカメラPROD_C3、動画像を外部から入力するための入力端子PROD_C4、動画像を受信するための受信部PROD_C5、及び、画像を生成または加工する画像処理部PROD_C6を更に備えていてもよい。図においては、これら全てを記録装置PROD_Cが備えた構成を例示しているが、一部を省略しても構わない。 Further, the recording device PROD_C has a camera PROD_C3 that captures a moving image, an input terminal PROD_C4 for inputting a moving image from the outside, and a reception for receiving the moving image as a source of the moving image to be input to the coding unit PROD_C1. The unit PROD_C5 and the image processing unit PROD_C6 for generating or processing an image may be further provided. In the figure, the configuration in which the recording device PROD_C is provided with all of these is illustrated, but some of them may be omitted.

なお、受信部PROD_C5は、符号化されていない動画像を受信するものであってもよいし、記録用の符号化方式とは異なる伝送用の符号化方式で符号化された符号化データを受信するものであってもよい。後者の場合、受信部PROD_C5と符号化部PROD_C1との間に、伝送用の符号化方式で符号化された符号化データを復号する伝送用復号部(不図示)を介在させるとよい。 The receiving unit PROD_C5 may receive an unencoded moving image, or receives coded data encoded by a transmission coding method different from the recording coding method. It may be something to do. In the latter case, a transmission decoding unit (not shown) that decodes the coded data encoded by the transmission coding method may be interposed between the receiving unit PROD_C5 and the coding unit PROD_C1.

このような記録装置PROD_Cとしては、例えば、DVDレコーダ、BDレコーダ、HDD(Hard Disk Drive)レコーダなどが挙げられる(この場合、入力端子PROD_C4または受信部PROD_C5が動画像の主な供給源となる)。また、カムコーダ(この場合、カメラPROD_C3が動画像の主な供給源となる)、パーソナルコンピュータ(この場合、受信部PROD_C5または画像処理部C6が動画像の主な供給源となる)、スマートフォン(この場合、カメラPROD_C3または受信部PROD_C5が動画像の主な供給源となる)なども、このような記録装置PROD_Cの一例である。 Examples of such a recording device PROD_C include a DVD recorder, a BD recorder, an HDD (Hard Disk Drive) recorder, and the like (in this case, the input terminal PROD_C4 or the receiving unit PROD_C5 is the main source of moving images). .. In addition, a camcorder (in this case, the camera PROD_C3 is the main source of moving images), a personal computer (in this case, the receiving unit PROD_C5 or the image processing unit C6 is the main source of moving images), and a smartphone (this In this case, the camera PROD_C3 or the receiver PROD_C5 is the main source of moving images) is also an example of such a recording device PROD_C.

図3(b)は、上述した動画像復号装置31を搭載した再生装置PROD_Dの構成を示したブロックである。図に示すように、再生装置PROD_Dは、記録媒体PROD_Mに書き込まれた符号化データを読み出す読出部PROD_D1と、読出部PROD_D1が読み出した符号化データを復号することによって動画像を得る復号部PROD_D2と、を備えている。上述した動画像復号装置31は、この復号部PROD_D2として利用される。 FIG. 3B is a block showing the configuration of the playback device PROD_D equipped with the above-mentioned moving image decoding device 31. As shown in the figure, the reproduction device PROD_D includes a reading unit PROD_D1 that reads the coded data written in the recording medium PROD_M, and a decoding unit PROD_D2 that obtains a moving image by decoding the coded data read by the reading unit PROD_D1. , Is equipped. The moving image decoding device 31 described above is used as the decoding unit PROD_D2.

なお、記録媒体PROD_Mは、(1)HDDやSSDなどのように、再生装置PROD_Dに内蔵されるタイプのものであってもよいし、(2)SDメモリカードやUSBフラッシュメモリなどのように、再生装置PROD_Dに接続されるタイプのものであってもよいし、(3)DVDやBDなどのように、再生装置PROD_Dに内蔵されたドライブ装置(不図示)に装填されるものであってもよい。 The recording medium PROD_M may be of a type built into the playback device PROD_D, such as (1) HDD or SSD, or (2) such as an SD memory card or USB flash memory. It may be of a type connected to the playback device PROD_D, or may be loaded into a drive device (not shown) built in the playback device PROD_D, such as (3) DVD or BD. Good.

また、再生装置PROD_Dは、復号部PROD_D2が出力する動画像の供給先として、動画像を表示するディスプレイPROD_D3、動画像を外部に出力するための出力端子PROD_D4、及び、動画像を送信する送信部PROD_D5を更に備えていてもよい。図においては、これら全てを再生装置PROD_Dが備えた構成を例示しているが、一部を省略しても構わない。 Further, the playback device PROD_D has a display PROD_D3 for displaying the moving image, an output terminal PROD_D4 for outputting the moving image to the outside, and a transmitting unit for transmitting the moving image as a supply destination of the moving image output by the decoding unit PROD_D2. It may also have PROD_D5. In the figure, the configuration in which the playback device PROD_D is provided with all of these is illustrated, but some of them may be omitted.

なお、送信部PROD_D5は、符号化されていない動画像を送信するものであってもよいし、記録用の符号化方式とは異なる伝送用の符号化方式で符号化された符号化データを送信するものであってもよい。後者の場合、復号部PROD_D2と送信部PROD_D5との間に、動画像を伝送用の符号化方式で符号化する符号化部(不図示)を介在させるとよい。 The transmission unit PROD_D5 may transmit an unencoded moving image, or transmits coded data encoded by a transmission coding method different from the recording coding method. It may be something to do. In the latter case, it is preferable to interpose a coding unit (not shown) that encodes the moving image by a coding method for transmission between the decoding unit PROD_D2 and the transmitting unit PROD_D5.

このような再生装置PROD_Dとしては、例えば、DVDプレイヤ、BDプレイヤ、HDDプレイヤなどが挙げられる(この場合、テレビジョン受像機等が接続される出力端子PROD_D4が動画像の主な供給先となる)。また、テレビジョン受像機(この場合、ディスプレイPROD_D3が動画像の主な供給先となる)、デジタルサイネージ(電子看板や電子掲示板等とも称され、ディスプレイPROD_D3または送信部PROD_D5が動画像の主な供給先となる)、デスクトップ型PC(この場合、出力端子PROD_D4または送信部PROD_D5が動画像の主な供給先となる)、ラップトップ型またはタブレット型PC(この場合、ディスプレイPROD_D3または送信部PROD_D5が動画像の主な供給先となる)、スマートフォン(この場合、ディスプレイPROD_D3または送信部PROD_D5が動画像の主な供給先となる)なども、このような再生装置PROD_Dの一例である。 Examples of such a playback device PROD_D include a DVD player, a BD player, an HDD player, and the like (in this case, the output terminal PROD_D4 to which a television receiver or the like is connected is the main supply destination of moving images). .. In addition, a television receiver (in this case, display PROD_D3 is the main supply destination of moving images) and digital signage (also called electronic signage or electronic bulletin board, etc., and display PROD_D3 or transmitter PROD_D5 is the main supply destination of moving images. (First), desktop PC (in this case, output terminal PROD_D4 or transmitter PROD_D5 is the main supply destination of moving images), laptop or tablet PC (in this case, display PROD_D3 or transmitter PROD_D5 is video) An example of such a playback device PROD_D is a smartphone (in this case, the display PROD_D3 or the transmitter PROD_D5 is the main supply destination of the moving image), which is the main supply destination of the image.

(ハードウェア的実現およびソフトウェア的実現)
また、上述した動画像復号装置31および動画像符号化装置11の各ブロックは、集積回路(ICチップ)上に形成された論理回路によってハードウェア的に実現してもよいし、CPU(Central Processing Unit)を用いてソフトウェア的に実現してもよい。
(Hardware realization and software realization)
Further, each block of the moving image decoding device 31 and the moving image coding device 11 described above may be realized in hardware by a logic circuit formed on an integrated circuit (IC chip), or may be realized by a CPU (Central Processing). It may be realized by software using Unit).

後者の場合、上記各装置は、各機能を実現するプログラムの命令を実行するCPU、上記プログラムを格納したROM(Read Only Memory)、上記プログラムを展開するRAM(Random Access Memory)、上記プログラムおよび各種データを格納するメモリ等の記憶装置(記録媒体)などを備えている。そして、本発明の実施形態の目的は、上述した機能を実現するソフトウェアである上記各装置の制御プログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンピュータで読み取り可能に記録した記録媒体を、上記各装置に供給し、そのコンピュータ(またはCPUやMPU)が記録媒体に記録されているプログラムコードを読み出し実行することによっても、達成可能である。 In the latter case, each of the above devices includes a CPU that executes instructions of a program that realizes each function, a ROM (Read Only Memory) that stores the above program, a RAM (Random Access Memory) that expands the above program, the above program, and various types. It is equipped with a storage device (recording medium) such as a memory for storing data. Then, an object of the embodiment of the present invention is a record in which the program code (execution format program, intermediate code program, source program) of the control program of each of the above devices, which is software for realizing the above-mentioned functions, is recorded readable by a computer. It can also be achieved by supplying the medium to each of the above devices and having the computer (or CPU or MPU) read and execute the program code recorded on the recording medium.

上記記録媒体としては、例えば、磁気テープやカセットテープ等のテープ類、フロッピー(登録商標)ディスク/ハードディスク等の磁気ディスクやCD-ROM(Compact Disc Read-Only Memory)/MOディスク(Magneto-Optical disc)/MD(Mini Disc)/DVD(Digital Versatile Disc:登録商標)/CD-R(CD Recordable)/ブルーレイディスク(Blu-ray Disc:登録商標)等の光ディスクを含むディスク類、ICカード(メモリカードを含む)/光カード等のカード類、マスクROM/EPROM(Erasable Programmable Read-Only Memory)/EEPROM(Electrically Erasable and Programmable Read-Only Memory:登録商標)/フラッシュROM等の半導体メモリ類、あるいはPLD(Programmable logic device)やFPGA(Field Programmable Gate Array)等の論理回路類などを用いることができる。 Examples of the recording medium include tapes such as magnetic tapes and cassette tapes, magnetic discs such as floppy (registered trademark) discs / hard disks, and CD-ROMs (Compact Disc Read-Only Memory) / MO discs (Magneto-Optical discs). ) / MD (Mini Disc) / DVD (Digital Versatile Disc: registered trademark) / CD-R (CD Recordable) / Blu-ray Disc (registered trademark) and other discs including optical discs, IC cards (memory cards) (Including) / Cards such as optical cards, mask ROM / EPROM (Erasable Programmable Read-Only Memory) / EEPROM (Electrically Erasable and Programmable Read-Only Memory: registered trademark) / Semiconductor memories such as flash ROM, or PLD ( Logic circuits such as Programmable logic device) and FPGA (Field Programmable Gate Array) can be used.

また、上記各装置を通信ネットワークと接続可能に構成し、上記プログラムコードを通信ネットワークを介して供給してもよい。この通信ネットワークは、プログラムコードを伝送可能であればよく、特に限定されない。例えば、インターネット、イントラネット、エキストラネット、LAN(Local Area Network)、ISDN(Integrated Services Digital Network)、VAN(Value-Added Network)、CATV(Community Antenna television/Cable Television)通信網、仮想専用網(Virtual Private Network)、電話回線網、移動体通信網、衛星通信網等が利用可能である。また、この通信ネットワークを構成する伝送媒体も、プログラムコードを伝送可能な媒体であればよく、特定の構成または種類のものに限定されない。例えば、IEEE(Institute of Electrical and Electronic Engineers)1394、USB、電力線搬送、ケーブルTV回線、電話線、ADSL(Asymmetric Digital Subscriber Line)回線等の有線でも、IrDA(Infrared Data Association)やリモコンのような赤外線、BlueTooth(登録商標)、IEEE802.11無線、HDR(High Data Rate)、NFC(Near Field Communication)、DLNA(Digital Living Network Alliance:登録商標)、携帯電話網、衛星回線、地上デジタル放送網等の無線でも利用可能である。なお、本発明の実施形態は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。 Further, each of the above devices may be configured to be connectable to a communication network, and the above program code may be supplied via the communication network. This communication network is not particularly limited as long as it can transmit the program code. For example, Internet, Intranet, Extranet, LAN (Local Area Network), ISDN (Integrated Services Digital Network), VAN (Value-Added Network), CATV (Community Antenna television / Cable Television) communication network, Virtual Private network (Virtual Private) Network), telephone line network, mobile communication network, satellite communication network, etc. can be used. Further, the transmission medium constituting this communication network may be any medium as long as it can transmit the program code, and is not limited to a specific configuration or type. For example, even wired such as IEEE (Institute of Electrical and Electronic Engineers) 1394, USB, power line carrier, cable TV line, telephone line, ADSL (Asymmetric Digital Subscriber Line) line, infrared data such as IrDA (Infrared Data Association) and remote control. , BlueTooth (registered trademark), IEEE802.11 wireless, HDR (High Data Rate), NFC (Near Field Communication), DLNA (Digital Living Network Alliance: registered trademark), mobile phone network, satellite line, terrestrial digital broadcasting network, etc. It is also available wirelessly. The embodiment of the present invention can also be realized in the form of a computer data signal embedded in a carrier wave, in which the program code is embodied by electronic transmission.

本発明の実施形態は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 The embodiment of the present invention is not limited to the above-described embodiment, and various modifications can be made within the scope of the claims. That is, an embodiment obtained by combining technical means appropriately modified within the scope of the claims is also included in the technical scope of the present invention.

本発明の実施形態は、画像データが符号化された符号化データを復号する動画像復号装置、および、画像データが符号化された符号化データを生成する動画像符号化装置に好適に適用することができる。また、動画像符号化装置によって生成され、動画像復号装置によって参照される符号化データのデータ構造に好適に適用することができる。 The embodiment of the present invention is suitably applied to a moving image decoding device that decodes encoded data in which image data is encoded, and a moving image coding device that generates encoded data in which image data is encoded. be able to. Further, it can be suitably applied to the data structure of the coded data generated by the moving image coding device and referenced by the moving image decoding device.

31 画像復号装置
301 エントロピー復号部
302 パラメータ復号部
303 インター予測パラメータ導出部
30377 GEO予測部
305、107 ループフィルタ
306、109 参照ピクチャメモリ
307、108 予測パラメータメモリ
308、101 予測画像生成部
309 インター予測画像生成部
30952 GEO合成部
311、105 逆量子化・逆変換部
312、106 加算部
320 予測パラメータ導出部
11 画像符号化装置
102 減算部
103 変換・量子化部
104 エントロピー符号化部
110 符号化パラメータ決定部
111 パラメータ符号化部
112 インター予測パラメータ符号化部
120 予測パラメータ導出部
31 Image decoder
301 Entropy Decryptor
302 Parameter decoder
303 Inter-prediction parameter derivation section
30377 GEO Forecasting Department
305, 107 loop filter
306, 109 Reference picture memory
307, 108 Predictive parameter memory
308, 101 Predictive image generator
309 Inter-prediction image generator
30952 GEO Synthesis Department
311 and 105 Inverse quantization / inverse transformation
312, 106 Addition part
320 Prediction parameter derivation unit
11 Image encoder
102 Subtraction section
103 Transformation / Quantization Department
104 Entropy encoding section
110 Coded parameter determination unit
111 Parameter encoding section
112 Inter-prediction parameter encoding section
120 Prediction parameter derivation section

Claims (11)

複数のパラメータを復号するパラメータ復号部と、
対象ブロックをまたがる直線分によって前記対象ブロックが分割された2つの非矩形予測単位毎に予測を行う予測部と、
を備えている動画像復号装置であって、
前記予測部は、前記パラメータ復号部によって復号された前記複数のパラメータのうちの2つのパラメータの値に少なくとも基づいて、前記2つの非矩形予測単位が2つの三角形予測単位である場合と前記2つの非矩形予測単位が2つの三角形予測単位でない場合との間で、予測処理を切り替える、動画像復号装置。
A parameter decoding unit that decodes multiple parameters,
A prediction unit that makes predictions for each of two non-rectangular prediction units in which the target block is divided by a straight line that straddles the target block.
It is a moving image decoding device equipped with
The prediction unit is a case where the two non-rectangular prediction units are two triangle prediction units and the case where the two non-rectangular prediction units are two triangle prediction units, based on at least the values of two of the plurality of parameters decoded by the parameter decoding unit. A moving image decoding device that switches prediction processing between the case where the non-rectangular prediction unit is not two triangle prediction units.
前記2つのパラメータは、2つの三角形予測単位毎に予測を行う可能性があるか否かを示す第1のパラメータと、2つの三角形予測単位ではない2つの非矩形予測単位毎に予測を行うか否かを示す第2のパラメータと、を含む、請求項1に記載の動画像復号装置。 The two parameters are a first parameter indicating whether or not there is a possibility of making a prediction for each of the two triangle prediction units, and whether to make a prediction for each of two non-rectangular prediction units that are not the two triangle prediction units. The moving image decoding device according to claim 1, further comprising a second parameter indicating whether or not. 前記予測部は、前記第1のパラメータが、2つの三角形予測単位毎に予測を行う可能性があることを示し、かつ、前記第2のパラメータが、2つの三角形予測単位ではない2つの非矩形予測単位毎に予測を行わないことを示すことに少なくとも基づいて、2つの三角形予測単位について予測処理を行う、請求項2に記載の動画像復号装置。 The prediction unit indicates that the first parameter may make a prediction for each of the two triangle prediction units, and the second parameter is two non-rectangular units that are not the two triangle prediction units. The moving image decoding apparatus according to claim 2, wherein prediction processing is performed on two triangle prediction units based on at least indicating that prediction is not performed for each prediction unit. 前記2つのパラメータは、2つの非矩形予測単位毎に予測を行う可能性があるか否かを示す第1のパラメータと、2つの三角形予測単位毎に予測を行うか否かを示す第2のパラメータと、を含む、請求項1に記載の動画像復号装置。 The two parameters are a first parameter indicating whether or not prediction may be performed for each of the two non-rectangular prediction units, and a second parameter indicating whether or not prediction is performed for each of the two triangle prediction units. The moving image decoding device according to claim 1, which includes parameters. 前記予測部は、前記第1のパラメータが、2つの非矩形予測単位毎に予測を行う可能性があることを示し、かつ、前記第2のパラメータが、2つの三角形予測単位毎に予測を行うことを示すことに少なくとも基づいて、2つの三角形予測単位について予測処理を行う、請求項4に記載の動画像復号装置。 The prediction unit indicates that the first parameter may make a prediction for each of the two non-rectangular prediction units, and the second parameter makes a prediction for each of the two triangle prediction units. The moving image decoding apparatus according to claim 4, wherein prediction processing is performed on two triangle prediction units based on at least showing that. 前記予測部は、分割タイプと角度インデックスおよび距離インデックスとの対応を示す非矩形予測単位用テーブルに格納されているデータのうち、前記パラメータ復号部によって復号された前記複数のパラメータのうちの分割タイプを示す第3のパラメータであって、2つの値のうちのいずれかをとる前記第3のパラメータの値から導出された値に対応する角度インデックスおよび距離インデックスに少なくとも基づいて、2つの三角形予測単位について予測処理を行う、請求項4または5に記載の動画像復号装置。 The prediction unit is a division type among the plurality of parameters decoded by the parameter decoding unit among the data stored in the non-rectangular prediction unit table indicating the correspondence between the division type and the angle index and the distance index. Two triangle prediction units based on at least the angle index and distance index corresponding to the value derived from the value of the third parameter, which is the third parameter indicating The moving image decoding apparatus according to claim 4 or 5, wherein the prediction processing is performed on the above. 前記予測部は、分割タイプを示すインデックスの最大値は(1〜81)可変であること、と角度インデックスおよび距離インデックスとの対応を示す非矩形予測単位用テーブルに格納されているデータのうち、前記パラメータ復号部によって復号された前記複数のパラメータのうちの分割タイプを示す第3のパラメータであって、2つの値のうちのいずれかをとる前記第3のパラメータの値から導出された値に対応する角度インデックスおよび距離インデックスに少なくとも基づいて、2つの三角形予測単位について予測処理を行う、請求項4または5に記載の動画像復号装置。 Among the data stored in the non-rectangular prediction unit table indicating that the maximum value of the index indicating the division type is variable (1-81) and the correspondence between the angle index and the distance index, the prediction unit A third parameter indicating the division type of the plurality of parameters decoded by the parameter decoding unit, and a value derived from the value of the third parameter that takes either of the two values. The moving image decoding device according to claim 4 or 5, which performs prediction processing on two triangle prediction units based on at least the corresponding angle index and distance index. 前記予測部は、分割タイプと角度インデックスおよび距離インデックスとの対応を示す三角形予測単位用テーブルに格納されているデータのうち、前記パラメータ復号部によって復号された前記複数のパラメータのうちの分割タイプを示す第3のパラメータであって、2つの値のうちのいずれかをとる前記第3のパラメータの値に対応する角度インデックスおよび距離インデックスに少なくとも基づいて、2つの三角形予測単位について予測処理を行う、請求項4または5に記載の動画像復号装置。 The prediction unit determines the division type of the plurality of parameters decoded by the parameter decoding unit among the data stored in the triangle prediction unit table indicating the correspondence between the division type and the angle index and the distance index. Performs prediction processing on two triangle prediction units based on at least the angle index and distance index corresponding to the value of the third parameter, which is the third parameter shown and takes one of two values. The moving image decoding device according to claim 4 or 5. 前記2つのパラメータは、シーケンスパラメータセットで前記動画像復号装置に通知される、請求項1〜7のうちのいずれか一項に記載の動画像復号装置。 The moving image decoding device according to any one of claims 1 to 7, wherein the two parameters are notified to the moving image decoding device in a sequence parameter set. 前記第3のパラメータは、マージデータで前記動画像復号装置に通知される、請求項6または7に記載の動画像復号装置。 The moving image decoding device according to claim 6 or 7, wherein the third parameter is notified to the moving image decoding device by merge data. 複数のパラメータを符号化するパラメータ符号化部と、
対象ブロックをまたがる直線分によって前記対象ブロックが分割された2つの非矩形予測単位毎に予測を行う予測部と、
を備えている動画像符号化装置であって、
前記予測部は、前記複数のパラメータのうちの2つのパラメータの値に少なくとも基づいて、前記2つの非矩形予測単位が2つの三角形予測単位である場合と前記2つの非矩形予測単位が2つの三角形予測単位でない場合との間で、予測処理を切り替える、動画像符号化装置。
A parameter coding unit that encodes multiple parameters,
A prediction unit that makes predictions for each of two non-rectangular prediction units in which the target block is divided by a straight line that straddles the target block.
It is a moving image coding device equipped with
The prediction unit has a case where the two non-rectangular prediction units are two triangle prediction units and a case where the two non-rectangular prediction units are two triangles based on at least the values of two of the plurality of parameters. A moving image encoding device that switches prediction processing between cases that are not prediction units.
JP2019207986A 2019-11-18 2019-11-18 Moving image decoding device and moving image encoding device Pending JP2021082913A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019207986A JP2021082913A (en) 2019-11-18 2019-11-18 Moving image decoding device and moving image encoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019207986A JP2021082913A (en) 2019-11-18 2019-11-18 Moving image decoding device and moving image encoding device

Publications (1)

Publication Number Publication Date
JP2021082913A true JP2021082913A (en) 2021-05-27

Family

ID=75963307

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019207986A Pending JP2021082913A (en) 2019-11-18 2019-11-18 Moving image decoding device and moving image encoding device

Country Status (1)

Country Link
JP (1) JP2021082913A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022256353A1 (en) * 2021-05-31 2022-12-08 Beijing Dajia Internet Information Technology Co., Ltd. Methods and devices for geometric partition mode with motion vector refinement

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022256353A1 (en) * 2021-05-31 2022-12-08 Beijing Dajia Internet Information Technology Co., Ltd. Methods and devices for geometric partition mode with motion vector refinement

Similar Documents

Publication Publication Date Title
WO2021111962A1 (en) Video decoding device
WO2020184487A1 (en) Dynamic image decoding device
WO2020137920A1 (en) Prediction image generating device, moving image decoding device, moving image encoding device, and prediction image generating method
JP2021002780A (en) Video decoding device and video coding device
JP7448349B2 (en) Video decoding device
WO2021015195A1 (en) Image decoding device, image encoding device, image decoding method
JP2020088451A (en) Moving image decoding apparatus and moving image coding apparatus
WO2020045248A1 (en) Video decoding device and video coding device
JP2021150702A (en) Moving image decoding apparatus and moving image coding apparatus
JP2021027429A (en) Dynamic image encoding device and dynamic image decoding device
WO2021200658A1 (en) Dynamic image decoding device and dynamic image decoding method
WO2021200610A1 (en) Dynamic image decoding device, dynamic image coding device, dynamic image decoding method, and dynamic image coding method
JP2021082913A (en) Moving image decoding device and moving image encoding device
JP7409802B2 (en) Video decoding device and video encoding device
JP2021106309A (en) Video decoding device and video coding device
JP2020170901A (en) Predictive image generation device, video decoding device, and video coding device
JP2021034848A (en) Image decoding device
JP2020088577A (en) Predictive image generation device, moving image decoding device, and moving image encoding device
WO2019065537A1 (en) Motion compensation filter device, image decoding device, and moving image coding device
WO2021235448A1 (en) Video coding device and video decoding device
JP7465128B2 (en) Video encoding device and video decoding device
JP7378968B2 (en) Predicted image generation device, video decoding device, and video encoding device
JP2021097259A (en) Video decoding device and video coding device
JP2022150312A (en) Video decoding device and video encoding device
JP2021027458A (en) Moving image coding device, moving image decoding device, prediction image generation method