JP2022002356A - Moving image coding device and moving image decoding device - Google Patents

Moving image coding device and moving image decoding device Download PDF

Info

Publication number
JP2022002356A
JP2022002356A JP2018188125A JP2018188125A JP2022002356A JP 2022002356 A JP2022002356 A JP 2022002356A JP 2018188125 A JP2018188125 A JP 2018188125A JP 2018188125 A JP2018188125 A JP 2018188125A JP 2022002356 A JP2022002356 A JP 2022002356A
Authority
JP
Japan
Prior art keywords
cabac
time prediction
unit
segment
picture
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
JP2018188125A
Other languages
Japanese (ja)
Inventor
知宏 猪飼
Tomohiro Igai
瑛一 佐々木
Eiichi Sasaki
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2018188125A priority Critical patent/JP2022002356A/en
Priority to PCT/JP2019/038193 priority patent/WO2020067440A1/en
Publication of JP2022002356A publication Critical patent/JP2022002356A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide a moving image coding device and a moving image decoding device, improving a method for initializing the CABAC state of a target picture by reference to the CABAC state of a processed picture, thereby capable of improving the coding efficiency of CABAC.SOLUTION: An image decoding device for decoding coded data that are variable-length coded includes an entropy decoding unit for decoding a CABAC temporal prediction flag. A CABAC initialization unit, which initializes a CABAC state at the head of segments constituting a picture, initializes the CABAC state using a temporal prediction table holding the CABAC state when the CABAC temporal prediction flag is one, and initializes the CABAC state using an initialization table when the CABAC temporal prediction flag is zero.SELECTED DRAWING: Figure 12

Description

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

動画像を効率的に伝送または記録するために、動画像を符号化することによって符号化データを生成する動画像符号化装置、および、当該符号化データを復号することによって復号画像を生成する動画像復号装置が用いられている。 In order to efficiently transmit or record a moving image, a moving image coding device that generates 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 the methods proposed by H.264 / AVC and HEVC (High-Efficiency Video Coding).

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

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

"Algorithm Description of Joint Exploration Test Model 7", JVET-G1001, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 2017-08-19"Algorithm Description of Joint Exploration Test Model 7", JVET-G1001, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29/WG 11, 2017-08-19

既に処理したピクチャのCABAC状態を参照して、対象ピクチャのCABAC状態を初期化する方法は、量子化ステップ単位の予測テーブルに格納するため、レート制御を用いる(固定量子化以外の)エンコーダでは、十分な性能がでないという課題がある。 The method of initializing the CABAC state of the target picture by referring to the CABAC state of the already processed picture is stored in the prediction table for each quantization step, so in the encoder (other than fixed quantization) that uses rate control, There is a problem that the performance is not sufficient.

また、CABAC状態を予測テーブルに格納しても、対応ピクチャが参照ピクチャリストに存在するかを判定していないので、参照不可のピクチャを参照する可能性があるという課題がある。 Further, even if the CABAC state is stored in the prediction table, it is not determined whether the corresponding picture exists in the reference picture list, so there is a problem that a picture that cannot be referred to may be referred to.

また、予測リージョン単位で、CABAC状態を予測テーブルから参照するか否かを繰り替えることができない、という課題がある。 In addition, there is a problem that it is not possible to repeat whether or not to refer to the CABAC state from the prediction table for each prediction region.

また、セグメント単位で、CABAC状態を予測テーブルから参照するか否かを繰り替える
ことができない、という課題がある。
In addition, there is a problem that it is not possible to repeat whether or not to refer to the CABAC state from the prediction table for each segment.

また、予測リージョン単位で、CABAC状態を予測テーブルに格納する場合に、その粒度を変更することができない、という課題がある。 Further, when the CABAC state is stored in the prediction table for each prediction region, there is a problem that the particle size cannot be changed.

本発明の一態様に係る画像復号装置は、可変長符号化された符号化データを復号する画像復号装置であって、CABAC時間予測フラグを復号するエントロピー復号部を備え、ピクチャを構成するセグメント先頭において、CABAC状態を初期化するCABAC初期化部を備え、上記CABAC初期化部は、CABAC時間予測フラグが1の場合に、CABAC状態を保持する時間予測テーブルを用いてCABAC状態の初期化を行い、CABAC時間予測フラグが0の場合に、初期化テーブルを用いてCABAC状態の初期化を行うことを特徴とする。 The image decoding device according to one aspect of the present invention is an image decoding device that decodes variable-length coded coded data, includes an entropy decoding unit that decodes the CABAC time prediction flag, and is a segment head that constitutes a picture. The CABAC initialization unit is provided with a CABAC initialization unit that initializes the CABAC state, and the CABAC initialization unit initializes the CABAC state using a time prediction table that holds the CABAC state when the CABAC time prediction flag is 1. , When the CABAC time prediction flag is 0, the CABAC state is initialized using the initialization table.

上記エントロピー復号部は、さらに、CABAC時間空間予測モードを復号し、上記CABAC初期化部は、上記CABAC時間空間予測モードが1(画面分割モード)である場合には、上記セグメント先頭の画面内位置を用いて、上記時間予測テーブルからCABAC状態を読みだして、CABAC状態の初期化を行うことを特徴とする。 The entropy decoding unit further decodes the CABAC space-time prediction mode, and the CABAC initialization unit is the position in the screen at the head of the segment when the CABAC space-time prediction mode is 1 (screen division mode). It is characterized in that the CABAC state is read out from the above time prediction table and the CABAC state is initialized by using.

上記画像復号装置は、さらに、CABAC時間空間予測モードを復号し、上記CABAC時間空間予測モードが示す画面分割数が2以上の場合には、上記セグメント先頭の画面内位置を用いて、上記時間予測テーブルからCABAC状態を読みだして、CABAC状態の初期化を行うことを特徴とする。 The image decoding device further decodes the CABAC space-time prediction mode, and when the number of screen divisions indicated by the CABAC space-time prediction mode is 2 or more, the time prediction is performed using the position in the screen at the head of the segment. It is characterized by reading the CABAC state from the table and initializing the CABAC state.

上記画像復号装置は、さらに、セグメント単位で、セグメント予測フラグを復号し、上記セグメント時間予測フラグが1の場合には、上記時間予測テーブルからCABAC状態を読みだして、CABAC状態の初期化を行い、(上記セグメント時間予測フラグが0の場合には、初期化テーブルを用いてCABAC状態の初期化を行う、か、空間予測テーブルから予測を行う)ことを特徴とする。 The image decoding device further decodes the segment prediction flag for each segment, and when the segment time prediction flag is 1, reads the CABAC state from the time prediction table and initializes the CABAC state. , (When the segment time prediction flag is 0, the CABAC state is initialized using the initialization table, or prediction is performed from the spatial prediction table).

上記画像復号装置は、さらに、予測リージョン単位で、予測リージョン時間予測フラグを復号し、上記予測リージョン時間予測フラグが1の場合には、上記時間予測テーブルからCABAC状態を読みだして、CABAC状態の初期化を行い、(上記セグメント時間予測フラグが0の場合には、初期化テーブルを用いてCABAC状態の初期化を行う、か、空間予測テーブルから予測を行う)ことを特徴とする。 The image decoding device further decodes the predicted region time prediction flag for each predicted region, and when the predicted region time prediction flag is 1, reads the CABAC state from the time prediction table to obtain the CABAC state. It is characterized by performing initialization (when the segment time prediction flag is 0, the CABAC state is initialized using the initialization table, or prediction is performed from the spatial prediction table).

可変長符号化された符号化データを復号する画像復号装置であって、ピクチャを構成するセグメント先頭において、時間予測テーブルからCABAC状態を読み出すエントロピー復号部を備え、上記エントロピー復号部は、対象ピクチャのテンポラルレイヤ毎に上記時間予測テーブルのエントリを選択することを特徴とする。
可変長符号化された符号化データを復号する画像復号装置であって、ピクチャを構成するセグメント先頭において、CABAC状態を時間予測テーブルに格納するエントロピー復号部を備え、上記エントロピー復号部は、対象ピクチャのテンポラルレイヤ毎に上記時間予測テーブルのエントリを選択することを特徴とする。
An image decoding device that decodes variable-length coded coded data, including an entropy decoding unit that reads the CABAC state from the time prediction table at the beginning of the segment that constitutes the picture, and the entropy decoding unit is the target picture. It is characterized in that the entry of the time prediction table is selected for each temporal layer.
An image decoding device that decodes variable-length coded coded data, including an entropy decoding unit that stores the CABAC state in a time prediction table at the beginning of a segment that constitutes a picture, and the entropy decoding unit is the target picture. It is characterized in that the entry of the time prediction table is selected for each temporal layer of.

本発明の一態様に係る画像符号化装置は、可変長符号化により符号化データを符号化する画像符号化装置であって、CABAC時間予測フラグを符号化するエントロピー符号化部を備え、ピクチャを構成するセグメント先頭において、CABAC状態を初期化するCABAC初期化部を備え、上記CABAC初期化部は、CABAC時間予測フラグが1の場合に、CABAC状態を保持する時間予測テーブルを用いてCABAC状態の初期化を行い、CABAC時間予測フラグが0の場合に、初期化テーブルを用いてCABAC状態の初期化を行うことを特徴とする。 The image coding device according to one aspect of the present invention is an image coding device that encodes coded data by variable length coding, includes an entropy coding unit that encodes a CABAC time prediction flag, and displays a picture. At the beginning of the constituent segment, a CABAC initialization unit that initializes the CABAC state is provided, and the CABAC initialization unit uses a time prediction table that holds the CABAC state when the CABAC time prediction flag is 1, and the CABAC state is changed. It is characterized in that initialization is performed and the CABAC state is initialized using the initialization table when the CABAC time prediction flag is 0.

本発明の一態様によれば、動画像符号化・復号処理において、シンタックス要素のバイナリ列を符号化するCABACの符号化効率を向上させることができる。 According to one aspect of the present invention, it is possible to improve the coding efficiency of the CABAC that encodes the binary string of the syntax element in the moving image coding / decoding process.

本実施形態に係る画像伝送システムの構成を示す概略図である。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 which carried out the moving image coding device which concerns on this embodiment, and the receiving device which carried out the 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 figure explaining a temporal layer and a reference picture list. 動画像復号装置の構成を示す概略図である。It is a schematic diagram which shows the structure of the moving image decoding apparatus. 動画像復号装置の概略的動作を説明するフローチャートである。It is a flowchart explaining the schematic operation of the moving image decoding apparatus. 時間予測用シンタックスを示す図である。It is a figure which shows the syntax for time prediction. 時間予測用シンタックスを示す図である。It is a figure which shows the syntax for time prediction. スライスデータのシンタックス構造を示す図である。It is a figure which shows the syntax structure of slice data. エントロピー復号部の構成を示す図である。It is a figure which shows the structure of the entropy decoding part. エントロピー復号部301での初期化処理を示すフローチャートである。It is a flowchart which shows the initialization process in the entropy decoding unit 301. エントロピー復号部301での初期化処理を示すフローチャートの別の例である。This is another example of the flowchart showing the initialization process in the entropy decoding unit 301. 時間予測テーブルの利用可能性の導出処理を示すフローチャートである。It is a flowchart which shows the derivation process of the availability of a time prediction table. 時間予測テーブルの利用可能性の導出処理を示すフローチャートの別の例である。This is another example of a flowchart showing the process of deriving the availability of a time prediction table. エントロピー復号部301でのCABAC状態の格納処理を示すフローチャートである。It is a flowchart which shows the storage process of the CABAC state in the entropy decoding unit 301. エントロピー復号部301でのCABAC状態の格納処理を示すフローチャートの別の例である。This is another example of the flowchart showing the storage process of the CABAC state in the entropy decoding unit 301. 時間予測テーブルの構成を示す図である。It is a figure which shows the structure of the time prediction table. 時間予測テーブルの別の構成を示す図である。It is a figure which shows another structure of the time prediction table. 予測リージョンを説明するための図である。It is a figure for demonstrating a prediction region. 予測リージョン単位で格納されたCABAC状態をCTUライン単位のセグメントから参照する例である。This is an example of referencing the CABAC state stored in the predicted region unit from the segment in the CTU line unit. エントロピー符号化部の構成を示す図である。It is a figure which shows the structure of the entropy coding part. 予測リージョンにおけるCABAC状態の格納位置を説明する図である。It is a figure explaining the storage position of the CABAC state in a prediction region. 予測リージョンにおけるCABAC状態の格納位置を説明する別の図である。It is another figure explaining the storage position of the CABAC state in a prediction region. 予測リージョンにおけるCABAC状態の格納位置を説明する別の図である。It is another figure explaining the storage position of the CABAC state in a prediction region. WPPの利用に応じたCABAC状態の格納位置を説明する別の図である。It is another figure explaining the storage position of the CABAC state according to the use of WPP. エントロピー復号部301でのWPPの利用に応じたCABAC状態の格納処理を示すフローチャートである。It is a flowchart which shows the storage process of the CABAC state according to the use of WPP in the entropy decoding unit 301.

(第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には画像Tが入力される。 The image T is input to the moving image coding device 11.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

(符号化ビデオシーケンス)
符号化ビデオシーケンスでは、処理対象のシーケンスSEQを復号するために動画像復号装置31が参照するデータの集合が規定されている。シーケンスSEQは、図4(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 referred to by the moving image decoding device 31 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 PPSs. In that case, select one of a plurality of PPSs from each picture in the target sequence.

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

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

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

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

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

なお、スライスヘッダは、ピクチャパラメータセットPPSへの参照(pic_parameter_set_id)を含んでいても良い。ピクチャは、スライスの他、タイルやCTUラインに分割されていても良い。タイルや、CTUライン、ピクチャなどで区切られた符号化データをセグメントと呼ぶ。スライス、タイル、CTUラインは階層的に組み合わせてもよい。つまり、スライスがタイルに分割することや、タイルをスライスに分割すること、タイルをCTUラインごとに分割してもよい。 The slice header may include a reference (pic_parameter_set_id) to the picture parameter set PPS. The picture may be divided into tiles or CTU lines in addition to slices. Encoded data separated by tiles, CTU lines, pictures, etc. is called a segment. Slices, tiles and CTU lines may be combined hierarchically. That is, the slice may be divided into tiles, the tile may be divided into slices, or the tiles may be divided into CTU lines.

(タイルとWPP)
タイルは、ピクチャを矩形の単位領域のセグメントに分割する。WPPは、ウェーブフロント(Wavefront Parallel Processing)の略であり、ピクチャもしくはタイルをCTUライン単位のセグメントに分割して処理する。セグメントは、お互い参照されずに独立に復号することができるが、ループフィルタではセグメント間にフィルタ処理を行ってもよい。
(Tile and WPP)
Tiles divide the picture into segments of rectangular unit areas. WPP is an abbreviation for Wavefront Parallel Processing, and processes pictures or tiles by dividing them into segments in units of CTU lines. The segments can be decoded independently without being referenced by each other, but in the loop filter, filtering may be performed between the segments.

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

以下CTUのサイズをCtbSizeY、ピクチャの幅と高さをpic_width_in_luma_samples、pic_height_in_luma_samplesで表現すると、CTUサイズを単位としたピクチャの幅PicWidthInCtbsYと高さPicHeightInCtbsYは、以下で導出される。 When the size of the CTU is expressed by CtbSizeY and the width and height of the picture are expressed by pic_width_in_luma_samples and pic_height_in_luma_samples, the width PicWidthInCtbsY and the height PicHeightInCtbsY of the picture in units of CTU size are derived below.

PicWidthInCtbsY = ceil( pic_width_in_luma_samples / CtbSizeY )
PicHeightInCtbsY = ceil( pic_height_in_luma_samples / CtbSizeY )
対象CTUのラスタスキャンアドレスをCtbAddrInRsとすると、CTU単位のX座標、Y座標は以下で表現できる。
PicWidthInCtbsY = ceil (pic_width_in_luma_samples / CtbSizeY)
PicHeightInCtbsY = ceil (pic_height_in_luma_samples / CtbSizeY)
Assuming that the raster scan address of the target CTU is CtbAddrInRs, the X and Y coordinates in CTU units can be expressed as follows.

CtbAddrX = CtbAddrInRs % PicWidthInCtbsY
CtbAddrY = CtbAddrInRs / PicWidthInCtbsY
(符号化ツリーユニット)
図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自身も最上位の符号化ノードとして規定される。
CtbAddrX = CtbAddrInRs% PicWidthInCtbsY
CtbAddrY = CtbAddrInRs / PicWidthInCtbsY
(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.

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

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

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

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

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

(符号化ユニット)
図4(f)に示すように、処理対象の符号化ユニットを復号するために動画像復号装置31が参照するデータの集合が規定されている。具体的には、CUは、CUヘッダCUH、予測パラメータ、変換パラメータ、量子化変換係数等から構成される。CUヘッダでは予測モード等が規定される。
(Coding 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 parameters)
The prediction image is derived from the prediction parameters associated with the block. Prediction parameters include intra-prediction and inter-prediction prediction parameters.

(テンポラルレイヤと参照ピクチャリスト)
参照ピクチャリストRefPicListは、参照ピクチャメモリ306に記憶された参照ピクチャ
からなるリストである。図6は、参照ピクチャおよび参照ピクチャリストの一例を示す概念図である。図6(a)において、矩形はピクチャ、矢印はピクチャの参照関係、横軸は時間、矩形中のI、P、Bは各々イントラピクチャ、単予測ピクチャ、双予測ピクチャ、矩形中の数字は復号順を示す。図に示すように、ピクチャの復号順は、I0、P1、B2、B3、B4であり、表示順は、I0、B3、B2、B4、P1である。
(Temporal layer and reference picture list)
The reference picture list RefPicList is a list of reference pictures stored in the reference picture memory 306. FIG. 6 is a conceptual diagram showing an example of a reference picture and a reference picture list. In FIG. 6 (a), the rectangle is a picture, the arrow is a reference relationship of the picture, the horizontal axis is time, I, P, and B in the rectangle are intra pictures, single prediction pictures, bi-prediction pictures, and the numbers in the rectangle are decoded. Show the order. As shown in the figure, the decoding order of the pictures is I0, P1, B2, B3, B4, and the display order is I0, B3, B2, B4, P1.

動画像復号装置及び動画像符号化装置は、参照ピクチャリストRefPicListに含まれるピクチャのみに依存して、対象ピクチャを復号・符号化する。逆に、参照ピクチャリストRefPicListに含まれないピクチャ(非参照ピクチャ)は復号することなく、後続のピクチャを復号することができる。テンポラルレイヤは、時間方向的にピクチャをグループ化したものであり、各グループにTemporalID(Tid)と呼ばれる値を割り当てる。テンポラルレイヤ=Mのピクチャ群は、テンポラルレイヤM以下のピクチャ群のみを参照するように制御関係を制限することにより、例えば、所定のテンポラルレイヤ=0、1だけを復号し、テンポラルレイヤ=2を復号しないことによって、高速再生などが可能となる。 The moving image decoding device and the moving image coding device depend only on the pictures included in the reference picture list RefPicList to decode and encode the target picture. On the contrary, the subsequent pictures can be decoded without decoding the pictures (non-referenced pictures) not included in the reference picture list RefPicList. Temporal layers are groups of pictures in the time direction, and a value called Temporal ID (Tid) is assigned to each group. By limiting the control relationship so that the picture group of the temporal layer = M refers only to the picture group of the temporal layer M or lower, for example, only the predetermined temporary layers = 0 and 1 are decoded, and the temporal layer = 2 is set. By not decoding, high-speed playback and the like become possible.

図6(b)に、ピクチャB3(対象ピクチャ)の参照ピクチャリストの例を示す。参照ピクチャリストは、参照ピクチャの候補を表すリストであり、1つのピクチャ(スライス)が1つ以上の参照ピクチャリストを有してもよい。図の例では、対象ピクチャB3は、L0リストRefPicList0およびL1リストRefPicList1の2つの参照ピクチャリストを持つ。個々のCUでは、参照ピクチャリストRefPicListX(X=0または1)中のどのピクチャを実際に参照するかを参照ピクチャインデックスrefIdxLXで指定する。図は、refIdxL0=2、refIdxL1=0の例である。なお、LXは、L0予測とL1予測を区別しない場合に用いられる記述方法であり、以降では、LXをL0、L1に置き換えることでL0リストに対するパラメータとL1リストに対するパラメータを区別する。 FIG. 6B shows an example of a reference picture list of picture B3 (target picture). The reference picture list is a list representing candidates for reference pictures, and one picture (slice) may have one or more reference picture lists. In the example of the figure, the target picture B3 has two reference picture lists, L0 list RefPicList0 and L1 list RefPicList1. In each CU, the reference picture index refIdxLX specifies which picture in the reference picture list RefPicListX (X = 0 or 1) is actually referenced. The figure is an example of refIdxL0 = 2 and refIdxL1 = 0. Note that LX is a description method used when the L0 prediction and the L1 prediction are not distinguished. In the following, the parameters for the L0 list and the parameters for the L1 list are distinguished by replacing LX with L0 and L1.

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

動画像復号装置31は、エントロピー復号部301、パラメータ復号部(予測画像復号装置)302、ループフィルタ305、参照ピクチャメモリ306、予測パラメータメモリ307、予測画像生成部(予測画像生成装置)308、逆量子化・逆変換部311、及び加算部312を含んで構成される。なお、後述の動画像符号化装置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 and an addition unit 312. In addition, there is also a configuration in which the loop filter 305 is not included in the moving image decoding device 31 in accordance with the moving image coding device 11 described later.

パラメータ復号部302は、さらに、ヘッダ復号部3020、CT情報復号部3021、及びCU復号部3022(予測モード復号部)を備えており、CU復号部3022はさらにTU復号部3024を備えている。これらを総称して復号モジュールと呼んでもよい。ヘッダ復号部3020は、符号化データからVPS、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 (prediction mode decoding unit), and the CU decoding unit 3022 further includes a TU decoding unit 3024. These may be collectively called a decoding module. The header decoding unit 3020 decodes the parameter set information such as VPS, SPS, PPS, and the slice header (slice information) from the coded data. The CT information decoding unit 3021 decodes the CT from the coded data. The CU decoding unit 3022 decodes the CU from the coded 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.

また、パラメータ復号部302は、図示しないインター予測パラメータ復号部303及びイントラ予測パラメータ復号部304を含んで構成される。予測画像生成部308は、インター予測画像生成部309及びイントラ予測画像生成部310を含んで構成される。 Further, the parameter decoding unit 302 includes an inter-prediction parameter decoding unit 303 and an intra-prediction parameter decoding 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, CU, may be read as a block, and a sub-CU may be read as a sub-block, and the processing may be performed in units of blocks or sub-blocks.

エントロピー復号部301は、外部から入力された符号化ストリームTeに対してエントロピー復号を行って、個々の符号(シンタックス要素)を復号する。エントロピー符号化には、シンタックス要素の種類や周囲の状況に応じて適応的に選択したコンテキスト(確率モデル)を用いてシンタックス要素を可変長符号化する方式と、あらかじめ定められた表、あるいは計算式を用いてシンタックス要素を可変長符号化する方式がある。前者のCABAC(Context Adaptive Binary Arithmetic Coding)は、符号化あるいは復号したピクチャ(スライス)毎に更新した確率モデルをメモリに格納する。そして、Pピクチャ、あるいはBピクチャのコンテキストの初期状態として、メモリに格納された確率モデルの中から、同じスライスタイプ、同じスライスレベルの量子化パラメータを使用したピクチャの確率モデルを設定する。この初期状態を符号化、復号処理に使用する。復号された符号には、予測画像を生成するための予測情報および、差分画像を生成するための予測誤差などがある。 The entropy decoding unit 301 performs entropy decoding on the coded stream Te input from the outside, and decodes each code (syntax element). For entropy coding, a method of variable-length coding of syntax elements using a context (probability model) adaptively selected according to the type of syntax element and the surrounding situation, a predetermined table, or There is a method of variable-length coding the syntax element using a calculation formula. The former CABAC (Context Adaptive Binary Arithmetic Coding) stores a stochastic model updated for each coded or decoded picture (slice) in the memory. Then, as the initial state of the context of the P picture or the B picture, a probability model of the picture using the same slice type and the same slice level quantization parameter is set from the probability models stored in the memory. This initial state is used for encoding and decoding processing. The decoded code includes prediction information for generating a prediction image, prediction error for generating a difference image, and the like.

エントロピー復号部301は、復号した符号をパラメータ復号部302に出力する。復号した符号とは、例えば、予測モードpredMode、マージフラグmerge_flag、マージインデックスmerge_idx、インター予測識別子inter_pred_idc、参照ピクチャインデックスrefIdxLX、予測ベクトルインデックスmvp_LX_idx、差分ベクトルmvdLX等である。どの符号を復号するかの制御は、パラメータ復号部302の指示に基づいて行われる。 The entropy decoding unit 301 outputs the decoded code to the parameter decoding unit 302. The decoded code is, for example, a prediction mode predMode, a merge flag merge_flag, a merge index merge_idx, an inter prediction identifier inter_pred_idc, a reference picture index refIdxLX, a prediction vector index mvp_LX_idx, a difference vector mvdLX, and the like. The control of which code is decoded is performed based on the instruction of the parameter decoding unit 302.

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

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

(S1200:スライス情報復号)ヘッダ復号部3020は、符号化データからスライスヘッダ(スライス情報)を復号する。 (S1200: Decoding of slice information) The header decoding unit 3020 decodes the slice header (slice information) from the coded 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を復号する。セグメント先頭のCTUを復号する前に、CABACの初期化を行う。また、セグメント中の所定の位置のCTUの復号後に、CABAC状態を、時間予測テーブル及び空間予測テーブルに格納する。 (S1300: CTU information decoding) The CT information decoding unit 3021 decodes the CTU from the encoded data. Initialize CABAC before decoding the CTU at the beginning of the segment. Further, after decoding the CTU at a predetermined position in the segment, the CABAC state is stored in the time prediction table and the spatial prediction table.

(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 encoded 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: Prediction image generation) The prediction image generation unit 308 generates a prediction image based on the prediction information for each block included in the target CU.

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

(S4000:復号画像生成)加算器312は、予測画像生成部308より供給される予測画像と、逆量子化・逆変換部311より供給される予測誤差とを加算することによって、対象CUの復号画像を生成する。 (S4000: Decoded image generation) The 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.

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

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

予測パラメータメモリ307は、復号対象のCTUあるいはCU毎に予め定めた位置に予測パラメータを記憶する。具体的には、予測パラメータメモリ307は、パラメータ復号部302が復号したパラメータ及びエントロピー復号部301が復号した予測モードpredMode等を記憶する。 The prediction parameter memory 307 stores the prediction parameters at a predetermined position for each CTU or CU to be decoded. Specifically, the prediction parameter memory 307 stores the parameters decoded by the parameter decoding unit 302, the prediction mode predMode decoded by the entropy decoding unit 301, and the like.

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

逆量子化・逆変換部311は、エントロピー復号部301から入力された量子化変換係数を逆量子化して変換係数を求める。この量子化変換係数は、符号化処理において、予測誤差に対してDCT(Discrete Cosine Transform、離散コサイン変換)、DST(Discrete Sine Transform、離散サイン変換)、KLT(Karyhnen Loeve Transform、カルーネンレーベ変換)等の周波数変換を行い量子化して得られる係数である。逆量子化・逆変換部311は、求めた変換係数について逆DCT、逆DST、逆KLT等の逆周波数変換を行い、予測誤差を算出する。逆量子化・逆変換部311は予測誤差を加算部312に出力する。 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 used for prediction errors in the coding process, such as DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), and KLT (Karyhnen Loeve Transform). It is a coefficient obtained by performing frequency conversion such as and quantizing. The inverse quantization / inverse transformation unit 311 performs inverse frequency conversion such as inverse DCT, inverse DST, and inverse KLT on the obtained conversion coefficient, and calculates a prediction error. The inverse quantization / inverse transformation unit 311 outputs the prediction error to the addition unit 312.

加算部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.

(符号化データとセグメント)
画面を構成する符号化データは、スライスから構成され、スライスは、タイルを用いる場合(tiles_enabled_flag=1)には、スライスはさらにタイルのセグメントから構成される。WPPを用いる場合(entropy_coding_sync_enabled_flag=1)には、スライスは
さらにCTUラインのセグメントから構成される。タイルもWPPも用いない場合には、スライスが1つのセグメントとなる。セグメントは、符号化データを復号する単位である。各セグメントからCABACデータを復号するために、符号化データでは、各セグメントiの先頭位置を示す情報(entry_point_offset_minus1[i])が符号化され、各セグメント先頭でCABAC状態が初期化される。offset_len_minus1は、entry_point_offset_minus1[i]を固定長符号化する場合に必要なビット数である。例えば16であればentry_point_offset_minus1[i]として、0から65535の値を符号化できる。以下、セグメントをサブストリームと呼んでもよい。
(Coded data and segments)
The coded data constituting the screen is composed of slices, and when tiles are used (tiles_enabled_flag = 1), the slices are further composed of tile segments. When WPP is used (entropy_coding_sync_enabled_flag = 1), the slice is further composed of segments of the CTU line. If neither tiles nor WPP are used, the slice is one segment. A segment is a unit for decoding coded data. In order to decode the CABAC data from each segment, the coded data encodes the information (entry_point_offset_minus1 [i]) indicating the head position of each segment i, and the CABAC state is initialized at the head of each segment. offset_len_minus1 is the number of bits required for fixed-length coding of entry_point_offset_minus1 [i]. For example, if it is 16, the value from 0 to 65535 can be encoded as entry_point_offset_minus1 [i]. Hereinafter, the segment may be referred to as a substream.

(予測リージョン)
図21は、CABAC状態の時間予測を行う場合に、時間予測テーブル3014に格納する単位は、ピクチャ全体であってもよいし、ピクチャを分割した単位領域であってもよい。これらの単位を予測リージョンと呼ぶ。図21(a)に示すように、ピクチャ全体を一つの予測リージョンとしてCABAC状態を格納してもよい。この場合、CABAC状態の格納位置は黒い四角で示すように画面中心のCTUでもよい。図中の点線は、画面を縦1/2、横1/2に分割する線を示す。図21(b)に示すように、予測リージョンはピクチャやタイルを上下にNumCabacPredRegion個に分割した各矩形領域であってもよい。この場合、CABAC状態の格納位置は黒い四角で示すように予測リージョンの右下のCTUでもよい。図21(c)に示すように、ピクチャ全体を一つの予測リージョンとしてCABAC状態を格納する場合、CABAC状態の格納位置はY座標がピクチャ中央、X座標が画面右端のCTUでもよい。
(Forecast region)
In FIG. 21, when the time is predicted in the CABAC state, the unit stored in the time prediction table 3014 may be the entire picture or a unit area obtained by dividing the picture. These units are called predictive regions. As shown in FIG. 21 (a), the CABAC state may be stored with the entire picture as one prediction region. In this case, the storage position of the CABAC state may be the CTU in the center of the screen as shown by the black square. The dotted line in the figure indicates a line that divides the screen into 1/2 vertically and 1/2 horizontally. As shown in FIG. 21 (b), the predicted region may be each rectangular region in which a picture or tile is divided into NumCabacPredRegions at the top and bottom. In this case, the storage position of the CABAC state may be the CTU at the lower right of the predicted region as shown by the black square. As shown in FIG. 21 (c), when the CABAC state is stored with the entire picture as one prediction region, the storage position of the CABAC state may be the CTU where the Y coordinate is the center of the picture and the X coordinate is the right edge of the screen.

(CABAC時間予測パラメータ)
図9は、CABAC時間予測パラメータのシンタックス構成を示す図である。CABAC時間予測パラメータは、CABAC時間予測フラグtemporal_cabac_pred_enabled_flag、CABAC時間空間予測モードspatial_temporal_cabac_pred_modeから構成される。前者はCABAC状態の時間予測を行うか否かを示すフラグであり、後者は、時間予測を行う場合において、画面を分割するある単位領域(予測リージョン単位)で予測を行うかを示すモードである。なお、この例ではピクチャパラメータセットのシンタックスで伝送しているが、それに限定されずシーケンスパラメータセットで伝送してもよい。spatial_temporal_cabac_pred_mode=0の場合には、ピクチャを一つの予測リージョンとしてCABAC状態を格納してもよい。spatial_temporal_cabac_pred_mode!=0の場合にはピクチャをspatial_temporal_cabac_pred_mode個だけ分割してもよい(NumCabacPredRegion=spatial_temporal_cabac_pred_mod)。また、以下のようなテーブルで分割数NumCabacPredRegionを決めても良い。
(CABAC time prediction parameter)
FIG. 9 is a diagram showing a syntax configuration of CABAC time prediction parameters. The CABAC time prediction parameter consists of the CABAC time prediction flag temporary_cabac_pred_enabled_flag and the CABAC space-time prediction mode spatial_temporal_cabac_pred_mode. The former is a flag indicating whether or not to perform time prediction of the CABAC state, and the latter is a mode indicating whether or not to perform prediction in a certain unit area (prediction region unit) that divides the screen when performing time prediction. .. In this example, transmission is performed using the syntax of the picture parameter set, but the transmission is not limited to this and may be performed using the sequence parameter set. When spatial_temporal_cabac_pred_mode = 0, the CABAC state may be stored with the picture as one prediction region. spatial_temporal_cabac_pred_mode! When = 0, the picture may be divided by spatial_temporal_cabac_pred_mode (NumCabacPredRegion = spatial_temporal_cabac_pred_mod). In addition, the number of divisions NumCabacPredRegion may be determined by the following table.

region_table[] = {2, 3, 4, 6, 8}
NumCabacPredRegion=region_table[spatial_temporal_cabac_pred_mode]
この場合、spatial_temporal_cabac_pred_modeが1, 2, 3, 4, 5の場合に各々ピクチャが2、3、4、6、8個に分割される。なお、spatial_temporal_cabac_pred_modeと分割数の関係は上記に限定されない。
図中(a)は、CABAC状態を時間予測する時(temporal_cabac_pred_enabled_flag=1の場合)にCABAC時間空間予測フラグを通知する例である。図中(b)はWPP(entropy_coding_sync_enabled_flag)を用いる場合にCABAC時間予測モードspatial_temporal_cabac_pred_modeを通知し、CABAC状態を時間予測する時にCABAC時間空間予測モードspatial_temporal_cabac_pred_modeを通知する例である。
region_table [] = {2, 3, 4, 6, 8}
NumCabacPredRegion = region_table [spatial_temporal_cabac_pred_mode]
In this case, when spatial_temporal_cabac_pred_mode is 1, 2, 3, 4, 5, each picture is divided into 2, 3, 4, 6, and 8. The relationship between spatial_temporal_cabac_pred_mode and the number of divisions is not limited to the above.
(A) in the figure is an example of notifying the CABAC space-time prediction flag when the CABAC state is time-predicted (when temporary_cabac_pred_enabled_flag = 1). (B) in the figure is an example of notifying the CABAC time prediction mode spatial_temporal_cabac_pred_mode when WPP (entropy_coding_sync_enabled_flag) is used, and notifying the CABAC space-time prediction mode spatial_temporal_cabac_pred_mode when predicting the CABAC state.

図10は、スライスのシンタックス構造を示す図である。スライスがさらに複数のセグメントから構成される場合(タイルが有効tiles_enabled_flag=1、もしくは、WPPが有効entropy_coding_sync_enabled_flag=1の場合)、符号化データは、セグメント数(num_entry_point_offsets)、各セグメントの先頭位置を示す情報(entry_point_offset_minus1[i])を含む。CABAC時間予測フラグtemporal_cabac_pred_enabled_flagが1の場合には
、さらに、セグメント単位でCABAC状態の時間予測を行うか否かを示すセグメント時間予測フラグslice_temporal_cabac_pred_enabled_flag[i]を含んでいても良い。
FIG. 10 is a diagram showing the syntax structure of slices. If the slice is composed of multiple segments (tiles are enabled tiles_enabled_flag = 1 or WPP is enabled entropy_coding_sync_enabled_flag = 1), the coded data is the number of segments (num_entry_point_offsets), information indicating the start position of each segment. Includes (entry_point_offset_minus1 [i]). When the CABAC time prediction flag temporary_cabac_pred_enabled_flag is 1, a segment time prediction flag slice_temporal_cabac_pred_enabled_flag [i] indicating whether or not to perform CABAC state time prediction in segment units may be further included.

エントロピー復号部301は、CABAC時間予測フラグtemporal_cabac_pred_enabled_flagを復号する。CABAC時間予測フラグtemporal_cabac_pred_enabled_flagが1の場合には、エントロピー復号部301は、さらにCABAC時間空間予測モードspatial_temporal_cabac_pred_modeを復号する。なお、temporal_cabac_pred_enabled_flagとspatial_temporal_cabac_pred_modeの2つにシンタックスを用いず、一つのシンタックス要素cabac_pred_enabled_modeを用いても良い。この場合、cabac_pred_enabled_mode=0ではCABAC状態の時間予測を行わず、1では画面を分割せず(1個に分割して)時間予測を行い、cabac_pred_enabled_mode=2以上では、画面を例えばcabac_pred_enabled_mode個に分割して時間予測を行ってもよい。 The entropy decoding unit 301 decodes the CABAC time prediction flag temporary_cabac_pred_enabled_flag. When the CABAC time prediction flag temporary_cabac_pred_enabled_flag is 1, the entropy decoding unit 301 further decodes the CABAC space-time prediction mode spatial_temporal_cabac_pred_mode. It should be noted that one syntax element cabac_pred_enabled_mode may be used instead of using syntax for two of temporary_cabac_pred_enabled_flag and spatial_temporal_cabac_pred_mode. In this case, when cabac_pred_enabled_mode = 0, the time of the CABAC state is not predicted, when 1, the screen is not divided (divided into one) and the time is predicted, and when cabac_pred_enabled_mode = 2 or more, the screen is divided into, for example, cabac_pred_enabled_mode. You may make a time prediction.

エントロピー復号部301は、CABAC時間予測フラグtemporal_cabac_pred_enabled_flagが1の場合には、セグメント単位のセグメント時間予測フラグslice_temporal_cabac_pred_enabled_flag[i]を復号する。エントロピー復号部301は、タイルもしくはWPPがオンの場合には、エントリポイント数(num_entry_point_offsets)、各セグメントiの先頭位置を示す情報(entry_point_offset_minus1[ i ])を復号し、セグメント数(エントリポイント数+1)個のslice_temporal_cabac_pred_enabled_flag[i]を復号する。ピクチャの先頭セグメントでは符号化データ中の各セグメントの位置(復号開始位置)を示すエントリポイントを含めない。つまりセグメント0、セグメント1、セグメント2のデータがある場合には、セグメント1、セグメント2のみエントリポイントを符号化する。セグメントiの先頭位置はentry_point_offset_minus1[ i-1 ]に対応する。それに対してセグメントiのフラグは、slice_temporal_cabac_pred_enabled_flag[i]である。それ以外、タイルもWPPもオフの場合には、セグメント数は1であるので、1つのセグメント時間予測フラグslice_temporal_cabac_pred_enabled_flag[0]を復号する。なお、図10(a)に示すように、タイルもWPPもオフの場合には、num_entry_point_offsetsが0を導出し、num_entry_point_offsets+1個のセグメントのslice_temporal_cabac_pred_enabled_flag[i]を復号してもよい。この場合、セグメント時間予測フラグslice_temporal_cabac_pred_enabled_flag[i]による分岐は無くて済む。 When the CABAC time prediction flag temporary_cabac_pred_enabled_flag is 1, the entropy decoding unit 301 decodes the segment time prediction flag slice_temporal_cabac_pred_enabled_flag [i] for each segment. When the tile or WPP is on, the entropy decoding unit 301 decodes the number of entry points (num_entry_point_offsets) and the information indicating the start position of each segment i (entry_point_offset_minus1 [i]), and the number of segments (number of entry points + 1). Decrypt the slice_temporal_cabac_pred_enabled_flag [i]. The first segment of the picture does not include an entry point indicating the position (decoding start position) of each segment in the coded data. That is, when there is data of segment 0, segment 1, and segment 2, the entry point is encoded only in segment 1 and segment 2. The start position of segment i corresponds to entry_point_offset_minus1 [i-1]. On the other hand, the flag of segment i is slice_temporal_cabac_pred_enabled_flag [i]. Other than that, when both the tile and WPP are off, the number of segments is 1, so one segment time prediction flag slice_temporal_cabac_pred_enabled_flag [0] is decoded. As shown in FIG. 10A, when both the tile and WPP are off, num_entry_point_offsets may derive 0, and slice_temporal_cabac_pred_enabled_flag [i] of num_entry_point_offsets + 1 segment may be decoded. In this case, there is no need to branch by the segment time prediction flag slice_temporal_cabac_pred_enabled_flag [i].

なお、図10(b)に示すように、セグメント数ではなくNumCabacPredRegionだけのslice_temporal_cabac_pred_enabled_flag[i]を復号してもよい。このとき。NumCabacPredRegionは、ピクチャを分割する数に設定してもよいし、例えばPPSで伝送しても良い。 As shown in FIG. 10B, slice_temporal_cabac_pred_enabled_flag [i] of only NumCabacPredRegion may be decoded instead of the number of segments. At this time. The NumCabacPredRegion may be set to the number of divisions of the picture, or may be transmitted by, for example, PPS.

図11は、スライスデータのシンタックス構造を示す図である。エントロピー復号部301は、符号化データ中のスライスデータからCTU単位で、予測モードやイントラ予測モード、動きベクトル(マージフラグ、差分ベクトルなど)を復号する。図中、coding_tree_unit( )はCU単位の符号化データを示し、end_of_subset_one_bitはスライスの終端であるか否かのフラグ、byte_alignment( )はスライス終端で符号化データ長をバイト単位(8ビット単位)にするためのスタッフィングデータ、end_of_slice_segment_flagはスライスセグメント終端を示すフラグである。時間予測格納部3014、空間予測格納部3015では、CTUの終端においてCABAC状態を格納するが、これはend_of_subset_one_bitを符号化した後のタイミングで行ってもよい。 FIG. 11 is a diagram showing a syntax structure of slice data. The entropy decoding unit 301 decodes the prediction mode, the intra prediction mode, and the motion vector (merge flag, difference vector, etc.) from the slice data in the coded data in CTU units. In the figure, coding_tree_unit () indicates the coded data in CU units, end_of_subset_one_bit is a flag for whether or not it is the end of the slice, and byte_alignment () is the end of the slice and the coded data length is in byte units (8-bit units). The stuffing data for, end_of_slice_segment_flag is a flag indicating the end of the slice segment. The time prediction storage unit 3014 and the space prediction storage unit 3015 store the CABAC state at the end of the CTU, but this may be performed at the timing after the end_of_subset_one_bit is encoded.

(エントロピー復号部301の構成)
エントロピー復号部301の構成を図12に示す。エントロピー復号部301は、CABAC初期化部3011、CABAC復号部3012、初期化テーブル3013、時間予測格納部3014(時間予測テーブル3014)、空間予測格納部3015(空間予測テーブル3015)を備える。時間予測格納部3014は、内部の時間予測テーブル3014にCABAC
状態を格納する。格納されたCABAC状態は、後続のピクチャのセグメントなど他のピクチャのセグメントの復号時に参照されCABAC状態の初期化に利用される。空間予測格納部3015は、内部の空間予測テーブル3015にCABAC状態を格納する。格納されたCABAC状態は、対象ピクチャの後続のセグメントなど、対象セグメント以外のセグメントの復号時に参照されCABAC状態の初期化に利用される。CABAC復号部3012は、内部にCABAC状態を備え、CABAC状態に応じて、符号化データ(ビットストリーム)からシンタックスを復号する。
(Structure of Entropy Decoding Unit 301)
The configuration of the entropy decoding unit 301 is shown in FIG. The entropy decoding unit 301 includes a CABAC initialization unit 3011, a CABAC decoding unit 3012, an initialization table 3013, a time prediction storage unit 3014 (time prediction table 3014), and a spatial prediction storage unit 3015 (spatial prediction table 3015). The time prediction storage unit 3014 has CABAC in the internal time prediction table 3014.
Store the state. The stored CABAC state is referred to when decoding a segment of another picture such as a segment of a subsequent picture, and is used for initializing the CABAC state. The space prediction storage unit 3015 stores the CABAC state in the internal space prediction table 3015. The stored CABAC state is referred to when decoding a segment other than the target segment, such as the segment following the target picture, and is used to initialize the CABAC state. The CABAC decoding unit 3012 has a CABAC state inside, and decodes the syntax from the coded data (bit stream) according to the CABAC state.

エントロピー復号部301は、ピクチャを構成するセグメント先頭において、CABAC状態を初期化するCABAC初期化部3011を備え、上記CABAC初期化部3011は、CABAC時間予測フラグが1の場合に、CABAC状態を保持する時間予測テーブル3014を用いてCABAC状態の初期化を行い、CABAC時間予測フラグが0の場合に、初期化テーブルを用いてCABAC状態の初期化を行う。 The entropy decoding unit 301 includes a CABAC initialization unit 3011 that initializes the CABAC state at the beginning of the segment constituting the picture, and the CABAC initialization unit 3011 holds the CABAC state when the CABAC time prediction flag is 1. The CABAC state is initialized using the time prediction table 3014, and when the CABAC time prediction flag is 0, the CABAC state is initialized using the initialization table.

(CABAC状態の初期化)
エントロピー復号部301は、符号化データのセグメント先頭で、CABAC初期化部3011を用いてCABAC状態を初期化する。CABAC状態とは、例えば、コンテキスト単位の確率の状態を示すStateIdx、0と1のどちらが高確率かを示すMpsVal、係数StatCoeffなどである。コンテキストはシンタックスを構成するバイナリ列(0と1からなる列)の要素ごとに定められている。CABAC(Context-adaptive binary arithmetic coding)とは、コンテキストごとに0か1に符号化される確率を推定し、その確率に基づいてバイナリを符号化することで効率的に符号化できる。このとき、確率StateIdxの初期値(及び高い確率のバイナリMps)を設定する必要があり、これをCABAC初期化と呼ぶ。下記TableStateIdx、TableMpsVal、TableStatCoeffは、StateIdx、MpsVal、StatCoeffから構成されるテーブルである。
(Initialization of CABAC state)
The entropy decoding unit 301 initializes the CABAC state by using the CABAC initialization unit 3011 at the beginning of the segment of the coded data. The CABAC state is, for example, StateIdx indicating a state of probability in a context unit, MpsVal indicating which of 0 and 1 has a higher probability, and a coefficient StatCoeff. The context is defined for each element of the binary string (a column consisting of 0s and 1s) that constitutes the syntax. CABAC (Context-adaptive binary arithmetic coding) can be efficiently encoded by estimating the probability of being encoded to 0 or 1 for each context and encoding the binary based on the probability. At this time, it is necessary to set the initial value of the probability StateIdx (and the high probability binary Mps), which is called CABAC initialization. The following TableStateIdx, TableMpsVal, and TableStatCoeff are tables composed of StateIdx, MpsVal, and StatCoeff.

(CABAC状態の初期化動作の例)
図13は、エントロピー復号部301、エントロピー符号化部104での初期化処理を示すフローチャートである。この例では、WPP予測を用いない場合を説明する。
(Example of CABAC state initialization operation)
FIG. 13 is a flowchart showing the initialization process in the entropy decoding unit 301 and the entropy coding unit 104. In this example, the case where WPP prediction is not used will be described.

S3011:エントロピー復号部301、エントロピー符号化部104は、処理対象の現在CTUのセグメント先頭であるか否かを判定する。セグメント先頭である場合(Y)には、S3012に移行する。セグメント先頭でない場合(N)には、CABAC状態初期化を行わずに処理を終了する。 S3011: The entropy decoding unit 301 and the entropy coding unit 104 determine whether or not the segment is the head of the current CTU to be processed. If it is at the beginning of the segment (Y), the process proceeds to S3012. If it is not the beginning of the segment (N), the process ends without initializing the CABAC state.

例えば、以下の式で判定を行う。 For example, the determination is made by the following formula.

((TileId[CtbAddrInTs] != TileId[CtbAddrRsToTs[CtbAddrInRs-1]]) || (CtbAddrInRs==slice_segment_address)
すなわち、以下の何れかの判定が真である場合にセグメント先頭であると判定する。
(((TileId [CtbAddrInTs]! = TileId [CtbAddrRsToTs [CtbAddrInRs-1]])) || (CtbAddrInRs == slice_segment_address)
That is, when any of the following determinations is true, it is determined that the segment is at the beginning.

タイルセグメント先頭判定:現在CTUのアドレス(CtbAddrInTs)のタイルID(TileId[CtbAddrInTs])と現在CTUの左側のCTUのタイルID(TileId[CtbAddrRsToTs[CtbAddrInRs-1]])が異なる
スライス先頭判定:現在CTUのアドレス(CtbAddrInRs)がスライス先頭アドレス(slice_segment_address)と等しい。
Tile segment head determination: The tile ID (TileId [CtbAddrInTs]) of the current CTU address (CtbAddrInTs) and the tile ID of the CTU on the left side of the current CTU (TileId [CtbAddrRsToTs [CtbAddrInRs-1]]) are different. Address (CtbAddrInRs) is equal to the slice start address (slice_segment_address).

S3012:CABAC時間予測フラグtemporal_cabac_pred_enable_flagが1の場合(Y)には、S3013に移行する。Nの場合には、S3018に移行する。 S3012: When the CABAC time prediction flag temporary_cabac_pred_enable_flag is 1 (Y), the process proceeds to S3013. In the case of N, the process proceeds to S3018.

S3013:CABAC時間予測フラグtemporal_cabac_pred_enable_flagが1の場合、時間予測テーブルに参照可能な状態があるか否かを判定し、参照可能な状態がある場合(Y)には、S3015に移行する。 S3013: When the CABAC time prediction flag temporary_cabac_pred_enable_flag is 1, it is determined whether or not there is a referenceable state in the time prediction table, and if there is a referenceable state, the process proceeds to S3015.

S3015:時間予測テーブル3014に参照可能な状態がある場合には、例えば、以下のように参照状態(TableStateIdxSelect、TableMpsValSelect、TableStatCoeffSelect)を時間予測テーブルの要素(TableStateIdxTemporal[stateType][stateTid][statePos]、TableMpsValTemporal[stateType][stateTid][statePos]、TableStatCoeffTemporal[stateType][stateTid][statePos]
)に設定する。
S3015: When there is a referenceable state in the time prediction table 3014, for example, the reference state (TableStateIdxSelect, TableMpsValSelect, TableStatCoeffSelect) is set to the element of the time prediction table (TableStateIdxTemporal [stateType] [stateTid] [statePos], TableMpsValTemporal [stateType] [stateTid] [statePos], TableStatCoeffTemporal [stateType] [stateTid] [statePos]
).

TableStateIdxSelect = TableStateIdxTemporal[stateType][stateTid][statePos]
TableMpsValSelect = TableMpsValTemporal[stateType][stateTid][statePos]
TableStatCoeffSelect = TableStatCoeffTemporal[stateType][stateTid][statePos]
S3017:設定した状態(例えば、TableStateIdxSelect、TableMpsValSelect、TableStatCoeffSelect)を参照し、CABAC初期化部3011が対象セグメントのCABAC状態を初期化する。
TableStateIdxSelect = TableStateIdxTemporal [stateType] [stateTid] [statePos]
TableMpsValSelect = TableMpsValTemporal [stateType] [stateTid] [statePos]
TableStatCoeffSelect = TableStatCoeffTemporal [stateType] [stateTid] [statePos]
S3017: With reference to the set state (for example, TableStateIdxSelect, TableMpsValSelect, TableStatCoeffSelect), the CABAC initialization unit 3011 initializes the CABAC state of the target segment.

S3018:初期化テーブル3013を用いてCABAC初期化部3011が対象セグメントのCABAC状態を初期化する。 S3018: The CABAC initialization unit 3011 initializes the CABAC state of the target segment using the initialization table 3013.

(CABAC状態の初期化動作の別の例)
図14は、エントロピー復号部301、エントロピー符号化部104のCABAC初期化部3011での初期化処理を示すフローチャートの別の例である。この例では、WPP予測を用いる場合を説明する。
(Another example of CABAC state initialization operation)
FIG. 14 is another example of a flowchart showing the initialization processing of the entropy decoding unit 301 and the entropy coding unit 104 in the CABAC initialization unit 3011. In this example, the case of using WPP prediction will be described.

S3011:エントロピー復号部301は、処理対象の現在CTUのアドレスが、セグメント先頭であるか否かを判定する。セグメント先頭である場合(Y)には、S3012に移行する。セグメント先頭でない場合(N)には、CABAC状態初期化を行わずに処理を終了する。 S3011: The entropy decoding unit 301 determines whether or not the address of the current CTU to be processed is the head of the segment. If it is at the beginning of the segment (Y), the process proceeds to S3012. If it is not the beginning of the segment (N), the process ends without initializing the CABAC state.

例えば、以下の式で判定を行う。 For example, the determination is made by the following formula.

((entropy_coding_sync_enabled_flag==1) && (CtbAddrInRs % PicWidthInCtbsY==0)) || (TileId[CtbAddrInTs] != TileId[CtbAddrRsToTs[CtbAddrInRs-1]]) || (CtbAddrInRs==slice_segment_address)
すなわち、以下の何れかの判定が真である場合にセグメント先頭であると判定する。
((entropy_coding_sync_enabled_flag == 1) && (CtbAddrInRs% PicWidthInCtbsY == 0)) || (TileId [CtbAddrInTs]! = TileId [CtbAddrRsToTs [CtbAddrInRs-1]]) ||
That is, when any of the following determinations is true, it is determined that the segment is at the beginning.

WPPセグメント先頭判定:WPP予測がオン(entropy_coding_sync_enabled_flag==1)で、現在CTUのアドレス(CtbAddrInRs)がCTUラインの左端である(CtbAddrInRs % PicWidthInCtbsY==0))
タイルセグメント先頭判定:現在CTUのアドレス(CtbAddrInTs)のタイルID(TileId[CtbAddrInTs])と現在CTUの左側のCTUのタイルID(TileId[CtbAddrRsToTs[CtbAddrInRs-1]])が異なる
スライス先頭判定:現在CTUのアドレス(CtbAddrInRs)がスライス先頭アドレス(slice_segment_address)と等しい。
WPP segment head determination: WPP prediction is on (entropy_coding_sync_enabled_flag == 1) and the current CTU address (CtbAddrInRs) is at the left end of the CTU line (CtbAddrInRs% PicWidthInCtbsY == 0))
Tile segment head determination: The tile ID (TileId [CtbAddrInTs]) of the current CTU address (CtbAddrInTs) and the tile ID of the CTU on the left side of the current CTU (TileId [CtbAddrRsToTs [CtbAddrInRs-1]]) are different. Address (CtbAddrInRs) is equal to the slice start address (slice_segment_address).

S3012:CABAC時間予測フラグtemporal_cabac_pred_enabled_flagが1の場合(Y)には、S3013に移行する。Nの場合には、S3014に移行する。 S3012: When the CABAC time prediction flag temporary_cabac_pred_enabled_flag is 1 (Y), the process proceeds to S3013. In the case of N, the process proceeds to S3014.

S3013:CABAC時間予測フラグtemporal_cabac_pred_enabled_flagが1の場合、時間予測テーブルに参照可能な状態があるか否かを判定し、参照可能な状態がある場合(Y)には、S3015に移行する。Nの場合には、S3014に移行する。 S3013: When the CABAC time prediction flag temporary_cabac_pred_enabled_flag is 1, it is determined whether or not there is a referenceable state in the time prediction table, and if there is a referenceable state, the process proceeds to S3015. In the case of N, the process proceeds to S3014.

S3014:WPP予測がオン(entropy_coding_sync_enabled_flag==1)かつスライスの最初のセグメント以外(空間予測テーブル3015に参照可能な状態がある)か否かを判定し、参照可能な状態がある場合(Y)には、S3016に移行する。Nの場合には、S3018に移行する。 S3014: When WPP prediction is on (entropy_coding_sync_enabled_flag == 1) and it is determined whether or not it is other than the first segment of the slice (there is a referenceable state in the spatial prediction table 3015), and there is a referenceable state (Y). Will move to S3016. In the case of N, the process proceeds to S3018.

S3015:時間予測テーブル3014に参照可能な状態がある場合には、例えば、以下のようにCABAC初期化に用いる参照状態(TableStateIdxSelect、TableMpsValSelect、TableStatCoeffSelect)に時間予測テーブルの要素(TableStateIdxTemporal[stateType][stateTid][statePos]、TableMpsValTemporal[stateType][stateTid][statePos]、TableStatCoeffTemporal[stateType][stateTid][statePos]
)を設定する。ここでは時間予測テーブルのエントリの選択に、対象ピクチャのパラメータstateType、stateTidと対象位置のパラメータstatePosを用いる。
S3015: When there is a referenceable state in the time prediction table 3014, for example, the reference state (TableStateIdxSelect, TableMpsValSelect, TableStatCoeffSelect) used for CABAC initialization is an element of the time prediction table (TableStateIdxTemporal [stateType] [stateTid]. ] [StatePos], TableMpsValTemporal [stateType] [stateTid] [statePos], TableStatCoeffTemporal [stateType] [stateTid] [statePos]
) Is set. Here, the parameters stateType and stateTid of the target picture and the parameter statePos of the target position are used to select the entry in the time prediction table.

TableStateIdxSelect = TableStateIdxTemporal[stateType][stateTid][statePos]
TableMpsValSelect = TableMpsValTemporal[stateType][stateTid][statePos]
TableStatCoeffSelect = TableStatCoeffTemporal[stateType][stateTid][statePos]
S3016:WPP予測がオンかつスライスの最初のセグメント以外である場合(Y)には、例えば、以下のようにCABAC初期化に用いる参照状態(TableStateIdxSelect、TableMpsValSelect、TableStatCoeffSelect)に空間予測テーブル(TableStateIdxWpp、TableMpsValWpp、TableStatCoeffWpp)を設定する。
TableStateIdxSelect = TableStateIdxTemporal [stateType] [stateTid] [statePos]
TableMpsValSelect = TableMpsValTemporal [stateType] [stateTid] [statePos]
TableStatCoeffSelect = TableStatCoeffTemporal [stateType] [stateTid] [statePos]
S3016: When WPP prediction is on and other than the first segment of the slice (Y), for example, the spatial prediction table (TableStateIdxWpp, TableMpsValWpp) is set in the reference state (TableStateIdxSelect, TableMpsValSelect, TableStatCoeffSelect) used for CABAC initialization as follows. , TableStatCoeffWpp).

TableStateIdxSelect = TableStateIdxWpp
TableMpsValSelect = TableMpsValWpp
TableStatCoeffSelect = TableStatCoeffWpp
空間予測テーブルは、同じピクチャ内の既に復号したセグメントのCABAC状態を格納するテーブルである。
TableStateIdxSelect = TableStateIdxWpp
TableMpsValSelect = TableMpsValWpp
TableStatCoeffSelect = TableStatCoeffWpp
The spatial prediction table is a table that stores the CABAC state of already decoded segments in the same picture.

S3017:設定した状態(例えば、TableStateIdxSelect、TableMpsValSelect、TableStatCoeffSelect)を参照し、CABAC初期化部3011が対象セグメントのCABAC状態を初期化する。 S3017: With reference to the set state (for example, TableStateIdxSelect, TableMpsValSelect, TableStatCoeffSelect), the CABAC initialization unit 3011 initializes the CABAC state of the target segment.

S3018:初期化テーブル3013を用いてCABAC初期化部3011が対象セグメントのCABAC状態を初期化する。 S3018: The CABAC initialization unit 3011 initializes the CABAC state of the target segment using the initialization table 3013.

(セグメント単位の時間予測判定)
図13の説明ではS3013において、CABAC時間予測フラグtemporal_cabac_pred_enabled_flagが1である場合に、前に処理されたピクチャで保存されたCABAC状態である時間予測テーブルを用いてCABAC初期化を行う方法を説明したが、セグメント単位のフラグであるセグメント時間予測フラグを用いて、時間予測を行うか否かを切り替える構成でもよい。この場合には、CABAC時間予測フラグtemporal_cabac_pred_enabled_flagが1、かつ、対象セグメントiのセグメント時間予測フラグslice_temporal_cabac_pred_enabled_flag[i]が1の場合に、S3014に移行する。すなわち、対象セグメントのセグメント時間予測フラグslice_temporal_cabac_pred_enabled_flag[i]が1の場合に、上記時間予測テーブルからCABAC状態を読みだして、CABAC状態の初期化を行い、上記セグメント時間予測フラグが0の場合には、初期化テーブルを用いてCABAC状態の初期化を行う、か、空間予測テーブルから予測を行うことを特徴とする。
(Time prediction judgment for each segment)
In the explanation of FIG. 13, in S3013, when the CABAC time prediction flag temporary_cabac_pred_enabled_flag is 1, the method of performing CABAC initialization using the time prediction table which is the CABAC state saved in the previously processed picture has been described. , The segment time prediction flag, which is a flag for each segment, may be used to switch whether or not to perform time prediction. In this case, when the CABAC time prediction flag temporal_cabac_pred_enabled_flag is 1 and the segment time prediction flag slice_temporal_cabac_pred_enabled_flag [i] of the target segment i is 1, the process proceeds to S3014. That is, when the segment time prediction flag slice_temporal_cabac_pred_enabled_flag [i] of the target segment is 1, the CABAC state is read from the time prediction table, the CABAC state is initialized, and when the segment time prediction flag is 0, the CABAC state is initialized. , The CABAC state is initialized using the initialization table, or the prediction is performed from the spatial prediction table.

(予測リージョン単位の時間予測判定)
図13、図14の説明ではS3013において、CABAC時間予測フラグtemporal_cabac_pred_enabled_flagが1である場合に、前に処理されたピクチャで保存されたCABAC状態である時間予測テーブル3014を用いてCABAC初期化を行う方法を説明したが、より予測リージョン単位のフラグである予測リージョン時間予測フラグを用いて、時間予測を行うか否かを切り替える構成でもよい。この場合には、
CABAC時間予測フラグtemporal_cabac_pred_enabled_flagが1、かつ、対象予測リージョンの予測リージョン時間予測フラグslice_temporal_cabac_pred_enabled_flag[i]が1の場合に、S3014に移行する。すなわち、対象予測リージョンの予測リージョン時間予測フラグslice_temporal_cabac_pred_enabled_flag[i]が1の場合に、上記時間予測テーブルからCABAC状態を読みだして、CABAC状態の初期化を行い、(上記予測リージョン時間予測フラグが0の場合には、初期化テーブルを用いてCABAC状態の初期化を行う、か、空間予測テーブルから予測を行う)ことを特徴とする。
(Time prediction judgment for each prediction region)
In the description of FIGS. 13 and 14, in S3013, when the CABAC time prediction flag temporary_cabac_pred_enabled_flag is 1, a method of performing CABAC initialization using the time prediction table 3014 which is the CABAC state saved in the previously processed picture. However, it is also possible to switch whether or not to perform time prediction by using the predicted region time prediction flag, which is a flag for each predicted region. In this case,
When the CABAC time prediction flag temporary_cabac_pred_enabled_flag is 1 and the prediction region time prediction flag slice_temporal_cabac_pred_enabled_flag [i] of the target prediction region is 1, the process proceeds to S3014. That is, when the predicted region time prediction flag slice_temporal_cabac_pred_enabled_flag [i] of the target predicted region is 1, the CABAC state is read from the time prediction table, the CABAC state is initialized, and (the predicted region time prediction flag is 0). In the case of, the CABAC state is initialized using the initialization table, or the prediction is performed from the spatial prediction table).

(時間予測テーブルの選択方法)
以下、エントロピー復号部301、エントロピー符号化部104の時間予測格納部3014から参照される時間予測テーブルの選択方法(エントリの選択方法)を説明する。時間予測テーブルは、テンポラルレイヤ単位で参照してもよい。ここで、参照するテンポラルレイヤをstateTidで表現する。さらに時間予測テーブルは、スライスタイプ単位で参照してもよい。ここで、参照するスライスタイプをstateTypeで表現する。さらに、時間予測テーブルは、ピクチャ内の位置を示す予測リージョン単位で格納や参照を行ってもよい。ここで、予測リージョンの位置を示す値(参照するピクチャ内位置を示すインデックス)をstatePosで表現する。
(How to select the time prediction table)
Hereinafter, a method of selecting a time prediction table (method of selecting an entry) referred from the time prediction storage unit 3014 of the entropy decoding unit 301 and the entropy coding unit 104 will be described. The time prediction table may be referred to in units of temporal layers. Here, the referenced temporal layer is represented by stateTid. Further, the time prediction table may be referred to in slice type units. Here, the slice type to be referenced is expressed by stateType. Further, the time prediction table may be stored or referenced in units of prediction regions indicating positions in the picture. Here, the value indicating the position of the predicted region (the index indicating the position in the referenced picture) is expressed by statePos.

図19は、時間予測テーブルの構成を示す図である。この例では、テンポラルレイヤごとにCABAC状態を格納する。 FIG. 19 is a diagram showing the configuration of the time prediction table. In this example, the CABAC state is stored for each temporal layer.

例えば、テンポラルレイヤごとに格納する場合、以下のようにstateTidで参照できる。 For example, when storing for each temporal layer, it can be referenced by stateTid as follows.

TableStateIdxSelect = TableStateIdxTemporal[stateTid]
TableMpsValSelect = TableMpsValTemporal[stateTid]
TableStatCoeffSelect = TableStatCoeffTemporal[stateTid]
別の構成として例えば、スライスタイプとテンポラルレイヤごとに格納する場合、以下のようにstateTypeとstateTidで参照できる。
TableStateIdxSelect = TableStateIdxTemporal [stateTid]
TableMpsValSelect = TableMpsValTemporal [stateTid]
TableStatCoeffSelect = TableStatCoeffTemporal [stateTid]
As another configuration, for example, when storing by slice type and temporal layer, it can be referred by stateType and stateTid as follows.

TableStateIdxSelect = TableStateIdxTemporal[stateType][stateTid]
TableMpsValSelect = TableMpsValTemporal[stateType][stateTid]
TableStatCoeffSelect = TableStatCoeffTemporal[stateType][stateTid]
別の構成として例えば、テンポラルレイヤと位置ごとに格納する場合、以下のようにstateTidとstatePosで参照できる。
TableStateIdxSelect = TableStateIdxTemporal [stateType] [stateTid]
TableMpsValSelect = TableMpsValTemporal [stateType] [stateTid]
TableStatCoeffSelect = TableStatCoeffTemporal [stateType] [stateTid]
As another configuration, for example, when storing by temporal layer and position, it can be referred by stateTid and statePos as follows.

TableStateIdxSelect = TableStateIdxTemporal[stateTid][statePos]
TableMpsValSelect = TableMpsValTemporal[stateTid][statePos]
TableStatCoeffSelect = TableStatCoeffTemporal[stateTid][statePos]
図20は、時間予測テーブルの構成を示す図である。この例では、スライスタイプ、テンポラルレイヤと位置ごとにCABAC状態を格納する。
TableStateIdxSelect = TableStateIdxTemporal [stateTid] [statePos]
TableMpsValSelect = TableMpsValTemporal [stateTid] [statePos]
TableStatCoeffSelect = TableStatCoeffTemporal [stateTid] [statePos]
FIG. 20 is a diagram showing the configuration of a time prediction table. In this example, the CABAC state is stored for each slice type, temporal layer, and position.

例えば、スライスタイプとテンポラルレイヤと位置ごとに格納する場合、以下のようにstateTypeとstateTidとstatePosで参照できる。 For example, when storing by slice type, temporal layer and position, it can be referenced by stateType, stateTid and statePos as follows.

TableStateIdxSelect = TableStateIdxTemporal[stateType][stateTid][statePos]
TableMpsValSelect = TableMpsValTemporal[stateType][stateTid][statePos]
TableStatCoeffSelect = TableStatCoeffTemporal[stateType][stateTid][statePos]
(時間予測テーブルの選択処理)
エントロピー復号部301、エントロピー符号化部104は、スライスタイプstateType、テンポラルレイヤstateTid、参照位置statePosを用いて、時間予測テーブルのエントリを選択してもよい。
TableStateIdxSelect = TableStateIdxTemporal [stateType] [stateTid] [statePos]
TableMpsValSelect = TableMpsValTemporal [stateType] [stateTid] [statePos]
TableStatCoeffSelect = TableStatCoeffTemporal [stateType] [stateTid] [statePos]
(Time prediction table selection process)
The entropy decoding unit 301 and the entropy coding unit 104 may select an entry in the time prediction table using the slice type stateType, the temporal layer stateTid, and the reference position statePos.

エントロピー復号部301、エントロピー符号化部104は、対象ピクチャのスライスタイプsliceTypeを用いて、参照スライスタイプstateTypeを決定してもよい。 The entropy decoding unit 301 and the entropy coding unit 104 may determine the reference slice type stateType using the slice type sliceType of the target picture.

stateType = sliceType
エントロピー復号部301、エントロピー符号化部104は、対象ピクチャのテンポラルレイヤをsliceTidを用いて、参照スライスのテンポラルレイヤstateTidを決定してもよい。
stateType = sliceType
The entropy decoding unit 301 and the entropy coding unit 104 may determine the temporal layer stateTid of the reference slice by using sliceTid as the temporal layer of the target picture.

stateTid = sliceTid
エントロピー復号部301、エントロピー符号化部104は、対象ブロックの位置(CtbAddrX, CtbAddrY)を用いて、参照位置statePosを決定してもよい。
stateTid = sliceTid
The entropy decoding unit 301 and the entropy coding unit 104 may determine the reference position statePos by using the position of the target block (CtbAddrX, CtbAddrY).

N = PicHeightInCtbsY / NumCabacPredRegion
statePos = CtbAddrY / N
ここで、NumCabacPredRegionは、ピクチャを予測リージョンに分割した場合のリージョン数である。またspatial_temporal_cabac_pred_enabled_modeに依存してstatePosを導出してもよい。
N = PicHeightInCtbsY / NumCabacPredRegion
statePos = CtbAddrY / N
Here, NumCabacPredRegion is the number of regions when the picture is divided into predicted regions. You may also derive statePos depending on spatial_temporal_cabac_pred_enabled_mode.

statePos = (spatial_temporal_cabac_pred_enabled_mode) ? CtbAddrY / N : 0
図22は、予測リージョン単位で格納されたCABAC状態をCTUライン単位のセグメントから参照する例である。予測リージョンの分割方法は図21と同じである。特にWPPオンの場合、つまりCTUライン単位のセグメントを用いる例を示す。図22(a)では、ピクチャを一つの予測リージョンとして用いる例である。各セグメント(CTUライン)の先頭CTUにおいてCABAC状態を初期化する場合であって、時間予測を用いる場合に、statePos=0の時間予測テーブルを参照する。なお、時間予測テーブルは、図19、図20に示すようにさらにテンぽラルレイヤやスライスタイプ別に格納、参照してもよい。図22(b)では、ピクチャをNumCabacPredRegion個(ここではNumCabacPredRegion=4)の予測リージョンを用いる例であり、各セグメント(CTUライン)の先頭CTUでCABAC状態を初期化する場合であって、時間予測を用いる場合、statePos=CtbAddrY/Nの時間予測テーブルを参照する。ここでN=PicHeightInCtbsY/NumCabacPredRegion。図ではN=2であり、2CTUラインごとに1つの時間予測テーブルを参照する。
statePos = (spatial_temporal_cabac_pred_enabled_mode)? CtbAddrY / N: 0
FIG. 22 is an example of referencing the CABAC state stored in the predicted region unit from the segment of the CTU line unit. The method of dividing the predicted region is the same as in FIG. In particular, when WPP is on, that is, an example of using a segment in units of CTU lines is shown. FIG. 22A is an example of using a picture as one prediction region. When initializing the CABAC state at the head CTU of each segment (CTU line) and using time prediction, refer to the time prediction table with statePos = 0. The time prediction table may be further stored and referred to by the temperal layer or slice type as shown in FIGS. 19 and 20. FIG. 22B is an example in which the prediction region of NumCabacPredRegion (here, NumCabacPredRegion = 4) is used for the picture, and the CABAC state is initialized at the head CTU of each segment (CTU line), and the time is predicted. When using, refer to the time prediction table of statePos = CtbAddrY / N. Where N = PicHeightInCtbsY / NumCabacPredRegion. In the figure, N = 2, and one time prediction table is referred to for every 2 CTU lines.

(時間予測テーブルの利用可能性チェック)
図15は、CABAC初期化で参照する時間予測テーブルの利用可能性の導出処理を示すフローチャートである。S3013に示すチェックの詳細である。
(Check the availability of the time prediction table)
FIG. 15 is a flowchart showing the process of deriving the availability of the time prediction table referred to in the CABAC initialization. Details of the check shown in S3013.

S30131:時間予測テーブルの対応ピクチャが参照ピクチャリストに含まれているかをチェックし、含まれている場合(Y)には、S30134に移行し、含まれていない場合には、S30135に移行する。 S30131: Checks whether the corresponding picture in the time prediction table is included in the reference picture list, and if it is included (Y), it shifts to S30134, and if it is not included, it shifts to S30135.

S30134:時間予測テーブルの対応ピクチャが参照ピクチャリストに含まれている
場合には、当該時間予測テーブルを選択し、利用可能フラグを1に設定する。
S30134: When the corresponding picture of the time prediction table is included in the reference picture list, the time prediction table is selected and the available flag is set to 1.

S30135:時間予測テーブルの対応ピクチャが参照ピクチャリストに含まれていない場合には、利用可能フラグを0に設定する。 S30135: If the corresponding picture in the time prediction table is not included in the reference picture list, the available flag is set to 0.

本構成のように、参照ピクチャリストをチェックすることにより、時間予測テーブルに格納する時点のピクチャ(対応ピクチャ)が、参照ピクチャに含まれるピクチャであることを保証する。つまり、参照ピクチャリストにないピクチャ(つまり非参照ピクチャ)のCABAC状態を参照しないことを保証する。これによって参照ピクチャリスト内のみのピクチャの復号によって、対象ピクチャのセグメントがCABAC復号可能であることを保証する効果を奏する。 By checking the reference picture list as in this configuration, it is guaranteed that the picture (corresponding picture) at the time of storage in the time prediction table is the picture included in the reference picture. That is, it guarantees that it does not refer to the CABAC state of pictures that are not in the referenced picture list (ie, non-referenced pictures). This has the effect of ensuring that the segment of the target picture can be decrypted by CABAC by decoding the picture only in the reference picture list.

図16は、時間予測テーブルの利用可能性の導出処理を示すフローチャートの別の例である。本例では、さらに、テンポラルレイヤのチェックを行う。 FIG. 16 is another example of a flowchart showing the process of deriving the availability of the time prediction table. In this example, the temporal layer is further checked.

S30130:参照テンポラルレイヤstateTidに現在のテンポラルレイヤcurrTidを設定する。 S30130: The current temporal layer currTid is set in the reference temporal layer stateTid.

S30131:参照テンポラルレイヤstateTidで指定される時間予測テーブルの対応ピクチャが参照ピクチャリストに含まれているかをチェックし、含まれている場合(Y)には、S30134に移行し、含まれていない場合には、S30132に移行する。 S30131: Checks whether the corresponding picture of the time prediction table specified by the reference temporal layer stateTid is included in the reference picture list, and if it is included (Y), it moves to S30134 and is not included. Will move to S30132.

S30132:参照テンポラルレイヤstateTidと最小テンポラルレイヤ0を比較し、stateTidが0より大きい場合(Y)、S30133に移行し、Nであれば、S30135に移行する。 S30132: The reference temporal layer stateTid and the minimum temporal layer 0 are compared, and if the stateTid is larger than 0 (Y), the process proceeds to S30133, and if N, the process proceeds to S30135.

S30133:参照テンポラルレイヤを1減算(stateTid=stateTid-1)し、S30131に移行する。すなわち、現在のテンポラルレイヤcurrTidから探索を開始して、ある参照テンポラルレイヤで指定される時間予測テーブルの対応ピクチャが参照ピクチャリストに含まれていない場合には、現在より小さいテンポラルレイヤを参照テンポラルレイヤstateTidに設定して再探索する。 S30133: The reference temporal layer is subtracted by 1 (stateTid = stateTid-1), and the process proceeds to S30131. That is, if the search is started from the current temporal layer currTid and the corresponding picture of the time prediction table specified by a reference temporal layer is not included in the reference picture list, the reference temporal layer is a smaller temporal layer. Set to stateTid and search again.

S30134:時間予測テーブルの対応ピクチャが参照ピクチャリストに含まれている場合には、当該時間予測テーブルを選択し、利用可能フラグを1に設定する。 S30134: When the corresponding picture of the time prediction table is included in the reference picture list, the time prediction table is selected and the available flag is set to 1.

S30135:時間予測テーブルの対応ピクチャが参照ピクチャリストに含まれていない場合には、利用可能フラグを0に設定する。 S30135: If the corresponding picture in the time prediction table is not included in the reference picture list, the available flag is set to 0.

例えば、以下の擬似コードによって実現することができる。 For example, it can be realized by the following pseudo code.

for (stateTid = currTid; stateTid >= 0; stateTid = stateTid - 1)
{
// check reference picture for the state is available in RPL
poc = TemporalStatePicOrderCount[stateType][stateTid][statePos]
if (IsPicIncludedInReferencePictureList(poc))
{
availableFlag = true
break;
}
}
if (stateTid < 0)
{
availableFlag = false
}
上記、TemporalStatePicOrderCount[stateType][stateTid][statePos]は、参照スライスタイプstateType、参照テンポラルレイヤstateTid、参照ポジションstatePosで指定される時間予測テーブルに格納されたCABAC状態のセグメントを含むピクチャ(対応ピクチャ)のPOCである。TemporalStatePicOrderCount[stateType][stateTid][statePos]は後述の格納処理で設定する。IsPicIncludedInReferencePictureListは指定されたpocが参照ピクチャリストに含まれるか否かを判定する。ここでは判定が真の場合にavailableFlag = trueとする。
for (stateTid = currTid; stateTid> = 0; stateTid = stateTid ―― 1)
{
// check reference picture for the state is available in RPL
poc = TemporalStatePicOrderCount [stateType] [stateTid] [statePos]
if (IsPicIncludedInReferencePictureList (poc))
{
availableFlag = true
break;
}
}
if (stateTid <0)
{
availableFlag = false
}
Above, TemporalStatePicOrderCount [stateType] [stateTid] [statePos] is a picture (corresponding picture) containing the segment of CABAC state stored in the time prediction table specified by the reference slice type stateType, reference temporal layer stateTid, and reference position statePos. It is a POC. TemporalStatePicOrderCount [stateType] [stateTid] [statePos] is set in the storage process described later. IsPicIncludedInReferencePictureList determines whether the specified poc is included in the reference picture list. Here, if the judgment is true, set availableFlag = true.

本構成のように、現在のテンポラルレイヤcurrTid以下の参照テンポラルレイヤstateTidで指定される時間予測テーブルを選択することによって、現在のテンポラルレイヤcurrTidに最も近いセグメントのCABAC状態を再利用することができる効果を奏する。テンポラルレイヤが近いとエントロピー圧縮される符号は、現在のセグメントに近い性質を持つため、性能が高くなる。また、現在のテンポラルレイヤcurrTidの参照テンポラルレイヤstateTidで指定される時間予測テーブルがない場合にも、currTidとは異なる参照テンポラルレイヤstateTidで指定される時間予測テーブルを参照することができ、より多くの場合で好適なCABAC状態で初期化できるという効果を奏する。 As in this configuration, by selecting the time prediction table specified by the reference temporal layer stateTid below the current temporal layer currTid, the CABAC state of the segment closest to the current temporal layer currTid can be reused. Play. Signs that are entropy-compressed when the temporal layers are close have properties similar to those of the current segment, resulting in higher performance. Also, if there is no time prediction table specified by the reference temporal layer stateTid of the current temporal layer currTid, it is possible to refer to the time prediction table specified by the reference temporal layer stateTid different from currTid, and more. In some cases, it has the effect of being able to be initialized in a suitable CABAC state.

(参照ピクチャリストのチェックとPOC)
CABAC初期化の時間予測テーブルの利用可能性では、参照ピクチャリストに時間予測テーブルの対応ピクチャが含まれているかを判定する。この参照ピクチャリストに対応ピクチャが含まれているかの判定にはPOCを利用してもよい。例えば、以下の処理IsPicIncludedInReferencePictureList(poc)は、指定される時間予測テーブルに格納されたCABAC状態のセグメントを含むピクチャ(対応ピクチャ)のPOCが、参照ピクチャリストに存在するかを判定する。このIsPicIncludedInReferencePictureList(poc)の判定処理は以下の擬似コードでもよい。
(Checking the reference picture list and POC)
The availability of the time prediction table for CABAC initialization determines whether the reference picture list contains the corresponding picture in the time prediction table. POC may be used to determine whether or not the corresponding picture is included in this reference picture list. For example, the following process IsPicIncludedInReferencePictureList (poc) determines whether the POC of the picture (corresponding picture) containing the CABAC state segment stored in the specified time prediction table exists in the reference picture list. The determination process of this IsPicIncludedInReferencePictureList (poc) may be the following pseudo code.

for (refIdx = 0; refIdx < num_ref_idx_l0_active_minus1 + 1; refIdx++)
{
if (POC of RefPicListL0[refIdx] == poc)
{
return true;
}
}
if( sliceType == B_SLICE)
{
for (refIdx = 0; refIdx < num_ref_idx_l1_active_minus1 + 1; refIdx++)
{
if (POC of RefPicListL1[refIdx] == poc)
{
return true;
}
}
}
return false
上記において、pocは、指定される時間予測テーブルに格納されたCABAC状態のセグメントを含むピクチャ(対応ピクチャ)のPOCを用いる。num_ref_idx_l0_active_minus1 + 1
はL0参照ピクチャリストRefPicListL0の要素の数、num_ref_idx_l1_active_minus1 + 1はL1参照ピクチャリストRefPicListL1の要素の数である。まず、L0参照ピクチャリストRefPicListL0を0から順に探索し、要素のPOC(POC of RefPicListL0[refIdx])が探索対称のpocと等しいかを判定し、次にL1参照ピクチャリストRefPicListL1を0から順に探索する。等しいPOCのピクチャが参照ピクチャ中に見つかれば利用可能(true)に設定し、それ以外は利用可能ではない(false)と判定する。
for (refIdx = 0; refIdx <num_ref_idx_l0_active_minus1 + 1; refIdx ++)
{
if (POC of RefPicListL0 [refIdx] == poc)
{
return true;
}
}
if (sliceType == B_SLICE)
{
for (refIdx = 0; refIdx <num_ref_idx_l1_active_minus1 + 1; refIdx ++)
{
if (POC of RefPicListL1 [refIdx] == poc)
{
return true;
}
}
}
return false
In the above, poc uses the POC of the picture (corresponding picture) containing the segment of the CABAC state stored in the specified time prediction table. num_ref_idx_l0_active_minus1 + 1
Is the number of elements in the L0 reference picture list RefPicList L0, and num_ref_idx_l1_active_minus1 + 1 is the number of elements in the L1 reference picture list RefPicList L1. First, the L0 reference picture list RefPicListL0 is searched in order from 0, it is determined whether the POC (POC of RefPicListL0 [refIdx]) of the element is equal to the search symmetric poc, and then the L1 reference picture list RefPicList L1 is searched in order from 0. .. If a picture with the same POC is found in the reference picture, it is set to available (true), and otherwise it is determined to be unusable (false).

(CABAC状態の格納処理の動作)
図17は、エントロピー復号部301、エントロピー符号化部104でのCABAC状態の格納処理を示すフローチャートである。
C4001:CTUの最後のシンタックスを復号、符号化した時点(例えばend_of_slice_segment_flagやend_of_subset_one_bitを復号、符号化した時点)であるかを判定する。CTUの最後の場合(Y)、S4002に移行し、それ以外(N)では、CABAC状態の格納を行わず処理を終了する。
C4002:CABAC時間予測フラグ==1の場合(Y)には、C4003に移行する。それ以外(N)の場合には、処理を終了する。
C4003:所定の位置のCABAC状態を、時間予測テーブルに格納する。
(Operation of CABAC state storage processing)
FIG. 17 is a flowchart showing the storage process of the CABAC state in the entropy decoding unit 301 and the entropy coding unit 104.
C4001: It is determined whether the last syntax of the CTU is decoded and encoded (for example, the end_of_slice_segment_flag and end_of_subset_one_bit are decoded and encoded). In the last case of CTU (Y), the process proceeds to S4002, and in other cases (N), the processing is terminated without storing the CABAC state.
C4002: When the CABAC time prediction flag == 1 (Y), the process shifts to C4003. In other cases (N), the process ends.
C4003: The CABAC state at a predetermined position is stored in the time prediction table.

図18は、エントロピー復号部301、エントロピー符号化部104でのCABAC状態の格納処理を示すフローチャートの別の例である。
C4001:CTUの最後のシンタックスを復号、符号化した時点であるかを判定する。CTUの最後の場合(Y)、S4002に移行し、それ以外(N)では、CABAC状態の格納を行わず処理を終了する。
C4002:CABAC時間予測フラグ==1かつ予測リージョンの所定の位置の場合(Y)には、C4003に移行する。それ以外(N)の場合には、C4004に移行する。所定の位置は、予測リージョンの最後のCTUでもよい。なお、格納位置は予測リージョンの最後のCTUに限定されず、予測リージョン内の所定の位置(例えば中央位置)でもよい。
C4003:所定の位置のCABAC状態を、時間予測テーブルに格納する。図17および図18の所定の位置の判定式は、例えば以下でもよい。
FIG. 18 is another example of a flowchart showing the storage process of the CABAC state in the entropy decoding unit 301 and the entropy coding unit 104.
C4001: It is determined whether the last syntax of the CTU is decoded and encoded. In the last case of CTU (Y), the process proceeds to S4002, and in other cases (N), the processing is terminated without storing the CABAC state.
C4002: When the CABAC time prediction flag == 1 and a predetermined position in the prediction region (Y), the process shifts to C4003. In other cases (N), the process proceeds to C4004. The predetermined position may be the last CTU of the predicted region. The storage position is not limited to the last CTU of the predicted region, and may be a predetermined position (for example, the center position) in the predicted region.
C4003: The CABAC state at a predetermined position is stored in the time prediction table. The determination formulas for the predetermined positions in FIGS. 17 and 18 may be, for example, as follows.

(CtbAddrX == (PicWidthInCtbsY/2) && CtbAddrY == (PicHeightInCtbsY/2)
上記は、CTUアドレスのX座標、Y座標(CtbAddrX、CtbAddrY)が画面中心(PicWidthInCtbsY/2、PicHeightInCtbsY/2)である場合に、CABAC状態を時間予測テーブルに格納する処理を示す。
(CtbAddrX == (PicWidthInCtbsY / 2) && CtbAddrY == (PicHeightInCtbsY / 2)
The above shows the process of storing the CABAC state in the time prediction table when the X coordinate and Y coordinate (CtbAddrX, CtbAddrY) of the CTU address are the screen center (PicWidthInCtbsY / 2, PicHeightInCtbsY / 2).

また別の構成として、CABAC時間空間予測モードspatial_temporal_cabac_pred_modeに応じて格納する場合の判定処理を示す。以下では、図21(a)に示すようにCABAC時間空間予測モードが0の場合には画面中央としてもよい。
(spatial_temporal_cabac_pred_mode==0 && (CtbAddrX==(PicWidthInCtbsY/2) && CtbAddrY==(PicHeightInCtbsY/2))
また、画面中央に限定されず、画面中央付近の右端でもよい。
(spatial_temporal_cabac_pred_mode==0 && (CtbAddrX==(PicWidthInCtbsY-1) && CtbAddrY==(PicHeightInCtbsY/2))
なお、PicWidthInCtbsYは、CTUサイズで換算したピクチャ幅である(水平方向のCTU数)。逆に、CABAC時間空間予測モードが1の場合には、図21(b)に示すように画面をNumCabacPredRegion個の予測リージョンに分割した場合において、NumCabacPredRegion番目の予測リージョンの最終のCTUラインでX座標が画面右端としてもよい。
(spatial_temporal_cabac_pred_mode==1 && (CtbAddrX==(PicWidthInCtbsY-1) && (CtbAddrY%N)==(N-1))
さらに画面右下である場合にもCABAC状態を格納しても良い。すなわち、画面右下である
ことを格納する条件に加えても良い。
(spatial_temporal_cabac_pred_mode==1 && ((CtbAddrX==(PicWidthInCtbsY-1) && (CtbAddrY%N)==(N-1)) || CtbAddrRs==NumCtuInPic-1)
ここでNumCtuInPicはピクチャ中のCTU数である。
格納先は、以下としてもよい。
As another configuration, the determination process when storing according to the CABAC space-time prediction mode spatial_temporal_cabac_pred_mode is shown. In the following, as shown in FIG. 21A, when the CABAC space-time prediction mode is 0, the center of the screen may be used.
(spatial_temporal_cabac_pred_mode == 0 && (CtbAddrX == (PicWidthInCtbsY / 2) && CtbAddrY == (PicHeightInCtbsY / 2))
Further, the present invention is not limited to the center of the screen, and may be the right edge near the center of the screen.
(spatial_temporal_cabac_pred_mode == 0 && (CtbAddrX == (PicWidthInCtbsY-1) && CtbAddrY == (PicHeightInCtbsY / 2))
Note that PicWidthInCtbsY is the picture width converted by the CTU size (the number of CTUs in the horizontal direction). On the contrary, when the CABAC space-time prediction mode is 1, when the screen is divided into NumCabacPredRegion prediction regions as shown in FIG. 21 (b), the X coordinate is the final CTU line of the NumCabacPredRegionth prediction region. May be the right edge of the screen.
(spatial_temporal_cabac_pred_mode == 1 && (CtbAddrX == (PicWidthInCtbsY-1) && (CtbAddrY% N) == (N-1))
Furthermore, the CABAC state may be stored even when it is at the lower right of the screen. That is, it may be added to the condition for storing that it is at the lower right of the screen.
(spatial_temporal_cabac_pred_mode == 1 && ((CtbAddrX == (PicWidthInCtbsY-1) && (CtbAddrY% N) == (N-1))) || CtbAddrRs == NumCtuInPic-1)
Here, NumctuInPic is the number of CTUs in the picture.
The storage destination may be as follows.

TableStateIdxTemporal[stateType][stateTid][statePos]
TableMpsValTemporal[stateType][stateTid][statePos]
TableStatCoeffTemporal[stateType][stateTid][statePos]
ここで格納先を示すstateType、stateTid、statePosを以下のように設定しても良い。
TableStateIdxTemporal [stateType] [stateTid] [statePos]
TableMpsValTemporal [stateType] [stateTid] [statePos]
TableStatCoeffTemporal [stateType] [stateTid] [statePos]
Here, the stateType, stateTid, and statePos indicating the storage destination may be set as follows.

stateType = 現対象ブロックのsliceType
stateTid = 現対象ブロックを含むピクチャのテンポラルレイヤ
statePos = 現対象ブロックの位置を示すインデックス
なお、さらにCABAC状態を格納したセグメントのピクチャ(対応ピクチャ)を識別するために、現ピクチャのPOCを格納しても良い。
stateType = sliceType of the current target block
stateTid = Temporal layer of the picture containing the current target block
statePos = Index indicating the position of the current target block In addition, the POC of the current picture may be stored in order to identify the picture (corresponding picture) of the segment that stores the CABAC state.

TemporalStatePicOrderCount[stateType][stateTid][statePos] = PicOrderCntVal
なお、TemporalStatePicOrderCount[stateType][stateTid][statePos]は、IDRピクチャなど、ランダムアクセス可能なピクチャにおいて全て利用可能ではない値(例えば-1)に初期化してもよい。
C4004:WPPが有効(entropy_coding_sync_enabled_flag==1)かつセグメントの所定の位置の場合(Y)には、C4003に移行する。それ以外(N)の場合には処理を終了する。
C4005:所定の位置のCABAC状態を、空間予測テーブルに格納する。所定の位置の判定式は例えば以下の式でもよい。
TemporalStatePicOrderCount [stateType] [stateTid] [statePos] = PicOrderCntVal
Note that TemporalStatePicOrderCount [stateType] [stateTid] [statePos] may be initialized to a value (for example, -1) that is not available at all randomly accessible pictures such as IDR pictures.
C4004: When WPP is enabled (entropy_coding_sync_enabled_flag == 1) and the segment is in a predetermined position (Y), the process proceeds to C4003. In other cases (N), the process ends.
C4005: The CABAC state at a predetermined position is stored in the spatial prediction table. The determination formula for a predetermined position may be, for example, the following formula.

(entropy_coding_sync_enabled_flag==1) && ((CtbAddrInRs%PicWidthInCtbsY==1) || (CtbAddrInRs>1 && TileId[CtbAddrInTs]!=TileId[CtbAddrRsToTs[CtbAddrInRs- 2]]))
ここで、CtbAddrInRsはラスタスキャンの画面内のCTUアドレス、PicWidthInCtbsYはCTU単位の画面幅、TileIdはタイルID、CtbAddrInTsはタイル内のCTUアドレス、CtbAddrRsToTsは、ラスタスキャンCTUアドレスCtbAddrInRsからタイル内CTUアドレスCtbAddrInTsを導出するためのテーブルである。
(entropy_coding_sync_enabled_flag == 1) && ((CtbAddrInRs% PicWidthInCtbsY == 1) || (CtbAddrInRs> 1 && TileId [CtbAddrInTs]! = TileId [CtbAddrRsToTs [CtbAddrInRs-2]))
Here, CtbAddrInRs is the CTU address in the raster scan screen, PicWidthInCtbsY is the screen width in CTU units, TileId is the tile ID, CtbAddrInTs is the CTU address in the tile, and CtbAddrRsToTs is the raster scan CTU address CtbAddrInRs from the CTU address in the tile. It is a table for deriving.

上記において、(CtbAddrInRs%PicWidthInCtbsY==1)はCTU単位のアドレスであるCTUアドレスのX座標が1である場合(左端から2つ目のCTUの場合)である。(CtbAddrInRs>1 && TileId[CtbAddrInTs]!=TileId[CtbAddrRsToTs[CtbAddrInRs-2]])は、タイル内で左端から2つ目のCTUの場合(CtbAddrInRsが1より大きく、対象ブロックを含むCTUのタイルIDが対象CTUの2つ前のCTUのタイルIDと異なる場合である。 In the above, (CtbAddrInRs% PicWidthInCtbsY == 1) is the case where the X coordinate of the CTU address, which is the address of the CTU unit, is 1 (in the case of the second CTU from the left end). (CtbAddrInRs> 1 && TileId [CtbAddrInTs]! = TileId [CtbAddrRsToTs [CtbAddrInRs-2]]) is the second CTU from the left end in the tile (CtbAddrInRs is larger than 1 and the tile ID of the CTU including the target block). Is different from the tile ID of the CTU two before the target CTU.

(格納する所定の位置)
C4003の動作ステップで説明したように、所定の位置のCABAC状態を、時間予測テーブルに格納する。CTUの座標が所定の位置に等しい場合に格納する。画面内に所定の位置が複数ある場合には、その所定の位置のCTUを復号する度に、予測テーブルの参照位置statePosにCABAC状態を格納する。ここでは所定の位置、すなわち、CABAC状態の格納位置について再度説明する。既に説明したように、図21(a)は、以下のように画面中央を格納位置にする場合を示す。statePos=0の時間予測テーブルに格納する。
(Predetermined position to store)
As described in the operation step of C4003, the CABAC state at a predetermined position is stored in the time prediction table. Store when the coordinates of the CTU are equal to a predetermined position. When there are a plurality of predetermined positions in the screen, the CABAC state is stored in the reference position statePos of the prediction table each time the CTU at the predetermined position is decoded. Here, the predetermined position, that is, the storage position of the CABAC state will be described again. As described above, FIG. 21A shows a case where the center of the screen is set as the storage position as follows. Store in the time prediction table with statePos = 0.

(CtbAddrX == (PicWidthInCtbsY/2) && CtbAddrY == (PicHeightInCtbsY/2)
statePos = 0
図21(b)は、予測リージョンの右下のCTUをCABAC状態の格納に用いる所定の位置としてもよい。ここでは画面をNumCabacPredRegion個の予測リージョンに、縦に分割する例である。
(CtbAddrX == (PicWidthInCtbsY / 2) && CtbAddrY == (PicHeightInCtbsY / 2)
statePos = 0
In FIG. 21 (b), the CTU at the lower right of the predicted region may be a predetermined position used for storing the CABAC state. Here is an example of vertically dividing the screen into NumCabacPredRegion prediction regions.

(CtbAddrX==(PicWidthInCtbsY-1) && (CtbAddrY%N)==(N-1))
statePos=CtbAddrY/N
ここでN=PicHeightInCtbsY/NumCabacPredRegionであり、画面の高さ(PicHeightInCtbsY)を分割数NumCabacPredRegionで割って導出した予測リージョンの高さである。ここではCTU単位で高さを表す。また除算の場合に適当なラウンド用オフセットを加算し、N = (PicHeightInCtbsY + NumCabacPredRegion-1)/NumCabacPredRegion)や、(PicHeightInCtbsY + NumCabacPredRegion/2)/NumCabacPredRegion)を用いても良い。
(CtbAddrX == (PicWidthInCtbsY-1) && (CtbAddrY% N) == (N-1))
statePos = CtbAddrY / N
Here, N = PicHeightInCtbsY / NumCabacPredRegion, which is the height of the predicted region derived by dividing the screen height (PicHeightInCtbsY) by the number of divisions NumCabacPredRegion. Here, the height is expressed in CTU units. In the case of division, an appropriate round offset may be added, and N = (PicHeightInCtbsY + NumCabacPredRegion-1) / NumCabacPredRegion) or (PicHeightInCtbsY + NumCabacPredRegion / 2) / NumCabacPredRegion) may be used.

図21(c)は、X座標を予測リージョンの幅の右端、予測リージョンの高さの1/2の位置を所定の位置としてCABAC状態を格納する例である。この位置を今後、右端中央(X右端Y中央、水平右端垂直中央)と呼ぶ。 FIG. 21C is an example of storing the CABAC state with the X coordinate as the right end of the width of the predicted region and the position of 1/2 of the height of the predicted region as a predetermined position. This position will be referred to as the right end center (X right end Y center, horizontal right end vertical center).

(CtbAddrX == (PicWidthInCtbs-1) && CtbAddrY == (PicHeightInCtbsY/2)
statePos = 0
図24(a)は、予測リージョンが1ピクチャの場合で格納する所定の位置を画面右下に設定しCABAC状態を格納する例を示す。所定の位置の判定は、以下の判定式を用いる。
(CtbAddrX == (PicWidthInCtbs-1) && CtbAddrY == (PicHeightInCtbsY / 2)
statePos = 0
FIG. 24A shows an example in which the CABAC state is stored by setting a predetermined position to be stored in the lower right of the screen when the predicted region is one picture. The following determination formula is used to determine the predetermined position.

(CtbAddrX == (PicWidthInCtbs-1) && CtbAddrY == (PicHeightInCtbsY-1)
statePos = 0
図24(b)は、予測リージョンが1ピクチャの場合で格納する所定の位置を右端中央(X右端Y中央)に設定しCABAC状態を格納する例を示す。所定の位置の判定は、以下の判定式を用いる。
(CtbAddrX == (PicWidthInCtbs-1) && CtbAddrY == (PicHeightInCtbsY-1)
statePos = 0
FIG. 24B shows an example in which the CABAC state is stored by setting a predetermined position to be stored in the case where the prediction region is one picture at the center of the right end (X center of Y right end). The following determination formula is used to determine the predetermined position.

(CtbAddrX == (PicWidthInCtbs-1) && CtbAddrY == (PicHeightInCtbsY/2)
statePos = 0
図24(c)は、予測リージョンがピクチャを縦にNumCabacPredRegion個に分割する場合(高さNの予測リージョンで分割する場合)に、所定の位置を予測リージョン右下に設定しCABAC状態を格納する例を示す。所定の位置の判定は、以下の判定式を用いる。
(CtbAddrX == (PicWidthInCtbs-1) && CtbAddrY == (PicHeightInCtbsY / 2)
statePos = 0
FIG. 24C shows the CABAC state by setting a predetermined position at the lower right of the predicted region when the predicted region vertically divides the picture into NumCabacPredRegions (when dividing by the predicted region of height N). An example is shown. The following determination formula is used to determine the predetermined position.

(CtbAddrX == PicWidthInCtbs-1 && ((!lastPredRegionInPic&&((CtbAddrY % N) == N-1)) || (lastPredRegionInPic && (CtbAddrY == PicHeightInCtbsY-1))))
statePos=CtbAddrY/N
ここでlastPredRegionInPicは、対象CTUが画面の最後の予測リージョンにあるか否かを示す値である。ここではX座標CtbAddrXが右端座標(PicWidthInCtbs-1)であり、最後の予測リージョン以外(!lastPredRegionInPic)では、CTU座標((CtbAddrY % N))が予測リージョン内の最後のCTUラインであるか(N-1)を判定する。最後の予測リージョン(lastPredRegionInPic)では、画面最後のCTUラインと一致するか(CtbAddrY == PicHeightInCtbsY-1)を判定する。
(CtbAddrX == PicWidthInCtbs-1 && ((! LastPredRegionInPic && ((CtbAddrY% N) == N-1)) || (lastPredRegionInPic && (CtbAddrY == PicHeightInCtbsY-1))))
statePos = CtbAddrY / N
Here, lastPredRegionInPic is a value indicating whether or not the target CTU is in the last predicted region of the screen. Here, the X coordinate CtbAddrX is the rightmost coordinate (PicWidthInCtbs-1), and the CTU coordinate ((CtbAddrY% N)) is the last CTU line in the predicted region except for the last predicted region (! LastPredRegionInPic) (N). -1) is judged. In the last predicted region (lastPredRegionInPic), it is determined whether it matches the CTU line at the end of the screen (CtbAddrY == PicHeightInCtbsY-1).

なお、lastPredRegionInPicは、参照位置statePos = CtbAddrY/Nが、最後の予測リージョンの参照位置((PicHeightInCtbsY - 1) / N)と一致するかにより、以下の導出式で求める。 Note that lastPredRegionInPic is obtained by the following derivation formula depending on whether the reference position statePos = CtbAddrY / N matches the reference position ((PicHeightInCtbsY -1) / N) of the last predicted region.

lastPredRegionInPic = ((PicHeightInCtbsY - 1) / N) == (CtbAddrY / N)
N = PicHeightInCtbsY / NumCabacPredRegion
もしくは
(PicHeightInCtbsY + NumCabacPredRegion - 1) / NumCabacPredRegion
図24(d)は、予測リージョンがピクチャを縦にN個に分割する場合で所定の位置を予測リージョン右端中央に設定しCABAC状態を格納する例を示す。所定の位置の判定は、以下の判定式を用いる。
lastPredRegionInPic = ((PicHeightInCtbsY -1) / N) == (CtbAddrY / N)
N = PicHeightInCtbsY / NumCabacPredRegion
or
(PicHeightInCtbsY + NumCabacPredRegion ―― 1) / NumCabacPredRegion
FIG. 24D shows an example in which the predicted region divides the picture vertically into N pieces, a predetermined position is set in the center of the right end of the predicted region, and the CABAC state is stored. The following determination formula is used to determine the predetermined position.

(CtbAddrX == PicWidthInCtbs-1) && (CtbAddrY % N) == N/2)
statePos=CtbAddrY/N
上記では、予測リージョン内のCTU座標((CtbAddrY % N))が予測リージョンの中央のCTUラインであるか(N/2)を判定する。
(CtbAddrX == PicWidthInCtbs-1) && (CtbAddrY% N) == N / 2)
statePos = CtbAddrY / N
In the above, it is determined whether the CTU coordinates ((CtbAddrY% N)) in the predicted region are the CTU line in the center of the predicted region (N / 2).

また、予測リージョン内の中央のCTUライン(N/2)の位置が、画面下端を超えた場合に存在しない可能性を考慮して以下の判定式でもよい。 Further, the following determination formula may be used in consideration of the possibility that the position of the central CTU line (N / 2) in the predicted region does not exist when the position exceeds the lower end of the screen.

(CtbAddrX == PicWidthInCtbs-1 && ((!lastPredRegionInPic&&((CtbAddrY % N) == N/2)) || (lastPredRegionInPic && ((CtbAddrY % N) == N2))
なお、N2は、CTUライン(N/2)が画面端を超えない場合N2にはN/2を設定し、それ以外の場合には、画面端のライン((PicHeightInCtbs - 1) % N)を用いればよく、以下のように導出する。
(CtbAddrX == PicWidthInCtbs-1 && ((! LastPredRegionInPic && ((CtbAddrY% N) == N / 2)) || (lastPredRegionInPic && ((CtbAddrY% N) == N2)))
For N2, set N / 2 for N2 if the CTU line (N / 2) does not exceed the screen edge, otherwise set the screen edge line ((PicHeightInCtbs -1)% N). It may be used, and it is derived as follows.

N2 = (PicHeightInCtbs - 1) % N < N/2 ? (PicHeightInCtbs - 1) % N : N/2
図24(e)は、予測リージョンがタイルのように矩形である場合、所定の位置を予測リージョン右下に設定しCABAC状態を格納する例を示す。所定の位置の判定は、CTU単位のタイル幅−1とタイル高さ−1を利用して判定する。
N2 = (PicHeightInCtbs ―― 1)% N <N / 2? (PicHeightInCtbs ―― 1)% N: N / 2
FIG. 24 (e) shows an example in which when the predicted region is rectangular like a tile, a predetermined position is set at the lower right of the predicted region and the CABAC state is stored. The determination of the predetermined position is made by using the tile width -1 and the tile height -1 in the CTU unit.

図24(f)は、予測リージョンがタイルのように矩形である場合、所定の位置を予測リージョン右端中央に設定しCABAC状態を格納する例を示す。所定の位置の判定は、CTU単位のタイル幅−1とタイル高さ/2を利用して判定する。 FIG. 24 (f) shows an example in which when the predicted region is rectangular like a tile, a predetermined position is set in the center of the right end of the predicted region and the CABAC state is stored. The determination of the predetermined position is made by using the tile width -1 and the tile height / 2 in the CTU unit.

上記構成では、ピクチャもしくはタイルの右下の位置においてCABAC状態を格納することにより高い符号化効率を実現できる。 In the above configuration, high coding efficiency can be realized by storing the CABAC state at the lower right position of the picture or tile.

上記構成では、ピクチャもしくはタイルの右端中央の位置においてCABAC状態を格納することにより高い符号化効率を実現できる。 In the above configuration, high coding efficiency can be realized by storing the CABAC state at the position of the center of the right end of the picture or tile.

(画面境界を考慮したCABAC状態の格納位置)
画面の幅と高さは必ずしもCTUのサイズの整数倍とは限らない。例えば、画面のサイズが1920x1080の場合でCTUの大きさが128x128の場合、画面の幅は、整数倍(15倍)であるが、画面の高さは非整数倍である。
(CABAC state storage position considering screen boundaries)
The width and height of the screen is not always an integral multiple of the size of the CTU. For example, when the screen size is 1920x1080 and the CTU size is 128x128, the width of the screen is an integral multiple (15 times), but the height of the screen is a non-integer multiple.

1920/128.0=15.0
1080/128.0=8.4375
非整数倍の場合、動画像符号化装置、動画像復号装置は、小数を切り上げて整数個のCTUであるとみなして処理する。すなわち、15x9のCTUを処理する。
1920 / 128.0 = 15.0
1080 / 128.0 = 8.4375
In the case of non-integer multiples, the moving image coding device and the moving image decoding device round up the decimals and process them as if they are an integer number of CTUs. That is, it processes a 15x9 CTU.

また、画面の一部(クロッピングウィンドウ領域)を出力する動画像復号装置では、符号化した画像のうち、左、右、上、下のオフセットconf_win_left_offset、conf_win_right_offset、conf_win_top_offset、conf_win_bottom_offsetを除いた領域のみを出力する。例えば、
水平方向でSubWidthC * conf_win_left_offsetからpic_width_in_luma_samples ? ( SubWidthC * conf_win_right_offset + 1 )と
垂直方向でSubHeightC * conf_win_top_offsetからpic_height_in_luma_samples ? ( SubHeightC * conf_win_bottom_offset + 1 )
を出力する。
In addition, the moving image decoder that outputs a part of the screen (cropping window area) outputs only the area of the encoded image excluding the left, right, top, and bottom offsets conf_win_left_offset, conf_win_right_offset, conf_win_top_offset, and conf_win_bottom_offset. do. for example,
SubWidthC * conf_win_left_offset to pic_width_in_luma_samples? (SubWidthC * conf_win_right_offset + 1) in the horizontal direction and SubHeightC * conf_win_top_offset to pic_height_in_luma_samples? (SubHeightC * conf_win_bottom_offset) in the vertical direction
Is output.

整数倍に切り上げるための領域やクロップにより出力されない領域も符号化自体はされるが、例えばグレー(Y = Cb = Cr = 128)で符号化されたり、黒領域であったりして、画面の多くの部分を占める特徴とは異なることが多い。このように、画面の幅がCTUの整数倍ではない場合の画面右端や、高さがCTUの整数倍でない場合の画面下端では、分割、予測、残差のためのシンタックスの分布は通常の画像の場合を反映していない。したがって、それらの領域を符号化、復号した後のCABAC状態を、後続のピクチャのCABAC状態として用いることは適当ではない。以下、CTUの非整数倍の画面サイズをもつピクチャを符号化、復号する場合、CABAC状態を時間予測テーブルに格納する所定の位置について説明する。 Areas for rounding up to an integral multiple and areas that are not output by cropping are also encoded, but for example, they are encoded in gray (Y = Cb = Cr = 128) or black areas, so many screens are displayed. Often different from the features that occupy the part of. Thus, at the right edge of the screen when the width of the screen is not an integral multiple of the CTU, or at the bottom edge of the screen when the height is not an integral multiple of the CTU, the syntax distribution for division, prediction, and residual is normal. It does not reflect the case of the image. Therefore, it is not appropriate to use the CABAC state after encoding and decoding those areas as the CABAC state of subsequent pictures. Hereinafter, when encoding and decoding a picture having a screen size that is a non-integer multiple of the CTU, a predetermined position for storing the CABAC state in the time prediction table will be described.

格納する所定の位置を導出する際のオフセットとして、画面の幅がCTUの整数倍ではない場合には2、それ以外は1を設定する。 As an offset when deriving a predetermined position to be stored, 2 is set when the width of the screen is not an integral multiple of CTU, and 1 is set otherwise.

offX = pic_width_in_luma_samples < CtuSize * PicWidthInCtbsY ? 2 : 1
なお、さらに画面のCTU単位の幅が1である場合には、オフセットを2とすることができないので、以下のように導出しても良い。
offX = pic_width_in_luma_samples <CtuSize * PicWidthInCtbsY? 2: 1
Further, when the width of the CTU unit of the screen is 1, the offset cannot be set to 2, so it may be derived as follows.

offX = (PicWidthInCtbs > 1) && (pic_width_in_luma_samples < CtuSize * PicWidthInCtbsY) ? 2 : 1
格納する所定の位置の導出に用いる垂直方向のオフセットoffYについても同様に計算してもよい。
offX = (PicWidthInCtbs> 1) && (pic_width_in_luma_samples <CtuSize * PicWidthInCtbsY)? 2: 1
The vertical offset offY used for deriving the predetermined position to be stored may be calculated in the same manner.

offY = pic_height_in_luma_samples < CtuSize * PicHeightInCtbsY ? 2 : 1
offY = (PicHeightInCtbs > 1) && (pic_height_in_luma_samples < CtuSize * PicHeightInCtbsY) ? 2 : 1
なお、CTUの整数倍であるか否かの他、クロッピングウィンドウを避けるようにオフセットを設定して、格納する場合の所定の位置を導出してもよい。
offY = pic_height_in_luma_samples <CtuSize * PicHeightInCtbsY? 2: 1
offY = (PicHeightInCtbs> 1) && (pic_height_in_luma_samples <CtuSize * PicHeightInCtbsY)? 2: 1
In addition to whether or not it is an integral multiple of the CTU, an offset may be set so as to avoid the cropping window, and a predetermined position for storage may be derived.

この場合、クロップオフセットの大きさをCTUサイズで除算してオフセットを導出してもよい。なおシフト演算をもちいてもよい。 In this case, the size of the crop offset may be divided by the CTU size to derive the offset. A shift operation may be used.

offX = (SubWidthC * conf_win_right_offset) / CtuSize
= (SubWidthC * conf_win_right_offset) >> log2(CtuSize)
さらに、CTUがカバーする画面幅(CtuSize * PicWidthInCtbsY)からクロップオフセットを考慮した実際の画面幅(pic_width_in_luma_samples - (SubWidthC * conf_win_right_offset)を引いて得られる非表示領域の幅と、CTUサイズCtuSizeから、導出してもよい。
offX = (SubWidthC * conf_win_right_offset) / CtuSize
= (SubWidthC * conf_win_right_offset) >> log2 (CtuSize)
Furthermore, it is derived from the width of the non-display area obtained by subtracting the actual screen width (pic_width_in_luma_samples-(SubWidthC * conf_win_right_offset) considering the crop offset) from the screen width (CtuSize * PicWidthInCtbsY) covered by the CTU, and the CTU size CtuSize. You may.

offX = (CtuSize * PicWidthInCtbsY - (pic_width_in_luma_samples - SubWidthC * conf_win_right_offset) + (CtuSize - 1)) / CtuSize
= (CtuSize * PicWidthInCtbsY - (pic_height_in_luma_samples - SubWidthC * conf_win_right_offset) + (CtuSize - 1)) >> log2(CtuSize)
勿論、格納する所定の位置の導出に用いる垂直方向のオフセットoffYについても同様に計算してもよい。
offX = (CtuSize * PicWidthInCtbsY-(pic_width_in_luma_samples --SubWidthC * conf_win_right_offset) + (CtuSize-1)) / CtuSize
= (CtuSize * PicWidthInCtbsY-(pic_height_in_luma_samples --SubWidthC * conf_win_right_offset) + (CtuSize-- 1)) >> log2 (CtuSize)
Of course, the vertical offset offY used for deriving the predetermined position to be stored may be calculated in the same manner.

offY = (CtuSize * PicHeightInCtbsY - (pic_height_in_luma_samples - SubWidthC *
conf_win_bottom_offset) + (CtuSize - 1)) / CtuSize
offY = (CtuSize * PicHeightInCtbsY - (pic_height_in_luma_samples - SubWidthC *
conf_win_bottom_offset) + (CtuSize - 1)) >> log2(CtuSize)
図25(a)は、予測リージョンが1ピクチャの場合で格納する所定の位置を画面右下に設定しCABAC状態を格納する例を示す。所定の位置の判定は、以下の判定式を用いる。
offY = (CtuSize * PicHeightInCtbsY-(pic_height_in_luma_samples --SubWidthC *
conf_win_bottom_offset) + (CtuSize -1)) / CtuSize
offY = (CtuSize * PicHeightInCtbsY-(pic_height_in_luma_samples --SubWidthC *
conf_win_bottom_offset) + (CtuSize -1)) >> log2 (CtuSize)
FIG. 25A shows an example in which the CABAC state is stored by setting a predetermined position to be stored in the lower right of the screen when the predicted region is one picture. The following determination formula is used to determine the predetermined position.

offX = pic_width_in_luma_samples < CtuSize * PicWidthInCtbsY ? 2 : 1
(CtbAddrX == (PicWidthInCtbs-offX) && CtbAddrY == (PicHeightInCtbsY/2)
statePos = 0
なお、以下の判定式を用いても良い。
offX = pic_width_in_luma_samples <CtuSize * PicWidthInCtbsY? 2: 1
(CtbAddrX == (PicWidthInCtbs-offX) && CtbAddrY == (PicHeightInCtbsY / 2)
statePos = 0
The following determination formula may be used.

offX = pic_width_in_luma_samples < CtuSize * PicWidthInCtbsY ? 2 : 1
offY = pic_height_in_luma_samples < CtuSize * PicHeightInCtbsY ? 2 : 1
(CtbAddrX == (PicWidthInCtbs-offX) && CtbAddrY == (PicHeightInCtbsY-offY)
statePos = 0
図25(b)は、予測リージョンが1ピクチャの場合で格納する所定の位置を右端中央(X右端Y中央)に設定しCABAC状態を格納する例を示す。所定の位置の判定は、以下の判定式を用いる。
offX = pic_width_in_luma_samples <CtuSize * PicWidthInCtbsY? 2: 1
offY = pic_height_in_luma_samples <CtuSize * PicHeightInCtbsY? 2: 1
(CtbAddrX == (PicWidthInCtbs-offX) && CtbAddrY == (PicHeightInCtbsY-offY)
statePos = 0
FIG. 25B shows an example in which the CABAC state is stored by setting a predetermined position to be stored in the case where the predicted region is one picture at the center of the right end (X center of Y right end). The following determination formula is used to determine the predetermined position.

offX = pic_width_in_luma_samples < CtuSize * PicWidthInCtbsY ? 2 : 1
(CtbAddrX == (PicWidthInCtbs-offX) && CtbAddrY == (PicHeightInCtbsY/2)
statePos = 0
図25(c)は、予測リージョンがピクチャを縦にNumCabacPredRegion個に分割する場合(高さNの予測リージョンで分割する場合)で、所定の位置を予測リージョン右下に設定しCABAC状態を格納する例を示す。所定の位置の判定は、以下の判定式を用いる。
offX = pic_width_in_luma_samples <CtuSize * PicWidthInCtbsY? 2: 1
(CtbAddrX == (PicWidthInCtbs-offX) && CtbAddrY == (PicHeightInCtbsY / 2)
statePos = 0
FIG. 25C shows a case where the predicted region vertically divides the picture into NumCabacPredRegions (when the predicted region is divided by the height N predicted region), a predetermined position is set at the lower right of the predicted region, and the CABAC state is stored. An example is shown. The following determination formula is used to determine the predetermined position.

(CtbAddrX == PicWidthInCtbs-offX && ((!lastPredRegionInPic&&((CtbAddrY % N) ==
N-1)) || (lastPredRegionInPic && CtbAddrY == PicHeightInCtbsY-offY)));
statePos=CtbAddrY/N
ここでlastPredRegionInPicは、対象CTUが画面の最後の予測リージョンにあるか否かを示す値である。X座標は非整数倍を考慮した右端座標(PicWidthInCtbs-offX)である。Y座標については、最後の予測リージョン以外では、予測リージョン内のCTU座標((CtbAddrY % N))が最後のCTUライン(N-1)であるかを判定する。また、最後の予測リージョンでは非整数倍を考慮した画面下端(PicWidthInCtbs-offY)であるかを判定する。
(CtbAddrX == PicWidthInCtbs-offX && ((! LastPredRegionInPic && ((CtbAddrY% N) ==)
N-1)) || (lastPredRegionInPic && CtbAddrY == PicHeightInCtbsY-offY)));
statePos = CtbAddrY / N
Here, lastPredRegionInPic is a value indicating whether or not the target CTU is in the last predicted region of the screen. The X coordinate is the rightmost coordinate (PicWidthInCtbs-offX) considering non-integer multiples. Regarding the Y coordinate, it is determined whether the CTU coordinate ((CtbAddrY% N)) in the predicted region is the last CTU line (N-1) except for the last predicted region. Also, in the last predicted region, it is determined whether it is the lower end of the screen (PicWidthInCtbs-offY) considering non-integer multiples.

また、以下のように導出してもよい。 Further, it may be derived as follows.

offX = (PicWidthInCtbs > 1) && (pic_width_in_luma_samples) < CtuSize * PicWidthInCtbsY ? 2 : 1
offY = (PicHeightInCtbs > 1) && (pic_height_in_luma_samples) < CtuSize * PicHeightInCtbsY ? 2 : 1
図25(d)は、予測リージョンがピクチャを縦にNumCabacPredRegion個に分割する場合(高さNの予測リージョンで分割する場合)で、所定の位置を予測リージョン右下中央に設定しCABAC状態を格納する例を示す。所定の位置の判定は、以下の判定式を用いる。
offX = (PicWidthInCtbs> 1) && (pic_width_in_luma_samples) <CtuSize * PicWidthInCtbsY? 2: 1
offY = (PicHeightInCtbs> 1) && (pic_height_in_luma_samples) <CtuSize * PicHeightInCtbsY? 2: 1
FIG. 25 (d) shows the case where the predicted region vertically divides the picture into NumCabacPredRegions (when the predicted region is divided by the height N predicted region), the predetermined position is set in the lower right center of the predicted region and the CABAC state is stored. Here is an example of how to do it. The following determination formula is used to determine the predetermined position.

(CtbAddrX == PicWidthInCtbs-offX) && (CtbAddrY % N) == N/2)
statePos=CtbAddrY/N
上記では、予測リージョン内のCTU座標((CtbAddrY % N))が中央のCTUライン(N/2)であるかを判定する。
(CtbAddrX == PicWidthInCtbs-offX) && (CtbAddrY% N) == N / 2)
statePos = CtbAddrY / N
In the above, it is determined whether the CTU coordinates ((CtbAddrY% N)) in the predicted region are the central CTU line (N / 2).

また、予測リージョン内の中央のCTUライン(N/2)の位置が画面下端を超えて、存在しない可能性を考慮して以下の判定式でもよい。 Further, the following determination formula may be used in consideration of the possibility that the position of the central CTU line (N / 2) in the predicted region exceeds the lower end of the screen and does not exist.

(CtbAddrX == PicWidthInCtbs-offX && ((!lastPredRegionInPic&&((CtbAddrY % N) ==
N/2)) || (lastPredRegionInPic && ((CtbAddrY % N) == N2))
N2 = (PicHeightInCtbs-1)%N<N/2 ? (PicHeightInCtbs-1)%N : N/2
図25(e)は、予測リージョンがタイルのように矩形である場合で、所定の位置を予測リージョン右下に設定しCABAC状態を格納する例を示す。所定の位置の判定は、タイル幅がCTUの整数倍である場合には、CTU単位のタイル幅−1を利用し、それ以外では、CTU単位のタイル幅−2を利用する。さらにタイル高さがCTUの整数倍である場合には、CTU単位のタイル高さ−1を利用し、それ以外では、CTU単位のタイル高さ−2を利用して判定する。
(CtbAddrX == PicWidthInCtbs-offX && ((! LastPredRegionInPic && ((CtbAddrY% N) ==)
N / 2)) || (lastPredRegionInPic && ((CtbAddrY% N) == N2))
N2 = (PicHeightInCtbs-1)% N <N / 2? (PicHeightInCtbs-1)% N: N / 2
FIG. 25E shows an example in which the predicted region is rectangular like a tile, a predetermined position is set at the lower right of the predicted region, and the CABAC state is stored. When the tile width is an integral multiple of the CTU, the tile width -1 in the CTU unit is used for the determination of the predetermined position, and in other cases, the tile width-2 in the CTU unit is used. Further, when the tile height is an integral multiple of the CTU, the tile height -1 in the CTU unit is used, and in other cases, the tile height -2 in the CTU unit is used for determination.

図25(f)は、予測リージョンがタイルのように矩形である場合で、所定の位置を予測リージョン右端中央に設定しCABAC状態を格納する例を示す。所定の位置の判定は、タイル幅がCTUの整数倍である場合には、CTU単位のタイル幅−1を利用し、それ以外では、CTU単位のタイル幅−2を利用する。さらにタイル高さがCTUの整数倍である場合には、CTU単位のタイル高さ/2を利用して判定する。 FIG. 25 (f) shows an example in which the predicted region is rectangular like a tile, a predetermined position is set in the center of the right end of the predicted region, and the CABAC state is stored. When the tile width is an integral multiple of the CTU, the tile width -1 in the CTU unit is used for the determination of the predetermined position, and in other cases, the tile width-2 in the CTU unit is used. Further, when the tile height is an integral multiple of the CTU, the tile height / 2 in the CTU unit is used for determination.

上記の構成によれば、画面やタイルの一部をCTUの整数倍に合わせるために拡張されたパディング領域や、出力時にクロップされて実際には表示されない領域など、通常の表示領域と特性が異なる領域のCABAC状態格納を回避する。そして通常の表示領域内のCABAC状態を格納し、後続のピクチャなどで利用する。これによりCABAC状態の予測精度が向上し符号化効率が向上する。 According to the above configuration, the characteristics are different from the normal display area, such as the padding area expanded to fit a part of the screen or tile to an integral multiple of the CTU, and the area that is cropped at the time of output and is not actually displayed. Avoid storing the CABAC state of the area. Then, the CABAC state in the normal display area is stored and used in subsequent pictures. As a result, the prediction accuracy of the CABAC state is improved and the coding efficiency is improved.

(固定的に画面境界を考慮した格納位置)
図26では、ピクチャあるいはタイルがCTUの整数倍であるかの判定を行わず、常に画面幅-2、画面高さ-2の位置を用いる例である。この例では、CTU境界の位置を用いないことによって、ピクチャやタイルのサイズがCTUの倍数ではない場合にも好適なCABAC状態を予測する効果がある。
(Storage position that fixedly considers the screen boundary)
FIG. 26 is an example in which it is not determined whether the picture or tile is an integral multiple of the CTU, and the positions of the screen width −2 and the screen height − 2 are always used. In this example, not using the position of the CTU boundary has the effect of predicting a suitable CABAC state even when the size of the picture or tile is not a multiple of the CTU.

図26(a)は、予測リージョンが1ピクチャの場合で、格納する所定の位置を画面右下に設定する例を示す。所定の位置の判定は、以下の判定式を用いる。 FIG. 26A shows an example in which the predicted region is one picture and a predetermined storage position is set at the lower right of the screen. The following determination formula is used to determine the predetermined position.

(CtbAddrX == (PicWidthInCtbs-2) && CtbAddrY == (PicHeightInCtbsY-2)
statePos = 0
図26(b)は、予測リージョンが1ピクチャの場合で格納する所定の位置を右端中央(X右端Y中央)に設定しCABAC状態を格納する例を示す。所定の位置の判定は、以下の判定式を用いる。
(CtbAddrX == (PicWidthInCtbs-2) && CtbAddrY == (PicHeightInCtbsY-2)
statePos = 0
FIG. 26B shows an example in which the CABAC state is stored by setting a predetermined position to be stored in the case where the predicted region is one picture at the center of the right end (X center of Y right end). The following determination formula is used to determine the predetermined position.

(CtbAddrX == (PicWidthInCtbs-2) && CtbAddrY == (PicHeightInCtbsY/2)
statePos = 0
図26(c)は、予測リージョンがピクチャを縦にNumCabacPredRegion個に分割する場合(高さNの予測リージョンで分割する場合)で、所定の位置を予測リージョン右下に設定しCABAC状態を格納する例を示す。所定の位置の判定は、以下の判定式を用いる。
(CtbAddrX == (PicWidthInCtbs-2) && CtbAddrY == (PicHeightInCtbsY / 2)
statePos = 0
FIG. 26 (c) shows a case where the predicted region vertically divides the picture into NumCabacPredRegions (when the predicted region is divided by the height N predicted region), a predetermined position is set at the lower right of the predicted region, and the CABAC state is stored. An example is shown. The following determination formula is used to determine the predetermined position.

(CtbAddrX == PicWidthInCtbs-2 && ((!lastPredRegionInPic&&((CtbAddrY % N) == N-1)) || (lastPredRegionInPic && CtbAddrY == PicHeightInCtbsY-2)));
statePos=CtbAddrY/N
図26(d)は、予測リージョンがピクチャを縦にNumCabacPredRegion個に分割する場合(高さNの予測リージョンで分割する場合)で、所定の位置を予測リージョン右下中央に設定しCABAC状態を格納する例を示す。所定の位置の判定は、以下の判定式を用いる。
(CtbAddrX == PicWidthInCtbs-2 && ((! LastPredRegionInPic && ((CtbAddrY% N) == N-1)) || (lastPredRegionInPic && CtbAddrY == PicHeightInCtbsY-2)));
statePos = CtbAddrY / N
FIG. 26 (d) shows the case where the predicted region vertically divides the picture into NumCabacPredRegions (when the predicted region is divided by the predicted region of height N), the predetermined position is set in the lower right center of the predicted region and the CABAC state is stored. Here is an example of how to do it. The following determination formula is used to determine the predetermined position.

(CtbAddrX == PicWidthInCtbs-2) && (CtbAddrY % N) == N/2)
statePos=CtbAddrY/N
あるいは、以下の判定式でもよい。
(CtbAddrX == PicWidthInCtbs-2) && (CtbAddrY% N) == N / 2)
statePos = CtbAddrY / N
Alternatively, the following determination formula may be used.

(CtbAddrX == PicWidthInCtbs-2 && ((!lastPredRegionInPic&&((CtbAddrY % N) == N/2)) || (lastPredRegionInPic && ((CtbAddrY % N) == N2));
N2 = (PicHeightInCtbs - 1) % N < N/2 ? (PicHeightInCtbs - 1) % N : N/2;
図26(e)は、予測リージョンがタイルのように矩形である場合で、所定の位置を予測リージョン右下に設定しCABAC状態を格納する例を示す。所定の位置の判定は、CTU単位のタイル幅−2とCTU単位のタイル高さ−2を利用して判定する。
(CtbAddrX == PicWidthInCtbs-2 && ((! LastPredRegionInPic && ((CtbAddrY% N) == N / 2)) || (lastPredRegionInPic && ((CtbAddrY% N) == N2)));
N2 = (PicHeightInCtbs ―― 1)% N <N / 2? (PicHeightInCtbs ―― 1)% N: N / 2;
FIG. 26E shows an example in which the predicted region is rectangular like a tile, a predetermined position is set at the lower right of the predicted region, and the CABAC state is stored. The determination of the predetermined position is made by using the tile width-2 in the CTU unit and the tile height-2 in the CTU unit.

図25(f)は、予測リージョンがタイルのように矩形である場合で、所定の位置を予測リージョン右端中央に設定しCABAC状態を格納する例を示す。所定の位置の判定は、CTU単位のタイル幅−2とCTU単位のタイル高さ/2を利用して判定する。 FIG. 25 (f) shows an example in which the predicted region is rectangular like a tile, a predetermined position is set in the center of the right end of the predicted region, and the CABAC state is stored. The determination of the predetermined position is made by using the tile width-2 in the CTU unit and the tile height / 2 in the CTU unit.

上記の構成によれば、画面やタイルの一部をCTUの整数倍に合わせるために拡張されたパディング領域や、出力時にクロップされて実際には表示されない領域などをあらかじめ考慮した位置のCABAC状態を格納し、後続のピクチャなどで利用する。これによりCABAC状態の予測精度が向上し符号化効率が向上する。 According to the above configuration, the CABAC state at the position considering in advance the padding area expanded to fit a part of the screen or tile to an integral multiple of the CTU, the area cropped at the time of output and not actually displayed, etc. Store it and use it in subsequent pictures. As a result, the prediction accuracy of the CABAC state is improved and the coding efficiency is improved.

(WPP利用に基づいた格納位置の設定)
図27は、WPP(CTUライン単位をセグメントとする)の利用に応じたCABAC状態の格納位置を説明する別の図である。CTUライン単位をセグメントとする場合には、CTUラインの左端でCABAC状態を初期化するため、セグメント中心部分ではまだ十分なCABAC状態ではなく、セグメント右端で好適なCABAC状態となることが多い。図27(a)は、画面全体をセグメントとする場合で、(b)はWPPを用いる場合など、画面をCTUラインに分割した単位をセグメントとする場合である。さらに(e)は、画面をタイルに分割してセグメントとする場合で、(f)は画面をタイルに分割してさらにタイル内のCTUラインをセグメントとする場合である。
(Setting of storage position based on WPP usage)
FIG. 27 is another diagram illustrating the storage position of the CABAC state according to the use of WPP (CTU line unit is a segment). When the CTU line unit is a segment, the CABAC state is initialized at the left end of the CTU line, so that the CABAC state is not sufficient at the center of the segment and is often a suitable CABAC state at the right end of the segment. 27 (a) shows a case where the entire screen is a segment, and FIG. 27 (b) shows a case where a unit obtained by dividing the screen into CTU lines is used as a segment, such as when WPP is used. Further, (e) is a case where the screen is divided into tiles to form segments, and (f) is a case where the screen is further divided into tiles and the CTU line in the tiles is further divided into segments.

図27(a)(e)に示すように、本実施形態では、WPPを用いない場合(CTUラインをセグメントとしない場合)には、画面もしくはタイルの中心を所定の格納位置とする。例えば
(CtbAddrX == PicWidthInCtbs/2) && (CtbAddrY % N) == N/2)
図27(b)(f)に示すように、WPPを用いる場合(CTUラインをセグメントとする場合)には、画面もしくはタイルの右端を所定の格納位置とする。例えば
(CtbAddrX == PicWidthInCtbs-1) && (CtbAddrY % N) == N/2)
図28は、上記処理を示すフローチャートである。
As shown in FIGS. 27 (a) and 27 (e), in the present embodiment, when WPP is not used (when the CTU line is not a segment), the center of the screen or tile is set as a predetermined storage position. for example
(CtbAddrX == PicWidthInCtbs / 2) && (CtbAddrY% N) == N / 2)
As shown in FIGS. 27 (b) and 27 (f), when WPP is used (when the CTU line is a segment), the right end of the screen or tile is set as a predetermined storage position. for example
(CtbAddrX == PicWidthInCtbs-1) && (CtbAddrY% N) == N / 2)
FIG. 28 is a flowchart showing the above processing.

S301:CTUラインをセグメントとするか否かを判定し、YならS302に移行し、セグメントの右端でCABC状態を格納する。NならS303に移行し、セグメントの中心でCABC状態を格納する。 S301: It is determined whether or not the CTU line is a segment, and if it is Y, the process shifts to S302, and the CABC state is stored at the right end of the segment. If it is N, it shifts to S303 and stores the CABC state at the center of the segment.

さらに画面の大きさを用いて判定しても良い。すなわち、画面サイズやタイルのサイズ(例えば幅)が小さい場合には右端、それ以外は中央を所定の格納位置としてもよい。 Further, the determination may be made using the size of the screen. That is, if the screen size or tile size (for example, width) is small, the right end may be set, and otherwise, the center may be set as a predetermined storage position.

上記の構成によれば、上記エントロピー復号部301、エントロピー符号化部104は、CTUラインをセグメントとする場合には、セグメントの右端を格納位置とし、それ以外の場合にはセグメントの中心を格納位置とすることを特徴とする。CTUラインをセグメントとする場合には、できるだけ右側のCTUのCABAC状態を予測に用いることでCABAC状態の予測精度が向上し符号化効率が向上する。 According to the above configuration, the entropy decoding unit 301 and the entropy coding unit 104 use the right end of the segment as the storage position when the CTU line is a segment, and the center of the segment as the storage position in other cases. It is characterized by the fact that. When the CTU line is used as a segment, the CABAC state of the CTU on the right side is used for prediction as much as possible to improve the prediction accuracy of the CABAC state and the coding efficiency.

(動画像符号化装置の構成)
次に、本実施形態に係る動画像符号化装置11の構成について説明する。動画像符号化装置11は、予測画像生成部101、減算部102、変換・量子化部103、逆量子化・逆変換部105、加算部106、ループフィルタ107、予測パラメータメモリ(予測パラメータ記憶部、フレームメモリ)108、参照ピクチャメモリ(参照画像記憶部、フレームメモリ)109、符号化パラメータ決定部110、パラメータ符号化部111、エントロピー符号化部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. The moving image coding device 11 includes a prediction image generation unit 101, a subtraction unit 102, a conversion / quantization unit 103, an inverse quantization / inverse conversion unit 105, an addition unit 106, a loop filter 107, and a prediction parameter memory (prediction parameter storage unit). , Frame memory) 108, reference picture memory (reference image storage unit, frame memory) 109, coding parameter determination unit 110, parameter coding unit 111, and entropy coding unit 104.

予測画像生成部101は画像Tの各ピクチャを分割した領域である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 T 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から入力されたブロックの予測画像の画素値を、画像Tの画素値から減算して予測誤差を生成する。減算部102は予測誤差を変換・量子化部103に出力する。 The subtraction unit 102 generates a prediction error by subtracting the pixel value of the predicted image of the block input from the prediction image generation unit 101 from the pixel value of the image T. 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(図7)と同じであり、説明を省略する。算出した予測誤差は加算部106に出力される。 The inverse quantization / inverse transformation unit 105 is the same as the inverse quantization / inverse transformation unit 311 (FIG. 7) 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から量子化変換係数が入力され、パラメータ符号化部111から符号化パラメータが入力される。符号化パラメータには、例えば、参照ピクチャインデックス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 parameter coding unit 111. Coding parameters include, for example, reference picture index refIdxLX, prediction vector index mvp_LX_idx, difference vector mvdLX, prediction mode predMode, and merge index 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.

(エントロピー符号化部104の構成)
図23にエントロピー符号化部104の構成を示す。エントロピー符号化部301は、CABAC初期化部3011、CABAC符号化部10412、初期化テーブル3013、時間予測格納部3014(時間予測テーブル3014)、空間予測格納部3015(空間予測テーブル3015)を備える。時間予測格納部3014は、内部の時間予測テーブル3014にCABAC状態を格納する。格納されたCABAC状態は、後続のピクチャのセグメントなど他のピクチャのセグメントの符号化時に参照されCABAC状態の初期化に利用される。空間予測格納部3015は、内部の空間予測テーブル3015にCABAC状態を格納する。格納されたCABAC状態は、対象ピクチャの後続のセグメントなど、対象セグメント以外のセグメントの符号化時に参照されCABAC状態の初期化に利用される。CABAC符号化部10412は、内部にCABAC状態を備え、CABAC状態に応じて、シンタックスを符号化し、符号化データ(ビットストリーム)を主力する。
(Structure of Entropy Coding Unit 104)
FIG. 23 shows the configuration of the entropy coding unit 104. The entropy coding unit 301 includes a CABAC initialization unit 3011, a CABAC coding unit 10412, an initialization table 3013, a time prediction storage unit 3014 (time prediction table 3014), and a spatial prediction storage unit 3015 (spatial prediction table 3015). The time prediction storage unit 3014 stores the CABAC state in the internal time prediction table 3014. The stored CABAC state is referenced when encoding a segment of another picture such as a segment of a subsequent picture and is used for initializing the CABAC state. The space prediction storage unit 3015 stores the CABAC state in the internal space prediction table 3015. The stored CABAC state is referred to when encoding segments other than the target segment, such as the segment following the target picture, and is used to initialize the CABAC state. The CABAC coding unit 10412 has a CABAC state inside, encodes a syntax according to the CABAC state, and mainly uses coded data (bitstream).

エントロピー符号化部104は、エントロピー復号部301と同様、予測リージョン単位で、時間予測テーブルに、CABAC状態を格納する。また、予測リージョン単位で格納された時間予測テーブルを参照して、CABAC状態を読み出し、CABAC初期化を行う。詳細の動作は、エントロピー復号部301で説明済みであるので省略する。 Similar to the entropy decoding unit 301, the entropy coding unit 104 stores the CABAC state in the time prediction table for each prediction region. In addition, the CABAC status is read and CABAC initialization is performed by referring to the time prediction table stored in each prediction region. Since the detailed operation has already been described in the entropy decoding unit 301, the detailed operation will be omitted.

パラメータ符号化部111は、図示しないヘッダ符号化部1110、CT情報符号化部1111、CU符号化部1112(予測モード符号化部)、およびインター予測パラメータ符号化部112とイントラ予測パラメータ符号化部113を備えている。CU符号化部1112はさらにTU符号化部1114を備えている。 The parameter coding unit 111 includes a header coding unit 1110 (not shown), a CT information coding unit 1111, a CU coding unit 1112 (prediction mode coding unit), an inter-prediction parameter coding unit 112, and an intra-prediction parameter coding unit. It has 113. The CU coding unit 1112 further includes a TU coding unit 1114.

上記構成では、可変長符号化された符号化データを符号化する画像符号化装置であって、CABAC時間予測フラグを符号化するエントロピー符号化部を備え、ピクチャを構成するセグメント先頭において、CABAC状態を初期化するCABAC初期化部3011を備え、上記CABAC初期化部3011は、CABAC時間予測フラグが1の場合に、CABAC状態を保持する時間予測テーブル3014を用いてCABAC状態の初期化を行い、CABAC時間予測フラグが0の場合に、初期化テーブルを用いてCABAC状態の初期化を行う。 The above configuration is an image coding device that encodes variable-length coded coded data, includes an entropy coding unit that encodes a CABAC time prediction flag, and has a CABAC state at the beginning of a segment that constitutes a picture. The CABAC initialization unit 3011 is provided, and when the CABAC time prediction flag is 1, the CABAC initialization unit 3011 initializes the CABAC state using the time prediction table 3014 that holds the CABAC state. When the CABAC time prediction flag is 0, the CABAC state is initialized using the initialization table.

以下、各モジュールの概略動作を説明する。パラメータ符号化部111はヘッダ情報、分割情報、予測情報、量子化変換係数等のパラメータの符号化処理を行う。 Hereinafter, the schematic operation of each module will be described. The parameter coding unit 111 performs parameter coding processing 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 from the coded data.

CU符号化部1112はCU情報、予測情報、TU分割フラグsplit_transform_flag、CU残差フラグcbf_cb、cbf_cr、cbf_luma等を符号化する。 The CU coding unit 1112 encodes CU information, prediction information, TU split flag split_transform_flag, CU residual 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)、イントラ予測パラメータ(prev_intra_luma_pred_flag、mpm_idx、rem_selected_mode_flag、rem_selected_mode、rem_non_selected_mode、)、量子化変換係数等のシンタックス要素をエントロピー符号化部104に供給する。 The CT information coding unit 1111 and the CU coding unit 1112 have inter-prediction parameters (prediction mode predMode, 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), Syntax elements such as intra prediction parameters (prev_intra_luma_pred_flag, mpm_idx, rem_selected_mode_flag, rem_selected_mode, rem_non_selected_mode,) and quantization conversion coefficients are supplied to the entropy coding unit 104.

加算部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.

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

符号化パラメータ決定部110は、複数のセットの各々について情報量の大きさと符号化誤差を示すRDコスト値を算出する。RDコスト値は、例えば、符号量と二乗誤差に係数λを乗じた値との和である。符号量は、量子化誤差と符号化パラメータをエントロピー符号化して得られる符号化ストリームTeの情報量である。二乗誤差は、減算部102において算出された予測誤差の二乗和である。係数λは、予め設定されたゼロよりも大きい実数である。符号化パラメータ決定部110は、算出したコスト値が最小となる符号化パラメータのセットを選択する。これにより、エントロピー符号化部104は、選択した符号化パラメータのセットを符号化ストリームTeとして出力する。符号化パラメータ決定部110は決定した符号化パラメータを予測パラメータメモリ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 coding parameter determination unit 110 stores the determined coding parameter in the prediction parameter memory 108.

なお、上述した実施形態における動画像符号化装置11、動画像復号装置31の一部、例えば、エントロピー復号部301、パラメータ復号部302、ループフィルタ305、予測画像生成部308、逆量子化・逆変換部311、加算部312、予測画像生成部101、減算部102、変換・量子化部103、エントロピー符号化部104、逆量子化・逆変換部105、ループフィルタ107、符号化パラメータ決定部110、パラメータ符号化部111をコンピュータで実現するようにしても良い。その場合、この制御機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現しても良い。なお、ここでいう「コンピュータシステム」とは、動画像符号化装置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 image generation unit 101, Subtraction unit 102, Conversion / quantization unit 103, Entropy coding unit 104, Inverse quantization / inverse conversion unit 105, Loop filter 107, Coding parameter determination unit 110 , The parameter coding unit 111 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 LSI appears due to the progress of semiconductor technology, an integrated circuit based on the technology may be used.

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

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

まず、上述した動画像符号化装置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 coding a moving image, and a modulation signal by modulating a carrier 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 has a display PROD_B4 for displaying the moving image, a recording medium PROD_B5 for recording the moving image, and an output terminal for outputting the moving image to the outside as a supply destination of the moving image output by the decoding unit PROD_B3. It may also have PROD_B6. In the figure, the configuration in which the receiving device PROD_B includes all of them is illustrated, but some of them may be omitted.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

なお、送信部PROD_D5は、符号化されていない動画像を送信するものであってもよいし、記録用の符号化方式とは異なる伝送用の符号化方式で符号化された符号化データを送信するものであってもよい。後者の場合、復号部PROD_D2と送信部PROD_D5との間に、動画像を伝送用の符号化方式で符号化する符号化部(不図示)を介在させるとよい。 The transmission unit PROD_D5 may transmit an unencoded moving image, or transmits coded data encoded by a transmission coding method different from the recording coding method. It may be something to do. In the latter case, it is preferable to interpose a coding unit (not shown) that encodes the moving image by a coding method for transmission between the decoding unit PROD_D2 and the 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, and a RAM (Random) that expands the above program.
Access Memory), a storage device (recording medium) such as a memory for storing the above programs and various data. Then, an object of the embodiment of the present invention is a recording in which the program code (execution format program, intermediate code program, source program) of the control program of each of the above-mentioned devices, which is software for realizing the above-mentioned 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 (Blu-ray)
Discs including optical disks such as Disc: IC cards (including memory cards) / cards such as optical cards, mask ROM / EPROM (Erasable Programmable Read-Only Memory) / EEPROM (Electrically Erasable and Programmable Read-) Only Memory: Semiconductor memory such as flash ROM, or logic circuits such as PLD (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 インター予測パラメータ復号部
304 イントラ予測パラメータ復号部
308 予測画像生成部
309 インター予測画像生成部
310 イントラ予測画像生成部
311 逆量子化・逆変換部
312 加算部
11 画像符号化装置
101 予測画像生成部
102 減算部
103 変換・量子化部
104 エントロピー符号化部
105 逆量子化・逆変換部
107 ループフィルタ
110 符号化パラメータ決定部
111 パラメータ符号化部
112 インター予測パラメータ符号化部
113 イントラ予測パラメータ符号化部
1110 ヘッダ符号化部
1111 CT情報符号化部
1112 CU符号化部(予測モード符号化部)
1114 TU符号化部
301 エントロピー復号部
3011 CABAC初期化部
3012 CABAC復号部
3013 初期化テーブル
3014 時間予測格納部(時間予測テーブル)
3015 空間予測格納部(空間予測テーブル)
10412 CABAC符号化部
31 Image decoder
301 Entropy Decoding Unit
302 Parameter decoder
3020 Header decoder
303 Inter-prediction parameter decoder
304 Intra Prediction Parameter Decoder
308 Predictive image generator
309 Inter-prediction image generator
310 Intra prediction image generator
311 Inverse quantization / inverse transformation
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 transformation
107 Loop filter
110 Coding parameter determination unit
111 Parameter coder
112 Inter-prediction parameter coding unit
113 Intra prediction parameter coding unit
1110 Header coding part
1111 CT information coding unit
1112 CU coding unit (prediction mode coding unit)
1114 TU encoding unit 301 entropy decoding unit 3011 CABAC initialization unit 3012 CABAC decoding unit 3013 initialization table 3014 time prediction storage unit (time prediction table)
3015 Spatial prediction storage unit (spatial prediction table)
10412 CABAC coding unit

Claims (11)

可変長符号化された符号化データを復号する画像復号装置であって、CABAC時間予測フラグを復号するエントロピー復号部を備え、ピクチャを構成するセグメント先頭において、CABAC状態を初期化するCABAC初期化部を備え、上記CABAC初期化部は、CABAC時間予測フラグが1の場合に、CABAC状態を保持する時間予測テーブルを用いてCABAC状態の初期化を行い、CABAC時間予測フラグが0の場合に、初期化テーブルを用いてCABAC状態の初期化を行うことを特徴とする画像復号装置。 An image decoding device that decodes variable-length coded coded data, has an entropy decoding unit that decodes the CABAC time prediction flag, and has a CABAC initialization unit that initializes the CABAC state at the beginning of the segment that constitutes the picture. When the CABAC time prediction flag is 1, the CABAC initialization unit initializes the CABAC state using the time prediction table that holds the CABAC state, and when the CABAC time prediction flag is 0, the initial CABAC state is initialized. An image decoding device characterized in that the CABAC state is initialized using a conversion table. 上記エントロピー復号部は、さらに、CABAC時間空間予測モードを復号し、上記CABAC初期化部は、上記CABAC時間空間予測モードが1(画面分割モード)である場合には、上記セグメント先頭の画面内位置を用いて、上記時間予測テーブルからCABAC状態を読みだして、CABAC状態の初期化を行うことを特徴とする請求項1に記載の画像復号装置。 The entropy decoding unit further decodes the CABAC space-time prediction mode, and the CABAC initialization unit is the position in the screen at the head of the segment when the CABAC space-time prediction mode is 1 (screen division mode). The image decoding apparatus according to claim 1, wherein the CABAC state is read from the time prediction table and the CABAC state is initialized by using the above-mentioned time prediction table. 上記画像復号装置は、さらに、CABAC時間空間予測モードを復号し、上記CABAC時間空間予測モードが示す画面分割数が2以上の場合には、上記セグメント先頭の画面内位置を用いて、上記時間予測テーブルからCABAC状態を読みだして、CABAC状態の初期化を行うことを特徴とする請求項1に記載の画像復号装置。 The image decoding device further decodes the CABAC space-time prediction mode, and when the number of screen divisions indicated by the CABAC space-time prediction mode is 2 or more, the time prediction is performed using the position in the screen at the head of the segment. The image decoding apparatus according to claim 1, wherein the CABAC state is read from a table and the CABAC state is initialized. 上記画像復号装置は、さらに、セグメント単位で、セグメント予測フラグを復号し、上記セグメント時間予測フラグが1の場合には、上記時間予測テーブルからCABAC状態を読みだして、CABAC状態の初期化を行い、(上記セグメント時間予測フラグが0の場合には、初期化テーブルを用いてCABAC状態の初期化を行う、か、空間予測テーブルから予測を行う)ことを特徴とする請求項1に記載の画像復号装置。 The image decoding device further decodes the segment prediction flag for each segment, and when the segment time prediction flag is 1, reads the CABAC state from the time prediction table and initializes the CABAC state. , (When the segment time prediction flag is 0, the CABAC state is initialized using the initialization table, or prediction is performed from the spatial prediction table). Decoding device. 上記画像復号装置は、さらに、予測リージョン単位で、予測リージョン時間予測フラグを復号し、上記予測リージョン時間予測フラグが1の場合には、上記時間予測テーブルからCABAC状態を読みだして、CABAC状態の初期化を行い、(上記セグメント時間予測フラグが0の場合には、初期化テーブルを用いてCABAC状態の初期化を行う、か、空間予測テーブルから予測を行う)ことを特徴とする請求項1に記載の画像復号装置。 The image decoding device further decodes the predicted region time prediction flag for each predicted region, and when the predicted region time prediction flag is 1, reads the CABAC state from the time prediction table to obtain the CABAC state. Claim 1 is characterized by performing initialization (when the segment time prediction flag is 0, the CABAC state is initialized using the initialization table, or prediction is performed from the spatial prediction table). The image decoder according to. 可変長符号化された符号化データを復号する画像復号装置であって、ピクチャを構成するセグメント先頭において、時間予測テーブルからCABAC状態を読み出すエントロピー復号部を備え、上記エントロピー復号部は、対象ピクチャのテンポラルレイヤ毎に上記時間予測テーブルのエントリを選択することを特徴とする請求項1に記載の画像復号装置。 An image decoding device that decodes variable-length coded coded data, including an entropy decoding unit that reads the CABAC state from the time prediction table at the beginning of the segment that constitutes the picture, and the entropy decoding unit is the target picture. The image decoding device according to claim 1, wherein an entry in the time prediction table is selected for each temporal layer. 可変長符号化された符号化データを復号する画像復号装置であって、ピクチャを構成するセグメントの所定の位置において、CABAC状態を時間予測テーブルに格納するエントロピー復号部を備え、上記エントロピー復号部は、対象ピクチャのテンポラルレイヤ毎に上記時間予測テーブルのエントリを選択することを特徴とする請求項1に記載の画像復号装置。 An image decoding device that decodes variable-length coded coded data, including an entropy decoding unit that stores the CABAC state in a time prediction table at a predetermined position in a segment constituting the picture. The image decoding device according to claim 1, wherein an entry in the time prediction table is selected for each temporal layer of the target picture. 可変長符号化された符号化データを復号する画像復号装置であって、ピクチャを構成するセグメントの所定の位置において、CABAC状態を時間予測テーブルに格納するエントロピー復号部を備え、上記エントロピー復号部は、ピクチャもしくはタイルの右端中央の位置においてCABAC状態を格納することを特徴とする請求項1に記載の画像復号装置。 An image decoding device that decodes variable-length coded coded data, including an entropy decoding unit that stores the CABAC state in a time prediction table at a predetermined position in a segment constituting the picture. The image decoding device according to claim 1, wherein the CABAC state is stored at a position at the center of the right end of the picture or tile. 可変長符号化された符号化データを復号する画像復号装置であって、ピクチャを構成するセグメントの所定の位置において、CABAC状態を時間予測テーブルに格納するエントロピー復号部を備え、上記エントロピー復号部は、対象ピクチャのピクチャ幅がCTUサイ
ズの整数倍であるか、もしくは、クロッピングウィンドウの大きさを用いて、CABAC状態を格納する位置を導出することを特徴とする請求項1に記載の画像復号装置。
An image decoding device that decodes variable-length coded coded data, including an entropy decoding unit that stores the CABAC state in a time prediction table at a predetermined position in a segment constituting the picture. The image decoding apparatus according to claim 1, wherein the picture width of the target picture is an integral multiple of the CTU size, or the position for storing the CABAC state is derived by using the size of the cropping window. ..
可変長符号化された符号化データを復号する画像復号装置であって、ピクチャを構成するセグメントの所定の位置において、CABAC状態を時間予測テーブルに格納するエントロピー復号部を備え、上記エントロピー復号部は、CTUライン単位をセグメントとする場合には、セグメントの右端を格納位置とし、それ以外の場合にはセグメントの中心を格納位置とすることを特徴とする請求項1に記載の画像復号装置。 An image decoding device that decodes variable-length coded coded data, including an entropy decoding unit that stores the CABAC state in a time prediction table at a predetermined position in a segment constituting the picture. The image decoding apparatus according to claim 1, wherein when the CTU line unit is a segment, the right end of the segment is the storage position, and in other cases, the center of the segment is the storage position. 可変長符号化により符号化データを符号化する画像符号化装置であって、CABAC時間予測フラグを符号化するエントロピー符号化部を備え、ピクチャを構成するセグメント先頭において、CABAC状態を初期化するCABAC初期化部を備え、上記CABAC初期化部は、CABAC時間予測フラグが1の場合に、CABAC状態を保持する時間予測テーブルを用いてCABAC状態の初期化を行い、CABAC時間予測フラグが0の場合に、初期化テーブルを用いてCABAC状態の初期化を行うことを特徴とする画像符号化装置。 It is an image coding device that encodes coded data by variable length coding, has an entropy coding unit that encodes the CABAC time prediction flag, and initializes the CABAC state at the beginning of the segment that constitutes the picture. The CABAC initialization unit is provided with an initialization unit, and when the CABAC time prediction flag is 1, the CABAC state is initialized using a time prediction table that holds the CABAC state, and when the CABAC time prediction flag is 0. In addition, an image coding device characterized in that the CABAC state is initialized using an initialization table.
JP2018188125A 2018-09-27 2018-10-03 Moving image coding device and moving image decoding device Pending JP2022002356A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2018188125A JP2022002356A (en) 2018-10-03 2018-10-03 Moving image coding device and moving image decoding device
PCT/JP2019/038193 WO2020067440A1 (en) 2018-09-27 2019-09-27 Moving image coding device and moving image decoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018188125A JP2022002356A (en) 2018-10-03 2018-10-03 Moving image coding device and moving image decoding device

Publications (1)

Publication Number Publication Date
JP2022002356A true JP2022002356A (en) 2022-01-06

Family

ID=79244396

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018188125A Pending JP2022002356A (en) 2018-09-27 2018-10-03 Moving image coding device and moving image decoding device

Country Status (1)

Country Link
JP (1) JP2022002356A (en)

Similar Documents

Publication Publication Date Title
WO2018037853A1 (en) Image decoding apparatus and image coding apparatus
WO2019221072A1 (en) Image encoding device, encoded stream extraction device, and image decoding device
JP7402016B2 (en) Image decoding device and image encoding device
JP2021002780A (en) Video decoding device and video coding device
JP2020150516A (en) Image decoding device and image encoding device
WO2020116376A1 (en) Moving image decoding device and moving image encoding device
JPWO2020045248A1 (en) Video decoding device and video coding device
WO2020241858A1 (en) Image decoding device
JPWO2020241858A5 (en)
WO2020067440A1 (en) Moving image coding device and moving image decoding device
WO2020184366A1 (en) Image decoding device
WO2018037723A1 (en) Image decoding device and image coding device
WO2020004349A1 (en) Video encoding device and video decoding device
JP2020141285A (en) Image decoder
WO2021246284A1 (en) Moving image decoding device and moving image encoding device
WO2020004277A1 (en) Image decoding device and image coding device
JP2021034887A (en) Image decoding device and image encoding device
JP2021034966A (en) Dynamic image encoding device and dynamic image decoding device
JP2021061501A (en) Moving image conversion device and method
JP7425568B2 (en) Video decoding device, video encoding device, video decoding method, and video encoding method
JP7444570B2 (en) Video decoding device, video encoding device, video decoding method, and video encoding method
JP2022002356A (en) Moving image coding device and moving image decoding device
JP2022002354A (en) Moving image coding device and moving image decoding device
JP2020155869A (en) Image scaling conversion, reverse conversion device, and method
WO2020045275A1 (en) Image decoding device and image encoding device