JP2022087865A - Image decoder and image encoder - Google Patents

Image decoder and image encoder Download PDF

Info

Publication number
JP2022087865A
JP2022087865A JP2020199967A JP2020199967A JP2022087865A JP 2022087865 A JP2022087865 A JP 2022087865A JP 2020199967 A JP2020199967 A JP 2020199967A JP 2020199967 A JP2020199967 A JP 2020199967A JP 2022087865 A JP2022087865 A JP 2022087865A
Authority
JP
Japan
Prior art keywords
prediction
unit
nnmvp
motion vector
merge
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
JP2020199967A
Other languages
Japanese (ja)
Inventor
天洋 周
Tianyang Zhou
知宏 猪飼
Tomohiro Igai
健 中條
Takeshi Nakajo
瑛一 佐々木
Eiichi Sasaki
知典 橋本
Tomonori Hashimoto
友子 青野
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 JP2020199967A priority Critical patent/JP2022087865A/en
Publication of JP2022087865A publication Critical patent/JP2022087865A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide a moving image decoder and a moving image encoder which perform prediction with higher accuracy of a motion vector of an object block from a plurality of pieces of motion vector information in the periphery of an encoding unit to be predicted, more accurately create a prediction image and can improve the encoding efficiency.SOLUTION: There is provided means for deriving motion vector prediction candidates more highly accurately by inputting a plurality of adjacent prediction parameters (motion vector and reference picture information) of an object block to a neural network and utilizing the parameters.SELECTED DRAWING: Figure 20

Description

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

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

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

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

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

また、近年の動画像符号化及び復号の技術として非特許文献1が挙げられる。 Further, Non-Patent Document 1 is mentioned as a technique for coding and decoding moving images in recent years.

"Versatile Video Coding (Draft 10)", JVET-S2001-v17, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 2020-09-04"Versatile Video Coding (Draft 10)", JVET-S2001-v17, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29/WG 11, 2020-09-04

しかしながら、非特許文献1に記載したマージ予測モードでは、利用可能な参照ブロックの動きベクトルを1つ選んで、あるいは2つの動きベクトルを平均して動きベクトルを
導出する。これらの導出方法は単純で、予測する符号化ユニットの周囲の動きの分布から得られる情報を用いておらず、実際の動きに十分対応できていない。また、非特許文献1のアフィンモードは、3点もしくは2点のキーポイントにおける動きベクトルを利用して、回転および拡大を含む動きを予測可能としているが、アフィンモデルに合致しない場合において、好ましい動きベクトルを算出できない。
However, in the merge prediction mode described in Non-Patent Document 1, one motion vector of an available reference block is selected, or two motion vectors are averaged to derive a motion vector. These derivation methods are simple, do not use the information obtained from the distribution of movement around the predicted coding unit, and do not sufficiently correspond to the actual movement. Further, the affine mode of Non-Patent Document 1 makes it possible to predict motion including rotation and expansion by using a motion vector at three or two key points, but it is preferable motion when it does not match the affine model. The vector cannot be calculated.

そこで、本発明の一態様は、上記の課題に鑑みてなされたものであり、その目的は、複雑かつ汎用性のある関数を実現可能なニューラルネットワークを用いて、周囲にある複数の動きベクトルから対象ブロックの動きベクトルを予測することである。これにより正確な予測画像を作成し、符号化効率を向上させることができる動画像復号装置および動画像符号化装置を提供することにある。 Therefore, one aspect of the present invention has been made in view of the above problems, and an object thereof is to use a neural network capable of realizing a complicated and versatile function from a plurality of motion vectors in the surroundings. It is to predict the motion vector of the target block. It is an object of the present invention to provide a moving image decoding device and a moving image coding device capable of creating an accurate predicted image and improving the coding efficiency.

本発明の一態様に係るマージ予測パラメータ導出部、及びAMVP予測パラメータ導出部において、対象ブロックの隣接ブロックの動きベクトルをもとに、対象ブロックのニューラルネットワーク動きベクトル(NNMVP)候補を導出するNNMVP候補導出部と、導出したNNMVP候補を格納する格納部とを備え、前記NNMVP候補導出部は、対象ブロックの空間隣接ブロック、及び時間隣接ブロックの動きベクトル情報をニューラルネットワークの入力情報として、ニューラルネットワーク処理によりNN動きベクトル出力し、利用することを特徴とする。 In the merge prediction parameter derivation unit and the AMVP prediction parameter derivation unit according to one aspect of the present invention, the NNMVP candidate for deriving the neural network motion vector (NNMVP) candidate of the target block based on the motion vector of the adjacent block of the target block. The NNMVP candidate derivation unit includes a derivation unit and a storage unit for storing the derived NNMVP candidates, and the NNMVP candidate derivation unit processes the neural network using the motion vector information of the spatially adjacent blocks and the temporally adjacent blocks of the target block as input information of the neural network. The feature is that the NN motion vector is output and used.

本発明の構成によれば、動きベクトルに加えて参照ピクチャの位置に関する情報もニューラルネットワークに入力し、予測ベクトル候補を導出することにより、参照ピクチャの位置を利用したより高精度な動きベクトルを導出する効果を奏する。 According to the configuration of the present invention, information on the position of the reference picture is input to the neural network in addition to the motion vector, and the prediction vector candidate is derived to derive a more accurate motion vector using the position of the reference picture. Has the effect of

本実施形態に係る画像伝送システムの構成を示す概略図である。It is a schematic diagram 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 equipped with the moving image coding device which concerns on this embodiment, and the receiving device equipped with 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 provided with 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 a schematic diagram 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 a schematic diagram which shows the structure of the inter prediction parameter derivation part. 本発明に係るマージ予測パラメータ導出部、および、AMVP予測パラメータ導出部の構成を示す概略図である。It is a schematic diagram which shows the structure of the merge prediction parameter derivation part and AMVP prediction parameter derivation part which concerns on this invention. インター予測画像生成部の構成を示す概略図である。It is a schematic diagram which shows the structure of the inter prediction image generation part. 動画像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of a moving image coding apparatus. インター予測パラメータ符号化部の構成を示す概略図である。It is a schematic diagram which shows the structure of the inter prediction parameter coding part. 本発明に係るマージ候補リストの概念図である。It is a conceptual diagram of the merge candidate list which concerns on this invention. 本発明によるNNMVPマージ候補導出部の構成を示す概略図である。It is a schematic diagram which shows the structure of the NNMVP merge candidate derivation part by this invention. 本発明に係るNNMVPマージ候補の導出の際に参照する動きベクトルの位置を示す図である。It is a figure which shows the position of the motion vector referred to when deriving the NNMVP merge candidate which concerns on this invention. 本発明に係るNNMVPマージ候補の導出の際に参照する動きベクトルの位置を示す図である。It is a figure which shows the position of the motion vector referred to when deriving the NNMVP merge candidate which concerns on this invention. 本発明に係るNNMVPマージ候補の導出の際に参照する動きベクトルの位置を示す図である。It is a figure which shows the position of the motion vector referred to when deriving the NNMVP merge candidate which concerns on this invention. 本発明によるNNMVPマージ候補導出部の構成を示す概略図である。It is a schematic diagram which shows the structure of the NNMVP merge candidate derivation part by this invention. 本発明によるNNMVPマージ候補導出部の構成を示す概略図である。It is a schematic diagram which shows the structure of the NNMVP merge candidate derivation part by this invention. 本発明によるNNMVPマージ候補導出部の動作を説明する図である。It is a figure explaining the operation of the NNMVP merge candidate derivation part by this invention. 本発明によるNNMVPマージ候補導出部の動作を説明する図である。It is a figure explaining the operation of the NNMVP merge candidate derivation part by this invention. 本発明によるNNMVPマージ候補導出部の動作を説明する図である。It is a figure explaining the operation of the NNMVP merge candidate derivation part by this invention. 本発明による複数の動きベクトルを導出するNNMVPマージ候補導出部の動作を説明する図である。It is a figure explaining the operation of the NNMVP merge candidate derivation part which derives a plurality of motion vectors by this invention. 本発明による複数の動きベクトルを導出するNNMVPマージ候補導出部の動作を説明する図である。It is a figure explaining the operation of the NNMVP merge candidate derivation part which derives a plurality of motion vectors by this invention. 本発明による複数の動きベクトルを導出するNNMVPマージ候補導出部の動作を説明する図である。It is a figure explaining the operation of the NNMVP merge candidate derivation part which derives a plurality of motion vectors by this invention. 本発明によるシンタクステーブルの一例である。This is an example of the syntax table according to the present invention.

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

図1は、本実施形態に係る画像伝送システム1の構成を示す概略図である。 FIG. 1 is a schematic diagram 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 coded 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 an 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 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 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 high processing power, a high-quality image is displayed, and when it has only lower processing power, a high processing power and an image that does not require display power are displayed. ..

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

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

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 smallest integer less than or equal to a.

ceil(a)はa以上の最大の整数を返す関数である。 ceil (a) is a function that returns the largest 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には、それぞれ、シーケンス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 constituting the sequence. In FIG. 4, the coded video sequence that defines the sequence SEQ, the coded picture that defines the picture PICT, the coded slice that defines the slice S, the coded slice data that defines the slice data, and the coded slice data, respectively. A diagram showing a coded tree unit included and a coded unit included in the coded tree unit is shown.

(符号化ビデオシーケンス)
符号化ビデオシーケンスでは、処理対象のシーケンスSEQを復号するために動画像復号
装置31が参照するデータの集合が規定されている。シーケンスSEQは、図4の符号化ビデオシーケンスに示すように、ビデオパラメータセット(Video Parameter Set)、シーケン
スパラメータセットSPS(Sequence Parameter Set)、ピクチャパラメータセットPPS(Picture Parameter Set)、ピクチャPICT、及び、付加拡張情報SEI(Supplemental Enhancement Information)を含んでいる。
(Coded 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 the encoded video sequence of 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), a picture PICT, and a picture PICT. Includes Supplemental Enhancement Information (SEI).

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

シーケンスパラメータセット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 SPS from PPS.

本発明では、図27のSPSに示す、符号化データがNNMVPモード(Neural Network Motion Vector Prediction)を利用するか否かを示すフラグ(sps_nnmvp_enabled_flag)が通知され
る。sps_nnmvp_enabled_flagが0の場合、NNMVPモードは使用されない。sps_nnmvp_enabled_flagが1の場合、NNMVPモードが使用される。ここで、NNMVPモードとは、インター予測の動きベクトル予測において、ニューラルネットワーク処理を用いたマージ予測モードもしくはAMVP予測モードである。具体的には、対象ブロックの周囲に位置する予め定められた複数の動きベクトル、または参照ピクチャ情報(refIdx、POC)を入力し、少なくとも動きベクトルを含む予測パラメータを導出する処理が含まれる。なお、ニューラルネットワーク処理とは、動きベクトルをスタックして入力し、入力信号と重みとの積和にバイアスを加算した線形演算する処理と、線形演算の結果を非線形関数によって変換する処理を複数回行う処理を含む。
In the present invention, a flag (sps_nnmvp_enabled_flag) indicating whether or not the coded data uses the NNMVP mode (Neural Network Motion Vector Prediction) shown in the SPS of FIG. 27 is notified. If sps_nnmvp_enabled_flag is 0, NNMVP mode is not used. If sps_nnmvp_enabled_flag is 1, NNMVP mode is used. Here, the NNMVP mode is a merge prediction mode or an AMVP prediction mode using neural network processing in the motion vector prediction of inter-prediction. Specifically, it includes a process of inputting a plurality of predetermined motion vectors located around the target block or reference picture information (refIdx, POC) and deriving a prediction parameter including at least the motion vector. The neural network process is a process of stacking motion vectors and inputting them, and performing a linear operation by adding a bias to the sum of products of input signals and weights, and a process of converting the result of the linear operation by a nonlinear function multiple times. Includes processing to be performed.

ピクチャパラメータセット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, it includes a reference value of the quantization width used for decoding a picture (pic_init_qp_minus26), a flag indicating the application of weighted prediction (weighted_pred_flag), and a scaling list (quantization matrix). There may be a plurality of PPSs. In that case, select one of a plurality of PPSs 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 the coded picture 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 having a subscript.

(符号化スライス)
符号化スライスでは、処理対象のスライス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 slices are as shown in the coded slice of Figure 4.
Contains slice header and slice data.

スライスヘッダには、対象スライスの復号方法を決定するために動画像復号装置31が参照する符号化パラメータ群が含まれる。スライスタイプを指定するスライスタイプ指定情報(slice_type)は、スライスヘッダに含まれる符号化パラメータの一例である。 The slice header contains a group of coding parameters referred to by the moving image decoding device 31 for determining 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 parameter 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 are (1) I slice that uses only intra prediction at the time of coding, (2) unidirectional prediction at the time of coding, or P slice that uses intra prediction. (3) B slices and the like using unidirectional prediction, bidirectional prediction, or intra prediction at the time of coding can be mentioned. 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の符号化スライ
スヘッダに示すように、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 contains a CTU, as shown in the coded slice header of FIG. A CTU is a block of fixed size (for example, 64x64) 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自身も最上位の符号化ノードとして規定される。
(Coded tree unit)
The coded tree unit of 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 a recursive quadtree division (QT (Quad Tree))
Division), binary tree division (BT (Binary Tree) division) or ternary tree division (TT (Ternary Tree))
It is divided into the coding unit CU, which is the basic unit of the coding process. The BT division and the TT division are collectively called a multi-tree division (MT (Multi Tree) division). A node with a tree structure 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 defined as the highest level coded node.

CTは、CT情報として、QT分割を行うか否かを示すQT分割フラグ(cu_split_flag)、MT
分割の有無を示すMT分割フラグ(split_mt_flag)、MT分割の分割方向を示すMT分割方向
(split_mt_dir)、MT分割の分割タイプを示すMT分割タイプ(split_mt_type)を含む。cu_split_flag、split_mt_flag、split_mt_dir、split_mt_typeは符号化ノード毎に伝送される。
CT is a QT division flag (cu_split_flag) indicating whether or not to perform QT division, MT as CT information.
It includes an MT division flag (split_mt_flag) indicating the presence or absence of division, an MT division direction (split_mt_dir) indicating the division direction of MT division, and an MT division type (split_mt_type) indicating the division type of MT division. cu_split_flag, split_mt_flag, split_mt_dir, split_mt_type are transmitted for each encoding node.

cu_split_flagが1の場合、符号化ノードは4つの符号化ノードに分割される(図5のQT)。 If cu_split_flag is 1, the coded node is split into 4 coded nodes (QT in Figure 5).

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

split_mt_flagが1の場合に符号化ノードは以下のようにMT分割される。split_mt_typeが0の時、split_mt_dirが1の場合に符号化ノードは2つの符号化ノードに水平分割され
(図5のBT(水平分割))、split_mt_dirが0の場合に符号化ノードは2つの符号化ノードに垂直分割される(図5のBT(垂直分割))。また、split_mt_typeが1の時、split_mt_dirが1の場合に符号化ノードは3つの符号化ノードに水平分割され(図5のTT(水平分割))、split_mt_dirが0の場合に符号化ノードは3つの符号化ノードに垂直分割される(図5のTT(垂直分割))。これらを図5のCT情報に示す。
When split_mt_flag is 1, the coded node is MT split as follows. When split_mt_type is 0, the coded node is horizontally divided into two coded nodes when split_mt_dir is 1 (BT (horizontal split) in Fig. 5), and when split_mt_dir is 0, the coded node is coded in two. It is vertically divided into nodes (BT (vertical division) in Fig. 5). Also, when split_mt_type is 1, the coding node is horizontally divided into 3 coding nodes when split_mt_dir is 1 (TT (horizontal division) in Fig. 5), and when split_mt_dir is 0, there are 3 coding nodes. It is vertically divided into coding nodes (TT (vertical division) in Fig. 5). These are shown in the CT information in FIG.

また、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. ..

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

予測処理は、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 that are further divided CUs. If the size of the CU and the sub CU are equal, there is only one sub CU in the CU. CU is a sub CU
If it is larger than the size of, the CU is divided into sub-CUs. For example, if the CU is 8x8 and the sub CU is 4x4, the CU is divided into 4 sub CUs consisting of 2 horizontal divisions and 2 vertical divisions.

予測の種類(予測モードCuPredMode)は、イントラ予測(MODE_INTRA)と、インター予測(MODE_INTER)の2つを少なくとも備える。さらにイントラブロツクコピー予測(MODE_IBC)
を備えても良い。イントラ予測、イントラブロツクコピー予測は、同一ピクチャ内の予測であり、インター予測は、互いに異なるピクチャ間(例えば、表示時刻間、レイヤ画像間)で行われる予測処理を指す。
There are at least two types of prediction (prediction mode CuPredMode): intra prediction (MODE_INTRA) and inter prediction (MODE_INTER). Intrablock copy prediction (MODE_IBC)
May be provided. Intra prediction and intrablock copy prediction are predictions within the same picture, and inter prediction refers to prediction processing performed between pictures different from each other (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-coded 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 parameters are composed of the prediction list utilization 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 a 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.

インター予測パラメータを導出するためのシンタックス要素には、例えば、マージモードで用いるマージフラグmerge_flag、マージインデックスmerge_idx、AMVPモードで用い
る参照ピクチャを選択するためのインター予測識別子inter_pred_idc、参照ピクチャインデックスrefIdxLX、動きベクトルを導出するための予測ベクトルインデックスmvp_LX_idx、差分ベクトルmvdLX、動きベクトル精度モードamvr_modeがある。
The syntax elements for deriving the inter-prediction parameters include, for example, the merge flag merge_flag used in merge mode, the merge index merge_idx, the inter-prediction identifier inter_pred_idc for selecting the reference picture used in AMVP mode, the reference picture index refIdxLX, and the motion. There is a prediction vector index mvp_LX_idx for deriving the vector, a difference vector mvdLX, and a motion vector precision 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 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 bi-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. 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として符号化される。
(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 coded 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.

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 and predFlagL0 and predFlagL1 is as follows and 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 utilization 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
(イントラ予測パラメータ)
以下、イントラ予測の予測パラメータについて説明する。イントラ予測パラメータは、輝度予測モードIntraPredModeY、色差予測モードIntraPredModeCから構成される。例えば、プレーナ予測(0)、DC予測(1)、Angular予測(それ以外)である。さらに、色差ではCCLMモード(81~83)を追加してもよい。
biPred = (inter_pred_idc == PRED_BI)? 1: 0
(Intra prediction parameters)
Hereinafter, the prediction parameters of the intra prediction will be described. The intra prediction parameters are composed of the luminance prediction mode IntraPredModeY and the color difference prediction mode IntraPredModeC. For example, planar prediction (0), DC prediction (1), Angular prediction (other than that). Further, for color difference, CCLM mode (81 to 83) may be added.

(動画像復号装置の構成)
本実施形態に係る動画像復号装置31(図7)の構成について説明する。
(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 generation unit (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 (predictive mode decoding unit), and the CU decoding unit 3022 further includes a TU decoding unit 3024. These may be collectively 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 coded 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 coded 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 coded 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 coded data.
Further, the TU decoding unit 3024 decodes the index stIdx indicating the use of the secondary conversion and the conversion basis from the coded 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.

予測画像生成部308は、インター予測画像生成部309(図9)及びイントラ予測画像生成
部を含んで構成される。
The predictive image generation unit 308 includes an inter-predictive image generation unit 309 (FIG. 9) and an intra-predictive 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, examples of using CTU and CU 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 a 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 a 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 the 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 coded 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 will perform S1300 to S5000 for each CTU included in the target picture.
The decoded image of each CTU is derived by repeating the process of.

(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 coded 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 coded 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 coded data when the TU contains a prediction error. The QP update information is a difference value from the quantized parameter predicted value qPpred, which is the predicted value of the quantized parameter QP.

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

(S3000:逆量子化・逆変換)逆量子化・逆変換部311は、対象CUに含まれる各TUについて、逆量子化・逆変換処理を実行する。 (S3000: Inverse quantization / inverse conversion) The inverse quantization / inverse conversion unit 311 executes the inverse quantization / inverse conversion process 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、MV加算部3038は、動画像符号化装置、動画像復号装置で共通する手段であるので、これらを総称して動きベクトル導出部(動きベクトル導出装置)と称してもよい。
(Structure of inter-prediction parameter derivation part)
The inter-prediction parameter derivation unit 303 derives the inter-prediction parameter by referring to the prediction parameter stored in the prediction parameter memory 307 based on the syntax element input from the parameter decoding unit 302. Further, the inter-prediction parameter is output to the inter-prediction image generation unit 309 and the prediction parameter memory 307. Since the inter-prediction parameter derivation unit 303 and its internal elements AMVP prediction parameter derivation unit 3032, merge prediction parameter derivation unit 3036, and MV addition unit 3038 are common means for the motion image coding device and the motion image decoding device. , These may be collectively referred to as a motion vector derivation unit (motion vector derivation device).

merge_flagが1、すなわち、マージ予測モードを示す場合、merge_idxを導出し、マー
ジ予測パラメータ導出部3036に出力する。
When merge_flag is 1, that is, 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.

(マージ予測)
図10(a)は、本実施形態に係るマージ予測パラメータ導出部3036の構成を示す概略図で
ある。マージ予測パラメータ導出部3036は、マージ候補導出部30361、マージ候補選択部30362、マージ候補格納部30363を備える。なお、マージ候補は、予測パラメータ(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, a merge candidate selection unit 30362, and a merge candidate storage unit 30363. 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は、NNMVP(Neural Network Motion Vector Prediction)マージ候補導出処理、空間マージ候補導出処理、時間マージ候補導出処理、
ペアワイズマージ候補導出処理、およびゼロマージ候補導出処理を適用してもよい。マージ候補導出部30361は、NNMVPマージ候補導出部30366、空間マージ候補導出部30364、時間マージ候補導出部30365、ペアワイズマージ候補導出部30367、およびゼロマージ候補導出部30368からなる。
The merge candidate derivation unit 30361 derives the merge candidate from the motion vector of the decoded adjacent block and refIdxLX. The merge candidate derivation unit 30361 includes NNMVP (Neural Network Motion Vector Prediction) merge candidate derivation process, spatial merge candidate derivation process, time merge candidate derivation process, and
A pairwise merge candidate derivation process and a zero merge candidate derivation process may be applied. The merge candidate derivation unit 30361 includes an NNMVP merge candidate derivation unit 30366, a spatial merge candidate derivation unit 30364, a time merge candidate derivation unit 30365, a pairwise merge candidate derivation unit 30367, and a zero merge candidate derivation unit 30368.

NNMVPマージ候補導出部30366は、複数の予測パラメータから1つの予測パラメータ(NNMVPマージ候補)を、ニューラルネットワークを用いて導出する。 The NNMVP merge candidate derivation unit 30366 derives one prediction parameter (NNMVP merge candidate) from a plurality of prediction parameters using a neural network.

空間マージ候補導出部30364は、所定の規則に従って、予測パラメータメモリ307が記憶している予測パラメータを読み出し、マージ候補に設定する。マージ候補は、例えば、対象ブロックから予め定めた範囲内にある隣接ブロック(例えば、対象ブロックの左A1、右B1、右上B0、左下A0、左上B2にそれぞれ接するブロックの全部または一部)のそれぞれに係る予測パラメータである。各々のマージ候補をA1,B1,B0,A0,B2と呼び、下記の座標を含むブロックから導出される予測パラメータである。図16(a)にA1,B1,B0,A0,B2の位置を示
す。
The spatial merge candidate derivation unit 30364 reads out the prediction parameters stored in the prediction parameter memory 307 and sets them as merge candidates according to a predetermined rule. The merge candidates are, for example, adjacent blocks within a predetermined range from the target block (for example, all or part of the blocks in contact with the left A1, right B1, upper right B0, lower left A0, and upper left B2 of the target block). It is a prediction parameter related to. Each merge candidate is called A1, B1, B0, A0, B2, and is a prediction parameter derived from a block containing the following coordinates. Figure 16 (a) shows the positions of A1, B1, B0, A0, 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.

時間マージ候補導出部30365は、参照画像において対象ブロックの右下ブロックC[0]、
あるいは、中央の座標を含むブロックC[1]の予測パラメータを、予測パラメータメモリ307から読み出して、マージ候補Colを導出する。ブロックC[0]、C[1]の一例を図16(b)に示す。
The time merge candidate derivation unit 30365 is the lower right block C [0] of the target block in the reference image.
Alternatively, the prediction parameter of the block C [1] including the central coordinate is read from the prediction parameter memory 307, and the merge candidate Col is derived. An example of blocks C [0] and C [1] is shown in FIG. 16 (b).

ペアワイズ候補導出部30367は、マージ候補リストに格納済みの2つのマージ候補の平
均からペアワイズ候補avgKを導出する。
The pairwise candidate derivation unit 30367 derives the pairwise candidate avgK from the average of the two merge candidates stored in the merge candidate list.

ゼロマージ候補導出部30368は、refIdxLXが0…Mであり、mvLXのX成分、Y成分が共に0
であるゼロマージ候補Z0,…, ZMを導出する。
In the zero merge candidate derivation unit 30368, refIdxLX is 0… M, and both the X component and Y component of mvLX are 0.
Derivation of zero merge candidates Z0, ..., ZM.

マージ候補格納部30363は、マージ候補選択部30362が選択したマージ候補を、マージ候補リスト(mergeCandList[])に格納する。 The merge candidate storage unit 30363 stores the merge candidates selected by the merge candidate selection unit 30362 in the merge candidate list (mergeCandList []).

マージ候補格納部30363がマージ候補をmergeCandList[]に格納する順番は、例えば、NNMVP候補、空間マージ候補(A1,B1,B0,A0,B2)、時間マージ候補Col、ペアワイズ候補avgK、ゼロマージ候補ZKである。図14にマージ候補リストの一例を示す。なお、マージ候補Nの利用可能性を示すフラグavailableFlagNが1の場合のみ、マージ候補Nをマージ候補リストに格納する。availableFlagNが0の場合はマージ候補リストに格納しない。
i = 0
if( availableFlagNNMVP)
mergeCandList[ i++ ] = NNMVP
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 in which the merge candidate storage unit 30363 stores the merge candidates in the mergeCandList [] is, for example, NNMVP candidate, spatial merge candidate (A1, B1, B0, A0, B2), time merge candidate Col, pairwise candidate avgK, zero merge candidate ZK. Is. Figure 14 shows an example of the merge candidate list. The merge candidate N is stored in the merge candidate list only when the flag availableFlagN indicating the availability of the merge candidate N is 1. If availableFlagN is 0, it is not stored in the merge candidate list.
i = 0
if (availableFlagNNMVP)
mergeCandList [i ++] = NNMVP
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は、マージ候補を示すラベルであり、NNMVP,A1,B1,B0,A0,B2,Col,avgK,ZKのい
ずれかである。ラベルNで示されるマージ候補の予測パラメータは(mvLXN[0], mvLXN[1]
)、predFlagLXN, refIdxLXNで示される。
N = mergeCandList [merge_idx]
Here, N is a label indicating a merge candidate, and is one of NNMVP, A1, B1, B0, A0, B2, Col, avgK, and ZK. The predictive parameters of merge candidates indicated by label N are (mvLXN [0], mvLXN [1].
), PredFlagLXN, refIdxLXN.

マージ候補としてNNMVPが選択された場合、対象ブロックから動きベクトルmvLXNNMVPだけシフトした、参照ピクチャRefPicListX[refIdxLXMMNVP]上の画像を読み出し、予測画像とする。 When NNMVP is selected as a merge candidate, the image on the reference picture RefPicListX [refIdxLXMMNVP] shifted by the motion vector mvLXNNMVP from the target block is read out and used as the predicted image.

マージ候補選択部30362は、選択したマージ候補のインター予測パラメータ((mvLXN[0], mvLXN[1])、predFlagLXN、refIdxLXN)を予測パラメータメモリ307に記憶するとともに、インター予測画像生成部309に出力する。 The merge candidate selection unit 30362 stores the selected merge candidate inter-prediction parameters ((mvLXN [0], mvLXN [1]), predFlagLXN, refIdxLXN) in the prediction parameter memory 307 and outputs them to the inter-prediction image generation unit 309. do.

(参照ブロックの利用可能性判定)
(xNbY, yNbY)をブロックの左上座標とする隣接ブロック(参照ブロック)の対象ブロックに対する利用可能性availableNは、以下のように導出してもよい。以下のいずれかが真の場合には、availableNを偽とする。
・xNbY < 0
・yNbY < 0
・xNbY >= pps_pic_width_in_luma_samples
・yNbY >= pps_pic_height_in_luma_samples
・( xNbY>>CtbLog2SizeY) > (xCurr>>CtbLog2SizeY) and (yNbY>>CtbLog2SizeY) >= (yCurr>>CtbLog2SizeY)
・(yNbY>>CtbLog2SizeY) >= (yCurr>>CtbLog2SizeY)+1
・隣接ブロックが対象ブロックと異なるスライスに含まれている。
・隣接ブロックが対象ブロックと異なるタイルに含まれている。
・ウェーブフロントフラグ(エントロピー符号同期フラグ)sps_entropy_coding_sync_enabled_flagが1かつ(xNbY>>CtbLog2SizeY) >= (xCurr>>CtbLog2SizeY)+1.
それ以外の場合はavailableNを真とする。
(Availability judgment of reference block)
The availability N for the target block of the adjacent block (reference block) whose upper left coordinate of the block is (xNbY, yNbY) may be derived as follows. If any of the following is true, then availableN is false.
・ XNbY <0
・ YNbY <0
・ XNbY> = pps_pic_width_in_luma_samples
・ YNbY> = pps_pic_height_in_luma_samples
・ (XNbY >>CtbLog2SizeY)> (xCurr >> CtbLog2SizeY) and (yNbY >>CtbLog2SizeY)> = (yCurr >> CtbLog2SizeY)
・ (YNbY >>CtbLog2SizeY)> = (yCurr >> CtbLog2SizeY) +1
-The adjacent block is included in a slice different from the target block.
-The adjacent block is included in a tile different from the target block.
-Wave front flag (entropy code synchronization flag) sps_entropy_coding_sync_enabled_flag is 1 and (xNbY >>CtbLog2SizeY)> = (xCurr >> CtbLog2SizeY) +1.
Otherwise, set availableN to true.

上記判定の後、さらに以下の条件が全て真の場合は、availableNを偽とする。
・checkPredModeY == TRUE.
・CuPredMode[0][xNbY][yNbY] != CuPredMode[0][xCurr][yCurr]
ここでpps_pic_width_in_luma_samples、pps_pic_height_in_luma_samplesは画面サイズ
、CtbLog2SizeYはCTUサイズである。X座標、Y座標をCtbLog2SizeYだけ右シフト(>>)す
ることで、CTU単位のX座標, Y座標が得られる。CuPredModeは、予測モードを示し、MODE_INTRA、MODE_INTER、MODE_IBCのいずれかであってもよい。また、checkPredMoeYは、インター予測や動きベクトル予測、マージ予測の場合に1、それ以外の場合に0とする。つまり、対象ブロックがインター予測ブロック(CuPredMode[0][xCurr][yCurr]==MODE_INTRA)
で、参照ブロックがイントラ予測ブロック(uPredMode[0][xNbY][yNbY]==MODE_INTRA)の場合には、availableNを偽とする。
After the above judgment, if all of the following conditions are true, availableN is set to false.
・ CheckPredModeY == TRUE.
-CuPredMode [0] [xNbY] [yNbY]! = CuPredMode [0] [xCurr] [yCurr]
Here, pps_pic_width_in_luma_samples and pps_pic_height_in_luma_samples are the screen size, and CtbLog2SizeY is the CTU size. By shifting the X and Y coordinates to the right (>>) by CtbLog2SizeY, the X and Y coordinates in CTU units can be obtained. CuPredMode indicates the prediction mode and may be any of MODE_INTRA, MODE_INTER, and MODE_IBC. Further, checkPredMoeY is set to 1 in the case of inter-prediction, motion vector prediction, and merge prediction, and 0 in other cases. That is, the target block is an inter-prediction block (CuPredMode [0] [xCurr] [yCurr] == MODE_INTRA)
If the reference block is an intra prediction block (uPredMode [0] [xNbY] [yNbY] == MODE_INTRA), availableN is false.

本発明に係るNNMVPマージ候補の導出方法について説明する。 A method for deriving the NNMVP merge candidate according to the present invention will be described.

(NNMVPマージ候補導出)
(実施形態1:空間隣接ベクトルを利用する例)
図10のNNMVPマージ候補導出部30366の一例を図15に示す。NNMVPマージ候補導出部30366は、ベクトル導出部3661と、NNベクトル導出部3662から構成される。
(Derivation of NNMVP merge candidates)
(Embodiment 1: Example of using spatial adjacency vector)
An example of the NNMVP merge candidate derivation unit 30366 in FIG. 10 is shown in FIG. The NNMVP merge candidate derivation unit 30366 is composed of a vector derivation unit 3661 and an NN vector derivation unit 3662.

sps_nnmvp_enabled_flagが1の場合、NNMVPマージ候補導出部30366は対象ブロックCurBLKの空間隣接ブロックを用いて、ニューラルネットワーク処理により対象ブロックのマージ候補を導出する。 When sps_nnmvp_enabled_flag is 1, NNMVP merge candidate derivation unit 30366 derives the merge candidate of the target block by neural network processing using the spatially adjacent block of the target block CurBLK.

ステップ1)空間隣接ブロックの動きベクトル導出
空間動きベクトル導出部36611は、図16(a)に示す、対象ブロックの左下A0、左A1、左上B2、右上B0、上B1にそれぞれ接するブロックの予測パラメータを導出する。各々の動きベクトルをmvA0, mvA1, mvB2, mvB0, mvB1で示す。ブロックKのX方向、Y方向の動きベクト
ルをmvK[0], mvK[1]で示す。なお、この処理を行わず、前記図10(a)に示すマージ予測パ
ラメータ導出部30361の空間マージ候補導出部30364の出力を用いてもよい。
Step 1) Derivation of motion vector of spatially adjacent blocks The spatial motion vector derivation unit 36611 shows the prediction parameters of the blocks in contact with the lower left A0, left A1, upper left B2, upper right B0, and upper B1 of the target block, respectively, as shown in Fig. 16 (a). Is derived. Each motion vector is shown by mvA0, mvA1, mvB2, mvB0, mvB1. The motion vectors of the block K in the X and Y directions are shown by mvK [0] and mvK [1]. It should be noted that the output of the spatial merge candidate derivation unit 30364 of the merge prediction parameter derivation unit 30361 shown in FIG. 10A may be used without performing this processing.

ステップ2)ニューラルネットワーク処理
図15において、NNベクトル導出部3662は、ステップ1)で求めた動きベクトルnumMV個
を入力する。例えば、高さH、幅W、チャネル数CのテンソルにおいてH=1、W=1、C=2となる、1x1x2の動きベクトルをnumMV個スタックして結合し、1x1x(2xnumMV)のテンソルを生成して入力する。ここで、動きベクトルのX成分、Y成分をチャネル成分とする。本実施形態ではnumMB=5の例を示し、入力テンソルは(mvLXA0[0], mvLXA0[1], mvLXA1[0], mvLXA1[1], mvLXB0[0], mvLXB0[1], mvLXB1[0], mvLXB1[1], mvLXB2[0], mvLXB2[1])の(1x1x10)テンソルである。
Step 2) Neural network processing In Fig. 15, the NN vector derivation unit 3662 inputs numMV motion vectors obtained in step 1). For example, in a tensor with height H, width W, and number of channels C, numMV motion vectors with H = 1, W = 1, and C = 2 are stacked and combined to generate a 1x1x (2xnumMV) tensor. And enter. Here, let the X and Y components of the motion vector be the channel components. In this embodiment, an example of numMB = 5 is shown, and the input tensors are (mvLXA0 [0], mvLXA0 [1], mvLXA1 [0], mvLXA1 [1], mvLXB0 [0], mvLXB0 [1], mvLXB1 [0]. , mvLXB1 [1], mvLXB2 [0], mvLXB2 [1]) (1x1x10) tensor.

NNベクトル導出部3662は、ニューラルネットワーク処理によって、1x1x2テンソルを出
力する。この1x1x2テンソルのチャネル成分を動きベクトルのX成分、Y成分としてマージ
候補を出力する。
The NN vector derivation unit 3662 outputs a 1x1x2 tensor by neural network processing. The channel component of this 1x1x2 tensor is used as the X component and Y component of the motion vector, and merge candidates are output.

NNベクトル導出部3662は、フルコネクション(Dense)の処理に、Reluなどのアクティベ
ーション層をつなげた処理を繰り返す処理であってもよい。ここで図15のConcatは、入力された複数のテンソルもしくはベクトルをスタックして、一つのテンソルを導出する処理である。ここではnumMV個の2次元ベクトルから1x1x(2*numMV)のテンソルを生成する。フルコネクション(Dense)とは、入力の全ての成分を制限なく利用するものである。ここ
では高さ1、幅1としているので、Conv処理を用いても同じ処理となる。Conv処理は、画素単位でカーネルに含まれる一部の入力しか用いない処理である。なお、NNとは、ニューラルネットワークの略であり、入力と重み成分の積和にバイアス(これも重みの一種)を加算する処理 もしくは、アクティベーションと呼ばれる非線形関数を適用する処理を示す。Reluは、アクティベーションの一種であり、max(0, x)で示される関数である。アクティベーションはReluの他、以下のLeaky Relu (lrelu)関数やPRelu関数等であってもよい。
The NN vector derivation unit 3662 may be a process of repeating a process of connecting an activation layer such as Relu to a process of full connection (Dense). Here, Concat in FIG. 15 is a process of stacking a plurality of input tensors or vectors to derive one tensor. Here, a 1x1x (2 * numMV) tensor is generated from numMV two-dimensional vectors. A full connection (Dense) is to use all the components of the input without limitation. Here, the height is 1 and the width is 1, so even if the Conv process is used, the process is the same. Conv processing is processing that uses only some of the inputs included in the kernel on a pixel-by-pixel basis. Note that NN is an abbreviation for neural network, and indicates a process of adding a bias (also a type of weight) to the sum of products of inputs and weight components, or a process of applying a nonlinear function called activation. Relu is a type of activation and is a function represented by max (0, x). In addition to Relu, the activation may be the following Leaky Relu (lrelu) function, PRelu function, or the like.

f(x) = x (x>=0), ax (x<0)
PReluはlreduと同じ関数であるが、aの値として個別に学習された値を用いる。また、内
部で、複数のネットワークに分割してから1つのネットワークにまとめてもよい。その他、ニューラルネットワークはカーネルと呼ばれるフィルタをかけるconvなどを用いてもよい。
f (x) = x (x> = 0), ax (x <0)
PRelu is the same function as lredu, but uses individually learned values as the value of a. Further, it may be internally divided into a plurality of networks and then combined into one network. In addition, the neural network may use a conv or the like to apply a filter called a kernel.

上記の構成によれば、対象ブロックの周囲に位置する予め定められた3つ以上の動きベクトルを同時にNNベクトル導出部3662に入力して動きベクトルを導出することにより、高精度なマージ候補を導出するという効果を奏する。 According to the above configuration, highly accurate merge candidates are derived by simultaneously inputting three or more predetermined motion vectors located around the target block into the NN vector derivation unit 3662 to derive the motion vector. It has the effect of doing.

(動きベクトルがない場合の扱い)
ベクトル導出部3661において、動きベクトルが利用可能ではない場合(参照ブロックの利用可能性判定において参照ブロックが利用可能ではない場合)には、特定の値の動きベクトルをNNベクトル導出部3662に入力する。動きベクトルが利用可能ではない場合とは、参照ブロックがイントラ予測である場合、画面外にある場合、対象ブロックとは別のスライスにある場合などである。特定の値で、動きベクトルが実際には利用可能ではないことを示す必要があるので、従来の動きベクトルの範囲では利用されない値を利用するのが良い。例えば有効な動きベクトルの範囲が、-(1<<NN)から(1<<NN)-1)の間の値である場合
には、特定の値は、有効な範囲を超えた値-(1<<(NN+1))や(1<<(NN+1))-1としてもよい。
つまりNN=17の場合、2の18乗である-262144や262143であってもよい。なお、後述するよ
うに、参照ピクチャ情報を動きベクトルとは別に入力する構成では、動きベクトルは特定の値の動きベクトルと参照ピクチャ情報をNNベクトル導出部3662に入力する。
(Handling when there is no motion vector)
In the vector derivation unit 3661, when the motion vector is not available (when the reference block is not available in the availability determination of the reference block), the motion vector of a specific value is input to the NN vector derivation unit 3662. .. The case where the motion vector is not available is when the reference block is an intra prediction, when it is off the screen, when it is in a slice different from the target block, and so on. Since it is necessary to show that the motion vector is not actually available at a specific value, it is better to use a value that is not used in the range of the conventional motion vector. For example, if the range of valid motion vectors is between-(1 << NN) and (1 << NN) -1), then a particular value is beyond the valid range-( It may be 1 << (NN + 1)) or (1 << (NN + 1)) -1.
In other words, when NN = 17, it may be -262144 or 262143, which is 2 to the 18th power. As will be described later, in the configuration in which the reference picture information is input separately from the motion vector, the motion vector having a specific value and the reference picture information are input to the NN vector derivation unit 3662.

上記のように、対象ブロック周辺の複数の動きベクトルをチャネル方向に結合してニューラルネットワーク処理に入力し、1つの動きベクトルを導出するNNMVPマージ候補導出部30366によって、高精度なマージ候補を導出するという効果を奏する。 As described above, multiple motion vectors around the target block are combined in the channel direction and input to the neural network process, and the NNMVP merge candidate deriving unit 30366 that derives one motion vector derives highly accurate merge candidates. It plays the effect.

また、動きベクトルが存在しない場合、所定の値で代用することによって、周囲に動きベクトルが存在しない場合でも、高精度なマージ候補を導出する効果を奏する。 Further, when the motion vector does not exist, by substituting a predetermined value, even if the motion vector does not exist in the surroundings, the effect of deriving a highly accurate merge candidate can be obtained.

(実施形態2:時間隣接ベクトルを利用する例)
図19は、NNMVPマージ候補導出部30366aの構成を示す概略図である。NNMVPマージ候補導出部30366aは、ベクトル導出部3661aと、NNベクトル導出部3662aから構成される。
(Embodiment 2: Example of using a time-adjacent vector)
FIG. 19 is a schematic diagram showing the configuration of the NNMVP merge candidate derivation unit 30366a. The NNMVP merge candidate derivation unit 30366a is composed of a vector derivation unit 3661a and an NN vector derivation unit 3662a.

sps_nnmvp_enabled_flagが1の場合、NNMVPマージ候補導出部30366aは対象ブロックCurBLKの空間隣接ブロック、および、対象ブロックの時間隣接ブロック(コロケートブロック)の動きベクトルを用いて、ニューラルネットワーク処理により対象ブロックのマージ候補を導出する。 When sps_nnmvp_enabled_flag is 1, the NNMVP merge candidate derivation unit 30366a uses the motion vector of the spatially adjacent block of the target block CurBLK and the temporally adjacent block (colocated block) of the target block to select the merge candidate of the target block by neural network processing. Derived.

ステップ1)空間隣接ブロックの動きベクトル導出
空間動きベクトル導出部36611は実施形態1のステップ1)と同じであり、説明を省略
する。
Step 1) Derivation of motion vector of spatially adjacent blocks The spatial motion vector derivation unit 36611 is the same as step 1) of the first embodiment, and the description thereof will be omitted.

ステップ2)コロケートブロックの動きベクトル導出
時間動きベクトル導出部36612は、コロケートピクチャ上で、対象ブロックと同じ位置
のブロック(コロケートブロック)に対し、右下位置を含むブロック、中央位置を含むブロックの順番に、動きベクトルが利用可能か否かをチェックする。動きベクトルが利用可能である場合にそのブロックをCとし、Cの動きベクトルを時間動きベクトル(temporal motion vector)(mvLXC[0], mvLXC[1])として導出する。
Step 2) Derivation of motion vector of colocate block The time motion vector derivation unit 36612 displays the block including the lower right position and the block including the center position with respect to the block at the same position as the target block (colocate block) on the colocate picture. Also, check if the motion vector is available. If a motion vector is available, let C be the block, and derive the motion vector of C as a temporal motion vector (mvLXC [0], mvLXC [1]).

コロケートピクチャは、参照ピクチャリストRefPicListX、参照ピクチャインデックスcollocated_ref_idxで示される参照ピクチャRefPicListX[collocated_ref_idx]である。collocated_ref_idxはスライスヘッダで通知されるコロケートピクチャの参照ピクチャインデックスである。なお、この処理を行わず、図10(a)に示すマージ候補導出部30361の時間マージ候補導出部30365の出力を用いてもよい。 The collaged picture is a reference picture list RefPicListX, a reference picture RefPicListX [collocated_ref_idx] indicated by the reference picture index collocated_ref_idx. collocated_ref_idx is the reference picture index of the collocated picture notified in the slice header. Note that this process may not be performed, and the output of the time merge candidate derivation unit 30365 of the merge candidate derivation unit 30361 shown in FIG. 10A may be used.

ステップ3)ニューラルネットワーク処理
前記ステップ1)~2)で取得した隣接ブロックの動きベクトル(隣接動きベクトル、隣接ベクトル)をNNベクトル導出部3662aの入力とする。NNベクトル導出部3662aでは隣接動きベクトルをnumMV個入力する。例えば、高さH、幅W、チャネル数Cのテンソルは、H=1
、W=1、C=2の場合、1x1x2のテンソルである。これををnumMV個結合し、1x1x2xnumMVのテ
ンソルを生成して入力する。ここで、動きベクトルのX成分、Y成分をチャネル成分とする。ステップ1)と2)を合わせてnumMB=6であるので、入力テンソルは(mvLXA0[0], mvLXA0[1], mvLXA1[0], mvLXA1[1], mvLXB0[0], mvLXB0[1], mvLXB1[0], mvLXB1[1], mvLXB2[0], mvLXB2[1], mvLXC[0], mvLXC[1])の1x1x12テンソルである。
Step 3) Neural network processing The motion vector (adjacent motion vector, adjacent vector) of the adjacent block acquired in the above steps 1) and 2) is used as the input of the NN vector derivation unit 3662a. In the NN vector derivation unit 3662a, numMV of adjacent motion vectors are input. For example, a tensor with height H, width W, and number of channels C has H = 1.
, W = 1, C = 2, it is a 1x1x2 tensor. Combine these numMV pieces to generate a 1x1x2xnumMV tensor and input it. Here, let the X and Y components of the motion vector be the channel components. Since numMB = 6 is the sum of steps 1) and 2), the input tensors are (mvLXA0 [0], mvLXA0 [1], mvLXA1 [0], mvLXA1 [1], mvLXB0 [0], mvLXB0 [1], It is a 1x1x12 tensor of mvLXB1 [0], mvLXB1 [1], mvLXB2 [0], mvLXB2 [1], mvLXC [0], mvLXC [1]).

NNベクトル導出部3662aは、ニューラルネットワーク処理によって、1x1x2テンソルを出力する。この1x1x2テンソルのチャネル成分を動きベクトルのX成分、Y成分としてマージ
候補を出力する。
The NN vector derivation unit 3662a outputs a 1x1x2 tensor by neural network processing. The channel component of this 1x1x2 tensor is used as the X component and Y component of the motion vector, and merge candidates are output.

(実施形態3:複数の時間隣接ベクトルを利用する例)
図20は、NNMVPマージ候補導出部30366bの構成を示す概略図である。NNMVPマージ候補導出部30366bは、ベクトル導出部3661bと、NNベクトル導出部3662bから構成される。この例では、時間動きベクトル導出部36612bが2つ以上の時間動きベクトルを導出することが特徴である。
(Embodiment 3: Example of using a plurality of time-adjacent vectors)
FIG. 20 is a schematic diagram showing the configuration of the NNMVP merge candidate derivation unit 30366b. The NNMVP merge candidate derivation unit 30366b is composed of a vector derivation unit 3661b and an NN vector derivation unit 3662b. This example is characterized in that the time motion vector derivation unit 36612b derives two or more time motion vectors.

ステップ1)実施形態2のステップ1)と同じであり、説明を省略する。 Step 1) This is the same as step 1) of the second embodiment, and the description thereof will be omitted.

ステップ2)コロケートブロックの動きベクトル導出
時間動きベクトル導出部36612bは、コロケートピクチャ上で、コロケートブロックに対し、右下位置を含むブロックC0、中央位置を含むブロックC1の2つのブロックから時間動きベクトル(mvLXC0[0],mvLXC0[1])と(mvLXC1[0],mvLXC1[1])を導出する。それ以外の処理は実施形態2のステップ2)と同じであり、説明を省略する。
Step 2) Derivation of motion vector of colocate block The time motion vector derivation unit 36612b is a time motion vector (time motion vector) from two blocks, block C0 including the lower right position and block C1 including the center position, with respect to the colocate block. Derive mvLXC0 [0], mvLXC0 [1]) and (mvLXC1 [0], mvLXC1 [1]). The other processing is the same as step 2) of the second embodiment, and the description thereof will be omitted.

ステップ3)ニューラルネットワーク処理
前記ステップ1)~2)で取得した動きベクトルをNNベクトル導出部3662bの入力とす
る。NNベクトル導出部3662bでは隣接動きベクトルをnumMV個入力する。例えば、動きベク
トルから構成される1x1x2のテンソルをnumMV個結合し、1x1x2xnumMVのテンソルを生成し
て入力する。ここで、動きベクトルのX成分、Y成分をチャネル成分とする。ステップ1)~2)ではnumMB=7であるので、入力テンソルは(mvLXA0[0], mvLXA0[1], mvLXA1[0], mvLXA1[1], mvLXB0[0], mvLXB0[1], mvLXB1[0], mvLXB1[1], mvLXB2[0], mvLXB2[1], mvLXC0[0], mvLXC0[1] , mvLXC1[0], mvLXC1[1])の1x1x14テンソルである。
それ以外の処理は実施形態2のステップ3)と同じであり、説明を省略する。
Step 3) Neural network processing The motion vector acquired in steps 1) and 2) is used as the input of the NN vector derivation unit 3662b. In the NN vector derivation unit 3662b, numMV of adjacent motion vectors are input. For example, numMV tensors of 1x1x2 tensors composed of motion vectors are combined to generate and input 1x1x2x numMV tensors. Here, let the X and Y components of the motion vector be the channel components. Since numMB = 7 in steps 1) and 2), the input tensors are (mvLXA0 [0], mvLXA0 [1], mvLXA1 [0], mvLXA1 [1], mvLXB0 [0], mvLXB0 [1], mvLXB1 [ It is a 1x1x14 tensor of 0], mvLXB1 [1], mvLXB2 [0], mvLXB2 [1], mvLXC0 [0], mvLXC0 [1], mvLXC1 [0], mvLXC1 [1]).
The other processing is the same as step 3) of the second embodiment, and the description thereof will be omitted.

図21は、本発明によるNNMVPマージ候補導出部30366の動作を説明する図である。図21のNNベクトル導出部3662は、実施形態1~3のNNベクトル導出部3662、3662a、3662bのいずれかであってもよい。複数の隣接動きベクトルを入力して1つの動きベクトルを導出する。ここで、K1, K2, K3, …, KNは参照ブロックを示すラベルである。上述したように、A0, A1, B0, B1, B2, CやC1, C2のいずれかを用いてもよい。また、K1, K2, K3, …, KNとして別の位置の参照ブロックを利用してもよい(以下同様)。 FIG. 21 is a diagram illustrating the operation of the NNMVP merge candidate derivation unit 30366 according to the present invention. The NN vector derivation unit 3662 in FIG. 21 may be any of the NN vector derivation units 3662, 3662a, and 3662b of the first to third embodiments. One motion vector is derived by inputting a plurality of adjacent motion vectors. Here, K1, K2, K3, ..., KN are labels indicating reference blocks. As described above, any of A0, A1, B0, B1, B2, C and C1, C2 may be used. Further, reference blocks at different positions may be used as K1, K2, K3, ..., KN (the same applies hereinafter).

実施形態1~3の違いは、入力する時間方向の隣接動きベクトルの個数(0、1、複数)である。 The difference between the first to third embodiments is the number (0, 1, plural) of adjacent motion vectors in the time direction to be input.

(実施形態4:対象ブロックに隣接しない参照ブロックを利用する例)
ニューラルネットワークに入力する対象ブロックの周囲の動きベクトルとして、近傍ブロックを参照してもよい。対象ブロックに辺または点を接する隣接ブロックに加え、直接接しないブロックも含めて近傍ブロックと呼ぶ。つまり、図17(a)に示すように、対象ブ
ロックの左上位置(xCb, yCb)を水平あるいは垂直方向に延長した直線に接するブロックを参照してもよい。上側近傍ブロックはy座標が(yPb-1)である位置を含むブロックであり、左側近傍ブロックはx座標が(xPb-1)の位置を含むブロックである。そしてNNMVPマージ候補導出部30366cには近傍ブロックの動きベクトルを入力する。それ以外の動作は、実施形態1~3と同様なので説明を省略する。ここで、NNMVPマージ候補導出部30366cは前記実施形態1~3のNNMVPマージ候補導出部30366、30366a、30366bを置き換えたものである。
(Embodiment 4: Example of using a reference block that is not adjacent to the target block)
A neighboring block may be referred to as a motion vector around the target block to be input to the neural network. In addition to adjacent blocks that touch the target block with edges or points, blocks that do not touch the target block are also called neighborhood blocks. That is, as shown in FIG. 17 (a), the block tangent to the straight line extending the upper left position (xCb, yCb) of the target block in the horizontal or vertical direction may be referred to. The upper neighborhood block is a block containing the position where the y coordinate is (yPb-1), and the left neighborhood block is a block containing the position where the x coordinate is (xPb-1). Then, the motion vector of the neighboring block is input to the NNMVP merge candidate derivation unit 30366c. Since the other operations are the same as those in the first to third embodiments, the description thereof will be omitted. Here, the NNMVP merge candidate derivation unit 30366c replaces the NNMVP merge candidate derivation units 30366, 30366a, and 30366b of the first to third embodiments.

例えば、以下の位置のブロックを用いてもよい。この場合、NNMVPマージ候補導出部30366cの含む空間動きベクトル導出部36611cは、図17(a)の11個の近傍動きベクトルを入力し、1個の動きベクトルを導出する。 For example, blocks at the following positions may be used. In this case, the spatial motion vector derivation unit 36611c included in the NNMVP merge candidate derivation unit 30366c inputs the 11 neighborhood motion vectors shown in FIG. 17 (a) and derives one motion vector.

L1: (xCb - 1, yCb)
L2: (xCb - 1, yCb + cbHeight - 1)
L3: (xCb - 1, yCb + cbHeight)
L4: (xCb - 1, yCb + 2*cbHeight - 1)
L5: (xCb - 1, yCb + 2*cbHeight)
A0: (xCb - 1, yCb - 1)
A1: (xCb, yCb - 1)
A2: (xCb + cbWidth - 1, yCb - 1)
A3: (xCb + cbWidth, yCb - 1)
A4: (xCb + 2*cbWidth - 1, yCb - 1)
A5: (xCb + 2*cbWidth, yCb - 1)
ここで、L4,L5,A4,A5は、対象ブロックに辺または点を接しないブロックである。
L1: (xCb --1, yCb)
L2: (xCb ―― 1, yCb + cbHeight ―― 1)
L3: (xCb --1, yCb + cbHeight)
L4: (xCb ―― 1, yCb + 2 * cbHeight ―― 1)
L5: (xCb --1, yCb + 2 * cbHeight)
A0: (xCb ―― 1, yCb ―― 1)
A1: (xCb, yCb ―― 1)
A2: (xCb + cbWidth --1, yCb --1)
A3: (xCb + cbWidth, yCb ―― 1)
A4: (xCb + 2 * cbWidth ―― 1, yCb ―― 1)
A5: (xCb + 2 * cbWidth, yCb ―― 1)
Here, L4, L5, A4, and A5 are blocks that do not touch the target block with edges or points.

また、以下でもよい。例えば、以下の位置の近傍ブロックを用いてもよい。この場合、空間動きベクトル導出部36611cは、9個の近傍動きベクトルを入力し、1個の動きベクトルを導出する。 Further, the following may be used. For example, neighboring blocks at the following positions may be used. In this case, the spatial motion vector derivation unit 36611c inputs nine near-neighbor motion vectors and derives one motion vector.

L2: (xCb - 1, yCb + cbHeight - 1)
L3: (xCb - 1, yCb + cbHeight)
L4: (xCb - 1, yCb + 2*cbHeight - 1)
L5: (xCb - 1, yCb + 2*cbHeight)
A0: (xCb - 1, yCb - 1)
A2: (xCb + cbWidth - 1, yCb - 1)
A3: (xCb + cbWidth, yCb - 1)
A4: (xCb + 2*cbWidth - 1, yCb - 1)
A5: (xCb + 2*cbWidth, yCb - 1)
また、対象ピクチャCurPicにおいて、図17(b)は対象ブロックCurBLKの近傍ブロック(
上側近傍ブロックA[i]、左側近傍ブロックL[j])を示す別の図である。ここでbW、bHは対象ブロックの幅と高さである。numN、numMは水平および垂直方向の近傍ブロックの個数である。A[i]は座標(xPb+bW*i,yPb-1)(i=0..numN-1)を含むブロックであり、左上座標を(xNb[i],yNb[i])と表す。L[j]は座標(xPb-1,yPb+bH*j)(j=0..numM-1)を含むブロックであり、左上座標を(xNb[j],yNb[j])と表す。
L2: (xCb ―― 1, yCb + cbHeight ―― 1)
L3: (xCb --1, yCb + cbHeight)
L4: (xCb ―― 1, yCb + 2 * cbHeight ―― 1)
L5: (xCb --1, yCb + 2 * cbHeight)
A0: (xCb ―― 1, yCb ―― 1)
A2: (xCb + cbWidth --1, yCb --1)
A3: (xCb + cbWidth, yCb ―― 1)
A4: (xCb + 2 * cbWidth ―― 1, yCb ―― 1)
A5: (xCb + 2 * cbWidth, yCb ―― 1)
In addition, in the target picture CurPic, Fig. 17 (b) shows the block near the target block CurBLK (
It is another figure which shows the upper neighborhood block A [i], the left neighborhood block L [j]). Here, bW and bH are the width and height of the target block. numN and numM are the number of neighboring blocks in the horizontal and vertical directions. A [i] is a block containing coordinates (xPb + bW * i, yPb-1) (i = 0..numN-1), and the upper left coordinates are expressed as (xNb [i], yNb [i]). L [j] is a block containing coordinates (xPb-1, yPb + bH * j) (j = 0..numM-1), and the upper left coordinates are expressed as (xNb [j], yNb [j]).

ここで、A[0]:(xPb,yPb-1)、A[1]:(xPb+bW,yPb-1)、A[2]:(xPb+bW*2,yPb-1)、L[0]= (xPb-1,yPb)、L[1]= (xPb-1,yPb+bH-1)、L[2]= (xPb-1,yPb+bH*2)である。 Here, A [0]: (xPb, yPb-1), A [1]: (xPb + bW, yPb-1), A [2]: (xPb + bW * 2, yPb-1), L [ 0] = (xPb-1, yPb), L [1] = (xPb-1, yPb + bH-1), L [2] = (xPb-1, yPb + bH * 2).

このような、対象ブロックに隣接しないブロックの動きベクトルも含めて、NNMVPマー
ジ候補導出部30366に入力する。
The motion vector of the block not adjacent to the target block is also input to the NNMVP merge candidate derivation unit 30366.

また、座標(xPb+bW*i,yPb-1)(i=0..numN)、座標(xPb-1,yPb+bH*j)(j=0..numM-1)に加えて、座標(xPb+bW*i-1,yPb-1)(i=0..numN)、座標(xPb-1,yPb+bH*j-1)(j=0..numN-1)を含むブロックの動きベクトルを用いてもよい。 In addition to the coordinates (xPb + bW * i, yPb-1) (i = 0..numN) and coordinates (xPb-1, yPb + bH * j) (j = 0..numM-1), the coordinates A block containing (xPb + bW * i-1, yPb-1) (i = 0..numN) and coordinates (xPb-1, yPb + bH * j-1) (j = 0..numN-1) A motion vector may be used.

ここでA[0]:(xPb,yPb-1)、A[1]:(xPb+bW-1,yPb-1)、A[1]:(xPb+bW,yPb-1)、A[3]:(xPb+bW*2,yPb-1)、L[0]= (xPb-1,yPb)、L[1]= (xPb-1,yPb+bH-1)、L[2]= (xPb-1,yPb+bH-1)、L[2]= (xPb-1,yPb+bH*2)。 Where A [0]: (xPb, yPb-1), A [1]: (xPb + bW-1, yPb-1), A [1] :( xPb + bW, yPb-1), A [3 ]: (xPb + bW * 2, yPb-1), L [0] = (xPb-1, yPb), L [1] = (xPb-1, yPb + bH-1), L [2] = ( xPb-1, yPb + bH-1), L [2] = (xPb-1, yPb + bH * 2).

上記のように、対象ブロックに直接は隣接しないが、X座標がxPb-1もしくはY座標がyPb-1のブロックの位置とその動きベクトルを用いて、ニューラルネットワークによりマージ候補を導出する。対象ブロックから離れた位置の動きベクトルを利用することで、動きのフィールドに関する多くの情報が得られるため、高精度なマージ候補を導出する効果を奏する。同時に、参照するX座標とY座標が限定されるため、高速アクセスに利用するラインメモリやコラムメモリの容量を減らすことができ簡易に実現できる。 As described above, a merge candidate is derived by a neural network using the position of the block whose X coordinate is xPb-1 or Y coordinate is yPb-1 and its motion vector, although it is not directly adjacent to the target block. By using the motion vector at a position away from the target block, a lot of information about the motion field can be obtained, which has the effect of deriving highly accurate merge candidates. At the same time, since the X and Y coordinates to be referenced are limited, the capacity of the line memory and column memory used for high-speed access can be reduced, which can be easily realized.

(実施形態5:長距離動きベクトルを利用する例)
実施形態5では、X座標がxP-1もしくはY座標がyP-1という制限なく、対象ブロックからより離れた位置のブロックの動きベクトルも利用する。つまり、図18に示すように、近傍ブロックを対象ブロックからより離れた位置に設定してもよい。また、実施形態4と同じく、NNMVPマージ候補導出部30366dには近傍ブロックの位置と動きベクトルを入力する。
ここで、NNMVPマージ候補導出部30366dは前記実施形態4のNNMVPマージ候補導出部30366cを置き換えたものである。
(Embodiment 5: Example of using a long-distance motion vector)
In the fifth embodiment, the motion vector of the block at a position farther from the target block is also used without the limitation that the X coordinate is xP-1 or the Y coordinate is yP-1. That is, as shown in FIG. 18, the neighboring block may be set at a position farther from the target block. Further, as in the fourth embodiment, the position and motion vector of the neighboring block are input to the NNMVP merge candidate derivation unit 30366d.
Here, the NNMVP merge candidate derivation unit 30366d replaces the NNMVP merge candidate derivation unit 30366c of the fourth embodiment.

例えば、NNMVPマージ候補導出部30366dは以下の座標の動きベクトルを参照する。 For example, the NNMVP merge candidate derivation unit 30366d refers to the motion vector at the following coordinates.

{xPb + bW * i + (i < 2 ? - 1 : -bW), yPb + bH * j + (j < 2 ? - 1 : -bH)}、i = -1..3, j = -1..3,
ただし(i==1, j==1), i>1 && j>1を除く。
{xPb + bW * i + (i <2? --1: -bW), yPb + bH * j + (j <2? --1: -bH)}, i = -1..3, j = -1 ..3,
However, (i == 1, j == 1), i> 1 &&j> 1 are excluded.

これは、j = -1 .. 0, i = -1..3及びj = 1..3, i = -1, 0であるのでjとして、Y座標
が小さいものから列挙すると、以下の座標の動きベクトルとも表現できる。
This is because j = -1 .. 0, i = -1 ..3 and j = 1..3, i = -1, 0, so if you list the coordinates from the one with the smallest Y coordinate as j, the following coordinates It can also be expressed as a motion vector of.

{xPb + bW * i + (i < 2 ? - 1 : -bW), xPb - bH - 1}、i = -1..3
{xPb + bW * i + (i < 2 ? - 1 : -bW), xPb - 1}、i = -1..3
{xPb + bW * i + (i < 2 ? - 1 : -bW), xPb + bH -1}、i = -1..3
{xPb + bW * i - 1, xPb + bH }、i = -1..0
{xPb + bW * i - 1, xPb + bH *2 }、i = -1..0
それ以外の動作は、実施形態1から3と同様なので説明を省略する。
{xPb + bW * i + (i <2? --1: -bW), xPb --bH --1}, i = -1..3
{xPb + bW * i + (i <2? --1: -bW), xPb --1}, i = -1..3
{xPb + bW * i + (i <2? --1: -bW), xPb + bH -1}, i = -1..3
{xPb + bW * i --1, xPb + bH}, i = -1..0
{xPb + bW * i --1, xPb + bH * 2}, i = -1..0
Since the other operations are the same as those in the first to third embodiments, the description thereof will be omitted.

上記の構成では、対象ブロック周囲に格子状に存在する動きベクトルを用いることで、動き情報をもれなく的確にとらえることができ、マージ候補の精度が向上する
上記の構成によれば、対象ブロックの周囲に存在する広範囲のブロックの動きベクトルを、動きベクトルの属するブロックの位置と合わせて、NNMVPマージ候補導出部30366dに
入力し、マージ候補を導出する。従って、より高精度なマージ候補を導出する効果を奏する。
In the above configuration, by using motion vectors existing in a grid pattern around the target block, motion information can be accurately captured without omission, and the accuracy of merge candidates is improved. According to the above configuration, around the target block. The motion vector of a wide range of blocks existing in is input to the NNMVP merge candidate derivation unit 30366d together with the position of the block to which the motion vector belongs, and the merge candidate is derived. Therefore, it has the effect of deriving more accurate merge candidates.

(入出力の説明)
上記の実施形態1から実施形態5までの実施形態では、NN動きベクトル導出部に入力する動きベクトルの種類に注目して説明したが。ここでは、NN動きベクトル導出部の入力と出力に注目して説明する。
(Explanation of input / output)
In the above-described embodiments 1 to 5, the description focuses on the type of motion vector input to the NN motion vector derivation unit. Here, the input and output of the NN motion vector derivation unit will be focused on.

図21は、上記の実施形態1から実施形態5までのNNベクトル導出部3662、3662a、3662b、3662c、3662dの入出力を説明する図である。図に示すように、NNベクトル導出部3662、3662a、3662b、3662c、3662dは、複数の動きベクトルを入力し、1つの動きベクトルを導出する。これまでは、入力と出力として動きベクトルのみを用いる例を説明したが、以降、参照ピクチャ情報など、動きベクトル以外の動き情報も入力する例を説明する。 FIG. 21 is a diagram illustrating input / output of the NN vector derivation units 3662, 3662a, 3662b, 3662c, and 3662d from the first embodiment to the fifth embodiment. As shown in the figure, the NN vector derivation unit 3662, 3662a, 3662b, 3662c, 3662d inputs a plurality of motion vectors and derives one motion vector. So far, an example of using only a motion vector as an input and an output has been described, but an example of inputting motion information other than the motion vector such as reference picture information will be described below.

(実施形態6;参照ピクチャの情報を入力する例)
図22(a)、図23(a)は、本発明による、参照ピクチャの情報を入力するNNベクトル導出部3662e、3662e2の動作を説明する図である。
(Embodiment 6; Example of inputting reference picture information)
22 (a) and 23 (a) are diagrams illustrating the operation of the NN vector derivation units 3662e and 3662e2 for inputting the information of the reference picture according to the present invention.

NNベクトル導出部3662eには動きベクトルだけではなく、参照ピクチャ情報も入力する
。具体的には、NNベクトル導出部3662eに動きベクトルmvLXに加え、参照ピクチャインデ
ックスrefIdxLXも入力する。動きベクトルが利用可能ではない場合(参照ブロックNのavailableFlagNが0の場合)、(mvLX[0],mvLX[1])=(0,0)、refIdxLX=-1とセットする。動きベクトルが利用可能ではない場合とは、例えば、参照ブロックがイントラ予測である場合や画面外にある場合、対象ブロックとは別のスライスにある場合などである。図22(a)に示すように、NNベクトル導出部3662eにnumBlock個のmvLX[0], mvLX[1], pocDiffLXのセットを、1x1x(3xnumBlock)のテンソルとして入力する。ここでチャネルCは、動きベクトルのX成分mvLX[0]、Y成分mvLX[1]、参照ピクチャインデックスrefIdxLXである。そして、フルコネクションとアクティベーションの繰り替えしからなるニューラルネットワーク処理によって、mvNNベクトルを要素とする1x1x2テンソルを出力する。例えば、図16に示す空間マージ候補A0,A1,B0,B1,B2と時間マージ候補Cがすべて利用できる場合、NNベクトル導出部3662eの入力は(mvLXA0[0], mvLXA0[1], refIdxLXA0, mvLXA1[0], mvLXA1[1], refIdxLXA1, mvLXB0[0], mvLXB0[1], refIdxLXB0, mvLXB1[0], mvLXB1[1], refIdxLXB1, mvLXB2[0], mvLXB2[1], refIdxLXB2, mvLXC[0], mvLXC[1], refIdxLXC)の1x1x18テンソルである。図22(a)のNNベクトル導出部3662eの出力は(mvLX[0], mvLX[1])であり、1x1x2テンソルである。
Not only the motion vector but also the reference picture information is input to the NN vector derivation unit 3662e. Specifically, in addition to the motion vector mvLX, the reference picture index refIdxLX is also input to the NN vector derivation unit 3662e. If the motion vector is not available (when availableFlagN of reference block N is 0), set (mvLX [0], mvLX [1]) = (0,0), refIdxLX = -1. The case where the motion vector is not available is, for example, the case where the reference block is an intra prediction, the case where it is off the screen, or the case where it is in a slice different from the target block. As shown in Fig. 22 (a), a set of numBlock mvLX [0], mvLX [1], and pocDiffLX is input to the NN vector derivation unit 3662e as a 1x1x (3xnumBlock) tensor. Here, the channel C is the X component mvLX [0], the Y component mvLX [1], and the reference picture index refIdxLX of the motion vector. Then, a 1x1x2 tensor with an mvNN vector as an element is output by neural network processing consisting of full connection and activation repetition. For example, if the spatial merge candidates A0, A1, B0, B1, B2 and the time merge candidate C shown in FIG. 16 are all available, the input of the NN vector derivation unit 3662e is (mvLXA0 [0], mvLXA0 [1], refIdxLXA0, mvLXA1 [0], mvLXA1 [1], refIdxLXA1, mvLXB0 [0], mvLXB0 [1], refIdxLXB0, mvLXB1 [0], mvLXB1 [1], refIdxLXB1, mvLXB2 [0], mvLXB2 [1], refIdxLXB 0], mvLXC [1], refIdxLXC) 1x1x18 tensor. The output of the NN vector derivation unit 3662e in FIG. 22 (a) is (mvLX [0], mvLX [1]), which is a 1x1x2 tensor.

なお、参照ブロックNのavailableFlagNが0の場合、refIdxLX=-1ではなく、refIdxLX=-7や、refIdxLX=-127など、-1よりも小さい値(絶対値の大きい値)をセットする。そして
、動きベクトルが利用可能な場合(refIdxLX>=0)と差別化してもよい。
If availableFlagN of the reference block N is 0, set a value smaller than -1 (a value with a large absolute value) such as refIdxLX = -7 or refIdxLX = -127 instead of refIdxLX = -1. Then, it may be differentiated from the case where the motion vector is available (refIdxLX> = 0).

上記の構成によれば、動きベクトルに加えて参照ピクチャインデックスもNNベクトル導出部3662eに入力し、マージ候補を導出することにより、参照ピクチャインデックスを利
用したより高精度なマージ候補を導出する効果を奏する。特に、動きベクトルが利用可能ではない場合や、異なる参照ピクチャの動きベクトルを適切に利用することができる。
According to the above configuration, in addition to the motion vector, the reference picture index is also input to the NN vector derivation unit 3662e, and by deriving the merge candidate, the effect of deriving a more accurate merge candidate using the reference picture index is obtained. Play. In particular, if motion vectors are not available, or motion vectors from different reference pictures can be adequately utilized.

図23(a)のNNベクトル導出部3662e2は、上記形態の変形例である。この構成の入力はNN
ベクトル導出部3662eと等しいが、出力は動きベクトルに加えて、参照ピクチャインデッ
クスも出力する。つまり、NNベクトル導出部3662e2の出力は(mvLX[0], mvLX[1], refIdxLX)であり、1x1x3テンソルとしてもよい。
The NN vector derivation unit 3662e2 in FIG. 23 (a) is a modification of the above form. The input for this configuration is NN
Equivalent to the vector derivation section 3662e, but the output outputs the reference picture index in addition to the motion vector. That is, the output of the NN vector derivation unit 3662e2 is (mvLX [0], mvLX [1], refIdxLX), and may be a 1x1x3 tensor.

(実施形態7;参照ピクチャの情報を入力する別の例)
図22(b)、図23(b)は、本発明による別の参照ピクチャの情報を入力するNNベクトル導出部3662f、30366f2の動作を説明する図である。
(Embodiment 7; Another Example of Inputting Reference Picture Information)
22 (b) and 23 (b) are diagrams illustrating the operation of the NN vector derivation units 3662f and 30366f2 for inputting the information of another reference picture according to the present invention.

NNベクトル導出部3662fには、動きベクトルだけではなく、参照ピクチャの情報も入力
する。具体的には、動きベクトルmvLXに加え、参照ピクチャのPOC(Picture Order Count)の情報も入力する。ここでは、参照ピクチャのPOC(refPOC)と、対象ピクチャのPOC(curPOC)の差分値pocDiffLXを入力する。
Not only the motion vector but also the information of the reference picture is input to the NN vector derivation unit 3662f. Specifically, in addition to the motion vector mvLX, the POC (Picture Order Count) information of the reference picture is also input. Here, the difference value pocDiffLX of the POC (refPOC) of the reference picture and the POC (curPOC) of the target picture is input.

pocDiffLX = curPOC - refPOC
これによって、NNベクトル導出部3662fは、参照ブロックの各動きベクトルについて対
象ブロックと参照ブロックの時間的な相対的位置の情報を利用することができる。従って、対象ブロックの時間方向の動きの変化を利用することができ、マージ候補の精度を向上させることができる。
pocDiffLX = curPOC --refPOC
As a result, the NN vector derivation unit 3662f can use the information on the temporal relative positions of the target block and the reference block for each motion vector of the reference block. Therefore, it is possible to utilize the change in the movement of the target block in the time direction, and it is possible to improve the accuracy of the merge candidate.

図22(b)に示すように、NNベクトル導出部3662fには、numBlock個の参照ブロックのmvLX[0], mvLX[1], pocDiffLXを、1x1x(3xnumBlock)のテンソルとして入力し、ニューラルネ
ットワーク処理によって、1x1x2テンソルを導出し、マージ予測モードの動きベクトルmvLX[0], mvLX[1]として出力する。例えば、図16の空間マージ候補A0,A1,B0,B1,B2と時間マージ候補Cがすべて利用できる場合、NNベクトル導出部3662fの入力は(mvLXA0[0], mvLXA0[1], pocDiffLXA0, mvLXA1[0], mvLXA1[1], pocDiffLXA1, mvLXB0[0], mvLXB0[1], pocDiffLXB0, mvLXB1[0], mvLXB1[1], pocDiffLXB1, mvLXB2[0], mvLXB2[1], pocDiffLXB2, mvLXC[0], mvLXC[1], pocDiffLXC)の1x1x18テンソルである。
As shown in Fig. 22 (b), mvLX [0], mvLX [1], and pocDiffLX of numBlock reference blocks are input as 1x1x (3xnumBlock) tensors in the NN vector derivation unit 3662f, and neural network processing is performed. Derives the 1x1x2 tensor and outputs it as the motion vector mvLX [0], mvLX [1] in the merge prediction mode. For example, if the spatial merge candidates A0, A1, B0, B1, B2 and the time merge candidate C in FIG. 16 are all available, the input of the NN vector derivation unit 3662f is (mvLXA0 [0], mvLXA0 [1], pocDiffLXA0, mvLXA1). [0], mvLXA1 [1], pocDiffLXA1, mvLXB0 [0], mvLXB0 [1], pocDiffLXB0, mvLXB1 [0], mvLXB1 [1], pocDiffLXB1, mvLXB2 [0], mvLXB2 [1], pocDiffLXB0 ], MvLXC [1], pocDiffLXC) 1x1x18 tensor.

なお、参照ブロックNのavailableFlagNが0の場合、pocDiffLX=-127や、pocDiffLX=-127など、通常用いる値(たとえば63)より絶対値の大きい所定の値をpocDiffLXとして、NN
ベクトル導出部3662fに入力してもよい。また、参照ブロックNのavailableFlagNが0の場
合、動きベクトルとして特定の値(0, 0)をNNMVPマージ候補導出部30366fに入力してもよ
い。
When availableFlagN of the reference block N is 0, a predetermined value having an absolute value larger than the normally used value (for example, 63) such as pocDiffLX = -127 or pocDiffLX = -127 is set as pocDiffLX and NN.
It may be input to the vector derivation unit 3662f. Further, when the availableFlagN of the reference block N is 0, a specific value (0, 0) may be input to the NNMVP merge candidate derivation unit 30366f as a motion vector.

上記の構成によれば、動きベクトルに加えて参照ピクチャと対象ピクチャのPOCの差分
値もNNベクトル導出部3662fに入力し、マージ候補を導出する。従って、対象ピクチャと
参照ピクチャの距離を利用した、より高精度なマージ候補を導出する効果を奏する。特に、近傍動きベクトルが利用可能ではない場合や、異なる参照ピクチャの動きベクトルを適切に利用することができる。
According to the above configuration, in addition to the motion vector, the difference value of the POC between the reference picture and the target picture is also input to the NN vector derivation unit 3662f to derive the merge candidate. Therefore, it has the effect of deriving more accurate merge candidates by using the distance between the target picture and the reference picture. In particular, when the near motion vector is not available, or the motion vector of a different reference picture can be used appropriately.

図23(b)のNNベクトル導出部3662f2は、図22(b)の変形例である。この構成への入力はNNベクトル導出部3662fへの入力と等しいが、動きベクトルと対象ピクチャからのPOCの変位量を出力する。つまり、NNベクトル導出部3662f2の出力は(mvLX[0], mvLX[1], pocDiffLX)であり、1x1x3テンソルとしてもよい。pocの変位量pocDiffLXと、対象ピクチャのPOCであるcurPOCを加算してPOC = curPOC + picDiffLXを導出する。このPOCの参照ピクチャを選択することにより、NNMVPマージ候補で用いる参照ピクチャを特定することができる。このときNNMVPマージ候補の参照ピクチャインデックスをrefPicLXNNMVPと示してもよい。 The NN vector derivation unit 3662f2 in FIG. 23 (b) is a modified example of FIG. 22 (b). The input to this configuration is equal to the input to the NN vector derivation unit 3662f, but the motion vector and the displacement of the POC from the target picture are output. That is, the output of the NN vector derivation unit 3662f2 is (mvLX [0], mvLX [1], pocDiffLX), and may be a 1x1x3 tensor. POC = curPOC + picDiffLX is derived by adding the displacement amount pocDiffLX of poc and curPOC which is the POC of the target picture. By selecting the reference picture of this POC, the reference picture used in the NNMVP merge candidate can be specified. At this time, the reference picture index of the NNMVP merge candidate may be indicated as refPicLXNNMVP.

(実施形態8A:双予測の例1)
図24は、本発明による複数の動きベクトルを導出するNNベクトル導出部3662gの動作を
説明する図である。この例では、各参照ブロックK(K=K1..KN)に複数の動きベクトル(
例えば双予測の動きベクトル、mvL0とmvL1)がある場合、その両方の動きベクトルをNNベクトル導出部3662gに入力し、複数の動きベクトルを出力する構成である。Kは参照ブロックのラベルである。また、mvL0もしくはmvL1のどちらか一方しか利用しない単予測の場合は、利用しない動きベクトルの値として、利用可能ではないことを示す特定の値を設定する。
(Embodiment 8A: Example 1 of dual prediction)
FIG. 24 is a diagram illustrating the operation of the NN vector derivation unit 3662g for deriving a plurality of motion vectors according to the present invention. In this example, each reference block K (K = K1..KN) has multiple motion vectors (
For example, if there are bi-predicted motion vectors, mvL0 and mvL1), both motion vectors are input to the NN vector derivation unit 3662g, and multiple motion vectors are output. K is the label of the reference block. In the case of simple prediction that uses only one of mvL0 or mvL1, a specific value indicating that it is not available is set as the value of the motion vector that is not used.

本構成によれば、複数の参照ブロックのおける双予測の動きベクトルをNNベクトル導出部3662gに入力して複数の動きベクトルを導出することによって、より精度の高いマージ
候補が導出できる効果を奏する。
According to this configuration, by inputting the motion vectors of biprediction in a plurality of reference blocks into the NN vector derivation unit 3662g and deriving a plurality of motion vectors, it is possible to derive a more accurate merge candidate.

(実施形態8B:双予測の例2)
図25(a)は、本発明による複数の動きベクトルを導出するNNベクトル導出部3662hの動作を説明する図である。各参照ブロック(K=k1..KN)に複数の動きベクトル(例えば双予測の動きベクトル、mvL0とmvL1)がある場合、その両方を参照ピクチャインデックスとともにNNベクトル導出部3662hに入力し、複数の動きベクトルを出力する構成である。mvL0も
しくはmvL1のどちらか一方しか利用しない単予測の場合、利用しない動きベクトルと参照ピクチャインデックスの値として、利用可能ではないことを示す特定の値(0, 0)と-1,-127,128などを設定する。
(Embodiment 8B: Example 2 of dual prediction)
FIG. 25 (a) is a diagram illustrating the operation of the NN vector derivation unit 3662h for deriving a plurality of motion vectors according to the present invention. If each reference block (K = k1..KN) has multiple motion vectors (eg, bipredictive motion vectors, mvL0 and mvL1), both of them are input to the NN vector derivation unit 3662h together with the reference picture index, and multiple motion vectors are input. It is a configuration that outputs a motion vector. In the case of simple prediction that uses only one of mvL0 or mvL1, the values of the motion vector and the reference picture index that are not used are specific values (0, 0) and -1, -127, 128 that indicate that they are not available. Set.

本構成によれば、複数の参照ブロックのおける双予測の動きベクトルと参照ピクチャインデックスをNNベクトル導出部3662hに入力して複数の動きベクトルを導出することによ
って、より精度の高いマージ候補が導出できる効果を奏する。
According to this configuration, more accurate merge candidates can be derived by inputting the bipredictive motion vector and the reference picture index in the multiple reference blocks into the NN vector derivation unit 3662h and deriving multiple motion vectors. It works.

図25(b)は、本発明による複数の動きベクトルを導出するNNベクトル導出部3662iの動作を説明する図である。この例では、上述の入力の参照ピクチャの情報として参照ピクチャインデックスではなくPOC差分(pocDiffLX)を用いる構成である。 FIG. 25 (b) is a diagram illustrating the operation of the NN vector derivation unit 3662i for deriving a plurality of motion vectors according to the present invention. In this example, the POC difference (pocDiffLX) is used instead of the reference picture index as the information of the reference picture of the above input.

本構成によれば、複数の参照ブロックの双予測の動きベクトルと参照ピクチャのPOC差
分情報をNNベクトル導出部3662iに入力して複数の動きベクトルを導出することによって
、より精度の高いマージ候補が導出できる効果を奏する。
According to this configuration, more accurate merge candidates can be obtained by inputting the bi-predictive motion vectors of multiple reference blocks and the POC difference information of the reference picture into the NN vector derivation unit 3662i to derive multiple motion vectors. It has an effect that can be derived.

(実施形態8C:双予測の例3)
図26(a)は、本発明による複数の動きベクトルを導出するNNベクトル導出部3662h2の動
作を説明する図である。各参照ブロックK(K=K1..KN)に複数の動きベクトル(例えば双
予測の動きベクトル、mvL0とmvL1)がある場合、その両方と参照ピクチャインデックスrefIdxLXをNNベクトル導出部3662h2に入力し、複数の動きベクトルと参照ピクチャインデックスの組を出力する構成である。
(Embodiment 8C: Example 3 of dual prediction)
FIG. 26 (a) is a diagram illustrating the operation of the NN vector derivation unit 3662h2 for deriving a plurality of motion vectors according to the present invention. If each reference block K (K = K1..KN) has multiple motion vectors (eg bipredictive motion vectors, mvL0 and mvL1), enter both and the reference picture index refIdxLX into the NN vector derivation section 3662h2. It is a configuration that outputs a set of multiple motion vectors and a reference picture index.

図26(b)は、本発明による複数の動きベクトルを導出するNNベクトル導出部3662i2の動
作を説明する図である。この例では、上述の入力、出力の参照ピクチャ情報として参照ピクチャインデックスではなくPOC差分(pocDiffLX、X=0..1)を用いる構成である。
FIG. 26 (b) is a diagram illustrating the operation of the NN vector derivation unit 3662i2 for deriving a plurality of motion vectors according to the present invention. In this example, the POC difference (pocDiffLX, X = 0.1) is used instead of the reference picture index as the reference picture information of the above input and output.

(実施形態9)動きベクトルのスケーリング
実施形態9―1:隣接ブロック動きベクトルのスケーリング処理
上記、実施形態1~実施形態8のステップ1)のベクトル導出部(3661、3661a、3661b)は、参照ブロックの動きベクトルをスケーリングしてもよい。そしてスケーリングされた動きベクトルを、実施形態2と3に記載するステップ3)のNNベクトル導出部(3662、3662a、3662b、3662c、3662d、…)に入力してもよい。参照ブロックK(例えばA0, A1, B0, B1, B2など)の動きベクトルをmvKとする場合、図16(a)に示す対象ピクチャCurPicと、対象ブロックCurBLKの参照ピクチャRefPicListX[refIdxLX]との時間情報を用いて、参照ブロックの動きベクトルをスケーリングする。ここでrefIdxLX=0としてもよい。スケーリング後の動きベクトルをMvLKとする。
(Embodiment 9) Scaling of motion vector Embodiment 9-1: Scaling process of adjacent block motion vector The vector derivation unit (3661, 3661a, 3661b) of step 1) of the above embodiment 1 to 8 is a reference block. The motion vector of may be scaled. Then, the scaled motion vector may be input to the NN vector derivation unit (3662, 3662a, 3662b, 3662c, 3662d, ...) In step 3) described in the second and third embodiments. When the motion vector of the reference block K (for example, A0, A1, B0, B1, B2, etc.) is mvK, the time between the target picture CurPic shown in FIG. 16 (a) and the reference picture RefPicListX [refIdxLX] of the target block CurBLK. Use the information to scale the motion vector of the reference block. Here, refIdxLX = 0 may be set. Let the motion vector after scaling be MvLK.

動きベクトルのスケーリングの導出方法を説明する。動きベクトルMv(参照動きベクトル)、Mvをもつブロックを含むピクチャPicMv、Mvの参照ピクチャPicMvRef、スケーリン
グ後の動きベクトルsMv、sMvをもつブロックを含むピクチャCurPic、sMvが参照する参照
ピクチャCurPicRefとすると、sMvの導出関数MvScale(Mv,PicMv,PicMvRef,CurPic,CurPicRef)は下式で表される。
The method of deriving the scaling of the motion vector will be described. A motion vector Mv (reference motion vector), a picture PicMv containing a block with Mv, a reference picture PicMvRef of Mv, a motion vector sMv after scaling, a picture CurPic containing a block with sMv, and a reference picture CurPicRef referenced by sMv. The derivation function MvScale (Mv, PicMv, PicMvRef, CurPic, CurPicRef) of sMv is expressed by the following equation.

sMv = MvScale(Mv,PicMv,PicMvRef,CurPic,CurPicRef)
= Clip3(-R1,R1-1,sign(distScaleFactor*Mv)*((abs(distScaleFactor*Mv)+round1-1)>>shift1))
distScaleFactor = Clip3(-R2,R2-1,(tb*tx+round2)>>shift2)
tx = (16384+abs(td)>>1)/td
td = DiffPicOrderCnt(PicMv,PicMvRef)
tb = DiffPicOrderCnt(CurPic,CurPicRef)
ここで、round1、round2、shift1、shift2は、逆数を用いて除算を行うためのラウンド値及びシフト値で、例えば、round1=1<<(shift1-1)、round2=1<<(shift2-1)、shift1=8、shift2=6などである。DiffPicOrderCnt(Pic1,Pic2)はPic1とPic2の時間情報(例えばPOC)の差を返す関数である。R1、R2は処理を限られた精度で行うために値域を制限するもので例えば、R1=32768、R2=4096などである。ここでスケーリング後の動きベクトルMvLKは下式で表される。
sMv = MvScale (Mv, PicMv, PicMvRef, CurPic, CurPicRef)
= Clip3 (-R1, R1-1, sign (distScaleFactor * Mv) * ((abs (distScaleFactor * Mv) + round1-1) >> shift1))
distScaleFactor = Clip3 (-R2, R2-1, (tb * tx + round2) >> shift2)
tx = (16384 + abs (td) >> 1) / td
td = DiffPicOrderCnt (PicMv, PicMvRef)
tb = DiffPicOrderCnt (CurPic, CurPicRef)
Here, round1, round2, shift1, and shift2 are round values and shift values for performing division using the reciprocal, for example, round1 = 1 << (shift1-1), round2 = 1 << (shift2-12-1). ), Shift1 = 8, shift2 = 6, etc. DiffPicOrderCnt (Pic1, Pic2) is a function that returns the difference between the time information of Pic1 and Pic2 (for example, POC). R1 and R2 limit the range in order to perform processing with limited accuracy. For example, R1 = 32768 and R2 = 4096. Here, the motion vector MvLK after scaling is expressed by the following equation.

MvLK = MvScale(mvK,CurPic,RefK,CurPic,RefPicListX[refIdxLX]))
実施形態9―2:コロケートブロック動きベクトルのスケーリング処理
時間動きベクトル
上記、実施形態1~実施形態8のステップ2)の時間動きベクトル導出部は、参照ブロックの動きベクトルをスケーリングしてもよい。そしてスケーリングされた動きベクトルを、実施形態2と3に記載するステップ3)のニューラルネットワーク処理に入力してもよい。図16(c)に示すように、初期参照ピクチャIRef上において、対象ブロックからIMVだけシフトした位置のコロケートブロックColBLKが利用可能か否かをチェックする。このコロケートブロックが利用可能な場合、対象ブロックの参照ピクチャRefPicListX[redIdxLX]上の参照ブロックを示す動きベクトルspMvLxを導出する。ここでrefIdxLX=0であってもよい。コロケートブロックColBLKの動きベクトルspRefMvLX、対象ピクチャCurPicとその参照ピクチャRefPicListX[redIdxLX]の時間情報差と、初期参照ピクチャIRefとコロケートピクチャの参照ピクチャspRefPicの時間情報差の比を用いて、動きベクトルspMvLxを導出する。具体的には、スケーリング関数MvScale()を用いて下式で導出する。
MvLK = MvScale (mvK, CurPic, RefK, CurPic, RefPicListX [refIdxLX]))
Embodiment 9-2: Scaling of collaged block motion vector Processing time motion vector The time motion vector derivation unit of step 2) of the above-mentioned first to eighth embodiments may scale the motion vector of the reference block. Then, the scaled motion vector may be input to the neural network process of step 3) described in the second and third embodiments. As shown in FIG. 16 (c), it is checked whether or not the collage block ColBLK at the position shifted by IMV from the target block can be used on the initial reference picture IRef. If this collated block is available, a motion vector spMvLx indicating the reference block on the reference picture RefPicListX [redIdxLX] of the target block is derived. Here, refIdxLX = 0 may be set. Using the ratio of the time information difference between the motion vector spRefMvLX of the collated block ColBLK, the target picture CurPic and its reference picture RefPicListX [redIdxLX], and the time information difference between the initial reference picture IRef and the reference picture spRefPic of the collaged picture, the motion vector spMvLx is calculated. Derived. Specifically, it is derived by the following equation using the scaling function MvScale ().

spMvLX = MvScale(spRefMvLX,IRef,spRefPic,CurPic,RefPicListX[refIdxLX])
= Clip3(-R1,R1-1,sign(distScaleFactor*spRefMvLX )*((abs(distScaleFactor*spRefMvLX )+round1-1)>>shift1))
distScaleFactor = Clip3(-R2,R2-1,(tb*tx+round2)>>shift2)
tx = (16384+abs(td)>>1)/td
td = DiffPicOrderCnt(IRef,spRefPic)
tb = DiffPicOrderCnt(CurPic,RefPicListX[refIdxLX])
ここで、round1、round2、shift1、shift2は、逆数を用いて除算を行うためのラウンド値及びシフト値で、例えば、round1=1<<(shift1-1)、round2=1<<(shift2-1)、shift1=8、shift2=6などである。DiffPicOrderCnt(Pic1,Pic2)はPic1とPic2の時間情報(例えばPOC)の差を返す関数である。R1、R2は処理を限られた精度で行うために値域を制限するもので例えば、R1=32768、R2=4096などである。
spMvLX = MvScale (spRefMvLX, IRef, spRefPic, CurPic, RefPicListX [refIdxLX])
= Clip3 (-R1, R1-1, sign (distScaleFactor * spRefMvLX) * ((abs (distScaleFactor * spRefMvLX) + round1-1) >> shift1))
distScaleFactor = Clip3 (-R2, R2-1, (tb * tx + round2) >> shift2)
tx = (16384 + abs (td) >> 1) / td
td = DiffPicOrderCnt (IRef, spRefPic)
tb = DiffPicOrderCnt (CurPic, RefPicListX [refIdxLX])
Here, round1, round2, shift1, and shift2 are round values and shift values for performing division using the reciprocal, for example, round1 = 1 << (shift1-1), round2 = 1 << (shift2-12-1). ), Shift1 = 8, shift2 = 6, etc. DiffPicOrderCnt (Pic1, Pic2) is a function that returns the difference between the time information of Pic1 and Pic2 (for example, POC). R1 and R2 limit the range in order to perform processing with limited accuracy. For example, R1 = 32768 and R2 = 4096.

(AMVP予測)
図10(b)は、本実施形態に係るAMVP予測パラメータ導出部3032の構成を示す概略図であ
る。AMVP予測パラメータ導出部3032は、ベクトル候補導出部3033、ベクトル候補参照部30331、NNMVPベクトル候補導出部30332とベクトル候補選択部3034、ベクトル候補格納部3035を備える。
(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, a vector candidate reference unit 30331, an NNMVP vector candidate derivation unit 30332, a vector candidate selection unit 3034, and a vector candidate storage unit 3035.

ここで、前記sps_nnmvp_enabled_flagが1かつAMVP予測の場合、NNMVPモードを用いて
対象ブロックの動きベクトルを予測する。具体的にベクトル候補導出部3033は、予測パラメータメモリ307が記憶する復号済みの参照ピクチャインデックスrefIdxLXと隣接ブロッ
クの動きベクトルmvLXをNNMVPベクトル候補導出部30332に入力し、予測ベクトル候補を導出し、ベクトル候補格納部3035の予測ベクトル候補リストmvpListLX[]に格納する。
Here, when the sps_nnmvp_enabled_flag is 1 and AMVP prediction is performed, the motion vector of the target block is predicted using the NNMVP mode. Specifically, the vector candidate derivation unit 3033 inputs the decoded reference picture index refIdxLX stored in the prediction parameter memory 307 and the motion vector mvLX of the adjacent block into the NNMVP vector candidate derivation unit 30332, derives the prediction vector candidate, and performs a vector. Stored in the prediction vector candidate list mvpListLX [] of the candidate storage unit 3035.

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

(MV加算部)
加算部3038は、AMVP予測パラメータ導出部3032から入力された予測ベクトルmvpLXとパ
ラメータ復号制御部3031から入力された差分ベクトルmvdLXを加算して動きベクトルmvLX
を算出する。加算部3038は、算出した動きベクトルmvLXを予測画像生成部309および予測
パラメータメモリ307に出力する。
(MV addition part)
The addition unit 3038 adds the prediction vector mvpLX input from the AMVP prediction parameter derivation unit 3032 and the difference vector mvdLX input from the parameter decoding control unit 3031, and the motion vector mvLX.
Is calculated. The addition unit 3038 outputs the calculated motion vector mvLX to the 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]
(Motion vector accuracy)
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, 1/4 pixel, 1 pixel, and 4 pixel accuracy are switched. Instead of amvr_mode, you may use the 1/4 flag amvr_flag and the 1/16 / 1 switching flag amvr_precision_flag.

動きベクトルの精度を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 set 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 part)
The intra prediction parameter derivation unit refers to the prediction parameter stored in the prediction parameter memory 307 based on the input from the parameter decoding unit 302, and the intra prediction parameter,
For example, the IntraPredMode is derived. 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 luminance and the color difference.

ループフィルタ305は、符号化ループ内に設けたフィルタで、ブロック歪やリンギング
歪を除去し、画質を改善するフィルタである。ループフィルタ305は、加算部312が生成したCUの復号画像に対し、デブロッキングフィルタ、サンプル適応オフセット(SAO)、適
応ループフィルタ(ALF)等のフィルタを施す。
The loop filter 305 is a filter provided in the coding loop, and is a filter that removes block distortion and ringing distortion to improve image quality. The loop filter 305 applies a filter 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 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 and the parameters derived by the prediction parameter derivation unit 320.

予測画像生成部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 predicted 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 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 a rectangle), and is a region 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は、重み予測部3094を含んで構成される。
FIG. 11 is a schematic diagram showing the configuration of the inter-predictive image generation unit 309 included in the predictive image generation unit 308 according to the present embodiment. The inter-predicted image generation unit 309 includes a motion compensation unit (predictive image generation device) 3091 and a compositing unit 3095. The synthesis unit 3095 includes 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 interpolation prediction parameters (predFlagLX, refIdxLX, mvLX) input from the interpolation 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 for 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, and 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 bi-prediction, the above Pred [] [] is derived for each L0 list and L1 list (interpolated images PredL0 [] [] and PredL1 [] []), and PredL0 [] [] and PredL1 []. ] [] Generates the interpolated image Pred [] [].

合成部3095は重み予測部3094を備えている。 The synthesis unit 3095 includes a weight prediction unit 3094.

(重み予測)
重み予測部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, offset1 = 1 << (shift1-1).
Also, both of the prediction list usage flags (predFlagL0 and predFlagL1) are 1 (bi-prediction PRED_BI).
And, when weight prediction is not used, the following formula is processed by averaging 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 processes 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, in the case of double prediction PRED_BI and weight prediction, the weight prediction unit 3094 derives the weight prediction coefficients w0, w1, o0, and o1 from the coded data, and processes 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 generation unit)
When the 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 conversion 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 it 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 coding 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 predicted image generation unit 101 generates a predicted 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 for the prediction error input from the subtraction unit 102, and derives the quantization conversion coefficient by quantization. The conversion / quantization unit 103
The quantization conversion coefficient is output to the parameter coding unit 111 and the inverse quantization / inverse conversion unit 105.

逆量子化・逆変換部105は、動画像復号装置31における逆量子化・逆変換部311(図7)
と同じであり、説明を省略する。算出した予測誤差は加算部106に出力される。
The inverse quantization / inverse conversion unit 105 is the inverse quantization / inverse conversion unit 311 (FIG. 7) in the moving image decoding device 31.
The same as above, 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. Hereinafter, the schematic operation of each module will be described.

ヘッダ符号化部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を生成し、出力する。
A 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.

(インター予測パラメータ符号化部の構成)
本発明の一態様に係るインター予測パラメータ導出部は、上述のNNMVP予測パラメータ
導出部を備え、SPSにて、NNMVPモードを利用するか否かを示すフラグsps_nnmvp_enabled_flagが1に設定される場合NNMVP予測パラメータ導出部を用いてAMVPのベクトル候補を導
出する。
(Structure of inter-prediction parameter coding unit)
The inter-prediction parameter derivation unit according to one aspect of the present invention includes the above-mentioned NNMVP prediction parameter derivation unit, and when the flag sps_nnmvp_enabled_flag indicating whether to use the NNMVP mode is set to 1 in SPS, the NNMVP prediction parameter. The vector candidate of AMVP is derived using the derivation part.

本発明の一態様に係るマージ候補導出部は、上述のNNMVPマージ候補導出部を備え、SPS
にて、NNMVPモードを利用するか否かを示すフラグsps_nnmvp_enabled_flagが1に設定さ
れる場合、NNMVPマージ候補導出部を用いてAMVPのベクトル候補、および、マージ候補を
導出する。
The merge candidate derivation unit according to one aspect of the present invention includes the above-mentioned NNMVP merge candidate derivation unit and SPS.
When the flag sps_nnmvp_enabled_flag indicating whether to use the NNMVP mode is set to 1, the AMVP vector candidate and the merge candidate are derived using the NNMVP merge candidate derivation unit.

インター予測パラメータ符号化部112は図13に示すように、パラメータ符号化制御部1121、インター予測パラメータ導出部303を含んで構成される。インター予測パラメータ導出部303は動画像復号装置と共通の構成である。パラメータ符号化制御部1121は、マージイ
ンデックス導出部11211とベクトル候補インデックス導出部11212を含む。
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 be configured with only a deblocking filter, for example.

予測パラメータメモリ108は、符号化パラメータ決定部110が生成した予測パラメータを、対象ピクチャ及びCU毎に予め定めた位置に記憶する。 The prediction parameter memory 108 stores the prediction parameters generated by the coding parameter determination unit 110 at positions predetermined 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 the prediction parameter. 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 sign amount and the value obtained by multiplying the squared error 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 coding parameter. 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, a 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 a computer system and executed. The "computer system" referred to here is a computer system built in 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, and a storage device such as a hard disk built in a computer system. Further, a "computer-readable recording medium" is a medium that dynamically holds a program for a short 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 for realizing a part of the above-mentioned functions, and may be further realized 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 made 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 the 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 that transmit, receive, record, and reproduce 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 above-mentioned moving image coding device 11 and moving image decoding device 31 can be used for transmission and reception of 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 coded 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 video input terminal PROD_A6 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, a decoding unit (decoding unit) that decodes the coded data read from the recording medium PROD_A5 between the recording medium PROD_A5 and the coding unit PROD_A1 according to the coding method for recording.
(Not shown) should be intervened.

図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 demodulation unit PROD_B2 that obtains coded data by demodulating the modulated signal received by the receiving unit PROD_B1, and a demodulation unit PROD_B2. It includes a decoding unit PROD_B3 that obtains a moving image by decoding the coded 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 is a display PROD_B4 for displaying a moving image, a recording medium PROD_B5 for recording a moving image, and an output terminal for outputting the moving image to the outside as a supply destination of the moving image output by the decoding unit PROD_B3. It may be further equipped with PROD_B6. In the figure, the configuration in which the receiving device PROD_B includes all of them 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). It may refer 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 a modulated signal by radio 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 a modulated signal 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.) such as 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 coded 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 above-mentioned moving image coding device 11 and moving image decoding device 31 can be used for recording and reproducing moving images.

図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 of a type 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 into 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 coding method for transmission different from the coding method for recording. 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 the moving image), a personal computer (in this case, the receiving unit PROD_C5 or the image processing unit C6 is the main source of the moving image), 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 reproduction 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 in the playback device PROD_D, such as (1) HDD or SSD, or (2) SD memory card, USB flash memory, or the like. 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 a 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 reproduction 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 coding method for transmission different from the coding method for recording. 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 transmission 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 the moving image). .. In addition, a television receiver (in this case, the display PROD_D3 is the main supply destination of the moving image), a digital signage (also called an electronic signboard or an electronic bulletin board, etc., and the display PROD_D3 or the transmission unit PROD_D5 is the main supply destination of the moving image). (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 by hardware by a logic circuit formed on an integrated circuit (IC chip), or may be realized by a CPU.
It may be realized by software by using (Central Processing Unit).

後者の場合、上記各装置は、各機能を実現するプログラムの命令を実行するCPU、上記
プログラムを格納したROM(Read Only Memory)、上記プログラムを展開するRAM(Random
Access Memory)、上記プログラムおよび各種データを格納するメモリ等の記憶装置(記録媒体)などを備えている。そして、本発明の実施形態の目的は、上述した機能を実現するソフトウェアである上記各装置の制御プログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンピュータで読み取り可能に記録した記録媒体を、上記各装置に供給し、そのコンピュータ(またはCPUやMPU)が記録媒体に記録されているプログラムコードを読み出し実行することによっても、達成可能である。
In the latter case, each of the above devices is a CPU that executes an instruction of a program that realizes each function, a ROM (Read Only Memory) that stores the above program, and a RAM (Random) that expands the above program.
Access Memory), a storage device (recording medium) such as a memory for storing the above programs and various data. Then, an object of the embodiment of the present invention is a recording in which the program code (execution format program, intermediate code program, source program) of the control program of each of the above-mentioned devices, which is software for realizing the above-mentioned functions, is readablely recorded 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 optical discs, IC cards (memory cards) (Including) / Optical cards and other cards, mask ROM / EPROM (Erasable Programmable Read-Only Memory) / EEPROM (Electrically Erasable and Programmable Read-Only Memory: registered trademark) / Flash ROM and other semiconductor memories, 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 rays 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 can also be used 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 coded data in which image data is encoded, and a moving image coding device that generates coded 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 インター予測パラメータ導出部
305、107 ループフィルタ
306、109 参照ピクチャメモリ
307、108 予測パラメータメモリ
308、101 予測画像生成部
309 インター予測画像生成部
311、105 逆量子化・逆変換部
312、106 加算部
320 予測パラメータ導出部
11 画像符号化装置
102 減算部
103 変換・量子化部
104 エントロピー符号化部
110 符号化パラメータ決定部
111 パラメータ符号化部
112 インター予測パラメータ符号化部
120 予測パラメータ導出部
31 Image decoder
301 Entropy Decoding Unit
302 Parameter decoder
303 Inter prediction parameter derivation part
305, 107 loop filter
306, 109 Reference picture memory
307, 108 Predictive parameter memory
308, 101 Predictive image generator
309 Inter prediction image generator
311 and 105 Inverse quantization / inverse transformation
312, 106 Addition part
320 Prediction parameter derivation unit
11 Image coding device
102 Subtractor
103 Conversion / Quantization Department
104 Entropy coding unit
110 Coded parameter determination unit
111 Parameter encoding unit
112 Inter-prediction parameter coding unit
120 Prediction parameter derivation unit

Claims (9)

シーケンスパラメータセットSPSにて、ニューラルネットワーク動きベクトル予測モー
ドNNMVPを示すフラグ(sps_nnmvp_enabled_flag)を復号するヘッダ復号部と、
sps_nnmvp_enabled_flag = 1の場合、対象ブロックの空間隣接ブロックおよび時間隣接ブロックの動きベクトル、および、対象ブロックの時間隣接動きベクトル候補を利用しニューラルネットワークマージ(NNMVP)候補を導出するマージNNMVP導出部と、
導出したマージ候補をマージ候補リストに格納する格納部とを備え、
前記マージNNMVP部は、カレントブロックの空間/時間候補の動きベクトルを利用し、ニューラルネットワークにより動きベクトルを算出し、NNMVP候補の動きベクトルとしてセットすることを特徴とする動画像復号装置。
A header decoder that decodes the flag (sps_nnmvp_enabled_flag) indicating the neural network motion vector prediction mode NNMVP in the sequence parameter set SPS, and
When sps_nnmvp_enabled_flag = 1, the motion vector of the spatially adjacent block and the temporally adjacent block of the target block, and the merge NNMVP derivator that derives the neural network merge (NNMVP) candidate using the temporally adjacent motion vector candidate of the target block, and
It has a storage unit that stores the derived merge candidates in the merge candidate list.
The merge NNMVP unit is a moving image decoding device characterized by using a motion vector of a space / time candidate of a current block, calculating a motion vector by a neural network, and setting it as a motion vector of an NNMVP candidate.
シーケンスパラメータセットSPSにて、ニューラルネットワーク動きベクトル予測モー
ドNNMVPを示すフラグ(sps_nnmvp_enabled_flag)を復号するヘッダ復号部と、
sps_nnmvp_enabled_flag = 1、かつ、適応動きベクトル予測モード(AMVP)の場合、対象ブロックの隣接動きベクトルを利用しニューラルネットワーク予測動きベクトル(NNMVP)を導出するAMVP予測NNMVPパラメータ導出部と、
導出した動きベクトルを格納する格納部とを備え、
前記AMVP予測NNMVP部は、カレントブロックの隣接ブロックの動きベクトルを利用し、
ニューラルネットワークにより動きベクトルと算出し、NNMVP動きベクトルとしてセット
することを特徴とする動画像復号装置。
A header decoder that decodes the flag (sps_nnmvp_enabled_flag) indicating the neural network motion vector prediction mode NNMVP in the sequence parameter set SPS, and
In the case of sps_nnmvp_enabled_flag = 1 and the adaptive motion vector prediction mode (AMVP), the AMVP prediction NNMVP parameter derivator that derives the neural network prediction motion vector (NNMVP) using the adjacent motion vector of the target block, and
It has a storage unit that stores the derived motion vector.
The AMVP prediction NNMVP section uses the motion vector of the adjacent block of the current block and uses it.
A motion image decoding device characterized in that it is calculated as a motion vector by a neural network and set as an NNMVP motion vector.
前記マージ予測NNMVP部およびAMVP予測のNNMVP部は、利用可能な隣接ブロックがあれば、上側および左側隣接ブロックの動きベクトルに対し、対象ピクチャと隣接ブロックの参照ピクチャ間の時間的な距離と、対象ピクチャと対象ピクチャの参照ピクチャ間の時間的な距離に応じて、前記隣接ブロックの動きベクトルをスケーリングする手段とを特徴とする請求項1および2に記載の動画像復号装置。 The merge prediction NNMVP part and the AMVP prediction NNMVP part indicate the temporal distance between the target picture and the reference picture of the adjacent block with respect to the motion vectors of the upper and left adjacent blocks, and the target, if there are available adjacent blocks. The moving image decoding apparatus according to claim 1 and 2, further comprising means for scaling the motion vector of the adjacent block according to the temporal distance between the picture and the reference picture of the target picture. 前記マージ予測NNMVP部およびAMVP予測NNMVP部にて、時間動きベクトル導出部が2つ以上の時間動きベクトルを導出し利用することを特徴とする請求項3に記載の動画像復号装
置。
The moving image decoding device according to claim 3, wherein the time motion vector deriving unit derives and uses two or more time motion vectors in the merge prediction NNMVP unit and the AMVP prediction NNMVP unit.
前記マージ予測NNMVP部およびAMVP予測NNMVP部は、対象ブロックの上側(左側)に位置する非隣接ブロックからサーチを開始し、サーチするブロックの中に隣接ブロックが含まれることを特徴とする請求項3および4に記載の動画像復号装置。 3. The merge prediction NNMVP unit and the AMVP prediction NNMVP unit start a search from a non-adjacent block located on the upper side (left side) of the target block, and the search block includes an adjacent block. And the moving image decoding apparatus according to 4. 前記マージ予測NNMVP部およびAMVP予測NNMVP部は、ニューラルネットワーク処理の入力として、動きベクトルの座標情報とその参照ピクチャインデックスrefIdxLX、もしくはPOC情報を入力して予測に利用することを特徴とする請求項3~5に記載の動画像復号装置。 3. The merge prediction NNMVP unit and the AMVP prediction NNMVP unit input coordinate information of a motion vector and its reference picture index refIdxLX or POC information as inputs for neural network processing and use them for prediction. The moving image decoding apparatus according to 5. 前記マージ予測NNMVP部およびAMVP予測NNMVP部は、複数の予測パラメータ(動きベクトルと参照ピクチャ情報)から、1つの予測パラメータ(動きベクトルと参照ピクチャ情報)であるNNMVPマージ候補をニューラルネットワークによって導出することを特徴とする請求項3~6に記載の動画像復号装置。 The merge prediction NNMVP unit and the AMVP prediction NNMVP unit derive NNMVP merge candidates, which are one prediction parameter (motion vector and reference picture information), from a plurality of prediction parameters (motion vector and reference picture information) by a neural network. The moving image decoding apparatus according to claim 3 to 6. 前記マージ予測NNMVP部およびAMVP予測NNMVP部は、予測モードが双予測かつ各参照ブロックに複数の動きベクトルがある場合、その全てをNNベクトル導出部に入力し、複数の動きベクトルを出力することを特徴とする請求項3~7に記載の動きベクトル候補導出装置。 When the prediction mode is bi-prediction and each reference block has a plurality of motion vectors, the merge prediction NNMVP unit and the AMVP prediction NNMVP unit input all of them to the NN vector derivation unit and output a plurality of motion vectors. The motion vector candidate derivation device according to claim 3 to 7. 請求項1~8に記載のマージ予測NNMVP導出部と、
前記マージ予測NNMVP導出部で導出した予測パラメータ、および、参照ピクチャメモリ
に格納された参照画像を用いて、予測画像を生成する予測画像生成装置とを備えることを特徴とする請求項1~8に記載の動画像復号装置。
The merge prediction NNMVP derivation unit according to claims 1 to 8,
Claims 1 to 8 include a prediction image generator that generates a prediction image by using a prediction parameter derived by the merge prediction NNMVP derivation unit and a reference image stored in a reference picture memory. The moving image decoding device described.
JP2020199967A 2020-12-02 2020-12-02 Image decoder and image encoder Pending JP2022087865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020199967A JP2022087865A (en) 2020-12-02 2020-12-02 Image decoder and image encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020199967A JP2022087865A (en) 2020-12-02 2020-12-02 Image decoder and image encoder

Publications (1)

Publication Number Publication Date
JP2022087865A true JP2022087865A (en) 2022-06-14

Family

ID=81982328

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020199967A Pending JP2022087865A (en) 2020-12-02 2020-12-02 Image decoder and image encoder

Country Status (1)

Country Link
JP (1) JP2022087865A (en)

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
WO2020116456A1 (en) Moving image decoding device
JP2020053924A (en) Video encoding device and video decoding device
JP2021097316A (en) Video coding device and video decoding device
WO2021015195A1 (en) Image decoding device, image encoding device, image decoding method
JPWO2020045248A1 (en) Video decoding device and video coding device
JP2022007319A (en) Dynamic image encoding device and decoding device
JP2020145650A (en) Image decoding device and image coding device
JP2021027429A (en) Dynamic image encoding device and dynamic image decoding device
JP2020096279A (en) Prediction image generation device, moving image decoding device, and moving image encoding device
JP2020108012A (en) Image decoding device and image encoding device
JP2020088660A (en) Moving picture coding apparatus and moving picture decoding apparatus
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
JP2020170901A (en) Predictive image generation device, video decoding device, and video coding device
JP2021106309A (en) Video decoding device and video coding device
JP2020088577A (en) Predictive image generation device, moving image decoding device, and moving image encoding device
JP2022087865A (en) Image decoder and image encoder
JP2020096329A (en) Prediction image generation device, moving image decoding device, and moving image encoding device
JP7378968B2 (en) Predicted image generation device, video decoding device, and video encoding device
WO2021235448A1 (en) Video coding device and video decoding device
JP7465128B2 (en) Video encoding device and video decoding device
WO2020122130A1 (en) Predicted image generation device, moving image decoding device, moving image encoding device, and predicted image generation method

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20221207