JP2022500965A - Video signal coding / decoding method and equipment for that purpose - Google Patents

Video signal coding / decoding method and equipment for that purpose Download PDF

Info

Publication number
JP2022500965A
JP2022500965A JP2021516598A JP2021516598A JP2022500965A JP 2022500965 A JP2022500965 A JP 2022500965A JP 2021516598 A JP2021516598 A JP 2021516598A JP 2021516598 A JP2021516598 A JP 2021516598A JP 2022500965 A JP2022500965 A JP 2022500965A
Authority
JP
Japan
Prior art keywords
conversion
transformation
current block
index
video signal
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.)
Granted
Application number
JP2021516598A
Other languages
Japanese (ja)
Other versions
JP7245323B2 (en
Inventor
ムンモ ク
スンファン キム
サレヒファー メウディ
チェヒョン イム
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LG Electronics Inc
Original Assignee
LG Electronics Inc
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 LG Electronics Inc filed Critical LG Electronics Inc
Publication of JP2022500965A publication Critical patent/JP2022500965A/en
Priority to JP2023037765A priority Critical patent/JP2023081995A/en
Application granted granted Critical
Publication of JP7245323B2 publication Critical patent/JP7245323B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • H04N19/122Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/18Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a set of transform coefficients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/625Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Abstract

本発明の実施例は、ビデオ信号処理方法及び装置を提供する。特に、本発明の実施例に係る縮小された変換(Reduced transform)に基づいて、ビデオ信号をデコードする方法は、現在のブロックの水平及び垂直方向に適用される変換カーネル(transform kernels)を指示する変換インデックス(transform index)を前記ビデオ信号から獲得する段階と、前記変換インデックスによって指示される変換カーネル及び前記現在のブロックの大きさに基づいて、前記現在のブロックに変換が適用される領域を決定する段階と、前記現在のブロック内において、前記変換が適用される領域以外の残りの領域の係数を0と見なす段階と、前記変換が適用される領域に対し、前記変換インデックスによって指示される変換カーネルを用いて、逆変換(inverse transform)を実行する段階を含むことができる。【選択図】図1The embodiments of the present invention provide video signal processing methods and devices. In particular, a method of decoding a video signal based on a reduced transform according to an embodiment of the present invention points to transform kernels that are applied horizontally and vertically to the current block. The area to which the transformation is applied to the current block is determined based on the stage at which the transform index is obtained from the video signal and the size of the transform kernel and the current block indicated by the transform index. The stage in which the transformation is applied, the stage in which the coefficient of the remaining region other than the region to which the transformation is applied is regarded as 0, and the transformation instructed by the transformation index for the region to which the transformation is applied. The kernel can be used to include the step of performing an inverse transform. [Selection diagram] Fig. 1

Description

本明細書の実施例は、ビデオ信号を処理するための方法及び装置に関し、さらに、具体的に縮小された変換に基づいて変換を実行することにより、ビデオ信号を符号化/復号化するための方法及び装置に関する。 The embodiments of the present specification relate to a method and an apparatus for processing a video signal, and further, for encoding / decoding a video signal by performing a conversion based on a specifically reduced conversion. Regarding methods and equipment.

圧縮符号化(エンコーディング)とは、デジタル化した情報を通信回線を介して転送したり、貯蔵媒体に適合した形で貯蔵するための一連の信号処理技術を意味する。映像、映像、音声などのメディアが圧縮符号化の対象となることができ、特に、映像を対象に圧縮符号化を実行する技術をビデオ映像圧縮と称する。 Compression coding (encoding) means a series of signal processing techniques for transferring digitized information via a communication line and storing it in a form suitable for a storage medium. Media such as video, video, and audio can be the target of compression coding, and in particular, a technique for performing compression coding on video is called video video compression.

次世代ビデオコンテンツは、高解像度(high spatial resolution)、高フレームレート(high frame rate)及び映像表現の高次化(high dimensionality of scene representation)という特徴を有するようになる。そのようなコンテンツを処理するためには、メモリストレージ(memory storage)、メモリアクセス率(memory access rate)及び処理電力(processing power)の面で莫大な増加をもたらす。 Next-generation video content will be characterized by high spatial resolution, high frame rate, and high dimensionality of scene representation. Processing such content results in enormous increases in memory storage, memory access rate and processing power.

したがって、次世代の映像コンテンツをより効率的に処理するためのコーディングツールをデザインする必要がある。特に、HEVC(high efficiency video coding)標準の後のビデオコーデック標準は、さらに高い正確度を有する予測技術とともに空間領域(spatial domain)のビデオ信号を周波数領域(frequency domain)に変換させるための効率的な変換技術を必要とする。 Therefore, it is necessary to design a coding tool for processing next-generation video content more efficiently. In particular, the video codec standard after the HEVC (high efficiency video coding) standard is efficient for converting video signals in the spatial domain into the frequency domain, along with predictive technology with even higher accuracy. Requires a high conversion technology.

本明細書の実施例の目的は、特定の条件に応じて、予め定義された領域に対して、一次変換(primary transform)を実行する方法を提案する。 An object of the embodiments of the present specification is to propose a method of performing a primary transform on a predefined region according to a specific condition.

本明細書の実施例で解決しようとする技術的課題は、以上で言及した技術的課題に制限されず、言及しないまた他の技術的課題は、下の記載から、本発明が属する技術分野で通常の知識を有する者に明確に理解することができるだろう。 The technical problems to be solved in the examples of the present specification are not limited to the technical problems mentioned above, and other technical problems not mentioned above are described below in the technical field to which the present invention belongs. It will be clearly understandable to those with normal knowledge.

本明細書の実施例の一様相は、縮小された変換(Reduced transform)に基づいて、ビデオ信号をデコードする方法において、現在のブロックの水平及び垂直方向に適用される変換カーネル(transform kernels)を指示する変換インデックス(transform index)を前記ビデオ信号から獲得する段階と、前記変換インデックスによって指示される変換カーネル及び前記現在のブロックの大きさに基づいて、前記現在のブロックに変換が適用される領域を決定する段階と、前記現在のブロック内において、前記変換が適用される領域以外の残りの領域の係数を0と見なす段階と、前記変換が適用される領域に対し、前記変換インデックスによって指示される変換カーネルを用いて、逆変換(inverse transform)を実行する段階を含むことができる。 The uniform phase of the examples herein is the transform kernels applied in the horizontal and vertical directions of the current block in the method of decoding video signals based on reduced transforms. The area to which the transformation is applied to the current block based on the step of acquiring the indicated transform index from the video signal and the size of the transform kernel and the current block indicated by the transform index. Is indicated by the transformation index for the step of determining, the step of considering the coefficient of the remaining region other than the region to which the transformation is applied as 0 in the current block, and the region to which the transformation is applied. The transformation kernel can be used to include the steps of performing an inverse transform.

好ましくは、前記変換が適用される領域を決定する段階は、前記変換インデックスによって指示される変換カーネルが予め定義された変換であり、前記現在のブロックの幅(width)、及び/または高さ(height)が予め定義されたサイズより大きい場合、前記予め定義されたサイズの幅及び/または高さを有する領域を前記変換が適用される領域に決定することにより行うことができる。 Preferably, the step of determining the region to which the transformation applies is a transformation in which the transformation kernel indicated by the transformation index is predefined, the width and / or height of the current block. If height) is greater than the predefined size, this can be done by determining a region having the width and / or height of the predefined size as the region to which the transformation applies.

好ましくは、前記予め定義された変換は、DST7及び/またはDCT8の組み合わせで構成された複数の変換の組み合わせの内、いずれか1つで有り得る。 Preferably, the predefined conversion can be any one of a plurality of conversion combinations configured with a combination of DST7 and / or DCT8.

好ましく、前記予め定義されたサイズは、16で有り得る。 Preferably, the predefined size can be 16.

好ましくは、前記変換が適用される領域を決定する段階は、前記変換インデックスによって指示される変換カーネルが第1変換グループに属する場合、前記現在のブロックの幅(width)と32の内、小さい値を前記変換が適用される領域の幅に決定し、前記現在のブロックの高さ(height)と32の内、小さい方の値を前記変換が適用される領域の高さに決定し、前記変換インデックスによって指示される変換カーネルが第2変換グループに属する場合、前記現在のブロックの幅と16の内、小さな値を前記変換が適用される領域の幅に決定し、前記現在のブロックの高さと16の内、小さな値を前記変換が適用される領域の高さに決定することにより、行うことができる。 Preferably, the step of determining the region to which the transformation applies is the smaller of the current block widths and 32 if the transformation kernel indicated by the transformation index belongs to the first transformation group. Is determined to be the width of the region to which the transformation is applied, and the smaller of the current block height (height) and 32 is determined to be the height of the region to which the transformation is applied, and the transformation is performed. If the conversion kernel indicated by the index belongs to the second conversion group, the smaller value of the current block width and 16 is determined to be the width of the area to which the conversion is applied, and the height of the current block. This can be done by determining a smaller value of 16 to the height of the region to which the transformation is applied.

好ましく、前記現在のブロック内においてスキャン順序上の最後の有効係数(last signifi-cant coefficient)の位置を指示する構文エレメントを獲得するステップをさらに含み、前記逆変換が適用される係数は、前記最後の有効係数の位置に基づいて前記ビデオ信号から獲得することができる。 Preferably, the coefficient to which the inverse transformation is applied further comprises the step of acquiring a syntax element indicating the position of the last signifi-cant coefficient in the current block. Can be obtained from the video signal based on the position of the effective factor of.

好ましく、前記構文エレメントは、切削型単項(truncated unary)方式で2値化され、前記構文要素の最大値は、前記0と見なされる領域に基づいて決定することができる。 Preferably, the syntax element is binarized in a truncated unary manner, and the maximum value of the syntax element can be determined based on the region considered to be zero.

本明細書の実施例の一様相は、縮小された変換(Reduced transform)に基づいて、ビデオ信号を復号化する装置において、前記ビデオ信号を貯蔵するメモリと、前記メモリと結合されたプロセッサを含み、前記プロセッサは、現在のブロックの水平及び垂直方向に適用される変換カーネル(transform kernels)を指示する変換インデックス(transform index)を前記ビデオ信号から獲得し、前記変換インデックスによって指示される変換カーネル及び前記現在のブロックの大きさに基づいて、前記現在のブロックに変換が適用される領域を決定し、前記現在のブロック内において、前記変換が適用される領域以外の残りの領域の係数を0と見なし、そして、前記変換が適用される領域に対し、前記変換インデックスによって指示される変換カーネルを用いて、逆変換(inverse transform)を行うことができる。 A uniform phase of an embodiment of the present specification includes a memory for storing the video signal and a processor coupled to the memory in a device for decoding a video signal based on a reduced transform. , The processor obtains a transform index from the video signal indicating the transform kernels applied in the horizontal and vertical directions of the current block, and the transform kernel and the transform kernel indicated by the transform index. Based on the size of the current block, the region to which the transformation is applied to the current block is determined, and the coefficient of the remaining regions other than the region to which the transformation is applied in the current block is set to 0. It can be considered and an inverse transform can be performed on the region to which the transformation is applied using the transformation kernel indicated by the transformation index.

本明細書の実施例に係ると、特定の条件に応じて、予め定義された領域にのみ変換を実行することで、複雑さを著しく減少させることができる。 According to the embodiments of the present specification, the complexity can be significantly reduced by performing the conversion only on the predefined regions according to specific conditions.

本明細書の実施例において得られる効果は、以上で言及した効果に制限されず、言及しないまた他の効果は以下の記載から、本発明が属する技術分野で通常の知識を有する者に明確に理解することができるだろう。 The effects obtained in the examples of the present specification are not limited to the effects mentioned above, and other effects not mentioned above are clearly described by the following description to those who have ordinary knowledge in the technical field to which the present invention belongs. You can understand.

本発明に係る理解を助けるために詳細な説明の一部として含まれた、添付図面は、本発明の実施形態を提供し、詳細な説明と一緒に本発明の技術的特徴を説明する。 The accompanying drawings, included as part of a detailed description to aid in understanding of the invention, provide embodiments of the invention and illustrate the technical features of the invention along with the detailed description.

本発明が適用される実施形態として、映像コーディングシステムの例を示す。An example of a video coding system is shown as an embodiment to which the present invention is applied. 本発明が適用される実施形態として、ビデオ/映像信号のエンコードが行われるエンコード装置の概略的なブロック図を示す。As an embodiment to which the present invention is applied, a schematic block diagram of an encoding device in which a video / video signal is encoded is shown. 本発明が適用される実施形態として、映像信号のデコードが行われるデコード装置の概略的なブロック図を示す。As an embodiment to which the present invention is applied, a schematic block diagram of a decoding device in which a video signal is decoded is shown. 本発明が適用される実施形態として、コンテンツストリーミングシステムの構造図である。As an embodiment to which the present invention is applied, it is a structural diagram of a content streaming system. 本発明が適用されることができる実施形態として、図5aは、QT(QuadTree、以下「QT」とする)、図5bは、BT(Binary Tree、以下「BT」と称する)、図5cは、TT(Ternary Tree、以下「TT」という)図5dは、AT(Asymmetric Tree、以下「AT」という)によるブロック分割構造を説明するための図である。As embodiments to which the present invention can be applied, FIG. 5a is a QT (Quad Tree, hereinafter referred to as “QT”), FIG. 5b is a BT (Binary Tree, hereinafter referred to as “BT”), and FIG. TT (Ternary Tree, hereinafter referred to as “TT”) FIG. 5d is a diagram for explaining a block division structure by AT (Asymmetric Tree, hereinafter referred to as “AT”). 本発明が適用される実施形態として、エンコード装置内の変換及び量子化部、逆量子化及び逆変換部の概略的なブロック図を示す。As an embodiment to which the present invention is applied, a schematic block diagram of a conversion and quantization unit and an inverse quantization and inverse conversion unit in an encoding device is shown. 本発明が適用される実施形態として、図7は、デコード装置内の逆量子化及び逆変換部の概略的なブロック図を示す。As an embodiment to which the present invention is applied, FIG. 7 shows a schematic block diagram of an inverse quantization and inverse transformation unit in a decoding apparatus. AMT(adaptive multiple transform)が実行される過程を示すフローチャートである。It is a flowchart which shows the process which AMT (adaptive multiple transform) is executed. AMTが実行されるデコード過程を示すフローチャートである。It is a flowchart which shows the decoding process which AMT is executed. 本発明の実施形態に基づいてMTSに基づいて逆変換過程を示すフローチャートである。It is a flowchart which shows the inverse transformation process based on MTS based on the embodiment of this invention. 本発明の実施形態に基づいてMTSに基づいてデコードを実行する装置のブロック図である。It is a block diagram of the apparatus which performs the decoding based on MTS based on the embodiment of this invention. 本発明が適用される実施形態として、2次変換が適用されるエンコード/デコードフローチャートである。As an embodiment to which the present invention is applied, it is an encoding / decoding flowchart to which a secondary transformation is applied. 本発明が適用される実施形態として、2次変換が適用されるエンコード/デコードフローチャートである。As an embodiment to which the present invention is applied, it is an encoding / decoding flowchart to which a secondary transformation is applied. 本発明が適用される実施形態として、図14は、ギブンス回転(Givensrotation)を説明するためのダイヤグラムを示す。As an embodiment to which the present invention applies, FIG. 14 shows a diagram for explaining Givens rotation. 本発明が適用される実施形態として、ギブンス回転レイヤと置換(permutation)で構成された4x4NSST(non -separable secondary transform)での1ラウンド(round)の構成を示す。As an embodiment to which the present invention is applied, a one-round configuration with a 4x4 NSST (non-separable secondary transform) composed of a given rotation layer and permutation is shown. 本発明が適用される実施形態として、RST(reduced secondary transform)の動作を示す。As an embodiment to which the present invention is applied, the operation of RST (reduced secondary transform) is shown. 本発明が適用される実施形態として、逆方向スキャン順に基づいて64番目から17番目までの逆スキャンを実行する過程を示す図である。As an embodiment to which the present invention is applied, it is a figure which shows the process of performing the reverse scan from the 64th to the 17th based on the reverse scan order. 本発明が適用される実施形態として、単一変換指示子(single transform indica-tor、STI)を使用したエンコードフローチャートの例を示す。As an embodiment to which the present invention is applied, an example of an encoding flowchart using a single transform indica-tor (STI) is shown. 本発明が適用される実施形態として、統一された変換指示子(unified transform in-dicator、UTI)を使用したエンコードフローチャートの例を示す。As an embodiment to which the present invention is applied, an example of an encoding flowchart using a unified transform in-dicator (UTI) is shown. 本発明が適用される実施形態として、UTIを使ったエンコードフローチャートの他の例を示す。As an embodiment to which the present invention is applied, another example of an encoding flowchart using UTI is shown. 本発明が適用される実施形態として、UTIを使ったエンコードフローチャートの他の例を示す。As an embodiment to which the present invention is applied, another example of an encoding flowchart using UTI is shown. 本発明が適用される実施形態として、変換を実行するエンコードフローチャートの例を示す。As an embodiment to which the present invention is applied, an example of an encoding flowchart for executing conversion is shown. 本発明が適用される実施形態として、変換を実行するデコードフローチャートの例を示す。As an embodiment to which the present invention is applied, an example of a decoding flowchart for executing conversion is shown. 本発明が適用される実施形態として、エンコード装置100内の変換部120の詳細ブロック図の例を示す。As an embodiment to which the present invention is applied, an example of a detailed block diagram of a conversion unit 120 in the encoding device 100 is shown. 本発明が適用される実施形態として、デコード装置200内の逆変換部230の詳細ブロック図の例を示す。As an embodiment to which the present invention is applied, an example of a detailed block diagram of the inverse conversion unit 230 in the decoding device 200 is shown. 本発明が適用される実施形態でとして、ビデオ信号を処理するためのフローチャートを示す。As an embodiment to which the present invention is applied, a flowchart for processing a video signal is shown. 本発明が適用される実施形態によるビデオ信号の変換方法を例示するフローチャートである。It is a flowchart which illustrates the conversion method of the video signal by embodiment to which this invention is applied. 本発明が適用される実施例として、縮小された変換(Reduced transform)を用いて、ビデオ信号をエンコードする方法を例示する図である。As an example to which the present invention is applied, it is a figure illustrating a method of encoding a video signal by using a reduced transform. 本発明が適用される実施例として、縮小された変換(Reduced transform)を用いて、ビデオ信号をデコードする方法を例示する図である。As an example to which the present invention is applied, it is a figure illustrating a method of decoding a video signal by using a reduced transform. 本明細書の実施例に係る縮小された変換(Reduced transform)に基づいて、ビデオ信号をデコードする方法を例示するフローチャートである。It is a flowchart which illustrates the method of decoding the video signal based on the reduced transform which concerns on embodiment of this specification. 本発明が適用される実施例として、ビデオ信号を処理するための装置のブロック図の例を示す。As an example to which the present invention is applied, an example of a block diagram of an apparatus for processing a video signal is shown.

以下、本発明に係る好適な実施の形態を添付の図面を参照して、詳細に説明する。添付された図面と一緒に以下に開示される詳細な説明は、本発明の例示的な実施形態を説明しようとするものであり、本発明が実施されることができる唯一の実施形態を示したいのではない。以下の詳細な説明は、本発明の完全な理解を提供するために具体的な細部事項を含む。しかし、当業者は、本発明がこのような具体的な詳細事項がなくても実施できることが分かる。 Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. The detailed description disclosed below, along with the accompanying drawings, is intended to illustrate exemplary embodiments of the invention and is intended to show only embodiments in which the invention can be practiced. Not. The following detailed description includes specific details to provide a complete understanding of the invention. However, those skilled in the art will appreciate that the present invention can be carried out without such specific details.

いくつかの場合、本発明の概念が曖昧になることを避けるために、公知の構造及び装置は省略されるか、各構造及び装置の核心機能を中心としたブロック図の形式で示されることができる。 In some cases, known structures and devices may be omitted or shown in the form of block diagrams centered on the core functions of each structure and device, in order to avoid obscuring the concepts of the invention. can.

さらに、本発明で用いられる用語は、可能な限り、現在広く用いられる一般的な用語を選択したが、特定の場合には、出願人が任意に選定した用語を使用して説明する。そのような場合には、当該部分の詳細説明で、その意味を明確に記載するため、本発明の説明で使用された用語の名称のみで単純に解釈されてはならないものであり、その当該用語の意味まで把握して解釈されるべきであることを明らかにしておく。 Further, as the term used in the present invention, a general term widely used at present is selected as much as possible, but in a specific case, a term arbitrarily selected by the applicant will be used for explanation. In such a case, in order to clearly state the meaning in the detailed description of the relevant part, the term should not be simply interpreted only by the name of the term used in the description of the present invention. It should be clarified that the meaning of is to be understood and interpreted.

以下の説明で用いられる特定の用語は、本発明の理解を助けるために提供されたものであり、このような特定の用語の使用は、本発明の技術的思想を逸脱しない範囲で他の形態に変更されることができる。例えば、信号、データ、サンプル、ピクチャ、フレーム、ブロックなどの場合、各コーディングの過程で適切に代替されて解釈されることがある。 The specific terms used in the following description are provided to aid in the understanding of the invention, and the use of such specific terms is in other forms to the extent that it does not deviate from the technical ideas of the invention. Can be changed to. For example, signals, data, samples, pictures, frames, blocks, etc. may be appropriately substituted and interpreted in each coding process.

以下、本明細書において「処理ユニット」は、予測、変換、及び/または量子化などのようなエンコード/デコードの処理過程が実行される単位を意味する。また、処理ユニットは、輝度(luma)成分の単位と色差(chroma)成分の単位を含む意味で解釈されることができる。例えば、処理ユニットは、ブロック(block)、コーディングユニット(coding unit、CU)、予測ユニット(prediction unit、PU)、または変換ブロック(transform unit、TU)に該当することができる。 Hereinafter, "processing unit" as used herein means a unit on which an encoding / decoding processing process such as prediction, conversion, and / or quantization is performed. Further, the processing unit can be interpreted as including a unit of a luminance (luma) component and a unit of a color difference (chroma) component. For example, the processing unit can be a block, a coding unit (CU), a prediction unit (PU), or a transform unit (TU).

また、処理ユニットは、輝度成分の単位または色差成分の単位として解釈されることができる。例えば、処理ユニットは、輝度成分のコーディングツリーブロック(coding tree block、CTB)、コーディングブロック(coding block、CB)、PUまたは変換ブロック(transform block、TB)に該当することができる。または、処理ユニットは、色差成分のCTB、CB、PU、TBに該当することができる。また、これに限定されるものではなく処理ユニットは、輝度成分の単位と色差成分の単位を含む意味で解釈されることもある。 Further, the processing unit can be interpreted as a unit of a luminance component or a unit of a color difference component. For example, the processing unit can correspond to a coding tree block (CTB), a coding block (coding block, CB), a PU or a transform block (TB) of a luminance component. Alternatively, the processing unit can correspond to the color difference components CTB, CB, PU, and TB. Further, the processing unit is not limited to this, and may be interpreted as including a unit of a luminance component and a unit of a color difference component.

また、処理ユニットは、必ず正方形のブロックに限定されるものではなく、3つ以上の頂点を有する多角形の形で構成されることもある。 Further, the processing unit is not necessarily limited to a square block, and may be configured in the form of a polygon having three or more vertices.

なお、以下、本明細書でピクセルまたは画素などをサンプルとして通称する。そして、サンプルを用いるとすることは、ピクセル値または画素値などを用いることを意味することができる。 Hereinafter, in the present specification, pixels or pixels are commonly referred to as samples. Then, using a sample can mean using a pixel value, a pixel value, or the like.

図1は、本発明が適用される実施形態として、映像コーディングシステムの例を示す。 FIG. 1 shows an example of a video coding system as an embodiment to which the present invention is applied.

映像コーディングシステムは、ソースデバイ10及び受信デバイス20を含むことができる。ソースデバイ10は、エンコードされたビデオ/映像情報またはデータを、ファイルまたはストリーミング形態でデジタル貯蔵媒体またはネットワークを介して受信デバイス20に転達することができる。 The video coding system can include a source device 10 and a receiving device 20. The source device 10 can transfer the encoded video / video information or data to the receiving device 20 via a digital storage medium or network in the form of a file or streaming.

ソースデバイス10は、ビデオソース11、エンコード装置12、送信機13を含むことができる。受信デバイス20は、受信機21、デコード装置22及びレンダラー23を含むことができる。エンコード装置10は、ビデオ/映像エンコード装置と呼ばれることができ、デコード装置20は、ビデオ/映像デコード装置と呼ばれることができる。送信機13は、エンコード装置12に含まれることができる。受信機21は、デコード装置22に含まれることができる。レンダラー23は、ディスプレイ部を含むこともでき、ディスプレイ部の別のデバイスまたは外部のコンポーネントで構成されることもある。 The source device 10 can include a video source 11, an encoding device 12, and a transmitter 13. The receiving device 20 can include a receiver 21, a decoding device 22, and a renderer 23. The encoding device 10 can be called a video / video encoding device, and the decoding device 20 can be called a video / video decoding device. The transmitter 13 can be included in the encoding device 12. The receiver 21 can be included in the decoding device 22. The renderer 23 may include a display unit and may be composed of another device or an external component of the display unit.

ビデオソースはビデオ/映像のキャプチャ、合成または生成過程などを通じてビデオ/映像を獲得することができる。ビデオソースはビデオ/映像キャプチャデバイス及び/またはビデオ/映像生成デバイスを含むことができる。ビデオ/映像キャプチャデバイスは、例えば、一つ以上のカメラ、以前にキャプチャされたビデオ/映像を含むビデオ/映像アーカイブなどを含むことができる。ビデオ/映像生成デバイスは、例えばコンピュータ、タブレット及びスマートフォンなどを含むことができ、(電子的に)ビデオ/映像を生成することができる。たとえば、コンピュータなどを通じて、仮想のビデオ/映像が生成されることができ、この場合、関連するデータが生成される過程で、ビデオ/映像キャプチャプロセスが代えることができる。 Video sources can acquire video / video through video / video capture, compositing or generation processes, etc. Video sources can include video / video capture devices and / or video / video generation devices. The video / video capture device can include, for example, one or more cameras, a video / video archive containing previously captured video / video, and the like. Video / video generation devices can include, for example, computers, tablets, smartphones, etc., and can (electronically) generate video / video. For example, a virtual video / video can be generated, such as through a computer, in which case the video / video capture process can be replaced in the process of generating the relevant data.

エンコード装置12は、入力ビデオ/映像をエンコードすることができる。エンコード装置12は、圧縮およびコーディング効率のために予測、変換、量子化などの一連の手順を実行することができる。エンコードされたデータ(エンコードされたビデオ/映像情報)は、ビットストリーム(bitstream)の形で出力されることができる。 The encoding device 12 can encode the input video / video. The encoding device 12 can perform a series of procedures such as prediction, conversion, and quantization for compression and coding efficiency. The encoded data (encoded video / video information) can be output in the form of a bitstream.

転送部13は、ビットストリームの形態で出力されたエンコードされたビデオ/映像情報またはデータを、ファイルまたはストリーミング形態でデジタル貯蔵媒体またはネットワークを介して受信デバイスの受信部に転達することができる。デジタル貯蔵媒体は、USB、SD、CD、DVD、Blu−ray、HDD、SSDなど、様々な貯蔵媒体を含むことができる。転送部13は、予め決まれたファイルフォーマットを介してメディアファイルを生成するためのエレメントを含むことができ、放送/通信ネットワークを介した転送のためのエレメントを含むことができる。受信機21は、ビットストリームを抽出してデコード装置22に転達することができる。 The transfer unit 13 can transfer the encoded video / video information or data output in the form of a bitstream to the receiving unit of the receiving device via a digital storage medium or network in the form of a file or streaming. The digital storage medium can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD and the like. The transfer unit 13 can include an element for generating a media file via a predetermined file format, and can include an element for transfer via a broadcast / communication network. The receiver 21 can extract the bitstream and reach the decoding device 22.

デコード装置22は、エンコード装置12の動作に対応する逆量子化、逆変換、予測など一連の手順を実行して、ビデオ/映像をデコードすることができる。 The decoding device 22 can perform a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding device 12 to decode the video / video.

レンダラー(renderer)23は、デコードされたビデオ/映像をレンダリングすることができる。レンダリングされたビデオ/映像は、ディスプレイ部を介してディスプレイされることができる。 The renderer 23 can render the decoded video / video. The rendered video / video can be displayed via the display unit.

図2は、本発明が適用される実施形態として、ビデオ/映像信号のエンコーディングが行われるエンコード装置の概略的なブロック図を示す。図2のエンコード装置100は、図1のエンコード装置12に対応することができる。 FIG. 2 shows a schematic block diagram of an encoding device in which video / video signal encoding is performed, as an embodiment to which the present invention is applied. The encoding device 100 of FIG. 2 can correspond to the encoding device 12 of FIG.

映像分割部110は、エンコード装置100に入力された入力画像(または、ピクチャ、フレーム)を一つ以上の処理ユニット(processing unit)に分割することができる。一例として、前記処理ユニットは、コーディングユニット(CU)と呼ばれることができる。この場合、コーディングユニットは、コーディングツリーユニット(coding tree unit、CTU)または最大コーディングユニット(largest coding unit、LCU)からQTBT(Quad-tree binary-tree)構造に基づいて再帰的に(recursively)に分割されることができる。例えば、一つのコーディングユニットは、クワッドツリー構造及び/またはバイナリツリー構造に基づいて、下位(deeper)デプスの複数のコーディングユニットに分割されることができる。この場合、例えば、クワッドツリー構造が先適用され、バイナリツリー構造が、後で適用されることができる。またはバイナリツリー構造が先に適用されることもある。これ以上分割されない最終コーディングユニットをベースに、本発明に係るコーディング手順が実行されることができる。この場合、映像の特性に応じたコーディング効率などに基づいて、最大コーディングユニットがすぐに最終的なコーディングユニットとして用いることができ、または必要に応じてコーディングユニットは、再帰的に(recursively)より下位デプスのコーディングユニットに分割され、最適のサイズのコーディングユニットが最終コーディングユニットとして用いられる。ここでコーディング手順とは、後述する予測、変換、及び復元などの手続きを含むことができる。他の例として、前記処理ユニットは、予測ユニット(PU:Prediction Unit)または変換ユニット(TU:Transform Unit)をさらに含むことができる。この場合、前記予測ユニット及び前記変換ユニットは、それぞれ前述した最終コーディングユニットから分割またはパーティショニングすることができる。前記予測ユニットは、サンプル予測の単位で有り得、前記の変換ユニットは、変換係数を誘導する単位、及び/または変換係数からレジデュアル信号(residual signal)を誘導する単位で有り得る。 The video dividing unit 110 can divide the input image (or picture, frame) input to the encoding device 100 into one or more processing units. As an example, the processing unit can be referred to as a coding unit (CU). In this case, the coding unit is recursively divided from the coding tree unit (CTU) or the largest coding unit (LCU) based on the QTBT (Quad-tree binary-tree) structure. Can be done. For example, a coding unit can be divided into multiple coding units of deeper depth based on a quad tree structure and / or a binary tree structure. In this case, for example, the quad tree structure can be applied first and the binary tree structure can be applied later. Alternatively, the binary tree structure may be applied first. The coding procedure according to the present invention can be executed based on the final coding unit which is not further divided. In this case, the largest coding unit can be immediately used as the final coding unit, based on coding efficiency etc. according to the characteristics of the video, or if necessary, the coding unit is recursively lower than recursively. It is divided into depth coding units, and the optimum size coding unit is used as the final coding unit. Here, the coding procedure can include procedures such as prediction, conversion, and restoration described later. As another example, the processing unit may further include a prediction unit (PU: Prediction Unit) or a transformation unit (TU: Transform Unit). In this case, the prediction unit and the conversion unit can be partitioned or partitioned from the final coding unit described above, respectively. The prediction unit may be a unit of sample prediction, and the conversion unit may be a unit for deriving a conversion coefficient and / or a unit for deriving a residual signal from the conversion coefficient.

ユニットは、場合によって ブロック(block)または領域(area)などの用語と混用して用いられる。一般的な場合、MxNブロックはM個の列とN個の行からなるサンプル又は変換係数(transform coefficient)の集合を示すことができる。サンプルは、一般的に、ピクセルまたはピクセルの値を示すこともあり、輝度(luma)成分のピクセル/ピクセル値のみを示すこともあり、彩度(chroma)成分のピクセル/ピクセル値のみを示すこともできる。サンプルは、一つのピクチャ(または映像)をピクセル(pixel)またはペル(pel)に対応する用語として用いられる。 Units are sometimes used in combination with terms such as block or area. In the general case, an MxN block can represent a sample or set of transform coefficients consisting of M columns and N rows. The sample may generally show a pixel or pixel value, may only show the pixel / pixel value of the luminance (luma) component, or only the pixel / pixel value of the saturation (chroma) component. You can also. In the sample, one picture (or video) is used as a term corresponding to a pixel or a pel.

エンコード装置100は、入力映像信号(原本ブロック、原本サンプルアレイ)でインター予測部180またはイントラ予測部185から出力された予測信号(予測されたブロック、予測サンプルアレイ)を減算してレジデュアル信号(residual signal、残りのブロック、残りのサンプルアレイ)を生成することができ、生成されたレジデュアル信号は、変換部120に転送される。この場合、図示のように、エンコーダ100内で入力映像信号(原本ブロック、原本サンプルアレイ)で予測信号(予測ブロック、予測サンプルアレイ)を減算するユニットは減算部115と呼ばれることができる。予測部は処理対象ブロック(以下、現在ブロックと称する)の予測を行い、現在ブロックの予測サンプルを含む予測されたブロック(predicted block)を生成することができる。予測部は現在ブロックまたはCU単位でイントラ予測が適用されるか、またはインター予測が適用されるかを決定することができる。予測部は各予測モードの説明で後述するように、予測モード情報など予測に関する様々な情報を生成し、エントロピーエンコーディング部190に転達することができる。予測に関する情報は、エントロピーエンコーディング部190でエンコードされてビットストリーム形態で出力することができる。 The encoding device 100 subtracts the prediction signal (predicted block, prediction sample array) output from the inter-prediction unit 180 or the intra-prediction unit 185 from the input video signal (original block, original sample array) to obtain a resilient signal (predictive block, prediction sample array). (Remaining signal, remaining blocks, remaining sample array) can be generated, and the generated residency signal is transferred to the conversion unit 120. In this case, as shown in the figure, the unit that subtracts the predicted signal (predicted block, predicted sample array) from the input video signal (original block, original sample array) in the encoder 100 can be called the subtraction unit 115. The prediction unit can predict a block to be processed (hereinafter referred to as a current block) and generate a predicted block (predicted block) including a prediction sample of the current block. The predictor can currently determine whether intra-forecasts are applied or inter-forecasts are applied on a block or CU basis. As will be described later in the description of each prediction mode, the prediction unit can generate various information related to prediction such as prediction mode information, and can reach the entropy encoding unit 190. Information about prediction can be encoded by the entropy encoding unit 190 and output in the form of a bitstream.

イントラ予測部185は、現在のピクチャ内のサンプルを参照して、現在ブロックを予測することができる。参照されるサンプルは、予測モードに応じて前記現在ブロックの周辺(neighbor)に位置することができ、または離れて位置することもできる。イントラ予測で予測モードは、複数の非方向性モードと複数の方向性モードを含むことができる。非方向性モードは、例えば、DCモード及びプランナーモード(Planarモード)を含むことができる。方向性モードでは、予測方向の細かい程度に応じて、例えば、33個の方向性予測モードまたは65個の方向性予測モードを含むことができる。ただし、これは例示として設定によってはそれ以上、またはそれ以下の数の方向性予測モードが用いられることができる。イントラ予測部185は、周辺ブロックに適用される予測モードを用いて、現在ブロックに適用される予測モードを決定することもできる。 The intra prediction unit 185 can predict the current block by referring to the sample in the current picture. The referenced sample can be located near or far from the current block, depending on the prediction mode. In intra-prediction, the prediction mode can include a plurality of non-directional modes and a plurality of directional modes. The non-directional mode can include, for example, a DC mode and a planner mode (Planar mode). The directional mode can include, for example, 33 directional prediction modes or 65 directional prediction modes, depending on the degree of fineness of the prediction direction. However, as an example, more or less directional prediction modes can be used depending on the setting. The intra prediction unit 185 can also determine the prediction mode currently applied to the block by using the prediction mode applied to the peripheral block.

インター予測部180は、参照ピクチャ上で動きベクトルによって特定される参照ブロック(参照サンプルアレイ)に基づいて、現在ブロックの予測されたブロックを誘導することができる。このとき、インター予測モードで転送される動き情報の量を減らすために周囲のブロックと現在ブロックの間の動き情報の相関性に基づいて動き情報をブロック、サブブロック、またはサンプル単位で予測することができる。動き情報は、動きベクトル及び参照ピクチャインデックスを含むことができる。動き情報は、インター予測方向(L0予測、L1予測、Bi予測など)の情報をさらに含むことができる。インター予測の場合、周辺ブロックは、現在のピクチャ内に存在する空間的周りのブロック(spatial neighboring block)と参照ピクチャに存在する時間的周辺ブロック(temporal neighboring block)を含むことができる。参照ブロックを含む参照ピクチャと時間的周辺ブロックを含む参照ピクチャは同じであることもあり、異なることもある。前記時間的周辺ブロックは、同じ位置参照ブロック(collocated reference block)、同じ位置(CU colCU)などの名で呼ばれることができ、時間的周辺ブロックを含む参照ピクチャは、同じ位置ピクチャ(collocated picture、colPic)と呼ばれることもある。例えば、インター予測部180は、周辺ブロックに基づいて動き情報候補リストを構成し、前記現在ブロックの動きベクトル及び/または参照ピクチャインデックスを導出するためにどの候補が用いられるかを指示する情報を生成することができる。様々な予測モードに基づいて、インター予測が行われることができ、例えば、スキップモードとマージモードの場合に、インター予測部180は、周辺ブロックの動き情報を現在ブロックの動き情報として用いることができる。スキップ・モードの場合、マージモードとは異なり、レジデュアル信号が転送されないことがある。動き情報予測(motion vector prediction、MVP)モードの場合、周辺ブロックの動きベクトルを動きベクトル予測子(motion vector predictor)で用いて、動きベクトル差分(motion vector difference)をシグナリングすることによって、現在ブロックの動きベクトルを指示することができる。 The inter-prediction unit 180 can derive the predicted block of the current block based on the reference block (reference sample array) identified by the motion vector on the reference picture. At this time, in order to reduce the amount of motion information transferred in the inter-prediction mode, the motion information is predicted in block, sub-block, or sample units based on the correlation of the motion information between the surrounding block and the current block. Can be done. The motion information can include a motion vector and a reference picture index. The motion information can further include information in the inter-prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). For inter-prediction, the peripheral block can include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture. A reference picture containing a reference block and a reference picture containing a temporal peripheral block may be the same or different. The temporal peripheral block can be called by the same name such as a collocated reference block or the same position (CU colCU), and the reference picture including the temporal peripheral block can be referred to as a collocated picture, colPic. ). For example, the inter-prediction unit 180 constitutes a motion information candidate list based on the peripheral block, and generates information indicating which candidate is used to derive the motion vector and / or the reference picture index of the current block. can do. Inter-prediction can be performed based on various prediction modes. For example, in the case of skip mode and merge mode, the inter-prediction unit 180 can use the motion information of the peripheral block as the motion information of the current block. .. In skip mode, unlike merge mode, the residency signal may not be transferred. In the motion vector prediction (MVP) mode, the motion vector of the peripheral block is used by the motion vector predictor to signal the motion vector difference of the current block. You can specify the motion vector.

インター予測部180またはイントラ予測部185を介して生成された予測信号は、復元信号を生成するために用いられるか、またはレジデュアル信号を生成するために用いられる。 The prediction signal generated via the inter-prediction unit 180 or the intra-prediction unit 185 is used to generate a restoration signal or is used to generate a residency signal.

変換部120は、レジデュアル信号に変換手法を適用して変換係数(transform coefficients)を生成することができる。たとえば、変換技法は、DCT(Discrete Cosine Transform)、DST(Discrete Sine Transform)、KLT(Karhunen-Loeve Transform)、GBT(Graph-Based Transform)、またはCNT(Conditionally Non-linear Transform)の内、少なくとも一つを含むことができる。ここで、GBTは、ピクセル間の関係情報をグラフで表現するとしたときに、このグラフから得られた変換を意味する。CNTは、以前に復元されたすべてのピクセル(all previously reconstructepixel)を用いて予測信号を生成し、それに基づいて獲得される変換を意味する。また、変換プロセスは、正方形の同じ大きさを有するピクセルブロックに適用されることもあり、非正方形可変サイズのブロックにも適用することができる。 The transform unit 120 can apply a transform method to the resilient signal to generate transform coefficients. For example, the transformation technique is at least one of DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), KLT (Karhunen-Loeve Transform), GBT (Graph-Based Transform), or CNT (Conditionally Non-linear Transform). Can include one. Here, GBT means a transformation obtained from this graph when the relationship information between pixels is represented by a graph. CNT means a transformation obtained based on a predictive signal generated using all previously reconstructed pixels. The conversion process may also be applied to pixel blocks of the same size as a square, and may also be applied to non-square variable size blocks.

量子化部130は、変換係数を量子化してエントロピーエンコーディング部190に転送され、エントロピーエンコーディング部190は、量子化された信号(量子化された変換係数に関する情報)をエンコードして、ビットストリームとして出力することができる。量子化された変換係数に関する情報は、レジデュアル情報と呼ばれることができる。量子化部130は、係数スキャン順(scan order)に基づいて、ブロックの形の量子化された変換係数を1次元ベクトルの形で再整列することができ、1次元ベクトルの形の量子化された変換係数に基づいて、前記量子化された変換係数に関する情報を生成することもできる。エントロピーエンコーディング部190は、例えば指数ゴロム(exponential Golomb)、CAVLC(context-adaptive variable length coding)、CABAC(context-adaptive binary arithmetic coding)などのようなさまざまなエンコード方法を実行することができる。エントロピーエンコーディング部190は、量子化された変換係数のほか、ビデオ/映像復元に必要な情報(例えば構文要素(syntax elements)の値など)を一緒に、または別々にエンコードすることもできる。エンコードされた情報(例えば、ビデオ/映像情報)は、ビットストリームの形でNAL(network abstraction layer)ユニット単位で転送または貯蔵することができる。前記ビットストリームは、ネットワークを介して転送されることができ、またはデジタル貯蔵媒体に貯蔵することができる。ここで、ネットワークは、放送網、及び/またはネットワークなどを含むことができ、デジタル貯蔵媒体は、USB、SD、CD、DVD、Blu−ray、HDD、SSDなど、様々な貯蔵媒体を含むことができる。エントロピーエンコーディング部190から出力された信号は、伝送する伝送部(図示せず)及び/または貯蔵する貯蔵部(図示せず)が、エンコード装置100の内/外のエレメントとして構成されることができ、または転送部はエントロピーエンコーディング部190の構成要素で有り得る。 The quantized unit 130 quantizes the conversion coefficient and transfers it to the entropy encoding unit 190, and the entropy encoding unit 190 encodes the quantized signal (information about the quantized conversion coefficient) and outputs it as a bit stream. can do. Information about the quantized conversion coefficients can be referred to as resilient information. The quantization unit 130 can rearrange the quantized conversion coefficients in the form of blocks in the form of a one-dimensional vector based on the coefficient scan order, and is quantized in the form of a one-dimensional vector. It is also possible to generate information about the quantized conversion coefficient based on the conversion coefficient. The entropy encoding unit 190 can execute various encoding methods such as exponential Golomb, CAVLC (context-adaptive variable length coding), and CABAC (context-adaptive binary arithmetic coding). The entropy encoding unit 190 can encode the information necessary for video / video restoration (for example, the value of syntax elements) together or separately, in addition to the quantized conversion coefficient. Encoded information (eg, video / video information) can be transferred or stored in NAL (network abstraction layer) units in the form of bitstreams. The bitstream can be transferred over a network or stored in a digital storage medium. Here, the network can include a broadcasting network and / or a network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, and the like. can. In the signal output from the entropy encoding unit 190, the transmission unit (not shown) for transmitting and / or the storage unit (not shown) for storing can be configured as an inner / outer element of the encoding device 100. , Or the transfer unit may be a component of the entropy encoding unit 190.

量子化部130から出力された量子化された変換係数は、予測信号を生成するために用いることができる。例えば、量子化された変換係数は、ループ内の逆量子化部140及び逆変換部150を介して逆量子化及び逆変換を適用することにより、レジデュアル信号を復元することができる。加算部155は、復元されたレジデュアル信号をインター予測部180またはイントラ予測部185から出力された予測信号に加えることで復元(reconstructed)信号(復元ピクチャ、復元ブロック、復元サンプルアレイ)が生成されることができる。スキップモードが適用された場合と同様に処理対象ブロックのレジデュアルがない場合、予測されたブロックが復元ブロックとして用いられる。加算部155は、復元部または復元ブロック生成部と呼ばれることができる。生成された復元信号は、現在のピクチャ内の次の処理対象ブロックのイントラ予測のために用いられ、後述するようにフィルタリングを経て、次のピクチャのインター予測のために用いることもある。 The quantized conversion coefficient output from the quantized unit 130 can be used to generate a prediction signal. For example, the quantized conversion coefficient can restore the resilient signal by applying the inverse quantization and the inverse transformation via the inverse quantization unit 140 and the inverse transformation unit 150 in the loop. The addition unit 155 adds a restored residency signal to the prediction signal output from the inter-prediction unit 180 or the intra-prediction unit 185 to generate a reconstructed signal (reconstructed picture, restored block, restored sample array). Can be done. As in the case where the skip mode is applied, if there is no register dual of the block to be processed, the predicted block is used as the restore block. The addition unit 155 can be called a restoration unit or a restoration block generation unit. The generated restoration signal is used for intra-prediction of the next block to be processed in the current picture, and may be used for inter-prediction of the next picture after filtering as described later.

フィルタリング部160は、復元信号にフィルタリングを適用して主観的/客観的画質を向上させることができる。例えば、フィルタリング部160は、復元ピクチャに様々なフィルタリング方法を適用して修正された(modified)復元ピクチャを生成することができ、修正された(復元ピクチャを復号ピクチャバッファ170に転送することができる。様々なフィルタリングの方法は、例えば、ジブロッキングフィルタリング、サンプル適応的オフセット(sample adaptive offset)、適応的ループフィルタ(adaptive loop filter)、両方向フィルタ(bilateral filter)などを含むことができる。フィルタリング部160は、各フィルタリング方法の説明で後述するようにフィルタリングに関するさまざまな情報を生成し、エントロピーエンコーディング部190に転達することができる。フィルタリングに関する情報は、エントロピーエンコーディング部190でエンコードされてビットストリーム形態で出力することができる。 The filtering unit 160 can apply filtering to the restored signal to improve the subjective / objective image quality. For example, the filtering unit 160 can apply various filtering methods to the restored picture to generate a modified (modified) restored picture, and can transfer the modified (restored picture to the decrypted picture buffer 170). Various filtering methods can include, for example, diblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, and the like. Filtering unit 160. Can generate various information about filtering and reach the entropy encoding unit 190 as described later in the description of each filtering method. The information about filtering is encoded by the entropy encoding unit 190 and output in the form of a bit stream. can do.

復号ピクチャバッファ170に 転送された修正された復元ピクチャは、インター予測部180から参照ピクチャとして用いられる。エンコード装置は、これにより、インター予測が適用される場合、エンコード装置100とデコード装置での予測ミスマッチを回避することができ、エンコーディング効率も向上させることができる。 The modified restored picture transferred to the decoded picture buffer 170 is used as a reference picture by the inter-prediction unit 180. As a result, the encoding device can avoid a prediction mismatch between the encoding device 100 and the decoding device when inter-prediction is applied, and can also improve the encoding efficiency.

復号ピクチャバッファ170は、修正された復元ピクチャをインター予測部180からの参照ピクチャとして用いるために貯蔵することができる。 The decoded picture buffer 170 can store the modified restored picture for use as a reference picture from the interprediction unit 180.

図3は、本発明が適用される実施形態として、映像信号のデコードが行われるデコード装置の概略的なブロック図を示す。図3のデコード装置200は、図1のデコード装置22に対応することができる。 FIG. 3 shows a schematic block diagram of a decoding device in which a video signal is decoded as an embodiment to which the present invention is applied. The decoding device 200 of FIG. 3 can correspond to the decoding device 22 of FIG.

図3を参照すると、デコード装置200は、エントロピーデコード部210、逆量子化部220、逆変換部230、加算部235、フィルタリング部240、復号ピクチャバッファ(DPB)250、インター予測部260及びイントラ予測部265を含みから構成されることができる。インター予測部260及びイントラ予測部265を合わせて予測部と呼ばれることができる。つまり、予測部はインター予測部180及びイントラ予測部185を含むことができる。逆量子化部220、逆変換部230を合わせてレジデュアル処理部と呼ばれることができる。つまり、レジデュアル処理部は、逆量子化部220、逆変換部230を含むことができる。前述したエントロピーデコード部210、逆量子化部220、逆変換部230、加算部235、フィルタリング部240、インター予測部260及びイントラ予測部265は、実施形態に応じて一つのハードウェアコンポーネント(例えば、デコーダまたはプロセッサ)によって構成されることができる。また、復号ピクチャバッファ250は、実施形態に応じて一つのハードウェアコンポーネント(例えば、メモリまたはデジタル貯蔵媒体)によって実施されることができる。 Referring to FIG. 3, the decoding device 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse conversion unit 230, an addition unit 235, a filtering unit 240, a decoding picture buffer (DPB) 250, an inter prediction unit 260, and an intra prediction unit. It can be composed of including a part 265. The inter-prediction unit 260 and the intra-prediction unit 265 can be collectively referred to as a prediction unit. That is, the prediction unit can include an inter prediction unit 180 and an intra prediction unit 185. The inverse quantization unit 220 and the inverse conversion unit 230 can be collectively referred to as a resilient processing unit. That is, the resilient processing unit can include an inverse quantization unit 220 and an inverse conversion unit 230. The entropy decoding unit 210, the inverse quantization unit 220, the inverse conversion unit 230, the addition unit 235, the filtering unit 240, the inter-prediction unit 260, and the intra-prediction unit 265 have one hardware component (for example, for example, depending on the embodiment). It can be configured by a decoder or processor). Also, the decoding picture buffer 250 can be implemented by one hardware component (eg, memory or digital storage medium), depending on the embodiment.

ビデオ/映像情報を含むビットストリームが入力されると、デコード装置200は、図2のエンコード装置100からのビデオ/映像情報が処理されたプロセスに対応して映像を復元することができる。例えば、デコード装置200は、エンコード装置100で適用された処理ユニットを用いてデコードを行うことができる。したがってデコードの処理ユニットは、例えば、コーディングユニットで有り得、コーディングユニットは、コーディングツリーユニットまたは最大コーディングユニットからクワッドツリー構造及び/またはバイナリツリー構造に沿って分けることができる。そして、デコード装置200を介してデコード及び出力された復元映像信号は、再生装置を通じて再生することができる。 When a bitstream containing video / video information is input, the decoding device 200 can restore the video corresponding to the process in which the video / video information from the encoding device 100 of FIG. 2 is processed. For example, the decoding device 200 can perform decoding using the processing unit applied by the encoding device 100. Thus, the decoding processing unit can be, for example, a coding unit, which can be separated from the coding tree unit or the largest coding unit along a quad tree structure and / or a binary tree structure. Then, the restored video signal decoded and output via the decoding device 200 can be reproduced through the playback device.

デコード装置200は、図2のエンコード装置100から出力された信号をビットストリーム形態で受信することができ、受信された信号は、エントロピーデコード部210を介してデコードすることができる。例えば、エントロピーデコード部210は、ビットストリームを ファージング(解析)して映像復元(またはピクチャ復元)に必要な情報(例えば、ビデオ/映像情報)を導出することができる。例えば、エントロピーデコード部210は、指数ゴロム符号化、CAVLCまたはCABACなどのコーディング方法に基づいてビットストリーム内の情報をデコードして、映像復元に必要な構文要素の値、レジデュアルに関する変換係数の量子化された値を出力することができる。さらに詳細に、CABACエントロピーデコード方法は、ビットストリームから各構文要素に当該するビンを受信し、デコード対象構文要素の情報と周辺及びデコード対象ブロックのデコード情報、または前の段階でデコードされたシンボル/ビンの情報を用いてコンテキスト(context)モデルを決定し、決定されたコンテキストモデルに基づいてビン(bin)の発生確率を予測して、ビンの算術デコード(arithmetic decoding)を実行して、各構文要素の値に当該するシンボルを生成することができる。このとき、CABACエントロピーデコード方法は、コンテキストモデルを決定した後、次のシンボル/ビンの文脈モデルのためにデコードされたシンボル/ビンの情報を用いて、コンテキストモデルを更新することができる。エントロピーデコード部210でデコードされた情報の内、予測に関する情報は、予測部(インター予測部260及びイントラ予測部265)で提供され、エントロピーデコード部210からエントロピーデコードが行われたレジデュアル値、すなわち量子化された変換係数及び関連パラメータ情報は、逆量子化部220に入力されることができる。また、エントロピーデコード部210でデコードされた情報の内、フィルタリングに関する情報は、フィルタリング部240に提供されることができる。一方、エンコード装置100から出力された信号を受信する受信部(図示せず)がデコード装置200の内/外部エレメントとしてさらに構成されることがあり、または受信部は、エントロピーデコード部210の構成要素有り得る。 The decoding device 200 can receive the signal output from the encoding device 100 of FIG. 2 in the form of a bitstream, and the received signal can be decoded via the entropy decoding unit 210. For example, the entropy decoding unit 210 can perform farthing (analysis) of a bitstream to derive information (for example, video / video information) necessary for video restoration (or picture restoration). For example, the entropy decoding unit 210 decodes the information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC or CABAC, and the values of the syntax elements required for video restoration and the quantum of the conversion coefficient related to the residency. The converted value can be output. More specifically, the CABAC entropy decoding method receives the corresponding bin for each syntax element from the bitstream, and the information of the syntax element to be decoded and the decoding information of the periphery and the block to be decoded, or the symbol / symbol decoded in the previous step. The information in the bins is used to determine the context model, the probability of bin occurrence is predicted based on the determined context model, and the bin's arithmetic decoding is performed for each syntax. The corresponding symbol can be generated for the value of the element. At this time, the CABAC entropy decoding method can update the context model by using the symbol / bin information decoded for the next symbol / bin context model after determining the context model. Among the information decoded by the entropy decoding unit 210, the information related to the prediction is provided by the prediction unit (inter prediction unit 260 and the intra prediction unit 265), and the entropy decoding unit 210 has performed the entropy decoding, that is, the coefficient dual value. The quantized conversion coefficient and related parameter information can be input to the inverse quantization unit 220. Further, among the information decoded by the entropy decoding unit 210, the information related to filtering can be provided to the filtering unit 240. On the other hand, a receiving unit (not shown) that receives the signal output from the encoding device 100 may be further configured as an internal / external element of the decoding device 200, or the receiving unit is a component of the entropy decoding unit 210. It is possible.

逆量子化部220では、量子化された変換係数を逆量子化して変換係数を出力することができる。逆量子化部220は、量子化された変換係数を2次元のブロックの形態に再整列することができる。この場合、エンコード装置100で実行された係数スキャン順序に基づいて再整列が実行されることができる。逆量子化部220は、量子化パラメータ(例えば、量子化段階サイズ情報)を用いて、量子化された変換係数の逆量子化を行い、変換係数(transform coefficient)を獲得することができる。 The dequantization unit 220 can dequantize the quantized conversion coefficient and output the conversion coefficient. The dequantization unit 220 can rearrange the quantized conversion coefficients into the form of a two-dimensional block. In this case, the rearrangement can be performed based on the coefficient scan order performed by the encoding device 100. The inverse quantization unit 220 can perform inverse quantization of the quantized transformation coefficient using a quantization parameter (for example, quantization step size information) and acquire a transformation coefficient.

逆変換部230は、変換係数を逆変換してレジデュアル信号(レジデュアルブロック、レジデュアルサンプルアレイ)を獲得することになる。 The inverse conversion unit 230 reversely transforms the conversion coefficient to acquire a register dual signal (residual block, register dual sample array).

予測部は現在ブロックの予測を行い、前記現在ブロックの予測サンプルを含む予測されたブロック(predicted block)を生成することができる。予測部はエントロピーデコード部210から出力された前記予測に関する情報に基づいて、前記現在ブロックにイントラ予測が適用されるか、またはインター予測が適用されるかを決定することができ、具的なイントラ/インター予測モードを決定することができる。 The prediction unit can predict the current block and generate a predicted block including a prediction sample of the current block. Based on the information about the prediction output from the entropy decoding unit 210, the prediction unit can determine whether the intra prediction is applied to the current block or the inter prediction is applied, and the specific intra prediction can be applied. / Inter prediction mode can be determined.

イントラ予測部265は、現在ピクチャ内のサンプルを参照して、現在ブロックを予測することができる。参照されるサンプルは、予測モードに応じて、現在ブロックの周辺(neighbor)に位置することができ、または離隔して位置することもできる。イントラ予測で予測モードは、複数の非方向性モードと複数の方向性モードを含むことができる。イントラ予測部265は、周辺ブロックに適用される予測モードを用いて、現在ブロックに適用される予測モードを決定することもできる。 The intra prediction unit 265 can predict the current block by referring to the sample in the current picture. The referenced sample can be located near or far from the current block, depending on the prediction mode. In intra-prediction, the prediction mode can include a plurality of non-directional modes and a plurality of directional modes. The intra prediction unit 265 can also determine the prediction mode currently applied to the block by using the prediction mode applied to the peripheral block.

インター予測部260は、参照ピクチャ上で動きベクトルによって特定される参照ブロック(参照サンプルアレイ)に基づいて、現在ブロックの予測されたブロックを誘導することができる。このとき、インター予測モードで転送される動き情報の量を減らすために周囲のブロックと現在ブロックの間の動き情報の相関性に基づいて動き情報をブロック、サブブロック、またはサンプル単位で予測することができる。動き情報は、動きベクトルと参照ピクチャインデックスを含むことができる。動き情報は、インター予測方向(L0予測、L1予測、Bi予測など)の情報をさらに含むことができる。インター予測の場合、周辺ブロックは、現在のピクチャ内に存在する空間的周りのブロック(spatial neighboring block)と参照ピクチャに存在する時間的周辺ブロック(temporal neighboring block)を含むことができる。例えば、インター予測部260は、周辺ブロックに基づいて動き情報候補リストを構成し、受信した候補選択情報に基づいて、現在ブロックの動きベクトル及び/または参照ピクチャインデックスを導出することができる。様々な予測モードに基づいて、インター予測が行われることができ、予測に関する情報は、現在ブロックのインター予測のモードを指示する情報を含むことができる。 The inter-prediction unit 260 can derive the predicted block of the current block based on the reference block (reference sample array) identified by the motion vector on the reference picture. At this time, in order to reduce the amount of motion information transferred in the inter-prediction mode, the motion information is predicted in block, sub-block, or sample units based on the correlation of the motion information between the surrounding block and the current block. Can be done. The motion information can include a motion vector and a reference picture index. The motion information can further include information in the inter-prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). For inter-prediction, the peripheral block can include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture. For example, the inter-prediction unit 260 can configure a motion information candidate list based on peripheral blocks and derive a motion vector and / or a reference picture index of the current block based on the received candidate selection information. Inter-prediction can be made based on various prediction modes, and the information about the prediction can include information indicating the mode of inter-prediction of the current block.

加算部235は、獲得されたレジデュアル信号をインター予測部260またはイントラ予測部265から出力された予測信号(予測されたブロック、予測サンプルアレイ)に加えることで復元信号(復元ピクチャ、復元ブロック、復元、サンプルアレイ)を生成することができる。スキップモードが適用された場合と同様に処理対象ブロックのレジデュアルがない場合は、予測されたブロックが復元ブロックとして用いられる。 The addition unit 235 adds the acquired residency signal to the prediction signal (predicted block, prediction sample array) output from the inter-prediction unit 260 or the intra-prediction unit 265, whereby the restoration signal (reconstruction picture, restoration block, Restoration, sample array) can be generated. As in the case where the skip mode is applied, if there is no register dual of the block to be processed, the predicted block is used as the restore block.

加算部235は、復元部または復元ブロック生成部と呼ばれることができる。生成された復元信号は、現在のピクチャ内の次の処理対象ブロックのイントラ予測のために用いられ、後述するようにフィルタリングを経て、次のピクチャのインター予測のために用いられることもできる。 The addition unit 235 can be called a restoration unit or a restoration block generation unit. The generated restore signal is used for intra-prediction of the next block to be processed in the current picture, and can also be used for inter-prediction of the next picture after filtering as described later.

フィルタリング部240は、復元信号にフィルタリングを適用することにより、主観的/客観的画質を向上させることができる。例えば、フィルタリング部240は、復元ピクチャに様々なフィルタリング方法を適用して修正された(modified)復元ピクチャを生成することができ、修正された復元ピクチャを復号ピクチャバッファ250に転送することができる。様々なフィルタリングの方法は、例えば、ジブロッキングフィルタリング、サンプル適応的オフセット(sample adaptive offset、SAO)、適応的ループフィルタ(adaptive loop filter、ALF)、両方向フィルタ(bilateral filter)などを含むことができる。 The filtering unit 240 can improve the subjective / objective image quality by applying the filtering to the restored signal. For example, the filtering unit 240 can apply various filtering methods to the restored picture to generate a modified restored picture, and can transfer the modified restored picture to the decoding picture buffer 250. Various filtering methods can include, for example, diblocking filtering, sample adaptive offset (SAO), adaptive loop filter (ALF), bilateral filter and the like.

復号ピクチャバッファ250に転送された修正された復元ピクチャは、インター予測部260によって参照ピクチャとして用いられる。 The modified restored picture transferred to the decoded picture buffer 250 is used as a reference picture by the inter-prediction unit 260.

本明細書において、エンコード装置100のフィルタリング部160、インター予測部180及びイントラ予測部185で説明された実施形態は、それぞれのデコード装置のフィルタリング部240、インター予測部260及びイントラ予測部265にも同一または対応するように適用することができる。 In the present specification, the embodiments described by the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the encoding device 100 are also described in the filtering unit 240, the inter prediction unit 260, and the intra prediction unit 265 of the respective decoding devices. Can be applied identically or correspondingly.

図4は、本発明が適用される実施形態でとして、コンテンツストリーミングシステムの構造図である。 FIG. 4 is a structural diagram of a content streaming system as an embodiment to which the present invention is applied.

本発明が適用される コンテンツストリーミングシステムは、大きくエンコードサーバ410、ストリーミングサーバ420、Webサーバ430、メディアストレージ440、ユーザ装置450及びマルチメディア入力デバイス460を含むことができる。 The content streaming system to which the present invention is applied can largely include an encoding server 410, a streaming server 420, a Web server 430, a media storage 440, a user device 450, and a multimedia input device 460.

エンコードサーバ410は、スマートフォン、カメラ、キャムコーダなどのようなマルチメディア入力デバイスから入力されたコンテンツをデジタルデータに圧縮してビットストリームを生成し、これをストリーミングサーバ420に転送する役割をする。他の例として、スマートフォン、カメラ、キャムコーダなどのようなマルチメディア入力装置460がビットストリームを直接生成する場合、エンコードサーバ410は、省略することができる。 The encoding server 410 is responsible for compressing content input from multimedia input devices such as smartphones, cameras, and camcoders into digital data to generate a bitstream, which is then transferred to the streaming server 420. As another example, if the multimedia input device 460, such as a smartphone, camera, camcorder, etc., directly generates a bitstream, the encode server 410 can be omitted.

ビットストリームは、本発明が適用されるエンコード方法またはビットストリームを生成する方法によって生成されることができ、ストリーミングサーバ420は、ビットストリームを転送または受信する過程で一時的にビットストリームを貯蔵することができる。 The bitstream can be generated by the encoding method to which the present invention is applied or the method of generating the bitstream, and the streaming server 420 temporarily stores the bitstream in the process of transferring or receiving the bitstream. Can be done.

ストリーミングサーバ420は、Webサーバ430を介したユーザの要請に基づいて、マルチメディアデータをユーザ装置450に転送し、Webサーバ430は、ユーザにどのようなサービスがあるかを知らせる媒介の役割をする。ユーザがWebサーバ430に所望するサービスを要請すると、Webサーバ430は、これをストリーミングサーバ420に伝達し、ストリーミングサーバ420は、ユーザにマルチメディアデータを転送する。このとき、コンテンツストリーミングシステムは、別の制御サーバを含むことができ、この場合、制御サーバは、コンテンツストリーミングシステム内の各デバイス間のコマンド/応答を制御する役割をする。 The streaming server 420 transfers multimedia data to the user apparatus 450 based on the request of the user via the Web server 430, and the Web server 430 acts as an intermediary for informing the user of what kind of service is available. .. When the user requests the desired service from the web server 430, the web server 430 transmits this to the streaming server 420, and the streaming server 420 transfers the multimedia data to the user. At this time, the content streaming system may include another control server, in which case the control server serves to control commands / responses between each device in the content streaming system.

ストリーミングサーバ420は、メディアストレージ440及び/またはエンコーディングサーバ410からコンテンツを受信することができる。たとえば、エンコードサーバ410からコンテンツを受信することになる場合、コンテンツをリアルタイムで受信することができる。この場合、円滑なストリーミングサービスを提供するために、ストリーミングサーバ420は、ビットストリームを一定時間の間貯蔵することができる。 The streaming server 420 can receive content from the media storage 440 and / or the encoding server 410. For example, when the content is to be received from the encode server 410, the content can be received in real time. In this case, in order to provide a smooth streaming service, the streaming server 420 can store the bitstream for a certain period of time.

ユーザデバイス450の例としては、携帯電話、スマートフォン(smart phone)、ノートパソコン(laptop computer)、デジタル放送用端末機、PDA(personal digital assistants)、PMP(portable multimedia player)、ナビゲーション、スレートPC(slate PC)、タブレットPC(tablet PC)、ウルトラブック(ultrabook)、ウェアラブルデバイス(wearable device、例えば、ウォッチ型端末(smartwatch)、グラス型端末(smart glass)、HMD(head mounted display))、デジタルTV 、デスクトップコンピュータ、デジタルサイネージなどを有することができる。 Examples of the user device 450 include mobile phones, smartphones (smart phones), laptop computers, digital broadcasting terminals, PDA (personal digital assistants), PMPs (portable multimedia players), navigation systems, and slate PCs (slate). PC), tablet PC (tablet PC), ultrabook, wearable device (eg, watch-type terminal (smartwatch), glass-type terminal (smart glass), HMD (head mounted display)), digital TV, You can have a desktop computer, digital signage, etc.

コンテンツストリーミングシステム内の各サーバは、分散サーバで運営されることができ、この場合、各サーバで受信するデータは、分散処理することができる。 Each server in the content streaming system can be operated by a distributed server, and in this case, the data received by each server can be distributed processed.

図5は、本発明が適用されることができる実施形態として、図5aは、QT(QuadTree、QT)、図5bは、BT(Binary Tree、BT)、図5cは、TT(Ternary Tree、TT)図5dは、AT(Asymmetric Tree、AT)によるブロック分割構造を説明するための図である。 5A is an embodiment to which the present invention can be applied. FIG. 5a is a QT (QuadTree, QT), FIG. 5b is a BT (Binary Tree, BT), and FIG. 5c is a TT (Ternary Tree, TT). ) FIG. 5d is a diagram for explaining a block division structure by AT (Asymmetric Tree, AT).

ビデオコーディングにおいて1つのブロックは、QTに基づいて分割されることができる。また、QTによって分割された一つのサブブロック(subblock)はQTを用いて再帰的にさらに分割されることができる。もはやQT分割されないリーフブロック(leaf block)はBT、TTまたはATの内の少なくとも一つの方式によって分割されることができる。 BTはhorizontal BT(2NxN、2NxN)とvertical BT(Nx2N、Nx2N)の二つの形態の分割を有することがある。 TTはhorizontal TT(2Nx1/2N、2NxN、2Nx1/2N)とvertical TT(1/2Nx2N、Nx2N、1/2Nx2N)の二つの形態の分割を有することがある。 ATはhorizontal-up AT(2Nx1/2N、2Nx3/ 2N)、horzontal-down AT(2Nx3/2N、2Nx1/2N)、vertical-left AT(1/2Nx2N、3/2Nx2N)、vertical-right AT(3/2Nx2N、1/2Nx2N)の四つの形態の分割を有することができる。それぞれのBT、TT、ATはBT、TT、ATを用いて再帰的にさらに分割されることができる。 In video coding one block can be divided based on QT. Also, one subblock divided by QT can be recursively further divided using QT. Leaf blocks that are no longer QT divided can be divided by at least one of BT, TT or AT methods. The BT may have two forms of division, horizontal BT (2NxN, 2NxN) and vertical BT (Nx2N, Nx2N). The TT may have two forms of division: horizontal TT (2Nx1 / 2N, 2NxN, 2Nx1 / 2N) and vertical TT (1/2Nx2N, Nx2N, 1/2Nx2N). AT is horizontal-up AT (2Nx1 / 2N, 2Nx3 / 2N), horizontal-down AT (2Nx3 / 2N, 2Nx1 / 2N), vertical-left AT (1/2Nx2N, 3 / 2Nx2N), vertical-right AT (3). It can have four forms of division (/ 2Nx2N, 1/2Nx2N). Each BT, TT, AT can be recursively subdivided using BT, TT, AT.

図5aは、QT分割の例を示す。ブロックAは、QTによって4つのサブブロック(A0、A1、A2、A3)に分割されることができる。サブブロックA1は、再びQTによって4つのサブブロック(B0、B1、B2、B3)に分割されることができる。 FIG. 5a shows an example of QT division. Block A can be divided into four sub-blocks (A0, A1, A2, A3) by QT. The sub-block A1 can be divided into four sub-blocks (B0, B1, B2, B3) again by QT.

図5bはBT分割の例を示す。 QTによってもはや分割されないブロックB3は、vertical BT(C0、C1)またはhorizontal BT(D0、D1)に分割されることができる。ブロックC0のように、それぞれのサブブロックは、horizontal BT(E0、E1)またはvertical BT(F0、F1)の形態のように再帰的にさらに分割されることができる。 FIG. 5b shows an example of BT division. Block B3, which is no longer divided by QT, can be divided into vertical BT (C0, C1) or horizontal BT (D0, D1). Like block C0, each subblock can be recursively subdivided in the form of a horizontal BT (E0, E1) or vertical BT (F0, F1).

図5cはTT分割の例を示す。 QTによってもはや分割されないブロックB3は、vertical TT(C0、C1、C2)またはhorizontal TT(D0、D1、D2)に分割されることができる。ブロックC1のように、それぞれのサブブロックは、horizontal TT(E0、E1、E2)またはvertical TT(F0、F1、F2)の形態のように再帰的にさらに分割されることができる。 FIG. 5c shows an example of TT division. Block B3, which is no longer divided by QT, can be divided into vertical TT (C0, C1, C2) or horizontal TT (D0, D1, D2). Like block C1, each subblock can be recursively subdivided in the form of horizontal TT (E0, E1, E2) or vertical TT (F0, F1, F2).

図5dはAT分割の例を示す。 QTによってもはや分割されないブロックB3は、vertical AT(C0、C1)またはhorizontal AT(D0、D1)に分割されることができる。ブロックC1のように、それぞれのサブブロックは、horizontal AT(E0、E1)またはvertical TT(F0、F1)の形態のように再帰的にさらに分割されることができる。 FIG. 5d shows an example of AT division. Block B3, which is no longer divided by QT, can be divided into vertical AT (C0, C1) or horizontal AT (D0, D1). Like block C1, each subblock can be recursively subdivided in the form of horizontal AT (E0, E1) or vertical TT (F0, F1).

一方、BT、TT、AT分割は一緒に使用して分割が可能である。たとえば、BTによって分割されたサブブロックは、TTまたはATによる分割が可能である。また、TTによって分割されたサブブロックは、BTまたはATによる分割が可能である。 ATによって分割されたサブブロックは、BTまたはTTによる分割が可能である。たとえば、horizontal BT分割以後、それぞれのサブブロックがvertical BTに分割されることができ、またはvertical BT分割以後、それぞれのサブブロックがhorizontal BTに分割されることもできる。この場合、分割順番は異なるが、最終的に分割される形は同じである。 On the other hand, BT, TT, and AT division can be used together for division. For example, a subblock divided by BT can be divided by TT or AT. Further, the subblock divided by TT can be divided by BT or AT. The sub-block divided by AT can be divided by BT or TT. For example, after the horizontal BT division, each sub-block can be divided into vertical BT, or after the vertical BT division, each sub-block can be divided into horizontal BT. In this case, the order of division is different, but the final division is the same.

また、ブロックが分割されると、ブロックを探索する順序を多様に定義することができる。一般的に、左側から右側に、上端から下端に探索を行い、ブロックを探索するということは、各分割されたサブブロックの追加のブロックを分割するかどうかを決定する順序を意味するか、ブロックがもはや分割されない場合、各サブブロックの符号化順序を意味するか、またはサブブロックで他の隣接ブロックの情報を参照するときの探索順序を意味することができる。 In addition, when the blocks are divided, the order in which the blocks are searched can be defined in various ways. In general, searching from left to right, top to bottom, and searching for blocks means the order in which you decide whether to split additional blocks in each split subblock, or blocks. When is no longer divided, it can mean the coding order of each subblock, or the search order when a subblock refers to information in another adjacent block.

図5a乃至5dのような分割構造によって分割された処理ユニット(または、変換ブロック)ごとに変換が実行されることができ、特に、行(row)方向と列(column)方向別に分割され、変換行列が適用されることができる。本発明の実施形態に係ると、処理ユニット(または変換ブロック)の行方向または列方向の長さに応じて、他の変換タイプが用いられる。 The conversion can be performed for each processing unit (or conversion block) divided by the division structure as shown in FIGS. 5a to 5d, and in particular, the conversion is divided into the row direction and the column direction. A matrix can be applied. According to embodiments of the present invention, other conversion types are used, depending on the length of the processing unit (or conversion block) in the row or column direction.

変換は、レジデュアルブロックに適用されるが、これは最大限レジデュアルブロックを無相関化(decorrelate)し、低周波数に係数を集中させ、ブロックの先端に0の尾(zero tail)を作成するためである。JEMソフトウェアで変換パーツは2つの主要な機能(コア変換(core transform)、2次変換(secondary transform))を含む。コア変換は、レジデュアルブロックのすべての行と列に適用されるDCT(discrete cosine transform)及びDST(discrete sine transform)変換ファミリーで構成される。以後2次変換がコア変換の出力の左上側コーナー(top left corner)に追加的に適用することができる。類似に2次逆変換とコア逆変換の順序の逆変換が適用されることができる。まず、2次逆変換が係数ブロックの左上側コーナーに適用することができる。以後コア逆変換が2次逆変換の出力の行及び列に適用される。コア変換または逆変換は、1次変換または逆変換と指称されることができる。 The transformation is applied to the register dual block, which decorrelates the register dual block to the maximum extent, concentrates the coefficients at low frequencies, and creates a zero tail at the tip of the block. Because. In JEM software, the transformation part contains two main functions (core transform) and secondary transform. The core transform consists of a family of DCT (discrete cosine transform) and DST (discrete sine transform) transforms that apply to all rows and columns of the resilient block. After that, the secondary transformation can be additionally applied to the top left corner of the output of the core transformation. Similarly, the inverse transformation of the order of the quadratic inverse transformation and the core inverse transformation can be applied. First, the quadratic inverse transformation can be applied to the upper left corner of the coefficient block. After that, the core inverse transformation is applied to the rows and columns of the output of the quadratic inverse transformation. A core transformation or an inverse transformation can be referred to as a primary transformation or an inverse transformation.

図6及び図7は、本発明が適用される実施形態として、図6は、図2のエンコード装置100内の変換及び量子化部(120/130)、逆量子化及び逆変換部(140/150)の概略的なブロック図を示し、図7は、デコード装置200内の逆量子化及び逆変換部(220/230)の概略的なブロック図を示す。 6 and 7 show, as an embodiment to which the present invention is applied, FIG. 6 shows a conversion and quantization unit (120/130) and an inverse quantization and inverse conversion unit (140/130) in the encoding device 100 of FIG. A schematic block diagram of 150) is shown, and FIG. 7 shows a schematic block diagram of the inverse quantization and inverse conversion unit (220/230) in the decoding apparatus 200.

図6を注意深く見ると、変換、及び量子化部(120/130)は、1次変換部(primary transform unit)121、2次変換部(secondary transform unit)122及び量子化部130を含むことができる。逆量子化及び逆変換部(140/150)は、逆量子化部140、逆2次変換部(inverse secondary transform unit)151及び逆1次変換部(inverse primary transform unit)152を含むことができる。 Looking carefully at FIG. 6, the transform and quantize unit (120/130) may include a primary transform unit 121, a secondary transform unit 122 and a quantize unit 130. can. The inverse quantization and inverse transformation unit (140/150) can include an inverse quantization unit 140, an inverse secondary transform unit 151, and an inverse primary transform unit 152. ..

図7を 注意深く見ると、逆量子化及び逆変換部(220/230)は、逆量子化部220、逆2次変換部(inverse secondary transform unit)231と逆1次変換部(inverse primary transform unit)232を含むことができる。 Looking carefully at FIG. 7, the inverse quantization and inverse transform units (220/230) are the inverse quantize unit 220, the inverse secondary transform unit 231 and the inverse primary transform unit. ) 232 can be included.

本発明において、変換を実行するとき、複数の段階を経て変換を実行することができる。例えば、図6に示すように、1次変換(primary transform)、2次変換(secondary transform)の2段階を適用することができ、またはアルゴリズムに基づいて、それ以上の変換段階が用いられる。ここで、1次変換は、コア変換(core transform)と指称されることができる。 In the present invention, when the conversion is performed, the conversion can be performed in a plurality of steps. For example, as shown in FIG. 6, two stages of a primary transform and a secondary transform can be applied, or more transformation steps are used based on the algorithm. Here, the primary transform can be referred to as a core transform.

1次変換部121は、レジデュアル信号に対して1次変換を適用することができ、ここで、1次変換はエンコーダ及び/またはデコーダからテーブルに既定儀されることができる。 The primary conversion unit 121 can apply the primary conversion to the resilient signal, where the primary conversion can be defaulted to the table from the encoder and / or the decoder.

2次変換部122は、1次変換された信号に対して2次変換を適用することができ、ここで、2次変換はエンコーダ及び/またはデコーダからテーブルに既定儀されることができる。 The secondary conversion unit 122 can apply the secondary conversion to the linearly converted signal, and here the secondary conversion can be defaulted to the table from the encoder and / or the decoder.

一実施形態において、2次変換として非分離2次変換(non-separable secondary transform)(NSST)が条件的に適用することができる。例えば、NSSTは画面内予測ブロックの場合にのみ適用され、予測モードグループごとに適用可能な変換セットを有することができる。 In one embodiment, a non-separable secondary transform (NSST) can be conditionally applied as a secondary transform. For example, NSST may only be applied in the case of in-screen prediction blocks and may have a conversion set applicable for each prediction mode group.

ここで、予測モードグループは、予測方向の対称性に基づいて設定されることができる。例えば、予測モード52と予測モード16は、予測モード34(対角方向)に基づいて対称であるので、1つのグループを形成して、同じ変換セット(transform set)が適用されることができる。このとき、予測モード52の変換を適用するとき、入力データを転置(transpose)した後に適用し、これは予測モード16と変換セットが同じであるからである。 Here, the prediction mode group can be set based on the symmetry of the prediction direction. For example, the prediction mode 52 and the prediction mode 16 are symmetrical based on the prediction mode 34 (diagonal direction), so that one group can be formed and the same transform set can be applied. At this time, when applying the conversion of the prediction mode 52, it is applied after transposing the input data, because the conversion set is the same as that of the prediction mode 16.

一方、プランナーモード(Planar mode)とDCモード(DC mode)の場合、方向の対称性が存在しないため、それぞれの変換セットを有し、該変換セットは、2つの変換で構成されることができる。残りの方向性モードに対しては、変換セットごとに3つの変換で構成されることができる。 On the other hand, in the case of the planner mode (Planar mode) and the DC mode (DC mode), since there is no directional symmetry, each has a conversion set, and the conversion set can be composed of two conversions. .. For the remaining directional modes, each conversion set can consist of three transformations.

量子化部130は、2次変換された信号に対して量子化を行うことができる。 The quantization unit 130 can perform quantization on the second-order converted signal.

逆量子化及び逆変換部(140/150)は、先に説明した過程を逆に実行し、重複する説明は省略する。 The inverse quantization and inverse transformation unit (140/150) reversely executes the process described above, and omits duplicate explanations.

図7は、デコード装置200内の逆量子化及び逆変換部(220/230)の概略的なブロック図を示す。 FIG. 7 shows a schematic block diagram of the inverse quantization and inverse transformation unit (220/230) in the decoding apparatus 200.

図7を参照すると、逆量子化及び逆変換部(220/230)は、逆量子化部220、逆2次変換部(inverse secondary transform unit231及び逆1次変換部(inverse primary transform unit) 232を含むことができる。 Referring to FIG. 7, the inverse quantization and inverse transformation unit (220/230) includes an inverse quantization unit 220, an inverse secondary transform unit 231 and an inverse primary transform unit 232. Can include.

逆量子化部220は、量子化段階サイズ情報を用いて、エントロピーデコード(復号化)された信号から変換係数を獲得する。 The inverse quantization unit 220 acquires a conversion coefficient from the entropy-decoded signal by using the quantization step size information.

逆2次変換部231においては、変換係数に対して逆2次変換を実行する。ここで、逆2次変換は、図6で説明した2次変換の逆変換を示す。 In the inverse quadratic transformation unit 231, the inverse quadratic transformation is executed for the conversion coefficient. Here, the inverse quadratic transformation indicates the inverse transformation of the quadratic transformation described with reference to FIG.

逆1次変換部232は、逆2次変換された信号(またはブロック)について逆1次変換を行い、残差信号(residual signal)を獲得することになる。ここで、逆1次変換は、図6で説明した前記1次変換(primary transform)の逆変換を示す。 The inverse primary conversion unit 232 performs inverse primary conversion on the signal (or block) that has been inverted secondary converted, and acquires a residual signal. Here, the inverse primary transformation shows the inverse transformation of the primary transform described with reference to FIG.

HEVCに適用されるDCT−2と4x4 DST−4に加えて、適応的(または明示的)多重変換(adaptive multiple transformまたはexplicit multiple transform)(AMTまたはEMT)技法がインター及びイントラエンコーディングされたブロックのレジデュアルコーディングのために用いられる。 HEVCでの変換、その他のDCT/DSTファミリーからの多数の選択された変換が用いられる。 JEMから新しく紹介された変換行列は、DST−7、DCT−8、DST−1、及びDCT−5である。下の表1は、選択されたDST/DCTの基底関数を示す。 In addition to DCT-2 and 4x4 DST-4 applied to HEVC, adaptive multiple transform or explicit multiple transform (AMT or EMT) techniques are applied to the inter- and intra-encoded blocks. Used for resilient coding. Conversions in HEVC and a number of selected conversions from other DCT / DST families are used. The transformation matrices newly introduced by JEM are DST-7, DCT-8, DST-1 and DCT-5. Table 1 below shows the basis functions of the selected DST / DCT.

Figure 2022500965
Figure 2022500965

EMTは64より小さいか同じ幅と高さを有するCUに適用されることができ、EMTが適用されるかどうかは、CUレベルフラグによって制御することができる。CUレベルフラグが0であれば、DCT−2が残差(residue)をエンコーディングするために、CUに適用される。EMTが適用されるCU内ルマコーディングブロックに対し、2つの追加のフラグが用いられる水平及び垂直変換を識別するためにシグナリングされる。HEVCのように、JEMのブロックのレジデュアルは変換スキップモードでコーディングされることができる。イントラレジデュアルコーディングのために、他のイントラ予測モードの他のレジデュアル統計により、モード‐依存的変換候補の選択プロセスが用いられる。3つの変換サブセットが、以下の表2のように定義されており、変換サブセットは、表3に示すようにイントラ予測モードに基づいて変換サブセットが選択される。 EMT can be applied to CUs that are less than 64 or have the same width and height, and whether EMT is applied can be controlled by the CU level flag. If the CU level flag is 0, then DCT-2 is applied to the CU to encode the residual. For the Luma coding block in the CU to which the EMT is applied, two additional flags are signaled to identify the horizontal and vertical transformations used. Like HEVC, JEM's block residency can be coded in conversion skip mode. For intra-residual coding, other resilience statistics of other intra-prediction modes use the process of selecting mode-dependent conversion candidates. The three conversion subsets are defined as shown in Table 2 below, and the conversion subset is selected based on the intra prediction mode as shown in Table 3.

Figure 2022500965
Figure 2022500965

サブセットコンセプトと一緒に、変換のサブセットは、CU−レベルEMT_CU_flagが1であるCUのイントラ予測モードを用いることにより、表2に基づいて、最初に確認される。以降、水平(EMT_TU_horizontal_flag)と垂直(EMT_TU_vertical_flag)変換のそれぞれについて、確認された変換のサブセット内の2つの変換候補の内から一つが、表3に基づいて、フラグを使用した明示的なシグナリングに基づいて選択される。 Along with the subset concept, a subset of transformations are first identified based on Table 2 by using the intra-prediction mode of the CU with a CU-level EMT_CU_flag of 1. Hereafter, for each of the horizontal (EMT_TU_horizontal_flag) and vertical (EMT_TU_vertical_flag) transformations, one of the two conversion candidates within the subset of confirmed transformations is based on explicit signaling with flags, based on Table 3. Is selected.

Figure 2022500965
Figure 2022500965

Figure 2022500965
Figure 2022500965

表4は、本発明が適用される実施形態として、AMT(adaptive multiple transform)が適用される変換設定グループ(transform configuration group)を示す。 Table 4 shows a transform configuration group to which AMT (adaptive multiple transform) is applied as an embodiment to which the present invention is applied.

表4を注意深く見ると、変換設定グループ(transform configuration group)は、予測モードに基づいて決定され、グループの数は、総6個(G0〜G5)で有り得る。そして、G0〜G4は、イントラ予測が適用される場合に当該し、G5は、インター予測によって生成された残差ブロックに適用される変換の組み合わせ(または変換セット、変換組み合わせセット)を示す。 Looking carefully at Table 4, the transform configuration group is determined based on the prediction mode, and the number of groups can be 6 (G0 to G5) in total. Then, G0 to G4 correspond to the case where the intra prediction is applied, and G5 indicates the combination of transformations (or the transformation set, the transformation combination set) applied to the residual block generated by the inter-prediction.

一つの変換の組み合わせは、当該2Dブロックの行(row)に適用される水平変換(horizontal transform)(または行変換(row transform))と列(column)に適用される垂直変換(vertical transoform)(または列変換(column transform))で行うことができる。 One combination of transformations is a horizontal transform (or row transform) applied to the row of the 2D block and a vertical transoform applied to the column (vertical transoform). Or it can be done by column transform.

ここで、すべての変換設定のグループは、各4つの変換組み合わせの候補を有することができる。4つの変換の組み合わせ候補は0〜3の変換組み合わせのインデックスを介して選択または決定することができ、エンコーダからデコーダへの変換組み合わせのインデックスをエンコードして転送することができる。 Here, each group of conversion settings can have four conversion combination candidates. The four conversion combination candidates can be selected or determined via the index of 0 to 3 conversion combinations, and the index of the conversion combination from the encoder to the decoder can be encoded and transferred.

一実施形態で、イントラ予測を介して獲得された残差データ(または残差信号)は、イントラ予測モードに応じて、その統計的特性がそれぞれ異なることができる。したがって、表4のようにイントラ予測別に一般的なコサイン変換ではなく、別の変換が適用されることができる。本明細書において、変換タイプは、例えば、DCT−Type 2、DCT−II、DCT−2のように表記することができる。 In one embodiment, the residual data (or residual signal) acquired via intra-prediction can have different statistical characteristics depending on the intra-prediction mode. Therefore, instead of the general cosine transform for each intra prediction as shown in Table 4, another transform can be applied. In the present specification, the conversion type can be expressed as, for example, DCT-Type 2, DCT-II, DCT-2.

表4を注意深く見ると、35個のイントラ予測モードを用いる場合と67個のイントラ予測モードを用いる場合が現れる。各イントラ予測モードの列で区分された変換設定グループごとに複数の変換の組み合わせが適用されることができる。例えば、複数の変換の組み合わせは、4つの(行方向変換、列方向変換)の組み合わせで構成されることができる。具体例として、グループ0においては、行(水平)方向と列(縦)方向のすべてDST−7とDCT−5が適用されることができ、総4つの組み合わせが可能である。 A careful look at Table 4 reveals the use of 35 intra-prediction modes and the use of 67 intra-prediction modes. A combination of multiple transformations can be applied to each transformation setting group divided by the columns of each intra-prediction mode. For example, a combination of a plurality of conversions can be composed of a combination of four (row direction conversion, column direction conversion). As a specific example, in group 0, DST-7 and DCT-5 can be applied to all of the row (horizontal) direction and the column (vertical) direction, and a total of four combinations are possible.

各イントラ予測モードに対して、総4つの変換カーネルの組み合わせが適用されることができるので、その内、一つを選択するための変換組み合わせのインデックスが変換ユニット(transform unit)ごとに転送されることができる。本明細書において、変換組み合わせのインデックスは、AMTインデックス(AMT index)と呼ばれることができ、amt_idxで表現されることができる。 Since a total of four transform kernel combinations can be applied to each intra prediction mode, the index of the transform combination for selecting one of them is transferred for each transform unit. be able to. In the present specification, the index of the conversion combination can be referred to as an AMT index and can be expressed by amt_idx.

また、表4で提示された変換カーネル以外にも、残差信号の特性上、行方向と列方向の全てにDCT−2が最適な場合が発生することができる。したがって、コーディングユニット毎にAMTフラグを定義することにより、適応的に変換が適用されることができる。ここで、AMTフラグが0の場合、行方向と列方向の全てにDCT−2が適用され、AMTフラグが1の場合、AMTのインデックスを使用して、4つの組み合わせのいずれかが選択または決定することができる。 In addition to the conversion kernels presented in Table 4, DCT-2 may be optimal in all of the row and column directions due to the characteristics of the residual signal. Therefore, by defining the AMT flag for each coding unit, the conversion can be applied adaptively. Here, if the AMT flag is 0, DCT-2 is applied in all the row and column directions, and if the AMT flag is 1, the AMT index is used to select or determine one of the four combinations. can do.

一実施形態で、AMTフラグが0の場合、1つの変換ユニットの変換係数の数が3より小さいと、表4の変換カーネルが適用されず、行方向と列方向の全てDST−7が適用されることができる。 In one embodiment, if the AMT flag is 0 and the number of conversion coefficients in one conversion unit is less than 3, the conversion kernel in Table 4 is not applied and DST-7 is applied in all row and column directions. Can be

一実施形態として、変換係数の値を先にパーシング(解析)して、変換係数の数が3より小さければ、AMTインデックスが解析されず、DST−7が適用されることにより付加情報転送量が減少することができる。 In one embodiment, the value of the conversion coefficient is parsed (analyzed) first, and if the number of conversion coefficients is smaller than 3, the AMT index is not analyzed and the additional information transfer amount is increased by applying DST-7. Can be reduced.

一実施形態として、AMTは、変換ユニットの幅と高さの全てが32以下の場合にのみ、適用することができる。 In one embodiment, AMT can only be applied if the total width and height of the conversion unit is 32 or less.

一実施形態で、表4は、オフライントレーニング(off-line training)を介して基に設定されることができる。 In one embodiment, Table 4 can be based on off-line training.

一実施形態でAMTインデックスは、水平変換と垂直変換の組み合わせを同時に指すことができる、1つのインデックスとして定義することができる。または、AMTインデックスは、別の水平変換インデックスと垂直変換インデックスで定義することができる。 In one embodiment, the AMT index can be defined as one index that can simultaneously point to a combination of horizontal and vertical transformations. Alternatively, the AMT index can be defined by another horizontal and vertical conversion index.

図8は、AMT(adaptive multiple transform)が実行される過程を示すフローチャートである。 FIG. 8 is a flowchart showing a process in which AMT (adaptive multiple transform) is executed.

本明細書において、水平方向と垂直方向に対して分離して、変換が適用される分離 可能な変換(separable transform)の実施形態が、基本的に説明されるが、変換の組み合わせは、非分離変換(non-separable transform)にも構成することができる。 In the present specification, an embodiment of a separable transform in which the transformation is applied separately in the horizontal direction and the vertical direction is basically described, but the combination of transformations is non-separable. It can also be configured as a non-separable transform.

または、分離可能な変換と非分離変換の混合にも変換の組み合わせが構成されることができる。この場合、非分離変換が用いられると、行/列別変換選択や水平/垂直方向別の選択は不要になり、分離可能な変換が選択される場合にのみ、表4の変換の組み合わせが用いられることができる。 Alternatively, a combination of transformations can be configured for a mixture of separable and non-separable transformations. In this case, if non-separable transformations are used, row / column transformation selections and horizontal / vertical transformation selections are no longer necessary, and only when separable transformations are selected, the transformation combinations in Table 4 are used. Can be

また、本明細書で提案される方法は、1次変換や2次変換に関係なく適用することができる。つまり、2つの内、何れか一方にのみ適用されなければならないという制約がなく、両方に適用することができる。ここで、1次変換は残差ブロックを最初に変換するための変換を意味することができ、2次変換は、1次変換の結果として生成されたブロックに対し変換を適用するための変換を意味することができる。 Further, the method proposed in the present specification can be applied regardless of the primary transformation or the secondary transformation. That is, there is no restriction that it must be applied to only one of the two, and it can be applied to both. Here, the primary transformation can mean the transformation to transform the residual block first, and the secondary transformation is the transformation to apply the transformation to the block generated as a result of the primary transformation. Can mean.

まず、エンコード装置100は、現在ブロックに対応する変換グループを決定することができる(S805)。ここで、変換グループは、表4の変換グループを意味することができるが、本発明はこれに限定されず、他の変換の組み合わせで構成されることができる。 First, the encoding device 100 can determine the conversion group corresponding to the current block (S805). Here, the conversion group can mean the conversion group in Table 4, but the present invention is not limited to this, and can be composed of a combination of other conversions.

エンコード装置100は、変換グループ内の用いられる候補変換の組み合わせに対して変換を実行することができる(S810)。変換実行結果、エンコード装置100は、RD(rate distortion)コストが最小の変換の組み合わせを決定または選択することができる(S815)。エンコード装置100は、選択された変換の組み合わせに対応する変換組み合わせのインデックスをエンコードすることができる(S820)。 The encoding device 100 can perform conversions on the combination of candidate conversions used in the conversion group (S810). As a result of the conversion execution, the encoding device 100 can determine or select a combination of conversions having the minimum RD (rate distortion) cost (S815). The encoding device 100 can encode the index of the conversion combination corresponding to the selected conversion combination (S820).

図9は、AMTが実行されるデコード過程を示すフローチャートである。 FIG. 9 is a flowchart showing the decoding process in which AMT is executed.

まず、デコード装置200は、現在ブロックのための変換グループを決定することができる(S905)。デコード装置200は、変換組み合わせのインデックスを解析することができ、ここで変換組み合わせのインデックスは、変換グループ内の複数の変換組み合わせの内、いずれか一つに対応することができる(S910)。デコード装置200は、変換組み合わせのインデックスに対応する変換組み合わせを誘導することができる(S915)。ここで、変換組み合わせは、表4で説明された変換組み合わせを意味することができるが、本発明はこれに限定されない。つまり、他の変換の組み合わせによる構成も可能である。 First, the decoding device 200 can determine the conversion group for the current block (S905). The decoding device 200 can analyze the index of the conversion combination, and the index of the conversion combination can correspond to any one of the plurality of conversion combinations in the conversion group (S910). The decoding device 200 can derive a conversion combination corresponding to the index of the conversion combination (S915). Here, the conversion combination can mean the conversion combination described in Table 4, but the present invention is not limited thereto. That is, it is possible to configure by combining other conversions.

デコード装置200は、変換組み合わせに基づいて、現在ブロックに対して逆変換を行うことができる(S920)。変換組み合わせが行変換と列変換で構成される場合、行変換を先に適用した後、列変換を適用することができる。ただし、本発明はこれに限定されず、逆に適用されるか、または非分離変換で構成された場合には、直接非分離変換が適用されることができる。 The decoding device 200 can perform inverse transformation on the current block based on the transformation combination (S920). If the transformation combination consists of a row transformation and a column transformation, the row transformation can be applied first, and then the column transformation can be applied. However, the present invention is not limited to this, and if it is applied in reverse or is composed of non-separable conversion, the direct non-separable conversion can be applied.

一方、他の一実施形態として、変換グループを決定する過程と変換組み合わせのインデックスを解析する過程は、同時に実行することができる。 On the other hand, as another embodiment, the process of determining the transformation group and the process of analyzing the index of the transformation combination can be executed at the same time.

本発明の実施形態に係ると、前述した用語「AMT」は「MTS(multiple transform setまたはmultiple transform selection)」として再定義することができる。以下説明されるMTS関連シンタックス(syntax)とセマンティックス(semantics)はVVC(versatile video coding)標準文書JVET−K1001−v4で定義される。 According to the embodiment of the present invention, the above-mentioned term "AMT" can be redefined as "MTS (multiple transform set or multiple transform selection)". The MTS-related syntax and semantics described below are defined in the VVC (versatile video coding) standard document JVET-K1001-v4.

本発明の実施形態において下記のように方向性モードについて2つのMTS候補と非方向性モードについて4つのMTS候補が用いられる。 In the embodiment of the present invention, two MTS candidates for the directional mode and four MTS candidates for the non-directional mode are used as described below.

A)非方向性モード(DC、プランナー) A) Non-directional mode (DC, planner)

MTSインデックスが0の時、DST−7が水平及び垂直変換に用いられる。 When the MTS index is 0, DST-7 is used for horizontal and vertical conversion.

MTSインデックスが1のとき、DST−7が垂直変換に、DCT−8が水平変換に用いられる。 When the MTS index is 1, DST-7 is used for vertical conversion and DCT-8 is used for horizontal conversion.

MTSインデックスが2のとき、DCT−8が垂直変換に、DST−7が水平変換に用いられる。 When the MTS index is 2, DCT-8 is used for vertical conversion and DST-7 is used for horizontal conversion.

MTSインデックスが3の時、DCT−8が水平及び垂直変換に用いられる。 When the MTS index is 3, DCT-8 is used for horizontal and vertical conversion.

B)水平グループモードに属するモード B) Modes that belong to the horizontal group mode

MTSインデックスが0の時、DST−7が水平及び垂直変換に用いられる。 When the MTS index is 0, DST-7 is used for horizontal and vertical conversion.

MTSインデックスが1のとき、DCT−8が垂直変換に、DST−7が水平変換に用いられる。 When the MTS index is 1, DCT-8 is used for vertical conversion and DST-7 is used for horizontal conversion.

C)垂直グループモードに属するモード C) A mode that belongs to the vertical group mode

MTSインデックスが0の時、DST−7が水平及び垂直変換に用いられる。 When the MTS index is 0, DST-7 is used for horizontal and vertical conversion.

MTSインデックスが1のとき、DST−7が垂直変換に、DCT−8が水平変換に用いられる。 When the MTS index is 1, DST-7 is used for vertical conversion and DCT-8 is used for horizontal conversion.

ここで(67個のモードが用いられるVTM 2.0で)、水平グループモードは2から34番イントラ予測モードを含み、垂直モードは35番から66番イントラ予測モードを含む。 Here (in VTM 2.0, where 67 modes are used), the horizontal group mode includes the 2nd to 34th intra prediction modes and the vertical mode includes the 35th to 66th intra prediction modes.

本発明の他の実施形態において、すべてのイントラ予測モードに対して3つのMTS候補を用いる。 In another embodiment of the invention, three MTS candidates are used for all intra prediction modes.

MTSインデックスが0の時、DST−7が水平及び垂直変換に用いられる。 When the MTS index is 0, DST-7 is used for horizontal and vertical conversion.

MTSインデックスが1のとき、DST−7が垂直変換に、DCT−8が水平変換に用いられる。 When the MTS index is 1, DST-7 is used for vertical conversion and DCT-8 is used for horizontal conversion.

MTSインデックスが2のとき、DCT−8が垂直変換に、DST−7が水平変換に用いられる。 When the MTS index is 2, DCT-8 is used for vertical conversion and DST-7 is used for horizontal conversion.

本発明の他の実施形態において、方向性予測モードに対して2つのMTS候補を、非方向性予測モードに対して3つのMTS候補を用いる。 In another embodiment of the invention, two MTS candidates are used for the directional prediction mode and three MTS candidates are used for the non-directional prediction mode.

A)非方向性モード(DC、プランナー) A) Non-directional mode (DC, planner)

MTSインデックスが0の時、DST−7が水平及び垂直変換に用いられる。 When the MTS index is 0, DST-7 is used for horizontal and vertical conversion.

MTSインデックスが1のとき、DST−7が垂直変換に、DCT−8が水平変換に用いられる。 When the MTS index is 1, DST-7 is used for vertical conversion and DCT-8 is used for horizontal conversion.

MTSインデックスが2のとき、DCT−8が垂直変換に、DST−7が水平変換に用いられる。 When the MTS index is 2, DCT-8 is used for vertical conversion and DST-7 is used for horizontal conversion.

B)水平グループモードに当該する予測モード B) Prediction mode corresponding to the horizontal group mode

MTSインデックスが0の時、DST−7が水平及び垂直変換に用いられる。 When the MTS index is 0, DST-7 is used for horizontal and vertical conversion.

MTSインデックスが1のとき、DCT−8が垂直変換に、DST−7が水平変換に用いられる。 When the MTS index is 1, DCT-8 is used for vertical conversion and DST-7 is used for horizontal conversion.

C)垂直グループモードに当該する予測モード C) Prediction mode corresponding to the vertical group mode

MTSインデックスが0の時、DST−7が水平及び垂直変換に用いられる。 When the MTS index is 0, DST-7 is used for horizontal and vertical conversion.

MTSインデックスが1のとき、DST−7が垂直変換に、DCT−8が水平変換に用いられる。 When the MTS index is 1, DST-7 is used for vertical conversion and DCT-8 is used for horizontal conversion.

本発明の他の実施形態において、一つのMTS候補(例えば、DST−7)をすべてのイントラモードに対して用いられる。この場合、マイナーなコーディング損失と共にエンコード時間が40%まで減少することができる。さらに、一つのフラグがDCT−2とDST−7の間で指示するために用いられる。 In another embodiment of the invention, one MTS candidate (eg, DST-7) is used for all intramodes. In this case, the encoding time can be reduced to 40% with minor coding loss. In addition, one flag is used to indicate between DCT-2 and DST-7.

図10は、本発明の実施形態に基づいてMTSに基づいて逆変換過程を示すフローチャートである。 FIG. 10 is a flowchart showing an inverse transformation process based on MTS based on the embodiment of the present invention.

本発明が適用されるデコード装置200は、、sps_mts_intra_enabled_flagまたはsps_mts_inter_enabled_flagを獲得することができる(S1005)。ここで、sps_mts_intra_enabled_flagはcu_mts_flagがイントラコーディングユニットのレジデュアルコーディング構文に存在するかどうかを示す。たとえば、sps_mts_intra_enabled_flag = 0であれば、cu_mts_flagがイントラコーディングユニットのレジデュアルコーディング構文に存在せず、sps_mts_intra_enabled_flag = 1であれば、cu_mts_flagがイントラコーディングユニットのレジデュアルコーディング構文に存在する。そして、sps_mts_inter_enabled_flagはcu_mts_flagがインターコーディングユニットのレジデュアルコーディング構文に存在するかどうかを示す。たとえば、sps_mts_inter_enabled_flag = 0であれば、cu_mts_flagがインターコーディングユニットのレジデュアルコーディング構文に存在せず、sps_mts_inter_enabled_flag = 1であれば、cu_mts_flagがインターコーディングユニットのレジデュアルコーディング構文に存在する。 The decoding device 200 to which the present invention is applied can acquire sps_mts_intra_enabled_flag or sps_mts_inter_enabled_flag (S1005). Here, sps_mts_intra_enabled_flag indicates whether cu_mts_flag is present in the resilient coding syntax of the intracoding unit. For example, if sps_mts_intra_enabled_flag = 0, cu_mts_flag does not exist in the intracoding unit's resilient coding syntax, and if sps_mts_intra_enabled_flag = 1, cu_mts_flag exists in the intracoding unit's resilient coding syntax. And sps_mts_inter_enabled_flag indicates whether cu_mts_flag is present in the redundant coding syntax of the intercoding unit. For example, if sps_mts_inter_enabled_flag = 0, cu_mts_flag does not exist in the intercoding unit's resilient coding syntax, and if sps_mts_inter_enabled_flag = 1, cu_mts_flag exists in the intercoding unit's resilient coding syntax.

デコード装置200は、sps_mts_intra_enabled_flagまたはsps_mts_inter_enabled_flagに基づいてcu_mts_flagを獲得することができる(S1010)。たとえば、sps_mts_intra_enabled_flag = 1またはsps_mts_inter_enabled_flag = 1のとき、デコード装置200は、cu_mts_flagを獲得することができる。ここで、cu_mts_flagは、MTSがルマ変換ブロックのレジデュアルサンプルに適用されるかどうかを示す。たとえば、cu_mts_flag = 0であると、MTSがルマ変換ブロックのレジデュアルサンプルに適用されず、cu_mts_flag = 1であればMTSがルマ変換ブロックのレジデュアルサンプルに適用される。 The decoding device 200 can acquire the cu_mts_flag based on sps_mts_intra_enabled_flag or sps_mts_inter_enabled_flag (S1010). For example, when sps_mts_intra_enabled_flag = 1 or sps_mts_inter_enabled_flag = 1, the decoding device 200 can acquire cu_mts_flag. Here, cu_mts_flag indicates whether MTS is applied to the resilient sample of the Luma conversion block. For example, if cu_mts_flag = 0, MTS is not applied to the register dual sample of the Luma conversion block, and if cu_mts_flag = 1, MTS is applied to the register dual sample of the Luma conversion block.

デコード装置200は、cu_mts_flagに基づいてmts_idxを獲得することができる(S1015)。たとえば、cu_mts_flag = 1のとき、デコード装置200は、mts_idxを獲得することができる。ここで、mts_idxはどの変換カーネルが現在変換ブロックの水平及び/または垂直方向に沿ったルマレジデュアルサンプルに適用されるかを示す。 The decoding device 200 can acquire mts_idx based on cu_mts_flag (S1015). For example, when cu_mts_flag = 1, the decoding device 200 can acquire mts_idx. Here, mts_idx indicates which transformation kernel is currently applied to the Luma-residual sample along the horizontal and / or vertical orientation of the transformation block.

たとえば、mts_idxについて、本明細書で説明される実施形態の内、少なくとも1つが適用されることができる。 For example, for mts_idx, at least one of the embodiments described herein can be applied.

デコード装置200は、mts_idxに対応する変換カーネルを誘導することができる(S1020)。たとえば、mts_idxに対応する変換カーネルは、水平変換及び垂直変換に区分されて定義することができる。 The decoding device 200 can guide the conversion kernel corresponding to mts_idx (S1020). For example, the conversion kernel corresponding to mts_idx can be defined separately for horizontal conversion and vertical conversion.

一例として、現在ブロックにMTSが適用される場合(つまり、cu_mts_flag = 1)、デコード装置200は、現在ブロックのイントラ予測モードに基づいてMTS候補を構成することができる。この場合、図10のデコードフローチャートにMTS候補を構成する段階がさらに含まれることができる。そして、デコード装置200は、構成されたMTS候補の内からmts_idxを用いて、現在ブロックに適用されるMTS候補を決定することができる。 As an example, when MTS is applied to the current block (ie, cu_mts_flag = 1), the decoding device 200 can configure MTS candidates based on the intra prediction mode of the current block. In this case, the decoding flowchart of FIG. 10 may further include a step of configuring the MTS candidate. Then, the decoding device 200 can determine the MTS candidate currently applied to the block by using mts_idx from the configured MTS candidates.

他の一例として、水平変換および垂直変換は、互いに異なる変換カーネルが適用されることができる。ただし、本発明はこれに限定されず、前記水平変換及び垂直変換は、同じ変換カーネルが適用されることもある。 As another example, horizontal and vertical transformations can be applied with different transformation kernels. However, the present invention is not limited to this, and the same conversion kernel may be applied to the horizontal conversion and the vertical conversion.

そして、デコード装置200は、変換カーネルに基づいて逆変換を行うことができる(S1025)。 Then, the decoding device 200 can perform inverse transformation based on the conversion kernel (S1025).

また、本文書でMTSは、AMTまたはEMTとも表現することができ、同様に、mts_idx図AMT_idx、EMT_idx、AMT_TU_idx EMT_TU_idxなどのような表現することができ、本発明は、このような表現に限定されない。 Further, in this document, MTS can also be expressed as AMT or EMT, and similarly, it can be expressed as mts_idx figure AMT_idx, EMT_idx, AMT_TU_idx EMT_TU_idx, etc., and the present invention is not limited to such expressions. ..

また、本発明において、MTSフラグに基づいてMTSが適用される場合とそうでない場合とを区別して説明するが、本発明は、このような表現に制限されるものではない。例えば、MTSを適用するか否かは、予め定義された特定変換タイプ(基本変換タイプ、デフォルト変換タイプなどに称されてもよい)以外の別の変換タイプ(又は、変換カーネル)を使用するか否かと同一の意味であり得る。もし、MTSが適用される場合、基本変換タイプ以外の別の変換タイプ(例えば、複数の変換タイプのいずれか1つ又は2つ以上の組み合わせられた変換タイプ)が変換に利用され、MTSが適用されない場合、基本変換タイプが変換に利用されることができる。一実施形態において、前記基本変換タイプは、DCT2に設定(又は、定義)されることができる。 Further, in the present invention, the case where the MTS is applied based on the MTS flag and the case where the MTS is not applied will be described separately, but the present invention is not limited to such an expression. For example, whether or not to apply MTS is whether to use another conversion type (or conversion kernel) other than the predetermined specific conversion type (which may be referred to as a basic conversion type, a default conversion type, etc.). It can have the same meaning as whether or not. If MTS is applied, another conversion type other than the basic conversion type (eg, any one or a combination of two or more conversion types of multiple conversion types) is used for the conversion and the MTS is applied. If not, the basic conversion type can be used for the conversion. In one embodiment, the basic conversion type can be set (or defined) in DCT2.

一例として、現在変換ブロックにMTSが適用されるか否かを示すMTSフラグシンタックスと、MTSが適用される場合に前記現在ブロックに適用される変換タイプを示すMTSインデックスシンタックスが個別にエンコーダからデコーダに送信されることもあり、他の一例として、現在変換ブロックにMTSが適用されるか否か及びMTSが適用される場合に前記現在ブロックに適用される変換タイプを両方とも含むシンタックス(例えば、MTSインデックス)がエンコーダからデコーダに送信されることもある。すなわち、後者の実施形態において、前述した基本変換タイプを含む全体変換タイプグループ(又は、変換タイプセット)内で現在変換ブロック(又は、ユニット)に適用される変換タイプを示すシンタックス(又は、シンタックス要素)がエンコーダからデコーダに送信されることがある。 As an example, the MTS flag syntax, which indicates whether or not the MTS is applied to the current conversion block, and the MTS index syntax, which indicates the conversion type applied to the current block when the MTS is applied, are individually output from the encoder. A syntax that may be sent to the decoder and, as another example, includes whether or not the MTS is currently applied to the conversion block and, if the MTS is applied, the conversion type that is applied to the current block. For example, the MTS index) may be transmitted from the encoder to the decoder. That is, in the latter embodiment, a syntax (or thin) indicating the conversion type currently applied to the conversion block (or unit) within the overall conversion type group (or conversion type set) including the basic conversion type described above. Tax elements) may be sent from the encoder to the decoder.

従って、その表現にもかかわらず現在変換ブロックに適用される変換タイプを示すシンタックス(MTSインデックス)はMTSを適用するか否かに関する情報を含むことができる。言い換えると、後者の実施形態においてMTSフラグなしにMTSインデックスのみがシグナリングされるため、この場合は、MTSにDCT2が含まれると解釈できるが、本発明においては、DCT2を適用する場合をMTSを適用しないものと記述してもよく、それにもかかわらずMTSに関する技術的範囲は当該定義内容に限定されない。 Therefore, the syntax (MTS index) indicating the conversion type currently applied to the conversion block despite the representation can include information on whether or not to apply the MTS. In other words, in the latter embodiment, only the MTS index is signaled without the MTS flag. Therefore, in this case, it can be interpreted that DCT2 is included in MTS, but in the present invention, MTS is applied when DCT2 is applied. It may be described as not, and nevertheless, the technical scope regarding MTS is not limited to the content of the definition.

図11は、本発明の実施形態に基づいてMTSに基づいてデコードを実行する装置のブロック図である。 FIG. 11 is a block diagram of an apparatus that performs decoding based on MTS based on an embodiment of the present invention.

本発明が適用されるデコード装置200は、シーケンスパラメータ獲得部1105、MTSフラグ獲得部1110、MTSインデックス獲得部1115、及び変換カーネル誘導部1120を含むことができる。 The decoding device 200 to which the present invention is applied can include a sequence parameter acquisition unit 1105, an MTS flag acquisition unit 1110, an MTS index acquisition unit 1115, and a conversion kernel induction unit 1120.

シーケンスパラメータ獲得部1105は、sps_mts_intra_enabled_flagまたはsps_mts_inter_enabled_flagを獲得することができる。ここで、sps_mts_intra_enabled_flagはcu_mts_flagがイントラコーディングユニットのレジデュアルコーディング構文に存在するかどうかを示し、sps_mts_inter_enabled_flagはcu_mts_flagがインターコーディングユニットのレジデュアルコーディング構文に存在するかどうかを示す。具体的な例は、図10に関連する説明が適用されることができる。 The sequence parameter acquisition unit 1105 can acquire sps_mts_intra_enabled_flag or sps_mts_inter_enabled_flag. Here, sps_mts_intra_enabled_flag indicates whether cu_mts_flag exists in the resilient coding syntax of the intracoding unit, and sps_mts_inter_enabled_flag indicates whether cu_mts_flag exists in the resilient coding syntax of the intercoding unit. As a specific example, the description related to FIG. 10 can be applied.

MTSフラグ獲得部1110は、sps_mts_intra_enabled_flagまたはsps_mts_inter_enabled_flagに基づいてcu_mts_flagを獲得することができる。たとえば、sps_mts_intra_enabled_flag = 1またはsps_mts_inter_enabled_flag = 1のとき、MTSフラグ獲得部1110は、cu_mts_flagを獲得することができる。ここで、cu_mts_flagは、MTSがルマ変換ブロックのレジデュアルサンプルに適用されるかどうかを示す。具体的な例は、前記図10に関連する説明が適用されることができる。 The MTS flag acquisition unit 1110 can acquire cu_mts_flag based on sps_mts_intra_enabled_flag or sps_mts_inter_enabled_flag. For example, when sps_mts_intra_enabled_flag = 1 or sps_mts_inter_enabled_flag = 1, the MTS flag acquisition unit 1110 can acquire cu_mts_flag. Here, cu_mts_flag indicates whether MTS is applied to the resilient sample of the Luma conversion block. As a specific example, the description related to FIG. 10 can be applied.

MTSインデックス獲得部1115は、cu_mts_flagに基づいてmts_idxを獲得することができる。たとえば、cu_mts_flag = 1のとき、MTSインデックス獲得部1115は、mts_idxを獲得することができる。ここで、mts_idxはどの変換カーネルが現在の変換ブロックの水平及び/または垂直方向に沿ったルマレジデュアルサンプルに適用されるかを示す。具体的な例は、前記図10の説明が適用されることができる。 The MTS index acquisition unit 1115 can acquire mts_idx based on cu_mts_flag. For example, when cu_mts_flag = 1, the MTS index acquisition unit 1115 can acquire mts_idx. Here, mts_idx indicates which transformation kernel is applied to the Luma-residual sample along the horizontal and / or vertical direction of the current transformation block. As a specific example, the description of FIG. 10 can be applied.

変換カーネル誘導部1120は、mts_idxに対応する変換カーネルを誘導することができる。そして、デコード装置200は、誘導された変換カーネルに基づいて逆変換を行うことができる。 The conversion kernel induction unit 1120 can induce the conversion kernel corresponding to mts_idx. Then, the decoding device 200 can perform the inverse transformation based on the derived transformation kernel.

モード‐依存的非分離2次変換(mode-dependent non-separable secondary transform、MDNSST)が紹介される。低複雑度を維持するために、MDNSSTは、1次変換後の後低周波数の係数にのみ適用される。また、主に低周波の係数に対し適用される非分離変換はLFNST(low frequency non-separable transform)と呼ばれることができる。変換係数ブロックの幅(width、W)と高さ(height、H)の全てが8以上であれば、8x8非分離2次変換が変換係数ブロックの左上側8x8の領域に適用される。そうでなければ、幅または高さが8より小さい場合、4x4非分離2次変換が適用され、4x4非分離2次変換は、変換係数ブロックの左上側min(8、W)x min(8、H)に実行ことができる。ここで、min(A、B)はAとBの内、さらに小さい値を出力する関数である。また、WxHはブロックのサイズとして、Wは幅(width)を、Hは高さ(height)を示す。 A mode-dependent non-separable secondary transform (MDNSST) is introduced. To maintain low complexity, MDNSST is applied only to the post-low frequency coefficients after the first-order conversion. Further, the non-separable transform mainly applied to the low frequency coefficient can be called LFNST (low frequency non-separable transform). If the width (width, W) and height (height, H) of the conversion coefficient block are all 8 or more, the 8x8 non-separable secondary conversion is applied to the region of 8x8 on the upper left side of the conversion coefficient block. Otherwise, if the width or height is less than 8, a 4x4 non-separable quadratic transformation is applied and the 4x4 non-separable quadratic transformation is the upper left min (8, W) x min (8, W) of the conversion factor block. It can be executed in H). Here, min (A, B) is a function that outputs a smaller value among A and B. Further, WxH indicates the size of the block, W indicates the width, and H indicates the height.

一実施例において、4x4及び8x8ブロックサイズについて総35x3つの非分離2次変換があることができ、ここで、35はイントラ予測モードによって特定される変換セットの数であり、3は各予測モードのNSST候補の数である。イントラ予測モードから変換セットへのマッピングは、以下の表5に示すように定義することができる。 In one embodiment, there can be a total of 35x3 non-separable secondary transformations for 4x4 and 8x8 block sizes, where 35 is the number of transformation sets specified by the intra prediction mode and 3 is for each prediction mode. The number of NSST candidates. The mapping from the intra prediction mode to the transformation set can be defined as shown in Table 5 below.

Figure 2022500965
Figure 2022500965

また、本発明の実施例に係ると、イントラ予測モードに応じて、4つの非分離変換セットの中で。変換カーネルを指示するために、NSSTインデックス(NSST idx)がコーディングされることができる。NSSTが適用されない場合、0の値を有するNSSTインデックスがシグナリングされることができる。 Further, according to the embodiment of the present invention, in the four non-separable conversion sets, depending on the intra prediction mode. The NSST index (NSST idx) can be coded to indicate the conversion kernel. If NSST is not applied, an NSST index with a value of 0 can be signaled.

図12及び図13は、本発明が適用される実施形態として、2次変換が適用されるエンコード/デコードフローチャートである。 12 and 13 are encoding / decoding flowcharts to which a secondary transformation is applied as an embodiment to which the present invention is applied.

JEMにおいて、2次変換(MDNSST)は、変換スキップモードでコーディングされたブロックに適用されない。MDNSSTインデックスがCUに対しシグナリングされ、0でなければ、MDNSSTはCU内で変換スキップモードでコーディングされた成分のブロックに対し用いられない。係数エンコーディングとNSSTインデックスコーディングを含む全体的なコーディング構造が、図12及び図13に示される。CBF(coded block flag)が係数エンコーディング及びNSSTコーディングするかどうかを決定するためにエンコードされる。図12及び図13において、CBFフラグはルマブロックcbfフラグ(cbf_luma flag)またはクロマブロックcbfフラグ(cbf_cb flagまたはcbf_cr flag)を示すことができる。 CBFフラグが1のときの変換係数がコーディングされる。 In JEM, secondary transformation (MDNSST) does not apply to blocks coded in conversion skip mode. If the MDNSST index is signaled to the CU and is non-zero, the MDNSST is not used for blocks of components coded in conversion skip mode within the CU. The overall coding structure, including coefficient encoding and NSST index coding, is shown in FIGS. 12 and 13. The CBF (coded block flag) is encoded to determine whether to code the coefficients and NSST. In FIGS. 12 and 13, the CBF flag can indicate a Lumablock cbf flag (cbf_luma flag) or a chromablock cbf flag (cbf_cb flag or cbf_cr flag). The conversion factor when the CBF flag is 1 is coded.

図12を参照すると、エンコード装置100は、CBFが1かどうかを確認する(S1205)。CBFが0である場合、エンコード装置100は、変換係数のエンコード及びNSSTインデックスのエンコーディングを実行しない。 CBFが1である場合、エンコード装置100は、変換係数のエンコーディングを行う(S1210)。以後、エンコード装置100は、NSSTインデックスコーディングするかどうかを決定し、(S1215)、NSSTインデックスコーディングを行う(S1220)。NSSTインデックスコーディングが適用されない場合、エンコード装置100は、NSSTを適用していない状態に変換手順を終了し、その後の段階(例えば、量子化)を実行することができる。 Referring to FIG. 12, the encoding device 100 confirms whether the CBF is 1 (S1205). If the CBF is 0, the encoding device 100 does not perform conversion factor encoding and NSST index encoding. When the CBF is 1, the encoding device 100 encodes the conversion coefficient (S1210). After that, the encoding device 100 determines whether or not to perform NSST index coding (S1215), and then performs NSST index coding (S1220). If NSST index coding is not applied, the encoding device 100 can complete the conversion procedure to the state where NSST is not applied and perform subsequent steps (eg, quantization).

図13を参照すると、デコード装置200は、CBFが1かどうかを確認する(S1305)。CBFが0である場合、デコード装置200は、変換係数のデコード及びNSSTインデックスデコードを実行していない。 CBFが1である場合、デコード装置200は、変換係数のデコードを行う(S1310)。以後、デコード装置200は、NSSTインデックスコーディングするかどうかを決定し、(S1315)、NSSTインデックスを解析する(S1320)。 Referring to FIG. 13, the decoding device 200 confirms whether or not the CBF is 1 (S1305). When the CBF is 0, the decoding device 200 has not executed the decoding of the conversion coefficient and the NSST index decoding. When the CBF is 1, the decoding device 200 decodes the conversion coefficient (S1310). After that, the decoding device 200 determines whether or not to perform NSST index coding (S1315), and analyzes the NSST index (S1320).

NSSTは、1次変換が適用されたブロック(HEVCの場合TU)全体に対して適用されるものではなく左上側8x8領域または4x4の領域に対して適用することができる。一例として、ブロックのサイズが8x8以上の場合、8x8 NSSTが適用され、8x8未満の場合、4x4 NSSTが適用されることができる。また、8x8 NSSTが適用される場合、4x4ブロックごとに4x4 NSSTが適用されることができる。8x8 NSSTと4x4 NSSTすべて前述した変換セットの構成に応じて決定されることができ、非分離変換であるだけ8x8 NSSTは、64個の入力データと64個の出力データを有し、4x4 NSSTは16個の入力と16個の出力を有することができる。 NSST does not apply to the entire block (TU in the case of HEVC) to which the primary transformation is applied, but can be applied to the upper left 8x8 region or 4x4 region. As an example, if the block size is 8x8 or more, 8x8 NSST can be applied, and if it is less than 8x8, 4x4 NSST can be applied. Further, when 8x8 NSST is applied, 4x4 NSST can be applied every 4x4 block. The 8x8 NSST and the 4x4 NSST can all be determined according to the configuration of the conversion set described above, and only the non-separable conversion 8x8 NSST has 64 input data and 64 output data, and the 4x4 NSST is It can have 16 inputs and 16 outputs.

図14及び図15は、本発明が適用される実施形態として、図14は、ギブンス回転(Givens rotation)を説明するための図を示し、図15は、ギブンス回転層と置換(permutation)で構成された4x4 NSSTでの一ラウンド(round)の構成を示す。 14 and 15 are embodiments to which the present invention is applied, in which FIG. 14 shows a diagram for explaining Givens rotation, and FIG. 15 is composed of a Givens rotation layer and a permutation. The configuration of one round in the 4x4 NSST is shown.

8x8 NSSTと4x4 NSSTすべてギブンス回転の階層的組み合わせで構成されることができる。一つのギブンス回転に当該する行列は、数学式1と同じであり、行列積を図で表現すると、図14と同じである。 All 8x8 NSST and 4x4 NSST can be configured with a hierarchical combination of Givens rotations. The matrix corresponding to one Given rotation is the same as the mathematical formula 1, and the matrix product is the same as FIG. 14 when expressed graphically.

Figure 2022500965
Figure 2022500965

図14において、ギブンス回転によって出力されるtmとtnは、数学式2のように計算することができる。 In FIG. 14, tm and tn output by Givens rotation can be calculated as in mathematical formula 2.

Figure 2022500965
Figure 2022500965

図14のように一つのギブンス回転は、2つのデータを回転させるので、64個のデータ(8x8 NSSTの場合)または16個のデータ(4x4 NSSTの場合)の処理のために、それぞれ32個、または8個のギブンスの回転が必要である。したがって、32個または8個のギブンス回転の束がギブンス回転層(Given rotation layer)を形成することができる。図15に示すように、一つのギブンス回転層の出力データが置換(シャッフル)を介して次のギブンス回転層の入力データへ伝達される。図15に示すように 置換されるパターンは、規則的に定義され、4x4 NSSTの場合、4つのギブンス回転層及び対応する置換が一つのラウンドを形成する。4x4 NSSTは2回のラウンドで行われ、8x8 NSSTは4回のラウンドで実行される。互いに別のラウンドは、同じ置換パターンを用いるが適用されるギブンス回転角度は、それぞれ異なる。したがって、各変換を構成するすべてのギブンス回転の角度データの貯蔵が必要である。 Since one Givens rotation rotates two data as shown in FIG. 14, 32 pieces each for processing 64 pieces of data (in the case of 8x8 NSST) or 16 pieces of data (in the case of 4x4 NSST), respectively. Or 8 Givens rotations are required. Therefore, a bundle of 32 or 8 Given rotations can form a Given rotation layer. As shown in FIG. 15, the output data of one Given Rotation Layer is transmitted to the input data of the next Given Rotation Layer via substitution (shuffle). The patterns to be substituted as shown in FIG. 15 are regularly defined, and in the case of 4x4 NSST, the four Givens rotation layers and the corresponding substitutions form one round. The 4x4 NSST is performed in two rounds and the 8x8 NSST is performed in four rounds. Different rounds use the same substitution pattern, but the applied given rotation angles are different. Therefore, it is necessary to store the angular data of all Givens rotations that make up each transmutation.

最後の段階でギブンス回転層を経て出力されたデータに対して、最終的に一回の置換がさらに実行され、当該置換の情報は、変換ごとに別に貯蔵される。順方向(forward)NSSTの最後に、当該置換が行われ、逆方向(inverse)NSSTは、最初に当該逆方向置換が適用される。 Finally, one more substitution is performed on the data output through the Givens rotation layer in the final stage, and the information on the substitution is stored separately for each conversion. At the end of the forward NSST, the substitution is made, and for the inverse NSST, the reverse substitution is applied first.

逆方向NSSTは順方向NSSTで適用されたギブンス回転層と置換を逆の順序で行い、各ギブンス回転の角度に対してもマイナス(‐)の値をとることにより、回転させる。 The reverse NSST replaces the Givens rotation layer applied in the forward NSST in the reverse order, and rotates by taking a negative (-) value for each Given rotation angle.

RST (Reduced secondary transform) RST (Reduced secondary transform)

図16は、本発明が適用される実施形態として、RSTの動作を示す。 FIG. 16 shows the operation of RST as an embodiment to which the present invention is applied.

一変換を示す直交(orthogonal)行列がNxNの形態を有するとしたとき、RT(reduced transform)は、N個の変換基底ベクトルの内からR個だけ残す(R <N)。変換係数を生成する順方向RTの行列は、数学式3のように定義することができる。 Assuming that the orthogonal matrix indicating one transformation has the form of NxN, RT (reduced transform) leaves only R out of N transformed basis vectors (R <N). The matrix of forward RT that produces the transformation coefficients can be defined as in mathematical equation 3.

Figure 2022500965
Figure 2022500965

逆方向RTの行列は、順方向RT行列の転置(transpose)行列となるので、順方向RTと逆方向RTの適用を図示すれば、図16a及び図16bと同じで有り得る。 Since the matrix of the reverse RT is a transpose matrix of the forward RT matrix, it may be the same as in FIGS. 16a and 16b if the application of the forward RT and the reverse RT is illustrated.

1次変換が適用された変換係数のブロックの左上端8x8ブロックに適用されるRTは8x8 RSTと呼ばれることができる。数学式3で、Rの値を16に置いたとき、順方向8x8 RSTは16x64行列の形を有し、逆方向8x8 RSTは64x16の形態を有する。また、8x8 RSTに対しても、表5のような変換セットの構成が適用されることができる。つまり、表5のようにイントラ予測モードに応じた変換セットに基づいて8x8 RSTが決定することができる。一つの変換セットは、イントラ予測モードに応じて、2つまたは3つの変換で構成されるので、2次変換を適用しない場合まで含めて、最大4つの変換の内、いずれかが1つが選択されることができる(一つの変換は、恒等行列に該当することができる)。 4つの変換に対して、それぞれ0、1、2、3のインデックスが付与されたとき、NSSTインデックスに該当するシンタックス要素(syntax element)が変換係数のブロックごとにシグナリングされることで適用される変換が指定されることができる。例えば、0番インデックスは恒等行列、すなわち、2次変換が適用されない場合に割り当てることができる。結論として、NSSTインデックスを介して8x8左上端ブロックについて、JEM NSSTによると、8x8 NSSTが指定されることがあり、RST構成によれば、8x8 RSTが指定されることができる。 The RT applied to the 8x8 block at the upper left corner of the block with the conversion factor to which the linear transformation is applied can be called the 8x8 RST. In mathematical formula 3, when the value of R is set to 16, the forward 8x8 RST has the form of a 16x64 matrix and the reverse 8x8 RST has the form of 64x16. Further, the configuration of the conversion set as shown in Table 5 can be applied to 8x8 RST. That is, 8x8 RST can be determined based on the conversion set according to the intra prediction mode as shown in Table 5. Since one conversion set consists of two or three transformations depending on the intra prediction mode, one of the maximum four transformations is selected, including the case where the secondary transformation is not applied. (One transformation can be an identity matrix). When 0, 1, 2, and 3 indexes are assigned to each of the four conversions, the syntax element corresponding to the NSST index is signaled for each block of conversion coefficients. Conversion can be specified. For example, index 0 can be assigned as an identity matrix, i.e., when no quadratic transformation is applied. In conclusion, for the 8x8 upper left block via the NSST index, 8x8 NSST may be specified according to JEM NSST, and 8x8 RST can be specified according to the RST configuration.

図17は、本発明が適用される実施形態として、逆方向スキャン順に基づいて64番目から17番目までの逆方向スキャンを実行する過程を示す図である。 FIG. 17 is a diagram showing a process of performing reverse scans from the 64th to the 17th based on the reverse scan order as an embodiment to which the present invention is applied.

数学式3のような順方向8x8 RSTが適用されると、16個の有効な変換係数が生成されるため、8x8の領域を構成する64個の入力データが16個の出力データに縮小され、2次元領域の観点によれば、1/4ほどの領域のみ有効な変換係数が満たされる。したがって、順方向8x8 RSTを適用することにより、獲得された16個の出力データが、図17の左上端の領域に満たされる。 When a forward 8x8 RST such as math formula 3 is applied, 16 valid conversion coefficients are generated, so that the 64 input data constituting the 8x8 area is reduced to 16 output data. From the viewpoint of the two-dimensional region, the effective conversion coefficient is satisfied only in the region of about 1/4. Therefore, by applying the forward 8x8 RST, the acquired 16 output data are filled in the upper left region of FIG.

図17で左上端4x4の領域が有効な変換係数が満たされるROI(region of interest)領域となり、残りの領域は空になる。空けられる領域には、0の値がデフォルトで満たすことができる。もし、図17のROI領域のほか、0でない有効な変換係数が見つかったら、8x8 RSTが適用されないことが確実であるので、該NSSTインデックスに該当コーディングが省略されることがある。逆に、図17のROI領域以外で0ではない変換係数が発見されないと(8x8 RSTが適用される場合、ROI以外の領域が0に満たされたとき)、8x8 RSTが適用されたこともあるので、NSSTインデックスがコーディングされることができる。このような条件的NSSTインデックスコーディングは0ではない、変換係数の存在の有無のチェックが必要であるのでレジデュアルコーディングプロセスの後に実行されることができる。 In FIG. 17, the upper left 4x4 region is the ROI (region of interest) region where the effective conversion coefficient is satisfied, and the remaining region is empty. The vacant area can be filled with a value of 0 by default. If a valid non-zero conversion factor is found in addition to the ROI region of FIG. 17, it is certain that the 8x8 RST will not be applied and the relevant coding may be omitted in the NSST index. Conversely, if a non-zero conversion coefficient is not found outside the ROI region of FIG. 17 (when 8x8 RST is applied, when the region other than ROI is filled with 0), 8x8 RST may have been applied. Therefore, the NSST index can be coded. Such conditional NSST index coding is non-zero and can be performed after the resilient coding process as it requires checking for the presence or absence of conversion factors.

図18は、本発明が適用される実施形態として、単一変換指示子(single transform indicator)を用いたエンコードフローチャートの例を示す。 FIG. 18 shows an example of an encoding flowchart using a single transform indicator as an embodiment to which the present invention is applied.

本発明の実施形態において、単一変換指示子(single transform indicator、STI)が紹介される。2つの変換(1次変換及び2次変換)を順次用いる代わりに、単一変換指示子が活性化されたとき(STI coding == 1)単一変換(single transform)が適用されることができる。ここで、単一変換は、どの種類の変換でもすることができる。例えば、単一変換は分離変換または非分離変換で有り得る。単一変換は、非分離変換から近似された変換で有り得る。単一変換インデックス(図18のST_idx)は、単一変換指示子が活性化されたときシグナリングされることができる。ここで、単一変換インデックスは使用可能な変換候補の内から適用される変換に該当する変換を指示することができる。 In an embodiment of the invention, a single transform indicator (STI) is introduced. Instead of using two transforms in sequence (first-order transform and second-order transform), a single transform can be applied when the single transform indicator is activated (STI coding == 1). .. Here, a single conversion can be any kind of conversion. For example, a single transformation can be a separable transformation or a non-separable transformation. The single transformation can be a transformation approximated from the non-separable transformation. The single conversion index (ST_idx in FIG. 18) can be signaled when the single conversion indicator is activated. Here, the single conversion index can indicate the conversion corresponding to the conversion to be applied from among the available conversion candidates.

図18を参照すると、エンコード装置100は、CBFが1かどうかを決定する(S1805)。CBFが1である場合、エンコード装置100は、STIコーディングが適用されるかどうかを決定する(S1810)。STIコーディングが適用される場合、エンコード装置100は、STIインデックス(STI_Idx)をエンコードし(S1845)、変換係数のコーディングを行う(S1850)。STIコーディングが適用されない場合、エンコード装置100は、CUレベルでEMT(またはMTS)が適用されるかどうかを示すフラグ(EMT_CU_Flag)をエンコードする(S1815)。以後、エンコード装置100は、変換係数のコーディングを行う(S1820)。以後、エンコード装置100変換ユニット(TU)にEMTが適用されるかどうかを決定する(S1825)。TUにEMTが適用される場合、エンコード装置100は、TUに適用される1次変換のインデックス(EMT_TU Idx)をエンコードする(S1830)。以後、エンコード装置100は、NSSTが適用されるかどうかを決定する(S1835)。NSSTが適用される場合、エンコード装置100は、適用されるNSSTを指示するインデックス(NSST_Idx)をエンコードする(S1840)。 Referring to FIG. 18, the encoding device 100 determines whether the CBF is 1 (S1805). If the CBF is 1, the encoding device 100 determines whether STI coding is applied (S1810). When STI coding is applied, the encoding device 100 encodes the STI index (STI_Idx) (S1845) and codes the conversion coefficient (S1850). If no STI coding is applied, the encoding device 100 encodes a flag (EMT_CU_Flag) indicating whether EMT (or MTS) is applied at the CU level (S1815). After that, the encoding device 100 codes the conversion coefficient (S1820). After that, it is determined whether or not EMT is applied to the encoding device 100 conversion unit (TU) (S1825). When EMT is applied to the TU, the encoding device 100 encodes the index (EMT_TU Idx) of the linear transformation applied to the TU (S1830). After that, the encoding device 100 determines whether or not NSST is applied (S1835). When NSST is applied, the encoding device 100 encodes an index (NSST_Idx) indicating the applied NSST (S1840).

一例において、単一変換コーディングの条件が充足/活性化(例えば、STI_coding == 1)されると、単一変換インデックス(ST_Idx)がシグナリングされず、暗黙的に(implicitly)誘導されることができる。 ST_idxはブロックサイズとイントラ予測モードに基づいて、暗黙的に決定されることができる。ここで、ST_idxは現在の変換ブロックに適用される変換(または変換カーネル)を指示することができる。 In one example, when the single conversion coding condition is satisfied / activated (eg, STI_coding == 1), the single conversion index (ST_Idx) is not signaled and can be implicitly derived. .. ST_idx can be implicitly determined based on the block size and intra-prediction mode. Here, ST_idx can indicate the transformation (or transformation kernel) applied to the current transformation block.

単一変換指示子は、以下の条件の内、1つまたは複数の条件が満足されると、活性化することができる(STI_coding == 1)。 The single conversion indicator can be activated when one or more of the following conditions are satisfied (STI_coding == 1).

ブロックサイズが4または8のように、あらかじめ決められた値に相当する。 The block size corresponds to a predetermined value, such as 4 or 8.

ブロックの幅==ブロックの高さ(正方形ブロック) Block width == Block height (square block)

DCまたはプランナーのように予め決定されたモードの内、いずれか一つのイントラ予測モードである。 It is an intra prediction mode of any one of predetermined modes such as DC or planner.

別の例において、STIコーディングフラグは、単一変換が適用されるか否かを示すためにシグナリングすることができる。STIコーディングフラグはSTIコーディング値及びCBFに基づいてシグナリングされることができる。例えば、STIコーディングフラグはCBFが1であり、STIコーディングが活性化になるときシグナリングすることができる。さらにSTIコーディングフラグは、ブロックサイズ、ブロックの形(正方形ブロックまたは非正方形ブロック)、またはイントラ予測モードを考慮して、条件的にシグナリングされることができる。 In another example, the STI coding flag can be signaled to indicate whether a single transformation is applied. The STI coding flag can be signaled based on the STI coding value and the CBF. For example, the STI coding flag has a CBF of 1 and can be signaled when STI coding is activated. In addition, the STI coding flag can be signaled conditionally, taking into account the block size, block shape (square or non-square block), or intra-prediction mode.

係数コーディングの内、獲得された情報が用いられるために係数コーディングの後にST_idxが決定することができる。一例でST_idxは、ブロックサイズ、イントラ予測モード、及び0ではない係数(non-zero coefficient)の数に基づいて暗黙的に決定することができる。別の例において、ST_idxはブロックサイズ及び/またはブロックの形及び/またはイントラ予測モード、及び/または0ではない係数の数に基づいて、条件的にエンコード/デコードすることができる。別の例において、ST_idxシグナリングは、0ではない係数の分布(すなわち、0でない係数の位置)に依存して省略することができる。特に、0でない係数が左上側4x4領域でない領域で発見されると、ST_idxのシグナリングが省略されることができる。 Of the coefficient coding, ST_idx can be determined after the coefficient coding because the acquired information is used. In one example, ST_idx can be implicitly determined based on the block size, the intra prediction mode, and the number of non-zero coefficients. In another example, ST_idx can conditionally encode / decode based on block size and / or block shape and / or intra-prediction mode, and / or number of non-zero coefficients. In another example, ST_idx signaling can be omitted depending on the distribution of non-zero coefficients (ie, the position of the non-zero coefficients). In particular, if a non-zero coefficient is found in a region other than the upper left 4x4 region, ST_idx signaling can be omitted.

図19は、本発明が適用される実施形態として、統一された変換指示子(unified transform indicator、UTI)を用いたエンコードフローチャートの例を示す。 FIG. 19 shows an example of an encoding flowchart using a unified transform indicator (UTI) as an embodiment to which the present invention is applied.

本発明の実施形態において、統一された変換指示子が紹介される。UTIは、1次変換指示子と2次変換指示子を包括する。 In the embodiment of the present invention, a unified conversion indicator is introduced. The UTI includes a primary conversion indicator and a secondary conversion indicator.

図19を参照すると、エンコード装置100は、CBFが1かどうかを決定する(S1905)。 CBFが1である場合、エンコード装置100は、UTIコーディングが適用されるかどうかを決定する(S1910)。 UTIコーディングが適用される場合、エンコード装置100は、UTIインデックス(UTI_Idx)をエンコードし(S1945)、変換係数のコーディングを行う(S1950)。UTIコーディングが適用されない場合、エンコード装置100は、CUレベルでEMT(またはMTS)が適用されるかどうかを示すフラグ(EMT_CU_Flag)をエンコードする(S1915)。以後、エンコード装置100は、変換係数のエンコーディングを行う(S1920)。以後、エンコード装置100変換ユニット(TU)にEMTが適用されるかどうかを決定する(S1925)。TUにEMTが適用される場合、エンコード装置100は、TUに適用される1次変換のインデックス(EMT_TU Idx)をエンコードする(S1930)。以後、エンコード装置100は、NSSTが適用されるかどうかを決定する(S1935)。 NSSTが適用される場合、エンコード装置100は、適用されるNSSTを指示するインデックス(NSST_Idx)をエンコードする(S1940)。 Referring to FIG. 19, the encoding device 100 determines whether the CBF is 1 (S1905). If the CBF is 1, the encoding device 100 determines whether UTI coding is applied (S1910). When UTI coding is applied, the encoding device 100 encodes the UTI index (UTI_Idx) (S1945) and codes the conversion factor (S1950). If no UTI coding is applied, the encoding device 100 encodes a flag (EMT_CU_Flag) indicating whether EMT (or MTS) is applied at the CU level (S1915). After that, the encoding device 100 encodes the conversion coefficient (S1920). After that, it is determined whether or not EMT is applied to the encoding device 100 conversion unit (TU) (S1925). When EMT is applied to the TU, the encoding device 100 encodes the index (EMT_TU Idx) of the linear transformation applied to the TU (S1930). After that, the encoding device 100 determines whether or not NSST is applied (S1935). When NSST is applied, the encoding device 100 encodes an index (NSST_Idx) indicating the applied NSST (S1940).

UTIは、それぞれの予め決まれたユニット(CTUまたはCU)ごとにエンコーディングされることができる。 The UTI can be encoded for each predetermined unit (CTU or CU).

UTIコーディングモードは下の条件に依存することができる。 The UTI coding mode can depend on the following conditions.

ブロックサイズ Block size

ブロックの形態 Block morphology

イントラ予測モード Intra prediction mode

どのようにUTIからコア変換インデックスを誘導/抽出するかが予め定義される。どのようにUTIから2次変換インデックスを誘導/抽出するかが予め定義される。 How to derive / extract the core transformation index from the UTI is predefined. How to derive / extract the secondary transformation index from the UTI is predefined.

UTIの構文構造は、選択的に用いられる。UTIは、CU(またはTU)サイズに依存することができる。例えば、さらに小さなCU(TU)が相対的に狭い範囲のUTIインデックスを有することができる。一例で、予め定義された条件(例えば、ブロックサイズが予め定義されたしきい値より小さい)が満足されると、UTIは、コア変換インデックスだけを指示することができる。 The UTI syntax structure is used selectively. The UTI can depend on the CU (or TU) size. For example, a smaller CU (TU) can have a relatively narrow range of UTI indexes. In one example, if a predefined condition (eg, the block size is less than a predefined threshold) is satisfied, the UTI can only indicate the core transformation index.

Figure 2022500965
Figure 2022500965

別の例で、2次変換が用いられることを指示されない場合(例えば、2次変換インデックス== 0または2次変換が既に決定された場合)UTIインデックスは、コア変換インデックスとして扱うことができる。同じように、コア変換インデックスが知られればUTIインデックスは2次変換インデックスとして扱われることができる。特に、イントラ予測モードとブロックサイズを考慮して、あらかじめ決定されたコアの変換が用いられることができる。 In another example, the UTI index can be treated as a core transformation index if the secondary transformation is not instructed to be used (eg, if the secondary transformation index == 0 or the secondary transformation has already been determined). Similarly, if the core conversion index is known, the UTI index can be treated as a secondary conversion index. In particular, a predetermined core transformation can be used, taking into account the intra-prediction mode and block size.

図20a及び図20bは、本発明が適用される実施形態でとして、UTIを使ったエンコードフローチャートの他の例を示す。 20a and 20b show another example of an encoding flowchart using UTI as an embodiment to which the present invention is applied.

別の例において、変換コーディング構造は、図20a及び図20bに示すようにUTIインデックスコーディングが用いられる。ここで、UTIインデックスは係数コーディング前にコーディングされたり係数コーディングの後にコーディングされることができる。 In another example, the conversion coding structure uses UTI index coding as shown in FIGS. 20a and 20b. Here, the UTI index can be coded before or after the coefficient coding.

図20aを参照すると、エンコード装置100は、CBFが1かどうかを確認する(S2005)。CBFが1であれば、エンコード装置100は、UTIインデックス(UTI_Idx)をコーディングし(S2010)、変換係数のコーディングを行う(S2015)。 Referring to FIG. 20a, the encoding device 100 confirms whether the CBF is 1 (S2005). If the CBF is 1, the encoding device 100 codes the UTI index (UTI_Idx) (S2010) and codes the conversion coefficient (S2015).

図20bを参照すると、エンコード装置100は、CBFが1かどうかを確認する(S2055)。CBFが1であれば、エンコード装置100は、変換係数のコーディングを実行し、(S2060)、UTIインデックス(UTI_Idx)をコーディングする(S2065)。 Referring to FIG. 20b, the encoding device 100 confirms whether the CBF is 1 (S2055). If the CBF is 1, the encoding device 100 performs coding of the conversion factor (S2060) and codes the UTI index (UTI_Idx) (S2065).

本発明の他の実施形態において、変換指示子のデータ隠し(data hiding)及び暗黙的コーディング方法(implicit coding methods)が紹介される。ここで変換指示子はST_idx、UTI_idx、EMT_CU_Flag、EMT_TU_Flag、NSST_idxと変換カーネルを指示するために用いられる変換に関連するインデックスを含む。前述した変換指示子は、シグナリングされず、該情報が係数エンコーディングプロセスに挿入することができる(係数コーディングプロセスの内、抽出されることができる)。係数エンコーディングプロセスは次の部分を含むことができる。 In another embodiment of the invention, data hiding and implicit coding methods of conversion directives are introduced. Here, the conversion specifier includes ST_idx, UTI_idx, EMT_CU_Flag, EMT_TU_Flag, NSST_idx and indexes related to the conversion used to indicate the conversion kernel. The conversion directive described above is not signaled and the information can be inserted into the coefficient encoding process (can be extracted within the coefficient coding process). The coefficient encoding process can include the following parts:

− 最後のx位置(Last_position_x)、最後のy位置(Last_position_y) − Last x position (Last_position_x), last y position (Last_position_y)

− グループフラグ(Group flag) − Group flag

− 意味マップ(significance map) − Significance map

− 1より大きいかどうかを指示するフラグ(Greater_than_1_flag) -Flag indicating whether it is larger than 1 (Greater_than_1_flag)

− 2より大きいかどうかを指示するフラグ(Greater_than_2_flag) -Flag indicating whether it is larger than 2 (Greater_than_2_flag)

− 残りのレベルのコーディング(Remaining level coding) − Remaining level coding

− サインコーディング(Sign coding) -Sign coding

たとえば、変換指示子情報が、前述した係数コーディングプロセスの一つまたはそれ以上に挿入することができる。変換指示子情報を挿入するために一緒に考慮することできるものは以下の通りである。 For example, conversion directive information can be inserted into one or more of the coefficient coding processes described above. Here are some things that can be considered together to insert conversion directive information:

− サインコーディングのパターン(Pattern of Sign coding) -Pattern of Sign coding

− 残りレベルの絶対値(The absolute value of remaining level) − The absolute value of remaining level

−1より大きいかどうかを指示するフラグの数(The number of Greater_than_1_flag) The number of Greater_than_1_flag that indicates whether it is greater than -1

− 最後のx位置及び最後のy位置の値(The value of Last_position_X and Last_position_Y) -The value of Last_position_X and Last_position_Y

前述したデータ隠し方法は、条件的に考慮することができる。たとえば、データ隠し方法は、0ではない係数の数に依存てきで有り得る。 The above-mentioned data hiding method can be considered conditionally. For example, the data hiding method may depend on the number of non-zero coefficients.

また別の例において、NSST_idxとEMT_idxは依存的で有り得る。たとえば、EMT_CU_flagが0(または1)のとき、NSST_idxは0ではないことがある。この場合、NSST_idx-1がNSST_idxの代わりにシグナリングすることができる。 In yet another example, NSST_idx and EMT_idx can be dependent. For example, when EMT_CU_flag is 0 (or 1), NSST_idx may not be 0. In this case, NSST_idx-1 can signal instead of NSST_idx.

本発明の他の実施形態において、イントラ予測モードに基づいNSST変換セットのマッピングが、以下の表7のように紹介される。前述したように、以下の説明では、非分離変換の例としてNSSTを中心に説明するが、非分離変換についての他の知られている用語(例えば、LFNST)が用いられることができる。例えば、NSSTセット(NSST Set)、NSSTインデックスはLFNSTセット、LFNSTインデックスに置き換えて用いられる。また、本文書に説明されるRSTは、変換ブロックの少なくとも一部の領域(左上側4x4、8x8の領域または8x8ブロックで右‐下側4x4の領域を除外した残りの領域)に適用される正方形非分離変換行列で縮小された入力の長さ及び/または縮小された出力の長さを有する非正方形の変換行列を用いる非分離変換(例えば、LFNST)の例として、RSTまたLFNSTに置き換えて用いられる。 In another embodiment of the invention, the mapping of NSST conversion sets based on the intra prediction mode is introduced as shown in Table 7 below. As mentioned above, the following description will focus on NSST as an example of non-separable conversion, but other known terms for non-separable conversion (eg, LFNST) can be used. For example, the NSST set and the NSST index are replaced with the LFNST set and the LFNST index. Also, the RST described in this document is a square that applies to at least a portion of the transformation block (the upper left 4x4, 8x8 region or the remaining 8x8 block excluding the right-lower 4x4 region). As an example of a non-separable transformation (eg, LFNST) using a non-square transformation matrix with a reduced input length and / or a reduced output length in a non-separable transformation matrix, it is used in place of RST or LFNST. Be done.

Figure 2022500965
Figure 2022500965

NSSTセットナンバーは、表8のように0から3の間で再配列されることができる。 NSST set numbers can be rearranged between 0 and 3 as shown in Table 8.

Figure 2022500965
Figure 2022500965

NSST変換セットにおいて、要求されるメモリ空間を低減させるために(35の代わりに)、4つの変換セットが用いられる。 In the NSST conversion set, four conversion sets are used (instead of 35) to reduce the required memory space.

さらに、(各)変換セットごとに、さまざまな数の変換カーネルが以下のように用いられる。 In addition, different numbers of conversion kernels are used for each (each) conversion set as follows:

ケースA:(各)変換セットごとに2つの使用可能な変換カーネルが用いられ、NSSTインデックス範囲は0〜2である。たとえば、NSSTインデックスが0である場合、2次変換(デコーダに基づいて2次逆変換)が適用されないことがある。NSSTインデックスが1または2である場合、2次変換が適用されることができる。変換セットは、2つの変換カーネルを含むことができ、前記2つの変換カーネルに1または2のインデックスがマッピングされることができる。 Case A: Two available conversion kernels are used for each (each) conversion set and the NSST index range is 0-2. For example, if the NSST index is 0, the secondary transformation (secondary inverse transformation based on the decoder) may not be applied. If the NSST index is 1 or 2, a secondary transformation can be applied. The conversion set can include two conversion kernels, and one or two indexes can be mapped to the two conversion kernels.

Figure 2022500965
Figure 2022500965

表9を参照すると、0番から3番非分離変換(NSSTまたはLFNST)セットごとに2つの変換カーネルが用いられる。 Referring to Table 9, two conversion kernels are used for each 0 to 3 non-separable conversion (NSST or LFNST) set.

ケースB:0番変換セットに対し2つの使用可能な変換カーネルを使用し、残りの変換セットに対し各々一つの変換カーネルを用いる。0番変換セット(DC、プランナー)に対し使用可能なNSSTインデックスは0〜2である。しかし、他のモード(1、2、3番の変換セット)のNSSTインデックスは0〜1である。 Case B: Two available conversion kernels are used for the 0th conversion set, and one conversion kernel is used for each of the remaining conversion sets. The NSST index that can be used for the 0th conversion set (DC, planner) is 0 to 2. However, the NSST index of the other modes (conversion sets 1, 2, and 3) is 0 to 1.

Figure 2022500965
Figure 2022500965

表10を参照すると、0番インデックスに対応する非分離変換(NSST)セットに対して2つの非分離変換カーネルが設定され、1、2、3番インデックスに対応する非分離変換(NSST)セットのそれぞれについて、1つの非分離変換カーネルが設定される。 Referring to Table 10, two non-separable conversion kernels are set for the non-separable conversion (NSST) set corresponding to the 0th index, and the non-separable conversion (NSST) set corresponding to the 1st, 2nd and 3rd indexes. One non-separable conversion kernel is set for each.

ケースC:(各)変換セットごとに一つの変換カーネルを使用し、NSSTインデックス範囲は0〜1である。 Case C: One conversion kernel is used for each (each) conversion set, and the NSST index range is 0 to 1.

Figure 2022500965
Figure 2022500965

図21は、本発明が適用される実施形態として、変換を実行するエンコードフローチャートの例を示す。 FIG. 21 shows an example of an encoding flowchart that executes conversion as an embodiment to which the present invention is applied.

エンコード装置100は、レジデュアルブロックについて1次変換を実行する(S2105)。1次変換は、コア変換に呼ばれることができる。実施形態として、エンコード装置100は、前述したMTSを用いて、1次変換を実行することができる。また、エンコード装置100は、MTSの候補の内から、特定MTSを指示するMTSインデックスをデコード装置200に転送することができる。このとき、MTS候補は、現在ブロックのイントラ予測モードに基づいて構成されることができる。 The encoding device 100 performs a primary conversion on the resilient block (S2105). The primary transformation can be referred to as the core transformation. As an embodiment, the encoding device 100 can perform the primary conversion using the MTS described above. Further, the encoding device 100 can transfer the MTS index indicating the specific MTS from the MTS candidates to the decoding device 200. At this time, the MTS candidate can be configured based on the intra prediction mode of the current block.

エンコード装置100は、2次変換の適用をするかどうかを決定する(S2110)。一例として、エンコード装置100は、1次変換されたレジデュアル変換係数に基づいて、2次変換の適用をするかどうかを決定することができる。たとえば、2次変換はNSSTまたはRSTで有り得る。 The encoding device 100 determines whether or not to apply the secondary transformation (S2110). As an example, the encoding device 100 can determine whether or not to apply the secondary transformation based on the linearly transformed resilient conversion coefficient. For example, the secondary transformation can be NSST or RST.

エンコード装置100は、2次変換を決定する(S2115)。このとき、エンコード装置100は、イントラ予測モードに応じて指定されたNSST(またはRST)変換セットに基づいて、2次変換を決定することができる。 The encoding device 100 determines the secondary conversion (S2115). At this time, the encoding device 100 can determine the secondary conversion based on the NSST (or RST) conversion set specified according to the intra prediction mode.

また、一例として、エンコード装置100は、S2115段階に先立って、現在ブロックの大きさに基づいて、2次変換が適用される領域を決定することができる。 Further, as an example, the encoding device 100 can determine the region to which the secondary transformation is applied based on the size of the current block prior to the S2115 step.

エンコード装置100は、S2115段階で決定された2次変換を用いて、2次変換を実行する(S2120)。 The encoding device 100 performs the secondary transformation using the secondary transformation determined in the S2115 step (S2120).

図22は、本発明が適用される実施形態として、変換を実行するデコードフローチャートの例を示す。 FIG. 22 shows an example of a decoding flowchart that executes conversion as an embodiment to which the present invention is applied.

デコード装置200は、2次逆変換の適用をするかどうかを決定する(S2205)。たとえば、2次逆変換はNSSTまたはRSTで有り得る。一例として、デコード装置200は、エンコード装置100から受信された2次変換フラグに基づいて、2次逆変換の適用をするかどうかを決定することができる。 The decoding device 200 determines whether or not to apply the second-order inverse transformation (S2205). For example, the second-order inverse transformation can be NSST or RST. As an example, the decoding apparatus 200 can determine whether or not to apply the secondary inverse transformation based on the secondary transformation flag received from the encoding apparatus 100.

デコード装置200は、2次逆変換を決定する(S2210)。このとき、デコード装置200は、前述したイントラ予測モードに応じて指定されたNSST(またはRST)変換セットに基づいて、現在ブロックに適用される2次逆変換を決定することができる。 The decoding device 200 determines the second-order inverse transformation (S2210). At this time, the decoding device 200 can determine the second-order inverse transformation applied to the current block based on the NSST (or RST) transformation set specified according to the intra-prediction mode described above.

また、一例として、デコード装置200は、S2210段階に先立って、現在ブロックの大きさに基づいて、2次逆変換が適用される領域を決定することができる。 Further, as an example, the decoding device 200 can determine the region to which the second-order inverse transformation is applied based on the size of the current block prior to the S2210 step.

デコード装置200は、S2210段階で決定された2次逆変換を用いて、逆量子化されたレジデュアルブロックについて2次逆変換を実行する(S2215)。 The decoding device 200 performs the second-order inverse transformation on the inverse-quantized residency block using the second-order inverse transformation determined in the S2210 step (S2215).

デコード装置200は、2次逆変換されたレジデュアルブロックについて1次逆変換を実行する(S2220)。1次逆変換はコア逆変換と呼びことができる。実施形態として、デコード装置200は、前述したMTSを用いて、1次逆変換を行うことができる。また、一例として、デコード装置200は、S2220段階に先立って、現在ブロックにMTSが適用されるかどうかを決定することができる。この場合、図22のデコードフローチャートにMTSが適用されるかどうかを決定する段階がさらに含まれることができる。 The decoding device 200 performs the first-order inverse transformation on the second-order inverse-converted register dual block (S2220). The first-order inverse transformation can be called the core inverse transformation. As an embodiment, the decoding device 200 can perform primary inverse transformation using the above-mentioned MTS. Also, as an example, the decoding device 200 can determine whether or not the MTS is currently applied to the block prior to the S2220 stage. In this case, the decoding flowchart of FIG. 22 may further include a step of determining whether MTS is applied.

一例として、現在ブロックにMTSが適用される場合(つまり、cu_mts_flag = 1)、デコード装置200は、現在ブロックのイントラ予測モードに基づいてMTS候補を構成することができる。この場合、図22のデコードフローチャートにMTS候補を構成する段階がさらに含まれることができる。そして、デコード装置200は、構成されたMTSの候補の内、特定のMTSを指示するmts_idxを用いて、現在ブロックに適用される1次逆変換を決定することができる。 As an example, if MTS is applied to the current block (ie, cu_mts_flag = 1), the decoder 200 can configure MTS candidates based on the current block's intra-prediction mode. In this case, the decoding flowchart of FIG. 22 may further include a step of configuring the MTS candidate. Then, the decoding device 200 can determine the primary inverse transformation applied to the current block by using mts_idx indicating a specific MTS among the configured MTS candidates.

図23は、本発明が適用される実施形態として、エンコード装置100内の変換部120の詳細ブロック図の例を示す。 FIG. 23 shows an example of a detailed block diagram of the conversion unit 120 in the encoding device 100 as an embodiment to which the present invention is applied.

本発明の実施形態が適用されるエンコード装置100は、1次変換部2310、2次変換適用可否決定部2320、2次変換決定部2330、2次変換部2340を含むことができる。 The encoding device 100 to which the embodiment of the present invention is applied can include a primary conversion unit 2310, a secondary conversion applicability determination unit 2320, a secondary conversion determination unit 2330, and a secondary conversion unit 2340.

1次変換部2310は、レジデュアルブロックについて1次変換を実行することができる。1次変換は、コア変換に呼ばれることができる。実施形態として、1次変換部2310は、前述したMTSを用いて、1次変換を実行することができる。また、1次変換部2310は、MTSの候補の内から、特定MTSを指示するMTSインデックスをデコード装置200に転送することができる。このとき、MTS候補は、現在ブロックのイントラ予測モードに基づいて構成されることができる。 The primary conversion unit 2310 can perform the primary conversion on the resilient block. The primary transformation can be referred to as the core transformation. As an embodiment, the primary conversion unit 2310 can perform the primary conversion using the MTS described above. Further, the primary conversion unit 2310 can transfer the MTS index indicating the specific MTS from the MTS candidates to the decoding device 200. At this time, the MTS candidate can be configured based on the intra-prediction mode of the current block.

2次変換適用可否決定部2320は、2次変換を適用するかどうかを決定することができる。一例として、2次変換適用可否決定部2320は、1次変換されたレジデュアルブロックの変換係数に基づいて、2次変換の適用をするかどうかを決定することができる。たとえば、2次変換はNSSTまたはRSTで有り得る。 The secondary conversion applicability determination unit 2320 can determine whether or not to apply the secondary conversion. As an example, the secondary conversion applicability determination unit 2320 can determine whether or not to apply the secondary conversion based on the conversion coefficient of the linearly converted resilient block. For example, the secondary transformation can be NSST or RST.

2次変換決定部2330は、2次変換を決定する。このとき、2次変換決定部2330は、前述したように、イントラ予測モードに応じて指定されたNSST(またはRST)変換セットに基づいて、2次変換を決定することができる。 The secondary conversion determination unit 2330 determines the secondary conversion. At this time, as described above, the secondary conversion determination unit 2330 can determine the secondary conversion based on the NSST (or RST) conversion set specified according to the intra prediction mode.

また、一例として、2次変換決定部2330は、現在ブロックの大きさに基づいて、2次変換が適用される領域を決定することもできる。 Further, as an example, the secondary transformation determination unit 2330 can also determine the region to which the secondary transformation is applied based on the size of the current block.

2次変換部2340は、決定された2次変換を用いて、2次変換を実行することができる。 The secondary conversion unit 2340 can execute the secondary conversion using the determined secondary conversion.

図24は、本発明が適用される実施形態として、デコード装置200内の逆変換部230の詳細ブロック図の例を示す。 FIG. 24 shows an example of a detailed block diagram of the inverse conversion unit 230 in the decoding device 200 as an embodiment to which the present invention is applied.

本発明が適用されるデコード装置200は、2次逆変換適用可否決定部2410、2次逆変換決定部2420、2次逆変換部2430、1次逆変換部2440を含む。 The decoding device 200 to which the present invention is applied includes a secondary inverse conversion applicability determination unit 2410, a secondary inverse conversion determination unit 2420, a secondary inverse conversion unit 2430, and a primary inverse conversion unit 2440.

2次逆変換適用可否決定部2410は、2次逆変換の適用をするかどうかを決定することができる。たとえば、2次逆変換はNSSTまたはRSTで有り得る。一例として、2次逆変換適用可否決定部2410は、エンコード装置100から受信された2次変換フラグに基づいて、2次逆変換の適用をするかどうかを決定することができる。他の一例として、2次逆変換適用可否決定部2410は、レジデュアルブロックの変換係数に基づいて、2次逆変換の適用をするかどうかを決定することもできる。 The second-order inverse transformation applicability determination unit 2410 can determine whether or not to apply the second-order inverse transformation. For example, the second-order inverse transformation can be NSST or RST. As an example, the secondary inverse transformation applicability determination unit 2410 can determine whether or not to apply the secondary inverse transformation based on the secondary transformation flag received from the encoding device 100. As another example, the second-order inverse transformation applicability determination unit 2410 can also determine whether or not to apply the second-order inverse transformation based on the conversion coefficient of the resilient block.

2次逆変換決定部2420は、2次逆変換を決定することができる。このとき、2次逆変換決定部2420は、イントラ予測モードに応じて指定されたNSST(またはRST)変換セットに基づいて、現在ブロックに適用される2次逆変換を決定することができる。 The secondary inverse transformation determination unit 2420 can determine the secondary inverse transformation. At this time, the secondary inverse transformation determination unit 2420 can determine the secondary inverse transformation applied to the current block based on the NSST (or RST) transformation set specified according to the intra prediction mode.

また、一例として、2次逆変換決定部2420は、現在ブロックの大きさに基づいて、2次逆変換が適用される領域を決定することができる。 Further, as an example, the secondary inverse transformation determination unit 2420 can determine the region to which the secondary inverse transformation is applied based on the size of the current block.

また、一例として、2次逆変換部2430は、決定された2次逆変換を用いて、逆量子化されたレジデュアルブロックについて2次逆変換を行うことができる。 Further, as an example, the second-order inverse transformation unit 2430 can perform the second-order inverse transformation on the inverse-quantized residency block by using the determined second-order inverse transformation.

1次逆変換部2440は、2次逆変換されたレジデュアルブロックについて1次逆変換を行うことができる。実施形態として、1次逆変換部2440は、前述したMTSを用いて、1次変換を実行することができる。また、一例として、1次逆変換部2440は、現在ブロックにMTSが適用されるかどうかを決定することができる。 The primary inverse transformation unit 2440 can perform the primary inverse transformation on the register dual block that has been transformed into the secondary inverse. As an embodiment, the primary inverse conversion unit 2440 can perform the primary conversion using the MTS described above. Further, as an example, the primary inverse conversion unit 2440 can determine whether or not the MTS is currently applied to the block.

一例として、現在ブロックにMTSが適用される場合(つまり、cu_mts_flag = 1)、1次逆変換部2440は、現在ブロックのイントラ予測モードに基づいてMTS候補を構成することができる。そして、1次逆変換部2440は、構成されたMTSの候補の内から、特定のMTSを指示するmts_idxを用いて、現在ブロックに適用される1次変換を決定することができる。 As an example, when MTS is applied to the current block (that is, cu_mts_flag = 1), the primary inverse transformant 2440 can configure MTS candidates based on the intra-prediction mode of the current block. Then, the primary inverse transformation unit 2440 can determine the primary transformation applied to the current block by using mts_idx indicating a specific MTS from the configured MTS candidates.

図25は、本発明が適用される実施形態として、ビデオ信号を処理するためのフローチャートを示す。図25のフローチャートは、デコード装置200または逆変換部230によって実行されることができる。 FIG. 25 shows a flowchart for processing a video signal as an embodiment to which the present invention is applied. The flowchart of FIG. 25 can be executed by the decoding device 200 or the inverse conversion unit 230.

まず、デコード装置200は、非分離変換インデックス及び現在ブロックの幅と高さに基づいて、現在ブロックの逆非分離変換の適用をするかどうかを決定することができる。例えば、デコード装置200は、非分離変換インデックスが0ではなく、現在ブロックの幅と高さがそれぞれ4以上の場合、前記非分離変換を適用するように決定することができる。もし非分離変換インデックスが0であるか、現在ブロックの幅または高さが4より小さい場合、デコード装置200は、逆方向の非分離変換を省略し、逆方向1次変換を実行することができる。 First, the decoding device 200 can determine whether to apply the inverse non-separable conversion of the current block based on the non-separable conversion index and the width and height of the current block. For example, the decoding device 200 can determine to apply the non-separable conversion when the non-separable conversion index is not 0 and the width and height of the current block are each 4 or more. If the non-separable conversion index is 0 or the width or height of the current block is less than 4, the decoding device 200 can omit the non-separable conversion in the reverse direction and perform the primary conversion in the reverse direction. ..

S2505段階において、デコード装置200は、現在ブロックのイントラ予測モードに基づいて、予め定義された非分離変換セットの内から、現在ブロックの非分離変換に用いられる非分離変換セットを指示する非分離変換セットインデックスを決定する。非分離変換セットインデックスは、表7または表8のように、イントラ予測モードの範囲に応じて設定される4つの変換セットにそれぞれ割り当てられるように設定されることができる。つまり、表7または表8のように、イントラ予測モードが0〜1である場合、非分離変換セットインデックスは、第1インデックス値に決定され、イントラ予測モードが2〜12または56〜66であれば、非分離変換セットインデックスは、第2インデックス値に決定され、イントラ予測モードが13〜23または45〜55であれば、非分離変換セットインデックスは、第3インデックス値に決定され、イントラ予測モードが24〜44であれば、非分離変換セットインデックスは、第4インデックス値に決定することができる。 In the step S2505, the decoding device 200 indicates a non-separable conversion set to be used for the non-separable conversion of the current block from among the predefined non-separable conversion sets based on the intra-prediction mode of the current block. Determine the set index. The non-separable conversion set index can be set to be assigned to each of the four conversion sets set according to the range of the intra prediction mode, as shown in Table 7 or Table 8. That is, as shown in Table 7 or Table 8, when the intra prediction mode is 0 to 1, the non-separable conversion set index is determined to be the first index value, and the intra prediction mode is 2 to 12 or 56 to 66. For example, if the non-separable conversion set index is determined to be the second index value and the intra prediction mode is 13 to 23 or 45 to 55, the non-separable conversion set index is determined to be the third index value and the intra prediction mode. If is 24 to 44, the non-separable conversion set index can be determined to be the fourth index value.

ここで、予め定義された非分離変換セットは、表9のように、それぞれ2つの変換カーネルを含むことができる。また、予め定義された非分離変換セットは、表10または表11のように1つまたは2つの変換カーネルを含むこともできる。 Here, the predefined non-separable conversion set can each include two conversion kernels, as shown in Table 9. The predefined non-separable conversion set can also include one or two conversion kernels, as in Table 10 or Table 11.

S2510段階において、デコード装置200は、非分離変換セットインデックスによって指示される非分離変換セットに含まれた変換カーネルの内、現在ブロックの非分離変換インデックスによって指示される変換カーネルを非分離変換行列で決定する。たとえば、非分離変換セットインデックスのインデックス値のそれぞれについて、2つの非分離変換カーネルが設定されることができ、デコード装置200は、非分離変換セットインデックスに対応する2つの変換行列カーネルの内、非分離変換インデックスによって指示される変換カーネルに基づいて非分離変換行列を決定することができる。 In the S2510 step, the decoding apparatus 200 uses a non-separable transformation matrix to select the transformation kernel specified by the non-separable transformation index of the current block among the transformation kernels included in the non-separable transformation set indicated by the non-separable transformation set index. decide. For example, two non-separable transformation kernels can be set for each of the index values of the non-separable transformation set index, and the decoding device 200 can be set as a non-separable transformation matrix kernel among the two transformation matrix kernels corresponding to the non-separable transformation set index. The non-separable transformation matrix can be determined based on the transformation kernel indicated by the separate transformation index.

S2515段階において、デコード装置200は、現在のブロックの幅と高さに応じて決定される現在のブロックの左上側領域に対し非分離変換行列を適用する。たとえば、現在のブロックの幅と高さの全てが8以上の場合、現在のブロックの左上側8x8の領域に対して非分離変換が適用され、現在のブロックの幅または高さが8よりも小さい場合、現在のブロックの左上側4x4領域に対して非分離変換が適用されることができる。非分離変換のサイズもまた非分離変換が適用される領域に対応して8x8または4x4に対応するサイズ(e.g.48x16、16x16)に設定されることができる。 In step S2515, the decoding apparatus 200 applies a non-separable transformation matrix to the upper left region of the current block, which is determined according to the width and height of the current block. For example, if the width and height of the current block are all 8 or more, the non-separable transformation is applied to the 8x8 area on the upper left side of the current block, and the width or height of the current block is less than 8. In this case, the non-separable transformation can be applied to the upper left 4x4 region of the current block. The size of the non-separable conversion can also be set to a size corresponding to 8x8 or 4x4 (e.g. 48x16, 16x16) corresponding to the region to which the non-separable conversion is applied.

また、デコード装置200は、非分離変換が適用された現在ブロックに対して水平方向の変換と垂直方向の変換を適用することができる。ここで、水平方向の変換と垂直方向の変換は、現在ブロックに適用された予測モード及び変換行列の選択のためのMTSインデックスに基づいて決定することができる。 Further, the decoding device 200 can apply the horizontal conversion and the vertical conversion to the current block to which the non-separable conversion is applied. Here, the horizontal and vertical transformations can be determined based on the prediction mode currently applied to the block and the MTS index for the selection of the transformation matrix.

以下では、一次変換(primary transform)及び二次変換(secondary transform)を組み合わせて適用する方法を説明する。すなわち、本発明の実施形態においては、一次変換及び二次変換に用いられる変換を効率的に設計する方法を提案する。ここで、前記図1ないし図25で提案した方法が適用されてもよく、関連して重複する説明は省略する。 In the following, a method of applying a combination of a primary transformation and a secondary transformation will be described. That is, in the embodiment of the present invention, a method for efficiently designing the transformation used for the primary transformation and the secondary transformation is proposed. Here, the method proposed in FIGS. 1 to 25 may be applied, and related and duplicated description will be omitted.

前述したように、一次変換はエンコーダを基準に残差ブロックに先に適用される変換を示す。二次変換が適用される場合、エンコーダは一次変換された残差ブロックに対して二次変換を行う。一方、二次変換が適用される場合、デコーダを基準に一次逆変換に先立って二次逆変換が行われる。デコーダは、二次逆変換された変換係数ブロックに対して一次逆変換を行うことにより残差ブロックを誘導することができる。 As mentioned above, the primary transformation indicates the transformation applied first to the residual block relative to the encoder. When a secondary transformation is applied, the encoder performs a secondary transformation on the primary transformed residual block. On the other hand, when the secondary transformation is applied, the secondary inverse transformation is performed prior to the primary inverse transformation with reference to the decoder. The decoder can derive a residual block by performing a first-order inverse transformation on a conversion coefficient block that has undergone a second-order inverse transformation.

また、前述したように、二次変換として非分離変換が利用されてもよく、低い複雑度を維持するために、左上側の特定領域の低周波数の係数にのみ適用できる。このような、低周波数の係数に対して適用される二次変換は、NSST(Non−Separable Secondary Transform)、LFNST(low frequency non−separable transform)、RST(reduced secondary transform)と称されてもよい。また、前記一次変換はコア変換(core transform)と称されてもよい。 Further, as described above, a non-separable transformation may be used as a secondary transformation, and can be applied only to low frequency coefficients in a specific region on the upper left side in order to maintain low complexity. The quadratic transformation applied to such a low frequency coefficient may be referred to as NSST (Non-Separable Section Condary Transfer), LFNST (low frequency non-separable transform), or RST (reduced separable trans). .. Further, the primary transformation may be referred to as a core transformation.

本発明の一実施形態において、一次変換に用いられる一次変換候補及び二次変換に用いられる二次変換カーネルは、様々な組み合わせで予め定義されてもよい。本明細書において、一次変換に用いられる一次変換候補はMTS候補と称されてもよいが、その名称に制限されない。一例として、一次変換候補は、水平及び垂直方向のそれぞれに適用される変換カーネル(又は、変換タイプ)の組み合わせであってもよく、前記変換カーネルは、DCT2、DST7及び/又はDCT8のいずれか1つであってもよい。言い換えると、一次変換候補は、DCT2、DST7及び/又はDCT8の少なくとも1つの組み合わせであり得る。以下で、具体的な例を挙げて説明する。 In one embodiment of the present invention, the primary conversion candidate used for the primary conversion and the secondary conversion kernel used for the secondary conversion may be predefined in various combinations. In the present specification, the primary conversion candidate used for the primary conversion may be referred to as an MTS candidate, but is not limited to the name. As an example, the primary conversion candidate may be a combination of conversion kernels (or conversion types) applied in each of the horizontal and vertical directions, and the conversion kernel may be any one of DCT2, DST7 and / or DCT8. It may be one. In other words, the primary conversion candidate can be at least one combination of DCT2, DST7 and / or DCT8. A specific example will be described below.

−組み合わせA -Combination A

組み合わせAにおいては、次の表12のように、イントラ予測モードによって一次変換候補及び二次変換カーネルが定義される。 In combination A, as shown in Table 12 below, the primary conversion candidate and the secondary conversion kernel are defined by the intra prediction mode.

Figure 2022500965
Figure 2022500965

表12を参照すると、一例(Case1)として、イントラ予測モードが方向性を有する場合、2つの一次変換候補が使用され、方向性を有さない場合(例えば、DC、プランナーモード)、4つの一次変換候補が使用される。ここで、二次変換候補は、イントラ予測モードの方向性に関係なく2つの変換カーネルを含むことができる。すなわち、前述したように、イントラ予測モードによって複数の二次変換カーネルセットが予め定義され、前記予め定義された複数の二次変換カーネルセットはそれぞれ2つの変換カーネルを含む。 Referring to Table 12, as an example (Case1), when the intra prediction mode has directionality, two primary conversion candidates are used, and when there is no directionality (for example, DC, planner mode), four primarys are used. Conversion candidates are used. Here, the secondary conversion candidate can include two conversion kernels regardless of the direction of the intra prediction mode. That is, as described above, the intra-prediction mode predefines a plurality of secondary transformation kernel sets, and each of the predefined secondary transformation kernel sets includes two transformation kernels.

また、一例(Case2)として、イントラ予測モードが方向性を有する場合、2つの一次変換候補が使用され、方向性を有さない場合、4つの一次変換候補が使用される。ここで、二次変換候補は、イントラ予測モードが方向性を有する場合、1つの変換カーネルを含み、方向性を有さない場合、2つの変換カーネルを含むことができる。 Further, as an example (Case2), when the intra prediction mode has directionality, two primary conversion candidates are used, and when there is no directionality, four primary conversion candidates are used. Here, the secondary conversion candidate can include one conversion kernel when the intra prediction mode has directionality, and may include two conversion kernels when it does not have directionality.

また、一例(Case3)として、イントラ予測モードが方向性を有する場合、2つの一次変換候補が使用され、方向性を有さない場合、4つの一次変換候補が使用される。ここで、二次変換候補は、イントラ予測モードの方向性に関係なく1つの変換カーネルを含むことができる。 Further, as an example (Case3), when the intra prediction mode has directionality, two primary conversion candidates are used, and when there is no directionality, four primary conversion candidates are used. Here, the secondary conversion candidate can include one conversion kernel regardless of the direction of the intra prediction mode.

−組み合わせB -Combination B

組み合わせBにおいては、次の表13のように、イントラ予測モードによって一次変換候補及び二次変換カーネルが定義される。 In combination B, the primary conversion candidate and the secondary conversion kernel are defined by the intra prediction mode as shown in Table 13 below.

Figure 2022500965
Figure 2022500965

表13を参照すると、一例(Case1)として、イントラ予測モードの方向性に関係なく、3つの一次変換候補が使用される。ここで、二次変換候補は、イントラ予測モードの方向性に関係なく2つの変換カーネルを含むことができる。すなわち、前述したように、イントラ予測モードによって複数の二次変換カーネルセットが予め定義され、前記予め定義された複数の二次変換カーネルセットはそれぞれ2つの変換カーネルを含むことができる。 Referring to Table 13, as an example (Case1), three primary conversion candidates are used regardless of the directionality of the intra prediction mode. Here, the secondary conversion candidate can include two conversion kernels regardless of the direction of the intra prediction mode. That is, as described above, the intra-prediction mode predefines a plurality of secondary transformation kernel sets, and the predefined plurality of secondary transformation kernel sets can each include two transformation kernels.

また、一例(Case2)として、イントラ予測モードの方向性に関係なく、3つの一次変換候補が使用される。ここで、二次変換候補は、イントラ予測モードが方向性を有する場合、1つの変換カーネルを含み、方向性を有さない場合、2つの変換カーネルを含むことができる。 Further, as an example (Case2), three primary conversion candidates are used regardless of the direction of the intra prediction mode. Here, the secondary conversion candidate can include one conversion kernel when the intra prediction mode has directionality, and may include two conversion kernels when it does not have directionality.

また、一例(Case3)として、イントラ予測モードの方向性に関係なく、3つの一次変換候補が使用される。このとき、二次変換候補は、イントラ予測モードの方向性に関係なく1つの変換カーネルを含むことができる。 Further, as an example (Case3), three primary conversion candidates are used regardless of the direction of the intra prediction mode. At this time, the secondary conversion candidate can include one conversion kernel regardless of the direction of the intra prediction mode.

−組み合わせC -Combination C

組み合わせCにおいては、次の表14のように、イントラ予測モードによって一次変換候補及び二次変換カーネルが定義される。 In combination C, the primary conversion candidate and the secondary conversion kernel are defined by the intra prediction mode as shown in Table 14 below.

Figure 2022500965
Figure 2022500965

表14を参照すると、一例(Case1)として、イントラ予測モードが方向性を有する場合、2つの一次変換候補が使用され、方向性を有さない場合(例えば、DC、プランナーモード)、3つの一次変換候補が使用される。ここで、二次変換候補は、イントラ予測モードの方向性に関係なく2つの変換カーネルを含むことができる。すなわち、前述したように、イントラ予測モードによって複数の二次変換カーネルセットが予め定義され、前記予め定義された複数の二次変換カーネルセットはそれぞれ2つの変換カーネルを含むことができる。 Referring to Table 14, as an example (Case1), when the intra prediction mode has directionality, two primary conversion candidates are used, and when there is no directionality (for example, DC, planner mode), three primarys are used. Conversion candidates are used. Here, the secondary conversion candidate can include two conversion kernels regardless of the direction of the intra prediction mode. That is, as described above, the intra-prediction mode predefines a plurality of secondary transformation kernel sets, and the predefined plurality of secondary transformation kernel sets can each include two transformation kernels.

また、一例(Case2)として、イントラ予測モードが方向性を有する場合、2つの一次変換候補が使用され、方向性を有さない場合、3つの一次変換候補が使用される。ここで、二次変換候補は、イントラ予測モードが方向性を有する場合、1つの変換カーネルを含み、方向性を有さない場合、2つの変換カーネルを含むことができる。 Further, as an example (Case2), when the intra prediction mode has directionality, two primary conversion candidates are used, and when there is no directionality, three primary conversion candidates are used. Here, the secondary conversion candidate can include one conversion kernel when the intra prediction mode has directionality, and may include two conversion kernels when it does not have directionality.

また、一例(Case3)として、イントラ予測モードが方向性を有する場合、2つの一次変換候補が使用され、方向性を有さない場合、3つの一次変換候補が使用される。ここで、二次変換候補は、イントラ予測モードの方向性に関係なく1つの変換カーネルを含むことができる。 Further, as an example (Case3), when the intra prediction mode has directionality, two primary conversion candidates are used, and when there is no directionality, three primary conversion candidates are used. Here, the secondary conversion candidate can include one conversion kernel regardless of the direction of the intra prediction mode.

以上では複数の一次変換候補を使用する場合を中心に説明した。以下では、固定された一次変換候補を利用する場合に対する一次変換と二次変換の組み合わせを例にして説明する。 In the above, the case of using a plurality of primary conversion candidates has been mainly described. In the following, a combination of a primary conversion and a secondary conversion for the case of using a fixed primary conversion candidate will be described as an example.

−組み合わせD -Combination D

組み合わせDにおいては、次の表15のように、イントラ予測モードによって一次変換候補及び二次変換カーネルが定義される。 In the combination D, the primary conversion candidate and the secondary conversion kernel are defined by the intra prediction mode as shown in Table 15 below.

Figure 2022500965
Figure 2022500965

表15を参照すると、実施形態として、イントラ予測モードに関係なく1つの一次変換候補が固定的に使用される。例えば、前記固定された一次変換候補は、DCT2、DST7及び/又はDCT8の少なくとも1つの組み合わせであり得る。 Referring to Table 15, as an embodiment, one primary conversion candidate is fixedly used regardless of the intra prediction mode. For example, the fixed primary conversion candidate can be at least one combination of DCT2, DST7 and / or DCT8.

一例(Case1)として、イントラ予測モードに関係なく、1つの一次変換候補が固定的に使用され、ここで、二次変換候補は、イントラ予測モードの方向性に関係なく2つの変換カーネルを含むことができる。すなわち、前述したように、イントラ予測モードによって複数の二次変換カーネルセットが予め定義され、前記予め定義された複数の二次変換カーネルセットはそれぞれ2つの変換カーネルを含むことができる。 As an example (Case1), one primary conversion candidate is fixedly used regardless of the intra prediction mode, where the secondary conversion candidate includes two conversion kernels regardless of the direction of the intra prediction mode. Can be done. That is, as described above, the intra-prediction mode predefines a plurality of secondary transformation kernel sets, and the predefined plurality of secondary transformation kernel sets can each include two transformation kernels.

また、一例(Case2) として、イントラ予測モードに関係なく1つの一次変換候補が固定的に使用され、ここで、二次変換候補は、イントラ予測モードが方向性を有する場合、1つの変換カーネルを含み、方向性を有さない場合、2つの変換カーネルを含むことができる。 Further, as an example (Case2), one primary conversion candidate is fixedly used regardless of the intra prediction mode, and here, the secondary conversion candidate uses one conversion kernel when the intra prediction mode has directionality. If included and not directional, two conversion kernels can be included.

また、一例(Case3)として、イントラ予測モードに関係なく1つの一次変換候補が固定的に使用され、ここで、二次変換候補はイントラ予測モードの方向性に関係なく1つの変換カーネルを含むことができる。 Further, as an example (Case3), one primary conversion candidate is fixedly used regardless of the intra prediction mode, and here, the secondary conversion candidate includes one conversion kernel regardless of the direction of the intra prediction mode. Can be done.

−組み合わせE -Combination E

組み合わせEにおいては、次の表16のように、イントラ予測モードによって一次変換候補及び二次変換カーネルが定義される。 In the combination E, the primary conversion candidate and the secondary conversion kernel are defined by the intra prediction mode as shown in Table 16 below.

Figure 2022500965
Figure 2022500965

表16を参照すると、一次変換としてDCT2が適用される場合に限って、二次変換が定義される。言い換えれば、MTSが適用されない場合(すなわち、一次変換としてDCT2が適用される場合)、二次変換が適用可能である。前記図10で説明したように、本明細書において、MTSが適用される場合とそうでない場合とを区別して説明されるが、本発明はこのような表現に制限されるものではない。例えば、MTSを適用するか否かは、予め定義された特定変換タイプ(基本変換タイプ、デフォルト変換タイプなどに称されてもよい)以外の別の変換タイプ(又は、変換カーネル)を使用するか否かと同一の意味であり得る。もし、MTSが適用される場合、基本変換タイプ以外の別の変換タイプ(例えば、複数の変換タイプのいずれか1つ又は2つ以上の組み合わせの変換タイプ)が変換に利用され、MTSが適用されない場合、基本変換タイプが変換に利用されることがある。一実施形態において、前記基本変換タイプはDCT2に設定(又は、定義)されることがある。 Referring to Table 16, the secondary transformation is defined only when DCT2 is applied as the primary transformation. In other words, if the MTS is not applied (ie, if the DCT2 is applied as the primary transformation), then the secondary transformation is applicable. As described with reference to FIG. 10, in the present specification, the case where MTS is applied and the case where MTS is not applied will be described separately, but the present invention is not limited to such expressions. For example, whether or not to apply MTS is whether to use another conversion type (or conversion kernel) other than the predetermined specific conversion type (which may be referred to as a basic conversion type, a default conversion type, etc.). It can have the same meaning as whether or not. If MTS is applied, another conversion type other than the basic conversion type (eg, one or more combinations of multiple conversion types) is used for the conversion and MTS is not applied. If so, the basic conversion type may be used for the conversion. In one embodiment, the basic conversion type may be set (or defined) to DCT2.

一例(Case1)として、一次変換にDCT2が適用される場合、二次変換が適用可能することができ、このとき、二次変換候補は、イントラ予測モードの方向性に関係なく2つの変換カーネルを含む。すなわち、前述したように、イントラ予測モードによって複数の二次変換カーネルセットが予め定義され、前記予め定義された複数の二次変換カーネルセットはそれぞれ2つの変換カーネルを含むことができる。 As an example (Case1), if DCT2 is applied to the primary transformation, the secondary transformation can be applied, in which case the secondary transformation candidates will have two transformation kernels regardless of the direction of the intra prediction mode. include. That is, as described above, the intra-prediction mode predefines a plurality of secondary transformation kernel sets, and the predefined plurality of secondary transformation kernel sets can each include two transformation kernels.

また、一例(Case2)として、一次変換にDCT2が適用される場合、二次変換が適用可能であり、ここで、二次変換候補はイントラ予測モードが方向性を有する場合、1つの変換カーネルを含み、方向性を有さない場合、2つの変換カーネルを含むことができる。 Further, as an example (Case2), when DCT2 is applied to the primary transformation, the secondary transformation is applicable, and here, the secondary transformation candidate uses one conversion kernel when the intra prediction mode has directionality. If included and not directional, two conversion kernels can be included.

また、一例(Case3)として、一次変換にDCT2が適用される場合、二次変換が適用可能であり、ここで、二次変換候補はイントラ予測モードの方向性に関係なく1つの変換カーネルを含むことができる。 Further, as an example (Case3), when DCT2 is applied to the primary transformation, the secondary transformation is applicable, and here, the secondary transformation candidate includes one conversion kernel regardless of the direction of the intra prediction mode. be able to.

図26は、本発明が適用される実施形態によるビデオ信号の変換方法を例示するフローチャートである。 FIG. 26 is a flowchart illustrating a method of converting a video signal according to an embodiment to which the present invention is applied.

図26を参照すると、説明の便宜のためにデコーダを中心に説明するが、本発明はこれに限定されるものではなく、本実施形態によるビデオ信号に対する変換方法はエンコーダにおいても実質的に同一に適用できる。図26のフローチャートは、デコード装置200又は逆変換部230により行われる。 With reference to FIG. 26, the decoder will be mainly described for convenience of explanation, but the present invention is not limited thereto, and the conversion method for the video signal according to the present embodiment is substantially the same in the encoder. Applicable. The flowchart of FIG. 26 is performed by the decoding device 200 or the inverse conversion unit 230.

デコード装置200は、現在ブロックの一次変換(primary transform)に適用される一次変換カーネル(primary transform kernel)を示す第1シンタックス要素(syntax element)をパーシングする(S2601)。 The decoding device 200 parses a first syntax element indicating a primary transformation kernel currently applied to a primary transformation kernel (S2601).

デコード装置200は、前記第1シンタックス要素に基づいて前記現在ブロックに二次変換(secondary transform)が適用できるか否かを決定する(S2602)。 The decoding device 200 determines whether or not a secondary transformation can be applied to the current block based on the first syntax element (S2602).

デコード装置200は、前記現在ブロックに二次変換が適用できる場合、前記現在ブロックの二次変換に適用される二次変換カーネル(secondary transform kernel)を示す第2シンタックス要素をパーシングする(S2603)。 If a secondary transformation can be applied to the current block, the decoding device 200 parses a second syntax element indicating a secondary transformation kernel (secondary transformation kernel) applied to the secondary transformation of the current block (S2603). ..

デコード装置200は、前記第2シンタックス要素により指示される二次変換カーネルを用いて前記現在ブロックの左上側の特定領域に対して二次逆変換を行うことにより、二次逆変換されたブロックを誘導する(S2604)。 The decoding device 200 performs a quadratic inverse transformation on a specific region on the upper left side of the current block using the quadratic transformation kernel indicated by the second geometric element, so that the block is quadratic inverse transformed. (S2604).

デコード装置200は、前記第1シンタックス要素により指示される一次変換カーネルを用いて前記二次逆変換されたブロックに対して一次逆変換を行うことにより、前記現在ブロックの残差ブロックを誘導する(S2605)。 The decoding device 200 induces the residual block of the current block by performing the primary inverse transformation on the secondary inverse transformed block using the primary transformation kernel indicated by the first geometric element. (S2605).

前述したように、S2602ステップは、前記第1シンタックス要素が予め定義された第1変換カーネルを示す場合、前記現在ブロックに二次変換が適用できると決定することにより行われる。ここで、前記第1変換カーネルはDCT2に定義される。 As described above, the S2602 step is performed by determining that a quadratic transformation can be applied to the current block if the first syntax element represents a predefined first transform kernel. Here, the first conversion kernel is defined in DCT2.

また、前述したように、デコード装置200は、前記現在ブロックのイントラ予測モードに基づいて予め定義された二次変換カーネルセット(secondary transform kernel set)のうち前記現在ブロックの二次変換に用いられる二次変換カーネルセットを決定することができる。そして、前記第2シンタックス要素は、前記決定された二次変換カーネルセット内で前記現在ブロックの二次変換に適用される二次変換カーネルを示すことができる。 Further, as described above, the decoding device 200 is used for the secondary conversion of the current block in the secondary conversion kernel set (secondary transition kernel set) defined in advance based on the intra prediction mode of the current block. The next conversion kernel set can be determined. The second syntax element can then indicate a secondary transformation kernel applied to the secondary transformation of the current block within the determined secondary transformation kernel set.

また、前述したように、前記予め定義された二次変換カーネルセットはそれぞれ2つの変換カーネルを含むことができる。 Also, as mentioned above, each of the predefined secondary conversion kernel sets can include two conversion kernels.

本発明の一実施例において、MTS(Multiple Transform Set)が用いられる構文構造の一例を説明する。 In one embodiment of the present invention, an example of a syntax structure in which an MTS (Multiple Transform Set) is used will be described.

一例として、次の表17は、シーケンスパラメータセット(sequence parameter set)の構文構造の一例を示す。 As an example, Table 17 below shows an example of the syntax structure of a sequence parameter set.

Figure 2022500965
Figure 2022500965

表17を参照すると、本発明の実施形態に係るMTSの使用可能かどうかは、シーケンスパラメータセットシンタックスを通じてシグナリングすることができる。ここで、sps_mts_intra_enabled_flagはイントラコーディングユニットのサブレベルシンタックス(syntax; 構文)(例えば、レジデュアルコーディング構文、変換ユニット構文)内にMTSフラグまたはMTSインデックスが存在するかどうかを指示する。そして、sps_mts_inter_enabled_flagはインターコーディングユニットのサブレベルの構文内にMTSフラグまたはMTSインデックスが存在するかどうかを指示する。 Referring to Table 17, the availability of the MTS according to the embodiment of the present invention can be signaled through the sequence parameter set syntax. Here, sps_mts_intra_enabled_flag indicates whether the MTS flag or MTS index is present in the sublevel syntax (syntax) of the intracoding unit (eg, resilient coding syntax, conversion unit syntax). And sps_mts_inter_enabled_flag indicates whether the MTS flag or MTS index is present in the sub-level syntax of the intercoding unit.

また、他の一例として、次の表18は、変換ユニットシンタックス(構文)構造の一例を示す。 As another example, Table 18 below shows an example of the conversion unit syntax structure.

Figure 2022500965
Figure 2022500965

図18を参照すると、cu_mts_flagは、MTSがルマ変換ブロックのレジデュアルサンプルに適用されるかどうかを示す。たとえば、cu_mts_flag = 0であれば、MTSがルマ変換ブロックのレジデュアルサンプルに適用されず、cu_mts_flag = 1であればMTSがルマ変換ブロックのレジデュアルサンプルに適用される。 Referring to FIG. 18, cu_mts_flag indicates whether MTS is applied to the resilient sample of the Luma conversion block. For example, if cu_mts_flag = 0, MTS is not applied to the register dual sample of the Luma conversion block, and if cu_mts_flag = 1, MTS is applied to the register dual sample of the Luma conversion block.

前述したように、本発明において、MTS、フラグに基づいて、MTSが適用される場合とそうでない場合を区分して説明するが、本発明がこのような表現に制限されるものではない。たとえば、MTSの適用可否は、予め定義された特定の変換タイプ(基本変換タイプ、デフォルト変換タイプなどで称されることができる)以外の他の変換タイプ(または変換カーネル)を使用するかどうかと同じ意味で有り得る。もしMTSが適用される場合、基本変換タイプ以外の他の変換タイプ(例えば、複数の変換タイプの内、いずれか1つ、または複数の組み合わせた変換タイプ)が変換に用いられ、MTSが適用されない場合、基本変換タイプが変換に用いられる。一実施例において、前記基本変換タイプはDCT2に設定(または定義)されることができる。 As described above, in the present invention, the case where the MTS is applied and the case where the MTS is not applied will be described separately based on the MTS and the flag, but the present invention is not limited to such expressions. For example, the applicability of MTS depends on whether to use a specific conversion type (or conversion kernel) other than a specific predefined conversion type (which can be referred to as a basic conversion type, default conversion type, etc.). It can have the same meaning. If MTS is applied, other conversion types other than the basic conversion type (eg, one or a combination of multiple conversion types) will be used for the conversion and MTS will not be applied. If the basic conversion type is used for the conversion. In one embodiment, the basic conversion type can be set (or defined) to DCT2.

一例として、現在の変換ブロックにMTSが適用されるかどうかを指示するMTSフラグ構文とMTSが適用される場合、前記現在のブロックに適用される変換タイプを指示するMTSインデックス構文が個別にエンコーダからデコーダに転送されることもあり、他の一例として、現在の変換ブロックにMTSが適用されるかどうか、及びMTSが適用される場合、前記現在のブロックに適用される変換タイプの全てを含む構文(たとえば、MTSインデックス)がエンコーダからデコーダに転送されることもできる。つまり、後者の実施例において、前述した基本変換タイプを含む完全変換タイプのグループ(または変換タイプセット)内で現在の変換ブロック(またはユニット)に適用される変換のタイプを指示する構文(または構文要素)がエンコーダからデコーダに転送されることができる。 As an example, the MTS flag syntax that indicates whether MTS is applied to the current conversion block and the MTS index syntax that indicates the conversion type applied to the current block are individually from the encoder. It may also be transferred to a decoder, as another example: whether MTS applies to the current conversion block, and if MTS applies, a syntax that includes all of the conversion types that apply to the current block. (For example, the MTS index) can also be transferred from the encoder to the decoder. That is, in the latter embodiment, a syntax (or syntax) that indicates the type of conversion applied to the current conversion block (or unit) within a group (or conversion type set) of complete conversion types, including the basic conversion types described above. The element) can be transferred from the encoder to the decoder.

したがって、その表現にもかかわらず、現在の変換ブロックに適用される変換のタイプを指示する構文(MTSインデックス)は、MTS適用するかどうかについての情報を含むことができる。つまり、後者の実施例においてMTSフラグなしMTSインデックスのみシグナリングされることがあり、この場合は、MTSにDCT2が含まれるものと解釈することができるが、本発明においては、DCT2を適用する場合を、MTSを適用しないものと記述することができ、それにもかかわらず、MTSの記述的範囲は、その定義内容に限定されない。 Therefore, despite that representation, the syntax (MTS index) that indicates the type of transformation applied to the current transformation block can include information about whether to apply the MTS. That is, in the latter embodiment, only the MTS index without the MTS flag may be signaled, and in this case, it can be interpreted that DCT2 is included in MTS, but in the present invention, the case where DCT2 is applied is used. , MTS can be described as not applicable, and nevertheless, the descriptive scope of MTS is not limited to its definition.

また、他の一例として、次の表19は、レジデュアルユニットの構文構造の一例を示す。 As another example, Table 19 below shows an example of the syntax structure of the resilient unit.

Figure 2022500965
Figure 2022500965

Figure 2022500965
Figure 2022500965

Figure 2022500965
Figure 2022500965

Figure 2022500965
Figure 2022500965

Figure 2022500965
Figure 2022500965

表19を参照すると、transform_skip_flag及び/またはmts_idx構文(または構文要素)は、レジデュアル構文を通じてシグナリングすることができる。ただし、これは一つの例示であり、本発明がこれに限定されるものではない。たとえば、transform_skip_flag及び/またはmts_idx構文(シンタックス)は、変換ユニット構文を通じてシグナリングされることもできる。 Referring to Table 19, the transform_skip_flag and / or mts_idx syntax (or syntax element) can be signaled through the resilient syntax. However, this is an example, and the present invention is not limited thereto. For example, the transform_skip_flag and / or mts_idx syntax (syntax) can also be signaled through the transform unit syntax.

以下においては、予め定義された領域にのみ一次変換(primary transform)を適用することにより、複雑さを改善する方法を提案する。 MTSのような様々な様々の変換(または変換カーネル)(例えば、DCT2、DST7、DCT8、DST1、DCT5など)の組み合わせが選択的に一次変換に適用される場合、複雑さが増加することができる。特に、コーディングブロック(または変換ブロック)のサイズが大きくなるほど多様な複数の変換を考慮しなければならないことにより、著しく複雑さが増加することができる。 In the following, we propose a method to improve the complexity by applying the primary transform only to the predefined regions. Complexity can be increased if a combination of various different transformations (or transformation kernels) such as MTS (eg, DCT2, DST7, DCT8, DST1, DCT5, etc.) is selectively applied to the primary transformation. .. In particular, the larger the size of the coding block (or conversion block), the greater the complexity that can be significantly increased by having to consider a variety of transformations.

したがって、本明細書の実施例においては、複雑さの減少のために、すべての領域に対して変換を実行する(または適用)するのではなく、特定条件に応じて、あらかじめ定義された領域にのみ変換を実行する方法を提案する。 Therefore, in the embodiments herein, for the sake of reduced complexity, instead of performing (or applying) the transformation on all areas, on certain conditions, in the predefined areas. Only suggests a way to perform the conversion.

実施例として、先の図16乃至24で説明した縮小された変換(RT:Reduced transform)方法に基づいて、エンコーダは、MxMサイズの画素ブロック(luma block)に対して順方向一次変換(Primary transform)を適用しMxMサイズの変換ブロックを獲得する代わりに、RxRサイズの変換ブロックを獲得することができる。一例として、RxR領域は、現在のブロック(コーディングブロック、変換ブロック)内の左上側(top-left)RxR領域で有り得る。デコーダは、RxR(M> = R)のサイズの領域にのみ、逆方向一次変換を実行することにより、MxMサイズの変換ブロックを獲得することができる。 As an example, based on the reduced transform (RT) method described in FIGS. 16 to 24 above, the encoder has a primary transform for an MxM size pixel block (luma block). ) To acquire the conversion block of MxM size, instead of acquiring the conversion block of RxR size. As an example, the RxR region can be the top-left RxR region in the current block (coding block, conversion block). The decoder can acquire the MxM size conversion block by performing the reverse primary conversion only in the region of the size of RxR (M> = R).

結果的に、RxR領域にのみ有効な係数(non-zero coefficients)が存在することができる。一例として、この場合、デコーダはRxR領域以外の領域内に存在する係数については、計算を実行せずに値を0と見なす(zero-out)することができる。エンコーダは、RxR領域のみ残るよう(RxR領域のみ有効係数が存在することができるよう)順方向変換を実行することができる。 As a result, non-zero coefficients can exist only in the RxR region. As an example, in this case, the decoder can zero-out the values of the coefficients existing in the region other than the RxR region without performing the calculation. The encoder can perform forward conversion so that only the RxR region remains (so that the effective coefficient can exist only in the RxR region).

また、デコーダは、コーディングブロック(または変換ブロック)のサイズ及び/または変換(または変換カーネル)の種類に応じて決定される予め定義された領域にのみ一次変換(つまり、逆変換)を適用することができる。次、表20は、変換のサイズ(または変換ブロックのサイズ)に応じて、予め定義されたR(Reduced factor、Reduced transform factorなどで称されることができる)の値を使用するReduced Adaptive Multiple Transform(RAMT)を例示する。本発明において、ブロックサイズに応じて適応的に決定される縮小された変換を示すReduced Adaptive Multiple Transform(RAMT)はReduced MTS(Multiple Transform Selection)、Reduced explicit multiple transform、Reduced primary transformなどで称されることができる。 Also, the decoder should apply the primary transformation (ie, inverse transformation) only to the predefined regions determined by the size of the coding block (or transformation block) and / or the type of transformation (or transformation kernel). Can be done. Next, Table 20 shows the Reduced Adaptive Multiple Transform using predefined values of R (which can be referred to as Reduced factor, Reduced transform factor, etc.) depending on the size of the transformation (or the size of the transform block). (RAMT) is illustrated. In the present invention, Reduced Adaptive Multiple Transform (RAMT) indicating a reduced transformation that is adaptively determined according to a block size is referred to as Reduced MTS (Multiple Transform Selection), Reduced explicit multiple transform, Reduced primary transform, and the like. be able to.

Figure 2022500965
Figure 2022500965

表20を参照すると、変換のサイズ(または変換ブロックのサイズ)に応じて、少なくとも一つ以上の縮小された変換が定義されることができる。一実施例において、表20に例示された縮小された変換の内、いずれの縮小された変換が用いられるかは、現在のブロック(コーディングブロックまたは変換ブロック)に適用される変換(または変換カーネル)に基づいて決定することができる。前記表20においては、3つの縮小された変換用いられる場合を仮定するが、本発明はこれに限定されるものではなく、変換のサイズに応じて1つ以上の様々な個数の縮小された変換が予め定義することができる。 With reference to Table 20, at least one reduced transformation can be defined, depending on the size of the transformation (or the size of the transformation block). In one embodiment, which of the reduced transformations exemplified in Table 20 is used is the transformation (or transformation kernel) applied to the current block (coding block or transformation block). Can be determined based on. In Table 20, it is assumed that three reduced conversions are used, but the present invention is not limited thereto, and one or more various numbers of reduced conversions are used depending on the size of the conversion. Can be predefined.

また、本発明の実施例において、前述したreduced adaptive multiple transformを適用することにおいて、reduced transform factor(R)が一次変換に基づいて依存的に決定することができる。例えば、一次変換がDCT2である場合、他の一次変換(例えば、DST7及び/またはDCT8の組み合わせ)に比べて計算量が比較的簡単なのでサイズが小さいブロックに対しては、縮小された変換を用いられないか、相対的で大きなR値を用いることにより、符号化性能の減少を最小化することができる。次の表21は、変換のサイズ(または変換ブロックのサイズ)及び変換カーネルに基づいて予め定義されたR値を用いるReduced Adaptive Multiple Transform(RAMT)を例示する。 Further, in applying the reduced adaptive multiple transform described above in the embodiment of the present invention, the reduced transform factor (R) can be determined depending on the linear transformation. For example, when the linear transformation is DCT2, the computational complexity is relatively simple compared to other linear transformations (eg, a combination of DST7 and / or DCT8), so for small blocks, the reduced transformation is used. The decrease in coding performance can be minimized by using a relatively large R value. The following Table 21 illustrates a Reduced Adaptive Multiple Transform (RAMT) with a predefined R value based on the size of the transformation (or the size of the transformation block) and the transformation kernel.

Figure 2022500965
Figure 2022500965

表21を参照すると、一次変換に適用される変換がDCT2の場合とその他の変換(例えば、DST7及び/またはDCT8の組み合わせ)である場合、互いに異なるReduced transform factorを用いられる。 Referring to Table 21, if the transformation applied to the primary transformation is DCT2 and other transformations (eg, a combination of DST7 and / or DCT8), different Reduced transform factors are used.

図27は、本発明が適用される実施例として、縮小された変換(Reduced transform)を用いて、ビデオ信号をエンコードする方法を例示する図である。 FIG. 27 is a diagram illustrating a method of encoding a video signal using a reduced transform as an embodiment to which the present invention is applied.

図27を参照すると、まず、エンコーダは、現在のブロックに変換を適用するかどうかを決定する(S2701)。エンコーダは、決定された結果に基づいて変換スキップフラグ(transform skip flag)をエンコードすることができる。この場合、変換スキップフラグをエンコードするステップがS2701段階に含めることができる。 Referring to FIG. 27, the encoder first determines whether to apply the transformation to the current block (S2701). The encoder can encode the transform skip flag based on the determined result. In this case, the step of encoding the conversion skip flag can be included in the S2701 step.

エンコーダは、現在のブロックに変換が適用される場合、現在のブロックの一次変換(primary transform)に適用される変換カーネルを決定する(S2702)。エンコーダは、決定された変換カーネルを指示する変換インデックス(transform index)をエンコードすることができ、この場合、変換インデックス(transform index)をエンコードするステップがS2702段階に含めることができる。 When a transformation is applied to the current block, the encoder determines the transformation kernel to be applied to the primary transform of the current block (S2702). The encoder can encode a transform index that points to a determined transform kernel, in which case a step of encoding the transform index can be included in the S2702 step.

エンコーダは、現在のブロックの一次変換に適用される変換カーネルと、現在のブロックの大きさに基づいて、現在のブロック内の有効係数が存在する領域を決定する(S2703)。 The encoder determines the region in which the effective coefficient exists in the current block based on the transformation kernel applied to the primary transformation of the current block and the size of the current block (S2703).

また、一実施例として、エンコーダは、変換インデックスによって指示される変換カーネルが予め定義された変換であり、現在のブロックの幅(width)、及び/または高さ(height)が予め定義されたサイズより大きい場合、前記予め定義されたサイズの幅及び/または高さを有する領域を前記有効係数が存在する領域に決定することができる。 Also, as an embodiment, the encoder is a conversion in which the conversion kernel indicated by the conversion index is a predefined conversion, and the width and / or height of the current block is a predefined size. If it is larger, a region having the width and / or height of the predefined size can be determined as the region in which the effective factor is present.

例えば、前記予め定義された変換は、DST7及び/またはDCT8の組み合わせで構成された複数の変換の組み合わせの内、いずれか1つで有り得、前記予め定義されたサイズは、16で有り得る。または、前記予め定義された変換は、DCT2を除外した残りの変換で有り得る。また、一例として、エンコーダは、前記変換インデックスによって指示される変換カーネルがDCT2であり、前記現在ブロックの幅及び/または高さが32よりも大きい場合、幅及び/または高さが32である領域を、前記一次変換が適用される領域に決定することができる。 For example, the predefined conversion may be any one of a plurality of conversion combinations configured with a combination of DST7 and / or DCT8, and the predefined size may be 16. Alternatively, the predefined conversion may be the remaining conversion excluding DCT2. Also, as an example, the encoder is a region where the width and / or height is 32 when the conversion kernel indicated by the conversion index is DCT2 and the width and / or height of the current block is greater than 32. Can be determined in the region to which the primary transformation is applied.

また、一実施例として、エンコーダは、前記変換インデックスによって指示される変換カーネルが第1変換グループに属する場合、現在のブロックの幅(width)と第1しきい値の内、小さい方の値を前記一次変換が適用される領域の幅に決定し、現在のブロックの高さ(height)と、第1しきい値の内、小さい方の値を前記有効係数が存在する領域の高さに決定することができる。一例として、第1しきい値は32で有り得るが、本発明がこれに限定されるものではなく、前述した表20または表21のように4、8、16で有り得る。 Further, as an embodiment, when the conversion kernel indicated by the conversion index belongs to the first conversion group, the encoder determines the smaller value of the current block width (width) and the first threshold value. The width of the area to which the linear transformation is applied is determined, and the height of the current block and the smaller value of the first threshold values are determined to be the height of the area where the effective coefficient exists. can do. As an example, the first threshold may be 32, but the present invention is not limited thereto, and may be 4, 8 or 16 as in Table 20 or Table 21 described above.

そして、エンコーダは、前記変換インデックスによって指示される変換カーネルが第2変換グループに属する場合、現在のブロックの幅と第2しきい値の内、小さい方の値を一次変換が適用される領域の幅に決定し、現在のブロックの高さと第2しきい値の内、小さい方の値を有効係数が存在する領域の高さに決定することができる。一例として、第2しきい値は16で有り得るが、本発明がこれに制限されるものではなく、前述した表20または表21のように、4、6、8、12、32で有り得ることも有る。 Then, when the conversion kernel specified by the conversion index belongs to the second conversion group, the encoder sets the smaller value of the current block width and the second threshold value in the region to which the primary conversion is applied. The width can be determined, and the smaller of the current block height and the second threshold can be determined as the height of the region where the effective coefficient exists. As an example, the second threshold can be 16, but the present invention is not limited thereto, and may be 4, 6, 8, 12, 32 as in Table 20 or Table 21 described above. There is.

一実施例として、前記第1変換グループは、DCT2を含み、前記第2変換グループはDST7及び/またはDCT8の組み合わせで構成された複数の変換の組み合わせを含むことができる。 As an embodiment, the first conversion group may include DCT2, and the second conversion group may include a combination of multiple conversions composed of a combination of DST7 and / or DCT8.

エンコーダは、現在のブロックの一次変換に適用される変換カーネルを用いて、順方向一次変換(forward primary transform)を実行する(S2704)。エンコーダは、順方向一次変換を実行することにより、有効係数が存在する領域内の一次変換された変換係数を獲得することができる。一実施例として、エンコーダは、一次変換された変換係数に二次変換(secondary transform)を適用することができ、この場合、先の図6〜図26で説明した方法が適用されることができる。 The encoder performs a forward primary transform using the transform kernel applied to the primary transform of the current block (S2704). The encoder can obtain the linearly transformed conversion coefficient in the region where the effective coefficient exists by performing the forward linear transformation. As an embodiment, the encoder can apply a secondary transform to the first-order transformed coefficients, in which case the methods described above with FIGS. 6-26 can be applied. ..

図28は、本発明が適用される実施例として、縮小された変換(Reduced transform)を用いて、ビデオ信号をデコードする方法を例示する図である。 FIG. 28 is a diagram illustrating a method of decoding a video signal by using a reduced transform as an embodiment to which the present invention is applied.

デコーダは、現在のブロックに変換スキップ(transform skip)が適用されるかどうかを確認する(S2801)。 The decoder checks whether the transform skip is applied to the current block (S2801).

デコーダは、現在のブロックに変換スキップが適用されない場合、ビデオ信号から現在ブロックに適用される変換カーネル(transform kernel)を指示する変換インデックス(transform in-dex)を獲得する(S2802)。 The decoder acquires a transform in-dex indicating the transform kernel applied to the current block from the video signal if the transform skip is not applied to the current block (S2802).

デコーダは、変換インデックスによって指示される変換カーネルと、現在のブロックの
サイズ(つまり、幅及び/または高さ)に基づいて、現在のブロックに一次変換(primary transform)(つまり、一次逆変換)が適用される領域を決定する(S2803)。
The decoder has a primary transform to the current block based on the transform kernel indicated by the transform index and the size (ie, width and / or height) of the current block. The area to be applied is determined (S2803).

一実施例として、デコーダは、現在のブロック内において、一次変換が適用される領域以外の残りの領域の係数を0と見なすことができる。 As an embodiment, the decoder can consider in the current block the coefficients of the remaining regions other than the region to which the linear transformation is applied as zero.

また、一実施例として、デコーダは、変換インデックスによって指示される変換カーネルが予め定義された変換であり、現在のブロックの幅(width)、及び/または高さ(height)が予め定義されたサイズより大きい場合、前記予め定義されたサイズの幅及び/または高さを有する領域を前記一次変換が適用される領域に決定することができる。 Also, as an embodiment, the decoder is a conversion in which the conversion kernel indicated by the conversion index is a predefined conversion, and the width and / or height of the current block is a predefined size. If it is larger, a region having the width and / or height of the predefined size can be determined as the region to which the primary transformation is applied.

例えば、前記予め定義された変換は、DST7及び/またはDCT8の組み合わせで構成された複数の変換の組み合わせの内、いずれか1つで有り得、前記予め定義されたサイズは、16で有り得る。または、前記予め定義された変換は、DCT2を除外した残りの変換で有り得る。また、一例として、デコーダは、前記変換インデックスによって指示される変換カーネルがDCT2であり、前記現在のブロックの幅及び/または高さが32より大きい場合、幅及び/または高さが32である領域を、前記一次変換が適用さされる領域に決定することができる。 For example, the predefined conversion may be any one of a plurality of conversion combinations configured with a combination of DST7 and / or DCT8, and the predefined size may be 16. Alternatively, the predefined conversion may be the remaining conversion excluding DCT2. Also, as an example, the decoder is a region where the width and / or height is 32 when the conversion kernel indicated by the conversion index is DCT2 and the width and / or height of the current block is greater than 32. Can be determined in the region to which the primary transformation is applied.

また、一実施例として、デコーダは、前記変換インデックスによって指示される変換カーネルが第1変換グループに属する場合、現在のブロックの幅(width)と第1しきい値の内、小さい方の値を前記一次変換が適用される領域の幅に決定し、現在のブロックの高さ(height)と、第1しきい値の内、小さい方の値を前記一次変換が適用される領域の高さに決定することができる。一例として、第1しきい値は32で有り得るが、本発明がこれに制限されるものではなく、前述した表20または表21のように4、8、16で有り得る。 Further, as an embodiment, when the conversion kernel indicated by the conversion index belongs to the first conversion group, the decoder determines the smaller value of the current block width (width) and the first threshold value. The width of the area to which the primary transformation is applied is determined, and the height of the current block and the smaller value of the first threshold values are set to the height of the area to which the primary transformation is applied. Can be decided. As an example, the first threshold may be 32, but the present invention is not limited thereto, and may be 4, 8 or 16 as in Table 20 or Table 21 described above.

そして、デコーダは、前記変換インデックスによって指示される変換カーネルが第2変換グループに属する場合、現在のブロックの幅と第2しきい値の内、小さい方の値を一次変換が適用される領域の幅に決定し、現在のブロックの高さと第2しきい値の内、小さい方の値を一次変換が適用される領域の高さに決定することができる。一例として、第2しきい値は16で有り得るが、本発明がこれに制限されるものではなく、前述した表20または表21のように、4、6、8、12、32でも有り得る。 Then, when the conversion kernel specified by the conversion index belongs to the second conversion group, the decoder uses the smaller value of the current block width and the second threshold value as the area to which the primary conversion is applied. The width can be determined, and the smaller of the current block height and the second threshold can be determined to be the height of the area to which the linear transformation is applied. As an example, the second threshold may be 16, but the present invention is not limited thereto, and may be 4, 6, 8, 12, 32 as in Table 20 or Table 21 described above.

一実施例として、前記第1変換グループは、DCT2を含み、前記第2変換グループはDST7及び/またはDCT8の組み合わせで構成された複数の変換の組み合わせを含むことができる。 As an embodiment, the first conversion group may include DCT2, and the second conversion group may include a combination of multiple conversions composed of a combination of DST7 and / or DCT8.

デコーダは、一次変換が適用される領域に対し、変換インデックスによって指示される変換カーネルを用いて、逆方向一次変換(inverse primary transform)を実行する(S2804)。デコーダは、逆方向一次変換を実行することにより、一次逆変換された変換係数を獲得することができる。一実施例として、デコーダは、一次変換を実行する前に、逆量子化された変換係数に二次変換(secondary transform)を適用することができ、この場合、先の図6〜図26で説明した方法が適用されることができる。 The decoder performs an inverse primary transform on the region to which the primary transformation is applied, using the transformation kernel indicated by the transformation index (S2804). The decoder can obtain the conversion coefficient obtained by performing the first-order inverse transformation. As an embodiment, the decoder can apply a secondary transform to the inverse quantized transformation factor before performing the primary transformation, in which case it will be described in FIGS. 6-26 above. The method used can be applied.

本明細書の実施例に係ると、特定の条件に応じて、予め定義された領域にのみ変換を実行することにより、worst case複雑さを大幅に減少させることができる。 According to the embodiments of the present specification, the worst case complexity can be significantly reduced by performing the transformation only on the predefined regions, depending on the specific conditions.

また、本明細書の一実施例において、MTS、(EMTまたはAMT)フラグが0である場合(つまり、水平(横)方向と垂直(縦)方向のすべてDCT−2変換が適用される場合) 、エンコーダ/デコーダは、水平及び垂直方向に対しそれぞれ左側と上側から32個の係数だけを残し、高周波成分に対してゼロアウト(zero-out)を実行する(つまり、0と見なすまたは設定)することができる。本実施例は、後述する実施例での説明の便宜のために、第1実施例と称するが、本明細書の実施例が、これに制限されるものではない。 Further, in one embodiment of the present specification, when the MTS (EMT or AMT) flag is 0 (that is, when all DCT-2 conversions in the horizontal (horizontal) direction and the vertical (vertical) direction are applied). The encoder / decoder should perform (ie, consider or set) zero-out for high frequency components, leaving only 32 coefficients from the left and top, respectively, in the horizontal and vertical directions. Can be done. This example is referred to as a first embodiment for convenience of explanation in the examples described later, but the examples of the present specification are not limited thereto.

例えば、エンコーダ/デコーダは、64x64 TU(またはCU)の場合、左上端(top-left)32x32の領域にのみ変換係数を残し、残りの領域の係数に対してゼロアウトを行うことができる。また、エンコーダ/デコーダは、64x16 TUの場合、左上端32x16の領域にのみ変換係数を残し、残りの領域の係数に対してゼロアウトを行うことができる。また、エンコーダ/デコーダは、8x64 TUの場合、左上端8x32の領域にのみ変換係数を残し、残りの領域の係数に対してゼロアウトを行うことができる。つまり、水平及び垂直方向の全て最大長32だけまで変換係数が存在するように設定することができ、これにより、変換効率を高めるさせることができる。 For example, in the case of a 64x64 TU (or CU), the encoder / decoder can leave the conversion coefficient only in the top-left 32x32 region and zero out the coefficients in the remaining region. Further, in the case of 64x16 TU, the encoder / decoder can leave the conversion coefficient only in the upper left end 32x16 region and perform zero-out to the coefficient in the remaining region. Further, in the case of 8x64 TU, the encoder / decoder can leave the conversion coefficient only in the upper left end 8x32 region and perform zero-out to the coefficient in the remaining region. That is, it is possible to set the conversion coefficient to exist only up to a maximum length of 32 in all the horizontal and vertical directions, whereby the conversion efficiency can be improved.

一実施例として、このようなゼロアウトの方法は、イントラ予測が適用された残差信号のみ適用されることもあり、インター予測が適用された残差信号のみ適用されることもあり、イントラ予測が適用された残差信号とインター予測が適用された残差信号の全てに適用することもできる。 As an example, such a zero-out method may apply only the residual signal to which the intra-prediction is applied, or only the residual signal to which the inter-prediction is applied, so that the intra-prediction is applied. It can also be applied to all applied residual signals and residual signals to which interprediction is applied.

また、本明細書の実施例において、MTSフラグが1である場合(つまり、水平方向と垂直方向のDCT−2変換以外の他の変換(例えば、DST−7またはDCT−8)が適用されることができる場合)、エンコーダ/デコーダは、左上端の特定の領域の係数を残し、残りの高周波成分に対してゼロアウト(zero-out)を実行する(つまり、0と見なすまたは設定)することができる。本実施例は、後述する実施例での説明の便宜のために、第2実施例と称するが、本明細書の実施例が、これに制限されるものではない。 Further, in the embodiment of the present specification, when the MTS flag is 1 (that is, other conversions other than the horizontal and vertical DCT-2 conversions (for example, DST-7 or DCT-8) are applied). If possible), the encoder / decoder may perform (ie, consider or set) zero-out for the remaining high frequency components, leaving the coefficients in a particular region at the top left corner. can. This example is referred to as a second embodiment for convenience of explanation in the examples described later, but the examples of the present specification are not limited thereto.

実施例として、エンコーダ/デコーダは次の例のように、一部の左上端の領域の変換係数領域のみを残すように構成することができる。つまり、エンコーダ/デコーダは、幅及び/または高さに応じて一次変換が適用される水平方向及び/または垂直方向の変換係数の長さ(または個数)を予め設定することができる。一例として、一次変換が適用される長さを超える係数はゼロアウトすることができる。 As an embodiment, the encoder / decoder can be configured to leave only the conversion factor region of a portion of the upper left corner region, as in the following example. That is, the encoder / decoder can preset the length (or number) of horizontal and / or vertical transformation coefficients to which the primary transformation is applied, depending on the width and / or height. As an example, coefficients beyond the length to which the linear transformation is applied can be zeroed out.

- 幅(w)が2nより同じか大きい場合、左からw/2pの長さだけにのみ変換係数を残し、残りの領域の変換係数は、0の値に固定(または設定、見なす)(zero-out)させることができる。 --When the width (w) is the same as or larger than 2n, the conversion coefficient is left only for the length of w / 2p from the left, and the conversion coefficient of the remaining area is fixed (or set, regarded) to the value of 0 (zero). -out) can be made.

− 高さ(h)が2mである場合、上からh/2q長さだけにのみ変換係数を残し、残りの変換係数は、0の値に固定させることができる。 -When the height (h) is 2 m, the conversion coefficient can be left only for the h / 2q length from the top, and the remaining conversion coefficient can be fixed to a value of 0.

一例として、m、n、p、qの値は、様々な複数の値に予め定義することができる。例えば、m、n、p、qの値は0より同じか大きい整数値に設定されることができる。または、具体的には以下の例のように設定することができる。 As an example, the values of m, n, p, q can be predefined to various values. For example, the values of m, n, p, q can be set to integer values equal to or greater than 0. Alternatively, it can be specifically set as in the following example.

1)(m、n、p、q)=(5、5、1、1) 1) (m, n, p, q) = (5, 5, 1, 1)

2)(m、n、p、q)=(4、4、1、1) 2) (m, n, p, q) = (4, 4, 1, 1)

例えば、1)番構成で予め定義された場合、32x16 TUには、左上端16x16の領域にのみ変換係数が残ることがあり、8x32 TUには、左上端8x16の領域にのみ変換係数が残ることがある。 For example, in the case of 1) defined in advance in the configuration, the conversion coefficient may remain only in the region of the upper left end 16x16 in the 32x16 TU, and the conversion coefficient remains only in the region of the upper left end 8x16 in the 8x32 TU. There is.

一実施例として、このようなゼロアウトの方法は、イントラ予測が適用された残差信号にのみ適用されることもあり、インター予測が適用された残差信号にのみ適用されることもあり、イントラ予測が適用された残差信号とインター予測が適用された残差信号の全てに適用されることもできる。 As an example, such a zero-out method may be applied only to the residual signal to which the intra-prediction is applied, or may be applied only to the residual signal to which the inter-prediction is applied, and may be applied to the intra-prediction. It can also be applied to all the residual signals to which the prediction is applied and the residual signals to which the inter-prediction is applied.

また、本明細書の他の一実施例において、MTS、フラグが1である場合(つまり、水平方向と垂直方向のDCT−2変換以外の他の変換(例えば、DST−7またはDCT−8)が適用できる場合)、エンコーダ/デコーダは、左上端の特定の領域の係数を残し、残りの高周波成分に対してゼロアウト(zero-out)を実行する(つまり、0と見なすまたは設定する)ことができる。または、さらに具体的に、エンコーダは、予め定義された左上端の特定の領域の係数を残して、残りの高周波成分に対してゼロアウト(zero-out)を行うことができ、デコーダはゼロアウトされた領域を予め認知しゼロアウトされていない領域の係数を用いてコーディングを行うことができる。ただし、本明細書の実施例が、これに制限されるものではなく、デコーダ側面でのゼロアウトプロセスはゼロアウトされた領域を0と見なし(また認知、設定)するプロセスとして理解することができる。本実施例は、後述する実施例での説明の便宜のために、第3実施例と称するが、本明細書の実施例が、これに制限されるものではない。 Further, in another embodiment of the present specification, when the MTS and the flag are 1 (that is, other conversions other than the horizontal and vertical DCT-2 conversions (for example, DST-7 or DCT-8)). (If applicable), the encoder / decoder may perform (ie, consider or set) zero-out for the remaining high frequency components, leaving the coefficients in a particular region at the top left corner. can. Or, more specifically, the encoder could zero-out the remaining high frequency components, leaving the coefficients in a specific region at the upper left corner predefined, and the decoder was zeroed out. Coding can be performed using the coefficients of the regions that have been recognized in advance and have not been zeroed out. However, the embodiment of the present specification is not limited to this, and the zero-out process on the decoder side can be understood as a process of regarding (and recognizing and setting) the zero-out region as zero. This example is referred to as a third embodiment for convenience of explanation in the examples described later, but the examples of the present specification are not limited thereto.

実施例として、エンコーダ/デコーダは次の例のように、一部の左上端の領域の変換係数領域のみ残すように構成することができる。つまり、エンコーダ/デコーダは、幅及び/または高さに応じて一次変換が適用される水平方向及び/または垂直方向の変換係数の長さ(または個数)を予め設定することができる。一例として、一次変換が適用される長さを超える係数はゼロアウトすることができる。 As an embodiment, the encoder / decoder can be configured to leave only the conversion factor region of a portion of the upper left corner region, as in the following example. That is, the encoder / decoder can preset the length (or number) of the horizontal and / or vertical conversion coefficients to which the primary transformation is applied, depending on the width and / or height. As an example, coefficients beyond the length to which the linear transformation is applied can be zeroed out.

‐ 高さ(h)が幅(w)より等しいか、大きく高さが2nより同じか大きい場合、左上端wx(h/2p)領域のみを変換係数を残し、残り領域の変換係数は、0の値に固定(または設定、見なす)(zero-out)させることができる。 -If the height (h) is equal to or greater than the width (w) and the height is equal to or greater than 2n, only the upper left corner wx (h / 2p) region is left with a conversion factor and the remaining region has a conversion factor of 0. Can be fixed (or set, considered) (zero-out) to the value of.

‐ 幅(w)が高さ(h)より大きく、幅が2mである場合、左上端(w/2q)xh領域のみを変換係数を残し、残りの変換係数は、0の値に固定させることができる。 -When the width (w) is larger than the height (h) and the width is 2 m, the conversion coefficient is left only in the upper left end (w / 2q) xh region, and the remaining conversion coefficient is fixed to a value of 0. Can be done.

前述した例において高さ(h)と幅(w)が同じ場合に対しては、縦方向を減らすことに(h/2p)されているが、横方向を減らすように(w/2q)設定することもできる。 In the above example, when the height (h) and the width (w) are the same, the vertical direction is reduced (h / 2p), but the horizontal direction is set to be reduced (w / 2q). You can also do it.

一例として、m、n、p、qの値は、様々な複数の値に予め定義することができる。例えば、m、n、p、qの値には、0より同じか大きい整数値に設定されることができる。または、具体的には以下の例のように設定することができる。 As an example, the values of m, n, p, q can be predefined to various values. For example, the values of m, n, p, and q can be set to integer values that are the same as or greater than 0. Alternatively, it can be specifically set as in the following example.

(m, n, p, q) = (4, 4, 1, 1) (m, n, p, q) = (4, 4, 1, 1)

2)(m, n, p, q) = (5, 5, 1, 1) 2) (m, n, p, q) = (5, 5, 1, 1)

例えば、1)番の構成で予め定義された場合、32x16 TUには、左上端16x16の領域にのみ変換係数が残ることができ、8x16 TUには、左上端8x8の領域にのみ変換係数が残ることがある。 For example, in the case of the configuration of No. 1), the conversion coefficient can remain only in the region of the upper left end 16x16 in the 32x16 TU, and the conversion coefficient remains only in the region of the upper left end 8x8 in the 8x16 TU. Sometimes.

一実施例として、このようなゼロアウトの方法は、イントラ予測が適用された残差信号にのみ適用されることもあり、インター予測が適用された残差信号にのみ適用されることもあり、イントラ予測が適用された残差信号とインター予測が適用された残差信号のすべに適用することもできる。 As an example, such a zero-out method may be applied only to the residual signal to which the intra-prediction is applied, or may be applied only to the residual signal to which the inter-prediction is applied, and may be applied to the intra-prediction. It can also be applied to all of the residual signals to which the prediction is applied and the residual signals to which the inter-prediction is applied.

以上で、MTS、フラグが0である場合の変換係数の領域を制限する方法に関する第1実施例、MTS、フラグが1の場合の変換係数の領域を制限する方法に関する第2及び第3実施例は、それぞれ個別に適用されることもでき、組み合わせ適用することもできる。 As described above, the first embodiment relating to the method of limiting the region of the conversion coefficient when the MTS and the flag are 0, and the second and third embodiments relating to the method of limiting the region of the conversion coefficient when the MTS and the flag are 1. Can be applied individually or in combination.

一実施例として、次のような組み合わせの構成が適用されることができる。 As an embodiment, the following combinations of configurations can be applied.

第1実施例+第2実施例 1st Example + 2nd Example

第1実施例+第3実施例 1st Example + 3rd Example

先に第2実施例及び第3実施例で述べたように、実施例として、このようなゼロアウトの方法は、イントラ予測が適用された残差信号にのみ適用されることもあり、インター予測が適用された残差信号にのみ適用されることもあり、イントラ予測が適用された残差信号とインター予測が適用された残差信号の全てに適用されることもできる。したがって、MTSフラグが1の場合には、次のような組み合わせの構成が適用されることができる。このとき、MTSフラグが0である場合に対しては、上述した第1実施例が適用されることができる。 As previously described in the second and third embodiments, as an embodiment, such a zero-out method may be applied only to the residual signal to which the intra-prediction is applied, and the inter-prediction may be applied. It may be applied only to the applied residual signal, or it may be applied to all the residual signal to which the intra-prediction is applied and the residual signal to which the inter-prediction is applied. Therefore, when the MTS flag is 1, the following combination configuration can be applied. At this time, when the MTS flag is 0, the above-mentioned first embodiment can be applied.

Figure 2022500965
Figure 2022500965

本明細書の一実施例において、エンコーダ/デコーダは、前述した実施例でのゼロアウトに応じて変換係数が0の値を有するものと見なされる領域に対してレジデュアルコーディングを行わないことがある。つまり、エンコーダ/デコーダはゼロアウト領域を除外した領域にのみレジデュアルコーディングを実行するように定義することができる。 In one embodiment of the specification, the encoder / decoder may not perform resilient coding on a region where the conversion factor is considered to have a value of 0 in response to the zero out in the previous embodiment. That is, the encoder / decoder can be defined to execute the resilient coding only in the area excluding the zero-out area.

前述した第1実施例、第2実施例、第3実施例において、TU内で0の値を有するしかない領域(または係数)が明らかに決まることになる。つまり、変換係数の存在が許される左上端領域を除外して、残りは0の値にゼロアウトされる。したがって、エントロピーコーディング(またはレジデュアルコーディング)プロセスにおいて、エンコーダ/デコーダは、0の値を有することが保障される領域に対しては、レジデュアルコーディングを行うことなくバイパス(bypass)するように構成することができる。 In the first embodiment, the second embodiment, and the third embodiment described above, the region (or coefficient) having only a value of 0 in the TU is clearly determined. That is, the upper left corner region where the existence of the conversion coefficient is allowed is excluded, and the rest is zeroed out to the value of 0. Therefore, in the entropy coding (or register dual coding) process, the encoder / decoder is configured to bypass the region that is guaranteed to have a value of 0 without performing register dual coding. be able to.

一実施例において、エンコーダ/デコーダは、CG(Coefficient Group)内、0でない変換係数が存在するかどうかを示すフラグ(subblock_flagに称する)(または構文、構文エレメント)をコーディングすることができる。ここで、前記CGはTUのサブブロックとして、TUブロックの形及び/または色差/輝度コンポーネントであるかによって4x4または2x2ブロックに設定されることができる。 In one embodiment, the encoder / decoder can code a flag (referred to as subblock_flag) (or syntax, syntax element) in the CG (Coefficient Group) indicating whether or not a non-zero conversion factor exists. Here, the CG can be set as a sub-block of the TU to a 4x4 or 2x2 block depending on the shape of the TU block and / or whether it is a color difference / luminance component.

このとき、エンコーダ/デコーダは、前記subblock_flagが1である場合に限り、そのCGの内部をスキャンして、係数値(または係数のレベル値)をコーディングすることができる。したがって、0の値にゼロアウトされる領域に属するCGに対して、エンコーダ/デコーダは、subblock_flagコーディングをせずに0の値をデフォルトに有するように構成することができる。 At this time, the encoder / decoder can scan the inside of the CG and code the coefficient value (or the level value of the coefficient) only when the subblock_flag is 1. Therefore, for a CG that belongs to a region that is zeroed out to a value of 0, the encoder / decoder can be configured to have a value of 0 by default without subblock_flag coding.

また、一実施例において、エンコーダは、順方向スキャン順上、最後に位置する係数の位置(または最後の有効係数の位置を示す構文、構文エレメント)を先にコーディングすることができる。例えば、エンコーダは、水平方向の位置であるlast_coefficient_position_xと垂直方向の位置であるlast_coefficient_position_yをコーディングすることができる。 Also, in one embodiment, the encoder may first code the position of the last located coefficient (or the syntax, syntax element indicating the position of the last valid coefficient) in the forward scan order. For example, the encoder can code the horizontal position last_coefficient_position_x and the vertical position last_coefficient_position_y.

last_coefficient_position_xとlast_coefficient_position_yが有することがで
きる値の最大値は、それぞれTUの(幅 ‐ 1)と(高さ‐ 1)の値で決定されることがあるが、ゼロアウトによって、0でない係数が存在することができる領域が制限される場合last_coefficient_position_xとlast_coefficient_position_yが有することができる値の最大値も一緒に制限されることができる。
The maximum value that last_coefficient_position_x and last_coefficient_position_y can have may be determined by the TU values (width -1) and (height -1), respectively, but there are non-zero coefficients due to zero out. If the area that can be limited is limited, the maximum value that last_coefficient_position_x and last_coefficient_position_y can have can also be limited.

したがって、エンコーダ/デコーダは、last_coefficient_position_xとlast_coefficient_position_yが有することのできる最大値をゼロアウトを考慮して制限した後、コーディングすることができる。たとえば、last_coefficient_position_xとlast_coefficient_position_yに適用される2値化方法が切削型単項(truncated unary)(または、切削型ライス(truncated Rice、TR)、切削型のバイナリ(truncated binary、TB))2値化方法である場合、エンコーダ/デコーダは、切削型単項コードの最大長さを調整された(つまり、last_coefficient_position_xとlast_coefficient_position_yが有することができる)最大値に対応するように調節(低減)することができる。 Therefore, the encoder / decoder can code after limiting the maximum value that last_coefficient_position_x and last_coefficient_position_y can have in consideration of zero out. For example, the binarization method applied to last_coefficient_position_x and last_coefficient_position_y is the truncated unary (or truncated rice (TR), truncated binary (TB)) binarization method. In some cases, the encoder / decoder can adjust (reduce) the maximum length of the cut unary code to accommodate the adjusted (ie, can have last_coefficient_position_x and last_coefficient_position_y) maximum values.

以上で説明した本発明の実施例の内、一部は、説明の便宜上、実施例を区分して説明したが、本発明がこれに制限されるものではない。つまり、先に説明した実施例は、それぞれ独立して実行されることもあり、1つ以上の様々の実施例が組み合わされて実行されることもある。 Although some of the examples of the present invention described above have been described separately for convenience of explanation, the present invention is not limited thereto. That is, the embodiments described above may be executed independently, or a combination of one or more different examples may be executed.

図29は、本明細書の実施例に係る縮小された変換(Reduced transform)に基づいて、ビデオ信号をデコードする方法を例示するフローチャートである。 FIG. 29 is a flowchart illustrating a method of decoding a video signal based on the reduced transform according to the embodiment of the present specification.

図29を参照すると、説明の便宜のためにデコーダを中心に説明するが、本発明がこれに限定されるものではなく、本実施形態に係るビデオ信号の変換方法は、エンコーダでも実質的に同じように適用することができる。図29のフローチャートは、デコード装置200または逆変換部230によって実行されることができる。 With reference to FIG. 29, the decoder will be mainly described for convenience of explanation, but the present invention is not limited thereto, and the method of converting a video signal according to the present embodiment is substantially the same for the encoder. Can be applied as such. The flowchart of FIG. 29 can be executed by the decoding device 200 or the inverse conversion unit 230.

デコーダは、現在のブロックの水平及び垂直方向に適用される変換カーネル(transform ker-nels)を指示する変換インデックス(transform index)を前記ビデオ信号から獲得する(S2901)。 The decoder obtains a transform index from the video signal indicating transform ker-nels applied in the horizontal and vertical directions of the current block (S2901).

デコーダは、前記変換インデックスによって指示される変換カーネル及び前記現在のブロックの大きさに基づいて、前記現在のブロックに変換(つまり、逆変換)が適用される領域を決定する(S2902)。 The decoder determines the region to which the transformation (ie, inverse transformation) is applied to the current block based on the size of the transformation kernel and the current block indicated by the transformation index (S2902).

デコーダは、前記現在のブロック内において、前記変換が適用される領域以外の残りの領域の係数を0と見なす(S2903)。 The decoder considers the coefficients of the remaining regions in the current block other than the region to which the transformation is applied as 0 (S2903).

デコーダは、前記の変換が適用される領域に対し、前記変換インデックスによって指示される変換カーネルを用いて、逆変換(inverse transform)を実行する(S2904)。 The decoder performs an inverse transform on the region to which the transformation is applied using the transformation kernel indicated by the transformation index (S2904).

前述したように、前記変換が適用される領域を決定する段階は、前記変換インデックスによって指示される変換カーネルが予め定義された変換であり、前記現在のブロックの幅(width)、及び/または高さ(height )があらかじめ定義されたサイズより大きい場合、前記予め定義されたサイズの幅及び/または高さを有する領域を前記変換が適用される領域に決定することにより行うことができる。 As mentioned above, the step of determining the region to which the transformation applies is the transformation in which the transformation kernel indicated by the transformation index is predefined, the width and / or height of the current block. If the height is greater than the predefined size, this can be done by determining a region having the width and / or height of the predefined size as the region to which the transformation applies.

前述したように、前記予め定義された変換は、DST7及び/またはDCT8の組み合わせで構成された複数の変換の組み合わせの内、いずれか1つで有り得る。 As described above, the predefined conversion may be any one of a plurality of conversion combinations composed of combinations of DST7 and / or DCT8.

前述したように、前記あらかじめ定義されたサイズは、16で有り得る。 As mentioned above, the predefined size can be 16.

前述したように、前記変換が適用される領域を決定する段階は、前記変換インデックスによって指示される変換カーネルが第1変換グループに属する場合、前記現在のブロックの幅(width)と32の内、小さい値を前記変換が適用される領域の幅に決定し、前記現在のブロックの高さ(height)と32の内、小さい方の値を前記変換が適用される領域の高さに決定し、前記変換インデックスによって指示される変換カーネルが第2変換グループに属する場合、前記現在のブロックの幅と16の内、小さな値を前記変換が適用される領域の幅に決定し、前記現在のブロックの高さと16の内、小さな値を前記変換が適用される領域の高さに決定することにより行うことができる。一実施例として、前記第1変換グループは、DCT2を含み、前記第2変換グループはDST7及び/またはDCT8の組み合わせで構成された複数の変換の組み合わせを含むことができる。 As mentioned above, the step of determining the region to which the transformation is applied is, if the transformation kernel indicated by the transformation index belongs to the first transformation group, of the current block width and 32. The smaller value is determined to be the width of the area to which the transformation is applied, and the smaller of the current block height (height) and 32 is determined to be the height of the area to which the transformation is applied. If the transformation kernel indicated by the transformation index belongs to a second transformation group, a smaller value of the width of the current block and 16 is determined to be the width of the area to which the transformation is applied and of the current block. Of the height and 16, the smaller value can be determined by determining the height of the region to which the transformation is applied. As an embodiment, the first conversion group may include DCT2, and the second conversion group may include a combination of multiple conversions composed of a combination of DST7 and / or DCT8.

前述したように、前記現在のブロック内でスキャン順序上最後の有効係数(last significant coefficient)の位置を指示する構文エレメントを獲得するステップをさらに含み、前記逆変換が適用される係数は、前記最後の有効係数の位置に基づいて前記ビデオ信号から獲得することができる。 As mentioned above, the coefficient to which the inverse transformation is applied further comprises the step of acquiring a syntax element indicating the position of the last significant coefficient in the scan order in the current block. Can be obtained from the video signal based on the position of the effective factor of.

前述したように、前記構文要素は、切削型単項(truncated unary)方式で2値化され、前記構文要素の最大値は、前記0と見なされる領域に基づいて決定することができる。 As described above, the syntax element is binarized in a truncated unary manner, and the maximum value of the syntax element can be determined based on the region considered to be zero.

図30は、本発明が適用される実施例として、ビデオ信号を処理するための装置のブロック図の例を示す。図30のビデオ信号処理装置は、図1のエンコード装置又は図2のデコード装置に該当することができる。 FIG. 30 shows an example of a block diagram of a device for processing a video signal as an embodiment to which the present invention is applied. The video signal processing device of FIG. 30 can correspond to the encoding device of FIG. 1 or the decoding device of FIG.

映像信号を処理する映像処理装置3000は、映像信号を貯蔵するメモリ3020と、前記メモリと結合されながら、映像信号を処理するプロセッサ3010を含む。 The video processing apparatus 3000 that processes a video signal includes a memory 3020 that stores the video signal and a processor 3010 that processes the video signal while being combined with the memory.

本発明の実施例に係るプロセッサ3010は、映像信号の処理のための少なくとも一つの処理回路で構成されることができ、映像信号をエンコードまたはデコードするためのコマンドを実行することにより、映像信号を処理することができる。つまり、プロセッサ3010は、前述したエンコードまたはデコード方法を実行することにより、元本映像データをエンコードしたり、エンコードされた映像信号をデコードすることができる。 The processor 3010 according to the embodiment of the present invention can be configured by at least one processing circuit for processing a video signal, and by executing a command for encoding or decoding the video signal, the video signal can be processed. Can be processed. That is, the processor 3010 can encode the original video data or decode the encoded video signal by executing the encoding or decoding method described above.

また、本発明が適用される処理方法は、コンピュータで実行されるプログラムの形で生産されることができ、コンピュータが読み取り可能な貯蔵媒体に貯蔵することができる。本発明に係るデータ構造を有するマルチメディアデータもまた、コンピュータが読み出しできる記録媒体に貯蔵することができる。前記コンピュータが判読可能な記録媒体は、コンピュータで読み取り可能なデータが貯蔵されるあらゆる種類のストレージデバイス及び分散ストレージデバイスを含む。前記コンピュータが判読可能な記録媒体は、例えば、ブルーレイディスク(BD)、ユニバー去るシリアルバス(USB)、ROM、PROM、EPROM、EEPROM、RAM、CD−ROM、磁気テープ、フロッピーディスク、及び光学的データ貯蔵装置を含むことができる。 また、前記コンピュータが読み取り可能な記録媒体は、搬送波(例えば、インターネットを通じた伝送)の形で実現されたメディアを含む。また、エンコード方法で生成されたビットストリームが、コンピュータが読み取り可能な記録媒体に貯蔵したり、有無線通信ネットワークを介して転送されることができる。 In addition, the processing method to which the present invention applies can be produced in the form of a program executed by a computer and can be stored in a computer-readable storage medium. Multimedia data having the data structure according to the present invention can also be stored in a recording medium that can be read by a computer. The computer-readable recording medium includes all types of storage devices and distributed storage devices in which computer-readable data is stored. Computer-readable recording media include, for example, Blu-ray discs (BDs), Univers leaving serial buses (USB), ROMs, PROMs, EPROMs, EEPROMs, RAMs, CD-ROMs, magnetic tapes, floppy disks, and optical data. Storage equipment can be included. Also, the computer-readable recording medium includes media realized in the form of a carrier wave (eg, transmission over the Internet). In addition, the bitstream generated by the encoding method can be stored in a computer-readable recording medium or transferred via a wireless communication network.

また、本発明の実施形態は、プログラムコードによるコンピュータプログラム製品として実現されることができ、前記プログラムコードは、本発明の実施形態により、コンピュータ上で実行することができる。前記プログラムコードは、コンピュータによって読み取り可能なキャリア上に貯蔵することができる。 Further, an embodiment of the present invention can be realized as a computer program product using a program code, and the program code can be executed on a computer according to the embodiment of the present invention. The program code can be stored on a computer-readable carrier.

前記記述されたように、本発明で説明した実施形態は、プロセッサ、マイクロプロセッサ、コントローラ、またはチップ上で実現されて実行されることができる。例えば、各図で示した機能ユニットは、コンピュータ、プロセッサ、マイクロプロセッサ、コントローラ、またはチップ上で実現されて実行されることができる。 As described above, the embodiments described in the present invention can be realized and implemented on a processor, microprocessor, controller, or chip. For example, the functional units shown in each figure can be realized and executed on a computer, processor, microprocessor, controller, or chip.

また、本発明が適用されるデコーダとエンコーダは、マルチメディア放送送受信装置、モバイル通信端末、ホームシネマビデオ装置、デジタルシネマビデオ装置、監視用カメラ、ビデオ対話装置、ビデオ通信などのようなリアルタイム通信装置、モバイルストリーミング装置、貯蔵媒体、キャムコーダ、ビデオオンデマンド(VoD)サービス提供装置、OTTビデオ(Over the top video)装置、インターネットストリーミングサービス提供装置、3次元(3D)ビデオ装置、テレビ電話、ビデオ装置、及び医療用ビデオ装置などに含まれることができ、ビデオ信号またはデータ信号を処理するために用いられる。たとえば、OTTビデオ(Over the top video)装置では、ゲーム機、ブルーレイプレーヤー、インターネット接続TV、ホームシアターシステム、スマートフォン、タブレットPC、DVR(Digital Video Recoder)などを含むことができる。 Further, the decoder and encoder to which the present invention is applied are real-time communication devices such as multimedia broadcast transmitter / receiver, mobile communication terminal, home cinema video device, digital cinema video device, surveillance camera, video dialogue device, video communication and the like. , Mobile streaming device, storage medium, camcorder, video on-demand (VoD) service provider, OTT video (Over the top video) device, Internet streaming service provider, 3D (3D) video device, videophone, video device, And can be included in medical video equipment and the like, and are used to process video or data signals. For example, an OTT video (Over the top video) device can include a game machine, a Blu-ray player, an Internet-connected TV, a home theater system, a smartphone, a tablet PC, a DVR (Digital Video Recoder), and the like.

また、本発明が適用される処理方法は、コンピュータで実行されるプログラムの形で生産されることができ、コンピュータが読み取り可能な貯蔵媒体に貯蔵することができる。本発明に係るデータ構造を有するマルチメディアデータもまた、コンピュータが読み出し可能な貯蔵媒体に貯蔵することができる。前記コンピュータが判読可能な記録媒体は、コンピュータに読み取り可能なデータが貯蔵されるあらゆる種類のストレージデバイス及び分散ストレージデバイスを含む。前記コンピュータが判読可能な記録媒体は、例えば、ブルー例ディスク(BD)、ユニバーサルシリアルバス(USB)、ROM、PROM、EPROM、EEPROM、RAM、CD−ROM、磁気テープ、フロッピーディスク、及び光学的データ貯蔵装置を含むことができる。また、前記コンピュータが読み取り可能な記録媒体は、搬送波(例えば、インターネットを通じた伝送)の形で実現されたメディアを含む。 また、エンコード方法で生成されたビットストリームをコンピュータが読み取り可能な記録媒体に貯蔵したり、有無線通信ネットワークを介して転送されることができる。 In addition, the processing method to which the present invention applies can be produced in the form of a program executed by a computer and can be stored in a computer-readable storage medium. Multimedia data having the data structure according to the present invention can also be stored in a storage medium readable by a computer. The computer-readable recording medium includes all types of storage devices and distributed storage devices in which computer-readable data is stored. Computer-readable recording media include, for example, blue example discs (BDs), universal serial buses (USB), ROMs, PROMs, EPROMs, EEPROMs, RAMs, CD-ROMs, magnetic tapes, floppy disks, and optical data. A storage device can be included. Also, the computer-readable recording medium includes media realized in the form of a carrier wave (eg, transmission over the Internet). In addition, the bitstream generated by the encoding method can be stored in a computer-readable recording medium or transferred via a wireless communication network.

また、本発明の実施形態は、プログラムコードによるコンピュータプログラム製品として実現されることができ、前記プログラムコードは、本発明の実施形態により、コンピュータ上で実行することができる。前記プログラムコードは、コンピュータによって読み取り可能なキャリア上に貯蔵することができる。 Further, an embodiment of the present invention can be realized as a computer program product using a program code, and the program code can be executed on a computer according to the embodiment of the present invention. The program code can be stored on a computer-readable carrier.

以上で説明した実施形態は、本発明の構成要素と特徴が所定形態で結合されたものである。各構成要素または特徴は、別の明示的な言及がない限り選択的なもので考慮されるべきである。各構成要素または特徴は、他の構成要素や特徴と結合されない形態で実施されることができる。また、一部の構成要素及び/または特徴を結合して、本発明の実施形態を構成することも可能である。本発明の実施形態で説明される動作の順序は変更されることができる。どの実施形態の一部の構成や特徴は、他の実施形態に含まれることができ、または他の実施形態に対応する構成または特徴と代替されることができる。特許請求の範囲で明示的な引用関係がない請求項を結合して実施形態を構成したり、出願後の補正により新しい請求項として含めることができることは自明である。 In the embodiment described above, the components and features of the present invention are combined in a predetermined form. Each component or feature should be considered selectively unless otherwise explicitly mentioned. Each component or feature can be implemented in a form that is not combined with other components or features. It is also possible to combine some components and / or features to form an embodiment of the invention. The order of operations described in the embodiments of the present invention can be changed. Some configurations or features of any embodiment may be included in other embodiments or may be substituted for configurations or features corresponding to other embodiments. It is self-evident that claims that have no explicit citation relationship can be combined to form an embodiment or can be included as a new claim by post-application amendment.

本発明に係る実施形態は、様々な手段、例えば、ハードウェア、ファームウェア(firmware)、ソフトウェアまたはそれらの組み合わせなどにより実現されることができる。ハードウェアによる実現の場合、本発明の一実施形態は、一つまたはそれ以上のASICs(application specific integrated circuits)、DSPs(digital signal processors)、DSPDs(digital signal processing devices)、PLDs(programmable logic devices)、FPGAs( field programmable gate arrays)、プロセッサ、コントローラ、マイクロコントローラ、マイクロプロセッサなどにより実現されることができる。 The embodiments according to the present invention can be realized by various means such as hardware, firmware, software or a combination thereof. In the case of hardware implementation, one embodiment of the present invention is one or more ASICs (application specific integrated circuits), DSPs (digital signal processors), DSPDs (digital signal processing devices), PLDs (programmable logic devices). , FPGAs (field programmable gate arrays), processors, controllers, microcontrollers, microprocessors and the like.

ファームウェアやソフトウェアによる実現の場合、本発明の一実施形態は、以上で説明した機能または動作を実行するモジュール、プロシージャ、関数などの形態で実現されることができる。ソフトウェアコードは、メモリに貯蔵されてプロセッサによって駆動されることができる。前記メモリは、前記プロセッサの内部または外部に位置して、既に公知された多様な手段により、前記プロセッサとデータを送受信することができる。 In the case of realization by firmware or software, one embodiment of the present invention can be realized in the form of a module, procedure, function or the like that executes the function or operation described above. The software code can be stored in memory and driven by the processor. The memory is located inside or outside the processor and can transmit and receive data to and from the processor by various means already known.

本発明は、本発明の必須的特徴を逸脱しない範囲で他の特定の形態で具体化されることができることは、当業者に自明である。したがって、前述した詳細な説明は、すべての面で制限的に解釈してはならなく、例示的なものとみなされるべきである。本発明の範囲は、添付された請求項の合理的解釈によって決定されるべきであり、本発明の等価的範囲内でのすべての変更は、本発明の範囲に含まれる。 It is obvious to those skilled in the art that the invention can be embodied in other particular embodiments without departing from the essential features of the invention. Therefore, the detailed description given above should not be construed in a restrictive manner in all respects and should be regarded as exemplary. The scope of the invention should be determined by the reasonable interpretation of the appended claims, and all modifications within the equivalent scope of the invention are within the scope of the invention.

以上、前述した本発明の好ましい実施形態は、例示の目的のために開示されたもので、当業者であれば、以下、添付された特許請求の範囲に開示された本発明の技術的思想とその技術的範囲内で、様々な他の実施形態を改良、変更、代替または付加などが可能である。 As described above, the preferred embodiment of the present invention described above has been disclosed for the purpose of exemplification, and those skilled in the art will be described below with the technical idea of the present invention disclosed in the appended claims. Within its technical scope, various other embodiments may be improved, modified, replaced or added.

Claims (14)

縮小された変換(Reduced transform)に基づいて、ビデオ信号をデコードする方法において、
現在のブロックの水平及び垂直方向に適用される変換カーネル(transform kernels)を指示する変換インデックス(transform index)を前記ビデオ信号から獲得する段階と、
前記変換インデックスによって指示される変換カーネル及び前記現在のブロックの大きさに基づいて、前記現在のブロックに変換が適用される領域を決定する段階と
前記現在のブロック内において、前記変換が適用される領域以外の残りの領域の係数を0と見なす段階と、
前記変換が適用される領域に対し、前記変換インデックスによって指示される変換カーネルを用いて、逆変換(inverse transform)を実行する段階を含む、ビデオ信号をデコードする方法。
In the method of decoding a video signal based on a reduced transform,
The stage of acquiring a transform index from the video signal that indicates the transform kernels applied in the horizontal and vertical directions of the current block, and
The transformation is applied in the step of determining the region to which the transformation is applied to the current block and within the current block, based on the transformation kernel indicated by the transformation index and the size of the current block. The stage where the coefficients of the remaining areas other than the area are regarded as 0, and
A method of decoding a video signal, which comprises performing an inverse transform on a region to which the transformation is applied, using the transformation kernel indicated by the transformation index.
前記変換が適用される領域を決定する段階は、
前記変換インデックスによって指示される変換カーネルが予め定義された変換であり、前記現在のブロックの幅(width)、および/または高さ(height)が予め定義されたサイズよりも大きい場合には、前記予め定義されたサイズの幅および/または高さを有する領域を前記変換が適用される領域に決定することにより実行される、請求項1に記載のビデオ信号をデコードする方法。
The stage of determining the area to which the transformation is applied is
If the transformation kernel indicated by the transformation index is a predefined transformation and the width and / or height of the current block is greater than the predefined size, the said. The method of decoding a video signal according to claim 1, which is performed by determining a region having a width and / or height of a predefined size as a region to which the conversion is applied.
前記予め定義された変換は、DST7及び/またはDCT8の組み合わせで構成された複数の変換の組み合わせの内、いずれか1つであることを特徴とする、請求項2に記載のビデオ信号をデコードする方法。 The video signal according to claim 2, wherein the predefined conversion is any one of a plurality of conversion combinations composed of a combination of DST7 and / or DCT8. Method. 前記予め定義されたサイズは、16であることを特徴とする、請求項2に記載のビデオ信号をデコードする方法。 The method of decoding a video signal according to claim 2, wherein the predefined size is 16. 前記変換が適用される領域を決定する段階は、
前記変換インデックスによって指示される変換カーネルが第1変換グループに属する場合、前記現在のブロックの幅(width)と32の内、小さい方の値を前記変換が適用される領域の幅に決定し、前記現在のブロックの高さ( height)と32の内、小さい方の値を前記変換が適用される領域の高さに決定し、
前記変換インデックスによって指示される変換カーネルが第2変換グループに属する場合、前記現在のブロックの幅と16の内、小さな値を前記変換が適用される領域の幅に決定し、前記現在のブロックの高さと16の内、小さい値を前記変換が適用される領域の高さに決定することにより実行される、請求項1に記載のビデオ信号をデコードする方法。
The stage of determining the area to which the transformation is applied is
If the conversion kernel specified by the conversion index belongs to the first conversion group, the smaller of the current block width (width) and 32 is determined to be the width of the area to which the conversion is applied. The smaller of the current block height and 32 is determined to be the height of the area to which the transformation is applied.
If the transformation kernel indicated by the transformation index belongs to the second transformation group, a smaller value of the width of the current block and 16 is determined to be the width of the region to which the transformation is applied, and the width of the current block. The method of decoding a video signal according to claim 1, wherein a small value among the height and 16 is determined to be the height of the region to which the conversion is applied.
前記現在のブロック内でスキャン順序上最後の有効係数(last significant coefficient)の位置を指示する構文エレメントを獲得するステップをさらに含み、
前記逆変換が適用される係数は、前記最後の有効係数の位置に基づいて前記ビデオ信号から獲得される、請求項1に記載のビデオ信号をデコードする方法。
It further includes the step of acquiring a syntax element that indicates the position of the last significant coefficient in the scan order within the current block.
The method of decoding a video signal according to claim 1, wherein the coefficient to which the inverse transformation is applied is obtained from the video signal based on the position of the last effective coefficient.
前記構文要素は、切削型単項(truncated unary)方式で2値化され、
前記構文要素の最大値は、前記0と見なされる領域に基づいて決定されることを特徴とする、請求項6に記載のビデオ信号をデコードする方法。
The syntactic element is binarized by a truncated unary method and is binarized.
The method of decoding a video signal according to claim 6, wherein the maximum value of the syntax element is determined based on the region regarded as 0.
縮小された変換(Reduced transform)に基づいて、ビデオ信号を復号化する装置において、
前記ビデオ信号を貯蔵するメモリと、
前記メモリと結合されたプロセッサを含み、
前記プロセッサは、
現在のブロックの水平及び垂直方向に適用される変換カーネル(transform kernels)を指示する変換インデックス(transform index)を前記ビデオ信号から獲得し、
前記変換インデックスによって指示される変換カーネル及び前記現在のブロックの大きさに基づいて、前記現在のブロックに変換が適用される領域を決定し、
前記現在のブロック内において、前記変換が適用される領域以外の残りの領域の係数を0と見なし、
前記変換が適用される領域に対し、前記変換インデックスによって指示される変換カーネルを用いて、逆変換(inverse transform)を実行する、ビデオ信号のデコード装置。
In a device that decodes a video signal based on a reduced transform.
A memory for storing the video signal and
Including the processor combined with the memory
The processor
Obtaining a transform index from the video signal indicating the transform kernels applied in the horizontal and vertical directions of the current block,
Based on the conversion kernel indicated by the conversion index and the size of the current block, the area to which the conversion applies to the current block is determined.
In the current block, the coefficients of the remaining regions other than the region to which the transformation is applied are regarded as 0, and the coefficients are regarded as 0.
A video signal decoding device that performs an inverse transform on the region to which the transformation is applied using the transformation kernel indicated by the transformation index.
前記プロセッサは、
前記変換インデックスによって指示される変換カーネルが予め定義された変換であり
前記現在のブロックの幅(width)、及び/または高さ(height)が予め定義されたサイズより大きい場合、前記予め定義されたサイズの幅及び/または高さを有する領域を前記変換が適用される領域に決定される、請求項8に記載のビデオ信号のデコード装置。
The processor
If the transformation kernel indicated by the transformation index is a predefined transformation and the width and / or height of the current block is greater than the predefined size, then the predefined. The video signal decoding device according to claim 8, wherein a region having a width and / or height of a size is determined as a region to which the conversion is applied.
前記予め定義された変換は、DST7及び/またはDCT8の組み合わせで構成された複数の変換の組み合わせの内、いずれか1つであることを特徴とする、請求項9に記載のビデオ信号のデコード装置。 The video signal decoding device according to claim 9, wherein the predefined conversion is any one of a plurality of conversion combinations composed of a combination of DST7 and / or DCT8. .. 前記予め定義されたサイズは、16であることを特徴とする、請求項9に記載のビデオ信号のデコード装置。 The video signal decoding device according to claim 9, wherein the predefined size is 16. 前記プロセッサは、
前記変換インデックスによって指示される変換カーネルが第1変換グループに属する場合、前記現在のブロックの幅(width)と32の内、小さい方の値を前記変換が適用される領域の幅を決定し、前記現在のブロックの高さ(height)と32の内、小さい方の値を前記変換が適用される領域の高さに決定し、
前記変換インデックスによって指示される変換カーネルが第2変換グループに属する場合、前記現在のブロックの幅と16の内、小さな値を前記変換が適用される領域の幅に決定し、前記現在のブロックの高さと16の内、小さい値を前記変換が適用される領域の高さに決定する、請求項8に記載のビデオ信号のデコード装置。
The processor
If the conversion kernel specified by the conversion index belongs to the first conversion group, the smaller of the current block width (width) and 32 determines the width of the area to which the conversion is applied. The height of the current block and the smaller of the 32 values are determined to be the height of the area to which the transformation is applied.
If the transformation kernel indicated by the transformation index belongs to the second transformation group, a smaller value of the width of the current block and 16 is determined to be the width of the region to which the transformation is applied, and the width of the current block. The video signal decoding device according to claim 8, wherein the smaller value of the height and 16 is determined to be the height of the region to which the conversion is applied.
前記プロセッサは、
前記現在のブロック内においてスキャン順序上最後の有効係数(last significant coefficient)の位置を指示する構文要素を獲得し、
前記逆変換が適用される係数は、前記最後の有効係数の位置に基づいて前記ビデオ信号から獲得される、請求項8に記載のビデオ信号のデコード装置。
The processor
Acquires a syntax element that indicates the position of the last significant coefficient in the scan order within the current block.
The video signal decoding device according to claim 8, wherein the coefficient to which the inverse transformation is applied is obtained from the video signal based on the position of the last effective coefficient.
前記構文要素は、切削型単項(truncated unary)方式で2値化され、
前記構文要素の最大値は、前記0と見なされる領域に基づいて決定されることを特徴とする、請求項13に記載のビデオ信号のデコード装置。
The syntactic element is binarized by a truncated unary method and is binarized.
The video signal decoding device according to claim 13, wherein the maximum value of the syntax element is determined based on the region regarded as 0.
JP2021516598A 2018-09-23 2019-09-23 Video signal encoding/decoding method and apparatus therefor Active JP7245323B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023037765A JP2023081995A (en) 2018-09-23 2023-03-10 Method for encoding/decoding video signal and apparatus therefor

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US201862735152P 2018-09-23 2018-09-23
US62/735,152 2018-09-23
PCT/KR2019/012352 WO2020060364A1 (en) 2018-09-23 2019-09-23 Method for encoding/decoding video signals and apparatus therefor

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2023037765A Division JP2023081995A (en) 2018-09-23 2023-03-10 Method for encoding/decoding video signal and apparatus therefor

Publications (2)

Publication Number Publication Date
JP2022500965A true JP2022500965A (en) 2022-01-04
JP7245323B2 JP7245323B2 (en) 2023-03-23

Family

ID=69888563

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2021516598A Active JP7245323B2 (en) 2018-09-23 2019-09-23 Video signal encoding/decoding method and apparatus therefor
JP2023037765A Pending JP2023081995A (en) 2018-09-23 2023-03-10 Method for encoding/decoding video signal and apparatus therefor

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2023037765A Pending JP2023081995A (en) 2018-09-23 2023-03-10 Method for encoding/decoding video signal and apparatus therefor

Country Status (9)

Country Link
US (3) US11336920B2 (en)
EP (2) EP4258659A3 (en)
JP (2) JP7245323B2 (en)
KR (3) KR102630190B1 (en)
CN (5) CN117097896A (en)
AU (2) AU2019345211B2 (en)
CA (1) CA3113988A1 (en)
RU (1) RU2766571C1 (en)
WO (1) WO2020060364A1 (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117014604A (en) * 2017-09-28 2023-11-07 三星电子株式会社 Encoding method and apparatus, and decoding method and apparatus
KR20210023884A (en) * 2018-06-29 2021-03-04 인터디지털 브이씨 홀딩스 인코포레이티드 Method and apparatus for video encoding and decoding based on adaptive coefficient group
WO2020006304A1 (en) * 2018-06-29 2020-01-02 Vid Scale, Inc. Adaptive control point selection for affine motion model based video coding
JP7245323B2 (en) * 2018-09-23 2023-03-23 エルジー エレクトロニクス インコーポレイティド Video signal encoding/decoding method and apparatus therefor
WO2020071736A1 (en) * 2018-10-01 2020-04-09 엘지전자 주식회사 Encoding/decoding method for video signal and device therefor
US11595656B2 (en) * 2019-01-25 2023-02-28 Hfi Innovation Inc. Method and apparatus of transform coefficient coding with TB-level constraint
WO2020218861A1 (en) * 2019-04-23 2020-10-29 주식회사 윌러스표준기술연구소 Video signal processing method and apparatus using multiple transform kernel
EP4013057A4 (en) * 2019-08-08 2023-09-06 LG Electronics Inc. Method and apparatus for image coding based on transform
CN115004704A (en) * 2019-11-21 2022-09-02 北京达佳互联信息技术有限公司 Method and apparatus for transform and coefficient signaling
US11228787B2 (en) * 2019-11-27 2022-01-18 Mediatek Inc. Signaling multiple transmission selection
EP4131962A4 (en) 2020-03-27 2023-09-27 Atins Inc. Image decoding method and device
GB2593778A (en) * 2020-04-03 2021-10-06 Sony Group Corp Video data encoding and decoding
CN115398911A (en) * 2020-04-05 2022-11-25 北京达佳互联信息技术有限公司 Method and apparatus for transform and coefficient signaling
US20230137884A1 (en) * 2020-04-07 2023-05-04 Lg Electronics Inc. Transform-based image coding method and apparatus therefor
WO2023282625A1 (en) * 2021-07-06 2023-01-12 엘지전자 주식회사 Non-separable primary transform-based image encoding/decoding method and device, and recording medium for storing bitstream
GB2603559B (en) * 2021-07-22 2023-08-09 Imagination Tech Ltd Coding blocks of pixels
US20230099505A1 (en) * 2021-09-29 2023-03-30 Qualcomm Incorporated Adaptive determination of multiple transform candidates for video coding
WO2023208057A1 (en) * 2022-04-27 2023-11-02 Beijing Bytedance Network Technology Co., Ltd. Method, apparatus, and medium for video processing
CN115174908B (en) * 2022-06-30 2023-09-15 北京百度网讯科技有限公司 Transformation quantization method, device, equipment and storage medium for video coding

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1246469A3 (en) * 2001-03-27 2005-04-13 Koninklijke Philips Electronics N.V. Method of simoultaneously downconverting and decoding of video
US6882755B2 (en) * 2001-10-19 2005-04-19 Hewlett-Packard Development Company, L.P. Image transmission for low bandwidth with region of interest
US20070285500A1 (en) * 2006-04-21 2007-12-13 Dilithium Holdings, Inc. Method and Apparatus for Video Mixing
WO2010090484A2 (en) * 2009-02-09 2010-08-12 삼성전자 주식회사 Video encoding method and apparatus using low-complexity frequency transformation, and video decoding method and apparatus
CN101848383A (en) * 2009-03-24 2010-09-29 虹软(上海)科技有限公司 Downsampling decoding method for MPEG2-format video
US9635368B2 (en) * 2009-06-07 2017-04-25 Lg Electronics Inc. Method and apparatus for decoding a video signal
JP2013542664A (en) 2010-09-28 2013-11-21 サムスン エレクトロニクス カンパニー リミテッド Video conversion method and apparatus, and video reverse conversion method and apparatus
CN104378639B (en) * 2011-10-19 2018-05-04 株式会社Kt The method of decoding video signal
US9357185B2 (en) * 2011-11-08 2016-05-31 Qualcomm Incorporated Context optimization for last significant coefficient position coding
CN108900839B (en) * 2011-12-28 2022-05-31 夏普株式会社 Image decoding device and method, image encoding device and method
US9253481B2 (en) * 2012-01-13 2016-02-02 Qualcomm Incorporated Determining contexts for coding transform coefficient data in video coding
US20140286412A1 (en) * 2013-03-25 2014-09-25 Qualcomm Incorporated Intra dc prediction for lossless coding in video coding
US10306229B2 (en) 2015-01-26 2019-05-28 Qualcomm Incorporated Enhanced multiple transforms for prediction residual
WO2017014585A1 (en) * 2015-07-21 2017-01-26 엘지전자(주) Method and device for processing video signal using graph-based transform
US10681379B2 (en) * 2015-09-29 2020-06-09 Qualcomm Incorporated Non-separable secondary transform for video coding with reorganizing
KR102434480B1 (en) * 2016-02-12 2022-08-19 삼성전자주식회사 Video encoding method and apparatus, video decoding method and apparatus
KR102492809B1 (en) * 2016-03-28 2023-01-27 주식회사 케이티 Method and apparatus for processing a video signal
WO2017222334A1 (en) * 2016-06-24 2017-12-28 한국전자통신연구원 Method and apparatus for transform-based image encoding/decoding
US10972733B2 (en) * 2016-07-15 2021-04-06 Qualcomm Incorporated Look-up table for enhanced multiple transform
EP3306924A1 (en) * 2016-10-05 2018-04-11 Thomson Licensing Method and device for context-adaptive binary arithmetic coding a sequence of binary symbols representing a syntax element related to picture data
CN114449270B (en) 2017-07-04 2023-09-26 三星电子株式会社 Video decoding/encoding method and apparatus using multi-core transformation
WO2019076138A1 (en) * 2017-10-16 2019-04-25 Huawei Technologies Co., Ltd. Encoding method and apparatus
WO2020059611A1 (en) * 2018-09-20 2020-03-26 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Encoding device, decoding device, encoding method, and decoding method
JP7245323B2 (en) * 2018-09-23 2023-03-23 エルジー エレクトロニクス インコーポレイティド Video signal encoding/decoding method and apparatus therefor

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHEN, JIANLE ET AL.: "Algorithm description for Versatile Video Coding and Test Model 2 (VTM 2)", JOINT VIDEO EXPERTS TEAM (JVET) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11 11TH MEETING: LJUB, vol. JVET-K1002 (version 1), JPN6022021815, 10 August 2018 (2018-08-10), ISSN: 0004787766 *
KOO, MOONMO ET AL.: "Description of SDR video coding technology proposal by LG Electronics", JOINT VIDEO EXPERTS TEAM (JVET) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11 10TH MEETING: SAN, vol. JVET-J0017 (version 2), JPN6022021816, 11 April 2018 (2018-04-11), ISSN: 0004787765 *

Also Published As

Publication number Publication date
EP4258659A2 (en) 2023-10-11
WO2020060364A1 (en) 2020-03-26
EP3852374A1 (en) 2021-07-21
CN113039803B (en) 2023-10-03
US20220109879A1 (en) 2022-04-07
JP7245323B2 (en) 2023-03-23
KR20240014624A (en) 2024-02-01
AU2019345211A1 (en) 2021-05-20
KR20220163512A (en) 2022-12-09
CA3113988A1 (en) 2020-03-26
CN113039803A (en) 2021-06-25
AU2023202678A1 (en) 2023-05-18
CN117097897A (en) 2023-11-21
KR102630190B1 (en) 2024-01-25
CN117097896A (en) 2023-11-21
EP3852374A4 (en) 2021-12-08
JP2023081995A (en) 2023-06-13
RU2022102721A (en) 2022-03-28
US11729425B2 (en) 2023-08-15
RU2766571C1 (en) 2022-03-15
CN117082240A (en) 2023-11-17
CN117097895A (en) 2023-11-21
US20230328288A1 (en) 2023-10-12
KR20210055087A (en) 2021-05-14
EP4258659A3 (en) 2023-11-22
US11336920B2 (en) 2022-05-17
US20210211729A1 (en) 2021-07-08
KR102471774B1 (en) 2022-11-29
AU2019345211B2 (en) 2023-02-02

Similar Documents

Publication Publication Date Title
JP7245323B2 (en) Video signal encoding/decoding method and apparatus therefor
JP7055879B2 (en) Video signal coding / decoding method and equipment for that purpose
KR102432400B1 (en) Method and apparatus for processing video signals
KR102396112B1 (en) Video signal encoding/decoding method and apparatus therefor
JP7465333B2 (en) Method and apparatus for processing a video signal - Patents.com
CN113316937A (en) Method and apparatus for processing video signal
KR102658656B1 (en) Method for encoding/decoding video signals and device therefor
RU2792219C2 (en) Method for encoding/decoding video signals and device used for it

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210412

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220531

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220607

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220830

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230110

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20230209

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230310

R150 Certificate of patent or registration of utility model

Ref document number: 7245323

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150