JP2022065225A - Lic unit, image decoding device, and image coding device - Google Patents

Lic unit, image decoding device, and image coding device Download PDF

Info

Publication number
JP2022065225A
JP2022065225A JP2019043096A JP2019043096A JP2022065225A JP 2022065225 A JP2022065225 A JP 2022065225A JP 2019043096 A JP2019043096 A JP 2019043096A JP 2019043096 A JP2019043096 A JP 2019043096A JP 2022065225 A JP2022065225 A JP 2022065225A
Authority
JP
Japan
Prior art keywords
unit
value
lic
ref
derived
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
JP2019043096A
Other languages
Japanese (ja)
Inventor
将伸 八杉
Masanobu Yasugi
瑛一 佐々木
Eiichi Sasaki
健 中條
Takeshi Nakajo
知宏 猪飼
Tomohiro Igai
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.)
FG Innovation Co Ltd
Sharp Corp
Original Assignee
FG Innovation Co Ltd
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 FG Innovation Co Ltd, Sharp Corp filed Critical FG Innovation Co Ltd
Priority to JP2019043096A priority Critical patent/JP2022065225A/en
Priority to PCT/JP2020/008914 priority patent/WO2020184294A1/en
Priority to CN202080019468.9A priority patent/CN113615171A/en
Publication of JP2022065225A publication Critical patent/JP2022065225A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/14Coding unit complexity, e.g. amount of activity or edge presence estimation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/196Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Abstract

To solve a problem in which the division used in image coding and decoding processing refers to a table, but the memory usage of the table is large, and also, when linear approximation is performed by changing division to multiplication using the table, the bit width required for multiplication becomes large and the circuit scale increases.SOLUTION: The index and scale shift value of a table are derived from the features derived using the adjacent pixels of a target block and a reference block, and the value of the table referenced using the index is shifted by using the scale shift value to derive the scale factor. This reduces the memory required for the table by storing only some elements using the periodicity of the table and deriving the elements that are not stored from some elements.SELECTED DRAWING: Figure 13

Description

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

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

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

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

また、このような動画像符号化方式においては、通常、入力画像を符号化/復号することによって得られる局所復号画像に基づいて予測画像が生成され、当該予測画像を入力画像(原画像)から減算して得られる予測誤差(「差分画像」または「残差画像」と呼ぶこともある)が符号化される。予測画像の生成方法としては、画面間予測(インター予測)、および、画面内予測(イントラ予測)が挙げられる。 Further, in such a moving image coding method, a predicted image is usually generated based on a locally decoded image obtained by encoding / decoding an input image, and the predicted image is obtained from the input image (original image). The prediction error obtained by subtraction (sometimes referred to as a "difference image" or "residual image") 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 4)", JVET-M1001, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 2019-01-09 17:06:06"Versatile Video Coding (Draft 4)", JVET-M1001, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29/WG 11, 2019-01-09 17:06 : 06 " CE10: Low pipeline latency LIC (test 10.5.2)", JVET-M0087, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 2019-01-09"CE10: Low pipeline latency LIC (test 10.5.2)", JVET-M0087, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29/WG 11, 2019-01 -09

しかしながら、画像符号化、画像復号処理では、LIC予測、CCLM予測、動きベクトルのスケーリング等で除算が使用される。非特許文献1、2ではこれらの処理では、加減乗算、シフト演算およびテーブル参照を用いているが、このテーブルのメモリ使用量が大きいという課題がある。また、このテーブルを用いて除算を乗算に変えて直線近似を行う場合に、乗算に必要なビット幅が大きくなり、回路規模が増大するという課題がある。 However, in image coding and image decoding processing, division is used in LIC prediction, CCLM prediction, motion vector scaling, and the like. In Non-Patent Documents 1 and 2, addition / subtraction multiplication, shift operation and table reference are used in these processes, but there is a problem that the memory usage of this table is large. Further, when linear approximation is performed by changing division to multiplication using this table, there is a problem that the bit width required for multiplication becomes large and the circuit scale increases.

本発明の一態様に係るLIC部は、LIC予測により予測画像を生成するLIC部であって、対象ブロックの隣接画素(第1の隣接画素)と、参照ブロックの隣接画素(第2の隣接画素)と、テーブルを用いてスケーリングファクタscaleとオフセットoffset(LICパラメータ)を導出するLICパラメータ導出部と、参照ブロックの画像とLICパラメータを用いて予測画像を生成するLICフィルタ部とを備え、上記LICパラメータ導出部は、第1の隣接画素および第2の隣接画素を用いて、対象ブロックの隣接画素の特徴量a1(第1の特徴量)と参照ブロックの隣接画素の特徴量a2(第2の特徴量)を導出し、第2の特徴量a2を用いて上記テーブルの参照値InvDivを導出し、第1の特徴量a1と上記テーブル参照値InvDivを乗算した値を第1のシフト値(expC、shiftA)によって右シフトすることでスケーリングファクタscaleを導出し、上記LICパラメータ導出部は、第1の隣接画素、第2の隣接画素、および、スケーリングファクタを用いてオフセットoffsetを導出することを特徴とする。 The LIC unit according to one aspect of the present invention is an LIC unit that generates a predicted image by LIC prediction, and is an adjacent pixel (first adjacent pixel) of a target block and an adjacent pixel (second adjacent pixel) of a reference block. ), A LIC parameter derivation unit that derives the scaling factor scale and offset offset (LIC parameter) using a table, and a LIC filter unit that generates a predicted image using the image of the reference block and the LIC parameter. The parameter derivation unit uses the first adjacent pixel and the second adjacent pixel, and the feature amount a1 (first feature amount) of the adjacent pixel of the target block and the feature amount a2 (second feature amount) of the adjacent pixel of the reference block. The feature amount) is derived, the reference value InvDiv of the above table is derived using the second feature amount a2, and the value obtained by multiplying the first feature amount a1 and the above table reference value InvDiv is the first shift value (expC). , ShiftA) to derive the scaling factor scale by shifting to the right, and the LIC parameter derivation unit is characterized by deriving the offset offset using the first adjacent pixel, the second adjacent pixel, and the scaling factor. And.

本発明の一態様によれば、動画像符号化・復号処理において、性能低下を抑制しつつ、メモリバンド幅の増加を抑えることができる。 According to one aspect of the present invention, in the moving image coding / decoding process, it is possible to suppress an increase in memory bandwidth while suppressing a deterioration in performance.

本実施形態に係る画像伝送システムの構成を示す概略図である。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 schematic diagram which shows the structure of the moving image decoding apparatus. インター予測パラメータ導出部の構成を示す概略図である。It is a schematic diagram which shows the structure of the inter prediction parameter derivation part. LIC部の構成を示す概略図である。It is a schematic diagram which shows the structure of a LIC part. LIC予測において参照する対象画素と参照画素を説明する図である。It is a figure explaining the target pixel and the reference pixel to be referenced in LIC prediction. 本発明のLIC予測のスケーリングファクタの導出を説明する図である。It is a figure explaining the derivation of the scaling factor of the LIC prediction of this invention. 本発明のLIC予測のスケーリングファクタの導出を説明する別の図である。It is another figure explaining the derivation of the scaling factor of the LIC prediction of this invention. 本発明の除算テーブルを説明する図である。It is a figure explaining the division table of this invention. 本発明のLICパラメータ導出部のデータの流れを示す図である。It is a figure which shows the data flow of the LIC parameter derivation part of this invention. 動画像符号化装置の構成を示すブロック図である。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 derivation part. インター予測画像生成部の構成を示す概略図である。It is a schematic diagram which shows the structure of the inter prediction image generation part. 動画像復号装置の概略的動作を説明するフローチャートである。It is a flowchart explaining the schematic operation of the moving image decoding apparatus.

(第1の実施形態)
以下、図面を参照しながら本発明の実施形態について説明する。
(First Embodiment)
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 a moving image display device (image display device) 41. ..

動画像符号化装置11には画像が入力される。 An image 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または複数の復号画像を生成する。 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.

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

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

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

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

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

Clip1(x)は、xを0以上(1<<bitDepth)-1以下の値にクリップする関数であって、以下の式で表される関数である。ここで、bitDepthは、輝度又は色差の画素ビット数を示す値である。 Clip1 (x) is a function that clips x to a value of 0 or more (1 << bitDepth) -1 or less, and is a function expressed by the following formula. Here, bitDepth is a value indicating the number of pixel bits of luminance or color difference.

Clip1(x) = Clip3(0, (1 << bitDepth)-1, x)
abs(a)はaの絶対値を返す関数である。
Clip1 (x) = Clip3 (0, (1 << bitDepth) -1, x)
abs (a) is a function that returns the absolute value of a.

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

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

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

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

a^bは、aのb乗を表す。 a ^ b represents a to the bth power.

sign(x)は、xが0のとき0、正のとき1、負のとき-1を返す関数である。 sign (x) is a function that returns 0 when x is 0, 1 when x is positive, and -1 when x is negative.

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

図4は、符号化ストリームTeにおけるデータの階層構造を示す図である。符号化ストリームTeは、例示的に、シーケンス、およびシーケンスを構成する複数のピクチャを含む。図4の(a)~(f)は、それぞれ、シーケンスSEQを既定する符号化ビデオシーケンス、ピクチャPICTを規定する符号化ピクチャ、タイルグループを規定する符号化タイルグループ、タイルを規定する符号化タイル、符号化タイルに含まれる符号化ツリーユニット、符号化ツリーユニットに含まれる符号化ユニットを示す図である。 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 FIGS. 4 (a) to 4 (f), a coded video sequence that defines the sequence SEQ, a coded picture that defines the picture PICT, a coded tile group that defines the tile group, and a coded tile that defines the tile, respectively. , The coded tree unit included in the coded tile, and the coded unit included in the coded tree unit.

(符号化ビデオシーケンス)
符号化ビデオシーケンスでは、処理対象のシーケンスSEQを復号するために動画像復号装置31が参照するデータの集合が規定されている。シーケンスSEQは、図4(a)に示すように、ビデオパラメータセット(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 FIG. 4A, 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 an additional extension. Information SEI (Supplemental Enhancement Information) is included.

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

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

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

(符号化ピクチャ)
符号化ピクチャでは、処理対象のピクチャPICTを復号するために動画像復号装置31が参照するデータの集合が規定されている。ピクチャPICTは、図4(b)に示すように、タイルグループを含む。
(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 tile groups, as shown in Figure 4 (b).

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

タイルグループヘッダには、対象タイルグループの復号方法を決定するために動画像復号装置31が参照する符号化パラメータ群が含まれる。タイルグループタイプを指定するtile_group_type)は、タイルグループヘッダに含まれる符号化パラメータの一例である。 The tile group header includes a set of coding parameters referred to by the moving image decoding device 31 to determine the decoding method of the target tile group. Tile_group_type), which specifies the tile group type, is an example of the encoding parameters included in the tile group header.

タイルグループタイプは、(1)符号化の際にイントラ予測のみを用いるIタイルグループ、(2)符号化の際に単方向予測、または、イントラ予測を用いるPタイルグループ、(3)符号化の際に単方向予測、双方向予測、または、イントラ予測を用いるBタイルグループなどが挙げられる。なお、インター予測は、単予測、双予測に限定されず、より多くの参照ピクチャを用いて予測画像を生成してもよい。以下、P、Bタイルグループと呼ぶ場合には、インター予測を用いることができるブロックを含むタイルグループを指す。 The tile group types are (1) I tile group that uses only intra prediction for coding, (2) P tile group that uses unidirectional prediction or intra prediction for coding, and (3) coding. Examples thereof include a B tile group using unidirectional prediction, bidirectional prediction, or intra prediction. 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 tile groups, they refer to tile groups including blocks in which inter-prediction can be used.

なお、タイルグループヘッダは、ピクチャパラメータセットPPSへの参照(pic_parameter_set_id)を含んでいても良い。タイルグループデータは、動画像復号装置31が参照するデータの集合(タイル、セグメント)が規定されている。 The tile group header may include a reference (pic_parameter_set_id) to the picture parameter set PPS. The tile group data defines a set (tiles, segments) of data referred to by the moving image decoding device 31.

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

(符号化ツリーユニット)
図4(e)には、処理対象の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)
FIG. 4 (e) 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 the basis of coding processing by recursive quadtree division (QT (Quad Tree) division), binary tree division (BT (Binary Tree) division) or ternary tree division (TT (Ternary Tree) division). It is divided into a coding unit CU, which is a typical unit. 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.

図5は、CTUの分割例を示す図である。CUは符号化ノードの末端ノードであり、これ以上分割されない。CUは符号化処理の基本的な単位である(a)。4分木分割の場合、符号化ノードは4つの符号化ノードに分割される(b)。垂直方向の2分木分割(c)、水平方向の2分木分割(d)、垂直方向の3分木分割(e)、水平方向の3分木分割(f)である。 FIG. 5 is a diagram showing an example of CTU division. The CU is the terminal node of the encoding node and is not further divided. CU is the basic unit of coding processing (a). In the case of quadtree division, the coded node is divided into four coded nodes (b). A vertical ternary split (c), a horizontal ternary split (d), a vertical ternary split (e), and a horizontal ternary split (f).

また、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(f)に示すように、処理対象の符号化ユニットを復号するために動画像復号装置31が参照するデータの集合が規定されている。具体的には、CUは、CUヘッダCUH、予測パラメータ、変換パラメータ、量子化変換係数等から構成される。CUヘッダでは予測モード等が規定される。
(Encoding unit)
As shown in FIG. 4 (f), a set of data referred to by the moving image decoding device 31 in order to decode 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. If the CU is larger than the size of the sub CU, the CU is split into sub CUs. For example, if the CU is 8x8 and the sub CU is 4x4, the CU is divided into four sub-CUs consisting of two horizontal divisions and two vertical divisions.

予測の種類(予測モード)は、イントラ予測と、インター予測の2つがある。イントラ予測は、同一ピクチャ内の予測であり、インター予測は、互いに異なるピクチャ間(例えば、表示時刻間、レイヤ画像間)で行われる予測処理を指す。 There are two types of prediction (prediction mode): intra prediction and inter prediction. Intra prediction refers to prediction 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と、LIC利用フラグlicFlagとから構成される。predFlagL0、predFlagL1は、各々L0リスト、L1リストと呼ばれる参照ピクチャリストが用いられるか否かを示すフラグであり、値が1の場合に対応する参照ピクチャリストが用いられる。また、licFlagは、後述するLIC処理が行われるか否かを示すフラグであり、値が1の場合に、LIC処理が行われる。なお、対象となるブロックにlicFlagが設定されていない場合、当該licFlagの値は0であるものとして扱われる。なお、本明細書中「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 usage flags predFlagL0 and predFlagL1, the reference picture indexes refIdxL0 and refIdxL1, the motion vectors mvL0 and mvL1, and the LIC usage flags licFlag. predFlagL0 and predFlagL1 are flags indicating whether or not a reference picture list called an L0 list and an L1 list is used, respectively, and when the value is 1, the corresponding reference picture list is used. Further, licFlag is a flag indicating whether or not the LIC processing described later is performed, and when the value is 1, the LIC processing is performed. If licFlag is not set in the target block, the value of the licFlag is treated as 0. 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.

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

(参照ピクチャリスト)
参照ピクチャリストは、参照ピクチャメモリ306に記憶された参照ピクチャからなるリストである。
(Reference picture list)
The reference picture list is a list of reference pictures stored in the reference picture memory 306.

(マージ予測とAMVP)
予測パラメータの復号(符号化)方法には、マージ予測(merge)モードとAMVP(Adavanced Motion Vector Prediction、適応動きベクトル予測)モードがあり、merge_flagは、これらを識別するためのフラグである。マージ予測モードは、predFlagLX(またはinter_pred_idc)、refIdxLX、mvLXを符号化データに含めずに、既に処理した近傍ブロックの予測パラメータ等から導出するモードである。AMVPモードは、inter_pred_idc、refIdxLX、mvLXを符号化データに含めるモードである。なお、mvLXは、予測ベクトルmvpLXを識別するmvp_LX_idxとmvdLX、amvr_modeとして符号化される。また、マージ予測モードの他に、アフィンフラグaffine_flagにより識別されるアフィン予測モードがあってもよい。マージ予測モードの一形態として、スキップフラグskip_flagにより識別されるスキップモードがあってもよい。なお、スキップモードとは、マージ予測モードと同様の方法で予測パラメータを導出する用いるモードであり、かつ、予測誤差(残差画像)を符号化データに含めないモードである。換言すれば、スキップフラグskip_flagが1の場合、対象CUに関して、当該skip_flagとmerge_idxなどのマージ予測モードに関連するシンタックスのみを含み、動きベクトルなどは符号化データに含まれない。
(Merge prediction and AMVP)
Prediction parameter decoding (encoding) methods include a merge mode and an AMVP (Adavanced Motion Vector Prediction) mode, and merge_flag is a flag for identifying these. The merge prediction mode is a mode in which predFlagLX (or inter_pred_idc), refIdxLX, and mvLX are not included in the coded data and 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, mvdLX, and amvr_mode that identify the prediction vectors mvpLX. In addition to the merge prediction mode, there may be an affine prediction mode identified by the affine flag affine_flag. As one form of the merge prediction mode, there may be a skip mode identified by the skip flag skip_flag. The skip mode is a mode in which the prediction parameters are derived by the same method as the merge prediction mode, and the prediction error (residual image) is not included in the coded data. In other words, when the skip flag skip_flag is 1, only the syntax related to the merge prediction mode such as the skip_flag and merge_idx is included with respect to the target CU, and the motion vector and the like are not included in the coded data.

inter_pred_idcは、参照ピクチャの種類および数を示す値であり、PRED_L0、PRED_L1、PRED_BIの何れかの値をとる。PRED_L0、PRED_L1は、各々L0リスト、L1リストで管理された1枚の参照ピクチャを用いる単予測を示す。PRED_BIはL0リストとL1リストで管理された2枚の参照ピクチャを用いる双予測BiPredを示す。 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 bipredictive BiPred that uses 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. mvLX is encoded as mvpLX, mvdLX.

(インター予測識別子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.

(動画像復号装置の構成)
本実施形態に係る動画像復号装置31(図6)の構成について説明する。
(Configuration of moving image decoding device)
The configuration of the moving image decoding device 31 (FIG. 6) 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は、符号化データからSPS、PPSなどのパラメータセット情報、タイルグループヘッダ(タイルグループ情報)を復号する。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 SPS and PPS and the tile group header (tile group 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更新情報(量子化補正値)と量子化予測誤差(residual_coding)を復号する。より具体的には、TU復号部3024は、skip_mode==0の場合に、対象ブロックに量子化予測誤差が含まれているか否かを示すフラグcu_cbpを符号化データから復号し、cu_cbpが1の場合に量子化予測誤差を復号sるう。cu_cbpが符号化データに存在しない場合は0と導出する。 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 mode is other than the skip mode (skip_mode == 0). More specifically, when skip_mode == 0, the TU decoding unit 3024 decodes the flag cu_cbp indicating whether or not the target block contains a quantization prediction error from the encoded data, and cu_cbp is 1. In some cases, the quantization prediction error is decoded. If cu_cbp does not exist in the coded data, it is derived as 0.

また、予測パラメータ導出部320は、図示しないインター予測パラメータ導出部303及びイントラ予測パラメータ導出部304を含んで構成される。予測画像生成部308は、インター予測画像生成部309及びイントラ予測画像生成部310を含んで構成される。 Further, the prediction parameter derivation unit 320 includes an inter-prediction parameter derivation unit 303 and an intra-prediction parameter derivation unit 304 (not shown). The prediction image generation unit 308 includes an inter prediction image generation unit 309 and an intra prediction image generation unit 310.

また、以降では処理の単位として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 the segment (tile, CTU row). 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 bits are decoded using the context, and then the CABAC state of the context is updated. Bits that do not use context are decoded with equal probability (EP, bypass), and ctxInc derivation and CABAC state update are omitted.

パラメータ復号部302はエントロピー復号部301により符号を復号し、予測パラメータ導出部320に出力する。予測パラメータ導出部320は復号した符号から予測パラメータ、例えば、predMode、merge_flag、merge_idx、inter_pred_idc、refIdxLX、mvp_LX_idx、mvdLX、amvr_mode、licFlag等を導出する。どの符号を復号するかの制御は、パラメータ復号部302の指示に基づいて行われる。 The parameter decoding unit 302 decodes the code by the entropy decoding unit 301 and outputs it to the prediction parameter derivation unit 320. The prediction parameter derivation unit 320 derives prediction parameters such as predMode, merge_flag, merge_idx, inter_pred_idc, refIdxLX, mvp_LX_idx, mvdLX, amvr_mode, and licFlag from the decoded code. The control of which code is decoded is performed based on the instruction of the parameter decoding unit 302.

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

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

(S1200:タイルグループ情報復号)ヘッダ復号部3020は、符号化データからタイルグループヘッダ(タイルグループ情報)を復号する。 (S1200: Tile group information decoding) The header decoding unit 3020 decodes the tile group header (tile group information) from the encoded data.

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

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

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

(S1500:CU復号)CU復号部3022はS1510、S1520を実施して、符号化データからCUを復号する。 (S1500: CU decoding) The CU decoding unit 3022 executes S1510 and S1520 to decode the CU from the 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更新情報(量子化補正値)と量子化予測誤差(residual_coding)を復号する。なお、QP更新情報は、量子化パラメータQPの予測値である量子化パラメータ予測値qPpredからの差分値である。 (S1520: TU information decoding) 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. 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 adder 312 decodes the target CU by adding the predicted image supplied by the predicted 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は、エントロピー復号部301もしくは符号化パラメータ決定部110から入力された符号に基づいて、予測パラメータメモリ307(108)に記憶された予測パラメータを参照してインター予測パラメータを導出する。また、インター予測パラメータ導出部303は、インター予測パラメータを予測画像生成部308(101)に出力し、予測パラメータメモリ307(108)に記憶する。インター予測パラメータ導出部303及びその内部の要素であるAMVP予測パラメータ導出部3032、マージ予測パラメータ導出部3036、アフィン予測部30372、MMVD予測部30373は、動画像符号化装置、動画像復号装置で共通する手段であるので、これらを総称して動きベクトル導出部(動きベクトル導出装置)と称してもよい。
(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 (108) based on the code input from the entropy decoding unit 301 or the coding parameter determination unit 110. do. Further, the inter-prediction parameter derivation unit 303 outputs the inter-prediction parameter to the prediction image generation unit 308 (101) and stores it in the prediction parameter memory 307 (108). The inter-prediction parameter derivation unit 303 and its internal elements AMVP prediction parameter derivation unit 3032, merge prediction parameter derivation unit 3036, affine prediction unit 30372, and MMVD prediction unit 30373 are common to 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 decoded and output to the merge prediction parameter derivation unit 3036.

merge_flagが0、すなわち、AMVPモードを示す場合、AMVPパラメータとして、例えば、inter_pred_idc、refIdxLX、mvp_LX_idx、mvdLX、amvr_modeを復号する。AMVPパラメータ導出部3032はmvp_LX_idxからmvpLXを導出する。 When merge_flag is 0, that is, it indicates AMVP mode, for example, inter_pred_idc, refIdxLX, mvp_LX_idx, mvdLX, amvr_mode are decoded as AMVP parameters. The AMVP parameter derivation unit 3032 derives mvpLX from 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.

(マージ予測)
図7(b)は、本実施形態に係るマージ予測パラメータ導出部3036の構成を示す概略図である。マージ予測パラメータ導出部3036は、マージ候補導出部30361、マージ候補選択部30362を備える。マージ候補導出部30361は、空間マージ候補導出部30364、時間マージ候補導出部30365を含む。リストに格納するマージ候補は、マージ候補を示すラベル(例えば、空間マージ候補のA1, B1, B0, A0, B2、時間マージ候補のCol)であってもよい。merge_idxに基づいて選択されたマージ候補のラベルに基づいて、ラベルに対応するインター予測パラメータ(動きベクトルmvLXN)を参照しても良い。なお、マージ候補は、predFlagLX、mvLX、refIdxLXを含んで構成される。
(Merge prediction)
FIG. 7B is a schematic diagram showing the configuration of the merge prediction parameter derivation unit 3036 according to the present embodiment. The merge prediction parameter derivation unit 3036 includes a merge candidate derivation unit 30361 and a merge candidate selection unit 30362. The merge candidate derivation unit 30361 includes a spatial merge candidate derivation unit 30364 and a time merge candidate derivation unit 30365. The merge candidate to be stored in the list may be a label indicating the merge candidate (for example, A1, B1, B0, A0, B2 of the spatial merge candidate, Col of the time merge candidate). Based on the label of the merge candidate selected based on merge_idx, the inter-prediction parameter (motion vector mvLXN) corresponding to the label may be referenced. The merge candidates include predFlagLX, mvLX, and refIdxLX.

マージ候補導出部30361は、復号済の隣接ブロックの動きベクトルと参照ピクチャインデックスをそのまま用いてマージ候補を導出する。 The merge candidate derivation unit 30361 derives the merge candidate by using the motion vector of the decoded adjacent block and the reference picture index as they are.

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

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

(MV加算部)
MV加算部3038は、AMVPパラメータ導出部3032から入力されたmvpLXと復号した差分ベクトルmvdLXを加算してmvLXを算出する。加算部3038は、算出したmvLXを予測画像生成部308および予測パラメータメモリ307に出力する。
(MV addition part)
The MV addition unit 3038 calculates mvLX by adding the mvpLX input from the AMVP parameter derivation unit 3032 and the decoded difference vector mvdLX. The addition unit 3038 outputs the calculated mvLX to the prediction image generation unit 308 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画素精度を切り替える。
mvLX [0] = mvpLX [0] + mvdLX [0]
mvLX [1] = mvpLX [1] + mvdLX [1]
amvr_mode is a syntax for switching the accuracy of the motion vector derived in the AMVP mode. For example, in amvr_mode = 0, 1, 2, 1/4 pixel, 1 pixel, and 4 pixel accuracy are switched.

動きベクトルの精度を1/16精度とする場合、1/4, 1, 4画素精度の動きベクトル差分を1/16画素精度の動きベクトル差分に変更するために下記のように、amvr_modeから導出されるMvShift (=1<<amvr_mode)を用いて逆量子化してもよい。 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. It may be dequantized using MvShift (= 1 << amvr_mode).

MvdLX[0] = MvdLX[0] << (MvShift + 2)
MvdLX[1] = MvdLX[1] << (MvShift + 2)
(動きベクトルスケーリング)
動きベクトルのスケーリングの導出方法を説明する。動きベクトルMv(参照動きベクトル)、Mvをもつブロックを含むピクチャPicMv、Mvの参照ピクチャPicMvRef、スケーリング後の動きベクトルsMv、sMvをもつブロックを含むピクチャCurPic、sMvが参照する参照ピクチャCurPicRefとすると、sMvの導出関数MvScale(Mv,PicMv,PicMvRef,CurPic,CurPicRef)は下式より導出される。
MvdLX [0] = MvdLX [0] << (MvShift + 2)
MvdLX [1] = MvdLX [1] << (MvShift + 2)
(Motion vector scaling)
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 sMv derivation function MvScale (Mv, PicMv, PicMvRef, CurPic, CurPicRef) is derived from 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 = (KN_MVSCALE+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などである。KN_MVSCALEは、1<<(shift1+shift2)であり、例えば16384である。2^(shift1+shift2) = 2^(8+6) = 2^14 = 16384
また、スケーリング関数MvScale(Mv,PicMv,PicMvRef,CurPic,CurPicRef)は以下の式でもよい。
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 = (KN_MVSCALE + 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. KN_MVSCALE is 1 << (shift1 + shift2), for example 16384. 2 ^ (shift1 + shift2) = 2 ^ (8 + 6) = 2 ^ 14 = 16384
Further, the scaling function MvScale (Mv, PicMv, PicMvRef, CurPic, CurPicRef) may be expressed by the following equation.

MvScale(Mv,PicMv,PicMvRef,CurPic,CurPicRef) =
Mv*DiffPicOrderCnt(CurPic,CurPicRef)/DiffPicOrderCnt(PicMv,PicMvRef)
すなわち、CurPicとCurPicRefの時間情報の差と、PicMvとPicMvRefの時間情報の差との比に応じてMvをスケーリングしてもよい。
MvScale (Mv, PicMv, PicMvRef, CurPic, CurPicRef) =
Mv * DiffPicOrderCnt (CurPic, CurPicRef) / DiffPicOrderCnt (PicMv, PicMvRef)
That is, Mv may be scaled according to the ratio between the time information difference between CurPic and CurPicRef and the time information difference between PicMv and PicMvRef.

(txの導出方法の変形例)
変形例では上記とは異なる方法でスケーリングを行うtxを導出する方法を説明する。
より具体的には、上記2つのPOC差分td, tbを用いて、動きベクトルMvをスケーリングして動きベクトルsMvを導出する場合において、スケーリングに用いるtxの導出方法を説明する。
(Modified example of tx derivation method)
In the modified example, a method of deriving tx that scales by a method different from the above will be described.
More specifically, a method for deriving tx used for scaling will be described when the motion vector Mv is scaled to derive the motion vector sMv using the above two POC differences td and tb.

td = DiffPicOrderCnt(PicMv,PicMvRef) (MVSCALE-1)
tb = DiffPicOrderCnt(CurPic,CurPicRef)
sMv = Clip3(-R1,R1-1,sign(distScaleFactor*Mv)*((abs(distScaleFactor*Mv)+round1-1)>>shift1))
distScaleFactor = Clip3(-R2,R2-1,(tb*tx+round2)>>shift2)
tx = (KN_MVSCALE+abs(td)>>1)/td
(MVスケーリング値導出方法の変形例1)
式(MVSCALE-1)におけるtdの除算の代わりに、テーブル参照によってtxを導出してもよい。より具体的には、MvDivTableFull[k](0<=k<=128)を用いて下式でtxを導出してもよい。
td = DiffPicOrderCnt (PicMv, PicMvRef) (MVSCALE-1)
tb = DiffPicOrderCnt (CurPic, CurPicRef)
sMv = Clip3 (-R1, R1-1, sign (distScaleFactor * Mv) * ((abs (distScaleFactor * Mv) + round1-1) >> shift1))
distScaleFactor = Clip3 (-R2, R2-1, (tb * tx + round2) >> shift2)
tx = (KN_MVSCALE + abs (td) >> 1) / td
(Modification example 1 of MV scaling value derivation method)
Instead of dividing td in the expression (MVSCALE-1), tx may be derived by table reference. More specifically, tx may be derived by the following equation using MvDivTableFull [k] (0 <= k <= 128).

tx= td > 0 ? MvDivTableFull[abs(td)] : -MvDivTableFull[abs(td)]
MVDivTableFull[k] = (k == 0) ? 0 : (KN_MVSCALE+abs(k)>>1)/k (k = 0..128)
MvDivTable[]は除算をテーブル参照で実行するためのテーブル(逆数、逆数テーブル)であり、テーブルに保持されている値が導出値(除数の逆数に対応する値)である。すなわちテーブルには除数と導出値とが対応付けて保持されている。
tx = td> 0? MvDivTableFull [abs (td)]: -MvDivTableFull [abs (td)]
MVDivTableFull [k] = (k == 0)? 0: (KN_MVSCALE + abs (k) >> 1) / k (k = 0..128)
MvDivTable [] is a table (reciprocal, reciprocal table) for executing division by table reference, and the value held in the table is the derived value (value corresponding to the reciprocal of the divisor). That is, the divisor and the derived value are stored in association with each other in the table.

(MVスケーリング値導出方法の変形例2)
本処理例では、除算テーブルの周期性を利用して、除算テーブルの一部要素のみを格納し、格納しない要素を一部要素から導出することによりメモリを削減する。ここで、除算テーブルは2のべき乗の所定の定数(例えば、KN_MVSCALE)を除数tdの絶対値tdAbsで割った導出値valを格納するテーブルである。
(Modification 2 of the MV scaling value derivation method)
In this processing example, the memory is reduced by storing only a part of the elements of the division table and deriving the elements that are not stored from some elements by using the periodicity of the division table. Here, the division table is a table that stores the derived value val obtained by dividing a predetermined constant of power of 2 (for example, KN_MVSCALE) by the absolute value tdAbs of the divisor td.

val = (KN_MVSCALE+tdAbs>>1)/tdAbs
MVスケーリング部3030は、除算テーブルMvDivTableFullの一部要素(テーブル要素)を用いてtxを導出する。MvDivTableFullは、2^FN個の要素からなる仮想的なテーブルである。そして、MVスケーリング部3030は、MvDivTableFullの一部区間を格納したテーブルMvDivTable(要素数2^N)から一部区間以外の2^FN-2^N個の要素の値(逆数値)を以下の処理により導出する。逆数テーブルを参照に用いるインデックスをidxとする場合、インデックスidxをk個ずつサンプリングした上で、逆数テーブルの値を1/k倍することで所望のvalを導出する。
val = (KN_MVSCALE + tdAbs >> 1) / tdAbs
The MV scaling unit 3030 derives tx using some elements (table elements) of the division table MvDivTableFull. MvDivTableFull is a virtual table consisting of 2 ^ FN elements. Then, the MV scaling unit 3030 sets the values (inverse values) of 2 ^ FN-2 ^ N elements other than some sections from the table MvDivTable (number of elements 2 ^ N) that stores a part of MvDivTableFull as follows. Derived by processing. When the index using the reciprocal table as a reference is idx, the desired val is derived by sampling the index idx by k and then multiplying the value of the reciprocal table by 1 / k.

val = MvDivTable[idx/k]/k = MvDivTable[idx>>sc]>>sc
k=2^(sc)
具体的に、図12を参照して説明する。図12は、格納テーブルの逆数値から格納テーブル以外の逆数値の導出例を説明する図である。この例ではN=4である。まず、MVスケーリング部3030は、図12(a)に示すように、MvDivTableに値を格納する区間Gr5[16..31](すなわち[2^N..(2^(N+1)-1)])では、valとしてMvDivTableの値をそのまま用いる。ここではk=1。
val = MvDivTable [idx / k] / k = MvDivTable [idx >> sc] >> sc
k = 2 ^ (sc)
Specifically, it will be described with reference to FIG. FIG. 12 is a diagram illustrating an example of deriving an inverse value other than the storage table from the inverse value of the storage table. In this example, N = 4. First, as shown in Fig. 12 (a), the MV scaling unit 3030 stores the value in the MvDivTable section Gr5 [16..31] (that is, [2 ^ N .. (2 ^ (N + 1) -1). In)]), the value of MvDivTable is used as it is as val. Here k = 1.

一部区間より後ろの次の区間Gr6[32..63](すなわち[2^(N+1)..(2^(N+2)-1)])では、valとしてMvDivTableの値を1/2倍した値を導出する(k=2)。また、Gr6はGr5の2倍の幅を持つので、同じ値を2回ずつ繰り返して導出する。さらに、次の区間Gr7[64-127](すなわち[2^(N+2)..(2^(N+3)-1)])では、valとしてMvDivTableの値を1/4倍した値を導出する(k=4)。また、Gr7はGr5の4倍の幅を持つので、同じ値を4回ずつ繰り返して導出する。以下、同様の処理を繰り返す。 In the next interval Gr6 [32..63] (that is, [2 ^ (N + 1) .. (2 ^ (N + 2) -1)]) after the part, the value of MvDivTable is set to 1 as val. Derivate the value multiplied by / 2 (k = 2). Also, since Gr6 has twice the width of Gr5, the same value is repeatedly derived twice. Furthermore, in the next interval Gr7 [64-127] (that is, [2 ^ (N + 2) .. (2 ^ (N + 3) -1)]), the value of MvDivTable multiplied by 1/4 as val. Is derived (k = 4). Also, since Gr7 has four times the width of Gr5, the same value is repeatedly derived four times each. Hereinafter, the same process is repeated.

一方、MVスケーリング部3030は、一部区間より前の区間Gr4[8..15](すなわち[2^(N-1)..(2^N-1)])では、valとしてMvDivTable[]の値を2倍した値を導出する(k=1/2)。また、Gr4はGr5の1/2倍の幅を持つので、テーブルの要素を2:1に間引いて導出する。さらに、前の区間Gr3[4..7](すなわち[2^(N-2)..(2^(N-1)-1)])では、valとしてMvDivTable[]の値を4倍した値を導出する(k=1/4)。また、Gr3はGr5の1/4倍の幅を持つので、テーブルの要素を4:1に間引いて導出する。同様に、区間Gr2[2..3](すなわち[2^(N-3)..(2^(N-2)-1)])では、valとしてMvDivTable[]の値を8倍した値を、8:1に間引いて導出する(k=1/8)。同様に、区間Gr1[1](すなわち[2^(N-4)..(2^(N-3)-1)])では、valとしてMvDivTable[]の値を16倍した値を、16:1に間引いて導出する(k=1/16)。 On the other hand, the MV scaling unit 3030 is MvDivTable [] as a val in the section Gr4 [8..15] (that is, [2 ^ (N-1) .. (2 ^ N-1)]) before the partial section. Derivation of the value obtained by doubling the value of (k = 1/2). Also, since Gr4 has half the width of Gr5, the elements of the table are thinned out to 2: 1 to derive. Furthermore, in the previous section Gr3 [4..7] (that is, [2 ^ (N-2) .. (2 ^ (N-1) -1)]), the value of MvDivTable [] was multiplied by 4 as val. Derive the value (k = 1/4). Also, since Gr3 has a width 1/4 times that of Gr5, the elements of the table are thinned out to 4: 1 to derive. Similarly, in the interval Gr2 [2..3] (that is, [2 ^ (N-3) .. (2 ^ (N-2) -1)]), the value of MvDivTable [] is multiplied by 8 as val. Is thinned out to 8: 1 and derived (k = 1/8). Similarly, in the interval Gr1 [1] (that is, [2 ^ (N-4) .. (2 ^ (N-3) -1)]), the value obtained by multiplying the value of MvDivTable [] by 16 as val is 16 Derived by thinning out to 1 (k = 1/16).

図12(b)はこれらの関係をまとめた図である。図12(b)では、対象ピクチャと参照ピクチャのPOCの差分であるtdの絶対値tdAbsを除数a2とみなす。idxはMvDivTable[]のインデックスである。 FIG. 12 (b) is a diagram summarizing these relationships. In FIG. 12 (b), the absolute value tdAbs of td, which is the difference between the POCs of the target picture and the reference picture, is regarded as the divisor a2. idx is the index of MvDivTable [].

MVスケーリング部3030は、tdAbsから、除算テーブルMvDivTableを参照するためのインデックスidxと、値vを導出し、vをscによるシフトで正規化することにより、tdAbsに相当するvalを導出する。 The MV scaling unit 3030 derives the index idx for referencing the division table MvDivTable and the value v from tdAbs, and normalizes v by shifting with sc to derive the val corresponding to tdAbs.

sc = floor(log2(tdAbs))
normDiff = (tdAbs << N) >> sc
idx = normDiff & ((1 << N)-1)
MSB = 1 << (PREC-1)
sc = sc + (normDiff != 0)
v = (MvDivTable[idx] | MSB)
val = v << (14 - (PREC-1) - sc)
除算テーブルMvDivTableの要素数(2^N)が16 (N=4)、除算テーブルの精度PREC=4の場合、MvDivTable[1<<N]の1例を示す。
sc = floor (log2 (tdAbs))
normDiff = (tdAbs << N) >> sc
idx = normDiff & ((1 << N) -1)
MSB = 1 << (PREC-1)
sc = sc + (normDiff! = 0)
v = (MvDivTable [idx] | MSB)
val = v << (14-(PREC-1) --sc)
When the number of elements (2 ^ N) of the division table MvDivTable is 16 (N = 4) and the accuracy of the division table PREC = 4, an example of MvDivTable [1 << N] is shown.

MvDivTable[1 << N] = {0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0 }
MVスケーリング部3030は、スケールシフト値scをtdAbsの対数値から導出する。また、tdAbsをNビット左シフトした値から、scビット右シフトすることによって、normDiffを導出する。また、idxをnormDiffから所定の固有値(N=4の場合16、2^N)を減算して導出してもよい。
MvDivTable [1 << N] = {0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0}
The MV scaling unit 3030 derives the scale shift value sc from the logarithmic value of tdAbs. In addition, normDiff is derived by shifting the tdAbs to the right by the sc bit from the value obtained by shifting the tdAbs to the left by N bits. Further, idx may be derived by subtracting a predetermined eigenvalue (16, 2 ^ N when N = 4) from normDiff.

idx = normDiff - 2^N
これは、normDiffの下位(N-1)ビットを抽出する処理(normDiff & ((1<<N)-1))と等価である。値vはMvDivTable[idx]に2^(PREC-1)を加算して導出する。
idx = normDiff --2 ^ N
This is equivalent to the process of extracting the lower (N-1) bits of normDiff (normDiff & ((1 << N) -1)). The value v is derived by adding 2 ^ (PREC-1) to MvDivTable [idx].

より具体的にはMVスケーリング部303は、以下の処理で導出しても良い。MVスケーリング部303は、tdAbsの2の対数値からscを導出し、tdAbsをNで左シフトし、scで右シフトすることによりnormDiffを導出する。normDiffの下位ビットから除算テーブルの参照に用いるインデックスidxを導出する。さらに固定値MSBを加算して値vを導出する。vをscによるシフトで正規化する(v << (11 - sc))ことにより、valに相当する値txAbsを導出する。導出されたtxAbsはtxの絶対値であることから、tdの符号を付加して、txを導出する。なお、スケールシフト値scは、基本的にはtdAbsの2の対数であるが、以下の処理では、floor()を用いるため、normDiff!=0によって修正を加えている。 More specifically, the MV scaling unit 303 may be derived by the following processing. The MV scaling unit 303 derives sc from the logarithm of 2 of tdAbs, shifts tdAbs to the left by N, and shifts to the right by sc to derive normDiff. The index idx used to refer to the division table is derived from the least significant bit of normDiff. Further, the fixed value MSB is added to derive the value v. By normalizing v by shifting with sc (v << (11 --sc)), the value txAbs corresponding to val is derived. Since the derived txAbs is the absolute value of tx, the sign of td is added to derive tx. The scale shift value sc is basically a logarithm of 2 of tdAbs, but since floor () is used in the following processing, it is modified by normDiff! = 0.

sc = floorLog2(tdAbs)
normDiff = (tdAbs << N) >> sc
idx = normDiff & ((1 << N) - 1))
MSB = 1 << (PREC-1)
sc = sc + (normDiff != 0)
v = MvDivTable[idx] | MSB
txAbs = v << (11 - sc)
tx = ((td < 0) ? -txAbs : txAbs)
ここでfloorLog2(x)は以下の式で導出してもよい。
sc = floorLog2 (tdAbs)
normDiff = (tdAbs << N) >> sc
idx = normDiff & ((1 << N) ―― 1))
MSB = 1 << (PREC-1)
sc = sc + (normDiff! = 0)
v = MvDivTable [idx] | MSB
txAbs = v << (11 --sc)
tx = ((td <0)? -txAbs: txAbs)
Here, floorLog2 (x) may be derived by the following equation.

floorLog2(x) = floor(log2(x)) = (x <= 0) ? -1 : 31 - clz(x)
ただし、上記のclz関数における引数xは、32bitの幅を持つものとする。clz関数によりfloor(Log2(x))と等価な関数を実現できる。
floorLog2 (x) = floor (log2 (x)) = (x <= 0)? -1: 31 --clz (x)
However, it is assumed that the argument x in the above clz function has a width of 32 bits. The clz function can realize a function equivalent to floor (Log2 (x)).

N=4、PREC=4の場合、下記逆数テーブルを用いる。 When N = 4 and PREC = 4, the following reciprocal table is used.

MvDivTable[16] = {0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0}
変形例のMVスケーリング部303は、N=5、PREC=5の場合、下記逆数テーブルを用いる。
MvDivTable [16] = {0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0}
The MV scaling unit 303 of the modified example uses the following reciprocal table when N = 5 and PREC = 5.

MvDivTable[32] = {0, 15, 14, 13, 12, 12, 11, 10, 10, 9, 8, 8, 7, 7, 6, 6, 5, 5, 4, 4, 4, 3, 3, 3, 2, 2, 2, 1, 1, 1, 0, 0}
また、上記擬似コードのtxAbsの導出において、(v<<(10-sc))を用いる。
MvDivTable [32] = {0, 15, 14, 13, 12, 12, 11, 10, 10, 9, 8, 8, 7, 7, 6, 6, 5, 5, 4, 4, 4, 3, 3, 3, 2, 2, 2, 1, 1, 1, 0, 0}
In addition, (v << (10-sc)) is used in deriving txAbs of the above pseudo code.

txAbs = v << (10 - sc)
なお、txAbsは(shift1+shift2)-(PREC-1)、つまり14-(PREC-1)を用いて、下式で導出してもよい。
txAbs = v << (10 --sc)
Note that txAbs may be derived by the following equation using (shift1 + shift2)-(PREC-1), that is, 14- (PREC-1).

txAbs = v << (14 - (PREC - 1) - sc)
本変形例では、POCの差分値tdの逆数によって動きベクトルをスケーリングする場合において、tdの絶対値tdAbsから導出されるシフト値scの右シフトによって値の大きさを低減した値(tdAbs<<N)>>scから導出されるインデックスidxによって除算テーブルMvDivTableを参照する(MvDivTable[idx])ことにより、少ないテーブルサイズのMvDivTableを用いて、動きベクトルのスケーリングを行う効果を奏する。
txAbs = v << (14-(PREC-1) --sc)
In this modification, when the motion vector is scaled by the reciprocal of the difference value td of POC, the size of the value is reduced by the right shift of the shift value sc derived from the absolute value tdAbs of td (tdAbs << N). ) >> By referring to the division table MvDivTable by the index idx derived from sc (MvDivTable [idx]), it has the effect of scaling the motion vector using the MvDivTable with a small table size.

(隣接動きベクトルの導出)
マージ予測部30374及びサブブロック予測部30372は隣接ブロックの動き情報を以下のように導出してもよい。
(Derivation of adjacent motion vector)
The merge prediction unit 30374 and the sub-block prediction unit 30372 may derive the motion information of the adjacent block as follows.

マージ予測部30374及びサブブロック予測部30372には対象ピクチャの左上位置(xCb,yCb)、対象ブロックの幅bWと高さbHが入力され、隣接ブロック(A0、A1、B0、B1、B2)の利用可能フラグavailableFlagA0、availableFlagA1、availableFlagB0、availableFlagB1及びavailableFlagB2、参照ピクチャインデックスrefIdxLXA0、refIdxLXA1、refIdxLXB0、refIdxLXB1及びrefIdxLXB2、予測リスト利用フラグpredFlagLXA0、predFlagLXA1、predFlagLXB0、predFlagLXB1及びpredFlagLXB2、動きベクトルmvLXA0、mvLXA1、mvLXB0、mvLXB1及びmvLXB2が出力される。 The upper left position (xCb, yCb) of the target picture, the width bW and the height bH of the target block are input to the merge prediction unit 30374 and the subblock prediction unit 30372, and the adjacent blocks (A0, A1, B0, B1, B2) Available flags availableFlagA0, availableFlagA1, availableFlagB0, availableFlagB1 and availableFlagB2, reference picture index refIdxLXA0, refIdxLXA1, refIdxLXB0, refIdxLXB1 and refIdxLXB2, predictive list usage flags predFlagLXA0, predFlagLXA1, predFlagB0 mvLXB2 is output.

マージ予測部30374及びサブブロック予測部30372は、隣接ブロックNの利用可能性をA1、B1、B0、A0、B2の順に判定する。 The merge prediction unit 30374 and the sub-block prediction unit 30372 determine the availability of the adjacent block N in the order of A1, B1, B0, A0, B2.

隣接ブロックが利用可能な場合、availableFlagNを1に設定し、mvLXN、refIdxLXN、predFlagLXNにMvLX[xNbN][yNbN]、RefIdxLX[xNbN][yNbN]、PredFlagLX[xNbN][yNbN]を設定する。そうでない場合、availableFlagNを0に設定し、mvLXN、 refIdxLXN、predFlagLXNに0を設定する。 If adjacent blocks are available, set availableFlagN to 1 and set mvLXN, refIdxLXN, predFlagLXN to MvLX [xNbN] [yNbN], RefIdxLX [xNbN] [yNbN], PredFlagLX [xNbN] [yNbN]. If not, set availableFlagN to 0 and mvLXN, refIdxLXN, predFlagLXN to 0.

(インター予測画像生成部309)
predModeがインター予測モードを示す場合、インター予測画像生成部309は、インター予測パラメータ導出部303から入力されたインター予測パラメータと読み出した参照ピクチャを用いてインター予測によりブロックもしくはサブブロックの予測画像を生成する。
(Inter prediction image generation unit 309)
When 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 input from the inter-prediction parameter derivation unit 303 and the read reference picture. do.

図16は、本実施形態に係る予測画像生成部308に含まれるインター予測画像生成部309の構成を示す概略図である。インター予測画像生成部309は、動き補償部(予測画像生成装置)3091、合成部3095を含んで構成される。 FIG. 16 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.

(動き補償)
動き補償部3091(補間画像生成部3091)は、インター予測パラメータ導出部303から入力された、インター予測パラメータ(predFlagLX、refIdxLX、mvLX)に基づいて、参照ピクチャメモリ306から、refIdxLXで指定された参照ピクチャRefPicLX(refImg)における、対象ブロックの位置を起点としてmvLXだけシフトした位置にあるブロックを読み出すことによって補間画像(動き補償画像)を生成する。ここで、mvLXの精度が整数精度でない場合には、動き補償フィルタと呼ばれる小数位置の画素を生成するためのフィルタを施して、補間画像を生成する。
(Motion compensation)
The motion compensation unit 3091 (interpolated image generation unit 3091) is a reference specified by refIdxLX from the reference picture memory 306 based on the inter-prediction parameters (predFlagLX, refIdxLX, mvLX) input from the inter-prediction parameter derivation unit 303. An interpolated image (motion compensation image) is generated by reading out a block in the picture RefPicLX (refImg) at a position shifted by mvLX from the position of the target block as a starting point. Here, when the accuracy of mvLX is not an integer accuracy, 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 performing vertical interpolation processing on 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 dual prediction, the above Pred [ ] [] Is derived for each L0 list and L1 list (called PredL0 [] [] and PredL1 [] []), and Pred [] [] is generated from PredL0 [] [] and PredL1 [] [].

(合成部)
合成部3095は、動き補償部3091から供給される補間画像、インター予測パラメータ導出部303から供給されるインター予測パラメータ、及び、イントラ予測画像生成部310から供給されるイントラ予測画像を参照して、予測画像を生成し、生成した予測画像を加算部312に供給する。
(Synthesis part)
The compositing unit 3095 refers to the interpolated image supplied from the motion compensation unit 3091, the inter-predicted parameters supplied from the inter-predicted parameter derivation unit 303, and the intra-predicted image supplied from the intra-predicted image generation unit 310. A predicted image is generated, and the generated predicted image is supplied to the addition unit 312.

合成部3095は、Combined intra/inter合成部30951、Triangle合成部30952、OBMC部30953、BIO部30954およびLIC部30955を備えている。 The synthesis unit 3095 includes a combined intra / inter synthesis unit 30951, a Triangle synthesis unit 30952, an OBMC unit 30953, a BIO unit 30954, and a LIC unit 30955.

(Combined intra/inter合成処理)
Combined intra/inter合成部30951は、AMVPにおける単方向予測画像、スキップモードやマージ予測モードによる予測画像、及びイントラ予測画像を複合的に用いることによって予測画像を生成する。
(Combined intra / inter compositing process)
The Combined intra / inter combination unit 30951 generates a prediction image by using a unidirectional prediction image in AMVP, a prediction image in the skip mode and the merge prediction mode, and an intra prediction image in combination.

(Triangle合成処理)
Triangle合成部30952はTriangle予測を用いた予測画像を生成する。
(Triangle composition process)
The Triangle synthesizer 30952 generates a prediction image using the Triangle prediction.

(OBMC処理)
OBMC部30953は、OBMC(Overlapped block motion compensation)処理を用いて予測画像を生成する。
(OBMC processing)
The OBMC unit 30953 generates a predicted image using OBMC (Overlapped block motion compensation) processing.

(BIO処理)
BIO部30954は、BIO(Bi-directional optical flow;双予測勾配変化)処理を行うことによって、予測画像を生成する。BIO処理では、PredL0及びPredL1と、勾配補正項とを参照して予測画像を生成する。
(BIO processing)
The BIO unit 30954 generates a predicted image by performing BIO (Bi-directional optical flow) processing. In the BIO process, a predicted image is generated with reference to PredL0 and PredL1 and the gradient correction term.

(LIC処理)
LIC部30955は、LIC利用フラグlicFlagの値が1である場合に、LIC(Local Illumination Compensation)処理を行うことによって、既に復号した同じ色成分の画素値に基づいて対象ブロックの画素値を予測する。具体的には、復号した同じ色成分の画像をもとに、線形モデルを用いて、対象ブロックの予測画像を生成する方式である。図8は、LIC部30955の構成の一例を示したブロック図である。LIC部30955には、LICパラメータ導出部(パラメータ導出部)309552と、LICフィルタ部309553とが含まれる。
(LIC processing)
When the value of the LIC utilization flag licFlag is 1, the LIC unit 30955 predicts the pixel value of the target block based on the pixel value of the same color component already decoded by performing LIC (Local Illumination Compensation) processing. .. Specifically, it is a method of generating a predicted image of a target block by using a linear model based on a decoded image of the same color component. FIG. 8 is a block diagram showing an example of the configuration of the LIC unit 30955. The LIC unit 30955 includes a LIC parameter derivation unit (parameter derivation unit) 309552 and a LIC filter unit 309553.

以下、LICパラメータ導出部309552が線形モデルscale*x+offsetにおけるスケーリングファクタscale、及びオフセットoffsetを導出し、LICフィルタ部309553が予測画像predLXL[x][y]、predLXcb[x][y]およびpredLXcr[x][y]を更新する工程について説明する。 Below, the LIC parameter derivation unit 309552 derives the scaling factor scale and offset offset in the linear model scale * x + offset, and the LIC filter unit 309553 uses the predicted images predLXL [x] [y], predLXcb [x] [y] and The process of updating predLXcr [x] [y] will be described.

全般として、LIC部30955は、対象ブロックの左上位置(xCb, yCb)、幅bWおよび高さbH、輝度の1/16画素精度の動きベクトルmvLX、色差の1/32画素精度の動きベクトルmvCLX、参照ピクチャrefPicLXL、refPicLXCbおよびrefPicLXCr、動き補償部3091で生成した補間画像predLXL、predLXCbおよびpredLXCrを入力値として、出力値である更新後の予測画像predLXL、predLXCbおよびpredLXCrを導出する。 In general, the LIC section 30955 includes the upper left position (xCb, yCb) of the target block, width bW and height bH, motion vector mvLX with 1/16 pixel accuracy of luminance, and motion vector mvCLX with 1/32 pixel accuracy of color difference. Using the reference picture refPicLXL, refPicLXCb and refPicLXCr, and the interpolated images predLXL, predLXCb and predLXCr generated by the motion compensation unit 3091 as input values, the updated predicted images predLXL, predLXCb and predLXCr which are output values are derived.

LICパラメータ導出部309552は、対象ブロックおよび参照ブロックの隣接画素を導出する工程においては、(xCb, yCb)、bWおよびbH、mvLX、refPicLX、色成分インデックスcIdxを入力値として出力値を導出する。当該出力値は、参照ブロックの隣接画素値の和sumR、対象ブロックの隣接画素値の和sumC、参照ブロックの隣接画素値の二乗和sumRR、対象ブロックの隣接画素値と参照ブロックの隣接画素値の積和sumRC、および隣接画素数の2を底とする対数値cntShiftである。 The LIC parameter derivation unit 309552 derives an output value using (xCb, yCb), bW and bH, mvLX, refPicLX, and the color component index cIdx as input values in the process of deriving adjacent pixels of the target block and the reference block. The output value is sumR of the adjacent pixel values of the reference block, sumC of the adjacent pixel values of the target block, sum RR of the squared pixel values of the reference block, and the adjacent pixel value of the target block and the adjacent pixel value of the reference block. The sum of products sumRC and the logarithmic cntShift with the number of adjacent pixels at the base of 2.

また、LICパラメータ導出部309552は、予測画像を更新するための線形モデルを導出する工程においては、上記sumR、sumC、sumRR、sumRC、cntShift、色成分インデックスcIdxを入力値として出力値を導出する。当該出力値は、scaleおよびオフセットoffsetである。 Further, the LIC parameter derivation unit 309552 derives an output value using the above sumR, sumC, sumRR, sumRC, cntShift, and the color component index cIdx as input values in the process of deriving the linear model for updating the predicted image. The output values are scale and offset offset.

また、LICフィルタ部309553は、予測画像を以下の式によって更新する。ここで、xは0からbW-1までの値をとり、yは0からbH-1までの値をとる。 In addition, the LIC filter unit 309553 updates the predicted image by the following formula. Here, x takes a value from 0 to bW-1, and y takes a value from 0 to bH-1.

predLX[x][y] = Clip1(((scale * predLX[x][y]) >> shiftS) + offset) (LIC-1)
ここでshiftS=5であってもよい。
predLX [x] [y] = Clip1 (((scale * predLX [x] [y]) >> shiftS) + offset) (LIC-1)
Here, shiftS = 5 may be set.

輝度成分では、上記に対し、(xCb, yCb)、bWおよびbH、mvLX、refPicLXL、cIdx=0を入力し、scale、offsetを出力する。 For the luminance component, (xCb, yCb), bW and bH, mvLX, refPicLXL, cIdx = 0 are input for the above, and scale and offset are output.

色差成分では、(xCb, yCb)、bW、bHの代わりに下記を入力する。 For the color difference component, enter the following instead of (xCb, yCb), bW, bH.

(xCbC, yCbC) = (xCb >> 1, yCb >> 1)
bWC = bW >> 1
bHC = bH >> 1
また、mvLXの代わりにmvCLXを入力する。また、refPicLXLの代わりに、Cb成分であればrefPicLXcb、cIdx=1を、Cr成分であればrefPicLXcr、cIdx=2を入力し、Cb成分のscale、offsetおよびCr成分のscale、offsetを出力する。
(xCbC, yCbC) = (xCb >> 1, yCb >> 1)
bWC = bW >> 1
bHC = bH >> 1
Also, enter mvCLX instead of mvLX. Instead of refPicLXL, refPicLXcb and cIdx = 1 are input for the Cb component, refPicLXcr and cIdx = 2 are input for the Cr component, and the scale and offset of the Cb component and the scale and offset of the Cr component are output.

続いて、LICパラメータ導出部309552が、(xCb, yCb)、bWおよびbH、mvLX、refPicLX、cIdxを入力値として、sumR、sumC、sumRR、sumRCおよびcontShiftを導出する工程について説明する。 Next, a process in which the LIC parameter derivation unit 309552 derives sumR, sumC, sumRR, sumRC, and contShift using (xCb, yCb), bW and bH, mvLX, refPicLX, and cIdx as input values will be described.

LICパラメータ導出部309552は、以下を導出する。
・対象ブロックの整数精度の動きベクトルintMV:
intMv[0] = (cIdx == 0) ? ((mvLX[0] + (1 << 3))>> 4) : ((mvLX[0] + (1 << 4))>>5)
intMv[1] = (cIdx == 0) ? ((mvLX[1] + (1 << 3))>> 4) : ((mvLX[1] + (1 << 4))>>5)
・参照ブロック位置(xInt[x], yInt[y]):
xInt[x] = Clip3(0, pic_width_in_luma_samples - 1, xCb + intMv[0] + x)
yInt[y] = Clip3(0, pic_height_in_luma_samples - 1, yCb + intMv[1] + y)
ここで、xは、-1からbW-1までの値をとり、yは、-1からbH-1までの値をとる。
・画素ビット数bitDepth:
bitDepth = (cIdx == 0) ? BitDepthY : BitDepthC
ここで、BitDepthYは輝度成分のビット深度、BitDepthCは色差成分のビット深度であり、例えば10bitである。
・変数precShift、minDimおよびnumSteps:
precShift = Max(0, bitDepth - 12)
minDim = Min(bW, bH)
numSteps = (minDim > 8) ? (minDim >> 1) : minDim
・対象ブロック位置xCbYおよびyCbY:
(xCbY, yCbY) = (cIdx == 0) ? (xCb, yCb) : (xCb << 1, yCb << 1)
図9にLICパラメータ導出部309552が参照する対象ブロック、参照ブロック、隣接画素の関係を図示する。
The LIC parameter derivation unit 309552 derives the following.
-Integer-precision motion vector of the target block intMV:
intMv [0] = (cIdx == 0)? ((mvLX [0] + (1 << 3)) >> 4): ((mvLX [0] + (1 << 4)) >> 5)
intMv [1] = (cIdx == 0)? ((mvLX [1] + (1 << 3)) >> 4): ((mvLX [1] + (1 << 4)) >> 5)
-Reference block position (xInt [x], yInt [y]):
xInt [x] = Clip3 (0, pic_width_in_luma_samples --1, xCb + intMv [0] + x)
yInt [y] = Clip3 (0, pic_height_in_luma_samples --1, yCb + intMv [1] + y)
Here, x takes a value from -1 to bW-1, and y takes a value from -1 to bH-1.
-Number of pixel bits bitDepth:
bitDepth = (cIdx == 0)? BitDepthY: BitDepthC
Here, BitDepthY is the bit depth of the luminance component, and BitDepthC is the bit depth of the color difference component, for example, 10 bits.
-Variables precShift, minDim and numSteps:
precShift = Max (0, bitDepth --12)
minDim = Min (bW, bH)
numSteps = (minDim> 8)? (minDim >> 1): minDim
-Target block positions xCbY and yCbY:
(xCbY, yCbY) = (cIdx == 0)? (xCb, yCb): (xCb << 1, yCb << 1)
FIG. 9 illustrates the relationship between the target block, the reference block, and the adjacent pixel referenced by the LIC parameter derivation unit 309552.

また、LICパラメータ導出部309552は、(xCbY-1, yCbY)を含む隣接ブロックが利用可能であれば、左隣接画素の利用可能性availLに1をセットし、そうでなければavailLに0をセットする。 In addition, the LIC parameter derivation unit 309552 sets 1 to the availability availL of the left adjacent pixel if the adjacent block containing (xCbY-1, yCbY) is available, and sets 0 to availL otherwise. do.

また、LICパラメータ導出部309552は、(xCbY, yCbY-1)を含む隣接ブロックが利用可能であれば、上隣接画素の利用可能性availTに1をセットし、そうでなければavailTに0をセットする。 In addition, the LIC parameter derivation unit 309552 sets 1 to the availability availT of the upper adjacent pixel if the adjacent block containing (xCbY, yCbY-1) is available, and sets 0 to availT otherwise. do.

ここで、もしavailLおよびavailTの双方がFALSEであれば、sumR=sumC=sumRR=sumRC=contShift=0とする。そうでなければ、LICパラメータ導出部309552は、以下の手順によって、scaleおよびoffsetを導出する。 Here, if both availL and availT are FALSE, then sumR = sumC = sumRR = sumRC = contShift = 0. Otherwise, the LIC parameter derivation unit 309552 derives scale and offset by the following procedure.

(ステップ1)availLがTRUEである場合、LICパラメータ導出部309552は、対象ブロックの左隣接画素C[x][y]に(currPic[xCb+x][yCb+y] >> precShift)をセットする。ここで、xは-1をとり、yは、0からbH-1までの値をとる。また、availTがTRUEである場合、LIC部30955は、対象ブロックの上隣接画素C[x][y]に(currPic[xCb+x][yCb+y] >> precShift)をセットする。ここで、xは、0からbW-1までの値をとり、yは-1をとる。currPicは対象ピクチャを示す。 (Step 1) When availL is TRUE, the LIC parameter derivation unit 309552 sets (currPic [xCb + x] [yCb + y] >> precShift) to the left adjacent pixel C [x] [y] of the target block. do. Here, x takes -1 and y takes a value from 0 to bH-1. When availT is TRUE, the LIC unit 30955 sets (currPic [xCb + x] [yCb + y] >> precShift) to the upper adjacent pixels C [x] [y] of the target block. Here, x takes a value from 0 to bW-1, and y takes -1. currPic indicates the target picture.

(ステップ2)availLがTRUEである場合、LICパラメータ導出部309552は、参照ブロックの左隣接画素R[x][y]に(refPicLX[xInt[x]][yInt[y]] >> precShift)をセットする。ここで、xは-1をとり、yは、0からbH-1までの値をとる。また、availTがTRUEである場合、参照ブロックの上隣接画素R[x][y]に(refPicLX[xInt[x]][yInt[y]] >> precShift)をセットする。ここで、xは、0からbW-1までの値をとり、yは-1をとる。refPicLXは参照ピクチャを示す。 (Step 2) When availL is TRUE, the LIC parameter derivation unit 309552 is set to the left adjacent pixel R [x] [y] of the reference block (refPicLX [xInt [x]] [yInt [y]] >> precShift). To set. Here, x takes -1 and y takes a value from 0 to bH-1. If availT is TRUE, set (refPicLX [xInt [x]] [yInt [y]] >> precShift) to the upper adjacent pixel R [x] [y] of the reference block. Here, x takes a value from 0 to bW-1, and y takes -1. refPicLX indicates a reference picture.

なお、図9(a)に示すように、(ステップ1)、(ステップ2)では対象ブロック、参照ブロックの外側のL字型の領域を隣接画素として設定する。これ以外に、図9(b)のように、対象ブロックおよび参照ブロックの左および左下の2*bH個の画素(全部あるいは一部)を隣接画素として設定してもよい。あるいは、図9(c)のように、対象ブロックおよび参照ブロックの上および右上の2*bW個の画素(全部あるいは一部)を隣接画素として設定してもよい。以下では、(ステップ1)、(ステップ2)で設定した隣接画素を用いて処理を説明する。 As shown in FIG. 9A, in (step 1) and (step 2), the L-shaped area outside the target block and the reference block is set as adjacent pixels. In addition to this, as shown in FIG. 9B, 2 * bH pixels (all or part) on the left and lower left of the target block and the reference block may be set as adjacent pixels. Alternatively, as shown in FIG. 9 (c), 2 * bW pixels (all or part) above and on the upper right of the target block and the reference block may be set as adjacent pixels. Hereinafter, the process will be described using the adjacent pixels set in (step 1) and (step 2).

(ステップ3)LICパラメータ導出部309552は、変数sL[k]およびsT[k]を以下の式によって導出する。ここでkは、0からnumSteps-1までの値をとる。
sL[k] = (k * bH) >> Log2(numSteps)
sT[k] = (k * bW) >> Log2(numSteps)
(ステップ4)LICパラメータ導出部309552は、変数sumR、sumC、sumRRおよびsumRCを以下の式によって導出する。
(Step 3) The LIC parameter derivation unit 309552 derives the variables sL [k] and sT [k] by the following equations. Where k takes a value from 0 to numSteps-1.
sL [k] = (k * bH) >> Log2 (numSteps)
sT [k] = (k * bW) >> Log2 (numSteps)
(Step 4) The LIC parameter derivation unit 309552 derives the variables sumR, sumC, sumRR and sumRC by the following equations.

Figure 2022065225000002
(ステップ5)LICパラメータ導出部309552が予測画像を更新するための線形モデルに係る値を導出する工程について説明する。
cntShift = (availL && availT) ? (Log2(numSteps)+1) : Log2(numSteps)
以下の工程において、LICパラメータ導出部309552は、上記sumR、sumC、sumRR、sumRC、contShiftおよびcIdxを入力値として、対象ブロックの隣接画素の特徴量a1、参照ブロックの隣接画素の特徴量a2を導出する。
・除算テーブルLICDivTable[k]を以下のように設定する。ここで、kは0から63までの値をとる。
LICDivTableFull[0] = 0
LICDivTableFull[k] = ((1 << 15) + (k >> 1)) / k
・変数precShiftおよびcropShift:
precShift = Max(0, bitDepth - 12)
cropShift = Max(0, bitDepth - precShift + cntShift - 15)
ここで、LICパラメータ導出部309552は、cntShiftの値が0であればscale=32、offset=0とする。そうでなければ、以下の手順でa1、a2を導出する。
sumRR = ((sumRR + (sumRR >> 7)) >> (2 * cropShift)) << cntShift
sumRC = ((sumRC + (sumRR >> 7)) >> (2*cropShift)) << cntShift
sumRsumR = (sumR >> cropShift) * (sumR >> cropShift)
sumRsumC = (sumR >> cropShift) * (sumC >> cropShift)
a1 = sumRC - sumRsumC
a2 = sumRR - sumRsumR
(ステップ6)LICパラメータ導出部309552は、上記のa1、a2を用いて以下の手順でスケーリングファクタscaleを導出する。
shifta1 = Max(0, Ceil(Log2(Abs(a2))) - 18)
shifta2 = Max(0, Ceil(Log2(Abs(a2))) - 6)
shifta = shifta2 + 10 - shifta1
a1 = a1 >> shifta1
a2 = Clip3(0, 63, a2 >> shifta2)
LICパラメータ導出部309552は、a1、a2を用いてスケーリングファクタscaleを導出する。
scale = Clip3(0, 128, (a1 * LICDivTableFull[a2]) >> shifta)
(ステップ7)LICパラメータ導出部309552は、以下の手順でオフセットoffsetを導出する。
sumR = sumR << precShift
sumC = sumC << precShift
maxb = (1 << (bitDepth - 1)) - 1
minb = -1 - maxb
shiftS = 5
offset = Clip3(minb, maxb, (sumC - ((scale * sumR) >> shiftS)+(1 << (cntShift - 1)) >> cntShift)
LICフィルタ部309553は、scale、offsetを用いて予測画像を以下の式によって更新する。ここで、xは0からbW-1までの値をとり、yは0からbH-1までの値をとる。
predLX[x][y] = Clip1(((scale * predLX[x][y]) >> shiftS) + offset)
(scale、offsetの導出方法の変形例)
変形例では(ステップ4)~(ステップ5)とは異なる方法でスケーリングファクタscaleおよびオフセットoffsetを導出する。
Figure 2022065225000002
(Step 5) The step in which the LIC parameter derivation unit 309552 derives the value related to the linear model for updating the predicted image will be described.
cntShift = (availL && availT)? (Log2 (numSteps) +1): Log2 (numSteps)
In the following steps, the LIC parameter derivation unit 309552 derives the feature amount a1 of the adjacent pixel of the target block and the feature amount a2 of the adjacent pixel of the reference block using the above sumR, sumC, sumRR, sumRC, contShift and cIdx as input values. do.
-Set the division table LICDivTable [k] as follows. Here, k takes a value from 0 to 63.
LICDivTableFull [0] = 0
LICDivTableFull [k] = ((1 << 15) + (k >> 1)) / k
-Variables precShift and cropShift:
precShift = Max (0, bitDepth --12)
cropShift = Max (0, bitDepth --precShift + cntShift --15)
Here, the LIC parameter derivation unit 309552 sets scale = 32 and offset = 0 if the value of cntShift is 0. If not, a1 and a2 are derived by the following procedure.
sumRR = ((sumRR + (sumRR >> 7)) >> (2 * cropShift)) << cntShift
sumRC = ((sumRC + (sumRR >> 7)) >> (2 * cropShift)) << cntShift
sumRsumR = (sumR >> cropShift) * (sumR >> cropShift)
sumRsumC = (sumR >> cropShift) * (sumC >> cropShift)
a1 = sumRC --sumRsumC
a2 = sumRR --sumRsumR
(Step 6) The LIC parameter derivation unit 309552 derives the scaling factor scale by the following procedure using the above a1 and a2.
shifta1 = Max (0, Ceil (Log2 (Abs (a2))) --18)
shifta2 = Max (0, Ceil (Log2 (Abs (a2))) -6)
shifta = shifta2 + 10 --shifta1
a1 = a1 >> shift a1
a2 = Clip3 (0, 63, a2 >> shift a2)
The LIC parameter derivation unit 309552 derives the scaling factor scale using a1 and a2.
scale = Clip3 (0, 128, (a1 * LICDivTableFull [a2]) >> shifta)
(Step 7) The LIC parameter derivation unit 309552 derives the offset offset by the following procedure.
sumR = sumR << precShift
sumC = sumC << precShift
maxb = (1 << (bitDepth ―― 1)) ―― 1
minb = -1 --maxb
shiftS = 5
offset = Clip3 (minb, maxb, (sumC-((scale * sumR) >> shiftS) + (1 << (cntShift-1)) >> cntShift)
The LIC filter unit 309553 updates the predicted image by the following formula using scale and offset. Here, x takes a value from 0 to bW-1, and y takes a value from 0 to bH-1.
predLX [x] [y] = Clip1 (((scale * predLX [x] [y]) >> shiftS) + offset)
(Modified example of derivation method of scale and offset)
In the modified example, the scaling factor scale and the offset offset are derived by a method different from (step 4) to (step 5).

(LICパラメータ導出部309552)
(scaleの導出方法)
scale、offsetの導出において、LICパラメータ導出部309552は、参照ブロックの隣接画素R[][]から画素値が最大(Ref_MAX)となる点(x1,y1)と最小(Ref_MIN)となる点(x2,y2)を導出する。次に対象ブロックの隣接画素C[][]上の(x1,y1)、(x2,y2)の画素値を各々Cur_MAX、Cur_MINとする。ここで、R[][]、C[][]は、図9に示す全ての隣接画素を用いてもよいし、(ステップ3)のsL[k]、sT[k]で示される位置の画素値を用いてもよい。そして、図10(a)のように、R[x][y]とC[x][y](-1<=x<bW、-1<=y<bH)をそれぞれx軸、y軸にとったグラフ上で(Ref_MAX,Cur_MAX)と(Ref_MIN,Cur_MIN)を結ぶ直線を求める。この直線のscaleとoffsetを導出するための変数a1、a2は以下の式で導出する。
(LIC parameter derivation unit 309552)
(How to derive scale)
In the derivation of scale and offset, the LIC parameter derivation unit 309552 has a point (x1, y1) where the pixel value becomes the maximum (Ref_MAX) and a point (x2) where the pixel value becomes the maximum (Ref_MAX) from the adjacent pixels R [] [] of the reference block. , y2) is derived. Next, let the pixel values of (x1, y1) and (x2, y2) on the adjacent pixels C [] [] of the target block be Cur_MAX and Cur_MIN, respectively. Here, for R [] [] and C [] [], all the adjacent pixels shown in FIG. 9 may be used, or the positions indicated by sL [k] and sT [k] in (step 3) may be used. Pixel values may be used. Then, as shown in Fig. 10 (a), R [x] [y] and C [x] [y] (-1 <= x <bW, -1 <= y <bH) are on the x-axis and y-axis, respectively. Find the straight line connecting (Ref_MAX, Cur_MAX) and (Ref_MIN, Cur_MIN) on the graph. The variables a1 and a2 for deriving the scale and offset of this straight line are derived by the following equations.

a1 = Cur_MAX - Cur_MIN (SCALE-1)
a2 = Ref_MAX - Ref_MIN
画素値Ref_MAX、Ref_MIN、Cur_MAX、Cur_MINをもつ点が複数あった場合、例えば複数の点の平均値を(x1,y1)、(x2,y2)としてもよい。
a1 = Cur_MAX --Cur_MIN (SCALE-1)
a2 = Ref_MAX --Ref_MIN
When there are a plurality of points having pixel values Ref_MAX, Ref_MIN, Cur_MAX, and Cur_MIN, for example, the average value of the plurality of points may be (x1, y1), (x2, y2).

なお、a1、a2を求める場合の、参照画素(Ref_MAX、Ref_MIN)と対象画素(Cur_MAX、Cur_MIN)は上記に限定されない。例えば以下に示す4つの変形例がある。 The reference pixels (Ref_MAX, Ref_MIN) and the target pixels (Cur_MAX, Cur_MIN) when a1 and a2 are obtained are not limited to the above. For example, there are the following four modifications.

なお、offsetを求める場合に、(ステップ7)の方法以外に下記の導出方法を用いてもよい。例えば、直線が通る点の座標としてRef_MINとCur_MINを利用する場合、下式でoffsetを導出してもよい。 When obtaining the offset, the following derivation method may be used in addition to the method (step 7). For example, when Ref_MIN and Cur_MIN are used as the coordinates of a point through which a straight line passes, offset may be derived by the following equation.

offset = Clip3(minb, maxb, Cur_MIN - (scale * Ref_MIN))
あるいは、直線が通る点の座標としてRef_MAXとCur_MAXを利用する場合、下式でoffsetを導出してもよい。
offset = Clip3 (minb, maxb, Cur_MIN-(scale * Ref_MIN))
Alternatively, when Ref_MAX and Cur_MAX are used as the coordinates of the points through which the straight line passes, the offset may be derived by the following equation.

offset = Clip3(minb, maxb, Cur_MAX - (scale * Ref_MAX))
また以下でもよい。
offset = Clip3 (minb, maxb, Cur_MAX-(scale * Ref_MAX))
It may also be as follows.

offset = Clip3(minb, maxb, Cur_AVE - (scale * Ref_AVE))
ここで、Cur_AVE、Ref_AVEは各々、C[][]とR[][]の平均値である。
offset = Clip3 (minb, maxb, Cur_AVE-(scale * Ref_AVE))
Here, Cur_AVE and Ref_AVE are the average values of C [] [] and R [] [], respectively.

(scaleの導出方法の変形例1)
変形例1では、a1、a2の導出に用いる代表点として、参照ブロックの隣接画素R[][]から、2番目に大きな画素値Ref_MAX2とその座標(x3,y3)、2番目に小さな画素値Ref_MIN2とその座標(x4,y4)を導出する。次に対象ブロックの隣接画素C[][]上の(x3,y3)、(x4,y4)の画素値を各々Cur_MAX2、Cur_MIN2とする。
(Modification example 1 of scale derivation method)
In the first modification, as a representative point used for deriving a1 and a2, the second largest pixel value Ref_MAX2 and its coordinates (x3, y3) and the second smallest pixel value from the adjacent pixel R [] [] of the reference block. Derive Ref_MIN2 and its coordinates (x4, y4). Next, let the pixel values of (x3, y3) and (x4, y4) on the adjacent pixels C [] [] of the target block be Cur_MAX2 and Cur_MIN2, respectively.

次に、Ref_MAX、Ref_MIN、Cur_MAX、Cur_MINとして、Ref_MAX2、Ref_MIN2、Cur_MAX2、Cur_MIN2を代入する。 Next, Ref_MAX2, Ref_MIN2, Cur_MAX2, and Cur_MIN2 are substituted as Ref_MAX, Ref_MIN, Cur_MAX, and Cur_MIN.

Ref_MAX = Ref_MAX2
Ref_MIN = Ref_MIN2
Cur_MAX = Cur_MAX2
Cur_MIN = Cur_MIN2
これらを(SCALE-1)に代入し、a1、a2を導出する。画素値Ref_MAX、Ref_MIN、Cur_MAX、Cur_MINをもつ点が複数あった場合、例えば複数の点の平均値を(x1,y1)、(x2,y2)、(x3,y3)、(x4,y4)としてもよい。
Ref_MAX = Ref_MAX2
Ref_MIN = Ref_MIN2
Cur_MAX = Cur_MAX2
Cur_MIN = Cur_MIN2
Substitute these into (SCALE-1) and derive a1 and a2. When there are multiple points with pixel values Ref_MAX, Ref_MIN, Cur_MAX, and Cur_MIN, for example, the average value of the multiple points is set as (x1, y1), (x2, y2), (x3, y3), (x4, y4). May be good.

最大値、最小値を使用しないことにより、最大値、最小値が外れ値であった時の性能低下を小さくする効果がある。 By not using the maximum and minimum values, there is an effect of reducing the performance deterioration when the maximum and minimum values are outliers.

(scaleの導出方法の変形例2)
変形例2では、a1、a2の導出に用いる代表点として、参照ブロックの隣接画素R[][]から、最大画素値Ref_MAXとその座標(x1,y1)、最小画素値Ref_MINとその座標(x2,y2)、2番目に大きな画素値Ref_MAX2とその座標(x3,y3)、2番目に小さな画素値Ref_MIN2とその座標(x4,y4)を導出する。次に対象ブロックの隣接画素C[][]上の(x1,y1)、(x2,y2)、(x3,y3)、(x4,y4)の画素値を各々Cur_MAX、Cur_MIN、Cur_MAX2、Cur_MIN2とする。
(Variation example 2 of the scale derivation method)
In the second modification, the maximum pixel value Ref_MAX and its coordinates (x1, y1) and the minimum pixel value Ref_MIN and its coordinates (x2) from the adjacent pixels R [] [] of the reference block as representative points used for deriving a1 and a2. , y2) The second largest pixel value Ref_MAX2 and its coordinates (x3, y3) are derived, and the second smallest pixel value Ref_MIN2 and its coordinates (x4, y4) are derived. Next, the pixel values of (x1, y1), (x2, y2), (x3, y3), and (x4, y4) on the adjacent pixels C [] [] of the target block are set to Cur_MAX, Cur_MIN, Cur_MAX2, and Cur_MIN2, respectively. do.

Ref_MAX、Ref_MIN、Cur_MAX、Cur_MINとして、Ref_MAXとRef_MAX2の平均値、Ref_MINとRef_MIN2の平均値、Cur_MAXとCur_MAX2の平均値、Cur_MINとCur_MIN2の平均値を代入する。更新された(Ref_MAX,Cur_MAX)、(Ref_MIN,Cur_MIN)は図10(b)の"X"で示す点である。 Substitute the average value of Ref_MAX and Ref_MAX2, the average value of Ref_MIN and Ref_MIN2, the average value of Cur_MAX and Cur_MAX2, and the average value of Cur_MIN and Cur_MIN2 as Ref_MAX, Ref_MIN, Cur_MAX, and Cur_MIN. The updated (Ref_MAX, Cur_MAX) and (Ref_MIN, Cur_MIN) are the points indicated by "X" in FIG. 10 (b).

Ref_MAX = (Ref_MAX + Ref_MAX2 + 1) >> 1
Ref_MIN = (Ref_MIN + Ref_MIN2 + 1) >> 1
Cur_MAX = (Cur_MAX + Cur_MAX2 + 1) >> 1
Cur_MIN = (Cur_MIN + Cur_MIN2 + 1) >> 1
これらを(SCALE-1)に代入し、この直線のscaleとoffsetを導出するためのa1、a2を導出する。画素値Ref_MAX、Ref_MIN、Cur_MAX、Cur_MINをもつ点が複数あった場合、例えば複数の点の平均値を(x1,y1)、(x2,y2)、(x3,y3)、(x4,y4)としてもよい。
Ref_MAX = (Ref_MAX + Ref_MAX2 + 1) >> 1
Ref_MIN = (Ref_MIN + Ref_MIN2 + 1) >> 1
Cur_MAX = (Cur_MAX + Cur_MAX2 + 1) >> 1
Cur_MIN = (Cur_MIN + Cur_MIN2 + 1) >> 1
Substituting these into (SCALE-1), a1 and a2 for deriving the scale and offset of this straight line are derived. When there are multiple points with pixel values Ref_MAX, Ref_MIN, Cur_MAX, and Cur_MIN, for example, the average value of the multiple points is set as (x1, y1), (x2, y2), (x3, y3), (x4, y4). May be good.

平均値を使用することにより、最大値、最小値が外れ値であった時の性能低下を小さくする効果がある。 By using the average value, there is an effect of reducing the performance deterioration when the maximum value and the minimum value are outliers.

(scaleの導出方法の変形例3)
変形例3では、a1、a2の導出に用いる代表点として、参照ブロックの隣接画素R[][]から最大画素値Ref_MAX、最小画素値Ref_MINを導出する。次に対象ブロックの隣接画素C[][]から最大画素値Cur_MAX、最小画素値Cur_MINを導出する。
(Variation example 3 of the scale derivation method)
In the third modification, the maximum pixel value Ref_MAX and the minimum pixel value Ref_MIN are derived from the adjacent pixels R [] [] of the reference block as representative points used for deriving a1 and a2. Next, the maximum pixel value Cur_MAX and the minimum pixel value Cur_MIN are derived from the adjacent pixels C [] [] of the target block.

次に(Ref_MIN,Cur_MIN)と(Ref_MAX,Cur_MAX)を結ぶ直線を求める。(Ref_MIN,Cur_MIN)と(Ref_MAX,Cur_MAX)は図11(a)の"X"で示す点である。この直線のscaleとoffsetを導出するための変数a1、a2は(SCALE-1)で導出できる。 Next, find the straight line connecting (Ref_MIN, Cur_MIN) and (Ref_MAX, Cur_MAX). (Ref_MIN, Cur_MIN) and (Ref_MAX, Cur_MAX) are the points indicated by "X" in FIG. 11 (a). The variables a1 and a2 for deriving the scale and offset of this straight line can be derived by (SCALE-1).

(scaleの導出方法の変形例4)
変形例4では、a1、a2の導出に用いる第1の代表点として、参照ブロックの隣接画素R[][]から最大画素値Ref_MAXとその座標(x1,y1)、最小画素値Ref_MINとその座標(x2,y2)、2番目に大きな画素値Ref_MAX2とその座標(x3,y3)、2番目に小さな画素値Ref_MIN2とその座標(x4,y4)を導出する。次に対象ブロックの隣接画素C[][]上の(x1,y1)、(x2,y2)、(x3,y3)、(x4,y4)の画素値を各々Cur_MAX、Cur_MIN、Cur_MAX2、Cur_MIN2とする。
(Variation example 4 of the scale derivation method)
In the modified example 4, as the first representative points used for deriving a1 and a2, the maximum pixel value Ref_MAX and its coordinates (x1, y1) and the minimum pixel value Ref_MIN and their coordinates from the adjacent pixels R [] [] of the reference block. (x2, y2) The second largest pixel value Ref_MAX2 and its coordinates (x3, y3) are derived, and the second smallest pixel value Ref_MIN2 and its coordinates (x4, y4) are derived. Next, the pixel values of (x1, y1), (x2, y2), (x3, y3), and (x4, y4) on the adjacent pixels C [] [] of the target block are set to Cur_MAX, Cur_MIN, Cur_MAX2, and Cur_MIN2, respectively. do.

Ref_MAX、Ref_MIN、Cur_MAX、Cur_MINとして、Ref_MAXとRef_MAX2の平均値、Ref_MINとRef_MIN2の平均値、Cur_MAXとCur_MAX2の平均値、Cur_MINとCur_MIN2の平均値を代入する。 Substitute the average value of Ref_MAX and Ref_MAX2, the average value of Ref_MIN and Ref_MIN2, the average value of Cur_MAX and Cur_MAX2, and the average value of Cur_MIN and Cur_MIN2 as Ref_MAX, Ref_MIN, Cur_MAX, and Cur_MIN.

Ref_MAX = (Ref_MAX + Ref_MAX2 + 1) >> 1
Ref_MIN = (Ref_MIN + Ref_MIN2 + 1) >> 1
Cur_MAX = (Cur_MAX + Cur_MAX2 + 1) >> 1
Cur_MIN = (Cur_MIN + Cur_MIN2 + 1) >> 1
これらは図11(b)の白丸で示す点Xmax=(Ref_MAX,Cur_MAX)、Xmin=(Ref_MIN,Cur_MIN)である。
Ref_MAX = (Ref_MAX + Ref_MAX2 + 1) >> 1
Ref_MIN = (Ref_MIN + Ref_MIN2 + 1) >> 1
Cur_MAX = (Cur_MAX + Cur_MAX2 + 1) >> 1
Cur_MIN = (Cur_MIN + Cur_MIN2 + 1) >> 1
These are the points Xmax = (Ref_MAX, Cur_MAX) and Xmin = (Ref_MIN, Cur_MIN) indicated by the white circles in FIG. 11 (b).

次にR[][]の全画素の平均値Ref_AVEとC[][]の全画素の平均値Cur_AVEを導出する。 Next, the average value Ref_AVE of all pixels of R [] [] and the average value Cur_AVE of all pixels of C [] [] are derived.

Ref_AVE = ΣR[x][y]
Cur_AVE = ΣC[x][y]
ここでΣは(x,y)に関する総和である。これは図11(b)の白丸で示す点Xave=(Ref_AVE,Cur_AVE)である。
Ref_AVE = ΣR [x] [y]
Cur_AVE = ΣC [x] [y]
Where Σ is the sum of (x, y). This is the point Xave = (Ref_AVE, Cur_AVE) indicated by the white circle in Fig. 11 (b).

さらに、XmaxとXaveを通る直線のscale1を導出するための変数a1_1、a2_1を(SCALE-1)で導出する。同様に、XminとXaveを通る直線のscale2を導出するための変数a1_2、a2_2を(SCALE-1)で導出する。 Furthermore, the variables a1_1 and a2_1 for deriving scale1 of the straight line passing through Xmax and Xave are derived by (SCALE-1). Similarly, the variables a1_2 and a2_2 for deriving scale2 of the straight line passing through Xmin and Xave are derived by (SCALE-1).

(ステップ6)あるいは下記(LICパラメータ導出方法の変形例)を用いて、a1_1、a2_1およびa1_2、a2_2からscale1およびscale2を導出する。そして、scale1とscale2の平均値をscaleとし、Xaveを通る傾きscaleの直線の切片をoffsetとする。 (Step 6) Or the following (a modified example of the LIC parameter derivation method) is used to derive scale1 and scale2 from a1_1, a2_1 and a1_2, and a2_2. Then, the average value of scale1 and scale2 is set as scale, and the intercept of the straight line of the slope scale passing through Xave is set as offset.

scale = (scale1 + scale2 + 1) >> 1
offset = Cur_AVE - scale * Ref_AVE
変形例4は変形例1~3に比べて外れ値に対してロバストであり、性能が向上する。
scale = (scale1 + scale2 + 1) >> 1
offset = Cur_AVE --scale * Ref_AVE
The modified example 4 is more robust to outliers than the modified examples 1 to 3, and the performance is improved.

(LICフィルタ部309553)
LICフィルタ部309553は、参照画像predLX[][]を入力信号とし、scale、offset、shiftSを用いて更新されたpredLX[][]を出力する。
(LIC filter section 309553)
The LIC filter unit 309553 uses the reference image predLX [] [] as an input signal and outputs the updated predLX [] [] using scale, offset, and shiftS.

predLX[][] = ((scale * predLX[][]) >> shiftS) + offset (LIC-2)
なお、shiftSは以下で説明する。
predLX [] [] = ((scale * predLX [] []) >> shiftS) + offset (LIC-2)
ShiftS will be described below.

(LICパラメータ導出方法の変形例)
本処理例では、除算テーブルの要素数を減らしメモリを削減する。LICDivTableFullは、一種の繰り返し構造を有するために、テーブルサイズを削減することができる。比較的小数の除算テーブルLICDivTableを用いてLICパラメータ(スケーリングファクタscale、オフセットoffset)を導出する。LICDivTableは、LICDivTableFullの一部分に相当するテーブルであり、2^N個の要素からなる。そして、LICパラメータ導出部309552は、小数のLICDivTableの要素からLICDivTableFullの要素InvDivを導出する。
(Modified example of LIC parameter derivation method)
In this processing example, the number of elements in the division table is reduced to reduce the memory. Since LICDivTableFull has a kind of repeating structure, the table size can be reduced. Derivation of LIC parameters (scaling factor scale, offset offset) using a relatively small division table LICDivTable. LICDivTable is a table corresponding to a part of LICDivTableFull and consists of 2 ^ N elements. Then, the LIC parameter derivation unit 309552 derives the element InvDiv of LICDivTableFull from the elements of the decimal LICDivTable.

図12はInvDivの導出例を説明する図である。この例ではN=4であり、LICDivTableは16個の要素を含む。図12(a)に示すように、LICパラメータ導出部309552は、区間Gr5[16-31](すなわち[2^N..(2^(N+1)-1)])では、除数の逆数に関する値InvDivを各々LICDivTable[]に格納する。 FIG. 12 is a diagram illustrating an example of deriving InvDiv. In this example, N = 4, and the LICDivTable contains 16 elements. As shown in FIG. 12 (a), the LIC parameter derivation unit 309552 is the reciprocal of the divisor in the interval Gr5 [16-31] (that is, [2 ^ N .. (2 ^ (N + 1) -1)]). Store each value InvDiv for in LICDivTable [].

次の区間Gr6[32..63](すなわち[2^(N+1)..(2^(N+2)-1)])では、LICDivTableの値を各々1/2倍した値をInvDivとして導出する。また、Gr6はGr5の2倍の幅を持つので、同じ値を2回ずつ繰り返して導出する。さらに、次の区間Gr7[64..127](すなわち[2^(N+2)..(2^(N+3)-1)])では、LICDivTableの値を各々1/4倍した値をInvDivとして導出する。また、Gr7はGr5の4倍の幅を持つので、同じ値を4回ずつ繰り返して導出する。以下、同様の処理を繰り返す。 In the next interval Gr6 [32..63] (that is, [2 ^ (N + 1) .. (2 ^ (N + 2) -1)]), InvDiv is the value obtained by multiplying the value of LICDivTable by 1/2. Derived as. Also, since Gr6 has twice the width of Gr5, the same value is repeatedly derived twice. Furthermore, in the next interval Gr7 [64..127] (that is, [2 ^ (N + 2) .. (2 ^ (N + 3) -1)]), the value of LICDivTable is multiplied by 1/4. Is derived as InvDiv. Also, since Gr7 has four times the width of Gr5, the same value is repeatedly derived four times each. Hereinafter, the same process is repeated.

一方、LICパラメータ導出部309552は、区間Gr4[8..15](すなわち[2^(N-1)..(2^N-1)])では、LICDivTable[]の値を各々2倍した値をInvDivとして導出する。また、Gr4はGr5の1/2倍の幅を持つので、テーブルの要素を2:1に間引いて導出する。さらに、区間Gr3[4..7](すなわち[2^(N-2)..(2^(N-1)-1)])では、LICDivTable[]の値を各々4倍した値をInvDivとして導出する。また、Gr3はGr5の1/4倍の幅を持つので、テーブルの要素を4:1に間引いて導出する。同様に、区間Gr2[2..3](すなわち[2^(N-3)..(2^(N-2)-1)])では、LICDivTable[]の値を各々8倍した値を、8:1に間引いて導出する。同様に、区間Gr1[1](すなわち[2^(N-4)..(2^(N-3)-1)])では、LICDivTable[]の値を16倍した値を、16:1に間引いて導出する。 On the other hand, the LIC parameter derivation unit 309552 doubled the value of LICDivTable [] in the interval Gr4 [8..15] (that is, [2 ^ (N-1) .. (2 ^ N-1)]). Derived the value as InvDiv. Also, since Gr4 has half the width of Gr5, the elements of the table are thinned out to 2: 1 to derive. Furthermore, in the interval Gr3 [4..7] (that is, [2 ^ (N-2) .. (2 ^ (N-1) -1)]), the value of LICDivTable [] is multiplied by 4 and the value is InvDiv. Derived as. Also, since Gr3 has a width 1/4 times that of Gr5, the elements of the table are thinned out to 4: 1 to derive. Similarly, in the interval Gr2 [2..3] (that is, [2 ^ (N-3) .. (2 ^ (N-2) -1)]), the value of LICDivTable [] is multiplied by 8 each. , 8: 1 thinned out to derive. Similarly, in the interval Gr1 [1] (ie [2 ^ (N-4) .. (2 ^ (N-3) -1)]), the value of LICDivTable [] is multiplied by 16 to 16: 1. It is thinned out to and derived.

図12(b)はこれらの関係をまとめた図である。a2は除数、idxはLICDivTable[]のインデックスであり、InvDiv=LICDivTable[idx]である。 FIG. 12 (b) is a diagram summarizing these relationships. a2 is a divisor, idx is an index of LICDivTable [], and InvDiv = LICDivTable [idx].

LICパラメータ導出部309552は、(ステップ5)で導出した除数a2から、除算テーブルLICDivTableを参照するためのインデックスidxと、a2の逆数導出に必要な値InvDivを導出する。 The LIC parameter derivation unit 309552 derives the index idx for referencing the division table LICDivTable and the value InvDiv required for deriving the reciprocal of a2 from the divisor a2 derived in (step 5).

sc = floor(log2(a2))
normDiff = (a2 << N) >> sc
idx = normDiff & ((1 << N) - 1)
MSB = 1 << (PREC - 1)
InvDiv = (LICDivTable[idx] | MSB)
除算テーブルの要素数(2^N)が16(N=4)、除算テーブルの精度PREC=4の場合、LICDivTble[1<<N]の一例を示す。
sc = floor (log2 (a2))
normDiff = (a2 << N) >> sc
idx = normDiff & ((1 << N) ―― 1)
MSB = 1 << (PREC -1)
InvDiv = (LICDivTable [idx] | MSB)
When the number of elements (2 ^ N) of the division table is 16 (N = 4) and the accuracy of the division table is PREC = 4, an example of LICDivTble [1 << N] is shown.

LICDivTable[1 << N] = {0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0 }
LICパラメータ導出部309552は、スケールシフト値scをa2の対数値から導出する。また、a2をNビット左シフトした値から、scビット右シフトすることによって、normDiffを導出する。また、idxをnormDiffから所定の固有値(N=4の場合16、2^N)を減算して導出する。これは、normDiffの下位(N-1)ビットを抽出する処理(normDiff & ((1<<N)-1))と等価である。InvDivはLICDivTable[idx]に2^(PREC-1)を加算して導出する。
LICDivTable [1 << N] = {0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0}
The LIC parameter derivation unit 309552 derives the scale shift value sc from the logarithmic value of a2. In addition, normDiff is derived by shifting a2 to the left by N bits and shifting it to the right by sc bits. Also, idx is derived by subtracting a predetermined eigenvalue (16, 2 ^ N when N = 4) from normDiff. This is equivalent to the process of extracting the lower (N-1) bits of normDiff (normDiff & ((1 << N) -1)). InvDiv is derived by adding 2 ^ (PREC-1) to LICDivTable [idx].

本変形例では、シフトによって削減したインデックスで、除算テーブルLICDivTableを参照する(LICDivTable[idx])ことにより、LICDivTableの要素数を削減し、テーブルサイズを削減する効果を奏する。N=4の場合、(ステップ5)のLICDivTableは64個の要素を格納したが、変形例のLICDivTableは16個の要素を格納するだけでよい。 In this modification, by referring to the division table LICDivTable (LICDivTable [idx]) with the index reduced by the shift, the number of elements of the LICDivTable is reduced and the table size is reduced. When N = 4, the LICDivTable in (step 5) stores 64 elements, but the LICDivTable in the modified example only needs to store 16 elements.

次に、LICパラメータ導出部309552は、InvDivから除数の逆数を以下の方法によって導出する。 Next, the LIC parameter derivation unit 309552 derives the reciprocal of the divisor from InvDiv by the following method.

LICパラメータ導出部309552は、scaleのビット幅を調整するための変数expC、shiftA、被除数a1と0の大きい方の値a10を、(ステップ5)で導出した被除数a1から導出する。 The LIC parameter derivation unit 309552 derives the variables expC and shiftA for adjusting the bit width of scale, the division number a1 and the larger value a10 of 0 from the division number a1 derived in (step 5).

a10 = Max(0, a1)
expC = floor(log2(a10))
sc1 = sc + ((idx != 0) ? 1 : 0)
shiftA = (PREC-1) + sc1 - expC
LICにおいては負の傾きが生じることは稀である。ここでは符号の処理を簡便にするために、a10を0または正の数としている。
a10 = Max (0, a1)
expC = floor (log2 (a10))
sc1 = sc + ((idx! = 0)? 1: 0)
shiftA = (PREC-1) + sc1 --expC
Negative slopes rarely occur in LIC. Here, a10 is set to 0 or a positive number in order to simplify the code processing.

LICパラメータ導出部309552は、次の式を用いてもscaleを導出してもよい。 The LIC parameter derivation unit 309552 may derive the scale using the following equation.

add1 = 1 << (shiftA + expC) >> 1
scale = ((a10 * InvDiv) + add1 ) >> (shiftA + expC)
この場合、a10 * InvDivの乗算に要する最大のビット幅はexpC+PRECである。expCのとりうる最大値に合わせて乗算回路の規模を大きくする必要がある。これを抑制するため、さらに、上記とは別の構成として、LICパラメータ導出部309552は、以下の方法でscaleを導出してもよい。
add1 = 1 << (shiftA + expC) >> 1
scale = ((a10 * InvDiv) + add1) >> (shiftA + expC)
In this case, the maximum bit width required for multiplication of a10 * InvDiv is expC + PREC. It is necessary to increase the scale of the multiplication circuit according to the maximum value that expC can take. In order to suppress this, the LIC parameter derivation unit 309552 may derive the scale by the following method as a configuration different from the above.

add = (1 << expC) >> 1
add1 = (1 << shiftA) >> 1
tmp = ((a10 << LSHIFT) + add) >> expC
scale = ((tmp * InvDiv) + add1) >> shiftA
LSHIFTはscaleの精度を示すパラメータである。
add = (1 << expC) >> 1
add1 = (1 << shiftA) >> 1
tmp = ((a10 << LSHIFT) + add) >> expC
scale = ((tmp * InvDiv) + add1) >> shiftA
LSHIFT is a parameter that indicates the accuracy of scale.

上記のtmpはこれを抑制するものである。まずa10をLSHIFTビット左シフトし、それからexpCビット右シフトすることで、tmpが得られる。tmpの値は、a10 >= 1<<(LSHIFT-1)の場合にはa10の上位LSHIFTビットの値であり、そうでない場合には、tmpがLSHIFTビットになるよう下位ビットを0で埋めた値となる。これにより、scaleの導出時の乗算tmp*InvDivは、常にLSHIFT*PRECビット以下の比較的小規模な乗算に抑える効果が得られる。LSHIFTの値は、たとえば5である。 The above tmp suppresses this. First, shift a10 to the left by the LSHIFT bit, and then shift the expC bit to the right to obtain tmp. The value of tmp is the value of the upper LSHIFT bit of a10 if a10> = 1 << (LSHIFT-1), otherwise the lower bits are padded with 0s so that tmp becomes the LSHIFT bit. It becomes a value. As a result, the multiplication tmp * InvDiv at the time of deriving the scale always has the effect of suppressing the multiplication to a relatively small scale of LSHIFT * PREC bits or less. The value of LSHIFT is, for example, 5.

なお、a10 = Max(0, a1)ではなく、a10を次のように導出してもよい。 Note that a10 may be derived as follows instead of a10 = Max (0, a1).

a10 = abs(a1)
ただし、この場合には、scaleの導出に符号の導出を含める必要がある。たとえば
scale = (((tmp * InvDiv) + add1) >> shiftA ) * sign(a1)
とする。
a10 = abs (a1)
However, in this case, it is necessary to include the sign derivation in the scale derivation. for example
scale = (((tmp * InvDiv) + add1) >> shiftA) * sign (a1)
And.

LICパラメータ導出部309552は、shiftSを設定する。 The LIC parameter derivation unit 309552 sets shiftS.

shiftS = LSHIFT
上記アルゴリズムをまとめると、scaleは以下の処理で導出することができる。
shiftS = LSHIFT
Summarizing the above algorithms, scale can be derived by the following processing.

LICDivTable[1<<N] = {0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0}
sc = floorLog2(a2)
normDiff = (a2 << N) >> sc
idx = normDiff & ((1 << N) - 1))
MSB = 1 << (PREC-1)
InvDiv = LICDivTable[idx] | MSB
sc1 = sc + (idx!=0 ? 1 : 0)
a10 = Max(0, a1)
expC = floorLog2(a10)
add = 1 << expC >> 1
add1 = 1 << shiftA >> 1
shiftA = (PREC-1) + sc1 - expC
tmp = ((a10 << LSHIFT) + add) >> expC
scale = Clip3(0, 1<<(LSHIFT+2), ((tmp * InvDiv) + add1) >> shiftA)
shiftS = LSHIFT
scaleのクリッピングの上限は1<<(LSHIFT+2)でなく、1<<(LSHIFT+1)でもよい。
LICDivTable [1 << N] = {0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0}
sc = floorLog2 (a2)
normDiff = (a2 << N) >> sc
idx = normDiff & ((1 << N) ―― 1))
MSB = 1 << (PREC-1)
InvDiv = LICDivTable [idx] | MSB
sc1 = sc + (idx! = 0? 1: 0)
a10 = Max (0, a1)
expC = floorLog2 (a10)
add = 1 << expC >> 1
add1 = 1 << shiftA >> 1
shiftA = (PREC-1) + sc1 --expC
tmp = ((a10 << LSHIFT) + add) >> expC
scale = Clip3 (0, 1 << (LSHIFT + 2), ((tmp * InvDiv) + add1) >> shiftA)
shiftS = LSHIFT
The upper limit of clipping of scale may be 1 << (LSHIFT + 1) instead of 1 << (LSHIFT + 2).

scale = Clip3(0, 1<<(LSHIFT+1), ((tmp * InvDiv) + add1) >> shiftA)
あるいは、クリッピングの上限は2の指数乗-1とすることが適当である。この場合、クリッピングの上限を2の指数乗とする場合に比べscaleを用いる乗算に必要なビット幅を1ビット削減する効果を奏する。例えば、(1<<(LSHIFT+2))-1でもよい。LSHIFT=5の場合、scaleの最大値は127(6bit)であり128(7bit)を最大値とする場合に比べ1ビット削減できる。
scale = Clip3 (0, 1 << (LSHIFT + 1), ((tmp * InvDiv) + add1) >> shiftA)
Alternatively, it is appropriate that the upper limit of clipping is 2 to the power of -1. In this case, the bit width required for multiplication using scale is reduced by 1 bit as compared with the case where the upper limit of clipping is set to the exponent power of 2. For example, (1 << (LSHIFT + 2)) -1 may be used. When LSHIFT = 5, the maximum value of scale is 127 (6 bits), which can be reduced by 1 bit compared to the case where 128 (7 bits) is the maximum value.

scale = Clip3(0, (1<<(LSHIFT+2))-1, ((tmp * InvDiv) + add1) >> shiftA)
さらに、クリッピングの上限は(1<<(LSHIFT+1))-1でもよい。この場合、scaleの最大値が63(5bit)でありscaleを用いる乗算に必要なビット幅を2ビット削減することができる。
scale = Clip3 (0, (1 << (LSHIFT + 2))-1, ((tmp * InvDiv) + add1) >> shiftA)
Further, the upper limit of clipping may be (1 << (LSHIFT + 1)) -1. In this case, the maximum value of scale is 63 (5 bits), and the bit width required for multiplication using scale can be reduced by 2 bits.

scale = Clip3(0, (1<<(LSHIFT+1))-1, ((tmp * InvDiv) + add1) >> shiftA)
floorLog2は以下の式で導出してもよい。
scale = Clip3 (0, (1 << (LSHIFT + 1))-1, ((tmp * InvDiv) + add1) >> shiftA)
floorLog2 may be derived by the following formula.

floorLog2 (x) = floor(log2(x)) = (x <= 0) ? -1 : 31 - clz(x)
ただし、上記のclz関数における引数xは、32bitの幅を持つものとする。
floorLog2 (x) = floor (log2 (x)) = (x <= 0)? -1: 31 --clz (x)
However, it is assumed that the argument x in the above clz function has a width of 32 bits.

なお、上記のLICDivTableはN=4、PREC=4の場合であったが、N=4、PREC=5の場合は下記のテーブルを用いてもよい。 The above LICDivTable was for N = 4 and PREC = 4, but the following table may be used for N = 4 and PREC = 5.

LICDivTable[1<<N] = {0,14,12,10, 9, 8, 7, 6, 5, 4, 3, 2, 2, 1, 1, 0}
また、N=4、PREC=6の場合は下記のテーブルを用いてもよい。
LICDivTable [1 << N] = {0,14,12,10, 9, 8, 7, 6, 5, 4, 3, 2, 2, 1, 1, 0}
Further, in the case of N = 4 and PREC = 6, the following table may be used.

LICDivTable[1<<N] = {0,28,24,21,19,16,14,12,10, 8, 7, 5, 4, 3, 2, 1}
なお、これらのLICDivTableの値は近似値であるため、正確に上記の値でないテーブルでも構わない。
LICDivTable [1 << N] = {0,28,24,21,19,16,14,12,10, 8, 7, 5, 4, 3, 2, 1}
Since the values of these LICDivTables are approximate values, tables that are not exactly the above values may be used.

さらに、除数a2の値に基づいて、scaleやshiftS、offsetを所定の値に設定するようにしてもよい。たとえば、a2が正の数でない場合に、下記のようにする。 Further, scale, shiftS, and offset may be set to predetermined values based on the value of the divisor a2. For example, if a2 is not a positive number, do the following:

scale = 1 << LSHIFT
shiftS = LSHIFT
また、a2がa1と等しい場合には明らかに傾きは45度であるので、下記のようにしてもよい。
scale = 1 << LSHIFT
shiftS = LSHIFT
Further, when a2 is equal to a1, the inclination is obviously 45 degrees, so the following may be used.

scale = 1 << LSHIFT
shiftS = LSHIFT
これらのときoffsetは、(scaleの導出方法)の節で説明した式から導出してもよいし、固定値(たとえば0)としてもよい。
scale = 1 << LSHIFT
shiftS = LSHIFT
In these cases, offset may be derived from the equation described in the section (method of deriving scale), or may be a fixed value (for example, 0).

図13は、(LICパラメータ導出方法の変形例)のLICパラメータ導出部309552の動作を示すデータフロー図である。LICパラメータ導出部309552は、a2とa1を入力として、a1/a2のスケーリングファクタscaleを導出する。またscaleの精度であるshiftSを導出してもよい。内部的にLICパラメータ導出部309552は、シフト値expCとshiftAを導出してもよい。ここで、a1は分子(Numerator)、a2は分母(Denominator)であり、a1をnumer、a2をdenomと呼んでも良い。 FIG. 13 is a data flow diagram showing the operation of the LIC parameter derivation unit 309552 of (a modified example of the LIC parameter derivation method). The LIC parameter derivation unit 309552 derives the scaling factor scale of a1 / a2 by taking a2 and a1 as inputs. Further, shiftS, which is the accuracy of scale, may be derived. Internally, the LIC parameter derivation unit 309552 may derive the shift values expC and shiftA. Here, a1 is a numerator and a2 is a denominator, and a1 may be called a numerator and a2 may be called a denom.

なお、(LICパラメータ導出方法の変形例)は(scale、offsetの導出方法の変形例)と組み合わせてscale、offsetを導出してもよい。 In addition, (variation example of the LIC parameter derivation method) may be combined with (variation example of the derivation example of scale and offset) to derive scale and offset.

(重み予測)
重み予測では、PredLXに重み係数を乗算することによりブロックの予測画像を生成する。predFlagL0もしくはpredFlagL1が1(単予測)、かつ、重み予測を用いない場合、PredLX(LXはL0もしくはL1)を画素ビット数bitDepthに合わせる以下の式の処理を行う。
(Weight prediction)
In weight prediction, a predicted image of a block is generated by multiplying PredLX by a weighting factor. When predFlagL0 or predFlagL1 is 1 (single prediction) and weight prediction is not used, the following formula processing is performed to match PredLX (LX is L0 or L1) 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(双予測BiPred)、かつ、重み予測を用いない場合、PredL0、PredL1を平均し画素ビット数に合わせる以下の式の処理を行う。
Pred [x] [y] = Clip3 (0, (1 << bitDepth) -1, (PredLX [x] [y] + offset1) >> shift1)
Here, shift1 = 14-bitDepth, offset1 = 1 << (shift1-1).
If predFlagL0 and predFlagL1 are both 1 (bipred BiPred) and 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.

さらに、双予測BiPred、かつ、重み予測を行う場合、重み予測部3094は重み予測係数w0、w1、o0、o1を符号化データから導出し、以下の式の処理を行う。 Further, in the case of double prediction BiPred 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))
そして、生成したブロックの予測画像を加算部312に出力する。
Pred [x] [y] = Clip3 (0, (1 << bitDepth) -1, (PredL0 [x] [y] * w0 + PredL1 [x] [y] * w1 + ((o0 + o1 + 1) <<log2WD))>> (log2WD + 1))
Then, the predicted image of the generated block is output to the addition unit 312.

逆量子化・逆変換部311は、エントロピー復号部301から入力された量子化変換係数を逆量子化して変換係数を求める。この量子化変換係数は、符号化処理において、予測誤差に対してDCT(Discrete Cosine Transform、離散コサイン変換)、DST(Discrete Sine Transform、離散サイン変換)等の周波数変換を行い量子化して得られる係数である。逆量子化・逆変換部311は、求めた変換係数について逆DCT、逆DST等の逆周波数変換を行い、予測誤差を算出する。逆量子化・逆変換部311は予測誤差を加算部312に出力する。逆量子化・逆変換部311は、skip_flagが1の場合もしくはcu_cbpが0の場合に対象ブロックの予測誤差を全て0と設定する。 The inverse quantization / inverse conversion unit 311 inversely quantizes the quantization conversion coefficient input from the entropy decoding unit 301 to obtain the conversion coefficient. This quantization transform coefficient is a coefficient obtained by performing frequency conversion such as DCT (Discrete Cosine Transform) and DST (Discrete Sine Transform) on the prediction error in the coding process. Is. The inverse quantization / inverse conversion unit 311 performs inverse frequency conversion such as inverse DCT and inverse DST on the obtained conversion coefficient, and calculates a prediction error. The inverse quantization / inverse conversion unit 311 outputs the prediction error to the addition unit 312. The inverse quantization / inverse conversion unit 311 sets all the prediction errors of the target block to 0 when skip_flag is 1 or cu_cbp is 0.

加算部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の構成について説明する。図14は、本実施形態に係る動画像符号化装置11の構成を示すブロック図である。動画像符号化装置11は、予測画像生成部101、減算部102、変換・量子化部103、逆量子化・逆変換部105、加算部106、ループフィルタ107、予測パラメータメモリ(予測パラメータ記憶部、フレームメモリ)108、参照ピクチャメモリ(参照画像記憶部、フレームメモリ)109、符号化パラメータ決定部110、予測パラメータ導出部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. 14 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, prediction parameter derivation unit 120, and entropy coding unit 104.

予測画像生成部101は画像の各ピクチャを分割した領域であるCU毎に予測画像を生成する。予測画像生成部101は既に説明した予測画像生成部308と同じ動作であり、説明を省略する。 The prediction image generation unit 101 generates a prediction image for each CU, which is a region in which each picture of the image is divided. The predicted image generation unit 101 has the same operation as the predicted image generation unit 308 described above, and the description thereof will be omitted.

減算部102は、予測画像生成部101から入力されたブロックの予測画像の画素値を、画像の画素値から減算して予測誤差を生成する。減算部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 to generate a prediction error. The subtraction unit 102 outputs the prediction error to the conversion / quantization unit 103.

変換・量子化部103は、減算部102から入力された予測誤差に対し、周波数変換によって変換係数を算出し、量子化によって量子化変換係数を導出する。変換・量子化部103は、量子化変換係数をエントロピー符号化部104及び逆量子化・逆変換部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 outputs the quantization conversion coefficient to the entropy coding unit 104 and the inverse quantization / inverse conversion unit 105.

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

エントロピー符号化部104には、変換・量子化部103から量子化変換係数が入力され、符号化パラメータ決定部110から符号化パラメータが入力される。符号化パラメータには、例えば、refIdxLX、mvp_LX_idx、mvdLX、predMode、及びmerge_idx等の符号がある。 A quantization conversion coefficient is input to the entropy coding unit 104 from the conversion / quantization unit 103, and a coding parameter is input from the coding parameter determination unit 110. Coding parameters include, for example, codes such as refIdxLX, mvp_LX_idx, mvdLX, predMode, and merge_idx.

エントロピー符号化部104は、分割情報、予測パラメータ、量子化変換係数等をエントロピー符号化して符号化ストリームTeを生成し、出力する。 The entropy coding unit 104 entropy-codes the division information, the prediction parameter, the quantization conversion coefficient, and the like to generate a coded stream Te, and outputs the coded stream Te.

予測パラメータ導出部120は、インター予測パラメータ導出部303、イントラ予測パラメータ導出部304を含む手段であり、符号化パラメータ決定部110から入力された符号化パラメータからインター予測パラメータ及びイントラ予測パラメータを導出する。導出されたパラメータは、予測画像生成部101と予測パラメータメモリ108に出力される。パラメータ符号化部111は、ヘッダ符号化部1110、CT情報符号化部1111、CU符号化部1112(予測モード符号化部)を備えている。CU符号化部1112はさらにTU符号化部1114を備えている。 The prediction parameter derivation unit 120 is a means including the inter prediction parameter derivation unit 303 and the intra prediction parameter derivation unit 304, and derives the inter prediction parameter and the intra prediction parameter from the coding parameter input from the coding parameter determination unit 110. .. The derived parameters are output to the prediction image generation unit 101 and the prediction parameter memory 108. 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.

以下、各モジュールの概略動作を説明する。予測パラメータ導出部120はヘッダ情報、分割情報、予測情報、量子化変換係数等のパラメータの符号化処理を行う。 Hereinafter, the schematic operation of each module will be described. The prediction parameter derivation unit 120 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情報、予測情報、split_transform_flag、cbf_cb、cbf_cr、cbf_luma等を符号化する。 The CU coding unit 1112 encodes CU information, prediction information, split_transform_flag, cbf_cb, cbf_cr, cbf_luma and the like.

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

CT情報符号化部1111、CU符号化部1112は、インター予測パラメータ(predMode、merge_flag、merge_idx、inter_pred_idc、refIdxLX、mvp_LX_idx、mvdLX)、イントラ予測パラメータ、量子化変換係数等のシンタックス要素をエントロピー符号化部104に供給する。 The CT information coding unit 1111 and the CU coding unit 1112 entropy-code the syntax elements such as inter-prediction parameters (predMode, merge_flag, merge_idx, inter_pred_idc, refIdxLX, mvp_LX_idx, mvdLX), intra-prediction parameters, and quantization conversion coefficients. Supply to unit 104.

符号化パラメータ決定部110は、符号化パラメータの複数のセットのうち、1つのセットを選択する。符号化パラメータとは、上述したQT、BTあるいはTT分割情報、予測パラメータ、あるいはこれらに関連して生成される符号化の対象となるパラメータである。予測パラメータ導出部120は、符号化パラメータ決定部110が決定したパラメータから予測パラメータを導出し、予測画像生成部101に出力する。予測画像生成部101は、これらの予測パラメータを用いて予測画像を生成する。 The coding parameter determination unit 110 selects one set from a 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 parameter derivation unit 120 derives the prediction parameter from the parameter determined by the coding parameter determination unit 110 and outputs the prediction parameter to the prediction image generation unit 101. The prediction image generation unit 101 generates a prediction image using these prediction parameters.

符号化パラメータ決定部110は、複数のセットの各々について情報量の大きさと符号化誤差を示すRDコスト値を算出する。RDコスト値は、例えば、符号量と二乗誤差に係数λを乗じた値との和である。符号量は、量子化誤差と符号化パラメータをエントロピー符号化して得られる符号化ストリームTeの情報量である。二乗誤差は、減算部102において算出された予測誤差の二乗和である。係数λは、予め設定されたゼロよりも大きい実数である。符号化パラメータ決定部110は、算出したコスト値が最小となる符号化パラメータのセットを選択する。これにより、エントロピー符号化部104は、選択した符号化パラメータのセットを符号化ストリームTeとして出力する。予測パラメータ導出部303により導出された予測パラメータを予測パラメータメモリ108に記憶する。 The coding parameter determination unit 110 calculates an RD cost value indicating the magnitude of the amount of information and the coding error for each of the plurality of sets. The RD cost value is, for example, the sum of the code amount and the 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. As a result, the entropy coding unit 104 outputs the selected set of coding parameters as the coding stream Te. The prediction parameters derived by the prediction parameter derivation unit 303 are stored in the prediction parameter memory 108.

加算部106は、予測画像生成部101から入力されたブロックの予測画像の画素値と逆量子化・逆変換部105から入力された予測誤差を画素毎に加算して復号画像を生成する。加算部106は生成した復号画像を参照ピクチャメモリ109に記憶する。 The addition unit 106 adds the pixel value of the predicted image of the 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.

なお、上述した実施形態における動画像符号化装置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 prediction 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.

本願の一態様に係るLIC部は以下の特徴を持つ。 The LIC unit according to one aspect of the present application has the following features.

LIC予測により予測画像を生成するLIC部であって、対象ブロックの隣接画素(第1の隣接画素)と、参照ブロックの隣接画素(第2の隣接画素)と、テーブルを用いてスケーリングファクタscaleとオフセットoffset(LICパラメータ)を導出するLICパラメータ導出部と、参照ブロックの画像とLICパラメータを用いて予測画像を生成するLICフィルタ部とを備え、上記LICパラメータ導出部は、第1の隣接画素および第2の隣接画素を用いて、対象ブロックの隣接画素の特徴量a1(第1の特徴量)と参照ブロックの隣接画素の特徴量a2(第2の特徴量)を導出し、第2の特徴量a2を用いて上記テーブルの参照値InvDivを導出し、第1の特徴量a1と上記テーブル参照値InvDivを乗算した値を第1のシフト値(expC、shiftA)によって右シフトすることでスケーリングファクタscaleを導出し、上記LICパラメータ導出部は、第1の隣接画素、第2の隣接画素、および、スケーリングファクタを用いてオフセットoffsetを導出することを特徴とする。 It is an LIC part that generates a predicted image by LIC prediction, and uses an adjacent pixel of the target block (first adjacent pixel), an adjacent pixel of the reference block (second adjacent pixel), and a scaling factor scale using a table. The LIC parameter derivation unit for deriving the offset offset (LIC parameter) and the LIC filter unit for generating the predicted image using the reference block image and the LIC parameter are provided, and the LIC parameter derivation unit includes the first adjacent pixel and the LIC parameter. Using the second adjacent pixel, the feature amount a1 (first feature amount) of the adjacent pixel of the target block and the feature amount a2 (second feature amount) of the adjacent pixel of the reference block are derived, and the second feature is derived. The scaling factor is derived by deriving the reference value InvDiv of the above table using the quantity a2, and shifting the value obtained by multiplying the first feature quantity a1 and the above table reference value InvDiv to the right by the first shift value (expC, shiftA). The scale is derived, and the LIC parameter derivation unit is characterized in that an offset offset is derived using a first adjacent pixel, a second adjacent pixel, and a scaling factor.

上記LICパラメータ導出部は、第2の特徴量a2からスケールシフト値scを導出し、第2の特徴量a2をスケールシフト値scだけ右シフトして得られるインデックスidxによって上記テーブルを参照することを特徴とする。 The LIC parameter derivation unit derives the scale shift value sc from the second feature quantity a2, and refers to the table by the index idx obtained by shifting the second feature quantity a2 to the right by the scale shift value sc. It is a feature.

上記LICパラメータ導出部は、上記第1のシフト値(expC、shiftA)を、第1の特徴量a1とスケールシフト値scから導出することを特徴とする。 The LIC parameter derivation unit is characterized in that the first shift value (expC, shiftA) is derived from the first feature amount a1 and the scale shift value sc.

上記第1のシフト値は第2のシフト値(expC)と第3のシフト値(shiftA)の値を含み、第2のシフト値(expC)は第1の特徴量a1から導出し、第3のシフト値(shiftA)はスケールシフト値scと第2のシフト値(expC)を用いて導出することを特徴とする。 The first shift value includes the values of the second shift value (expC) and the third shift value (shiftA), and the second shift value (expC) is derived from the first feature quantity a1 and is the third. The shift value (shiftA) of is derived by using the scale shift value sc and the second shift value (expC).

上記LICパラメータ導出部は、第1の特徴量を所定のシフト値(LSHIFT)で左シフトした後、第2のシフト値(expC)で右シフトした値にテーブル参照値InvDivを乗算し、第3のシフト値(shiftA)で右シフトしてスケーリングファクタscaleを導出することを特徴とする。 The LIC parameter derivation unit shifts the first feature amount to the left by a predetermined shift value (LSHIFT), then multiplies the value shifted to the right by the second shift value (expC) by the table reference value InvDiv, and the third It is characterized by deriving the scaling factor scale by shifting to the right with the shift value (shiftA) of.

上記LICパラメータ導出部は、上記スケーリングファクタscaleをクリッピングすることを特徴とする。 The LIC parameter derivation unit is characterized in that the scaling factor scale is clipped.

上記クリッピングの上限は所定のシフト値(LSHIFT)をもとに導出することを特徴とする。 The upper limit of clipping is derived based on a predetermined shift value (LSHIFT).

上記LICパラメータ導出部は、第2の隣接画素から最大画素値(Ref_MAX)の座標(x1,y1)と最小画素値(Ref_MIN)の座標(x2,y2)を導出し、Ref_MAX、Ref_MIN、第1の隣接画素の座標(x1,y1)の画素値(Cur_MAX)、および、座標(x2,y2)の画素値(Cur_MIN)を用いて第1の特徴量a1、第2の特徴量a2を導出することを特徴とする。 The LIC parameter derivation unit derives the maximum pixel value (Ref_MAX) coordinates (x1, y1) and the minimum pixel value (Ref_MIN) coordinates (x2, y2) from the second adjacent pixel, and Ref_MAX, Ref_MIN, the first The first feature quantity a1 and the second feature quantity a2 are derived using the pixel value (Cur_MAX) of the coordinates (x1, y1) of the adjacent pixels and the pixel value (Cur_MIN) of the coordinates (x2, y2). It is characterized by that.

上記LICパラメータ導出部は、第2の隣接画素から2番目に大きい画素値(Ref_MAX2)の座標(x3,y3)と2番目に小さい画素値(Ref_MIN2)の座標(x4,y4)を導出し、Ref_MAX2、Ref_MIN2、第1の隣接画素の座標(x3,y3)の画素値(Cur_MAX2)、および、座標(x4,y4)の画素値(Cur_MIN2)を用いて第1の特徴量a1、第2の特徴量a2を導出することを特徴とする。 The LIC parameter derivation unit derives the coordinates (x3, y3) of the second largest pixel value (Ref_MAX2) and the coordinates (x4, y4) of the second smallest pixel value (Ref_MIN2) from the second adjacent pixel. Ref_MAX2, Ref_MIN2, the pixel value (Cur_MAX2) of the coordinates (x3, y3) of the first adjacent pixel, and the pixel value (Cur_MIN2) of the coordinates (x4, y4) are used for the first feature quantity a1, the second. It is characterized by deriving the feature quantity a2.

上記LICパラメータ導出部は、第2の隣接画素から最大画素値(Ref_MAX)の座標(x1,y1)、最小画素値(Ref_MIN)の座標(x2,y2)、2番目に大きい画素値(Ref_MAX2)の座標(x3,y3)、2番目に小さい画素値(Ref_MIN2)の座標(x4,y4)を導出し、Ref_MAX、Ref_MIN、Ref_MAX2、Ref_MIN2、第1の隣接画素の座標(x1,y1)の画素値(Cur_MAX)、座標(x2,y2)の画素値(Cur_MIN)、第1の隣接画素の座標(x3,y3)の画素値(Cur_MAX2)、および、座標(x4,y4)の画素値(Cur_MIN2)を用いて第1の特徴量a1、第2の特徴量a2を導出することを特徴とする。 The LIC parameter derivation unit has the maximum pixel value (Ref_MAX) coordinates (x1, y1), the minimum pixel value (Ref_MIN) coordinates (x2, y2), and the second largest pixel value (Ref_MAX2) from the second adjacent pixel. Coordinates (x3, y3), the coordinates (x4, y4) of the second smallest pixel value (Ref_MIN2) are derived, and the pixels of Ref_MAX, Ref_MIN, Ref_MAX2, Ref_MIN2, and the coordinates (x1, y1) of the first adjacent pixel. Value (Cur_MAX), pixel value (Cur_MIN) of coordinates (x2, y2), pixel value (Cur_MAX2) of coordinates (x3, y3) of the first adjacent pixel, and pixel value (Cur_MIN2) of coordinates (x4, y4) ) Is used to derive the first feature amount a1 and the second feature amount a2.

テーブルを用いて除数tdの逆数を導出する除算部において、除数tdの絶対値tdAbsからシフト値scを導出し、除数tdの絶対値tdAbsをscビット右シフト(tdAbs<<N)>>scした値normDiffに、テーブルMvDivTableの要素の個数Nを用いた修正を加えてインデックスidxを導出し、テーブルMvDivTableをインデックスidxによって参照した値、逆数の精度PREC、および、シフト値scをもとに逆数の絶対値を導出し、除数の符号をもとに逆数を導出することを特徴とする。 In the division part that derives the reciprocal of the divisor td using a table, the shift value sc is derived from the absolute value tdAbs of the divisor td, and the absolute value tdAbs of the divisor td is shifted to the right by the sc bit (tdAbs << N) >> sc. The index idx is derived by modifying the value normDiff using the number N of elements in the table MvDivTable, and the value of the table MvDivTable referenced by the index idx, the reciprocal precision PREC, and the reciprocal based on the shift value sc. It is characterized by deriving the absolute value and deriving the reciprocal based on the sign of the divisor.

第1の参照ピクチャに対する対象ピクチャの動きベクトル(第1の動きベクトル)を、第2の参照ピクチャに対する対象ピクチャの動きベクトル(第2の動きベクトル)をスケーリングすることによって導出する動きベクトル導出装置において、対象ピクチャと第1の参照ピクチャのPOCの差分値を除数として、前記除算部により前記差分値の逆数を導出し、第2の動きベクトル、対象ピクチャと第2の参照ピクチャのPOCの差分値、および、前記逆数の乗算により、第1の動きベクトルを導出することを特徴とする。 In a motion vector derivation device that derives the motion vector of the target picture (first motion vector) with respect to the first reference picture by scaling the motion vector (second motion vector) of the target picture with respect to the second reference picture. , The difference value of the POC of the target picture and the first reference picture is used as a divisor, and the inverse of the difference value is derived by the dividing unit, and the difference value of the POC of the second motion vector, the target picture and the second reference picture is derived. , And the first motion vector is derived by multiplying the inverse number.

〔応用例〕
上述した動画像符号化装置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 (not shown) that decodes the coded data read from the recording medium PROD_A5 according to the coding method for recording may be interposed between the recording medium PROD_A5 and the coding unit PROD_A1.

図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, it is advisable to interpose a coding unit (not shown) that encodes the moving image acquired from the decoding unit PROD_B3 according to the coding method for recording 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 cable 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), 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) such as an SD memory card or USB flash memory. It may be of a type connected to the playback device PROD_D, or may be loaded into a drive device (not shown) built in the playback device PROD_D, such as (3) DVD or BD. good.

また、再生装置PROD_Dは、復号部PROD_D2が出力する動画像の供給先として、動画像を表示するディスプレイPROD_D3、動画像を外部に出力するための出力端子PROD_D4、及び、動画像を送信する送信部PROD_D5を更に備えていてもよい。図においては、これら全てを再生装置PROD_Dが備えた構成を例示しているが、一部を省略しても構わない。 Further, the playback device PROD_D has a display PROD_D3 for displaying 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, display PROD_D3 is the main supply destination of moving images) and digital signage (also called electronic signage or electronic bulletin board, etc., and display PROD_D3 or transmitter PROD_D5 is the main supply destination of moving images. (First), desktop PC (in this case, output terminal PROD_D4 or transmitter PROD_D5 is the main supply destination of moving images), laptop or tablet PC (in this case, display PROD_D3 or transmitter PROD_D5 is video) An example of such a playback device PROD_D is a smartphone (in this case, the display PROD_D3 or the transmitter PROD_D5 is the main supply destination of the moving image), which is the main supply destination of the image.

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

後者の場合、上記各装置は、各機能を実現するプログラムの命令を実行するCPU、上記プログラムを格納したROM(Read Only Memory)、上記プログラムを展開するRAM(Random Access Memory)、上記プログラムおよび各種データを格納するメモリ等の記憶装置(記録媒体)などを備えている。そして、本発明の実施形態の目的は、上述した機能を実現するソフトウェアである上記各装置の制御プログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンピュータで読み取り可能に記録した記録媒体を、上記各装置に供給し、そのコンピュータ(またはCPUやMPU)が記録媒体に記録されているプログラムコードを読み出し実行することによっても、達成可能である。 In the latter case, each of the above devices is a CPU that executes an instruction of a program that realizes each function, a ROM (Read Only Memory) that stores the above program, a RAM (Random Access Memory) that expands the above program, the above program, and various types. It is equipped with a storage device (recording medium) such as a memory for storing data. Then, an object of the embodiment of the present invention is a 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 function, 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 ray 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 パラメータ復号部
3020 ヘッダ復号部
303 インター予測パラメータ導出部
308 予測画像生成部
309 インター予測画像生成部
311 逆量子化・逆変換部
312 加算部
11 画像符号化装置
101 予測画像生成部
102 減算部
103 変換・量子化部
104 エントロピー符号化部
105 逆量子化・逆変換部
107 ループフィルタ
110 符号化パラメータ決定部
111 パラメータ符号化部
1110 ヘッダ符号化部
1111 CT情報符号化部
1112 CU符号化部(予測モード符号化部)
1114 TU符号化部
120 予測パラメータ導出部
31 Image decoder
301 Entropy Decoding Unit
302 Parameter decoder
3020 Header decoder
303 Inter prediction parameter derivation part
308 Prediction image generator
309 Inter prediction image generator
311 Inverse quantization / inverse conversion unit
312 Addition part
11 Image coding device
101 Predictive image generator
102 Subtractor
103 Conversion / Quantization Department
104 Entropy coding unit
105 Inverse quantization / inverse conversion unit
107 Loop filter
110 Coded parameter determination unit
111 Parameter encoding unit
1110 Header encoding
1111 CT information coding unit
1112 CU coding unit (prediction mode coding unit)
1114 TU coder
120 Prediction parameter derivation unit

Claims (12)

LIC予測により予測画像を生成するLIC部であって、
対象ブロックの隣接画素(第1の隣接画素)と、参照ブロックの隣接画素(第2の隣接画素)と、テーブルを用いてスケーリングファクタscaleとオフセットoffset(LICパラメータ)を導出するLICパラメータ導出部と、
参照ブロックの画像とLICパラメータを用いて予測画像を生成するLICフィルタ部とを備え、
上記LICパラメータ導出部は、第1の隣接画素および第2の隣接画素を用いて、対象ブロックの隣接画素の特徴量a1(第1の特徴量)と参照ブロックの隣接画素の特徴量a2(第2の特徴量)を導出し、
第2の特徴量a2を用いて上記テーブルの参照値InvDivを導出し、
第1の特徴量a1と上記テーブル参照値InvDivを乗算した値を第1のシフト値(expC、shiftA)によって右シフトすることでスケーリングファクタscaleを導出し、
上記LICパラメータ導出部は、第1の隣接画素、第2の隣接画素、および、スケーリングファクタを用いてオフセットoffsetを導出することを特徴とするLIC部。
It is a LIC part that generates a predicted image by LIC prediction,
Adjacent pixels of the target block (first adjacent pixel), adjacent pixels of the reference block (second adjacent pixel), and a LIC parameter derivation unit that derives the scaling factor scale and offset offset (LIC parameter) using a table. ,
It is equipped with a reference block image and a LIC filter unit that generates a predicted image using LIC parameters.
The LIC parameter derivation unit uses the first adjacent pixel and the second adjacent pixel, and uses the feature amount a1 (first feature amount) of the adjacent pixel of the target block and the feature amount a2 (first feature amount) of the adjacent pixel of the reference block. Derivation of the feature amount of 2),
Using the second feature amount a2, the reference value InvDiv in the above table is derived.
The scaling factor scale is derived by right-shifting the value obtained by multiplying the first feature quantity a1 by the above table reference value InvDiv by the first shift value (expC, shiftA).
The LIC parameter derivation unit is a LIC unit characterized by deriving an offset offset using a first adjacent pixel, a second adjacent pixel, and a scaling factor.
上記LICパラメータ導出部は、
第2の特徴量a2からスケールシフト値scを導出し、
第2の特徴量a2をスケールシフト値scだけ右シフトして得られるインデックスidxによって上記テーブルを参照することを特徴とする請求項1に記載のLIC部。
The above LIC parameter derivation unit
The scale shift value sc is derived from the second feature quantity a2, and the scale shift value sc is derived.
The LIC portion according to claim 1, wherein the above table is referred to by the index idx obtained by right-shifting the second feature amount a2 by the scale shift value sc.
上記LICパラメータ導出部は、上記第1のシフト値(expC、shiftA)を、第1の特徴量a1とスケールシフト値scから導出することを特徴とする請求項1又は2に記載のLIC部。 The LIC unit according to claim 1 or 2, wherein the LIC parameter derivation unit derives the first shift value (expC, shiftA) from the first feature amount a1 and the scale shift value sc. 上記第1のシフト値は第2のシフト値(expC)と第3のシフト値(shiftA)の値を含み、第2のシフト値(expC)は第1の特徴量a1から導出し、第3のシフト値(shiftA)はスケールシフト値scと第2のシフト値(expC)を用いて導出することを特徴とする請求項1から3までの何れか1項に記載のLIC部。 The first shift value includes the values of the second shift value (expC) and the third shift value (shiftA), and the second shift value (expC) is derived from the first feature quantity a1 and is the third. The LIC portion according to any one of claims 1 to 3, wherein the shift value (shiftA) is derived by using the scale shift value sc and the second shift value (expC). 上記LICパラメータ導出部は、第1の特徴量を所定のシフト値(LSHIFT)で左シフトした後、第2のシフト値(expC)で右シフトした値にテーブル参照値InvDivを乗算し、第3のシフト値(shiftA)で右シフトしてスケーリングファクタscaleを導出することを特徴とする請求項1から4までの何れか1項に記載のLIC部。 The LIC parameter derivation unit shifts the first feature amount to the left by a predetermined shift value (LSHIFT), then multiplies the value shifted to the right by the second shift value (expC) by the table reference value InvDiv, and the third The LIC portion according to any one of claims 1 to 4, wherein the scaling factor scale is derived by right-shifting with the shift value (shiftA) of. 上記LICパラメータ導出部は、請求項5に記載のスケーリングファクタscaleをクリッピングすることを特徴とする請求項5に記載のLIC部。 The LIC unit according to claim 5, wherein the LIC parameter derivation unit clips the scaling factor scale according to claim 5. 上記クリッピングの上限は所定のシフト値(LSHIFT)をもとに導出することを特徴とする請求項6に記載のLIC部。 The LIC portion according to claim 6, wherein the upper limit of clipping is derived based on a predetermined shift value (LSHIFT). 上記LICパラメータ導出部は、第2の隣接画素から最大画素値(Ref_MAX)の座標(x1,y1)と最小画素値(Ref_MIN)の座標(x2,y2)を導出し、Ref_MAX、Ref_MIN、第1の隣接画素の座標(x1,y1)の画素値(Cur_MAX)、および、座標(x2,y2)の画素値(Cur_MIN)を用いて第1の特徴量a1、第2の特徴量a2を導出することを特徴とする請求項1に記載のLIC部。 The LIC parameter derivation unit derives the maximum pixel value (Ref_MAX) coordinates (x1, y1) and the minimum pixel value (Ref_MIN) coordinates (x2, y2) from the second adjacent pixel, and Ref_MAX, Ref_MIN, the first The first feature quantity a1 and the second feature quantity a2 are derived using the pixel value (Cur_MAX) of the coordinates (x1, y1) of the adjacent pixels and the pixel value (Cur_MIN) of the coordinates (x2, y2). The LIC unit according to claim 1, wherein the LIC unit is characterized by the above. 上記LICパラメータ導出部は、第2の隣接画素から2番目に大きい画素値(Ref_MAX2)の座標(x3,y3)と2番目に小さい画素値(Ref_MIN2)の座標(x4,y4)を導出し、Ref_MAX2、Ref_MIN2、第1の隣接画素の座標(x3,y3)の画素値(Cur_MAX2)、および、座標(x4,y4)の画素値(Cur_MIN2)を用いて第1の特徴量a1、第2の特徴量a2を導出することを特徴とする請求項1に記載のLIC部。 The LIC parameter derivation unit derives the coordinates (x3, y3) of the second largest pixel value (Ref_MAX2) and the coordinates (x4, y4) of the second smallest pixel value (Ref_MIN2) from the second adjacent pixel. Ref_MAX2, Ref_MIN2, the pixel value (Cur_MAX2) of the coordinates (x3, y3) of the first adjacent pixel, and the pixel value (Cur_MIN2) of the coordinates (x4, y4) are used for the first feature quantity a1, the second. The LIC unit according to claim 1, wherein the feature amount a2 is derived. 上記LICパラメータ導出部は、第2の隣接画素から最大画素値(Ref_MAX)の座標(x1,y1)、最小画素値(Ref_MIN)の座標(x2,y2)、2番目に大きい画素値(Ref_MAX2)の座標(x3,y3)、2番目に小さい画素値(Ref_MIN2)の座標(x4,y4)を導出し、Ref_MAX、Ref_MIN、Ref_MAX2、Ref_MIN2、第1の隣接画素の座標(x1,y1)の画素値(Cur_MAX)、座標(x2,y2)の画素値(Cur_MIN)、第1の隣接画素の座標(x3,y3)の画素値(Cur_MAX2)、および、座標(x4,y4)の画素値(Cur_MIN2)を用いて第1の特徴量a1、第2の特徴量a2を導出することを特徴とする請求項1に記載のLIC部。 The LIC parameter derivation unit has the maximum pixel value (Ref_MAX) coordinates (x1, y1), the minimum pixel value (Ref_MIN) coordinates (x2, y2), and the second largest pixel value (Ref_MAX2) from the second adjacent pixel. Coordinates (x3, y3), the coordinates (x4, y4) of the second smallest pixel value (Ref_MIN2) are derived, and the pixels of Ref_MAX, Ref_MIN, Ref_MAX2, Ref_MIN2, and the coordinates (x1, y1) of the first adjacent pixel. Value (Cur_MAX), pixel value (Cur_MIN) of coordinates (x2, y2), pixel value (Cur_MAX2) of coordinates (x3, y3) of the first adjacent pixel, and pixel value (Cur_MIN2) of coordinates (x4, y4) The LIC unit according to claim 1, wherein the first feature amount a1 and the second feature amount a2 are derived using). 上記請求項1から10までの何れか1項に記載のLIC部から導出される予測画像と、残差を加算して画像を復号する画像復号装置。 An image decoding device that decodes an image by adding a residual to a predicted image derived from the LIC unit according to any one of claims 1 to 10. 上記請求項1から10までの何れか1項に記載のLIC部から導出される予測画像と入力画像の差分から残差を導出して符号化する画像符号化装置。 An image coding device that derives and encodes a residual from a difference between a predicted image derived from the LIC unit according to any one of claims 1 to 10 and an input image.
JP2019043096A 2019-03-08 2019-03-08 Lic unit, image decoding device, and image coding device Pending JP2022065225A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2019043096A JP2022065225A (en) 2019-03-08 2019-03-08 Lic unit, image decoding device, and image coding device
PCT/JP2020/008914 WO2020184294A1 (en) 2019-03-08 2020-03-03 Lic unit, image decoding device and image coding device
CN202080019468.9A CN113615171A (en) 2019-03-08 2020-03-03 LIC unit, image decoding device, and image encoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019043096A JP2022065225A (en) 2019-03-08 2019-03-08 Lic unit, image decoding device, and image coding device

Publications (1)

Publication Number Publication Date
JP2022065225A true JP2022065225A (en) 2022-04-27

Family

ID=72427842

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019043096A Pending JP2022065225A (en) 2019-03-08 2019-03-08 Lic unit, image decoding device, and image coding device

Country Status (3)

Country Link
JP (1) JP2022065225A (en)
CN (1) CN113615171A (en)
WO (1) WO2020184294A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023281158A1 (en) * 2021-07-06 2023-01-12 Nokia Technologies Oy An apparatus, a method and a computer program for cross-component parameter calculation

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100750128B1 (en) * 2005-09-06 2007-08-21 삼성전자주식회사 Method and apparatus for intra prediction of video
KR20120140181A (en) * 2011-06-20 2012-12-28 한국전자통신연구원 Method and apparatus for encoding and decoding using filtering for prediction block boundary
JP2013090032A (en) * 2011-10-14 2013-05-13 Jvc Kenwood Corp Video image coding device, video image coding method, and video image coding program
WO2013069117A1 (en) * 2011-11-09 2013-05-16 株式会社東芝 Prediction image generation method, encoding method, and decoding method
WO2014203726A1 (en) * 2013-06-18 2014-12-24 シャープ株式会社 Illumination compensation device, lm predict device, image decoding device, image coding device
JP6118199B2 (en) * 2013-07-09 2017-04-19 シャープ株式会社 Image decoding apparatus, image encoding apparatus, image decoding method, image encoding method, and computer-readable recording medium
US10425659B2 (en) * 2015-01-30 2019-09-24 Qualcomm Incorporated Coding escape pixels for palette coding
JP6162289B2 (en) * 2016-05-13 2017-07-12 シャープ株式会社 Image decoding apparatus and image decoding method

Also Published As

Publication number Publication date
WO2020184294A1 (en) 2020-09-17
CN113615171A (en) 2021-11-05

Similar Documents

Publication Publication Date Title
US11128891B2 (en) Image decoding apparatus and image coding apparatus
JP2021002780A (en) Video decoding device and video coding device
JP7448349B2 (en) Video decoding device
JP2023011955A (en) Dynamic image coding device and dynamic image decoding device
US11722696B2 (en) Cross-component linear model prediction image generation apparatus, video decoding apparatus, video coding apparatus, and prediction image generation method
JPWO2020137920A1 (en) Predictive image generator, moving image decoding device, moving image coding device and predicted image generation method
US11818363B2 (en) Video decoding apparatus and video coding apparatus
JP2022024208A (en) Moving image decoding device and moving image encoding device
WO2020184294A1 (en) Lic unit, image decoding device and image coding device
WO2021246284A1 (en) Moving image decoding device and moving image encoding device
JP7409802B2 (en) Video decoding device and video encoding device
WO2020067440A1 (en) Moving image coding device and moving image decoding device
JP2022096879A (en) Moving image encoding device and decoding device
JP2022007319A (en) Dynamic image encoding device and decoding device
JP2020170901A (en) Predictive image generation device, video decoding device, and video coding device
CN113170169B (en) Predictive image generation device, moving image decoding device, moving image encoding device, and predictive image generation method
JP7444570B2 (en) Video decoding device, video encoding device, video decoding method, and video encoding method
JP7425568B2 (en) Video decoding device, video encoding device, video decoding method, and video encoding method
JP7378968B2 (en) Predicted image generation device, video decoding device, and video encoding device
JP2020195014A (en) Moving image decoding device and moving image encoding device
JP2020096247A (en) Moving image encoding device and moving image decoding device
JP2021197558A (en) Dynamic image encoding device and dynamic image decoding device
JP2021034848A (en) Image decoding device
JP2021180342A (en) Predictive image generation device, moving image decoding device, and moving image coding device
JP2022002354A (en) Moving image coding device and moving image decoding device