JP7159354B2 - Video signal processing method and apparatus using adaptive motion vector resolution - Google Patents

Video signal processing method and apparatus using adaptive motion vector resolution Download PDF

Info

Publication number
JP7159354B2
JP7159354B2 JP2020568219A JP2020568219A JP7159354B2 JP 7159354 B2 JP7159354 B2 JP 7159354B2 JP 2020568219 A JP2020568219 A JP 2020568219A JP 2020568219 A JP2020568219 A JP 2020568219A JP 7159354 B2 JP7159354 B2 JP 7159354B2
Authority
JP
Japan
Prior art keywords
resolution
motion vector
current block
difference value
available
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.)
Active
Application number
JP2020568219A
Other languages
Japanese (ja)
Other versions
JP2021526340A (en
Inventor
ゴンジュン・コ
ドンチョル・キム
チュヒョン・ソン
ジェホン・ジュン
ジンサム・カク
Original Assignee
ウィルス インスティテュート オブ スタンダーズ アンド テクノロジー インコーポレイティド
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 ウィルス インスティテュート オブ スタンダーズ アンド テクノロジー インコーポレイティド filed Critical ウィルス インスティテュート オブ スタンダーズ アンド テクノロジー インコーポレイティド
Publication of JP2021526340A publication Critical patent/JP2021526340A/en
Priority to JP2022164143A priority Critical patent/JP2022185121A/en
Application granted granted Critical
Publication of JP7159354B2 publication Critical patent/JP7159354B2/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/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • H04N19/517Processing of motion vectors by encoding
    • H04N19/52Processing of motion vectors by encoding by predictive encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • 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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • 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/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/53Multi-resolution motion estimation; Hierarchical motion estimation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/57Motion estimation characterised by a search window with variable size or shape
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/597Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding specially adapted for multi-view video sequence encoding
    • 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

Description

本発明はビデオ信号処理方法及び装置に関し、より詳しくは、ビデオ信号をエンコーディングするかデコーディングするビデオ信号処理方法及び装置に関する。 The present invention relates to a video signal processing method and apparatus, and more particularly, to a video signal processing method and apparatus for encoding or decoding a video signal.

圧縮符号化とは、デジタル化した情報を通信回線を介して伝送するか、貯蔵媒体に適合した形態に貯蔵するための一連の信号処理技術を意味する。圧縮符号化の対象としては音声、映像、文字などの対象が存在するが、特に映像を対象とする圧縮符号化を行う技術をビデオ映像圧縮と称する。ビデオ信号に対する圧縮符号化は、空間的な相関関係、時間的な相関関係、確率的な相関関係などを考慮して剰余情報を除去することで行われる。しかし、最近の多様なメディア及びデータ伝送媒体の発展によって、より高効率のビデオ信号処理方法及び装置が求められている。 Compression coding refers to a series of signal processing techniques for transmitting digitized information through a communication line or storing it in a form suitable for a storage medium. Targets of compression encoding include audio, video, characters, and the like, and a technique of performing compression encoding especially for video is called video image compression. Compression coding of a video signal is performed by removing residual information in consideration of spatial correlation, temporal correlation, stochastic correlation, and the like. However, with the recent development of various media and data transmission media, there is a demand for a more efficient video signal processing method and apparatus.

本発明の目的は、ビデオ信号のコーディング効率を高めようとすることにある。また、本発明は現在ブロックの動き情報セットと関連したシグナリング効率を高めるための目的を有している。 SUMMARY OF THE INVENTION It is an object of the present invention to attempt to increase the coding efficiency of a video signal. Also, the present invention has an object to improve the signaling efficiency associated with the motion information set of the current block.

前記のような課題を解決するために、本発明は次のようなビデオ信号処理装置及びビデオ信号処理方法を提供する。 In order to solve the above problems, the present invention provides the following video signal processing apparatus and video signal processing method.

まず、本発明の一実施形態によれば、ビデオ信号の処理方法において、第1方法及び第2方法のうち、いずれか1つを使用して現在ブロックの動き補償のための動きベクトル予測子(motion vector prediction、MVP)候補リストを構成するステップ;前記構成されたMVP候補リストに基づいて現在ブロックの動きベクトル予測子を獲得するステップ;前記現在ブロックの動きベクトルと前記動きベクトル予測子との間の差を示す動きベクトル差分値を獲得するステップ;前記現在ブロックの動きベクトル差分値の解像度(resolution)に基づいて、前記動きベクトル差分値を修正するステップ、前記動きベクトル差分値の解像度は解像度セットが含む複数の可用解像度のうちのいずれか1つであり、前記解像度セットが含む複数の可用解像度の構成は前記第1方法及び前記第2方法のうち、どの方法を使用して前記現在ブロックのMVP候補リストが構成されるかによって変わる;前記動きベクトル予測子及び前記修正された動きベクトル差分値に基づいて前記現在ブロックの動きベクトルを獲得するステップ;及び前記獲得された動きベクトルに基づいて前記現在ブロックを復元するステップを含む、ビデオ信号処理方法が提供される。 First, according to an embodiment of the present invention, in the video signal processing method, a motion vector predictor ( constructing a motion vector prediction (MVP) candidate list; obtaining a motion vector predictor for a current block based on said constructed MVP candidate list; between said current block motion vector and said motion vector predictor; obtaining a motion vector difference value indicating a difference between; modifying the motion vector difference value according to the resolution of the motion vector difference value of the current block, the resolution of the motion vector difference value being a resolution set is any one of the plurality of available resolutions included in the resolution set, and the configuration of the plurality of available resolutions included in the resolution set uses which method, out of the first method and the second method, for the current block. obtaining a motion vector for the current block based on the motion vector predictor and the modified motion vector difference value; and based on the obtained motion vector, said A video signal processing method is provided that includes the step of reconstructing a current block.

また、本発明の実施形態によれば、ビデオ信号デコーディング装置において、プロセッサを含み、前記プロセッサは、第1方法及び第2方法のうち、いずれか1つを使用して現在ブロックの動き補償のための動きベクトル予測子(motion vector prediction、MVP)候補リストを構成し、前記構成されたMVP候補リストに基づいて現在ブロックの動きベクトル予測子を獲得し、前記現在ブロックの動きベクトルと前記動きベクトル予測子との間の差を示す動きベクトル差分値を獲得し、前記現在ブロックの動きベクトル差分値の解像度(resolution)に基づいて、前記動きベクトル差分値を修正し、かつ前記動きベクトル差分値の解像度は解像度セットが含む複数の可用解像度のうちのいずれか1つであり、前記解像度セットが含む複数の可用解像度の構成は、前記第1方法及び前記第2方法のうち、どの方法を使用して前記現在ブロックのMVP候補リストが構成されるかによって変わり、前記動きベクトル予測子及び前記修正された動きベクトル差分値に基づいて前記現在ブロックの動きベクトルを獲得し、前記獲得された動きベクトルに基づいて前記現在ブロックを復元する、ビデオ信号デコーディング装置が提供される。 Also, according to an embodiment of the present invention, the video signal decoding apparatus includes a processor, wherein the processor performs motion compensation of a current block using any one of a first method and a second method. constructing a motion vector prediction (MVP) candidate list for, obtaining a motion vector predictor of a current block based on the constructed MVP candidate list, and generating the motion vector of the current block and the motion vector; obtaining a motion vector difference value indicating a difference between the predictor and the motion vector difference value, modifying the motion vector difference value based on the resolution of the motion vector difference value of the current block; The resolution is any one of the plurality of available resolutions included in the resolution set, and the configuration of the plurality of available resolutions included in the resolution set uses which of the first method and the second method. obtains a motion vector of the current block based on the motion vector predictor and the modified motion vector difference value, and uses the obtained motion vector as A video signal decoding apparatus is provided for reconstructing the current block based on.

前記動きベクトル差分値の解像度は、前記現在ブロックのMVP候補リストが前記第1方法及び前記第2方法のうち、どの方法を使用して構成されるかによって、各々第1解像度セット及び第2解像度セットのうちのいずれか1つから獲得され、前記第2解像度セットは前記第1解像度セットが含む複数の可用解像度でない、他の可用解像度を少なくとも1つ含むことができる。 The resolution of the motion vector difference value is a first resolution set and a second resolution, respectively, depending on which of the first method and the second method the MVP candidate list of the current block is constructed using. Obtained from any one of the sets, the second set of resolutions may include at least one other available resolution than the plurality of available resolutions included in the first set of resolutions.

前記MVP候補リストがアフィン(affine)モデルに基づいた前記第1方法を使用して構成される場合、前記動きベクトル差分値の解像度は前記第1解像度セットから獲得され、前記MVP候補リストが前記アフィンモデルに基づかない前記第2方法を使用して構成される場合、前記動きベクトル差分値の解像度は前記第2解像度セットから獲得できる。 When the MVP candidate list is constructed using the first method based on an affine model, the resolution of the motion vector difference values is obtained from the first resolution set, and the MVP candidate list is constructed using the affine model. When constructed using the second non-model-based method, the resolution of the motion vector difference values can be obtained from the second resolution set.

前記第1解像度セットが含む複数の可用解像度のうち、最も大きい第1可用解像度は、前記第2解像度セットが含む複数の可用解像度のうち、最も大きい第2可用解像度より小さいことがある。 A first available resolution, which is the largest among the plurality of available resolutions included in the first resolution set, may be smaller than a second available resolution, which is the largest among the plurality of available resolutions included in the second resolution set.

前記プロセッサは、前記第1解像度セット及び前記第2解像度セットのうちのいずれか1つが含む複数の可用解像度のうち、前記現在ブロックの動きベクトル差分値の解像度を指示する指示子を獲得し、前記指示子が指示する解像度に基づいて前記動きベクトル差分値を修正することができる。この際、前記指示子の値が第1値である場合、前記第1値により指示される前記解像度は前記MVP候補リストが前記第1方法及び前記第2方法のうち、どの方法を使用して構成されるかによって変わることができる。 The processor obtains an indicator indicating a resolution of a motion vector difference value of the current block among a plurality of available resolutions included in one of the first resolution set and the second resolution set, and The motion vector difference value can be modified based on the resolution indicated by the indicator. At this time, if the value of the indicator is the first value, the resolution indicated by the first value is determined by which method, out of the first method and the second method, the MVP candidate list uses. It can vary depending on how it is configured.

前記MVP候補リストが前記第1方法を使用して構成される場合、前記第1値は第1解像度セットが含む可用解像度のうちの1つである第1可用解像度を指示し、前記MVP候補リストが前記第2方法を使用して構成される場合、前記第1値は第2解像度セットが含む可用解像度のうちの1つである第2可用解像度を示し、前記第1可用解像度と前記第2可用解像度は互いに異なることがある。 if the MVP candidate list is constructed using the first method, the first value indicates a first available resolution that is one of the available resolutions included in a first resolution set; and the MVP candidate list is constructed using the second method, the first value indicates a second available resolution that is one of the available resolutions included in the second resolution set, the first available resolution and the second The available resolutions may differ from each other.

前記第1解像度セット及び前記第2解像度セットは両方とも第1可用解像度を含み、前記MVP候補リストが前記第2方法を使用して構成される場合、前記第1可用解像度は前記指示子の前記第1値と異なる値である第2値により指示できる。 When the first set of resolutions and the second set of resolutions both include a first available resolution, and the MVP candidate list is constructed using the second method, the first available resolution is the It can be indicated by a second value that is different from the first value.

前記指示子は可変長さのビットで表現され、前記第1値は前記可変長さのビットで表現される複数の値のうち、いずれか1つでありうる。 The indicator may be represented by a variable length of bits, and the first value may be one of a plurality of values represented by the variable length of bits.

前記指示子の前記第1値と異なる第3値は、前記複数の値のうち、最も短い長さのビットで表現される値であり、前記MVP候補リストが前記第2方法により構成される場合、前記第3値は前記第2解像度セットが含む複数の可用解像度セットのうち、最も小さい可用解像度を指示し、前記MVP候補リストが前記第1方法により構成される場合、前記第3値は前記第1解像度セットが含む複数の可用解像度セットのうち、最も小さい可用解像度の以外の他の可用解像度を指示することができる。 A third value different from the first value of the indicator is a value represented by the shortest length of bits among the plurality of values, and the MVP candidate list is constructed by the second method. , the third value indicates the smallest available resolution among a plurality of available resolution sets included in the second resolution set, and when the MVP candidate list is constructed by the first method, the third value is the A usable resolution other than the smallest usable resolution among the plurality of usable resolution sets included in the first resolution set can be indicated.

また、本発明の実施形態によれば、ビデオ信号エンコーディング装置において、プロセッサを含み、前記プロセッサは、現在ブロックの動き補償のために参照される参照ブロックの位置に基づいて前記現在ブロックの動きベクトルを獲得し、第1方法及び第2方法のうち、いずれか1つを使用して前記現在ブロックの動き補償のための動きベクトル予測子(motion vector prediction、MVP)候補リストを構成し、前記MVP候補リストが含む複数の候補のうちのいずれか1つと前記現在ブロックの動きベクトルとの間の差に基づいて動きベクトル差分値を獲得し、前記現在ブロックの動きベクトル差分値の解像度(resolution)に基づいて、シグナリングされる動きベクトル差分値を決定し、かつ前記動きベクトル差分値の解像度は、解像度セットが含む複数の可用解像度のうちのいずれか1つであり、前記解像度セットが含む複数の可用解像度の構成は、前記第1方法及び前記第2方法のうち、どの方法を使用して前記現在ブロックのMVP候補リストが構成されるかによって変わり、前記シグナリングされる動きベクトル差分値を含むビットストリームを生成する、エンコーディング装置が提供される。 Also, according to an embodiment of the present invention, the video signal encoding apparatus includes a processor, wherein the processor generates a motion vector of the current block based on a position of a reference block referred to for motion compensation of the current block. and constructing a motion vector prediction (MVP) candidate list for motion compensation of the current block using any one of a first method and a second method, and obtaining the MVP candidate list. Obtaining a motion vector difference value based on a difference between any one of a plurality of candidates included in the list and the motion vector of the current block, and obtaining a motion vector difference value based on the resolution of the motion vector difference value of the current block to determine a motion vector difference value to be signaled, and wherein the resolution of the motion vector difference value is any one of a plurality of available resolutions included in a resolution set, and a plurality of available resolutions included in the resolution set. depends on which of the first method and the second method is used to construct the MVP candidate list of the current block, and a bitstream containing the signaled motion vector difference values An encoding apparatus is provided for generating.

前記プロセッサは、前記第1解像度セット及び前記第2解像度セットのうちのいずれか1つが含む複数の可用解像度のうち、いずれか1つを指示する指示子を決定し、前記指示子及び前記シグナリングされる動きベクトル差分値を含むビットストリームを生成することができる。この際、前記指示子の値が第1値である場合、前記第1値により指示される前記解像度は前記MVP候補リストが前記第1方法及び前記第2方法のうち、どの方法を使用して構成されるかによって変わることができる。 The processor determines an indicator that indicates any one of a plurality of available resolutions included in any one of the first resolution set and the second resolution set, and determines the indicator and the signaled resolution. can generate a bitstream containing motion vector difference values. At this time, if the value of the indicator is the first value, the resolution indicated by the first value is determined by which method, out of the first method and the second method, the MVP candidate list uses. It can vary depending on how it is configured.

また、本発明の実施形態によれば、ビットストリームを格納するコンピュータにより読取可能な記録媒体において、前記ビットストリームは、現在ブロックの動きベクトル差分値の解像度(resolution)に基づいて修正された前記現在ブロックの修正された動きベクトル差分値を含み、かつ前記動きベクトル差分値の解像度は、解像度セットが含む複数の可用解像度のうちのいずれか1つであり、前記解像度セットが含む複数の可用解像度の構成は、第1方法及び第2方法のうち、どの方法を使用して前記現在ブロックの動き補償のための動きベクトル予測子(motion vector prediction、MVP)候補リストが構成されるかによって変わり、ビットストリームを格納するコンピュータにより読取可能な記録媒体が提供される。 Further, according to an embodiment of the present invention, in a computer-readable recording medium storing a bitstream, the bitstream is modified based on the resolution of the motion vector difference value of the current block. including a modified motion vector difference value for a block, the resolution of the motion vector difference value being any one of a plurality of available resolutions included in a resolution set, and one of a plurality of available resolutions included in the resolution set. Configuration varies depending on which of the first method and the second method is used to construct a motion vector prediction (MVP) candidate list for motion compensation of the current block, bit A computer readable medium storing the stream is provided.

前記ビットストリームは、前記第1解像度セット及び前記第2解像度セットのうちのいずれか1つが含む複数の可用解像度のうち、前記現在ブロックの動きベクトル差分値の解像度を指示する指示子をさらに含むことができる。この際、前記指示子の値が第1値である場合、前記第1値により指示される前記解像度は前記MVP候補リストが前記第1方法及び前記第2方法のうち、どの方法を使用して構成されるかによって変わることができる。 The bitstream may further include an indicator that indicates the resolution of the motion vector difference value of the current block among a plurality of available resolutions included in one of the first resolution set and the second resolution set. can be done. At this time, if the value of the indicator is the first value, the resolution indicated by the first value is determined by which method, out of the first method and the second method, the MVP candidate list uses. It can vary depending on how it is configured.

本発明の実施形態によれば、ビデオ信号のコーディング効率が高まることができる。また、本発明の一実施形態によれば、現在ブロックのインター予測に関するシグナリング効率が高まることができる。 According to embodiments of the present invention, the coding efficiency of video signals can be enhanced. Also, according to an embodiment of the present invention, it is possible to increase the signaling efficiency for inter prediction of the current block.

本発明の一実施例によるビデオ信号エンコーディング装置の概略的なブロック図である。1 is a schematic block diagram of a video signal encoding device according to one embodiment of the present invention; FIG. 本発明の一実施例によるビデオ信号デコーディング装置の概略的なブロック図である。1 is a schematic block diagram of a video signal decoding device according to one embodiment of the present invention; FIG. ピクチャ内でコーディングツリーユニットがコーディングユニットに分割される実施例を示す図である。Fig. 3 shows an example in which a coding tree unit is split into coding units within a picture; クォードツリー及びマルチ-タイプツリーの分割をシグナリングする方法の一実施例を示す図である。FIG. 2 illustrates one embodiment of a method for signaling splitting of quadtrees and multi-type trees. 本発明の実施例によるイントラ予測方法をより詳しく示す図である。FIG. 4 illustrates in more detail the intra prediction method according to an embodiment of the present invention; 本発明の実施例によるイントラ予測方法をより詳しく示す図である。FIG. 4 illustrates in more detail the intra prediction method according to an embodiment of the present invention; 本発明の一実施形態に従うインター予測方法を図示する。4 illustrates an inter-prediction method according to one embodiment of the present invention; 本発明の一実施形態に従って現在ブロックの動きベクトルがシグナリングされる方法を示す図である。FIG. 4 illustrates how the motion vector of the current block is signaled according to one embodiment of the present invention; 本発明の一実施形態に従って現在ブロックの動きベクトル差分値がシグナリングされる方法を示す図である。FIG. 4 illustrates how a motion vector difference value of a current block is signaled according to an embodiment of the present invention; 本発明の一実施形態に従って現在ブロックの動きベクトル差分値の解像度がシグナリングされる方法を示す図である。FIG. 4 illustrates how the resolution of the motion vector difference value of the current block is signaled according to an embodiment of the present invention; 本発明の他の一実施形態に従って現在ブロックの動きベクトル差分値の解像度がシグナリングされる方法を示す図である。FIG. 4 is a diagram illustrating a method of signaling a resolution of a motion vector difference value of a current block according to another embodiment of the present invention; 本発明の他の一実施形態に従って現在ブロックの動きベクトル差分値の解像度がシグナリングされる方法を示す図である。FIG. 4 is a diagram illustrating a method of signaling a resolution of a motion vector difference value of a current block according to another embodiment of the present invention; 解像度セットが含む可用解像度の構成が変わる一実施形態を示す図である。FIG. 11 illustrates an embodiment in which the configuration of available resolutions included in a resolution set changes; 現在ブロックの動きベクトル予測子によって現在ブロックの動きベクトル差分値の解像度がシグナリングされる方法の一実施形態を示す図である。FIG. 10 is a diagram illustrating an embodiment of how the resolution of the motion vector difference value of the current block is signaled by the motion vector predictor of the current block. 現在ブロックの動きベクトル予測子によって動きベクトル差分値の解像度がシグナリングされる方法の他の一実施形態を示す図である。FIG. 10 is a diagram illustrating another embodiment of how the resolution of the motion vector difference value is signaled by the motion vector predictor of the current block; 本発明の一実施形態に従ってテンプレートマッチング方法に基づいて動きベクトル差分値の解像度が獲得される方法を示す図である。FIG. 4 illustrates how resolution of motion vector difference values is obtained based on a template matching method according to an embodiment of the present invention; 本発明の一実施形態に従って両側マッチング方法に基づいて動きベクトル差分値の解像度が獲得される方法を示す図である。FIG. 4 is a diagram illustrating how the resolution of motion vector difference values is obtained based on a two-sided matching method according to an embodiment of the present invention; 本発明の一実施形態に従って現在ブロックの参照ピクチャリスト別に動きベクトル差分値の解像度がシグナリングされる方法を示す図である。FIG. 4 is a diagram illustrating a method of signaling a resolution of a motion vector difference value for each reference picture list of a current block according to an embodiment of the present invention; 現在ブロックの動きベクトル差分値の解像度がピクチャの解像度によってシグナリングされる方法の一実施形態を示す図である。FIG. 4 is a diagram illustrating an embodiment of a method in which the resolution of motion vector difference values of the current block is signaled by the resolution of a picture; 本発明の一実施形態に従って現在ブロックの参照ピクチャのサイズに基づいて動きベクトル差分値の解像度がシグナリングされる方法を示す図である。FIG. 4 illustrates how the resolution of motion vector difference values is signaled based on the size of the reference picture of the current block according to an embodiment of the present invention; 本発明の一実施形態に従って現在ブロックの動きベクトル差分値の解像度が獲得される方法を示すフローチャートである。4 is a flow chart illustrating a method for obtaining a resolution of a motion vector difference value of a current block according to an embodiment of the present invention; 本発明の一実施形態に従って現在ブロックの動きベクトル差分値の解像度が獲得される方法を示すフローチャートである。4 is a flow chart illustrating a method for obtaining a resolution of a motion vector difference value of a current block according to an embodiment of the present invention; 本発明の一実施形態に従って現在ブロックの動きベクトルが獲得される方法を示すフローチャートである。4 is a flow chart illustrating a method for obtaining a motion vector of a current block according to an embodiment of the present invention; 本発明の一実施形態に従って現在ブロックの動きベクトルが獲得される方法を示すフローチャートである。4 is a flow chart illustrating a method for obtaining a motion vector of a current block according to an embodiment of the present invention; 本発明の一実施形態に従って現在ブロックの動きベクトル差分値の符号ビットが暗黙的にシグナリングされる方法を示す図である。FIG. 4 illustrates how a sign bit of a motion vector difference value of a current block is implicitly signaled according to an embodiment of the present invention; 本発明の一実施形態に従って現在ブロックの動きベクトル差分値の符号ビットが暗黙的にシグナリングされる方法を示す図である。FIG. 4 illustrates how a sign bit of a motion vector difference value of a current block is implicitly signaled according to an embodiment of the present invention; 本発明の一実施形態に従って現在ブロックの動きベクトル差分値の符号ビットが暗黙的にシグナリングされる方法を示す図である。FIG. 4 illustrates how a sign bit of a motion vector difference value of a current block is implicitly signaled according to an embodiment of the present invention; 図25乃至図27の実施形態に対するシンタックスの例示を示す図である。Figure 28 shows an example syntax for the embodiment of Figures 25-27; 本発明の一実施形態に従って現在ブロックの動きベクトル差分値の解像度及び動きベクトル予測子がシグナリングされる方法を示す図である。FIG. 4 is a diagram illustrating how the resolution of the motion vector difference value of the current block and the motion vector predictor are signaled according to one embodiment of the present invention; 本発明の一実施形態に従って複数の動きベクトル差分値に基づいて現在ブロックの動きベクトルが誘導される方法を示す図である。FIG. 4 illustrates a method of deriving a motion vector of a current block based on a plurality of motion vector difference values according to an embodiment of the present invention; 本発明の一実施形態に従ってアフィンモデルに基づく動き補償を示す図である。FIG. 4 illustrates motion compensation based on an affine model according to one embodiment of the present invention; 4-パラメータアフィン動き補償方法の一実施形態を図示する。1 illustrates one embodiment of a 4-parameter affine motion compensation method; 6-パラメータアフィン動き補償方法の一実施形態を図示する。1 illustrates one embodiment of a 6-parameter affine motion compensation method; サブブロック基盤のアフィン動き補償方法の一実施形態を図示する。1 illustrates an embodiment of a sub-block-based affine motion compensation method; 現在ブロックの予測のためのコントロールポイント動きベクトルセットを獲得する方法の実施形態を図示する。Figure 4 illustrates an embodiment of a method for obtaining a control point motion vector set for prediction of the current block; 現在ブロックの予測のためのコントロールポイント動きベクトルセットを獲得する方法の実施形態を図示する。Figure 4 illustrates an embodiment of a method for obtaining a control point motion vector set for prediction of the current block; 現在ブロックの予測のためのコントロールポイント動きベクトルセットを獲得する方法の実施形態を図示する。Figure 4 illustrates an embodiment of a method for obtaining a control point motion vector set for prediction of the current block; 現在ブロックの予測のためのコントロールポイント動きベクトルセットを獲得する方法の実施形態を図示する。Figure 4 illustrates an embodiment of a method for obtaining a control point motion vector set for prediction of the current block; 本発明の他の一実施形態に従って現在ブロックのコントロールポイント動きベクトルが獲得される方法を示す図である。FIG. 6 illustrates a method of obtaining a control point motion vector of a current block according to another embodiment of the present invention; 本発明の一実施形態に従って現在ブロックのコントロールポイント動きベクトルが獲得される方法を示す。4 shows how control point motion vectors of the current block are obtained according to one embodiment of the present invention. 本発明の一実施形態に従って現在ブロックのコントロールポイント動きベクトル差分値がシグナリングされる方法を示す。4 illustrates how control point motion vector difference values for the current block are signaled according to one embodiment of the present invention. 本発明の他の一実施形態に従って現在ブロックのコントロールポイント動きベクトルが獲得される方法を示す。FIG. 4 illustrates a method of obtaining a control point motion vector of a current block according to another embodiment of the present invention; FIG. 図42を通じて説明された実施形態に従って現在ブロックのコントロールポイント動きベクトルが獲得される場合、コントロールポイント動きベクトル差分値がシグナリングされる方法を示す。FIG. 42 shows how a control point motion vector difference value is signaled when the control point motion vector of the current block is obtained according to the embodiment described with reference to FIG. 本発明の一実施形態に従う現在ブロックのコントロールポイント動きベクトル差分値がシグナリングされる方法を示す図である。FIG. 4 is a diagram illustrating how a control point motion vector difference value of a current block is signaled according to an embodiment of the present invention; 本発明の一実施形態に従って現在ブロックのコントロールポイント動きベクトル差分値に対する差分予測子を用いて動きベクトルが獲得される方法を示す図である。FIG. 4 is a diagram illustrating how a motion vector is obtained using a differential predictor for a control point motion vector differential value of a current block according to an embodiment of the present invention; 本発明の一実施形態に従って差分予測子を用いて現在ブロックのコントロールポイント動きベクトルが獲得される方法を示す図である。FIG. 4 illustrates how a control point motion vector of a current block is obtained using a differential predictor according to an embodiment of the present invention; 本発明の他の一実施形態に従って差分予測子を用いて現在ブロックのコントロールポイント動きベクトルが獲得される方法を示す図である。FIG. 5 illustrates how a control point motion vector of a current block is obtained using a differential predictor according to another embodiment of the present invention; 本発明の一実施形態に従って差分予測子が獲得される方法を示す図である。FIG. 4 illustrates how differential predictors are obtained according to one embodiment of the present invention; 本発明の一実施形態に従って現在ブロックの差分ベクトル予測子が決定される方法を示す図である。FIG. 4 illustrates how a difference vector predictor for the current block is determined according to one embodiment of the present invention; 現在ブロックのコントロールポイント動きベクトル差分値がシグナリングされる方法を示す図である。FIG. 4 is a diagram showing how a control point motion vector difference value of a current block is signaled; 本発明の他の一実施形態に従って現在ブロックのコントロールポイント動きベクトルが誘導される方法を示す図である。FIG. 4 is a diagram illustrating a method of deriving a control point motion vector of a current block according to another embodiment of the present invention; 本発明の一実施形態に従って現在ブロックのアフィン動き補償のための複数のコントロールポイント動きベクトルが誘導される方法を示す図である。FIG. 4 illustrates how multiple control point motion vectors are derived for affine motion compensation of a current block according to an embodiment of the present invention; 現在ブロックが複数のサブブロックに分割される形態の多様な実施形態を図示したものである。4A and 4B illustrate various embodiments in which a current block is divided into a plurality of sub-blocks; 現在ブロックのイントラ予測モードによって現在ブロックが分割される方法を図示したものである。FIG. 4 illustrates how a current block is divided according to an intra-prediction mode of the current block; FIG. 本発明の一実施形態に従って現在ブロックの参照サンプルのサンプル値に基づいて現在ブロックが複数のサブブロックに分割される方法を図示したものである。FIG. 4 illustrates a method of dividing a current block into a plurality of sub-blocks based on sample values of reference samples of the current block according to an embodiment of the present invention; FIG. 本発明の一実施形態に従って一次的サブブロックグループと2次的サブブロックグループが決定される方法を図示したものである。4 illustrates how a primary sub-block group and a secondary sub-block group are determined according to an embodiment of the present invention; 本発明の一実施形態に従って一次的サブブロックグループと2次的サブブロックグループが予測される方法を図示したものである。4 illustrates how a primary group of sub-blocks and a secondary group of sub-blocks are predicted according to an embodiment of the present invention; 本発明の一実施形態に従ってコーディングツリーユニットが処理される順序を図示したものである。4 illustrates the order in which coding tree units are processed according to one embodiment of the present invention; 本発明の一実施形態に従う両方向イントラ予測方法を図示したものである。4 illustrates a bi-directional intra prediction method according to an embodiment of the present invention; 本発明の一実施形態に従って現在ブロックから分割された複数のサブブロックの各々が予測される方法を図示したものである。4 illustrates a method of predicting each of a plurality of sub-blocks divided from a current block according to an embodiment of the present invention;

本明細書で使用される用語は本発明における機能を考慮しながらできるだけ現在広く使用されている一般的な用語を選択したが、これは当分野に携わる技術者の意図、慣例または新たな技術の出現などによって異なり得る。また、特定の場合は出願人が任意に選定した用語もあるが、この場合、該当の発明を実施する形態の部分においてその意味を記載する。よって、本明細書で使用される用語は、単なる用語の名称ではなく、その用語の有する実質的な意味と本明細書全般にわたる内容に基づいて解釈すべきであることを明らかにする。 The terms used in this specification have been selected as general terms that are currently widely used as much as possible while considering the functions in the present invention. It may vary depending on occurrences, etc. In addition, in certain cases, some terms are arbitrarily chosen by the applicant, and in such cases, their meanings are described in the detailed description of the invention. Therefore, it is clarified that the terms used in this specification should be construed based on the substantial meanings of the terms and the contents of the specification as a whole, not just the names of the terms.

本明細書において、一部用語は以下のように解釈される。コーディングは、場合によってはエンコーディングまたはでコーディングに解釈される。本明細書において、ビデオ信号のエンコーディング(符号化)を行ってビデオ信号のビットストリームを生成する装置はエンコーディング装置またはエンコーダと称され、ビデオ信号ビットストリームのデコーディング(復号化)を行ってビデオ信号を復元する装置はデコーディング装置またはデコーダと称される。また、本明細書において、ビデオ信号処理装置はエンコーダ及びデコーダをいずれも含む概念の用語として使用される。情報(information)は値(values)、パラメータ(parameter)、係数(coefficients)、成分(elements)などをいずれも含む用語であって、場合によっては意味が異なるように解釈されることがあるため、本発明はこれに限らない。「ユニット」は映像処理の基本単位またはピクチャの特定位置を指す意味で使用され、輝度(luma)成分と色差(chroma)成分のうち少なくとも一つを含むイメージ領域を指す。また、「ブロック」は輝度成分及び色差成分(つまり、Cb及びCr)のうち特定成分を含むイメージ領域を指す。但し、実施例によって「ユニット」、「ブロック」、「パーティション」、及び「領域」などの用語は互いに混合して使用されてもよい。また、本明細書において、ユニットはコーディングユニット、予測ユニット、変換ユニットをいずれも含む概念として使用される。ピクチャはフィールドまたはフレームを指し、実施例によって前記用語は互いに混用して使用される。 In this specification, some terms are interpreted as follows. Coding is sometimes interpreted as encoding or coding. In this specification, a device that encodes a video signal to generate a video signal bitstream is referred to as an encoding device or encoder, and decodes the video signal bitstream to generate a video signal. is called a decoding device or decoder. Also, in this specification, a video signal processing device is used as a conceptual term including both an encoder and a decoder. Information is a term that includes values, parameters, coefficients, elements, etc., and may be interpreted differently depending on the case. The present invention is not limited to this. A 'unit' is used to refer to a basic unit of image processing or a specific position of a picture, and refers to an image area including at least one of a luminance (luma) component and a chrominance (chroma) component. Also, a "block" refers to an image area that includes a specific component of the luminance component and the color difference components (ie, Cb and Cr). However, terms such as 'unit', 'block', 'partition', and 'region' may be used interchangeably depending on the embodiment. Also, in this specification, a unit is used as a concept including all of a coding unit, a prediction unit, and a transform unit. A picture refers to a field or a frame, and the terms are used interchangeably depending on the embodiment.

図1は、本発明の一実施例によるビデオ信号エンコーディング装置100の概略的なブロック図である。図1を参照すると、本明細書のエンコーディング装置100は、変換部110、量子化部115、逆量子化部120、逆変換部125、フィルタリング部130、予測部150、及びエントロピーコーディング部160を含む。 FIG. 1 is a schematic block diagram of a video signal encoding device 100 according to one embodiment of the invention. Referring to FIG. 1, the encoding device 100 of this specification includes a transform unit 110, a quantization unit 115, an inverse quantization unit 120, an inverse transform unit 125, a filtering unit 130, a prediction unit 150, and an entropy coding unit 160. .

変換部110は、入力されたビデオ信号と予測部150で生成された予測信号の差であるレジデュアル信号を変換して変換係数値を獲得する。例えば、離散コサイン変換(Discrete Cosine Transform、DCT)、離散サイン変換(Discrete Sine Transform、DST)、またはウェーブレット変換(Wavelet Transform)などが使用される。離散コサイン変換及び離散サイン変換は、入力されたピクチャ信号をブロックの形態に分けて変換を行うようになる。変換において、変換領域内の値の分布と特性によってコーディング効率が異なり得る。量子化部115は、変換部110内で出力された変換係数の値を量子化する。 The transform unit 110 transforms the residual signal, which is the difference between the input video signal and the prediction signal generated by the prediction unit 150, to obtain a transform coefficient value. For example, Discrete Cosine Transform (DCT), Discrete Sine Transform (DST), Wavelet Transform, or the like is used. Discrete cosine transform and discrete sine transform are performed by dividing an input picture signal into blocks. In a transform, coding efficiency can vary depending on the distribution and characteristics of values within the transform domain. The quantization section 115 quantizes the values of the transform coefficients output from the transform section 110 .

コーディング効率を上げるために、ピクチャ信号をそのままコーディングするのではなく、予測部150を介して予めコーディングされた領域を利用してピクチャを予測し、予測されたピクチャに原本ピクチャと予測ピクチャの間のレジデュアル値を足して復元ピクチャを獲得する方法が使用される。エンコーダとデコーダでミスマッチが発生しないように、エンコーダで予測を行う際にはデコーダでも使用可能な情報を使用すべきである。そのために、エンコーダでは符号化した現在ブロックを更に復元する過程を行う。逆量子化部120では変換係数値を逆量子化し、逆変換部125では逆量子化された変換係数値を利用してレジデュアル値を復元する。一方、フィルタリング部130は、復元されたピクチャの品質改善及び符号化効率の向上のためのフィルタリング演算を行う。例えば、デブロッキングフィルタ、サンプル適応的オフセット(Sample Adpative Offset、SAO)、及び適応的ループフィルタなどが含まれてもよい。フィルタリングを経たピクチャは、出力されるか参照ピクチャとして利用するために復号ピクチャバッファ(Decoded Picture Buffer、DPB)156に貯蔵される。 In order to improve the coding efficiency, instead of coding the picture signal as it is, a picture is predicted using a pre-coded region through the prediction unit 150, and the predicted picture is a region between the original picture and the predicted picture. A method of adding residual values to obtain a reconstructed picture is used. To avoid mismatches between the encoder and decoder, the encoder should use information that is also available to the decoder when making predictions. To this end, the encoder performs a process of reconstructing the coded current block. The inverse quantization unit 120 inversely quantizes the transform coefficient values, and the inverse transform unit 125 restores the residual values using the inversely quantized transform coefficient values. Meanwhile, the filtering unit 130 performs a filtering operation to improve quality of the reconstructed picture and coding efficiency. For example, a deblocking filter, a Sample Adaptive Offset (SAO), an adaptive loop filter, etc. may be included. A filtered picture is stored in a decoded picture buffer (DPB) 156 to be output or used as a reference picture.

予測部150は、イントラ予測部152とインター予測部154を含む。イントラ予測部152は現在ピクチャ内でイントラ(intra)予測を行い、インター予測部154は復号ピクチャバッファ156に貯蔵された参照バッファを利用して現在ピクチャを予測するインター(inter)予測を行う。イントラ予測部152は、現在ピクチャ内の復元されたサンプルからイントラ予測を行い、イントラ符号化情報をエントロピーコーディング部160に伝達する。イントラ符号化情報は、イントラ予測モード、MPM(Most Probable Mode)フラッグ、MPMインデックスのうち少なくとも一つを含む。イントラ符号化情報は参照サンプルに関する情報を含む。インター予測部154は、モーション推定部154a及びモーション補償部154bを含んで構成される。モーション推定部154aは、復元された参照信号ピクチャの特定領域を参照して現在領域のモーションベクトル値を獲得する。モーション推定部154aは、参照領域に対するモーション情報セット(参照ピクチャインデックス、モーションベクトル情報)をエントロピーコーディング部160に伝達する。モーション補償部154bは、モーション補償部154aから伝達されたモーションベクトル値を利用してモーション補償を行う。インター予測部154は参照領域に対する動き情報セットを含むインター符号化情報をエントロピーコーディング部160に伝達する。 The predictor 150 includes an intra predictor 152 and an inter predictor 154 . An intra-predictor 152 performs intra-prediction within a current picture, and an inter-predictor 154 performs inter-prediction for predicting the current picture using a reference buffer stored in the decoded picture buffer 156 . The intra prediction unit 152 performs intra prediction from the reconstructed samples in the current picture and delivers intra coded information to the entropy coding unit 160 . The intra-encoding information includes at least one of an intra prediction mode, an MPM (Most Probable Mode) flag, and an MPM index. Intra-coded information includes information about reference samples. The inter prediction unit 154 includes a motion estimation unit 154a and a motion compensation unit 154b. The motion estimator 154a obtains a motion vector value of the current area by referring to a specific area of the reconstructed reference signal picture. The motion estimator 154 a transfers the motion information set (reference picture index, motion vector information) for the reference region to the entropy coding unit 160 . The motion compensator 154b performs motion compensation using the motion vector values received from the motion compensator 154a. The inter prediction unit 154 transfers inter coding information including the motion information set for the reference region to the entropy coding unit 160 .

更なる実施例によって、予測部150はイントラブロックコピー(block copy、BC)予測部(図示せず)を含む。イントラBC予測部は、現在ピクチャ内の復元されたサンプルからイントラBC予測を行い、イントラBC符号化情報をエントロピーコーディング部160に伝達する。イントラBC予測部は、現在ピクチャ内の特定領域を参照して現在領域の予測に利用される参照領域を示すブロックベクトル値を獲得する。イントラBC予測部は、獲得されたブロックベクトル値を利用してイントラBC予測を行う。イントラBC予測部は、イントラBC符号化情報をエントロピーコーディング部160に伝達する。イントラBC予測部はブロックベクトル情報を含む。 According to a further embodiment, predictor 150 includes an intra block copy (BC) predictor (not shown). The intra BC predictor performs intra BC prediction from the reconstructed samples in the current picture and delivers intra BC coded information to the entropy coding unit 160 . The intra BC predictor obtains a block vector value indicating a reference region used for prediction of the current region by referring to a specific region within the current picture. The intra BC predictor performs intra BC prediction using the obtained block vector values. The intra BC predictor delivers the intra BC coded information to the entropy coder 160 . The intra BC predictor contains block vector information.

上述したピクチャ予測が行われれば、変換部110は原本ピクチャと予測ピクチャの間のレジデュアル値を変換して変換係数値を獲得する。この際、変換はピクチャ内で特定ブロック単位で行われるが、特定ブロックのサイズは予め設定された範囲内で可変する。量子化部115は、変換部110で生成された変換係数の値を量子化してエントロピーコーディング部160に伝達する。 If the picture prediction described above is performed, the transform unit 110 transforms the residual values between the original picture and the predicted picture to obtain transform coefficient values. At this time, the transformation is performed on a specific block basis within a picture, and the size of the specific block is variable within a preset range. The quantization unit 115 quantizes the values of the transform coefficients generated by the transform unit 110 and transfers the quantized values to the entropy coding unit 160 .

エントロピーコーディング部160は量子化された変換係数、イントラ符号化情報、及びインター符号化情報などをエントロピーコーディングしてビデオ信号ビットストリームを生成する。エントロピーコーディング部160では、可変長コーディング(Variable Length Codeing、VLC)方式と算術コーディング(arithmetic coding)方式などが使用される。可変長コーディング(VLC)方式は入力されるシンボルを連続したコードワードに変換するが、コードワードの長さは可変的である。例えば、よく発生するシンボルは短いコードワードで、よく発生しないシンボルは長いコードワードで表現する。可変長コーディング方式として、コンテキスト基盤適応型可変長コーディング(Context-based Adaptive Variable Length Coding、CAVLC)方式が使用される。算術コーディングは連続したデータシンボルを一つの素数に変換するが、算術コーディングは各シンボルを表現するために必要な最適の素数ビットを得る。算術コーディングとして、コンテキスト基盤適合型算術符号化(Context-based Adaptive Binary Arithmetic Coding、CABAC)方式が使用される。 The entropy coding unit 160 entropy-codes the quantized transform coefficients, intra-encoded information, inter-encoded information, and the like to generate a video signal bitstream. The entropy coding unit 160 uses a variable length coding (VLC) scheme, an arithmetic coding scheme, and the like. A variable length coding (VLC) scheme converts incoming symbols into a sequence of codewords, but the length of the codewords is variable. For example, frequently occurring symbols are represented by short codewords, and infrequently occurring symbols are represented by long codewords. A context-based adaptive variable length coding (CAVLC) scheme is used as the variable length coding scheme. Arithmetic coding converts consecutive data symbols into a single prime, but arithmetic coding obtains the optimal prime bits needed to represent each symbol. A Context-based Adaptive Binary Arithmetic Coding (CABAC) scheme is used as the arithmetic coding.

前記生成されたビットストリームは、NAL(Network Abstraction Layer)ユニットを基本単位にカプセル化される。NALユニットは、符号化された整数個のコーディングツリーユニット(coding tree unit)を含む。ビデオデコーダでビットストリームを復号化するためには、まずビットストリームをNALユニット単位に分離した後、分離されたそれぞれのNALユニットを復号化すべきである。一方、ビデオ信号ビットストリームの復号化のために必要な情報は、ピクチャパラメータセット(Picture Parameter Set、PPS)、シーケンスパラメータセット(Sequence Parameter Set、SPS)、ビデオパラメータセット(Video Parameter Set、VPS)などのような上位レベルセットのRBSP(Raw Byte Sequence Payload)を介して伝送される。 The generated bitstream is encapsulated using a Network Abstraction Layer (NAL) unit as a basic unit. A NAL unit includes an integer number of coding tree units that are encoded. In order to decode a bitstream in a video decoder, the bitstream should be first separated into NAL units and then each separated NAL unit should be decoded. Information necessary for decoding a video signal bitstream includes a picture parameter set (PPS), a sequence parameter set (SPS), a video parameter set (VPS), and the like. is transmitted via a higher level set of RBSP (Raw Byte Sequence Payload) such as .

一方、図1のブロック図は本発明の一実施例によるエンコーディング装置100を示し、分離して示したブロックはエンコーディング装置100のエレメントを論理的に区別して示している。よって、上述したエンコーディング装置100のエレメントは、ディバイスの設計に応じて一つのチップまたは複数のチップに取り付けられる。一実施例によると、上述したエンコーディング装置100の各エレメントの動作はプロセッサ(図示せず)によって行われる。 Meanwhile, the block diagram of FIG. 1 shows an encoding apparatus 100 according to an embodiment of the present invention, and separated blocks logically distinguish elements of the encoding apparatus 100. As shown in FIG. Thus, the elements of encoding apparatus 100 described above may be mounted on a single chip or multiple chips depending on the design of the device. According to one embodiment, the operations of each element of encoding apparatus 100 described above are performed by a processor (not shown).

図2は、本発明の実施例によるビデオ信号デコーディング装置の200概略的なブロック図である。図2を参照すると、本明細書のデコーディング装置200は、エントロピーデコーディング部210、逆量子化部220、逆変換部225、フィルタリング部230、及び予測部250を含む。 FIG. 2 is a schematic block diagram 200 of a video signal decoding apparatus according to an embodiment of the invention. Referring to FIG. 2 , the decoding device 200 of this specification includes an entropy decoding unit 210 , an inverse quantization unit 220 , an inverse transform unit 225 , a filtering unit 230 and a prediction unit 250 .

エントロピーデコーディング部210はビデオ信号ビットストリームをエントロピーデコーディングして、各領域に対する変換係数、イントラ符号化情報、インター符号化情報などを抽出する。逆量子化部220はエントロピーデコーディングされた変換係数を逆量子化し、逆変換部225は逆量子化された変換係数を用いてレジデュアル値を復元する。ビデオ信号処理装置200は逆変換部225から獲得されたレジデュアル値を予測部250から獲得された予測子(predictor)と合算して元の画素値を復元する。 The entropy decoding unit 210 entropy-decodes the video signal bitstream to extract transform coefficients, intra-encoding information, inter-encoding information, etc. for each region. An inverse quantizer 220 inversely quantizes the entropy-decoded transform coefficients, and an inverse transform unit 225 restores residual values using the inversely quantized transform coefficients. The video signal processing apparatus 200 sums the residual values obtained from the inverse transform unit 225 with the predictors obtained from the prediction unit 250 to restore the original pixel values.

一方、フィルタリング部230は、ピクチャに対するフィルタリングを行って画質を向上させる。ここには、ブロック歪曲現象を減少させるためのデブロッキングフィルタ及び/またはピクチャ全体の歪曲を除去するための適応的ループフィルタなどが含まれる。フィルタリングを経たピクチャは出力されるか、次のピクチャに対する参照ピクチャとして利用するために復号ピクチャバッファ(DPB)256に貯蔵される。 Meanwhile, the filtering unit 230 performs filtering on pictures to improve picture quality. This includes a deblocking filter to reduce block distortion phenomena and/or an adaptive loop filter to remove distortion of the entire picture. The filtered picture is either output or stored in a decoded picture buffer (DPB) 256 for use as a reference picture for the next picture.

予測部250は、イントラ予測部252及びインター予測部254を含む。予測部250は、前述したエントロピーデコーディング部210を通じて復号化された符号化タイプ、各領域に対する変換係数、イントラ/インター符号化情報などを活用して予測ピクチャを生成する。復号化が遂行される現在ブロックを復元するために、現在ブロックが含まれた現在ピクチャまたは他のピクチャの復号化された領域が利用できる。復元に現在ピクチャのみを用いる、即ちイントラ予測またはイントラBC予測のみを遂行するピクチャ(または、タイル/スライス)をイントラピクチャまたはIピクチャ(または、タイル/スライス)、イントラ予測、インター予測及びイントラBC予測を全て遂行することができるピクチャ(または、タイル/スライス)をインターピクチャ(または、タイル/スライス)という。インターピクチャ(または、タイル/スライス)のうち、各ブロックのサンプル値を予測するために最大1つの動きベクトル及び参照ピクチャインデックスを用いるピクチャ(または、タイル/スライス)を予測ピクチャ(predictive picture)またはPピクチャ(または、タイル/スライス)といい、最大2つの動きベクトル及び参照ピクチャインデックスを用いるピクチャ(または、タイル/スライス)を双予測ピクチャ(Bi-predictive picture)またはBピクチャ(または、タイル/スライス)という。言い換えると、Pピクチャ(または、タイル/スライス)は各ブロックを予測するために最大1つの動き情報セットを用いて、Bピクチャ(または、タイル/スライス)は各ブロックを予測するために最大2つの動き情報セットを用いる。ここで、動き情報セットは1つ以上の動きベクトルと1つの参照ピクチャインデックスを含む。 The predictor 250 includes an intra predictor 252 and an inter predictor 254 . The prediction unit 250 generates a prediction picture using the coding type, transform coefficients for each region, intra/inter coding information, etc. decoded by the entropy decoding unit 210 described above. A decoded region of a current picture or another picture containing the current block can be used to reconstruct the current block on which decoding is performed. A picture (or tile/slice) that uses only the current picture for reconstruction, i.e. performs only intra prediction or intra BC prediction, is called intra picture or I picture (or tile/slice), intra prediction, inter prediction and intra BC prediction. is called an inter-picture (or tile/slice). Predictive picture or P A picture (or tile/slice) is called a picture (or tile/slice), and a picture (or tile/slice) that uses up to two motion vectors and a reference picture index is called a bi-predictive picture or a B picture (or tile/slice). It says. In other words, P pictures (or tiles/slices) use at most one set of motion information to predict each block, and B pictures (or tiles/slices) use at most two motion information sets to predict each block. Use the motion information set. Here, the motion information set includes one or more motion vectors and one reference picture index.

イントラ予測部252は、イントラ符号化情報及び現在ピクチャ内の復元されたサンプルを利用して予測ブロックを生成する。上述したように、イントラ符号化情報は、イントラ予測モード、MPM(MOST Probable Mode)フラッグ、MPMインデックスのうち少なくとも一つを含む。イントラ予測部252は、現在ブロックの左側及び/または上側に位置する復元されたサンプルを参照サンプルとして利用して、現在ブロックのサンプル値を予測する。本開示において、復元されたサンプル、参照サンプル、及び現在ブロックのサンプルはピクセルを示す。また、サンプル値(sample value)はピクセル値を示す。 The intra prediction unit 252 generates a prediction block using the intra coded information and the reconstructed samples in the current picture. As described above, the intra-encoding information includes at least one of an intra prediction mode, an MPM (MOST Probable Mode) flag, and an MPM index. The intra prediction unit 252 predicts sample values of the current block using the reconstructed samples positioned to the left and/or above the current block as reference samples. In this disclosure, reconstructed samples, reference samples, and current block samples refer to pixels. Also, a sample value indicates a pixel value.

一実施例において、参照サンプルは現在ブロックの周辺ブロックに含まれたサンプルである。例えば、参照サンプルは現在ブロックの左側境界に隣接したサンプル及び/または上側境界に隣接したサンプルである。また、参照サンプルは現在ブロックの周辺ブロックのサンプルのうち、現在ブロックの左側境界から予め設定された距離以内のライン上に位置するサンプル及び/または現在ブロックの上側境界から予め設定された距離以内のライン上に位置するサンプルである。この際、現在ブロックの周辺ブロックは、現在ブロックに隣接した左側(L)ブロック、上側(A)ブロック、下左側(Below Left、BL)ブロック、右上側(Above Right、AR)ブロック、または左上側(Above Left、AL)ブロックのうち少なくとも一つを含む。 In one embodiment, the reference samples are samples contained in neighboring blocks of the current block. For example, the reference samples are the samples adjacent to the left boundary and/or the samples adjacent to the upper boundary of the current block. Also, the reference samples are samples located on a line within a preset distance from the left boundary of the current block and/or samples within a preset distance from the upper boundary of the current block among samples of neighboring blocks of the current block. It is a sample located on the line. At this time, the neighboring blocks of the current block are the left (L) block, the upper (A) block, the Below Left (BL) block, the Above Right (AR) block, or the upper left block adjacent to the current block. (Above Left, AL) contains at least one of the blocks.

インター予測部254は、復号ピクチャバッファ256に貯蔵された参照ピクチャ及びインター符号化情報を利用して予測ブロックを生成する。インター符号化情報は、参照ブロックに対する現在ブロックのモーション情報セット(参照ピクチャインデックス、モーションベクトルなど)を含む。インター予測には、L0予測、L1予測、及び双予測(Bi-prediction)がある。L0予測はL0ピクチャリストに含まれた一つの参照ピクチャを利用した予測であり、L1予測はL1ピクチャリストに含まれた一つの参照ピクチャを利用した予測を意味する。そのためには、1セットのモーション情報(例えば、モーションベクトル及び参照ピクチャインデックス)が必要である。双予測方式では最大2つの参照領域を利用するが、この2つの参照領域は同じ参照ピクチャに存在してもよく、互いに異なるピクチャにそれぞれ存在してもよい。つまり、双予測方式では最大2セットのモーション情報(例えば、モーションベクトル及び参照ピクチャインデックス)が利用されるが、2つのモーションベクトルが同じ参照ピクチャインデックスに対応してもよく、互いに異なる参照ピクチャインデックスに対応してもよい。この際、参照ピクチャは時間的に現在ピクチャの以前や以降のいずれにも表示(または出力)される。 The inter prediction unit 254 generates a prediction block using reference pictures and inter coding information stored in the decoded picture buffer 256 . The inter-coded information includes the motion information set (reference picture index, motion vector, etc.) of the current block relative to the reference block. Inter prediction includes L0 prediction, L1 prediction, and bi-prediction. L0 prediction is prediction using one reference picture included in the L0 picture list, and L1 prediction is prediction using one reference picture included in the L1 picture list. For that, a set of motion information (eg, motion vectors and reference picture indices) is required. The bi-prediction method uses a maximum of two reference regions, and these two reference regions may exist in the same reference picture or in different pictures. That is, the bi-prediction scheme uses a maximum of two sets of motion information (e.g., motion vector and reference picture index), but two motion vectors may correspond to the same reference picture index, or may correspond to different reference picture indices. You can respond. At this time, the reference picture is temporally displayed (or output) either before or after the current picture.

インター予測部254は、モーションベクトル及び参照ピクチャインデックスを利用して現在の参照ブロックを獲得する。前記参照ブロックは、参照ピクチャインデックスに対応する参照ピクチャ内に存在する。また、モーションベクトルによって特定されたブロックのサンプル値またはこれの補間(interpolation)された値が現在ブロックの予測子(predictor)として利用される。サブペル(sub-pel)単位のピクセル正確度を有するモーション予測のために、例えば、輝度信号に対して8-タブ補間フィルタが、色差信号に対して4-タブ補間フィルタが使用される。但し、サブペル単位のモーション予測のための補間フィルタはこれに限らない。このように、インター予測部254は、以前復元されたピクチャから現在ユニットのテクスチャを予測するモーション補償(motion compensation)を行う。この際、インター予測部はモーション情報セットを利用する。 The inter predictor 254 obtains a current reference block using motion vectors and reference picture indices. The reference block resides in a reference picture corresponding to a reference picture index. Also, a sample value of the block specified by the motion vector or an interpolation value thereof is used as a predictor of the current block. For motion prediction with sub-pel pixel accuracy, for example, an 8-tab interpolation filter is used for luminance signals and a 4-tab interpolation filter for chrominance signals. However, the interpolation filter for sub-pel unit motion prediction is not limited to this. Thus, the inter predictor 254 performs motion compensation to predict the texture of the current unit from the previously reconstructed picture. At this time, the inter predictor uses the motion information set.

追加的な実施形態に従って、予測部250はイントラBC予測部(図示せず)を含むことができる。イントラBC予測部は現在ピクチャ内の復元されたサンプルからイントラBC予測を遂行して、イントラBC符号化情報をエントロピーコーディング部160に伝達する。イントラBC予測部は、現在ピクチャ内の特定領域を指示する現在領域のブロックベクトル値を獲得する。イントラBC予測部は獲得されたブロックベクトル値を用いてイントラBC予測を遂行することができる。イントラBC予測部は、イントラBC符号化情報をエントロピーコーディング部160に伝達する。イントラBC符号化情報は、ブロックベクトル情報を含むことができる。 According to additional embodiments, predictor 250 can include an intra BC predictor (not shown). The intra BC predictor performs intra BC prediction from the reconstructed samples in the current picture and delivers intra BC coded information to the entropy coder 160 . The intra BC predictor obtains a block vector value of the current region that indicates a specific region within the current picture. The intra BC predictor can perform intra BC prediction using the obtained block vector values. The intra BC predictor delivers the intra BC coded information to the entropy coder 160 . Intra BC encoded information may include block vector information.

前記イントラ予測部252またはインター予測部254から出力された予測子、及び逆変換部225から出力されたレジデュアル値が加えられて復元されたビデオピクチャが生成される。即ち、ビデオ信号デコーディング装置200は、予測部250で生成された予測ブロックと逆変換部225から獲得されたレジデュアルを用いて現在ブロックを復元する。 A reconstructed video picture is generated by adding the predictors output from the intra predictor 252 or the inter predictor 254 and the residual values output from the inverse transform unit 225 . That is, the video signal decoding apparatus 200 restores the current block using the prediction block generated by the prediction unit 250 and the residual obtained from the inverse transform unit 225 .

一方、図2のブロック図は本発明の一実施例によるデコーディング装置200を示し、分離して示したブロックはデコーディング装置200のエレメントを論理的に区別して示している。よって、上述したデコーディング装置200のエレメントは、ディバイスの設計に応じて一つのチップまたは複数のチップに取り付けられる。一実施例によると、上述したデコーディング装置200の各エレメントの動作はプロセッサ(図示せず)によって行われる。 Meanwhile, the block diagram of FIG. 2 illustrates a decoding apparatus 200 according to an embodiment of the present invention, and separated blocks logically distinguish elements of the decoding apparatus 200 . Thus, the elements of decoding apparatus 200 described above may be mounted on a single chip or multiple chips depending on the design of the device. According to one embodiment, the operations of each element of the decoding device 200 described above are performed by a processor (not shown).

図3は、ピクチャ内でコーディングツリーユニット(Coding Tree Unit、CTU)がコーディングユニット(Coding Units、CUs)に分割される実施例を示している。ビデオ信号のコーディング過程において、ピクチャはコーディングツリーユニット(CTU)のシーケンスに分割される。コーディングツリーユニットは、輝度サンプルのNXNブロックと、それに対応する色差サンプルの2つのブロックからなる。コーディングツリーユニットは、複数のコーディングユニットに分割される。コーディングツリーユニットは分割されずにリーフノードになってもよい。この場合、コーディングツリーユニット自体がコーディングユニットになり得る。コーディングユニットは上述したビデオ信号の処理過程、つまり、イントラ/インター予測、変換、量子化及び/またはエントロピーコーディングなどの過程でピクチャを処理するための基本単位を指す。一つのピクチャ内において、コーディングユニットのサイズ及び模様は一定ではない。コーディングユニットは正方形または長方形の模様を有する。長方形コーディングユニット(または、長方形ブロック)は垂直コーディングユニット(または、垂直ブロック)と水平コーディングユニット(または、水平ブロック)を含む。本明細書において、垂直ブロックは高さが幅より大きいブロックであり、水平ブロックは幅が高さより大きいブロックである。また、本明細書において、正方形ではない(non-square)ブロックは長方形ブロックを指すが、本発明はこれに限らない。 FIG. 3 shows an example where a Coding Tree Unit (CTU) is divided into Coding Units (CUs) within a picture. During the coding process of a video signal, pictures are divided into a sequence of coding tree units (CTUs). A coding tree unit consists of an NXN block of luma samples and two corresponding blocks of chrominance samples. A coding tree unit is divided into multiple coding units. A coding tree unit may become a leaf node without being split. In this case, the coding tree unit itself can be a coding unit. A coding unit refers to a basic unit for processing a picture in the above video signal processing process, ie, intra/inter prediction, transform, quantization, and/or entropy coding. Within one picture, the size and pattern of coding units are not constant. The coding units have a square or rectangular pattern. A rectangular coding unit (or rectangular block) includes a vertical coding unit (or vertical block) and a horizontal coding unit (or horizontal block). As used herein, a vertical block is a block whose height is greater than its width, and a horizontal block is a block whose width is greater than its height. Also, in this specification, a non-square block refers to a rectangular block, but the invention is not so limited.

図3を参照すると、コーディングツリーユニットは、まずクォードツリー(Quad Tree、QT)構造に分割される。つまり、クォードツリー構造において、2N×2Nのサイズを有する一つのノードはN×Nのサイズを有する4つのノードに分割される。本明細書において、クォードツリーは4進(quaternary)ツリーとも称される。クォードツリー分割は再帰的に行われ、全てのノードが同じ深さに分割される必要はない。 Referring to FIG. 3, the coding tree unit is first divided into a Quad Tree (QT) structure. That is, in the quadtree structure, one node with a size of 2Nx2N is divided into four nodes with a size of NxN. A quadtree is also referred to herein as a quaternary tree. Quadtree splitting is recursive and not all nodes need to be split to the same depth.

一方、上述したクォードツリーのリーフノード(leaf node)は、マルチ-タイプツリー(Multi-Type Tree、MTT)構造に更に分割される。本発明の実施例によると、マルチタイプツリー構造では一つのノードが水平または垂直分割の2進(binary、バイナリー)または3進(ternary、ターナリー)ツリー構造に分割される。つまり、マルチ-タイプツリー構造には、垂直バイナリー分割、水平バイナリー分割、垂直ターナリー分割、及び水平ターナリー分割の4つの分割構造が存在する。本発明の実施例によると、前記各ツリー構造において、ノードの幅及び高さはいずれも2の累乗値を有する。例えば、バイナリーツリー(binary Tree、BT)構造において、2N×2Nのサイズのノードは垂直バイナリー分割によって2つのN×2Nノードに分割され、水平バイナリー分割によって2つの2N×Nノードに分割される。また、ターナリーツリー(Ternary Tree、TT)構造において、2N×2Nのサイズのノードは垂直ターナリー分割によって(N/2)×2N、N×2N及び(N/2)×2Nのノードに分割され、水平ターナリー分割によって2N×(N/2)、2N×N及び2N×(N/2)のノードに分割される。このようなマルチ-タイプツリー分割は再帰的に行われる。 Meanwhile, the leaf nodes of the quadtree described above are further divided into a multi-type tree (MTT) structure. According to an embodiment of the present invention, a multi-type tree structure divides one node into a horizontal or vertical split binary or ternary tree structure. That is, there are four partitioning structures in the multi-type tree structure: vertical binary partitioning, horizontal binary partitioning, vertical ternary partitioning, and horizontal ternary partitioning. According to an embodiment of the present invention, in each tree structure, the width and height of a node both have powers of two. For example, in a binary tree (BT) structure, a node of size 2Nx2N is split into two Nx2N nodes by vertical binary splitting, and split into two 2NxN nodes by horizontal binary splitting. Also, in a ternary tree (TT) structure, a 2N×2N size node is divided into (N/2)×2N, N×2N and (N/2)×2N nodes by vertical ternary partitioning. , is divided into 2N×(N/2), 2N×N and 2N×(N/2) nodes by horizontal ternary partitioning. Such multi-type tree splitting is done recursively.

マルチ-タイプツリーのリーフノードはコーディングユニットできる。コーディングユニットに対する分割が指示されないか、またはコーディングユニットが最大変換長さに比べて大きくない場合、該当コーディングユニットはこれ以上の分割無しで予測及び変換の単位に使われる。一方、上述したクォードツリー及びマルチ-タイプツリーにおいて、次のパラメータのうち少なくとも一つが事前に定義されるか、PPS、SPS、VPSなどのような上位レベルセットのRBSPを介して伝送される。1)CTUサイズ:クォードツリーのルートノード(root node)のサイズ、2)最小QTサイズ(MinQtSize):許容された最小QTリーフノードのサイズ、3)最大BTサイズ(MaxBtSize):許容された最大BTルートノードのサイズ、4)最大TTサイズ(MaxTtSize):許容された最大TTルートノードのサイズ、5)最大MTT深さ(MaxMttDepth):QTのリーフノードからのMTT分割の最大許容深さ、6)最小BTサイズ(MinBtSize):許容された最小BTリーフノードのサイズ、7)最小TTサイズ:許容された最小TTリーフノードのサイズ。 A leaf node of a multi-type tree can be a coding unit. If no division for a coding unit is indicated or the coding unit is not larger than the maximum transform length, the corresponding coding unit is used as a prediction and transform unit without further division. Meanwhile, in the quadtree and multi-type tree described above, at least one of the following parameters is predefined or transmitted via a higher level set of RBSPs such as PPS, SPS, VPS, and so on. 1) CTU size: the size of the root node of the quadtree, 2) MinQtSize: the size of the smallest QT leaf node allowed, 3) MaxBtSize: the largest BT allowed. Root node size, 4) Maximum TT size (MaxTtSize): Maximum allowed TT root node size, 5) Maximum MTT depth (MaxMttDepth): Maximum allowed depth of MTT splits from QT leaf nodes, 6) Minimum BT size (MinBtSize): size of the smallest BT leaf node allowed; 7) Minimum TT size: size of the smallest TT leaf node allowed.

図4は、クワッドツリー及びマルチ-タイプツリーの分割をシグナリングする方法の一実施形態を図示する。前述したクワッドツリー及びマルチ-タイプツリーの分割をシグナリングするために既設定されたフラグが使われることができる。図4を参照すると、クワッドツリーノードの分割するか否かを指示するフラグ‘qt_split_flag’、マルチ-タイプツリーノードの分割するか否かを指示するフラグ‘mtt_split_flag’、マルチ-タイプツリーノードの分割方向を指示するフラグ‘mtt_split_vertical_flag’またはマルチ-タイプツリーノードの分割形態を指示するフラグ‘mtt_split_binary_flag’のうち、少なくとも1つが使われることができる。 FIG. 4 illustrates one embodiment of a method for signaling splitting of quadtrees and multi-type trees. A preset flag can be used to signal the splitting of the quadtree and multi-type tree described above. Referring to FIG. 4, a flag 'qt_split_flag' indicating whether to split a quadtree node, a flag 'mtt_split_flag' indicating whether to split a multi-type tree node, and a split direction of a multi-type tree node. At least one of the flag 'mtt_split_vertical_flag' indicating the split form of the multi-type tree node and the flag 'mtt_split_binary_flag' indicating the split form of the multi-type tree node can be used.

本発明の実施形態によれば、コーディングツリーユニットはクワッドツリーのルートノードであり、クワッドツリー構造に先に分割できる。クワッドツリー構造では各々のノード‘QT_node’別に‘qt_split_flag’がシグナリングされる。‘qt_split_flag’の値が1の場合、該当ノードは4個の正四角形ノードに分割され、‘qt_split_flag’の値が0の場合、該当ノードはクワッドツリーのリーフノード‘QT_leaf_node’となる。 According to embodiments of the present invention, the coding tree unit is the root node of the quadtree and can be pre-divided into the quadtree structure. In the quadtree structure, 'qt_split_flag' is signaled for each node 'QT_node'. If the value of 'qt_split_flag' is 1, the corresponding node is split into 4 square nodes, and if the value of 'qt_split_flag' is 0, the corresponding node is a quadtree leaf node 'QT_leaf_node'.

各々のクワッドツリーリーフノード‘QT_leaf_node’はマルチ-タイプツリー構造にさらに分割できる。マルチ-タイプツリー構造では、各々のノード‘MTT_node’別に‘mtt_split_flag’がシグナリングされる。‘mtt_split_flag’の値が1の場合、該当ノードは複数の矩形ノードに分割され、‘mtt_split_flag’の値が0の場合、該当ノードはマルチ-タイプツリーのリーフノード‘MTT_leaf_node’となる。マルチ-タイプツリーノード‘MTT_node’が複数の矩形ノードに分割される場合(即ち、‘mtt_split_flag’の値が1の場合)、ノード‘MTT_node’のための‘mtt_split_vertical_flag’及び‘mtt_split_binary_flag’が追加でシグナリングできる。‘mtt_split_vertical_flag’の値が1の場合、ノード‘MTT_node’の垂直分割が指示され、‘mtt_split_vertical_flag’の値が0の場合、ノード‘MTT_node’の水平分割が指示される。また、‘mtt_split_binary_flag’の値が1の場合、ノード‘MTT_node’は2つの矩形ノードに分割され、‘mtt_split_binary_flag’の値が0の場合、ノード‘MTT_node’は3個の矩形ノードに分割される。 Each quadtree leaf node 'QT_leaf_node' can be further divided into a multi-type tree structure. In the multi-type tree structure, 'mtt_split_flag' is signaled for each node 'MTT_node'. If the value of 'mtt_split_flag' is 1, the corresponding node is split into multiple rectangular nodes, and if the value of 'mtt_split_flag' is 0, the corresponding node becomes a leaf node 'MTT_leaf_node' of the multi-type tree. 'mtt_split_vertical_flag' and 'mtt_split_binary_flag' for node 'MTT_node' additionally signaling when multi-type tree node 'MTT_node' is split into multiple rectangular nodes (i.e. 'mtt_split_flag' value is 1) can. If the value of 'mtt_split_vertical_flag' is 1, vertical splitting of the node 'MTT_node' is indicated, and if the value of 'mtt_split_vertical_flag' is 0, horizontal splitting of the node 'MTT_node' is indicated. Also, if the value of 'mtt_split_binary_flag' is 1, the node 'MTT_node' is split into two rectangular nodes, and if the value of 'mtt_split_binary_flag' is 0, the node 'MTT_node' is split into 3 rectangular nodes.

コーティングのためのピクチャ予測(モーション補償)はそれ以上分けられないコーディングユニット(つまり、コーディングユニットツリーのリーフノード)を対象に行われる。このような予測を行う基本単位を、以下では予測ユニット(prediction unit)または予測ブロック(prediction block)という。 Picture prediction (motion compensation) for coding is performed on coding units that cannot be further divided (ie, leaf nodes of the coding unit tree). A basic unit for such prediction is hereinafter referred to as a prediction unit or a prediction block.

以下、本明細書で使用されるユニットという用語は、予測を行う基本単位である前記予測ユニットを代替する用語として使用される。但し、本発明はこれに限らず、より広い意味では、前記コーディングユニットを含む概念として理解される。 Hereinafter, the term "unit" used in this specification is used as a substitute term for the prediction unit, which is a basic unit for prediction. However, the present invention is not limited to this, and in a broader sense, it is understood as a concept including the coding unit.

図5及び図6は、本発明の実施例によるイントラ予測方法をより詳しく示す図である。上述したように、イントラ予測部は、現在ブロックの左側及び/または上側に位置する復元されたサンプルを参照サンプルとして利用して、現在ブロックのサンプル値を予測する。 5 and 6 are diagrams illustrating the intra prediction method in more detail according to an embodiment of the present invention. As described above, the intra predictor predicts the sample values of the current block using the reconstructed samples positioned to the left and/or above the current block as reference samples.

まず、図5はイントラ予測モードで現在ブロックを予測するために使用される参照サンプルの一実施例を示す。一実施例によると、参照サンプルは現在ブロックの左側境界に隣接したサンプル及び/または上側境界に隣接したサンプルである。図5に示したように、現在ブロックのサイズがW×Hで現在ブロックに隣接した単一参照ライン(line)のサンプルがイントラ予測に使用されれば、現在ブロックの左側及び/または上側に位置した最大2W+2H+1個の周辺サンプルを使用して参照サンプルが設定される。 First, FIG. 5 shows an example of reference samples used to predict the current block in intra-prediction mode. According to one embodiment, the reference samples are the samples adjacent to the left boundary and/or the samples adjacent to the upper boundary of the current block. As shown in FIG. 5, if the size of the current block is W×H and the samples of a single reference line (line) adjacent to the current block are used for intra prediction, then the current block is positioned to the left and/or above the current block. A maximum of 2W+2H+1 surrounding samples are used to set the reference sample.

本発明の追加的な実施形態によれば、現在ブロックのイントラ予測のために複数の参照ライン上のサンプルが使われることができる。複数の参照ラインは、現在ブロックの境界から既設定された距離以内に位置したn個のラインから構成できる。この場合、現在ブロックのイントラ予測のために使われる少なくとも1つの参照ラインを指示する別途の参照ライン情報がシグナリングできる。具体的に、参照ライン情報は複数の参照ラインのうち、いずれか1つを指示するインデックスを含むことができる。 According to additional embodiments of the present invention, samples on multiple reference lines can be used for intra-prediction of the current block. The plurality of reference lines may consist of n lines positioned within a preset distance from the boundary of the current block. In this case, separate reference line information indicating at least one reference line used for intra prediction of the current block can be signaled. Specifically, the reference line information may include an index designating one of a plurality of reference lines.

また、参照サンプルとして使用される少なくとも一部のサンプルがまだ復元されていなければ、イントラ予測部は参照サンプルパッディング過程を行って参照サンプルを獲得する。また、イントラ予測部は、イントラ予測の誤差を減らすために参照サンプルフィルタリング過程を行う。つまり、周辺サンプル及び/または参照サンプルパッディング過程によって獲得された参照サンプルにフィルタリングを行って、フィルタリングされた参照サンプルを獲得する。イントラ予測部は、フィルタリングされていない参照サンプル、またはフィルタリングされた参照サンプルを利用して現在ブロックのサンプルを予測する。本開示において、周辺サンプルは少なくとも一つの参照ライン上のサンプルを含む。例えば、周辺サンプルは現在ブロックの境界に隣接したライン上の隣接サンプルを含んでもよい。 Also, if at least some of the samples used as reference samples have not been reconstructed, the intra predictor obtains reference samples by performing a reference sample padding process. In addition, the intra predictor performs a reference sample filtering process to reduce intra prediction errors. That is, the filtered reference samples are obtained by filtering the reference samples obtained by the surrounding samples and/or the reference sample padding process. The intra predictor predicts samples of the current block using unfiltered reference samples or filtered reference samples. In the present disclosure, peripheral samples include samples on at least one reference line. For example, surrounding samples may include adjacent samples on lines adjacent to the boundary of the current block.

次に、図6はイントラ予測に使われる予測モードの一実施形態を図示する。イントラ予測のために、イントラ予測方向を指示するイントラ予測モード情報がシグナリングできる。イントラ予測モード情報は、イントラ予測モードセットを構成する複数のイントラ予測モードのうち、いずれか1つを指示する。現在ブロックがイントラ予測されたブロックである場合、デコーダはビットストリームから現在ブロックのイントラ予測モード情報を受信する。デコーダのイントラ予測部は、抽出されたイントラ予測モード情報に基づいて現在ブロックに対するイントラ予測を遂行する。 Next, FIG. 6 illustrates one embodiment of prediction modes used for intra prediction. For intra prediction, intra prediction mode information can be signaled that indicates the intra prediction direction. The intra-prediction mode information indicates any one of a plurality of intra-prediction modes forming an intra-prediction mode set. If the current block is an intra-predicted block, the decoder receives intra-prediction mode information of the current block from the bitstream. An intra prediction unit of the decoder performs intra prediction for the current block based on the extracted intra prediction mode information.

本発明の実施例によると、イントラ予測モードセットは、イントラ予測に使用される全てのイントラ予測モード(例えば、総67個のイントラ予測モード)を含む。より詳しくは、イントラ予測モードセットは、平面モード、DCモード、及び複数の(例えば、65個の)角度モード(つまり、方向モード)を含む。一部の実施形態で、イントラ予測モードセットは全てのイントラ予測モードのうちの一部で構成されることもできる。それぞれのイントラ予測モードは、予め設定されたインデックス(つまり、イントラ予測モードインデックス)を介して指示される。例えば、図6に示したように、イントラ予測モードインデックス0は平面(planar)モードを指示し、イントラ予測モードインデックス1はDCモードを指示する。また、イントラ予測モードインデックス2乃至66は、互いに異なる角度モードをそれぞれ指示する。この際、イントラ予測モードインデックス2は水平対角(Horizontal Diagonal、HDIA)モードを指示し、イントラ予測モードインデックス18は水平(Horizontal、HOR)モードを指示し、イントラ予測モードインデックス34は対角(Diagonal、DIA)モードを指示し、イントラ予測モードインデックス50は水直(Vertical、VER)モードを指示し、イントラ予測モードインデックス66は垂直対角(Vertical Diagonal、VDIA)モードを指示する。 According to an embodiment of the present invention, an intra-prediction mode set includes all intra-prediction modes used for intra-prediction (eg, a total of 67 intra-prediction modes). More specifically, the intra-prediction mode set includes planar mode, DC mode, and multiple (eg, 65) angular modes (ie, directional modes). In some embodiments, an intra-prediction mode set may consist of a subset of all intra-prediction modes. Each intra-prediction mode is indicated via a preset index (ie, intra-prediction mode index). For example, as shown in FIG. 6, an intra prediction mode index of 0 indicates a planar mode, and an intra prediction mode index of 1 indicates a DC mode. In addition, intra prediction mode indexes 2 to 66 respectively indicate different angular modes. At this time, the intra prediction mode index 2 indicates a horizontal diagonal (HDIA) mode, the intra prediction mode index 18 indicates a horizontal (HOR) mode, and the intra prediction mode index 34 indicates a diagonal (Diagonal) mode. , DIA) mode, an intra prediction mode index 50 indicates a vertical (VER) mode, and an intra prediction mode index 66 indicates a vertical diagonal (VDIA) mode.

以下、図7を参照して本発明の一実施形態に従うインター予測方法について説明する。本開示で、インター予測方法は並進運動(translation motion)に最適化された一般インター予測方法及び図31乃至図52を通じて後述するアフィン(affine)モデル基盤のインター予測方法を含むことができる。また、動きベクトルは一般インター予測方法に従う動き補償のための一般動きベクトル及びアフィン動き補償のためのコントロールポイント動きベクトル(control point motion vector)のうち、少なくとも1つを含むことができる。 Hereinafter, an inter prediction method according to an embodiment of the present invention will be described with reference to FIG. In the present disclosure, the inter-prediction method may include a general inter-prediction method optimized for translational motion and an affine model-based inter-prediction method, which will be described later with reference to FIGS. Also, the motion vector may include at least one of a general motion vector for motion compensation according to a general inter-prediction method and a control point motion vector for affine motion compensation.

図7は、本発明の一実施形態に従うインター予測方法を図示する。前述したように、デコーダは復号化された他のピクチャの復元されたサンプルを参照して現在ブロックを予測することができる。図7を参照すると、デコーダは現在ブロック701の動き情報セットに基づいて参照ピクチャ720内の参照ブロック702を獲得する。この際、動き情報セットは参照ピクチャインデックス及び動きベクトル703を含むことができる。参照ピクチャインデックスは、参照ピクチャリストで現在ブロックのインター予測のための参照ブロックが含まれた参照ピクチャ720を指示する。一実施形態に従って、参照ピクチャリストは前述したL0ピクチャリストまたはL1ピクチャリストのうち、少なくとも1つを含むことができる。動きベクトル703は現在ピクチャ710内で現在ブロック701の座標値と参照ピクチャ720内で参照ブロック702の座標値との間のオフセットを示す。デコーダは、参照ブロック702のサンプル値に基づいて現在ブロック701の予測子を獲得し、前記予測子を用いて現在ブロック701を復元する。 FIG. 7 illustrates an inter-prediction method according to one embodiment of the present invention. As described above, the decoder can refer to the reconstructed samples of other decoded pictures to predict the current block. Referring to FIG. 7, the decoder obtains reference block 702 in reference picture 720 based on the motion information set of current block 701 . At this time, the motion information set can include reference picture indices and motion vectors 703 . The reference picture index indicates a reference picture 720 including a reference block for inter prediction of the current block in the reference picture list. According to one embodiment, the reference picture list may include at least one of the aforementioned L0 picture list or L1 picture list. Motion vector 703 indicates the offset between the coordinates of current block 701 in current picture 710 and the coordinates of reference block 702 in reference picture 720 . The decoder obtains a predictor of the current block 701 based on the sample values of the reference block 702 and reconstructs the current block 701 using the predictor.

具体的に、インコーダーは復元順序が早いピクチャで現在ブロックと類似のブロックを探索して前述した参照ブロックを獲得することができる。例えば、エンコーダは既設定された探索領域内で現在ブロックとサンプル値との差の和が最小となる参照ブロックを探索することができる。この際、現在ブロックと参照ブロックのサンプルとの間の類似度を測定するために、SAD(Sum Of Absolute Difference)またはSATD(Sum of Hadamard Transformed Difference)のうち、少なくとも1つが使われることができる。ここで、SADは2つのブロックに含まれたサンプル値の差の各々の絶対値を全て足した値でありうる。また、SATDは2つのブロックに含まれたサンプル値の差をアダマール変換(Hadamard Transform)して獲得されたアダマール変換係数の絶対値を全て足した値でありうる。 Specifically, the encoder can acquire the above-described reference block by searching for a block similar to the current block in a picture whose reconstruction order is earlier. For example, the encoder can search for a reference block that minimizes the sum of differences between the current block and sample values within a preset search area. At this time, at least one of SAD (Sum Of Absolute Difference) or SATD (Sum Of Hadamard Transformed Difference) may be used to measure the similarity between samples of the current block and the reference block. Here, the SAD may be a sum of absolute values of differences between sample values included in two blocks. Also, the SATD may be a sum of absolute values of Hadamard transform coefficients obtained by Hadamard transforming the difference between sample values included in two blocks.

一方、現在ブロックは1つ以上の参照領域を用いて予測されることもできる。前述したように、現在ブロックは2つ以上の参照領域を用いる双予測方式によりインター予測できる。一実施形態に従って、デコーダは現在ブロックの2つの動き情報セットに基づいて2つの参照ブロックを獲得することができる。また、デコーダは獲得された2つの参照ブロックの各々のサンプル値に基づいて現在ブロックの第1予測子及び第2予測子を獲得することができる。また、デコーダは第1予測子及び第2予測子を用いて現在ブロックを復元することができる。例えば、デコーダは第1予測子及び第2予測子のサンプル別平均に基づいて現在ブロックを復元することができる。 Meanwhile, the current block can also be predicted using one or more reference regions. As described above, the current block can be inter-predicted by a bi-prediction scheme using two or more reference regions. According to one embodiment, the decoder can obtain two reference blocks based on two motion information sets of the current block. Also, the decoder can obtain a first predictor and a second predictor of the current block based on the obtained sample values of each of the two reference blocks. Also, the decoder can reconstruct the current block using the first predictor and the second predictor. For example, the decoder can reconstruct the current block based on sample-by-sample averages of the first predictor and the second predictor.

前述したように、現在ブロックの動き補償のために、1つ以上の動き情報セットがシグナリングできる。この際、複数のブロックの各々の動き補償のための動き情報セットの間の類似性が利用できる。例えば、現在ブロックの予測に使われる動き情報セットは既復元された他のサンプルのうち、いずれか1つの予測に使われた動き情報セットから誘導できる。これを通じて、エンコーダ及びデコーダはシグナリングオーバーヘッドを減少させることができる。以下では、現在ブロックの動き情報セットがシグナリングされる多様な実施形態に対して説明する。 As described above, one or more motion information sets can be signaled for motion compensation of the current block. At this time, the similarity between motion information sets for motion compensation of each of a plurality of blocks can be used. For example, the motion information set used for prediction of the current block can be derived from the motion information set used for prediction of one of the previously reconstructed samples. Through this, the encoder and decoder can reduce signaling overhead. Hereinafter, various embodiments in which the motion information set of the current block is signaled will be described.

図8は、本発明の一実施形態に従って、現在ブロックの動きベクトルがシグナリングされる方法を示す図である。本発明の一実施形態に従って、現在ブロックの動きベクトルは現在ブロックの動きベクトル予測子(motion vector predictor、MVP)から誘導できる。一実施形態に従って、現在ブロックの動きベクトルを誘導するために参照される動きベクトル予測子は、動きベクトル予測子(motion vector predictor、MVP)候補リストを用いて獲得できる。MVP候補リストは既設定された個数のMVP候補(Candidate 1,Candidate 2,...,Candidate N)を含むことができる。 FIG. 8 is a diagram illustrating how the motion vector of the current block is signaled according to one embodiment of the invention. According to one embodiment of the present invention, the motion vector of the current block can be derived from a motion vector predictor (MVP) of the current block. According to one embodiment, a motion vector predictor that is referenced to derive the motion vector of the current block can be obtained using a motion vector predictor (MVP) candidate list. The MVP candidate list can include a preset number of MVP candidates (Candidate 1, Candidate 2, ..., Candidate N).

一実施形態に従って、MVP候補リストは空間的候補または時間的候補のうち、少なくとも1つを含むことができる。空間的候補は、現在ピクチャ内で現在ブロックから一定の範囲の以内の周辺ブロックの予測に使われた動き情報セットでありうる。空間的候補は、現在ブロックの周辺ブロックのうち、利用可能な周辺ブロックに基づいて構成できる。また、時間的候補は現在ピクチャと他のピクチャ内のブロックの予測に使われた動き情報セットでありうる。例えば、時間的候補は特定参照ピクチャ内で現在ブロックの位置に対応する特定ブロックに基づいて構成できる。この際、特定ブロックの位置は前記参照ピクチャ内で特定ブロックの左上段(top-left)サンプルの位置を示す。追加的な実施形態に従って、MVP候補リストはゼロ動きベクトルを含むことができる。追加的な実施形態に従って、現在ブロックのMVP候補リストが含むMVP候補に対するラウンディング(rounding)プロセスが遂行できる。この際、後述する現在ブロックの動きベクトル差分値の解像度が利用できる。例えば、現在ブロックのMVP候補は各々現在ブロックの動きベクトル差分値の解像度に基づいてラウンディングできる。 According to one embodiment, the MVP candidate list may include at least one of spatial candidates or temporal candidates. A spatial candidate may be a motion information set used for prediction of neighboring blocks within a certain range from the current block in the current picture. Spatial candidates can be constructed based on available neighboring blocks of the current block. Also, the temporal candidates may be motion information sets used for prediction of blocks in the current picture and other pictures. For example, temporal candidates can be constructed based on a particular block corresponding to the location of the current block within a particular reference picture. At this time, the position of the specific block indicates the position of the top-left sample of the specific block within the reference picture. According to additional embodiments, the MVP candidate list may contain zero motion vectors. According to additional embodiments, a rounding process for MVP candidates included in the current block's MVP candidate list may be performed. At this time, the resolution of the motion vector difference value of the current block, which will be described later, can be used. For example, each MVP candidate of the current block can be rounded based on the resolution of the motion vector difference value of the current block.

本開示で、MVP候補リストは改善された時間的動きベクトル候補(advanced temporal motion vector prediction、ATMVP)リスト、マージインター予測のためのマージ候補リスト、アフィン動き補償のためのコントロールポイント動きベクトル候補リスト、サブブロック基盤の動き補償のための時間的動きベクトル候補(subblock-based temporal motion vector prediction、STMVP)リスト、及びこれらの組合せを含むことができる。 In this disclosure, the MVP candidate list is an advanced temporal motion vector prediction (ATMVP) list, a merge candidate list for merged inter prediction, a control point motion vector candidate list for affine motion compensation, It can include a subblock-based temporal motion vector prediction (STMVP) list for subblock-based motion compensation, and combinations thereof.

一実施形態に従って、エンコーダ810及びデコーダ820は、現在ブロックの動き補償のためのMVP候補リストを構成することができる。例えば、現在ブロックより先に復元されたサンプルのうち、現在ブロックの動き情報セットと同一または類似の動き情報セットに基づいて予測されている可能性のあるサンプルに対応する候補が存在することができる。エンコーダ810及びデコーダ820は、該当複数の候補ブロックに基づいて現在ブロックのMVP候補リストを構成することができる。この際、エンコーダ810及びデコーダ820はエンコーダ810とデコーダ820との間に予め定義された規則によってMVP候補リストを構成することができる。即ち、エンコーダ810とデコーダ820の各々で構成されたMVP候補リストは互いに同一でありうる。 According to one embodiment, encoder 810 and decoder 820 can construct an MVP candidate list for motion compensation of the current block. For example, among samples reconstructed prior to the current block, there may be candidates corresponding to samples that may have been predicted based on the same or similar motion information set as the motion information set of the current block. . The encoder 810 and decoder 820 may construct an MVP candidate list of the current block based on the corresponding candidate blocks. At this time, the encoder 810 and the decoder 820 can construct the MVP candidate list according to predefined rules between the encoder 810 and the decoder 820 . That is, the MVP candidate lists configured in each of the encoder 810 and decoder 820 may be the same.

また、予め定義された規則は現在ブロックの予測モードによって変わることができる。例えば、現在ブロックの予測モードがアフィンモデル基盤のアフィン予測モードである場合、エンコーダ及びデコーダはアフィンモデルに基づいた第1方法を用いて現在ブロックのMVP候補リストを構成することができる。第1方法は、コントロールポイント動きベクトル候補リストを獲得する方法でありうる。これに対しては図31乃至図52を通じて具体的に説明する。一方、現在ブロックの予測モードがアフィンモデルに基づかない一般インター予測モードである場合、エンコーダ及びデコーダはアフィンモデルに基づかない第2方法を用いて現在ブロックのMVP候補リストを構成することができる。この際、第1方法と第2方法は互いに異なる方法でありうる。 Also, the predefined rule may vary according to the prediction mode of the current block. For example, if the prediction mode of the current block is the affine model-based affine prediction mode, the encoder and decoder can construct the MVP candidate list of the current block using the first method based on the affine model. A first method may be a method of obtaining a control point motion vector candidate list. This will be described in detail with reference to FIGS. 31 to 52. FIG. On the other hand, if the prediction mode of the current block is the general inter prediction mode that is not based on the affine model, the encoder and decoder can construct the MVP candidate list of the current block using the second method that is not based on the affine model. At this time, the first method and the second method may be different methods.

デコーダ820は、現在ブロックのMVP候補リストが含む少なくとも1つのMVP候補のうち、いずれか1つに基づいて現在ブロックの動きベクトルを誘導することができる。例えば、エンコーダ810は現在ブロックの動きベクトルを誘導するために参照される動きベクトル予測子を指示するMVPインデックス(index)をシグナリングすることができる。デコーダ820は、シグナリングされたMVPインデックスに基づいて現在ブロックの動きベクトル予測子を獲得することができる。デコーダ820は、動きベクトル予測子を用いて現在ブロックの動きベクトルを誘導することができる。一実施形態に従って、デコーダ820はMVP候補リストから獲得された動きベクトル予測子を別途の動きベクトル差分値無しで、現在ブロックの動きベクトルに使用することができる。デコーダ820は、現在ブロックの動きベクトルに基づいて現在ブロックを復元することができる。MVP候補リストから獲得された動きベクトル予測子が別途の動きベクトル差分値無しで現在ブロックの動きベクトルに使われるインター予測モードは、マージモードと称されることができる。 The decoder 820 may derive a motion vector of the current block based on any one of at least one MVP candidate included in the MVP candidate list of the current block. For example, the encoder 810 can signal an MVP index that indicates a motion vector predictor that is referenced to derive the motion vector of the current block. Decoder 820 can obtain a motion vector predictor for the current block based on the signaled MVP index. The decoder 820 can derive the motion vector of the current block using the motion vector predictor. According to one embodiment, the decoder 820 can use the motion vector predictor obtained from the MVP candidate list for the motion vector of the current block without a separate motion vector difference value. A decoder 820 can reconstruct the current block based on the motion vector of the current block. An inter-prediction mode in which a motion vector predictor obtained from the MVP candidate list is used for the motion vector of the current block without a separate motion vector difference value may be referred to as a merge mode.

他の一実施形態に従って、デコーダ820は現在ブロックの動きベクトルのための別途の動きベクトル差分値(motion vector difference)を獲得することができる。デコーダ820は、MVP候補リストから獲得された動きベクトル予測子と現在ブロックの動きベクトル差分値を合算して現在ブロックの動きベクトルを獲得することができる。この場合、エンコーダ810は現在ブロックの動きベクトルと動きベクトル予測子との間の差を示す動きベクトル差分値(MV difference)をシグナリングすることができる。動きベクトル差分値がシグナリングされる方法については図9を通じて具体的に説明する。デコーダ820は動きベクトル差分値(MV difference)に基づいて現在ブロックの動きベクトルを獲得することができる。デコーダ820は、現在ブロックの動きベクトルに基づいて現在ブロックを復元することができる。 According to another embodiment, the decoder 820 can obtain a separate motion vector difference for the motion vector of the current block. The decoder 820 may obtain a motion vector of the current block by summing the motion vector predictor obtained from the MVP candidate list and the motion vector difference value of the current block. In this case, the encoder 810 can signal a motion vector difference value (MV difference) that indicates the difference between the motion vector of the current block and the motion vector predictor. A method of signaling the motion vector difference value will be described in detail with reference to FIG. The decoder 820 can obtain the motion vector of the current block based on the motion vector difference (MV difference). A decoder 820 can reconstruct the current block based on the motion vector of the current block.

追加的に、現在ブロックの動き補償のための参照ピクチャインデックスがシグナリングできる。現在ブロックの予測モードがエンコーダ810は参照ブロックを含む参照ピクチャを指示する参照ピクチャインデックスをシグナリングすることができる。デコーダ820は、シグナリングされた参照ピクチャインデックスに基づいて現在ブロックの復元に参照される参照ピクチャのPOCを獲得することができる。この際、参照ピクチャのPOCが現在ブロックの動きベクトルを誘導するために参照されるMVPに対応する参照ピクチャのPOCと互いに異なることがある。この場合、デコーダ820は動きベクトルスケーリングを遂行することができる。即ち、デコーダ820はMVPをスケーリングしてMVP′を獲得することができる。この際、動きベクトルスケーリングは、現在ピクチャのPOC、現在ブロックのシグナリングされた参照ピクチャのPOC、及びMVPに対応する参照ピクチャのPOCに基づいて遂行できる。また、デコーダ820はMVP′を現在ブロックの動きベクトル予測子に使用することができる。 Additionally, a reference picture index for motion compensation of the current block can be signaled. If the prediction mode of the current block is the encoder 810 can signal a reference picture index that indicates the reference picture that contains the reference block. The decoder 820 can obtain a POC of a reference picture referenced to reconstruct the current block based on the signaled reference picture index. At this time, the POC of the reference picture may differ from the POC of the reference picture corresponding to the MVP referred to for deriving the motion vector of the current block. In this case, the decoder 820 can perform motion vector scaling. That is, decoder 820 can scale MVP to obtain MVP'. At this time, the motion vector scaling may be performed based on the POC of the current picture, the POC of the signaled reference picture of the current block, and the POC of the reference picture corresponding to the MVP. Decoder 820 can also use MVP' as a motion vector predictor for the current block.

前述したように、現在ブロックの動きベクトルは現在ブロックの動きベクトル予測子と動きベクトル差分値を合算して獲得できる。この際、動きベクトル差分値はエンコーダからシグナリングできる。エンコーダは動きベクトル差分値をエンコーディングして動きベクトル差分値を示す情報を生成し、シグナリングすることができる。以下では、本発明の一実施形態に従って動きベクトル差分値がシグナリングされる方法について説明する。 As described above, the motion vector of the current block can be obtained by summing the motion vector predictor of the current block and the motion vector difference value. At this time, the motion vector difference value can be signaled from the encoder. An encoder can encode the motion vector differential values to generate and signal information indicative of the motion vector differential values. The following describes how motion vector difference values are signaled according to one embodiment of the present invention.

図9は、本発明の一実施形態に従って現在ブロックの動きベクトル差分値がシグナリングされる方法を示す図である。一実施形態に従って、動きベクトル差分値を示す情報は動きベクトル差分値の絶対値情報または動きベクトル差分値の符号情報のうち、少なくとも1つを含むことができる。動きベクトル差分値の絶対値と符号は別途にエンコーディングできる。 FIG. 9 is a diagram illustrating how the motion vector difference value of the current block is signaled according to one embodiment of the present invention. According to one embodiment, the information indicating the motion vector difference value may include at least one of absolute value information of the motion vector difference value and sign information of the motion vector difference value. The absolute value and sign of the motion vector difference value can be encoded separately.

一実施形態に従って、動きベクトル差分値の絶対値は値自体でシグナリングされないこともある。エンコーダは、動きベクトル差分値の絶対値の特性を示す少なくとも1つのフラグを用いてシグナリングされる値のサイズを縮めることができる。デコーダは、シグナリングされた値から少なくとも1つのフラグを用いて動きベクトル差分値の絶対値を誘導することができる。 According to one embodiment, the absolute value of the motion vector difference value may not be signaled in the value itself. The encoder can reduce the size of the value signaled using at least one flag that indicates the properties of the absolute value of the motion vector difference value. The decoder can derive the absolute value of the motion vector difference value using at least one flag from the signaled value.

例えば、少なくとも1つのフラグは動きベクトル差分値の絶対値がNより大きいかを示す第1フラグを含むことができる。この際、Nは整数でありうる。動きベクトル差分値の絶対値のサイズがNより大きい場合、活性化された第1フラグと共に(動きベクトル差分値の絶対値-N)値がシグナリングできる。この際、活性化されたフラグは動きベクトル差分値の絶対値のサイズがNより大きい場合を示すことができる。デコーダは、活性化された第1フラグ及びシグナリングされた値に基づいて動きベクトル差分値の絶対値を獲得することができる。 For example, the at least one flag can include a first flag indicating whether the absolute value of the motion vector difference value is greater than N. At this time, N may be an integer. If the size of the absolute value of the motion vector difference value is greater than N, the (absolute value of the motion vector difference value−N) value can be signaled with the first flag activated. At this time, the activated flag may indicate that the size of the absolute value of the motion vector difference value is greater than N. The decoder can obtain the absolute value of the motion vector difference value based on the activated first flag and the signaled value.

図9を参照すると、動きベクトル差分値の絶対値が‘0’より大きいかを示す第2フラグ(abs_mvd_greater0_flag)がシグナリングできる。第2フラグ(abs_mvd_greater0_flag[])が動きベクトル差分値の絶対値が‘0’より大きくないことを示す場合、動きベクトル差分値の絶対値は‘0’でありうる。また、第2フラグ(abs_mvd_greater0_flag)が動きベクトル差分値の絶対値が‘0’より大きいことを示す場合、デコーダは動きベクトル差分値に対する他の情報を用いて動きベクトル差分値の絶対値を獲得することができる。 Referring to FIG. 9, a second flag (abs_mvd_greater0_flag) indicating whether the absolute value of the motion vector difference value is greater than '0' can be signaled. When the second flag (abs_mvd_greater0_flag[]) indicates that the absolute value of the motion vector difference value is not greater than '0', the absolute value of the motion vector difference value may be '0'. Also, if the second flag (abs_mvd_greater0_flag) indicates that the absolute value of the motion vector difference value is greater than '0', the decoder obtains the absolute value of the motion vector difference value using other information about the motion vector difference value. be able to.

一実施形態に従って、動きベクトル差分値の絶対値が‘1’より大きいかを示す第3フラグ(abs_mvd_greater1_flag)がシグナリングできる。第3フラグ(abs_mvd_greater1_flag)が動きベクトル差分値の絶対値が‘1’より大きくないことを示す場合、デコーダは動きベクトル差分値の絶対値が‘1’であると判断することができる。 According to one embodiment, a third flag (abs_mvd_greater1_flag) indicating whether the absolute value of the motion vector difference value is greater than '1' can be signaled. If the third flag (abs_mvd_greater1_flag) indicates that the absolute value of the motion vector difference value is not greater than '1', the decoder can determine that the absolute value of the motion vector difference value is '1'.

反対に、第3フラグ(abs_mvd_greater1_flag)が動きベクトル差分値の絶対値が‘1’より大きいことを示す場合、デコーダは動きベクトル差分値に対する更に他の情報を用いて動きベクトル差分値の絶対値を獲得することができる。例えば、(動きベクトル差分値の絶対値-2)値(abs_mvd_minus2)がシグナリングできる。動きベクトル差分値の絶対値が‘1’より大きい場合、動きベクトル差分値の絶対値は2以上の値でありうるためである。 Conversely, if the third flag (abs_mvd_greater1_flag) indicates that the absolute value of the motion vector difference value is greater than '1', the decoder uses further information about the motion vector difference value to determine the absolute value of the motion vector difference value. can be obtained. For example, (abs_mvd_minus2) (abs_mvd_minus2) (absolute value of motion vector difference value minus 2) can be signaled. This is because when the absolute value of the motion vector difference value is greater than '1', the absolute value of the motion vector difference value can be 2 or more.

前述したように、現在ブロックの動きベクトル差分値の絶対値は少なくとも1つのフラグに変形できる。例えば、動きベクトル差分値の変形された絶対値は動きベクトル差分値のサイズによって(動きベクトル差分値の絶対値-N)を示すことができる。一実施形態に従って、動きベクトル差分値の変形された絶対値は少なくとも1つのビットを通じてシグナリングできる。この際、動きベクトル差分値の変形された絶対値を指示するためにシグナリングされるビットの個数は可変的でありうる。エンコーダは、動きベクトル差分値の変形された絶対値を可変長さ2進化方法を使用してエンコーディングすることができる。例えば、エンコーダは可変長さ2進化方法は、切削単項(truncated unary)2進化、単項(unary)2進化、切削ライス(truncated rice)、または指数ゴロム(exp-Golomb)2進化のうち、少なくとも1つを使用することができる。 As described above, the absolute value of the motion vector difference value of the current block can be transformed into at least one flag. For example, the transformed absolute value of the motion vector differential value can be indicated by the size of the motion vector differential value (absolute value of motion vector differential value−N). According to one embodiment, the transformed absolute value of the motion vector difference value can be signaled through at least one bit. At this time, the number of bits signaled to indicate the transformed absolute value of the motion vector difference value may be variable. The encoder can encode the transformed absolute value of the motion vector difference value using a variable length binarization method. For example, the encoder uses at least one of truncated unary binarization, unary binarization, truncated rice, or exp-Golomb binarization. one can be used.

また、動きベクトル差分値の符号は符号フラグ(mvd_sign_flag)を通じてシグナリングできる。一方、動きベクトル差分値の符号は符号ビットハイディング(sign-bit-hiding)により暗黙的にシグナリングされることもできる。これに対しては図23乃至図28を通じて説明する。 Also, the sign of the motion vector difference value can be signaled through a sign flag (mvd_sign_flag). On the other hand, the sign of the motion vector difference value can also be implicitly signaled by sign-bit-hiding. This will be described with reference to FIGS. 23 through 28. FIG.

一方、前述した現在ブロックの動きベクトル差分値は特定解像度単位でシグナリングできる。本開示で、動きベクトル差分値の解像度は動きベクトル差分値がシグナリングされる単位を示すことができる。即ち、本開示で、ピクチャの解像度を除外した解像度は動きベクトル差分値がシグナリングされる精度(precision)乃至粒度(granularity)を示すことができる。動きベクトル差分値の解像度は、サンプルまたはピクセルの単位で表現できる。例えば、動きベクトル差分値の解像度は1/4(quarter)、1/2(half)、1(integer)、2、4サンプル単位のように、サンプルの単位を使用して表現できる。また、現在ブロックの動きベクトル差分値の解像度が小さいほど、現在ブロックの動きベクトル差分値の精度は増加することができる。 Meanwhile, the above motion vector difference value of the current block can be signaled in a specific resolution unit. In the present disclosure, the resolution of the motion vector difference value may indicate the units in which the motion vector difference value is signaled. That is, in this disclosure, the resolution, excluding the picture resolution, can indicate the precision or granularity with which the motion vector difference values are signaled. The resolution of motion vector difference values can be expressed in units of samples or pixels. For example, the resolution of the motion vector difference value can be expressed using a sample unit such as 1/4 (quarter), 1/2 (half), 1 (integer), 2, or 4 sample units. In addition, as the resolution of the motion vector difference value of the current block is smaller, the accuracy of the motion vector difference value of the current block can be increased.

本発明の一実施形態によれば、動きベクトル差分値は多様な解像度に基づいてシグナリングできる。一実施形態に従って、動きベクトル差分値の絶対値または変形された絶対値は整数サンプル単位の値でシグナリングできる。または、動きベクトル差分値の絶対値は1/2-サブペル単位の値でシグナリングされることもできる。即ち、動きベクトル差分値の解像度は状況によって異なるように設定できる。本発明の一実施形態に従うエンコーダ及びデコーダは、動きベクトル差分値のための多様な解像度を適切に活用して現在ブロックの動きベクトル差分値を効率よくシグナリングすることができる。 According to one embodiment of the present invention, motion vector difference values can be signaled based on various resolutions. According to one embodiment, the absolute value or the transformed absolute value of the motion vector difference value can be signaled in integer sample units. Alternatively, the absolute value of the motion vector difference value can be signaled in 1/2-subpel units. That is, the resolution of the motion vector difference value can be set differently depending on the situation. An encoder and decoder according to an embodiment of the present invention can efficiently signal the motion vector difference value of the current block by appropriately utilizing various resolutions for the motion vector difference value.

一実施形態に従って、動きベクトル差分値の解像度は、ブロック、コーディングユニット、スライス、またはタイルのうち、少なくとも1つの単位毎に異なる値に設定できる。例えば、第1ブロックの動きベクトル差分値の第1解像度は1/4サンプル単位でありうる。この場合、動きベクトル差分値の絶対値‘16’を第1解像度で割った値である‘64’がシグナリングできる。また、第2ブロックの動きベクトル差分値の第2解像度は整数サンプル単位でありうる。この場合、第2動きベクトル差分値の絶対値‘16’を第2解像度で割った値である‘16’がシグナリングできる。このように、動きベクトル差分値の絶対値が同一の場合にも、解像度によって異なる値がシグナリングできる。この際、動きベクトル差分値の絶対値を解像度で割った値が少数点以下を含む場合、該当値にラウンディング関数が適用できる。 According to one embodiment, the resolution of motion vector difference values can be set to different values for at least one of blocks, coding units, slices, or tiles. For example, the first resolution of the motion vector difference value of the first block may be 1/4 sample unit. In this case, '64', which is a value obtained by dividing the absolute value '16' of the motion vector difference value by the first resolution, can be signaled. Also, the second resolution of the motion vector difference value of the second block may be an integer sample unit. In this case, '16', which is a value obtained by dividing the absolute value '16' of the second motion vector difference value by the second resolution, can be signaled. In this way, even when the absolute values of the motion vector difference values are the same, different values can be signaled depending on the resolution. At this time, when the value obtained by dividing the absolute value of the motion vector difference value by the resolution includes a decimal point or less, a rounding function can be applied to the corresponding value.

エンコーダは、動きベクトル差分値の解像度に基づいて動きベクトル差分値を示す情報をシグナリングすることができる。デコーダは、シグナリングされた動きベクトル差分値から修正された動きベクトル差分値を獲得することができる。デコーダは、解像度差分値の解像度に基づいて動きベクトル差分値を修正することができる。現在ブロックのシグナリングされた動きベクトル差分値(valuePerResoultion)と修正された動きベクトル差分値(valueDetermined)との間の関係は以下の[数式1]の通りである。以下、本開示で、特別な言及のない限り、動きベクトル差分値は修正された動きベクトル差分値(valueDetermined)を示す。また、シグナリングされた動きベクトル差分値は解像度により修正される以前の値を示す。 The encoder can signal information indicative of the motion vector difference values based on the resolution of the motion vector difference values. The decoder can obtain modified motion vector difference values from the signaled motion vector difference values. A decoder can modify the motion vector difference values based on the resolution of the resolution difference values. The relationship between the signaled motion vector difference value (valuePerResoultion) of the current block and the modified motion vector difference value (valueDetermined) is as follows [Equation 1]. Hereinafter, in the present disclosure, motion vector difference values refer to modified motion vector difference values (valueDetermined) unless otherwise specified. Also, the signaled motion vector difference value indicates the value before being modified by the resolution.


Figure 0007159354000001
Figure 0007159354000001

[数式1]で、resoultionは現在ブロックの動きベクトル差分値の解像度を示す。即ち、デコーダは現在ブロックのシグナリングされた動きベクトル差分値と解像度を掛けて修正された動きベクトル差分値を獲得することができる。次に、デコーダは修正された動きベクトル差分値に基づいて現在ブロックの動きベクトルを獲得することができる。また、デコーダは現在ブロックの動きベクトルに基づいて現在ブロックを復元することができる。 In [Equation 1], resolution indicates the resolution of the motion vector difference value of the current block. That is, the decoder can obtain the modified motion vector difference value by multiplying the signaled motion vector difference value of the current block by the resolution. Next, the decoder can obtain the motion vector of the current block based on the modified motion vector difference value. Also, the decoder can reconstruct the current block based on the motion vector of the current block.

現在ブロックの動きベクトル差分値の解像度に相対的に小さい値が使われる場合(即ち、精度の高い場合)、現在ブロックの動きベクトル差分値をより細密に示すことが有利でありうる。しかしながら、この場合、シグナリングされる値自体が大きくなって現在ブロックの動きベクトル差分値のためのシグナリングオーバーヘッドが増加することができる。反対に、現在ブロックの動きベクトル差分値の解像度に相対的に大きい値が使われる場合(即ち、精度の低い場合)、シグナリングされる値のサイズを縮めて動きベクトル差分値のためのシグナリングオーバーヘッドを減少させることができる。即ち、動きベクトル差分値の解像度が大きい場合、現在ブロックの動きベクトル差分値は現在ブロックの動きベクトル差分値の解像度が小さい場合に比べて少ない個数のビットを通じてシグナリングできる。しかしながら、この場合、現在ブロックの動きベクトル差分値を細密に表し難いことがある。 If a relatively small value is used for the resolution of the motion vector difference values of the current block (ie, if the accuracy is high), it may be advantageous to indicate the motion vector difference values of the current block more precisely. However, in this case, the value itself to be signaled is large, and the signaling overhead for the motion vector difference value of the current block may increase. On the contrary, when a relatively large value is used for the resolution of the motion vector difference value of the current block (i.e., when the accuracy is low), the size of the signaled value is reduced to reduce the signaling overhead for the motion vector difference value. can be reduced. That is, when the resolution of the motion vector difference value is high, the motion vector difference value of the current block can be signaled through fewer bits than when the resolution of the motion vector difference value of the current block is low. However, in this case, it may be difficult to precisely express the motion vector difference value of the current block.

これによって、エンコーダ及びデコーダは複数の解像度のうち、状況によって動きベクトル差分値をシグナリングするために有利な解像度を選択することができる。例えば、エンコーダは状況に基づいて選択された解像度をシグナリングすることができる。また、デコーダはシグナリングされた解像度に基づいて現在ブロックの動きベクトル差分値を獲得することができる。以下では、本発明の一実施形態に従って現在ブロックの動きベクトル差分値の解像度がシグナリングされる方法について叙述する。本発明の一実施形態に従って、現在ブロックの動きベクトル差分値の解像度は解像度セットが含む複数の可用解像度のうち、いずれか1つでありうる。ここで、複数の可用解像度は特定状況で使用可能な解像度を示すことができる。また、解像度セットが含む可用解像度の種類及び個数は状況によって変わることができる。 This allows the encoder and decoder to select an advantageous resolution for signaling the motion vector difference value among multiple resolutions depending on the situation. For example, the encoder can signal the selected resolution based on context. Also, the decoder can obtain the motion vector difference value of the current block based on the signaled resolution. Hereinafter, a method of signaling the resolution of the motion vector difference value of the current block according to an embodiment of the present invention will be described. According to an embodiment of the present invention, the resolution of the motion vector difference value of the current block may be any one of a plurality of available resolutions included in the resolution set. Here, a plurality of available resolutions can indicate resolutions that can be used in a particular situation. Also, the types and number of available resolutions included in the resolution set may vary according to circumstances.

図10は、本発明の一実施形態に従って現在ブロックの動きベクトル差分値の解像度がシグナリングされる方法を示す図である。一実施形態に従って、複数の可用解像度のうち、現在ブロックの動きベクトル差分値の解像度を指示する解像度指示子がシグナリングできる。エンコーダは、動きベクトル差分値を示す情報と共に解像度指示子をシグナリングすることができる。デコーダは、現在ブロックの解像度セットが含む複数の可用解像度のうち、いずれか1つを指示する解像度指示子に基づいて現在ブロックの動きベクトル差分値の解像度を獲得することができる。デコーダは、獲得された動きベクトル差分値の解像度に基づいて現在ブロックの動きベクトル差分値を獲得することができる。 FIG. 10 is a diagram illustrating how the resolution of the motion vector difference value of the current block is signaled according to an embodiment of the present invention. According to an embodiment, a resolution indicator can be signaled that indicates the resolution of the motion vector difference value of the current block among a plurality of available resolutions. The encoder can signal the resolution indicator along with information indicating motion vector difference values. A decoder can obtain the resolution of the motion vector difference value of the current block based on a resolution indicator that indicates one of a plurality of available resolutions included in the resolution set of the current block. A decoder can obtain the motion vector difference value of the current block based on the resolution of the obtained motion vector difference value.

一実施形態に従って、解像度指示子は可変長さのビットで表現できる。例えば、解像度指示子は現在ブロックの解像度セットで複数の可用解像度の各々を指示する解像度インデックスのうち、いずれか1つを示すことができる。この際、解像度インデックスは既設定された最大長さを有する可変長さのビットで表現できる。例えば、解像度指示子は各々1つのビットで表現される2つ以上のフラグを含むことができる。既設定された最大長さは、複数の可用解像度の個数によって決定された長さでありうる。例えば、可用解像度セットが3個の可用解像度を含む場合、既設定された最大長さは‘2’でありうる。本開示で、解像度インデックスは解像度指示子の値と称されることもできる。図10を参照すると、解像度指示子の値は0、10、または11のうち、いずれか1つでありうる。 According to one embodiment, the resolution indicator can be represented by bits of variable length. For example, the resolution indicator may indicate one of resolution indices that indicate each of a plurality of available resolutions in the resolution set of the current block. At this time, the resolution index can be represented by variable length bits having a preset maximum length. For example, the resolution indicator can include two or more flags each represented by one bit. The preset maximum length may be a length determined by the number of available resolutions. For example, if the available resolution set includes 3 available resolutions, the preset maximum length may be '2'. In this disclosure, the resolution index may also be referred to as the value of the resolution indicator. Referring to FIG. 10, the value of the resolution indicator can be any one of 0, 10, or 11.

図10の実施形態で、現在ブロックの動き補償のための解像度セットは1/4、1、4サンプル単位の可用解像度を含むことができる。この際、現在ブロックの動きベクトル差分値の解像度は図10に図示された可用解像度(1/4、1、4)のうち、いずれか1つでありうる。一実施形態に従って、複数の可用解像度のうち、最も小さい可用解像度(即ち、精度の最も大きい解像度)が最も短い長さのビットを使用する指示子値によりシグナリングできる。例えば、1/4、1、4サンプル単位の可用解像度のうち、最も小さい値である1/4サンプル単位の可用解像度が最も短い長さのビットを使用する指示子値である‘0’により指示できる。また、残りの可用解像度は各々‘10’、‘11’と表現される指示子値により指示できる。 In the embodiment of FIG. 10, the resolution set for motion compensation of the current block may include available resolutions of 1/4, 1, and 4 samples. At this time, the resolution of the motion vector difference value of the current block may be any one of available resolutions (1/4, 1, 4) shown in FIG. According to one embodiment, of the multiple available resolutions, the smallest available resolution (ie, the resolution with the highest accuracy) can be signaled by an indicator value that uses the shortest length bits. For example, among available resolutions of 1/4, 1, and 4 sample units, the smallest available resolution of 1/4 sample unit is indicated by '0', which is an indicator value that uses the shortest bit length. can. Also, the remaining available resolutions can be indicated by indicator values expressed as '10' and '11', respectively.

一方、解像度指示子が可変長さのビットで表現される場合、最も短い長さのビットを使用して指示される可用解像度が現在ブロックの動きベクトル差分値の解像度に使われる時、シグナリングオーバーヘッドが減少できる。これによって、複数の可用解像度のうち、現在ブロックの動きベクトル差分値の解像度に選択される確率の高い可用解像度を最も短い長さのビットを使用してシグナリングされるように設定することができる。即ち、同一の指示子値の解像度指示子が指示する可用解像度は状況によって変わることができる。これに対しては図11乃至図12を通じて具体的に説明する。また、現在ブロックの解像度セットは状況によって有利な可用解像度で構成できる。即ち、現在ブロックの解像度セットが含む複数の可用解像度の構成は状況によって変わることができる。これに対しては図13を通じて具体的に説明する。 On the other hand, if the resolution indicator is represented by bits of variable length, the signaling overhead is reduced when the available resolution indicated using the shortest length of bits is used to resolve the motion vector difference value of the current block. can be reduced. Accordingly, an available resolution with a high probability of being selected as the resolution of the motion vector difference value of the current block among the plurality of available resolutions can be set to be signaled using the shortest length bit. That is, the available resolutions indicated by the resolution indicators of the same indicator value may vary depending on the situation. This will be described in detail with reference to FIGS. 11 and 12. FIG. Also, the resolution set of the current block can be configured with an available resolution that is advantageous depending on the situation. That is, the configuration of the plurality of available resolutions included in the resolution set of the current block may change according to circumstances. This will be described in detail with reference to FIG.

図11及び図12は、本発明の他の一実施形態に従って現在ブロックの動きベクトル差分値の解像度がシグナリングされる方法を示す図である。図11では解像度セットが3個の可用解像度を含むものとして図示しているが、本開示がこれに制限されるのではない。図11の実施形態で、解像度セットは第1可用解像度(Resolution 1)、第2可用解像度(Resolution 2)、及び第3可用解像度(Resolution 3)を含むことができる。また、解像度セットが含む複数の可用解像度の各々を指示する解像度指示子の値は0、10、11のうち、いずれか1つでありうる。 11 and 12 are diagrams illustrating how the resolution of the motion vector difference value of the current block is signaled according to another embodiment of the present invention. Although FIG. 11 illustrates the resolution set as including three available resolutions, this disclosure is not so limited. In the embodiment of FIG. 11, the resolution set may include a first available resolution (Resolution 1), a second available resolution (Resolution 2), and a third available resolution (Resolution 3). Also, the value of the resolution indicator indicating each of the plurality of available resolutions included in the resolution set may be any one of 0, 10, and 11. FIG.

この際、同一の指示子値の解像度指示子が指示する可用解像度は状況によって変わることができる。例えば、解像度指示子の値のうち、最も短い長さのビットを使用する指示子値は第1状況(case1)で第1可用解像度を指示し、第2状況(case2)では第2可用解像度を指示することができる。第1可用解像度と第2可用解像度は互いに異なることがある。 At this time, the usable resolution indicated by the resolution indicators of the same indicator value may vary depending on the situation. For example, the indicator value that uses the shortest bits among the resolution indicator values indicates the first available resolution in the first situation (case 1), and the second available resolution in the second situation (case 2). can give instructions. The first available resolution and the second available resolution may be different from each other.

図11の‘case 1’を参照すると、第1可用解像度(Resolution 1)、第2可用解像度(Resolution 2)、及び第3可用解像度(Resolution 3)は各々解像度指示子の値が0、10、11の場合に指示される可用解像度でありうる。これとは異なり、図11の‘case 2’を参照すると、第1可用解像度(Resolution 1)、第2可用解像度(Resolution 2)、及び第3可用解像度(Resolution 3)は各々解像度指示子の値が10、0、11の場合に指示される可用解像度でありうる。 Referring to 'case 1' of FIG. 11, the first available resolution (Resolution 1), the second available resolution (Resolution 2), and the third available resolution (Resolution 3) have resolution indicator values of 0, 10, and 10, respectively. 11 may be the available resolution indicated. 11, the first available resolution (Resolution 1), the second available resolution (Resolution 2), and the third available resolution (Resolution 3) are each set to the value of the resolution indicator. may be the available resolutions indicated when is 10, 0, 11;

図12は、図11の実施形態をより具体的に図示する。状況によって現在ブロックの動きベクトル差分値の解像度は、図12(a)の方法または図12(b)の方法によりシグナリングできる。図12の実施形態で、解像度セットは1/4、1、及び4サンプル単位の可用解像度を含むことができる。また、各々の可用解像度は状況によって異なる指示子値により指示できる。例えば、図12(a)を参照すると、1/4、1、及び4サンプル単位の可用解像度は各々10、0、11によりシグナリングできる。即ち、複数の可用解像度のうち、最も小さい可用解像度が最も短い長さのビットを使用する指示子値により指示できる。このようなシグナリング方法は、複数の可用解像度のうち、最も小さい可用解像度に基づいて現在ブロックの動きベクトル差分値をシグナリングすることが有利な状況で使われることができる。 FIG. 12 more specifically illustrates the embodiment of FIG. Depending on the situation, the resolution of the motion vector difference value of the current block can be signaled by the method of FIG. 12(a) or the method of FIG. 12(b). In the embodiment of FIG. 12, the resolution set can include available resolutions of 1/4, 1, and 4 samples. Also, each available resolution can be indicated by a different indicator value depending on the situation. For example, referring to FIG. 12(a), available resolutions of 1/4, 1, and 4 sample units can be signaled by 10, 0, 11, respectively. That is, the smallest available resolution among the plurality of available resolutions can be indicated by an indicator value that uses the shortest length of bits. This signaling method can be used in situations where it is advantageous to signal the motion vector difference value of the current block based on the smallest available resolution among a plurality of available resolutions.

また、図12(b)を参照すると、1/4、1、及び4サンプル単位の可用解像度は、各々10、11、0によりシグナリングできる。即ち、本発明の一実施形態によれば、状況によって複数の可用解像度のうち、最も小さい可用解像度でない可用解像度に基づいて現在ブロックの動きベクトル差分値をシグナリングすることが有利でありうる。この場合、複数の可用解像度のうち、最も小さい可用解像度でない可用解像度が、最も短い長さのビットを使用する指示子値により指示できる。例えば、複数の可用解像度のうち、最も大きい可用解像度が最も短い長さのビットを使用する指示子値により指示できる。 Also referring to FIG. 12(b), available resolutions of 1/4, 1 and 4 sample units can be signaled by 10, 11 and 0, respectively. That is, according to an embodiment of the present invention, it may be advantageous to signal the motion vector difference value of the current block based on an available resolution that is not the smallest available resolution among a plurality of available resolutions depending on circumstances. In this case, the available resolution that is not the smallest available resolution among the plurality of available resolutions can be indicated by an indicator value that uses the shortest length bits. For example, the largest available resolution of a plurality of available resolutions can be indicated by an indicator value that uses the shortest length bits.

また、解像度セットが含む複数の可用解像度の構成は状況によって変わることができる。図13は、解像度セットが含む可用解像度の構成が変わる一実施形態を示す図である。本発明の一実施形態に従って、第1状況(case 1)で動きベクトル差分値の解像度は第1状況解像度セットから獲得され、第2状況(case 2)で動きベクトル差分値の解像度は第2状況解像度セットから獲得できる。 Also, the configuration of the plurality of available resolutions included in the resolution set can change depending on the situation. FIG. 13 is a diagram illustrating an embodiment in which the configuration of available resolutions included in a resolution set changes. According to one embodiment of the present invention, in a first situation (case 1) the resolution of motion vector difference values is obtained from the first situation resolution set, and in a second situation (case 2) the resolution of motion vector difference values is obtained from the second situation Can be obtained from resolution sets.

一実施形態に従って、第1状況解像度セットは第1可用解像度(Resolution 1)、第2可用解像度(Resolution 2)、及び第3可用解像度(Resolution 3)を含むことができる。また、第2状況解像度セットは第4可用解像度(Resolution A)、第5可用解像度(Resolution B)、及び第6可用解像度(Resolution C)を含むことができる。この際、第1状況解像度セットが含む可用解像度のうちの一部と、第2状況解像度セットが含む可用解像度のうちの一部は互いに同一でありうる。即ち、特定可用解像度は第1状況解像度セット及び第2状況解像度セット全てに含まれることもできる。 According to one embodiment, the first context resolution set may include a first available resolution (Resolution 1), a second available resolution (Resolution 2), and a third available resolution (Resolution 3). Also, the second context resolution set can include a fourth available resolution (Resolution A), a fifth available resolution (Resolution B), and a sixth available resolution (Resolution C). At this time, some of the available resolutions included in the first context resolution set and some of the available resolutions included in the second context resolution set may be the same. That is, the specific available resolution may be included in both the first context resolution set and the second context resolution set.

具体的な実施形態に従って、第1状況解像度セットは1/4、1、4サンプル単位の可用解像度で構成できる。また、第2状況解像度セットは1/4、1/2、1サンプル単位の可用解像度で構成できる。即ち、第2状況解像度セットは第1状況解像度セットが含む複数の可用解像度のうち、最も大きい可用解像度の代わりに他の可用解像度を含むことができる。この際、他の可用解像度は前記最も大きい可用解像度より小さい可用解像度でありうる。また、第2状況解像度セットが含む可用解像度のうち、最も大きい可用解像度は第1状況解像度セットが含む可用解像度のうち、最も大きい可用解像度より小さいことがある。一実施形態に従って、第1状況解像度セットは動きベクトル差分値の精度を増加させなければならない状況に比べてシグナリングオーバーヘッドの減少が必要な状況で有利でありうる。反対に、第2状況解像度セットはシグナリングオーバーヘッドの減少が必要な状況に比べて動きベクトル差分値の精度を増加させなければならない状況で有利でありうる。 According to a specific embodiment, the first context resolution set can consist of available resolutions of 1/4, 1 and 4 samples. Also, the second context resolution set can consist of available resolutions in units of 1/4, 1/2, and 1 sample. That is, the second context resolution set can include other available resolutions instead of the largest available resolution among the plurality of available resolutions included in the first context resolution set. At this time, other available resolutions may be available resolutions smaller than the largest available resolution. Also, the largest available resolution among the available resolutions included in the second context resolution set may be smaller than the largest available resolution among the available resolutions included in the first context resolution set. According to one embodiment, the first context resolution set may be advantageous in situations requiring reduced signaling overhead compared to situations where the accuracy of motion vector difference values should be increased. Conversely, the second context resolution set may be advantageous in situations where the accuracy of motion vector difference values should be increased compared to situations where reduced signaling overhead is required.

一方、現在ブロックの予測モードによって要求される動きベクトル差分値の精度が変わることができる。例えば、アフィンモデルに基づいた動き補償は並進運動(translation motion)外の不規則的な運動に対する動き予測でありうる。これによって、現在ブロックの予測モードがアフィンモデルに基づいた動き補償モードである場合、既存の一般インター予測モードに比べて動きベクトル差分値を細密にシグナリングすることが必要でありうる。現在ブロックのMVP候補リストは現在ブロックの予測モードによって異なる方法により構成できる。これによって、現在ブロックの解像度セットが含む複数の可用解像度の構成は現在ブロックの動き補償のためのMVP候補リストが構成される方法によって変わることができる。 Meanwhile, the accuracy of the motion vector difference value required may vary according to the prediction mode of the current block. For example, motion compensation based on affine models can be motion estimation for irregular motion other than translational motion. Accordingly, when the prediction mode of the current block is the motion compensation mode based on the affine model, it may be necessary to signal the motion vector difference value more precisely than in the existing general inter prediction mode. The MVP candidate list of the current block can be constructed in different ways according to the prediction mode of the current block. Accordingly, the configuration of the plurality of available resolutions included in the resolution set of the current block can vary depending on how the MVP candidate list for motion compensation of the current block is constructed.

また、現在ブロックの動きベクトル差分値の解像度が大きいほど、シグナリングされる動きベクトル差分値のサイズが小さくなることができる。これによって、現在ブロックの動きベクトル差分値の絶対値が相対的に大きい場合、現在ブロックの動きベクトル差分値が小さい場合に比べて、動きベクトル差分値を大きい解像度単位でシグナリングすることが好ましいことがある。この際、動きベクトル差分値は動きベクトルと動きベクトル予測子との間の差を示す値である。したがって、現在ブロックの動きベクトル予測子が現在ブロックの動きベクトルと類似するほど、現在ブロックの動きベクトル差分値の絶対値が小さくなることができる。一方、現在ブロックの動きベクトルと動きベクトル予測子との間の類似度が高い確率は、現在ブロックの動き補償のためのMVP候補リストが構成される方法によって変わることができる。これによって、現在ブロックの解像度セットが含む複数の可用解像度の構成は現在ブロックの動き補償のためのMVP候補リストが構成される方法によって変わることができる。 Also, as the resolution of the motion vector difference value of the current block increases, the size of the signaled motion vector difference value can be reduced. Accordingly, when the absolute value of the motion vector difference value of the current block is relatively large, it is preferable to signal the motion vector difference value in a larger resolution unit than when the motion vector difference value of the current block is small. be. At this time, the motion vector difference value is a value indicating the difference between the motion vector and the motion vector predictor. Therefore, the more similar the motion vector predictor of the current block to the motion vector of the current block, the smaller the absolute value of the motion vector difference of the current block. On the other hand, the probability of high similarity between the motion vector of the current block and the motion vector predictor can vary depending on how the MVP candidate list for motion compensation of the current block is constructed. Accordingly, the configuration of the plurality of available resolutions included in the resolution set of the current block can vary depending on how the MVP candidate list for motion compensation of the current block is constructed.

一実施形態に従って、図10乃至図13を通じて前述した実施形態で言及された状況は現在ブロックのMVP候補リストが構成された方法を意味することができる。図8を通じて前述したように、現在ブロックの動き補償のためのMVP候補リストは、複数の方法のうち、いずれか1つに基づいて構成できる。現在ブロックのMVP候補リストは、現在ブロックの予測モードによって異なる方法により構成できる。即ち、前述した実施形態で言及された状況は、現在ブロックの動き補償のためのMVP候補リストが複数の方法のうち、どの方法を使用して構成されたかによることと定義できる。 According to one embodiment, the situations referred to in the above-described embodiments through FIGS. 10 to 13 may refer to methods in which the MVP candidate list of the current block is constructed. As described above with reference to FIG. 8, the MVP candidate list for motion compensation of the current block can be constructed based on any one of a plurality of methods. The MVP candidate list of the current block can be constructed in different ways depending on the prediction mode of the current block. That is, the situations referred to in the above embodiments can be defined as depending on which of a plurality of methods is used to construct the MVP candidate list for motion compensation of the current block.

本発明の一実施形態に従って、現在ブロックの解像度セットが含む複数の可用解像度の構成は、現在ブロックのMVP候補リストを構成する方法によって変わることができる。例えば、エンコーダ及びデコーダは前述した第1方法及び第2方法のうち、いずれか1つを使用して、現在ブロックの動き補償のためのMVP候補リストを構成することができる。この場合、現在ブロックの解像度セットが含む複数の可用解像度の構成は、前述した第1方法及び第2方法のうち、どの方法を使用して現在ブロックのMVP候補リストが構成されるかによって変わることができる。 According to an embodiment of the present invention, the configuration of multiple available resolutions included in the resolution set of the current block may vary depending on how the MVP candidate list of the current block is constructed. For example, the encoder and decoder can construct an MVP candidate list for motion compensation of the current block using any one of the first method and the second method described above. In this case, the configuration of the plurality of available resolutions included in the resolution set of the current block may vary depending on which of the first method and the second method is used to construct the MVP candidate list of the current block. can be done.

一実施形態に従って、現在ブロックの動き補償のためのMVP候補リストが第1方法を使用して構成された場合、現在ブロックの動きベクトル差分値の解像度は第1解像度セットから獲得できる。現在ブロックの動き補償のためのMVP候補リストが第2方法を使用して構成された場合、現在ブロックの動きベクトル差分値の解像度は第2解像度セットから獲得できる。この際、第1解像度セットを構成する複数の可用解像度と第2解像度セットを構成する複数の可用解像度のうちの一部は互いに異なることがある。例えば、第2解像度セットは第1解像度セットが含む複数の可用解像度でない他の可用解像度を少なくとも1つ含むことができる。 According to one embodiment, when the MVP candidate list for motion compensation of the current block is constructed using the first method, the resolution of motion vector difference values of the current block can be obtained from the first resolution set. When the MVP candidate list for motion compensation of the current block is constructed using the second method, the resolution of motion vector difference values of the current block can be obtained from the second resolution set. At this time, some of the plurality of available resolutions forming the first resolution set and some of the plurality of available resolutions forming the second resolution set may be different from each other. For example, the second resolution set may include at least one other available resolution than the plurality of available resolutions included in the first resolution set.

前述したように、第1方法はアフィンモデルに基づいてMVP候補リストを構成する方法であり、第2方法はアフィンモデルに基づかないでMVP候補リストを構成する方法でありうる。アフィンモデルに基づいた動き補償は並進運動(translation motion)外の不規則的な運動に対する動き予測でありうる。これによって、既存の一般インター予測方法に比べて動きベクトル差分値を細密にシグナリングすることが必要でありうる。 As described above, the first method may be a method of constructing the MVP candidate list based on the affine model, and the second method may be a method of constructing the MVP candidate list not based on the affine model. Affine model-based motion compensation can be motion estimation for irregular motion other than translational motion. Accordingly, it may be necessary to signal motion vector difference values more precisely than in existing general inter-prediction methods.

これによって、第1解像度セットは第2解像度セットが含む複数の可用解像度のうち、最も大きい可用解像度の代わりに他の可用解像度を含むことができる。この際、他の可用解像度は前記最も大きい可用解像度より小さい可用解像度でありうる。また、第1解像度セットが含む可用解像度のうち、最も大きい可用解像度は第2解像度セットが含む可用解像度のうち、最も大きい可用解像度より小さいことがある。例えば、第1解像度セットが含む可用解像度のうち、最も大きい可用解像度は、1サンプル単位の解像度でありうる。この際、第2解像度セットが含む可用解像度のうち、最も大きい可用解像度は、4サンプル単位の解像度でありうる。 Accordingly, the first resolution set can include other available resolutions instead of the largest available resolution among the plurality of available resolutions included in the second resolution set. At this time, other available resolutions may be available resolutions smaller than the largest available resolution. Also, the largest available resolution among the available resolutions included in the first resolution set may be smaller than the largest available resolution among the available resolutions included in the second resolution set. For example, the largest available resolution among the available resolutions included in the first resolution set may be a resolution of 1 sample unit. At this time, the largest available resolution among the available resolutions included in the second resolution set may be a 4-sample unit resolution.

具体的な実施形態に従って、第1解像度セットは1/4、1/2、1サンプル単位の可用解像度で構成できる。この際、第2解像度セットは1/4、1、4サンプル単位の可用解像度で構成できる。他の具体的な実施形態に従って、第1解像度セットは1/16、1/4、1サンプル単位の可用解像度で構成できる。この際、第2解像度セットは1/4、1、4サンプル単位の可用解像度で構成できる。 According to a specific embodiment, the first resolution set can consist of available resolutions of 1/4, 1/2 and 1 sample units. At this time, the second resolution set can be composed of available resolutions of 1/4, 1, and 4 samples. According to another specific embodiment, the first resolution set can consist of available resolutions of 1/16, 1/4 and 1 sample units. At this time, the second resolution set can be composed of available resolutions of 1/4, 1, and 4 samples.

前述したように、デコーダはシグナリングされた解像度指示子を用いて現在ブロックの動きベクトル差分値の解像度を決定することができる。例えば、デコーダは第1解像度セット及び第2解像度セットのうちのいずれか1つが含む複数の可用解像度のうち、現在ブロックの動きベクトル差分値の解像度を指示する解像度指示子を獲得することができる。また、デコーダは解像度指示子に基づいて現在ブロックの修正された動きベクトル差分値を獲得することができる。デコーダは、修正された動きベクトル差分値に基づいて現在ブロックを復元することができる。 As described above, the decoder can determine the resolution of motion vector difference values of the current block using the signaled resolution indicator. For example, the decoder can obtain a resolution indicator indicating the resolution of the motion vector difference value of the current block among a plurality of available resolutions included in one of the first resolution set and the second resolution set. Also, the decoder can obtain a modified motion vector difference value of the current block based on the resolution indicator. A decoder can reconstruct the current block based on the modified motion vector difference values.

本発明の一実施形態に従って、解像度指示子値のうちの特定値により指示される可用解像度は、MVP候補リストが第1方法及び第2方法のうち、どの方法を使用して構成されるかによって変わることができる。一実施形態に従って、デコーダは第1値を有する解像度指示子を獲得することができる。現在ブロックの動き補償のためのMVP候補リストが第1方法を使用して構成された場合、第1値により指示される可用解像度は第7可用解像度でありうる。現在ブロックの動き補償のためのMVP候補リストが第2方法を使用して構成された場合、第1値により指示される可用解像度は第8可用解像度でありうる。この際、第7可用解像度と第8可用解像度は互いに異なる解像度でありうる。 According to one embodiment of the present invention, the available resolution indicated by a particular one of the resolution indicator values depends on which of the first method and the second method the MVP candidate list is constructed using. can change. According to one embodiment, a decoder can obtain a resolution indicator having a first value. If the MVP candidate list for motion compensation of the current block is constructed using the first method, the available resolution indicated by the first value may be the seventh available resolution. If the MVP candidate list for motion compensation of the current block is constructed using the second method, the available resolution indicated by the first value may be the eighth available resolution. At this time, the seventh available resolution and the eighth available resolution may be different resolutions.

一実施形態に従って、第7可用解像度は第1解像度セット及び第2解像度セット全てが含む可用解像度でありうる。現在ブロックの動き補償のためのMVP候補リストが第2方法を使用して構成された場合、第7可用解像度は第1値と異なる第2値により指示できる。例えば、第1値は‘10、11’のうちのいずれか1つであるか、または‘00、01’のうちのいずれか1つでありうる。この際、第2値は‘10、11’のうちの第1値と異なるいずれか1つであるか、または‘00、01’のうちの第1値と異なるいずれか1つでありうる。 According to one embodiment, the seventh available resolution may be the available resolution included in both the first resolution set and the second resolution set. If the MVP candidate list for motion compensation of the current block is constructed using the second method, the seventh available resolution can be indicated by a second value different from the first value. For example, the first value may be one of '10, 11' or one of '00, 01'. At this time, the second value may be one of '10 and 11' different from the first value, or one of '00 and 01' different from the first value.

一方、前述したように、複数の可用解像度のうち、現在ブロックの動きベクトル差分値の解像度に選択される確率が最も高い可用解像度を最も短い長さのビットを使用してシグナリングすることが有利でありうる。一実施形態に従って、第1解像度セットが含む可用解像度のうちの最も小さい可用解像度は、第2解像度セットが含む可用解像度のうち、最も小さい可用解像度より小さいことがある。 On the other hand, as described above, it is advantageous to use bits with the shortest length to signal the available resolution with the highest probability of being selected as the resolution of the motion vector difference value of the current block among the plurality of available resolutions. Possible. According to one embodiment, the smallest available resolution of the first resolution set may be smaller than the smallest available resolution of the second resolution set.

即ち、第2解像度セットが含む可用解像度は相対的に大きい解像度でありうる。これによって、現在ブロックの動き補償のためのMVP候補リストが第2方法を使用して構成された場合、動きベクトル差分値の精度を増加させる必要がありえる。前述したように、動きベクトル差分値の精度を増加させる必要がある場合、複数の可用解像度のうち、最も小さい可用解像度を最も短い長さのビットを使用してシグナリングすることが有利でありうる。一実施形態に従って、第3値は解像度指示子の値のうち、最も短い長さのビットを使用して表現される値でありうる。 That is, the available resolutions included in the second resolution set may be relatively large resolutions. Accordingly, if the MVP candidate list for motion compensation of the current block is constructed using the second method, it may be necessary to increase the precision of the motion vector difference value. As previously mentioned, if there is a need to increase the accuracy of motion vector difference values, it may be advantageous to signal the smallest available resolution of multiple available resolutions using the shortest length bits. According to one embodiment, the third value may be a value expressed using the shortest bits among the values of the resolution indicator.

一実施形態に従って、現在ブロックの動き補償のためのMVP候補リストが第2方法を使用して構成された場合、第3値は第2解像度セットが含む複数の可用解像度のうち、最も小さい可用解像度を指示することができる。一実施形態に従って、第2解像度セットが含む可用解像度のうち、最も小さい可用解像度は1/4でありうる。 According to one embodiment, when the MVP candidate list for motion compensation of the current block is constructed using the second method, the third value is the smallest available resolution among the plurality of available resolutions included in the second resolution set. can be instructed. According to one embodiment, the smallest available resolution among the available resolutions included in the second resolution set may be 1/4.

また、第1解像度セットが含む可用解像度は相対的に小さい解像度でありうる。これによって、現在ブロックの動き補償のためのMVP候補リストが第1方法を使用して構成された場合、動きベクトル差分値のためのシグナリングオーバーヘッドを減少させる必要がありえる。したがって、現在ブロックの動き補償のためのMVP候補リストが第1方法を使用して構成された場合、第3値は第1解像度セットが含む複数の可用解像度のうち、最も小さい可用解像度の以外の他の可用解像度を指示することができる。一実施形態に従って、第3値は第1解像度セットが含む可用解像度のうち、最も大きい可用解像度、2番目に小さい可用解像度、または2番目に大きい可用解像度を指示することができる。例えば、第1解像度セットが含む複数の可用解像度のうち、最も小さい可用解像度の以外の他の可用解像度は1/4、1/2、1、4のうち、いずれか1つでありうる。 Also, the available resolutions included in the first resolution set may be relatively small resolutions. Accordingly, if the MVP candidate list for motion compensation of the current block is constructed using the first method, it may be necessary to reduce the signaling overhead for motion vector difference values. Therefore, when the MVP candidate list for motion compensation of the current block is constructed using the first method, the third value is a value other than the smallest available resolution among the plurality of available resolutions included in the first resolution set. Other available resolutions can be indicated. According to one embodiment, the third value may indicate the largest available resolution, the second smallest available resolution, or the second largest available resolution among the available resolutions included in the first resolution set. For example, the available resolutions other than the smallest available resolution among the plurality of available resolutions included in the first resolution set may be any one of 1/4, 1/2, 1, and 4. FIG.

一方、本発明の他の一実施形態に従って、現在ブロックの解像度セットが含む可用解像度の構成は現在ブロックの動きベクトル予測子を指示するMVPインデックスによって変わることができる。MVPインデックスは、現在ブロックの動きベクトルを誘導するために参照される動きベクトル予測子が現在ブロックのMVP候補リストで何番目の候補であるかを示すことができる。 Meanwhile, according to another embodiment of the present invention, the configuration of available resolutions included in the resolution set of the current block may vary according to the MVP index indicating the motion vector predictor of the current block. The MVP index may indicate what order of the candidate in the MVP candidate list of the current block is the motion vector predictor referred to derive the motion vector of the current block.

図14は、現在ブロックの動きベクトル予測子によって現在ブロックの動きベクトル差分値の解像度がシグナリングされる方法の一実施形態を示す図である。例えば、デコーダは現在ブロックの動き補償のためのMVP候補リストのうち、現在ブロックの動き補償のために参照される動きベクトル予測子を指示するMVPインデックスを獲得することができる。この際、現在ブロックの解像度指示子の特定値により指示される可用解像度はMVPインデックスが既設定されたインデックスより大きいか小さいかによって変わることができる。 FIG. 14 is a diagram illustrating an embodiment of how the resolution of the motion vector difference value of the current block is signaled by the motion vector predictor of the current block. For example, the decoder can obtain an MVP index indicating a motion vector predictor referenced for motion compensation of the current block among the MVP candidate list for motion compensation of the current block. At this time, the available resolution indicated by the specific value of the resolution indicator of the current block may vary depending on whether the MVP index is larger or smaller than the preset index.

現在ブロックのMVP候補リスト内で、小さいMVPインデックスに対応する動きベクトル予測子候補であるほど、現在ブロックの動きベクトルと類似する確率が高いことがある。また、現在ブロックの動きベクトル予測子が現在ブロックの動きベクトルと類似するほど現在ブロックの動きベクトル差分値の絶対値が小さくなることがある。これによって、現在ブロックの動きベクトル予測子に対応するMVPインデックスが既設定されたMVPインデックスより小さい場合、現在ブロックの解像度セットが含む複数の可用解像度のうち、最も小さい可用解像度は、解像度指示子の値のうち、最も短い長さのビットを使用して表現される値により指示できる。 A motion vector predictor candidate corresponding to a smaller MVP index in the MVP candidate list of the current block may have a higher probability of being similar to the motion vector of the current block. Also, the more similar the motion vector predictor of the current block to the motion vector of the current block, the smaller the absolute value of the motion vector difference of the current block. Accordingly, when the MVP index corresponding to the motion vector predictor of the current block is smaller than the preset MVP index, the smallest available resolution among the plurality of available resolutions included in the resolution set of the current block is the resolution indicator. It can be indicated by a value expressed using the bits with the shortest length of the value.

反対に、現在ブロックの動きベクトル予測子に対応するMVPインデックスが既設定されたMVPインデックスより大きい場合、現在ブロックの解像度セットが含む複数の可用解像度のうち、最も小さい可用解像度でない特定可用解像度が解像度指示子の値のうち、最も短い長さのビットを使用して表現される値により指示できる。この際、特定可用解像度は複数の可用解像度のうち、最も大きい解像度でありうる。または、特定可用解像度は複数の可用解像度のうち、2番目に大きいか、または2番目に小さい解像度でありうる。 Conversely, if the MVP index corresponding to the motion vector predictor of the current block is greater than the preset MVP index, the resolution is a specific available resolution that is not the smallest available resolution among a plurality of available resolutions included in the resolution set of the current block. It can be indicated by a value represented using the shortest length bits of the indicator value. At this time, the specific available resolution may be the largest resolution among the plurality of available resolutions. Alternatively, the specific available resolution may be the second largest or second smallest resolution among the plurality of available resolutions.

図14を参照すると、現在ブロックの解像度セットは1/4、1、4サンプル単位の可用解像度を含むことができる。また、現在ブロックの動き補償のためのMVPインデックスが既設定されたMVPインデックスより小さい(Candidate 1、Candidate 2)場合、1/4、1、4のうち、最も小さい可用解像度である1/4単位の解像度が最も短いビットを使用してシグナリングできる。一方、現在ブロックの動き補償のためのMVPインデックスが既設定されたMVPインデックスより大きい(Candidate N)場合、1/4、1、4のうち、1または4単位の解像度が最も少ない個数のビットを使用してシグナリングできる。 Referring to FIG. 14, the current block resolution set may include available resolutions of 1/4, 1, and 4 samples. In addition, when the MVP index for motion compensation of the current block is smaller than the preset MVP index (Candidate 1, Candidate 2), the smallest available resolution among 1/4, 1, and 4 is the unit of 1/4. resolution can be signaled using the shortest bits. On the other hand, if the MVP index for motion compensation of the current block is greater than the preset MVP index (Candidate N), the least number of bits with a resolution of 1 or 4 units among 1/4, 1, and 4 is selected. can be used for signaling.

図15は、現在ブロックの動きベクトル予測子によって動きベクトル差分値の解像度がシグナリングされる方法の他の一実施形態を示す図である。図14を通じて前述したように、現在ブロックの動き補償のためのMVPインデックスによって、現在ブロックの動きベクトル差分値の解像度がシグナリングされる方法が変わることができる。 FIG. 15 is a diagram illustrating another embodiment of a method in which the motion vector predictor of the current block signals the resolution of the motion vector difference value. As described above with reference to FIG. 14, the method of signaling the resolution of the motion vector difference value of the current block may vary according to the MVP index for motion compensation of the current block.

前述したように、現在ブロックの動き補償のためのMVP候補リストは多様な方法により獲得された候補を含むことができる。一実施形態に従って、現在ブロックの動き補償のためのMVP候補リストは、空間的候補、時間的候補、またはゼロ動きベクトルのうち、少なくとも1つを含むことができる。この際、現在ブロックの動きベクトル予測子がどんな方式により獲得された候補でありかによって現在ブロックの解像度セットが含む複数の可用解像度の構成が変わることができる。動きベクトル予測子候補によって推定される現在ブロックとの類似度が異なることができるためである。例えば、空間的候補の場合、現在ブロックと類似する確率が大きいことと推定できる。また、時間的候補、ゼロ動きベクトルのような動きベクトル予測子候補は空間的候補に比べて現在ブロックと類似する確率が小さいものと推定できる。 As described above, the MVP candidate list for motion compensation of the current block can include candidates obtained by various methods. According to one embodiment, the MVP candidate list for motion compensation of the current block may include at least one of spatial candidates, temporal candidates, or zero motion vectors. At this time, the configuration of a plurality of available resolutions included in the resolution set of the current block can be changed depending on how the motion vector predictor of the current block is obtained as a candidate. This is because the similarity with the current block estimated by the motion vector predictor candidate may differ. For example, it can be estimated that spatial candidates have a high probability of being similar to the current block. In addition, it can be estimated that motion vector predictor candidates such as temporal candidates and zero motion vectors are less likely to be similar to the current block than spatial candidates.

例えば、現在ブロックの動きベクトル予測子が空間的候補のうちのいずれか1つである場合、現在ブロックの解像度セットが含む複数の可用解像度のうちの最も小さい可用解像度は、解像度指示子の値のうちの最も短い長さのビットを使用して表現される値により指示できる。 For example, if the motion vector predictor of the current block is one of the spatial candidates, the smallest available resolution among the multiple available resolutions included in the resolution set of the current block is the value of the resolution indicator. It can be indicated by a value represented using the shortest length bit of them.

また、現在ブロックの動きベクトル予測子が空間的候補のうちのいずれか1つでない場合、現在ブロックの解像度セットが含む複数の可用解像度のうちの最も小さい可用解像度でない特定可用解像度が解像度指示子の値のうちの最も短い長さのビットを使用して表現される値により指示できる。この際、特定可用解像度は複数の可用解像度のうちの最も大きい解像度でありうる。または、特定可用解像度は複数の可用解像度のうちの2番目に大きいか、または2番目に小さい解像度でありうる。 Also, if the motion vector predictor of the current block is not one of the spatial candidates, the specific available resolution that is not the smallest available resolution among the plurality of available resolutions included in the resolution set of the current block is the resolution indicator. It can be indicated by a value represented using the shortest length bits of the value. At this time, the specific available resolution may be the largest resolution among the plurality of available resolutions. Alternatively, the specified available resolution may be the second largest or second smallest resolution of the plurality of available resolutions.

一方、図13乃至図15では互いに異なる解像度セットの各々が同一の個数の可用解像度を含むものとして図示されているが、本開示がこれに制限されるのではない。本発明の一実施形態に従って、解像度セット別に互いに異なる個数の可用解像度を含むこともできる。例えば、第1解像度セットは3個の可用解像度を含むことができる。一方、第3状況で使われる第3解像度セットは2つの可用解像度を含むことができる。エンコーダ及びデコーダは状況によって互いに異なる個数の可用解像度を含む解像度セットを構成することができる。 On the other hand, although FIGS. 13-15 illustrate that each of the different resolution sets includes the same number of available resolutions, the present disclosure is not limited thereto. According to an embodiment of the present invention, each resolution set may include a different number of available resolutions. For example, the first resolution set may contain three available resolutions. On the other hand, the third resolution set used in the third situation can contain two available resolutions. The encoder and decoder may configure a resolution set including a different number of available resolutions depending on the situation.

前述したように、動き情報セットは現在ブロックの参照ピクチャを示す参照ピクチャインデックスを含むことができる。デコーダは、シグナリングされた参照ピクチャインデックスから現在ブロックの参照ピクチャのPOCを獲得することができる。本発明の一実施形態に従って、現在ブロックの解像度セットが含む複数の可用解像度の構成は、現在ピクチャのPOC及び参照ピクチャのPOCによって変わることができる。一実施形態に従って、現在ピクチャのPOC及び参照ピクチャのPOCに基づいて、現在ブロックの解像度セットを構成する可用解像度のうちの一部が除外できる。 As described above, the motion information set can include a reference picture index that indicates the reference picture of the current block. The decoder can obtain the POC of the reference picture of the current block from the signaled reference picture index. According to an embodiment of the present invention, the configuration of multiple available resolutions included in the resolution set of the current block may vary according to the POC of the current picture and the POC of the reference picture. According to one embodiment, based on the POC of the current picture and the POC of the reference picture, some of the available resolutions that make up the resolution set of the current block can be excluded.

例えば、参照ピクチャのPOCが現在ピクチャのPOCと同一な場合、現在ブロックの動きベクトル差分値の解像度は第4解像度セットから獲得できる。また、参照ピクチャのPOCが現在ピクチャのPOCと同一でない場合、現在ブロックの動きベクトル差分値の解像度は第5解像度セットから獲得できる。この際、第4解像度セットは第5解像度セットが含む可用解像度のうち、最も小さい可用解像度を除外した残りの可用解像度で構成できる。即ち、現在ピクチャのPOC及び参照ピクチャのPOCによって、現在ブロックの解像度セットを構成する可用解像度の個数が変わることができる。 For example, if the POC of the reference picture is the same as the POC of the current picture, the resolution of the motion vector difference value of the current block can be obtained from the fourth resolution set. Also, if the POC of the reference picture is not the same as the POC of the current picture, the resolution of the motion vector difference value of the current block can be obtained from the fifth resolution set. At this time, the fourth resolution set may be composed of the remaining available resolutions excluding the smallest available resolution among the available resolutions included in the fifth resolution set. That is, the number of available resolutions forming the resolution set of the current block may vary according to the POC of the current picture and the POC of the reference picture.

本発明の他の一実施形態をよれば、現在ブロックの動きベクトル差分値の解像度は量子化パラメータ(quantization parameter、QP)によって異なる方法によりシグナリングできる。例えば、現在ブロックのQPによって図11乃至図15を通じて前述したシグナリング方法のうち、いずれか1つが決定できる。また、現在ブロックの動きベクトル差分値の解像度は決定されたシグナリング方法を使用してシグナリングできる。一実施形態に従って、現在ブロックのQPが小さいほど、現在ブロックの動きベクトル差分値の解像度が小さくなることができる。 According to another embodiment of the present invention, the resolution of the motion vector difference value of the current block can be signaled in different ways according to a quantization parameter (QP). For example, one of the signaling methods described above with reference to FIGS. 11 to 15 can be determined according to the QP of the current block. Also, the resolution of the motion vector difference value of the current block can be signaled using the determined signaling method. According to one embodiment, the smaller the QP of the current block, the smaller the resolution of the motion vector difference value of the current block.

本発明の更に他の一実施形態をよれば、現在ブロックの動きベクトル差分値の解像度はフレームレート(framerate)によって異なる方法によりシグナリングできる。例えば、現在ブロックを含むビデオ信号のフレームレートによって図11乃至図15を通じて前述したシグナリング方法のうち、いずれか1つが決定できる。また、現在ブロックの動きベクトル差分値の解像度は決定されたシグナリング方法を使用してシグナリングできる。一実施形態に従って、ビデオ信号のフレームレートが高いほど、フレーム間の時間間隔が短くて動きベクトルが小さい確率が高まることができる。これによって、現在ブロックのフレームレートが高いほど、現在ブロックの動きベクトル差分値の解像度が小さくなることができる。 According to still another embodiment of the present invention, the resolution of the motion vector difference value of the current block can be signaled in different ways depending on the framerate. For example, one of the signaling methods described above with reference to FIGS. 11 to 15 can be determined according to the frame rate of the video signal including the current block. Also, the resolution of the motion vector difference value of the current block can be signaled using the determined signaling method. According to one embodiment, the higher the frame rate of the video signal, the higher the probability that the time interval between frames is short and the motion vector is small. Accordingly, the higher the frame rate of the current block, the smaller the resolution of the motion vector difference value of the current block.

本発明の更に他の一実施形態をよれば、現在ブロックの動きベクトル差分値の解像度は、現在ブロックと現在ブロックの周辺ブロックとの間のサイズ比率またはサイズ差によって異なる方法によりシグナリングできる。例えば、現在ブロックと現在ブロックの周辺ブロックとの間のサイズ比率またはサイズ差によって、図11乃至図15を通じて前述したシグナリング方法のうち、いずれか1つが決定できる。前述した実施形態は動きベクトル差分値でない動きベクトルが直接的にシグナリングされる場合にも同一または相応する方法により適用できる。 According to yet another embodiment of the present invention, the resolution of the motion vector difference value of the current block can be signaled in different ways according to the size ratio or size difference between the current block and its neighboring blocks. For example, one of the signaling methods described above with reference to FIGS. 11 to 15 can be determined according to the size ratio or size difference between the current block and neighboring blocks of the current block. The above-described embodiments can be applied in the same or corresponding manner even when motion vectors other than motion vector differential values are directly signaled.

一方、本発明の追加的な実施形態に従って、エンコーダ及びデコーダは動きベクトル差分値を足す前に動きベクトル予測子を修正することができる。これを通じて、現在ブロックの動きベクトルを獲得するために使われる動きベクトル差分値のサイズを減少させることができる。この際、現在ブロックのMVP候補リストが含む動きベクトル予測子候補のうちの一部が現在ブロックの動きベクトル予測子に選択された場合のみに動きベクトル予測子に対する修正が遂行できる。例えば、現在ブロックのMVP候補リストが含む動きベクトル予測子候補のうち、既設定されたMVPインデックスより小さいMVPインデックスに対応する動きベクトル予測子候補が現在ブロックの動きベクトル予測子に使われる場合、該当動きベクトル予測子に対する修正が遂行できる。 However, according to additional embodiments of the present invention, the encoder and decoder can modify the motion vector predictor before adding the motion vector difference values. Through this, it is possible to reduce the size of the motion vector differential value used to obtain the motion vector of the current block. At this time, the motion vector predictor can be modified only when some of the motion vector predictor candidates included in the MVP candidate list of the current block are selected as the motion vector predictor of the current block. For example, if a motion vector predictor candidate corresponding to an MVP index smaller than a preset MVP index among motion vector predictor candidates included in the MVP candidate list of the current block is used as the motion vector predictor of the current block, the corresponding Corrections to motion vector predictors can be performed.

一実施形態に従って、動きベクトル予測子に対する修正が遂行されるかによって解像度セットが含む複数の可用解像度をシグナリングする方法が変わることができる。例えば、現在ブロックの動きベクトル予測子が修正された場合、解像度セットが含む複数の可用解像度のうち、最も小さい可用解像度が最も少ない個数のビットを使用してシグナリングできる。また、現在ブロックの動きベクトル予測子が修正されていない場合、解像度セットが含む複数の可用解像度のうち、最も小さい可用解像度でない他の解像度のうち、いずれか1つが最も少ない個数のビットを使用してシグナリングできる。 According to one embodiment, the method of signaling the multiple available resolutions included in the resolution set may vary depending on whether a modification to the motion vector predictor is performed. For example, if the motion vector predictor of the current block is modified, the smallest available resolution among the plurality of available resolutions included in the resolution set can be signaled using the least number of bits. Also, if the motion vector predictor of the current block has not been modified, any one of the multiple available resolutions included in the resolution set that is not the smallest available resolution uses the least number of bits. can be signaled.

他の一実施形態に従って、動きベクトル予測子は動きベクトル差分値を足した後に修正されることもできる。この場合、現在ブロックの動きベクトル差分値の解像度が動きベクトル予測子が動きベクトル差分値を足す前に修正される場合と異なる方法によりシグナリングできる。動きベクトル予測子が動きベクトル差分値が加えられた後に修正される場合、動きベクトル差分値の精度が低くても動きベクトル修正過程を通じて予測誤差を減らすことができる。これによって、現在ブロックの動きベクトル予測子が動きベクトル差分値を足す前に修正される場合、解像度セットが含む複数の可用解像度のうち、最も小さい可用解像度でない他の解像度のうち、いずれか1つが最も少ない個数のビットを使用してシグナリングできる。反対に、現在ブロックの動きベクトル予測子が動きベクトル差分値を足す前に修正されない場合、解像度セットが含む複数の可用解像度のうち、最も小さい可用解像度が最も少ない個数のビットを使用してシグナリングできる。 According to another embodiment, the motion vector predictor can also be modified after summing the motion vector difference values. In this case, the resolution of the motion vector difference values of the current block can be signaled in a different way than if the motion vector predictor were modified before summing the motion vector difference values. If the motion vector predictor is corrected after the motion vector difference value is added, the prediction error can be reduced through the motion vector correction process even if the motion vector difference value has low accuracy. As a result, if the motion vector predictor of the current block is modified before adding the motion vector difference value, any one of the other resolutions that is not the smallest available resolution among the multiple available resolutions included in the resolution set is It can be signaled using the fewest number of bits. Conversely, if the motion vector predictor of the current block is not modified before adding the motion vector difference value, the smallest available resolution among the multiple available resolutions included in the resolution set can be signaled using the least number of bits. .

追加的な実施形態に従って、現在ブロックの動きベクトルまたは動きベクトル予測子がどんな候補であるかによって、後に遂行される動きベクトル修正過程が変わることができる。動きベクトルを修正する過程はより正確な動きベクトルを探索するための過程を含むことができる。例えば、デコーダは基準点から既定義された方法によって現在ブロックとマッチングされるブロックを探索することができる。基準点は決定された動きベクトルまたは動きベクトル予測子に該当する位置でありうる。動きベクトル探索は、多様な方法により遂行できる。例えば、探索にはテンプレートマッチング(templete matching)または両側マッチング(bilateral matching)が使われることができる。この際、既定義された方法によって基準点から動く程度が変わることができる。動きベクトル修正過程を異なるようにするということは、基準点から動く程度を異なるようにすることでありうる。 According to an additional embodiment, the motion vector correction process to be performed later may vary depending on what candidate the motion vector or motion vector predictor of the current block is. The process of correcting motion vectors can include processes for searching for more accurate motion vectors. For example, the decoder can search for a block matching the current block from a reference point by a predefined method. The reference point may be a position corresponding to the determined motion vector or motion vector predictor. Motion vector search can be performed in a variety of ways. For example, template matching or bilateral matching can be used for searching. At this time, the degree of movement from the reference point can be changed according to a predefined method. Different motion vector correction processes can be different degrees of movement from the reference point.

例えば、正確な動きベクトル予測子候補に対しては詳細な修正過程から始めることができ、不正確な動きベクトル予測子候補に対してはあまり詳細でない修正過程から始めることができる。本開示で、正確な動きベクトル予測子候補及び不正確な動きベクトル予測子候補はMVP候補リスト内での位置によって決定できる。また、正確な動きベクトル予測子候補及び不正確な動きベクトル予測子候補は動きベクトル予測子候補の各々がいかなる方法により生成されたかによって決定できる。いかなる方法により動きベクトル予測子候補が生成されたかは、現在ブロックの空間的候補のうち、どの位置に対応する候補であるかを示すことができる。また、詳しい、あまり詳しくない修正は、ブロックを基準点から少しずつ動きながら探索するのか、たくさん動きながら探索するのかでありうる。また、たくさん動きながら探索する場合、たくさん動きながら探した最もよくマッチングされるブロックから追加的に少しずつ動きながら探索する過程を追加することができる。 For example, an accurate motion vector predictor candidate may start with a detailed correction process, and an inaccurate motion vector predictor candidate may start with a less detailed correction process. In this disclosure, the correct motion vector predictor candidate and the incorrect motion vector predictor candidate can be determined by their position within the MVP candidate list. Also, an accurate motion vector predictor candidate and an inaccurate motion vector predictor candidate can be determined according to how each motion vector predictor candidate is generated. The method by which the motion vector predictor candidate is generated can indicate which position the candidate corresponds to among the spatial candidates of the current block. Also, detailed and less detailed modifications can be whether the block is explored in small increments or large increments from the reference point. In addition, when searching while moving a lot, it is possible to add a process of searching while moving little by little from the best matching block found while moving a lot.

前述したテンプレートマッチング方法は、現在ブロックのテンプレートと比較しようとする比較対象ブロックのテンプレートの間の値の差に基づいて現在ブロックのテンプレートと最も差の少ない比較対象ブロックを獲得する方法でありうる。特定ブロックのテンプレートは、特定ブロックの周辺サンプルに基づいて獲得できる。図16は、本発明の一実施形態に従ってテンプレートマッチング方法に基づいて動きベクトル差分値の解像度が獲得される方法を示す図である。本発明の一実施形態に従って、現在ブロックの動きベクトル差分値の解像度はシグナリングされないこともある。一実施形態に従って、デコーダはテンプレートマッチング方法と同一のコスト(cost)計算に基づいて現在ブロックの解像度を獲得することができる。前述したように、参照ブロックは動きベクトル予測子及び動きベクトル差分値に基づいて獲得できる。この際、動きベクトル差分値は現在ブロックの動きベクトル差分値の解像度により修正された動きベクトル差分値でありうる。これによって、現在ブロックの動きベクトル差分値の解像度によって参照ピクチャ内で参照ブロックの位置が変わることができる。 The template matching method described above may be a method of obtaining a comparison target block having the smallest difference from the current block template based on the difference in value between the current block template and the comparison target block template to be compared. A template for a particular block can be obtained based on the surrounding samples of the particular block. FIG. 16 is a diagram illustrating how the resolution of motion vector difference values is obtained based on the template matching method according to an embodiment of the present invention. According to one embodiment of the present invention, the resolution of motion vector difference values of the current block may not be signaled. According to one embodiment, the decoder can obtain the resolution of the current block based on the same cost calculation as the template matching method. As described above, reference blocks can be obtained based on motion vector predictors and motion vector difference values. At this time, the motion vector difference value may be a motion vector difference value corrected according to the resolution of the motion vector difference value of the current block. Accordingly, the position of the reference block within the reference picture can be changed according to the resolution of the motion vector difference value of the current block.

一実施形態に従って、現在ブロックの動き補償のための解像度セットは既設定された可用解像度で構成できる。図16を参照すると、現在ブロックの解像度セットは、第1可用解像度(Resolution 1)、第2可用解像度(Resolution 2)、及び第3可用解像度(Resolution 3)を含むことができる。現在ブロックの動きベクトル予測子により指示される基準点1601に基づいて現在ブロックの解像度セットが含む可用解像度の各々に対応する複数の参照ブロック候補が獲得できる。解像度セットが含む可用解像度個数の参照ブロック候補が獲得できる。具体的な実施形態に従って、複数の参照ブロック候補は第1可用解像度に対応する第1参照ブロック候補1602、第2可用解像度に対応する第2参照ブロック候補1603、及び第3可用解像度に対応する第3参照ブロック候補1604を含むことができる。デコーダは、複数の参照ブロック候補のうち、いずれか1つを現在ブロックの参照ブロックに使用することができる。例えば、デコーダは複数の参照ブロック候補の各々と現在ブロックをテンプレートマッチング結果に基づいてコストの最も低い参照ブロック候補を現在ブロックの参照ブロックに選択することができる。また、デコーダは該当参照ブロックに基づいて現在ブロックを復元することができる。 According to an embodiment, the resolution set for motion compensation of the current block can be configured with preset available resolutions. Referring to FIG. 16, the resolution set of the current block may include a first available resolution (Resolution 1), a second available resolution (Resolution 2), and a third available resolution (Resolution 3). A plurality of reference block candidates corresponding to each of the available resolutions included in the resolution set of the current block can be obtained based on the reference point 1601 indicated by the motion vector predictor of the current block. As many reference block candidates as the number of available resolutions included in the resolution set can be obtained. According to a specific embodiment, the plurality of reference block candidates are a first reference block candidate 1602 corresponding to a first available resolution, a second reference block candidate 1603 corresponding to a second available resolution, and a third reference block candidate corresponding to a third available resolution. 3 reference block candidates 1604 may be included. A decoder can use any one of a plurality of reference block candidates as a reference block for the current block. For example, the decoder can select the reference block candidate with the lowest cost as the reference block of the current block based on the template matching result between each of the plurality of reference block candidates and the current block. Also, the decoder can reconstruct the current block based on the corresponding reference block.

他の一実施形態に従って、前述した参照ブロック候補の各々と現在ブロックとの間のテンプレートマッチング結果に基づいて現在ブロックの動きベクトル差分値の解像度がシグナリングされることもできる。例えば、前述したテンプレートマッチング動作はデコーダと同様にエンコーダで同一に遂行できる。また、エンコーダはテンプレートマッチング結果に基づいてコストの最も低い参照ブロック候補に対応する可用解像度を最も少ない個数のビットを使用してシグナリングできる。 According to another embodiment, the resolution of the motion vector difference value of the current block may be signaled based on the template matching result between each of the reference block candidates and the current block. For example, the template matching operation described above can be performed in the same manner in the encoder as in the decoder. Also, the encoder can use the fewest number of bits to signal the available resolution corresponding to the lowest cost reference block candidate based on the template matching results.

この場合、エンコーダ及びデコーダは複数の参照ブロック候補のうち、一部に対してのみテンプレートマッチングを遂行することもできる。例えば、図16の第1参照ブロック候補1602、第2参照ブロック候補1603、及び第3参照ブロック候補1604のうち、第1参照ブロック候補1602、第2参照ブロック候補1603に対してのみ現在ブロックとのテンプレートマッチングが遂行できる。また、第1参照ブロック候補1602及び第2参照ブロック候補1603の各々と現在ブロックとの間のテンプレートマッチング結果に基づいて、現在ブロックの解像度セットが含む可用解像度のうち、最も短い長さのビットを使用してシグナリングされる可用解像度が決定できる。第1可用解像度及び第2可用解像度のうち、いずれか1つが最も短い長さのビットを使用してシグナリングできる。また、第1可用解像度及び第2可用解像度のうち、残りの1つとテンプレートマッチングを遂行しない参照ブロック候補に対応する第3可用解像度は追加的なビットを使用してシグナリングできる。これを通じて、エンコーダ及びデコーダはテンプレートマッチング方法に必要な演算量を減少させることができる。 In this case, the encoder and decoder may perform template matching on only some of the plurality of reference block candidates. For example, among the first reference block candidate 1602, second reference block candidate 1603, and third reference block candidate 1604 in FIG. Template matching can be performed. Also, based on the template matching result between each of the first reference block candidate 1602 and the second reference block candidate 1603 and the current block, among the available resolutions included in the resolution set of the current block, bits with the shortest length are selected. The available resolution signaled using can be determined. Either one of the first available resolution and the second available resolution can be signaled using the shortest length bits. In addition, the remaining one of the first available resolution and the second available resolution and the third available resolution corresponding to the reference block candidate for which template matching is not performed may be signaled using an additional bit. Through this, the encoder and decoder can reduce the amount of computation required for the template matching method.

一実施形態に従って図16を通じて説明された実施形態は、シグナリングされた動きベクトル差分値のサイズによって適用するか否かが決定されることもできる。例えば、シグナリングされた動きベクトル差分値が既設定された値より大きい場合のみにテンプレートマッチング方法が使われることもできる。シグナリングされた動きベクトル差分値が既設定された値より小さい場合、解像度に従う参照ブロック候補間のテンプレートマッチングコスト差が明らかでない場合もあるためである。 Whether or not to apply the embodiment described through FIG. 16 according to one embodiment can also be determined according to the size of the signaled motion vector difference value. For example, the template matching method can be used only when the signaled motion vector difference value is greater than a preset value. This is because if the signaled motion vector difference value is smaller than a preset value, the template matching cost difference between the reference block candidates according to the resolution may not be obvious.

図17は、本発明の一実施形態に従って両側マッチング方法に基づいて動きベクトル差分値の解像度が獲得される方法を示す図である。本発明の一実施形態に従って、図16を通じて説明したテンプレートマッチング方法に代わって両側マッチング方法が使われることができる。両側マッチング方法は動き軌跡に沿って2つ以上の参照ピクチャの各々の参照ブロックに基づいて現在ブロックを復元する方法を示す。両側マッチング方法は2つ以上の参照ピクチャの各々の参照ブロックの間の差に基づいて差の最も小さいセットを獲得するものでありうる。 FIG. 17 is a diagram illustrating how the resolution of motion vector difference values is obtained based on the two-sided matching method according to an embodiment of the present invention. According to an embodiment of the present invention, a two-sided matching method can be used instead of the template matching method described with reference to FIG. A two-sided matching method refers to a method of reconstructing a current block based on reference blocks in each of two or more reference pictures along a motion trajectory. A two-sided matching method may be one that obtains the smallest set of differences based on differences between reference blocks in each of two or more reference pictures.

前述したように、現在ブロックが双予測ブロックである場合、現在ブロックは互いに異なる2つ以上の参照ピクチャの2つ以上の参照ブロックに基づいて復元できる。図17を参照すると、第1参照ピクチャ(Reference picture 1)及び第2参照ピクチャ(Reference picture 2)別に特定可用解像度に対応する参照ブロック候補が構成できる。エンコーダ及びデコーダは第1参照ピクチャ(Reference picture 1)内の参照ブロック候補と第2参照ピクチャ(Reference picture 2)内の参照ブロック候補の間の両側マッチング結果に基づいて、第1参照ピクチャ(Reference picture 1)内の参照ブロック及び第2参照ピクチャ(Reference picture 2)内の参照ブロックを獲得することができる。図17の実施形態には、図16を通じて前述した実施形態が同一または相応する方法により適用できる。 As described above, if the current block is a bi-predictive block, the current block can be reconstructed based on two or more reference blocks of two or more different reference pictures. Referring to FIG. 17, reference block candidates corresponding to a specific available resolution can be configured for each of a first reference picture (Reference picture 1) and a second reference picture (Reference picture 2). The encoder and decoder select the first reference picture (Reference picture 1) based on the two-sided matching result between the reference block candidate in the first reference picture (Reference picture 1) and the reference block candidate in the second reference picture (Reference picture 2). 1) and the reference block in the second reference picture (Reference picture 2) can be obtained. The embodiment described above through FIG. 16 can be applied to the embodiment of FIG. 17 in the same or corresponding manner.

一実施形態に従って、現在ブロックが互いに異なる参照リストに対応する2つの動き情報セットに基づいてインター予測される場合、2つの動きベクトル差分値が別途にシグナリングできる。この場合、2つの動きベクトル差分値の各々に適用される解像度は互いに同一または異なることがある。以下では、現在ブロックの参照ピクチャリスト別解像度がシグナリングされる多様な方法について説明する。 According to one embodiment, when the current block is inter-predicted based on two motion information sets corresponding to different reference lists, two motion vector difference values can be separately signaled. In this case, the resolutions applied to each of the two motion vector difference values may be the same or different. Various methods of signaling the resolution of the current block by reference picture list will be described below.

本発明の一実施形態に従って、参照ピクチャリスト別動きベクトル差分値の解像度は前述した両側マッチング方法に基づいて決定できる。一実施形態に従って、2つの参照ピクチャリストの各々に対応する解像度セットは互いに独立的に構成できる。例えば、第1参照ピクチャリストL0に対応する解像度セットは、m個の可用解像度を含むことができる。また、第2参照ピクチャリストL1に対応する解像度セットはn個の可用解像度を含むことができる。この場合、エンコーダ及びデコーダは第1参照ピクチャリストに対応するn個の参照ブロック候補及び第2参照ピクチャリストに対応するm個の参照ブロック候補の間の両側マッチング結果に基づいて参照ピクチャリストの各々の動きベクトル差分値の解像度を獲得することができる。この場合、エンコーダ及びデコーダは(nxm)回の両側マッチングを遂行しなければならない。 According to an embodiment of the present invention, the resolution of the motion vector difference value for each reference picture list can be determined based on the two-sided matching method described above. According to one embodiment, resolution sets corresponding to each of the two reference picture lists can be configured independently of each other. For example, the resolution set corresponding to the first reference picture list L0 may contain m available resolutions. Also, the resolution set corresponding to the second reference picture list L1 may include n available resolutions. In this case, the encoder and decoder each of the reference picture lists based on the two-sided matching results between the n reference block candidates corresponding to the first reference picture list and the m reference block candidates corresponding to the second reference picture list. motion vector difference value resolution can be obtained. In this case, the encoder and decoder must perform (nxm) two-sided matching.

または、動きベクトル差分値の解像度は複数の参照ピクチャリストに対して共通的な解像度セットが使われることもできる。例えば、第1参照ピクチャリストL0及び第2参照ピクチャリストL1に対して共通的に使われる解像度セットはn個の可用解像度を含むことができる。一実施形態に従って、第1参照ピクチャリストL0及び第2参照ピクチャリストL1の各々に対応する動きベクトル差分値に対して互いに同一の解像度が適用されるように設定できる。この場合、エンコーダ及びデコーダはn回の両側マッチング結果に基づいて第1参照ピクチャリストL0及び第2参照ピクチャリストL1の各々の動きベクトル差分値の解像度を獲得することができる。 Alternatively, a common resolution set can be used for a plurality of reference picture lists as the resolution of the motion vector difference value. For example, a commonly used resolution set for the first reference picture list L0 and the second reference picture list L1 may include n available resolutions. According to an embodiment, the same resolution may be applied to motion vector difference values corresponding to each of the first reference picture list L0 and the second reference picture list L1. In this case, the encoder and decoder can obtain resolutions of motion vector difference values of each of the first reference picture list L0 and the second reference picture list L1 based on the n-times two-sided matching results.

一方、特定参照ピクチャリストに対応する動きベクトル予測子と動きベクトルとの間の差と他の参照ピクチャリストに対応する動きベクトル予測子と動きベクトルとの間の差が類似することができる。この場合、特定参照ピクチャリストに対応する動きベクトル差分値の解像度は他の参照ピクチャリストに対応する動きベクトル差分値の解像度と同一の可能性が高いことができる。したがって、本発明の一実施形態によれば、現在ブロックの特定参照ピクチャリストに対応する動きベクトル差分値の解像度は、現在ブロックの他の参照ピクチャリストに対応する動きベクトル差分値の解像度と同一でありうる。 Meanwhile, a difference between a motion vector predictor and a motion vector corresponding to a particular reference picture list may be similar to a difference between a motion vector predictor and a motion vector corresponding to another reference picture list. In this case, the resolution of motion vector difference values corresponding to a particular reference picture list may be likely to be the same as the resolution of motion vector difference values corresponding to other reference picture lists. Therefore, according to an embodiment of the present invention, the resolution of motion vector difference values corresponding to a particular reference picture list of the current block is the same as the resolution of motion vector difference values corresponding to other reference picture lists of the current block. Possible.

図18は、本発明の一実施形態に従って現在ブロックの参照ピクチャリスト別に動きベクトル差分値の解像度がシグナリングされる方法を示す図である。図18を参照すると、第1参照ピクチャリストL0に対応する第1リスト解像度セット(L0 MVD resolution signaling)と第2参照ピクチャリストL1に対応する第2リスト解像度セット(L1 MVD resolution signaling)が各々構成できる。また、第1参照ピクチャリストL0に対応する動きベクトル差分値の解像度を指示する第1リスト解像度指示子と第2参照ピクチャリストL1に対応する動きベクトル差分値の解像度を指示する第2リスト解像度指示子が各々シグナリングできる。 FIG. 18 illustrates a method of signaling the resolution of a motion vector difference value for each reference picture list of a current block according to an embodiment of the present invention. Referring to FIG. 18 , a first list resolution set (L0 MVD resolution signaling) corresponding to a first reference picture list L0 and a second list resolution set (L1 MVD resolution signaling) corresponding to a second reference picture list L1 are respectively configured. can. A first list resolution indicator that indicates the resolution of the motion vector difference value corresponding to the first reference picture list L0 and a second list resolution indicator that indicates the resolution of the motion vector difference value corresponding to the second reference picture list L1. Each child can signal.

例えば、デコーダは第1リスト解像度セット及び第1リスト解像度指示子に基づいて第1参照ピクチャリストに対応する動きベクトル差分値の解像度を獲得することができる。次に、デコーダは第2リスト解像度セット及び第2リスト解像度指示子に基づいて第2参照ピクチャリストに対応する動きベクトル差分値の解像度を獲得することができる。この際、第2リスト解像度セットが含む可用解像度のうち、いずれか1つは第1参照ピクチャリストに対応する動きベクトル差分値の解像度に依存する解像度(L0 resolution)でありうる。 For example, the decoder can obtain the resolution of motion vector difference values corresponding to the first reference picture list based on the first list resolution set and the first list resolution indicator. Next, the decoder can obtain the resolution of the motion vector difference values corresponding to the second reference picture list based on the second list resolution set and the second list resolution indicator. At this time, one of the available resolutions included in the second list resolution set may be a resolution (L0 resolution) depending on the resolution of the motion vector difference value corresponding to the first reference picture list.

具体的な実施形態に従って、第2リスト解像度指示子が既設定された値(0)である場合、デコーダは第1参照ピクチャリストに対応する動きベクトル差分値の解像度に基づいて第2参照ピクチャリストに対応する動きベクトル差分値の解像度を決定することができる。この場合、デコーダは第1参照ピクチャリストに対応する動きベクトル差分値の解像度と同一の解像度を第2参照ピクチャリストに対応する動きベクトル差分値の解像度に使用することができる。この際、既設定された値は第2リスト解像度指示子の値のうち、最も少ない個数のビットを使用して表現される値でありうる。また、第2リスト解像度指示子の他の値は各々残りの可用解像度(Remaining resolution 1、Remaining resolution 2)を指示する指示子値に使われることができる。 According to a specific embodiment, if the second list resolution indicator is a preset value (0), the decoder may select the second reference picture list based on the resolution of the motion vector difference values corresponding to the first reference picture list. can determine the resolution of the motion vector difference values corresponding to . In this case, the decoder can use the same resolution as the resolution of the motion vector differential values corresponding to the first reference picture list for the resolution of the motion vector differential values corresponding to the second reference picture list. At this time, the preset value may be a value expressed using the least number of bits among the values of the second list resolution indicator. Also, other values of the second list resolution indicator can be used as indicator values respectively indicating the remaining available resolutions (Remaining resolution 1, Remaining resolution 2).

図18の実施形態で、第1参照ピクチャリストL0に対応する動きベクトル差分値の解像度が第2参照ピクチャリストL1に対応する動きベクトル差分値の解像度より先に決定されると説明しているが、本開示がこれに制限されるのではない。例えば、第1リスト解像度セットは第2参照ピクチャリストL1に対応する動きベクトル差分値の解像度に依存する解像度を含むことができる。 Although it has been described in the embodiment of FIG. 18 that the resolution of the motion vector difference values corresponding to the first reference picture list L0 is determined prior to the resolution of the motion vector difference values corresponding to the second reference picture list L1. , the disclosure is not limited thereto. For example, the first list resolution set can contain resolutions that depend on the resolution of the motion vector difference values corresponding to the second reference picture list L1.

図19は、現在ブロックの動きベクトル差分値の解像度がピクチャの解像度によってシグナリングされる方法の一実施形態を示す図である。本発明の一実施形態に従って、現在ブロックの動きベクトル差分値の解像度はピクチャの解像度またはサイズのうち、少なくとも1つによって異なる方法によりシグナリングできる。ピクチャの解像度またはサイズに関する情報はエンコーダからシグナリングできる。デコーダは、シグナリングされたピクチャの解像度またはサイズに関する情報を獲得することができる。一実施形態に従って、低解像度ピクチャ(Low resolution picture)と高解像度ピクチャ(high resolution picture)の各々で特定ブロックの動きベクトル差分値の解像度がシグナリングされる方法は互いに異なることがある。図19を参照すると、低解像度ピクチャ(Low resolution picture)と高解像度ピクチャ(high resolution picture)の各々で動きベクトル予測子が指示する基準点から参照ブロックの位置までの相対的な距離が同一の場合でも、高解像度ピクチャで該当距離を示すための値は低解像度ピクチャで該当距離は示す値に比べて大きいことがある。 FIG. 19 is a diagram illustrating an embodiment of how the resolution of the motion vector difference value of the current block is signaled by the picture resolution. According to an embodiment of the present invention, the resolution of the motion vector difference value of the current block can be signaled in different ways depending on at least one of picture resolution and size. Information about picture resolution or size can be signaled from the encoder. The decoder can obtain information about the resolution or size of the signaled picture. According to an embodiment, a method of signaling the resolution of a motion vector difference value of a specific block in each of a low resolution picture and a high resolution picture may be different. Referring to FIG. 19, when the relative distance from the reference point indicated by the motion vector predictor to the position of the reference block is the same in each of the low resolution picture and the high resolution picture. However, the value for indicating the corresponding distance in the high-resolution picture may be larger than the value for indicating the corresponding distance in the low-resolution picture.

これによって、現在ブロックの動きベクトル差分値の解像度は、現在ブロックを含む現在ピクチャに比べてピクチャの解像度が落ちる他のピクチャの動きベクトル差分値の解像度より大きい値に設定される確率が高いことがある。したがって、現在ピクチャが高解像度ピクチャである場合、複数の可用解像度のうち、最も小さい可用解像度が最も短い長さのビットを使用して表現される値により指示されないことがある。例えば、現在ピクチャが高解像度ピクチャである場合、複数の可用解像度のうち、最も小さい可用解像度でない可用解像度が最も短い長さのビットを使用して表現される値により指示できる。前述した実施形態はスケーラブルビデオコーディング(scalable video coding)のようにビデオ信号が含むピクチャの解像度やサイズが変化する場合に適用されることもできる。 Accordingly, the resolution of the motion vector difference value of the current block is likely to be set to a value larger than the resolution of the motion vector difference value of another picture whose resolution is lower than that of the current picture including the current block. be. Therefore, if the current picture is a high resolution picture, the smallest available resolution of the multiple available resolutions may not be indicated by the value represented using the shortest length bits. For example, if the current picture is a high resolution picture, the available resolution that is not the smallest available resolution among the plurality of available resolutions can be indicated by a value expressed using the shortest length bits. The above-described embodiments can also be applied when the resolution and size of pictures included in a video signal change, such as in scalable video coding.

図20は、本発明の一実施形態に従って現在ブロックの参照ピクチャのサイズに基づいて動きベクトル差分値の解像度がシグナリングされる方法を示す図である。一実施形態に従って、動きベクトル差分値の解像度は現在ブロックの参照ピクチャのサイズに基づいてシグナリングできる。図20は、現在ブロックの動きベクトル予測子により指示される基準点2001に基づいて現在ブロックの解像度セットが含む可用解像度の各々に対応する参照ブロック候補を示す。図20で、第3可用解像度(Resolution 3)に対応する第3参照ブロック候補は参照ピクチャ外に位置する。このように、特定可用解像度に基づいて構成された参照ブロック候補の少なくとも一部が参照ピクチャの境界外の場合、該当可用解像度はシグナリング対象から除外できる。即ち、基準点2001を基準に特定可用解像度に基づいて修正された動きベクトル差分値により指示される地点が現在ピクチャの境界外の場合、該当可用解像度はシグナリングされないことがある。 FIG. 20 illustrates how the resolution of the motion vector difference value is signaled based on the size of the reference picture of the current block according to one embodiment of the present invention. According to one embodiment, the resolution of motion vector difference values can be signaled based on the size of the reference picture of the current block. FIG. 20 shows reference block candidates corresponding to each of the available resolutions included in the resolution set of the current block based on the reference point 2001 indicated by the motion vector predictor of the current block. In FIG. 20, the third reference block candidate corresponding to the third available resolution (Resolution 3) is located outside the reference picture. As such, when at least part of reference block candidates configured based on a specific available resolution is outside the reference picture boundary, the available resolution can be excluded from signaling. That is, if the point indicated by the motion vector difference value modified based on the specific available resolution with reference to the reference point 2001 is outside the boundary of the current picture, the available resolution may not be signaled.

例えば、解像度セットがN個の可用解像度を含むことができる。この場合、N個の可用解像度のうち、M個の可用解像度を除外した(N-M)のうち、いずれか1つを指示する解像度指示子がシグナリングできる。この際、M個の可用解像度の各々に対応する参照ブロック候補は参照ピクチャの境界から外れる参照ブロック候補でありうる。これを通じて、エンコーダ及びデコーダは不必要な可用解像度を除外して現在ブロックの動きベクトル差分値の解像度のためのシグナリングオーバーヘッドを減少させることができる。具体的な例によって、第1可用解像度(Resolution 1)、第2可用解像度(Resolution 2)、第3可用解像度(Resolution 3)のうち、いずれか1つをシグナリングする場合、最大2ビットが使われることができる。一方、第1可用解像度(Resolution 1)及び第2可用解像度(Resolution 2)のうち、いずれか1つをシグナリングする場合、最大1ビットが使われることができる。 For example, a resolution set may contain N available resolutions. In this case, a resolution indicator can be signaled to indicate one of (NM) excluding M available resolutions among N available resolutions. At this time, reference block candidates corresponding to each of the M available resolutions may be reference block candidates outside the boundary of the reference picture. Through this, the encoder and decoder can reduce the signaling overhead for the resolution of the motion vector difference value of the current block by excluding unnecessary available resolutions. According to a specific example, when signaling any one of the first available resolution (Resolution 1), the second available resolution (Resolution 2), and the third available resolution (Resolution 3), maximum 2 bits are used. be able to. Meanwhile, when signaling one of the first available resolution (Resolution 1) and the second available resolution (Resolution 2), a maximum of 1 bit may be used.

図20を参照すると、解像度セットは第1可用解像度、第2可用解像度、及び第3可用解像度を含むことができる。この際、現在ブロックのシグナリングされた動きベクトル差分値が第3可用解像度に基づいて修正される場合、現在ブロックの動きベクトルは参照ブロックの境界外の地点を指示するようになる。これによって、エンコーダは第3可用解像度を除外した第1可用解像度及び第2可用解像度のうち、いずれか1つを指示する解像度指示子をシグナリングすることができる。具体的な実施形態に従って、エンコーダは1つのビットを使用して第1可用解像度及び第2可用解像度のうち、いずれか1つを指示する解像度指示子をシグナリングすることができる。 Referring to FIG. 20, a resolution set can include a first available resolution, a second available resolution, and a third available resolution. At this time, if the signaled motion vector difference value of the current block is modified based on the third available resolution, the motion vector of the current block points to a point outside the boundary of the reference block. Accordingly, the encoder can signal a resolution indicator indicating one of the first available resolution and the second available resolution excluding the third available resolution. According to a specific embodiment, the encoder can use one bit to signal a resolution indicator that indicates one of the first available resolution and the second available resolution.

また、デコーダは現在ブロックの参照ピクチャのサイズ及びシグナリングされた動きベクトル差分値に基づいてシグナリング対象から除外される可用解像度を判断することができる。図20の実施形態で、デコーダは第3可用解像度がシグナリングされないことを認知することができる。デコーダは、1つのビットを通じてシグナリングされる解像度指示子に基づいて現在ブロックの動きベクトル差分値の解像度を獲得することができる。 Also, the decoder can determine available resolutions to be excluded from signaling based on the size of the reference picture of the current block and the signaled motion vector difference value. In the embodiment of FIG. 20, the decoder can recognize that the third available resolution is not signaled. A decoder can obtain the resolution of the motion vector difference value of the current block based on the resolution indicator signaled through one bit.

本発明の追加的な実施形態に従って、動きベクトル予測子により指示される基準点の位置に基づいて図20を通じて前述した方法の使用有無が決定できる。例えば、基準点の位置が参照ピクチャの境界から既設定された距離以内の場合、図20を通じて説明された方法が使われることができる。 According to an additional embodiment of the present invention, it is possible to decide whether to use the method described above with reference to FIG. 20 based on the position of the reference point indicated by the motion vector predictor. For example, if the position of the reference point is within a preset distance from the boundary of the reference picture, the method described with reference to FIG. 20 can be used.

一実施形態に従って図20を通じて説明された実施形態は、シグナリングされた動きベクトル差分値のサイズによって適用するか否かが決定できる。例えば、シグナリングされた動きベクトル差分値が既設定された値より大きい場合のみに、エンコーダ及びデコーダは参照ピクチャから外れる参照ブロック候補を生成する可用解像度が存在するかを検討することができる。シグナリングされた動きベクトル差分値が既設定された値より小さい場合、エンコーダ及びデコーダは図20を通じて説明した方法を使用しないことがある。 Whether or not to apply the embodiment described through FIG. 20 according to one embodiment can be determined according to the size of the signaled motion vector difference value. For example, only if the signaled motion vector difference value is greater than a preset value can the encoder and decoder consider if there are any available resolutions to generate reference block candidates that deviate from the reference picture. If the signaled motion vector difference value is smaller than a preset value, the encoder and decoder may not use the method described with reference to FIG.

追加的な実施形態に従って、シグナリング対象から除外された可用解像度に代わって新たな可用解像度が使われることができる。例えば、特定可用解像度に基づいて修正された動きベクトル差分値に対応する参照ブロック候補が参照ピクチャの境界を外に位置する場合、特定可用解像度を指示する指示子値は特定可用解像度と異なる可用解像度を指示することができる。例えば、異なる可用解像度は特定可用解像度より小さい値でありうる。具体的な実施形態に従って、現在ブロックの解像度セットは1/4、1、4サンプル単位の可用解像度で構成できる。4サンプル単位の可用解像度に対応する参照ブロック候補の少なくとも一部が現在ブロックの参照ピクチャの境界外に位置することができる。この場合、4サンプル単位の可用解像度を指示する解像度指示子値は、2サンプル単位の可用解像度を指示することができる。 According to additional embodiments, new available resolutions can be used in place of available resolutions that have been excluded from signaling. For example, if the reference block candidate corresponding to the motion vector difference value modified based on the specific available resolution is located outside the boundary of the reference picture, the indicator value indicating the specific available resolution is different from the specific available resolution. can be instructed. For example, different available resolutions may be less than a particular available resolution. According to a specific embodiment, the resolution set of the current block can consist of available resolutions of 1/4, 1 and 4 samples. At least some of the reference block candidates corresponding to the available resolution of 4 samples may be located outside the boundary of the reference picture of the current block. In this case, the resolution indicator value indicating the available resolution in units of 4 samples may indicate the available resolution in units of 2 samples.

図21は、本発明の一実施形態に従って現在ブロックの動きベクトル差分値の解像度が獲得される方法を示すフローチャートである。図21では、現在ブロックの解像度セットが1/4、1、4サンプル単位の可用解像度を含むものとして図示しているが、本開示がこれに制限されるのではない。例えば、1/4、1、4サンプル単位の可用解像度のうち、少なくとも一部は1/2、2、1/8、1/16サンプル単位の可用解像度のうち、一部により代替できる。 FIG. 21 is a flowchart illustrating a method for obtaining the resolution of the motion vector difference value of the current block according to one embodiment of the present invention. Although FIG. 21 illustrates the resolution set for the current block as including available resolutions of 1/4, 1, and 4 samples, this disclosure is not so limited. For example, at least some of the available resolutions of 1/4, 1, and 4 sample units can be replaced with some of the available resolutions of 1/2, 2, 1/8, and 1/16 sample units.

図21を参照すると、デコーダはビットストリームをパーシング(parsing)して現在ブロックのシグナリングされた動きベクトル差分値を獲得することができる(S2101)。この際、シグナリングされた動きベクトル差分値は、動きベクトル差分値の解像度単位で表現された値でありうる。 Referring to FIG. 21, the decoder can obtain the signaled motion vector difference value of the current block by parsing the bitstream (S2101). At this time, the signaled motion vector difference value may be a value expressed in units of resolution of the motion vector difference value.

また、デコーダは現在ブロックの動きベクトル差分値の解像度を指示する解像度指示子を獲得することができる。一実施形態に従って、解像度指示子は可変長さのビットで表現される複数の値のうち、いずれか1つを示すことができる。デコーダは解像度指示子の最初のビットをパーシングすることができる(S2103)。次に、デコーダは解像度指示子の最初のビットが‘0’であるかを判断することができる(S2105)。最初のビットが‘0’の場合、1/4単位の可用解像度が現在ブロックの動きベクトル差分値の解像度に使われることができる。この場合、解像度指示子は後述する2番目のビットを含まないことがある。 Also, the decoder can obtain a resolution indicator that indicates the resolution of the motion vector difference value of the current block. According to one embodiment, the resolution indicator can indicate any one of multiple values represented by bits of variable length. The decoder can parse the first bit of the resolution indicator (S2103). Next, the decoder can determine whether the first bit of the resolution indicator is '0' (S2105). If the first bit is '0', the available resolution of 1/4 units can be used for resolution of the motion vector difference value of the current block. In this case, the resolution indicator may not include the second bit described below.

最初のビットが‘0’でない場合、デコーダは4-サンプル単位の可用解像度に対応する参照ブロック候補が参照ピクチャの境界内に位置するかを判断することができる(S2107)。ここで、4サンプル単位の可用解像度に対応する参照ブロック候補は4サンプル単位の可用解像度に基づいて獲得された動きベクトル候補が指示する参照ブロック候補でありうる。具体的に、前記動きベクトル候補はステップS2101のシグナリングされた動きベクトル差分値から4サンプル単位の可用解像度に基づいて修正された動きベクトル差分値を、現在ブロックの動きベクトル予測子に足した値でありうる。一実施形態に従って、4サンプル単位の可用解像度に対応する参照ブロック候補が参照ピクチャの境界内に位置しない場合、1サンプル単位の可用解像度を現在ブロックの動きベクトル差分値の解像度に使用することができる。この場合、解像度指示子は後述する2番目のビットを含まないことがある。 If the first bit is not '0', the decoder can determine whether the reference block candidate corresponding to the 4-sample unit available resolution is located within the boundary of the reference picture (S2107). Here, the reference block candidate corresponding to the available resolution of 4 samples may be a reference block candidate indicated by the motion vector candidate obtained based on the available resolution of 4 samples. Specifically, the motion vector candidate is a value obtained by adding a motion vector difference value corrected based on the available resolution in units of 4 samples from the signaled motion vector difference value in step S2101 to the motion vector predictor of the current block. Possible. According to one embodiment, if the reference block candidate corresponding to the available resolution of 4 samples is not located within the boundary of the reference picture, the available resolution of 1 sample can be used as the resolution of the motion vector difference value of the current block. . In this case, the resolution indicator may not include the second bit described below.

4サンプル単位の可用解像度に対応する参照ブロック候補が参照ピクチャの境界内に位置する場合、デコーダは解像度指示子の2番目のビットをパーシングすることができる(S2109)。次に、デコーダは解像度指示子の2番目のビットに基づいて現在ブロックの動きベクトル差分値の解像度を決定することができる(S2111)。例えば、1サンプル単位の可用解像度を指示する指示子値は‘10’であり、4サンプル単位の可用解像度を指示する指示子値は‘11’でありうる。解像度指示子の2番目のビットが‘0’の場合、デコーダは1サンプル単位の可用解像度を現在ブロックの動きベクトル差分値の解像度に使用することができる。反対に、解像度指示子の2番目のビットが‘1’の場合、デコーダは4サンプル単位の可用解像度を現在ブロックの動きベクトル差分値の解像度に使用することができる。 If the reference block candidate corresponding to the available resolution of 4 sample units is located within the boundary of the reference picture, the decoder can parse the second bit of the resolution indicator (S2109). Next, the decoder can determine the resolution of the motion vector difference value of the current block based on the second bit of the resolution indicator (S2111). For example, the indicator value indicating the available resolution in units of 1 sample may be '10', and the indicator value indicating the available resolution in units of 4 samples may be '11'. If the second bit of the resolution indicator is '0', the decoder can use the available resolution of 1 sample unit as the resolution of the motion vector difference value of the current block. Conversely, if the second bit of the resolution indicator is '1', the decoder can use the available resolution of 4 samples as the resolution of the motion vector differential value of the current block.

図21で、シグナリングされた動きベクトル差分値を獲得するステップ(S2101)は、解像度指示子の最初のビットをパーシングするステップ(S2103)より先行するものとして図示されているが、本開示がこれに制限されるのではない。例えば、ステップS2101は、ステップS2103に後続することができる。一実施形態に従って、解像度指示子が複数のビットで表現される場合、各々のビットはビデオ信号処理のためのシンタックス(syntax)上で別途のインデックスまたはフラグ(flag)を通じて具現できる。 Although the step of obtaining the signaled motion vector difference value (S2101) is shown in FIG. not restricted. For example, step S2101 may follow step S2103. According to one embodiment, when the resolution indicator is represented by a plurality of bits, each bit can be implemented as a separate index or flag on the syntax for video signal processing.

追加的な実施形態に従って、解像度指示子の2番目のビットをパーシングするステップ(S2109)は少なくとも現在ブロックの動きベクトル予測子を獲得するステップの以後に遂行できる。解像度指示子の2番目のビットは現在ブロックの動きベクトル予測子が指示する位置によってパーシングするか否かが決定できる。前述したように、特定可用解像度に対応する参照ブロック候補が参照ピクチャの境界外に位置する場合、該当可用解像度のためのシグナリングが省略できるためである。即ち、ビデオ信号がエンコーディングまたはデコーディングされるシンタックス上で解像度指示子の2番目のビットは現在ブロックの動きベクトル予測子情報より以後にパーシングできる。 According to additional embodiments, the step of parsing the second bit of the resolution indicator (S2109) can be performed at least after the step of obtaining the motion vector predictor of the current block. It is possible to determine whether to parse the second bit of the resolution indicator according to the position indicated by the motion vector predictor of the current block. This is because, as described above, when a reference block candidate corresponding to a specific available resolution is located outside the boundary of a reference picture, signaling for the corresponding available resolution can be omitted. That is, the second bit of the resolution indicator can be parsed after the motion vector predictor information of the current block in the syntax for encoding or decoding the video signal.

図22は、本発明の一実施形態に従って現在ブロックの動きベクトル差分値の解像度が獲得される方法を示すフローチャートである。図22を参照すると、デコーダはビットストリームをパーシングして現在ブロックのシグナリングされた動きベクトル差分値を獲得することができる(01)。この際、シグナリングされた動きベクトル差分値は、動きベクトル差分値の解像度単位で表現された値でありうる。また、デコーダは現在ブロックの動きベクトル差分値の解像度を指示する解像度指示子を獲得することができる。デコーダは、解像度指示子のn番目のビットをパーシングすることができる(S2205)。ここで、nは1からNまでの整数でありうる。nは1からNまでループ演算によって順次に増加する値でありうる。解像度指示子のn番目のビットが‘0’の場合、デコーダはn番目の可用解像度を現在ブロックの動きベクトル差分値の解像度に使用することができる。この際、n番目の可用解像度は現在ブロックの解像度セットが含む可用解像度のうち、n番目の指示子値により指示される可用解像度でありうる。 FIG. 22 is a flowchart illustrating a method for obtaining the resolution of the motion vector difference value of the current block according to one embodiment of the present invention. Referring to FIG. 22, the decoder can parse the bitstream to obtain the signaled motion vector difference value of the current block ( S 2 2 01). At this time, the signaled motion vector difference value may be a value expressed in units of resolution of the motion vector difference value. Also, the decoder can obtain a resolution indicator that indicates the resolution of the motion vector difference value of the current block. The decoder can parse the nth bit of the resolution indicator (S2205). Here, n can be an integer from 1 to N. n may be a value that is sequentially increased from 1 to N through a loop operation. If the nth bit of the resolution indicator is '0', the decoder can use the nth available resolution for the resolution of the motion vector difference value of the current block. At this time, the n-th available resolution may be the available resolution indicated by the n-th indicator value among the available resolutions included in the resolution set of the current block.

図22は、本発明の一実施形態に従って現在ブロックの動きベクトル差分値の解像度が獲得される方法を示すフローチャートである。図22を参照すると、デコーダはビットストリームをパーシングして現在ブロックのシグナリングされた動きベクトル差分値を獲得することができる(2001)。この際、シグナリングされた動きベクトル差分値は、動きベクトル差分値の解像度単位で表現された値でありうる。また、デコーダは現在ブロックの動きベクトル差分値の解像度を指示する解像度指示子を獲得することができる。デコーダは、解像度指示子のn番目のビットをパーシングすることができる(S2205)。ここで、nは1からNまでの整数でありうる。nは1からNまでループ演算によって順次に増加する値でありうる。解像度指示子のn番目のビットが‘0’の場合、デコーダはn番目の可用解像度を現在ブロックの動きベクトル差分値の解像度に使用することができる。この際、n番目の可用解像度は現在ブロックの解像度セットが含む可用解像度のうち、n番目の指示子値により指示される可用解像度でありうる。 FIG. 22 is a flowchart illustrating a method for obtaining the resolution of the motion vector difference value of the current block according to one embodiment of the present invention. Referring to FIG. 22, the decoder can parse the bitstream to obtain the signaled motion vector difference value of the current block (2001). At this time, the signaled motion vector difference value may be a value expressed in units of resolution of the motion vector difference value. Also, the decoder can obtain a resolution indicator that indicates the resolution of the motion vector difference value of the current block. The decoder can parse the nth bit of the resolution indicator (S2205). Here, n can be an integer from 1 to N. n may be a value that is sequentially increased from 1 to N through a loop operation. If the nth bit of the resolution indicator is '0', the decoder can use the nth available resolution as the resolution of the motion vector difference value of the current block. At this time, the n-th available resolution may be the available resolution indicated by the n-th indicator value among the available resolutions included in the resolution set of the current block.

解像度指示子のn番目のビットが‘0’でない場合、デコーダは以前解像度セットからn番目の可用解像度を除外することができる(S2207)。デコーダは、以前解像度セットからn番目の可用解像度を除外して第1現在解像度セットを獲得することができる(S2207)。一実施形態に従って、nが1の場合、デコーダは初期解像度セット(initial resolution set)からn番目の可用解像度を除外して第1現在解像度セットを獲得することができる。次に、デコーダは第1現在解像度セットが含む可用解像度の個数が1つであるかを判断することができる(S2209)。第1現在解像度セットが含む可用解像度の個数が1つの場合、デコーダは第1現在解像度セットが含む可用解像度を現在ブロックの動きベクトル差分値の解像度に使用することができる。 If the nth bit of the resolution indicator is not '0', the decoder can exclude the nth available resolution from the previous resolution set (S2207). The decoder may obtain a first current resolution set by excluding the n-th available resolution from the previous resolution set (S2207). According to one embodiment, if n is 1, the decoder may exclude the nth available resolution from the initial resolution set to obtain a first current resolution set. Next, the decoder can determine whether the number of available resolutions included in the first current resolution set is one (S2209). If the number of available resolutions included in the first current resolution set is one, the decoder can use the available resolutions included in the first current resolution set as the resolution of the motion vector difference value of the current block.

次に、デコーダは第2現在解像度セットが含む可用解像度の個数が1つであるかを判断することができる(S2213)。第2現在解像度セットが含む可用解像度の個数が1つの場合、デコーダは第2現在解像度セットが含む可用解像度を現在ブロックの動きベクトル差分値の解像度に使用することができる。第1現在解像度セットが含む可用解像度の個数が1つでない場合、デコーダはステップS2203乃至ステップ13をまた遂行することができる。また、デコーダはnを1増加させることができる。この際、デコーダは次のループ演算のステップS2207で第2現在解像度セットを以前解像度セットに使用することができる。 Next, the decoder can determine whether the number of available resolutions included in the second current resolution set is one (S2213). If the number of available resolutions included in the second current resolution set is one, the decoder can use the available resolutions included in the second current resolution set as the resolution of the motion vector difference value of the current block. If the number of available resolutions included in the first current resolution set is not one , the decoder may also perform steps S2203 through S2213 . Also, the decoder can increment n by one. At this time, the decoder can use the second current resolution set as the previous resolution set in step S2207 of the next loop operation.

次に、デコーダは第2現在解像度セットが含む可用解像度の個数が1つであるかを判断することができる(S2213)。第2現在解像度セットが含む可用解像度の個数が1つの場合、デコーダは第2現在解像度セットが含む可用解像度を現在ブロックの動きベクトル差分値の解像度に使用することができる。第1現在解像度セットが含む可用解像度の個数が1つでない場合、デコーダはステップS2203乃至ステップ2013をまた遂行することができる。また、デコーダはnを1増加させることができる。この際、デコーダは次のループ演算のステップS2207で第2現在解像度セットを以前解像度セットに使用することができる。 Next, the decoder can determine whether the number of available resolutions included in the second current resolution set is one (S2213). If the number of available resolutions included in the second current resolution set is one, the decoder can use the available resolutions included in the second current resolution set as the resolution of the motion vector difference value of the current block. If the number of available resolutions included in the first current resolution set is not 1, the decoder may also perform steps 2203 through 2013 . Also, the decoder can increment n by one. At this time, the decoder can use the second current resolution set as the previous resolution set in step S2207 of the next loop operation.

図23は、本発明の一実施形態に従って現在ブロックの動きベクトルが獲得される方法を示すフローチャートである。本発明の一実施形態に従って、現在ブロックの動きベクトル差分値を示す情報は動きベクトル差分値に対する第1情報及び動きベクトル差分値に対する第2情報を含むことができる。この際、第1情報及び第2情報は、各々動きベクトル差分値に対する互いに異なる情報でありうる。図23を参照すると、デコーダは動きベクトル差分値に対する第1情報をパーシングすることができる。また、デコーダは動きベクトル差分値に対する第2情報をパーシングすることができる。次に、デコーダは動きベクトル差分値に対する第1情報及び動きベクトル差分値に対する第2情報に基づいて現在ブロックの動きベクトルを獲得することができる。本発明の一実施形態に従って、図23で、動きベクトル差分値に対する第1情報または第2情報をパーシングするステップのうち、いずれか1つは省略できる。以下、現在ブロックの動きベクトル差分値に対する第1情報または第2情報がパーシングされる条件について説明する。 FIG. 23 is a flow chart illustrating how the motion vector of the current block is obtained according to one embodiment of the present invention. According to an embodiment of the present invention, the information indicating the motion vector difference value of the current block may include first information about the motion vector difference value and second information about the motion vector difference value. At this time, the first information and the second information may be different information about the motion vector difference value. Referring to FIG. 23, the decoder can parse the first information for motion vector difference values. Also, the decoder can parse the second information for the motion vector difference values. Next, the decoder can obtain the motion vector of the current block based on the first information about the motion vector difference value and the second information about the motion vector difference value. According to an embodiment of the present invention, any one of the steps of parsing the first information or the second information for the motion vector difference value in FIG. 23 may be omitted. Hereinafter, conditions for parsing the first information or the second information about the motion vector difference value of the current block will be described.

図24は、本発明の一実施形態に従って現在ブロックの動きベクトルが獲得される方法を示すフローチャートである。本発明の一実施形態に従って、現在ブロックの動きベクトル差分値を示す情報は動きベクトル差分値に対する第1情報及び動きベクトル差分値に対する第2情報を含むことができる。特定の状況で、動きベクトル差分値に対する第1情報及び動きベクトル差分値に対する第2情報のうち、いずれか1つを通じて現在ブロックの動きベクトルが決定できる。一方、他の状況では、動きベクトル差分値に対する第1情報及び動きベクトル差分値に対する第2情報のうち、いずれか1つだけでは1つの動きベクトルが決定され難いこともある。 FIG. 24 is a flow chart illustrating how the motion vector of the current block is obtained according to one embodiment of the present invention. According to an embodiment of the present invention, the information indicating the motion vector difference value of the current block may include first information about the motion vector difference value and second information about the motion vector difference value. In a specific situation, the motion vector of the current block can be determined through one of the first information about the motion vector difference value and the second information about the motion vector difference value. Meanwhile, in other situations, it may be difficult to determine one motion vector using only one of the first information about the motion vector difference value and the second information about the motion vector difference value.

図24を参照すると、デコーダは動きベクトル差分値に対する第1情報をパーシングすることができる。次に、デコーダは動きベクトル差分値に対する第1情報を使用して複数の参照ブロック候補を獲得することができる。デコーダは、複数の参照ブロック候補の全部が参照ピクチャの境界内に位置するかを判断することができる。複数の参照ブロック候補のうちの一部が参照ピクチャの境界外に位置する場合、デコーダは動きベクトル差分値に対する第1情報に基づいて現在ブロックの動きベクトルを獲得することができる。複数の参照ブロック候補の全部が参照ピクチャの境界内に位置する場合、デコーダは動きベクトル差分値に対する第2情報をパーシングすることができる。次に、デコーダは動きベクトル差分値に対する第1情報及び動きベクトル差分値に対する第2情報に基づいて現在ブロックの動きベクトルを獲得することができる。 Referring to FIG. 24, the decoder can parse the first information for motion vector difference values. Next, the decoder can obtain a plurality of reference block candidates using the first information on the motion vector difference values. The decoder can determine whether all of the multiple reference block candidates lie within the boundaries of the reference picture. If some of the plurality of reference block candidates are located outside the boundary of the reference picture, the decoder can obtain the motion vector of the current block based on the first information on the motion vector difference value. The decoder can parse the second information for motion vector difference values if all of the plurality of reference block candidates are located within the boundary of the reference picture. Next, the decoder can obtain the motion vector of the current block based on the first information about the motion vector difference value and the second information about the motion vector difference value.

一実施形態に従って、現在ブロックの動きベクトル差分値に対する第1情報は動きベクトル差分値の符号情報を除外した情報でありうる。例えば、現在ブロックの動きベクトル差分値に対する第1情報は現在ブロックの動きベクトル差分値の絶対値を示すことができる。また、現在ブロックの動きベクトル差分値に対する第2情報は、現在ブロックの動きベクトル差分値の符号を示すことができる。前述した実施形態に従って、特定ブロックの動きベクトル差分値は第2情報に対するパーシング無しで獲得できる。これによって、エンコーダ及びデコーダは動きベクトル差分値のためのシグナリングオーバーヘッドを減少させることができる。以下では、現在ブロックの動きベクトル差分値の符号情報が暗黙的にシグナリングされる方法について具体的に説明する。 According to an embodiment, the first information about the motion vector difference value of the current block may be information excluding sign information of the motion vector difference value. For example, the first information about the motion vector difference value of the current block may indicate the absolute value of the motion vector difference value of the current block. Also, the second information about the motion vector difference value of the current block may indicate the sign of the motion vector difference value of the current block. According to the above-described embodiments, a motion vector difference value of a specific block can be obtained without parsing the second information. This allows the encoder and decoder to reduce signaling overhead for motion vector differential values. Hereinafter, a method of implicitly signaling the sign information of the motion vector difference value of the current block will be described in detail.

図25を参照すると、負の符号(-)が適用された現在ブロックの動きベクトル差分値のx軸成分及び正の符号(+)が適用された現在ブロックの動きベクトル差分値のy軸成分に基づいて、第4参照ブロック候補(Candidate reference block 1)が獲得できる。また、正の符号(+)が適用された現在ブロックの動きベクトル差分値のx軸成分及び正の符号()が適用された現在ブロックの動きベクトル差分値のy軸成分に基づいて、第5参照ブロック候補(Candidate reference block 2)が獲得できる。 Referring to FIG. 25, the x-axis component of the motion vector difference value of the current block with a negative sign (-) and the y-axis component of the motion vector difference value of the current block with a positive sign (+) are applied. Based on this, a fourth reference block candidate (Candidate reference block 1) can be obtained. Also, based on the x-axis component of the motion vector difference value of the current block to which the positive sign ( + ) is applied and the y-axis component of the motion vector difference value of the current block to which the positive sign (+) is applied, 5 reference block candidates (Candidate reference block 2) can be obtained.

図25を参照すると、負の符号(-)が適用された現在ブロックの動きベクトル差分値のx軸成分及び正の符号(+)が適用された現在ブロックの動きベクトル差分値のy軸成分に基づいて、第4参照ブロック候補(Candidate reference block 1)が獲得できる。また、正の符号(+)が適用された現在ブロックの動きベクトル差分値のx軸成分及び正の符号(-)が適用された現在ブロックの動きベクトル差分値のy軸成分に基づいて、第5参照ブロック候補(Candidate reference block 2)が獲得できる。 Referring to FIG. 25, the x-axis component of the motion vector difference value of the current block with a negative sign (-) and the y-axis component of the motion vector difference value of the current block with a positive sign (+) are applied. Based on this, a fourth reference block candidate (Candidate reference block 1) can be obtained. Also, based on the x-axis component of the motion vector difference value of the current block to which the positive sign (+) is applied and the y-axis component of the motion vector difference value of the current block to which the positive sign (-) is applied, 5 reference block candidates (Candidate reference block 2) can be obtained.

一実施形態に従って、第4参照ブロック候補(Candidate reference block 1)及び第5参照ブロック候補(Candidate reference block 2)のうち、いずれか1つが参照ピクチャ(Reference picture)の境界外に位置する場合、現在ブロックの動きベクトル差分値のx軸成分の符号情報はハイディングできる。この場合、エンコーダはハイディングされた符号情報をエンコーディングしないことがある。また、デコーダはハイディングされた符号情報に対応する動きベクトル差分値の符号を該当符号情報に対するパーシング過程を遂行しないで決定することができる。 According to one embodiment, if any one of the fourth candidate reference block (Candidate reference block 1) and the fifth candidate reference block (Candidate reference block 2) is located outside the boundary of the reference picture, the current Sign information of the x-axis component of the block motion vector difference value can be hidden. In this case, the encoder may not encode the hidden code information. In addition, the decoder can determine the sign of the motion vector difference value corresponding to the hidden code information without parsing the corresponding code information.

図25で、第4参照ブロック候補(Candidate reference block 1)は参照ピクチャの境界外に位置することができる。この場合、現在ブロックの動きベクトル差分値のx軸成分の符号情報はハイディングできる。デコーダは、動きベクトル差分値のx軸成分の符号情報をパーシングする動作無しで、動きベクトル差分値のx軸成分の符号情報を獲得することができる。デコーダは動きベクトル差分値のx軸成分の符号に正の符号を使用することができる。 In FIG. 25, the fourth reference block candidate (Candidate reference block 1) can be located outside the boundary of the reference picture. In this case, sign information of the x-axis component of the motion vector difference value of the current block can be hidden. The decoder can obtain the sign information of the x-axis component of the motion vector differential value without parsing the sign information of the x-axis component of the motion vector differential value. A decoder can use a positive sign for the sign of the x-axis component of the motion vector difference value.

図26は、本発明の一実施形態に従って現在ブロックの動きベクトル差分値の符号ビットが暗黙的にシグナリングされる方法を示す図である。一実施形態に従って、現在ブロックの動きベクトル差分値の符号が決定される前まで現在ブロックの動きベクトル予測子が決定されないことがある。例えば、ビデオ信号処理のためのシンタックス上で現在ブロックのMVPを指示するMVPインデックスがパーシングされる前に現在ブロックの動きベクトル差分値の符号が決定できる。この場合、デコーダは複数のMVP候補(MVP candidate A, MVP candidate B)の各々に対して負の符号または正の符号が適用された動きベクトル差分値を足して複数の参照ブロック候補(Candidate reference block A-1, Candidate reference block A-2, Candidate reference block B-1, Candidate reference block B-2)を獲得することができる。 FIG. 26 illustrates how the sign bit of the motion vector difference value of the current block is implicitly signaled according to an embodiment of the present invention. According to one embodiment, the motion vector predictor for the current block may not be determined until the sign of the motion vector difference value for the current block is determined. For example, the sign of the motion vector difference value of the current block can be determined before the MVP index, which indicates the MVP of the current block on the syntax for video signal processing, is parsed. In this case, the decoder adds motion vector differential values to which a negative sign or a positive sign is applied to each of a plurality of MVP candidates (MVP candidate A, MVP candidate B) to obtain a plurality of candidate reference blocks (Candidate reference block). A-1, Candidate reference block A-2, Candidate reference block B-1, Candidate reference block B-2).

次に、デコーダは負の符号が適用された動きベクトル差分値の特定成分に基づいた複数の参照ブロック候補(Candidate reference block A-1, Candidate reference block B-1)の全部が参照ピクチャの境界外に位置するかを判断することができる。負の符号が適用された動きベクトル差分値の特定成分に基づいた複数の参照ブロック候補の全部が参照ピクチャの境界外に位置する場合、デコーダは特定成分の符号情報をパーシングする動作無しで現在ブロックの動きベクトル差分値の特定成分の符号を決定することができる。この場合、デコーダは正の符号を現在ブロックの動きベクトル差分値の特定成分の符号に使用することができる。 Next, the decoder determines that all of the plurality of reference block candidates (Candidate reference block A-1, Candidate reference block B-1) based on a particular component of the motion vector difference value to which the negative sign is applied are outside the boundary of the reference picture. It is possible to determine whether it is located in If all of the plurality of reference block candidates based on a particular component of the motion vector difference value to which the negative sign is applied are located outside the boundary of the reference picture, the decoder may select the current block without parsing the code information of the particular component. can determine the sign of a particular component of the motion vector difference value. In this case, the decoder can use the positive sign as the sign of the specific component of the motion vector difference value of the current block.

また、デコーダは正の符号が適用された動きベクトル差分値の特定成分に基づいた複数の参照ブロック候補(Candidate reference block A-2, Candidate reference block B-2)の全部が参照ピクチャの境界外に位置するかを判断することもできる。正の符号が適用された動きベクトル差分値の特定成分に基づいた複数の参照ブロック候補の全部が参照ピクチャの境界外に位置する場合、デコーダは特定成分の符号情報をパーシングする動作無しで現在ブロックの動きベクトル差分値の特定成分の符号を決定することができる。この場合、デコーダは負の符号を現在ブロックの動きベクトル差分値の特定成分の符号に使用することができる。 In addition, the decoder detects that all of the plurality of reference block candidates (Candidate reference block A-2, Candidate reference block B-2) based on a specific component of the motion vector difference value to which the positive sign is applied are outside the boundary of the reference picture. You can also determine where it is located. If all of a plurality of reference block candidates based on a particular component of a motion vector difference value to which a positive sign is applied are located outside the boundary of the reference picture, the decoder may select the current block without parsing the code information of the particular component. can determine the sign of a particular component of the motion vector difference value. In this case, the decoder can use the negative sign as the sign of the specific component of the motion vector difference value of the current block.

図27は、本発明の一実施形態に従って現在ブロックの動きベクトル差分値の符号ビットが暗黙的にシグナリングされる方法を示す図である。一実施形態に従って、現在ブロックの動きベクトル差分値の符号が決定される前まで現在ブロックの動きベクトル差分値の解像度が決定されないことがある。例えば、ビデオ信号処理のためのシンタックス上で現在ブロックの動きベクトル差分値の解像度を指示する解像度指示子がパーシングされる前に現在ブロックの動きベクトル差分値の符号が決定できる。この場合、デコーダは複数の可用解像度(res 1、res 2)のうちのいずれか1つが掛けられて、負の符号及び正の符号のうちのいずれか1つが適用された動きベクトル差分値を現在ブロックの動きベクトル予測子に足して複数の参照ブロック候補(Candidate reference block 1-1, Candidate reference block 1-2, Candidate reference block 2-1, Candidate reference block 2-2)を獲得することができる。 FIG. 27 illustrates how the sign bit of the motion vector difference value of the current block is implicitly signaled according to an embodiment of the present invention. According to one embodiment, the resolution of the motion vector difference value of the current block may not be determined before the sign of the motion vector difference value of the current block is determined. For example, the sign of the motion vector difference value of the current block can be determined before parsing the resolution indicator indicating the resolution of the motion vector difference value of the current block on the syntax for video signal processing. In this case, the decoder multiplies any one of a plurality of available resolutions (res 1, res 2) to present a motion vector difference value to which either one of a negative sign and a positive sign is applied. A plurality of reference block candidates (Candidate reference block 1-1, Candidate reference block 1-2, Candidate reference block 2-1, Candidate reference block 2-2) can be obtained by adding to the block motion vector predictor.

次に、デコーダは負の符号が適用された動きベクトル差分値の特定成分に基づいた複数の参照ブロック候補(Candidate reference block 2-1, Candidate reference block 1-1)の全部が参照ピクチャの境界外に位置するかを判断することができる。この際、負の符号が適用された動きベクトル差分値の特定成分に基づいた複数の参照ブロック候補の各々を構成するために動きベクトル差分値に適用された可用解像度は互いに異なることがある。負の符号が適用された動きベクトル差分値の特定成分に基づいた複数の参照ブロック候補の全部が参照ピクチャの境界外に位置する場合、デコーダは特定成分の符号情報をパーシングする動作無しで現在ブロックの動きベクトル差分値の特定成分の符号を決定することができる。この場合、デコーダは正の符号を現在ブロックの動きベクトル差分値の特定成分の符号に使用することができる。 Next, the decoder determines that all of the plurality of reference block candidates (Candidate reference block 2-1, Candidate reference block 1-1) based on a particular component of the motion vector difference value to which the negative sign is applied are outside the boundary of the reference picture. It is possible to determine whether it is located in At this time, the available resolutions applied to the motion vector difference values to construct each of the plurality of reference block candidates based on the specific components of the motion vector difference values to which the negative sign is applied may be different. If all of a plurality of reference block candidates based on a particular component of a motion vector difference value to which a negative sign is applied are located outside the boundary of the reference picture, the decoder may select the current block without parsing the code information of the particular component. can determine the sign of a particular component of the motion vector difference value. In this case, the decoder can use the positive sign as the sign of the specific component of the motion vector difference value of the current block.

また、デコーダは正の符号が適用された動きベクトル差分値の特定成分に基づいた複数の参照ブロック候補(Candidate reference block 1-2, Candidate reference block 2-2)の全部が参照ピクチャの境界外に位置するかを判断することもできる。この際、正の符号が適用された動きベクトル差分値の特定成分に基づいた複数の参照ブロック候補の各々を構成するために動きベクトル差分値に適用された可用解像度は互いに異なることがある。正の符号が適用された動きベクトル差分値の特定成分に基づいた複数の参照ブロック候補の全部が参照ピクチャの境界外に位置する場合、デコーダは特定成分の符号情報をパーシングする動作無しで現在ブロックの動きベクトル差分値の特定成分の符号を決定することができる。この場合、デコーダは負の符号を現在ブロックの動きベクトル差分値の特定成分の符号に使用することができる。 Also, the decoder determines that all of the plurality of reference block candidates (Candidate reference block 1-2, Candidate reference block 2-2) based on a specific component of the motion vector difference value to which the positive sign is applied are outside the boundary of the reference picture. You can also determine where it is located. At this time, the available resolutions applied to the motion vector difference values to construct each of the plurality of reference block candidates based on the specific components of the motion vector difference values to which the positive sign is applied may differ from each other. If all of a plurality of reference block candidates based on a particular component of a motion vector difference value to which a positive sign is applied are located outside the boundary of the reference picture, the decoder may select the current block without parsing the code information of the particular component. can determine the sign of a particular component of the motion vector difference value. In this case, the decoder can use the negative sign as the sign of the specific component of the motion vector difference value of the current block.

図25乃至図27では、説明の便宜のために動きベクトル差分値のx軸成分を例に挙げて説明しているが、本開示がこれに制限されるのではない。例えば、前述した実施形態は動きベクトル差分値のy軸成分に対して同一または相応する方法により適用できる。 25 to 27 exemplify the x-axis component of the motion vector difference value for convenience of explanation, but the present disclosure is not limited thereto. For example, the above-described embodiments can be applied in the same or corresponding manner to the y-axis component of motion vector difference values.

図28は、図25乃至図27の実施形態に対するシンタックスの例示を示す図である。図28の第1シンタックスオーダー(syntax order)2801を参照すると、デコーダは動きベクトル差分値の絶対値(|MVD|)に基づいて動きベクトル差分値の符号情報に対するパーシングするか否かを決定することができる。図28の第2シンタックスオーダー2802を参照すると、デコーダは動きベクトル差分値の絶対値(|MVD|)及び動きベクトル差分値の解像度(MVD resolution)に基づいて動きベクトル差分値の符号情報に対するパーシングするか否かを決定することができる。図28の第3シンタックスオーダー2803を参照すると、デコーダは動きベクトル差分値の絶対値(|MVD|)、動きベクトル差分値の解像度(MVD resolution)及びMVPフラグ(MVP flag)に基づいて動きベクトル差分値の符号情報に対するパーシングするか否かを決定することができる。 FIG. 28 shows an example syntax for the embodiment of FIGS. 25-27. Referring to the first syntax order 2801 of FIG. 28, the decoder determines whether to parse the sign information of the motion vector difference value based on the absolute value (|MVD|) of the motion vector difference value. be able to. Referring to the second syntax order 2802 of FIG. 28, the decoder parses the sign information of the motion vector difference value based on the absolute value (|MVD|) of the motion vector difference value and the resolution (MVD resolution) of the motion vector difference value. You can decide whether to Referring to the third syntax order 2803 of FIG. 28, the decoder determines the motion vector based on the absolute value of the motion vector difference value (|MVD|), the resolution of the motion vector difference value (MVD resolution), and the MVP flag (MVP flag). It can be determined whether to parse the sign information of the difference value.

図29は、本発明の一実施形態に従って現在ブロックの動きベクトル差分値の解像度及びMVPがシグナリングされる方法を示す図である。本発明の一実施形態に従って、1つの統合指示子に基づいて動きベクトルと関連した2つ以上の情報がシグナリングできる。例えば、現在ブロックの動きベクトル差分値の解像度と現在ブロックのMVPは1つの統合指示子(MVR Index)によりシグナリングできる。 FIG. 29 is a diagram illustrating how the resolution and MVP of the motion vector difference value of the current block are signaled according to an embodiment of the present invention. According to one embodiment of the invention, more than one information associated with a motion vector can be signaled based on one integration indicator. For example, the resolution of the motion vector difference value of the current block and the MVP of the current block can be signaled by one integration indicator (MVR Index).

図29のように、MVPインデックスの各々にマッピングされる可用解像度が事前に設定できる。エンコーダ及びデコーダはMVPインデックスの各々と可用解像度が互いにマッピングされたテーブルを共有することができる。また、エンコーダ及びデコーダは共有されたテーブル及び統合指示子(MVR Index)に基づいて現在ブロックのMVP及び現在ブロックの動きベクトル差分値の解像度を獲得することができる。 As shown in FIG. 29, the available resolutions mapped to each MVP index can be preset. The encoder and decoder can share a table that maps each of the MVP indices and the available resolutions to each other. In addition, the encoder and decoder can obtain the MVP of the current block and the resolution of the motion vector differential value of the current block based on the shared table and integration index (MVR Index).

一方、動きベクトル差分値の修正に使われた解像度によって動きベクトルの正確度が変わることができる。例えば、動きベクトル差分値の修正に使われた解像度が大きいほど、動きベクトルの正確度が低くなることがある。これによって、特定可用解像度が現在ブロックの動きベクトル差分値の解像度に使われる場合、現在ブロックの追加的な動きベクトル差分値がシグナリングできる。以下、追加的な動きベクトル差分値は第2乃至第n動きベクトル差分値と称されることができる。また、追加的な動きベクトル差分値を除外した既存の動きベクトル差分値は第1動きベクトル差分値と称されることもできる。 Meanwhile, the accuracy of the motion vector may vary depending on the resolution used to modify the motion vector difference value. For example, the greater the resolution used to modify the motion vector difference value, the less accurate the motion vector may be. Accordingly, additional motion vector differential values of the current block can be signaled when a specific available resolution is used for the resolution of the motion vector differential values of the current block. Hereinafter, the additional motion vector difference values may be referred to as second to n-th motion vector difference values. Also, the existing motion vector difference value excluding the additional motion vector difference value may be referred to as a first motion vector difference value.

図30は、本発明の一実施形態に従って複数の動きベクトル差分値に基づいて現在ブロックの動きベクトルが誘導される方法を示す図である。本発明の一実施形態に従って、複数の動きベクトル差分値及び各々に対応する解像度を用いて現在ブロックの動きベクトルが獲得できる。例えば、現在ブロックの動きベクトル差分値の解像度が既設定された解像度より大きい場合、追加的な動きベクトル差分値がシグナリングできる。具体的な実施形態に従って、現在ブロックの解像度セットが1/4、1、4サンプル単位の可用解像度を含むことができる。この際、現在ブロックの動きベクトル差分値の解像度が‘4’の場合、追加的な動きベクトル差分値がシグナリングできる。また、追加的な動きベクトル差分値は既存の動きベクトル差分値がシグナリングされた解像度に一層小さい解像度に基づいてシグナリングできる。これを通じて、エンコーダ及びデコーダは動きベクトルの正確度を高めて、予測誤差を減少させることができる。 FIG. 30 illustrates a method of deriving a motion vector of a current block based on multiple motion vector difference values according to an embodiment of the present invention. According to an embodiment of the present invention, a motion vector of a current block can be obtained using a plurality of motion vector difference values and resolutions corresponding to each. For example, if the resolution of the motion vector difference value of the current block is greater than the preset resolution, additional motion vector difference values can be signaled. According to a specific embodiment, the current block's resolution set may include available resolutions of 1/4, 1, and 4 samples. At this time, if the resolution of the motion vector difference value of the current block is '4', an additional motion vector difference value can be signaled. Also, the additional motion vector difference values can be signaled based on a resolution smaller than the resolution at which the existing motion vector difference values were signaled. Through this, the encoder and decoder can improve motion vector accuracy and reduce prediction errors.

図30を参照すると、R1は第1動きベクトル差分値の解像度を示し、R2は第2動きベクトル差分値の解像度を示す。また、MVDval1はR1単位でシグナリングされた第1動きベクトル差分値を示し、MVDval2はR2単位でシグナリングされた第2動きベクトル差分値を示す。例えば、第1動きベクトル差分値の解像度(R1)が既設定された解像度より大きい場合、デコーダは追加的にシグナリングされた第2動きベクトル差分値(MVDval2)を獲得することができる。この際、第2動きベクトル差分値の解像度(R2)は現在ブロックの第1動きベクトル差分値の解像度(R1)より小さいことがある。 Referring to FIG. 30, R1 indicates the resolution of the first motion vector difference value, and R2 indicates the resolution of the second motion vector difference value. MVDval1 indicates the first motion vector difference value signaled in units of R1, and MVDval2 indicates the second motion vector difference value signaled in units of R2. For example, if the resolution of the first motion vector difference value (R1) is greater than the preset resolution, the decoder can additionally acquire the signaled second motion vector difference value (MVDval2). At this time, the resolution (R2) of the second motion vector difference value may be smaller than the resolution (R1) of the first motion vector difference value of the current block.

一方、本発明の一実施形態に従って現在ブロックのためのインター予測方法または動き補償方法は、アフィン(affine)モデル基盤の動き補償(以下、アフィン動き補償)を含むことができる。既存のインター予測方法によれば、現在ブロックに対するL0予測及びL1予測別にただ1つの動きベクトルを使用してインター予測が遂行される。これによって、既存の一般インター予測方法は、並進運動(translation motion)の予測に最適化されている。しかしながら、ズームイン/アウト、回転及びその他の不規則的な運動に対する動き補償を効率よく遂行するためには多様な形態とサイズの参照ブロックが使われる必要がある。以下では、本発明の一実施形態に従ってアフィン動き補償が遂行される方法について説明する。 Meanwhile, an inter-prediction method or motion compensation method for the current block according to an embodiment of the present invention may include affine model-based motion compensation (hereinafter referred to as affine motion compensation). According to the existing inter prediction method, inter prediction is performed using only one motion vector for L0 prediction and L1 prediction for the current block. This makes existing general inter-prediction methods optimized for prediction of translational motion. However, in order to efficiently perform motion compensation for zoom in/out, rotation, and other irregular motions, reference blocks of various shapes and sizes should be used. The following describes how affine motion compensation is performed according to an embodiment of the present invention.

図31は、本発明の一実施形態に従ってアフィンモデルに基づく動き補償を示す図である。図31を参照すると、アフィン動き補償では現在ブロック3101と異なるサイズ、形態及び/または方向を有する参照ブロック3102を用いて現在ブロック3101の予測が遂行できる。即ち、参照ブロック3102は非-矩形形態を有することができ、現在ブロック3101よりサイズが大きいか小さいことがある。参照ブロック3102は、現在ブロック3101にアフィン変換を遂行して獲得できる。アフィン変換を通じて現在ブロックに対するスケーリング、ローテーション、シアリング(shearing)、反転(reflection)、または直角投影(orthogonal projection)が遂行できる。一実施形態に従って、アフィン変換は複数のコントロールポイント動きベクトル(Control Point Motion Vector、CPMV)を用いて遂行できる。例えば、アフィン変換は3個のコントロールポイント動きベクトルを用いる6-パラメータアフィン変換と、2つのコントロールポイント動きベクトルを用いる4-パラメータアフィン変換を含むことができる。これに対する具体的な実施形態は後述する。 FIG. 31 is a diagram illustrating motion compensation based on an affine model according to one embodiment of the present invention. Referring to FIG. 31, in affine motion compensation, a current block 3101 can be predicted using a reference block 3102 having a size, shape and/or direction different from that of the current block 3101 . That is, reference block 3102 may have a non-rectangular shape and may be larger or smaller in size than current block 3101 . A reference block 3102 can be obtained by performing an affine transformation on the current block 3101 . Scaling, rotation, shearing, reflection, or orthogonal projection for the current block can be performed through affine transformation. According to one embodiment, the affine transformation can be performed using multiple Control Point Motion Vectors (CPMV). For example, the affine transforms can include a 6-parameter affine transform with three control point motion vectors and a 4-parameter affine transform with two control point motion vectors. A specific embodiment for this will be described later.

図32は、4-パラメータアフィン動き補償方法の一実施形態を図示する。アフィン変換の演算量及びシグナリングオーバーヘッドを減らすために、既設定された個数のコントロールポイント動きベクトル(CPMV)を使用してアフィン動き補償が遂行できる。コントロールポイント動きベクトル(CPMV)は現在ブロックの特定コントロールポイント(または、サンプル位置)に対応する動きベクトルである。特定コントロールポイントは、現在ブロックの隅のうち、少なくとも1つを含むことができる。本発明の実施形態では、現在ブロックの上左側隅に対応するCPMVをv0(または、第1のCPMV)と、現在ブロックの上右側隅に対応するCPMVをv1(または、第2のCPMV)と、現在ブロックの下左側隅に対応するCPMVをv2(または、第3のCPMV)と各々称する。アフィン動き補償のために少なくとも2つのCPMVを含むCPMVセットが使われることができる。 FIG. 32 illustrates one embodiment of a 4-parameter affine motion compensation method. Affine motion compensation can be performed using a preset number of control point motion vectors (CPMV) in order to reduce the computational complexity and signaling overhead of the affine transformation. A control point motion vector (CPMV) is a motion vector corresponding to a specific control point (or sample position) of the current block. The specific control point may include at least one corner of the current block. In an embodiment of the present invention, the CPMV corresponding to the upper left corner of the current block is v0 (or the first CPMV), and the CPMV corresponding to the upper right corner of the current block is v1 (or the second CPMV). , the CPMV corresponding to the lower left corner of the current block is called v2 (or the third CPMV). A CPMV set containing at least two CPMVs can be used for affine motion compensation.

図32の実施形態によれば、v0とv1を使用して4-パラメータアフィン動き補償が遂行できる。実線で表示された現在ブロック3201は点線で表示された位置の参照ブロック3202を用いて予測できる。現在ブロック3201の各サンプルはアフィン変換を通じて互いに異なる参照サンプルにマッピングできる。より具体的に、現在ブロック3201のサンプル位置(x、y)での動きベクトル(v、v)は以下の[数式2]により誘導できる。本開示で、サンプル位置は現在ブロック内で相対的な座標を示すことができる。例えば、サンプル位置(x、y)は現在ブロックの左上段サンプルの位置を原点(0、0)にする座標でありうる。 According to the embodiment of FIG. 32, 4-parameter affine motion compensation can be performed using v0 and v1. A current block 3201 indicated by a solid line can be predicted using a reference block 3202 indicated by a dotted line. Each sample of the current block 3201 can be mapped to different reference samples through affine transformation. More specifically, the motion vector (v x , v y ) at the sample position (x, y) of the current block 3201 can be derived from Equation 2 below. In this disclosure, the sample position may indicate relative coordinates within the current block. For example, the sample position (x, y) may be coordinates with the position of the upper left sample of the current block as the origin (0, 0).


Figure 0007159354000002
Figure 0007159354000002

ここで、(v0x、v0y)は現在ブロック3201の上左側隅に対応する第1のCPMVであり、(v1x、v1y)は現在ブロックの上右側隅に対応する第2のCPMVである。また、wは現在ブロック3201の幅である。 where (v 0x , v 0y ) is the first CPMV corresponding to the upper left corner of the current block 3201, and (v 1x , v 1y ) is the second CPMV corresponding to the upper right corner of the current block. be. Also, w is the width of the current block 3201 .

図33は、6-パラメータアフィン動き補償方法の一実施形態を図示する。より複雑な動きに対する正確な予測のために、3個以上のCPMVを使用したアフィン動き補償が遂行できる。図33を参照すると、6-パラメータアフィン動き補償は3個のCPMV、即ち、v0、v1、及びv2を用いて遂行できる。ここで、v0は現在ブロックの上左側隅に対応するCPMVであり、v1は現在ブロックの上右側隅に対応するCPMVであり、v2は現在ブロックの下左側隅に対応するCPMVである。現在ブロックの各サブブロックの動きベクトルは、前記v0、v1、及びv2に基づいて計算できる。図33の実施形態によれば、実線で表示された現在ブロック3301は点線で表示された位置の参照ブロック3302を用いて予測できる。現在ブロック3301の各サンプルはアフィン変換を通じて互いに異なる参照サンプルにマッピングできる。より具体的に、現在ブロック3301のサンプル位置(x、y)での動きベクトル(mv、mv)は以下の[数式3]により誘導できる。 FIG. 33 illustrates one embodiment of a 6-parameter affine motion compensation method. Affine motion compensation using three or more CPMVs can be performed for accurate prediction of more complex motion. Referring to FIG. 33, 6-parameter affine motion compensation can be performed using three CPMVs, namely v0, v1, and v2. Here, v0 is the CPMV corresponding to the upper left corner of the current block, v1 is the CPMV corresponding to the upper right corner of the current block, and v2 is the CPMV corresponding to the lower left corner of the current block. A motion vector of each sub-block of the current block can be calculated based on the v0, v1 and v2. According to the embodiment of FIG. 33, the current block 3301 indicated by the solid line can be predicted using the reference block 3302 at the position indicated by the dotted line. Each sample of the current block 3301 can be mapped to different reference samples through affine transformation. More specifically, the motion vector (mv x , mv y ) at the sample position (x, y) of the current block 3301 can be derived from Equation 3 below.


Figure 0007159354000003
Figure 0007159354000003

ここで、(mv 、mv )は現在ブロック3301の上左側隅に対応する第1のCPMVであり、(mv 、mv )は上右側隅に対応する第2のCPMVであり、(mv 、mv )は下左側隅に対応する第3のCPMVである。また、wは現在ブロック3301の幅であり、hは現在ブロック3301の高さである。 where (mv 0 x , mv 0 y ) is the first CPMV corresponding to the upper left corner of the current block 3301 and (mv 1 x , mv 1 y ) is the second CPMV corresponding to the upper right corner. and (mv 2 x , mv 2 y ) is the third CPMV corresponding to the lower left corner. Also, w is the width of the current block 3301 and h is the height of the current block 3301 .

図34は、サブブロック基盤のアフィン動き補償方法の一実施形態を図示する。アフィン動き変換を利用すれば、現在ブロックの各サンプル位置での動きベクトル(即ち、動きベクトルフィールド)が誘導できる。しかしながら、演算量を減らすために、図34のようにサブブロック基盤のアフィン動き補償が遂行できる。図34を参照すると、現在ブロックは複数のサブブロックを含むことができる。また、各サブブロックの代表動きベクトルがCPMVセット(v0、v1、及びv2)に基づいて獲得できる。一実施形態に従って、各サブブロックの代表動きベクトルは該当サブブロックの中間のサンプル位置に対応する動きベクトルでありうる。追加的な実施形態によれば、サブブロックの動きベクトルには一般的な動きベクトルより正確度の高い動きベクトルが使われることができる。このために、動き補償補間フィルタが適用できる。 FIG. 34 illustrates an embodiment of a sub-block-based affine motion compensation method. Using affine motion transformation, a motion vector (ie, motion vector field) at each sample position of the current block can be derived. However, in order to reduce the amount of computation, sub-block-based affine motion compensation can be performed as shown in FIG. Referring to FIG. 34, the current block can contain multiple sub-blocks. Also, a representative motion vector for each sub-block can be obtained based on the CPMV set (v0, v1, and v2). According to one embodiment, the representative motion vector of each sub-block may be a motion vector corresponding to the middle sample position of the corresponding sub-block. According to additional embodiments, a motion vector with higher accuracy than a general motion vector can be used as the motion vector of the sub-block. For this, a motion compensated interpolation filter can be applied.

アフィン動き補償が遂行されるサブブロックのサイズは、多様な方法により設定できる。本発明の一実施形態によれば、サブブロックは4×4または8×8のように既設定されたサイズを有することができる。本発明の他の実施形態によれば、サブブロックのサイズM×Nは以下の[数式4]により決定できる。 The size of sub-blocks on which affine motion compensation is performed can be set in various ways. According to an embodiment of the present invention, sub-blocks may have preset sizes such as 4×4 or 8×8. According to another embodiment of the present invention, the sub-block size M×N can be determined by Equation 4 below.


Figure 0007159354000004
Figure 0007159354000004

ここで、wは現在ブロックの幅であり、MvPreは動きベクトルの分数単位正確度である。(v2x、v2y)は現在ブロックの下左側隅に対応する第3のCPMVである。一実施形態に従って、第3のCPMVは前述した[数式2]により計算できる。max(a、b)はaとbのうち、より大きい値を返還する関数であり、abs(x)はxの絶対値を返還する関数である。また、clip3(x、y、z)はz<xの場合、xを返還し、z>yの場合、yを返還し、その他の場合、zを返還する関数である。 where w is the width of the current block and MvPre is the fractional accuracy of the motion vector. ( v2x , v2y ) is the third CPMV corresponding to the lower left corner of the current block. According to one embodiment, the third CPMV can be calculated according to Equation 2 above. max(a, b) is a function that returns the larger value of a and b, and abs(x) is a function that returns the absolute value of x. Also, clip3(x, y, z) is a function that returns x if z<x, returns y if z>y, and returns z otherwise.

デコーダは、CPMVセットのCPMVを用いて現在ブロックの各サブブロックの動きベクトルを獲得する。また、デコーダは各サブブロックの代表動きベクトルを用いて現在ブロックの各サブブロックの予測子を獲得することができる。各サブブロックの予測子を組合せて現在ブロックの予測子が獲得されることができ、デコーダはこのように獲得された現在ブロックの予測子を用いて現在ブロックを復元することができる。 The decoder obtains motion vectors for each sub-block of the current block using the CPMVs of the CPMV set. Also, the decoder can obtain a predictor of each sub-block of the current block using the representative motion vector of each sub-block. A predictor of the current block can be obtained by combining predictors of each sub-block, and a decoder can reconstruct the current block using the predictors of the current block thus obtained.

図35、図36、図37、及び図38は、現在ブロックの予測のためのコントロールポイント動きベクトルセットを獲得する方法の実施形態を図示する。本発明の一実施形態に従って、現在ブロックのアフィン動き補償のためのCPMVセットは多様な方法により獲得できる。より具体的に、現在ブロックの予測のためのCPMVセットは1つ以上の周辺ブロックの動きベクトル情報セットを参照して獲得できる。また、動きベクトル情報セットは1つ以上のブロックの動きベクトル情報の集合を示す。周辺ブロックは、現在ブロックの既設定された周辺位置を含むブロックを示すことができる。この際、周辺ブロックは既設定された周辺位置を含むコーディングユニット、または前記周辺位置を含む既設定された単位(例、4×4、8×8)の領域でありうる。 Figures 35, 36, 37, and 38 illustrate embodiments of methods for obtaining control point motion vector sets for prediction of the current block. According to an embodiment of the present invention, a CPMV set for affine motion compensation of the current block can be obtained through various methods. More specifically, a CPMV set for prediction of the current block can be obtained by referring to motion vector information sets of one or more neighboring blocks. Also, a motion vector information set indicates a set of motion vector information of one or more blocks. A peripheral block may indicate a block including a preset peripheral position of the current block. At this time, the peripheral block may be a coding unit including a preset peripheral position or a preset unit (eg, 4×4, 8×8) region including the peripheral position.

現在ブロックのCPMVを誘導するために参照できる複数の候補が存在することができる。したがって、現在ブロックのCPMVを誘導するために参照する周辺ブロックに対する情報が別途にシグナリングできる。本発明の一実施形態によれば、現在ブロックの各サブブロックの動きベクトルを誘導するために参照する動きベクトル情報セットを指示するCPMV指示子がシグナリングできる。エンコーダはCPMV指示子をシグナリングすることができる。CPMV指示子は現在ブロックの各サブブロックの動きベクトルを誘導するために参照する周辺ブロックの動きベクトル情報セットを指示することができる。デコーダは前記指示子を獲得し、指示子が指示する周辺ブロックの動きベクトル情報セットを参照して現在ブロックのためのCPMVセットの各CPMVを獲得することができる。 There can be multiple candidates that can be referenced to derive the CPMV of the current block. Therefore, information about neighboring blocks referred to in order to derive the CPMV of the current block can be separately signaled. According to an embodiment of the present invention, a CPMV indicator can be signaled that indicates a motion vector information set to refer to derive a motion vector of each sub-block of the current block. The encoder can signal the CPMV indicator. The CPMV indicator can indicate the motion vector information set of neighboring blocks to be referred to derive the motion vector of each sub-block of the current block. The decoder can acquire the indicator and refer to the motion vector information sets of the neighboring blocks indicated by the indicator to acquire each CPMV of the CPMV set for the current block.

より具体的な実施形態によれば、エンコーダ及びデコーダは1つ以上の動きベクトル情報セット候補で構成されたCPMV候補リストを生成することができる。CPMV候補リストを構成する各々の動きベクトル情報セット候補は、現在ブロックの動きベクトルを誘導するために使用可能な周辺ブロックの動きベクトルセットである。この際、CPMV指示子はCPMV候補リストのうち、いずれか1つの動きベクトル情報セットを指示するインデックスでありうる。現在ブロックのCPMVはCPMV候補リストのうち、CPMV指示子(即ち、インデックス)に基づいて選択された動きベクトル情報セットを参照して獲得できる。以下、現在ブロックの動きベクトル情報(または、CPMVセット)の誘導のためのCPMV候補リストに含まれることができる動きベクトル情報セット候補の多様な実施形態について叙述する。 According to a more specific embodiment, the encoder and decoder can generate a CPMV candidate list consisting of one or more motion vector information set candidates. Each motion vector information set candidate constituting the CPMV candidate list is a motion vector set of neighboring blocks that can be used to derive the motion vector of the current block. At this time, the CPMV indicator may be an index indicating any one motion vector information set in the CPMV candidate list. The CPMV of the current block can be obtained by referring to the motion vector information set selected based on the CPMV indicator (ie, index) from the CPMV candidate list. Various embodiments of motion vector information set candidates that can be included in a CPMV candidate list for deriving motion vector information (or CPMV set) of the current block will be described below.

図35は、現在ブロックのCPMVセットを獲得する一実施形態を図示する。図35の実施形態では現在ブロックのCPMVセットが2つのCPMV、即ち、v0とv1を含むことと仮定する。本発明の一実施形態によれば、現在ブロックのCPMVは該当ポイントに隣接した周辺ブロックの動きベクトルから誘導できる。図35を参照すると、v0は該当ポイントに隣接した周辺ブロックA、B、及びCのうち、いずれか1つの動きベクトルから誘導されることができ、v1は該当ポイントに隣接した周辺ブロックD及びEのうち、いずれか1つの動きベクトルから誘導できる。周辺ブロックA、B、C、D、及びEの動きベクトルを各々vA、vB、vC、vD、及びvEとする時、CPMV候補リストに含まれることができる動きベクトル情報セットは、以下の[数式5]のように誘導できる。 FIG. 35 illustrates one embodiment of obtaining the CPMV set for the current block. The embodiment of FIG. 35 assumes that the CPMV set of the current block contains two CPMVs, namely v0 and v1. According to an embodiment of the present invention, the CPMV of the current block can be derived from motion vectors of neighboring blocks adjacent to the corresponding point. Referring to FIG. 35, v0 can be derived from the motion vector of any one of neighboring blocks A, B, and C adjacent to the corresponding point, and v1 can be derived from neighboring blocks D and E adjacent to the corresponding point. can be derived from any one motion vector. When the motion vectors of neighboring blocks A, B, C, D, and E are vA, vB, vC, vD, and vE, respectively, the motion vector information sets that can be included in the CPMV candidate list are given by the following [formula 5] can be derived.


Figure 0007159354000005
Figure 0007159354000005

即ち、vA、vB、vCのうちから選択されたv0と、vD、vEのうちから選択されたv1で構成された(v0、v1)対が獲得できる。この際、v0は現在ブロックの上左側隅に隣接したブロックの動きベクトルから誘導され、v1は現在ブロックの上右側隅に隣接したブロックの動きベクトルから誘導される。追加的な実施形態によれば、現在ブロックのPOC(Picture Order Count)、周辺ブロックの参照ピクチャのPOC、及び現在ブロックの参照ピクチャのPOCに基づいて動きベクトルスケーリングが遂行できる。 That is, a (v0, v1) pair consisting of v0 selected from vA, vB, and vC and v1 selected from vD and vE can be obtained. At this time, v0 is derived from the motion vector of the block adjacent to the upper left corner of the current block, and v1 is derived from the motion vector of the block adjacent to the upper right corner of the current block. According to additional embodiments, motion vector scaling may be performed based on a POC (Picture Order Count) of the current block, POCs of reference pictures of neighboring blocks, and POCs of reference pictures of the current block.

このように獲得された動きベクトル情報セット候補を含むCPMV候補リストが生成されることができ、CPMV候補リストのうち、いずれか1つの動きベクトル情報セットを指示するCPMV指示子がシグナリングできる。本発明の追加的な実施形態によれば、CPMV候補リストには他の方式のインター予測のための動きベクトル情報セット候補が含まれることもできる。例えば、CPMV候補リストは既存のインター予測のためのMVP候補に基づいて獲得された動きベクトル情報セット候補を含むことができる。 A CPMV candidate list including motion vector information set candidates obtained in this way may be generated, and a CPMV indicator indicating any one motion vector information set in the CPMV candidate list may be signaled. According to additional embodiments of the present invention, the CPMV candidate list may also include motion vector information set candidates for inter-prediction of other schemes. For example, the CPMV candidate list may include motion vector information set candidates obtained based on existing MVP candidates for inter-prediction.

デコーダは、候補リストから獲得された動きベクトル情報セットに基づいて現在ブロックのCPMVを誘導することができる。一実施形態によれば、デコーダは候補リストから獲得された動きベクトル情報セットの動きベクトルを別途の動きベクトル差分値無しで、現在ブロックのCPMVに使用するので、アフィンマージ(merge)予測を遂行することができる。このようなアフィン動き補償方法はアフィンマージ予測モードと称されることができる。 A decoder can derive the CPMV of the current block based on the motion vector information set obtained from the candidate list. According to one embodiment, the decoder uses the motion vector of the motion vector information set obtained from the candidate list for the CPMV of the current block without a separate motion vector difference value, thus performing affine merge prediction. be able to. Such affine motion compensation methods can be referred to as affine merge prediction modes.

他の実施形態によれば、デコーダは現在ブロックのCPMVのための別途の動きベクトル差分値を獲得することができる。デコーダは、CPMV候補リストから獲得された動きベクトル情報セットの動きベクトルを前記動きベクトル差分値と合算して現在ブロックのCPMVを獲得することができる。このようなアフィン動き補償方法はアフィンインター予測モードと称されることができる。デコーダが現在ブロックのアフィン動き補償のために別途の動きベクトル差分値を使用するか否かを指示するフラグまたはインデックスが別途にシグナリングできる。追加的な実施形態に従って、現在ブロックのアフィン動き補償のために別途の動きベクトル差分値が使われるかは現在ブロックのサイズ(例、CUサイズ)に基づいて決定できる。例えば、現在ブロックのサイズが既設定されたサイズ以上である場合、エンコーダ及びデコーダが現在ブロックのアフィン動き補償のために別途の動きベクトル差分値を使用するように設定できる。 According to another embodiment, the decoder can obtain a separate motion vector difference value for the CPMV of the current block. The decoder can obtain the CPMV of the current block by summing the motion vector of the motion vector information set obtained from the CPMV candidate list with the motion vector difference value. Such an affine motion compensation method can be called an affine inter prediction mode. A flag or index may be separately signaled to indicate whether the decoder uses a separate motion vector difference value for affine motion compensation of the current block. According to additional embodiments, whether to use a separate motion vector difference value for affine motion compensation of the current block may be determined based on the size of the current block (eg, CU size). For example, if the size of the current block is greater than or equal to a preset size, the encoder and decoder can be set to use separate motion vector difference values for affine motion compensation of the current block.

図36は、現在ブロックのCPMVセットを獲得する他の実施形態を図示する。本発明の他の実施形態によれば、現在ブロックのCPMVはアフィン動き補償が遂行された周辺ブロックの動きベクトル情報から誘導できる。即ち、現在ブロックのCPMVは周辺ブロックのCPMVまたは動きベクトルから誘導できる。この際、周辺ブロックは現在ブロックの左側周辺ブロックと現在ブロックの上側周辺ブロックを含むことができる。図36(a)を参照すると、左側周辺ブロックは現在ブロックの下左側隅に隣接したブロック、即ち、左側ブロックA及び下左側ブロックDを含む。また、上側周辺ブロックは現在ブロックの上左側隅に隣接したブロック、即ち、上左側ブロックEと、現在ブロックの上右側隅に隣接したブロック、即ち、上側ブロックB及び上右側ブロックCを含む。デコーダは、既設定された順に周辺ブロックがアフィン動き補償が遂行されたかを確認する。一実施形態に従って、既設定された順序はA、B、C、D、Eでありうる。アフィン動き補償が遂行された周辺ブロックが発見されれば、デコーダは該当周辺ブロックのCPMVセット(または、動きベクトル)を用いて現在ブロックのCPMVセットを獲得する。図36(b)の実施形態を参照すると、左側ブロックAのCPMVセットが現在ブロックのCPMVセットを誘導することに使われることができる。即ち、左側ブロックAのCPMVセット(v2、v3、v4)に基づいて現在ブロックのCPMVセット(v0、v1)が獲得できる。 FIG. 36 illustrates another embodiment of obtaining the CPMV set of the current block. According to another embodiment of the present invention, the CPMV of the current block can be derived from motion vector information of neighboring blocks on which affine motion compensation has been performed. That is, the CPMV of the current block can be derived from the CPMV or motion vector of neighboring blocks. At this time, the peripheral blocks may include a left peripheral block of the current block and an upper peripheral block of the current block. Referring to FIG. 36(a), left peripheral blocks include blocks adjacent to the lower left corner of the current block, ie, left block A and lower left block D. Referring to FIG. The upper peripheral blocks include upper left block E adjacent to the upper left corner of the current block, and upper block B and upper right block C adjacent to the upper right corner of the current block. The decoder checks whether affine motion compensation has been performed on neighboring blocks in a preset order. According to one embodiment, the preset order may be A, B, C, D, E. If a neighboring block on which affine motion compensation is performed is found, the decoder acquires the CPMV set of the current block using the CPMV set (or motion vector) of the corresponding neighboring block. Referring to the embodiment of FIG. 36(b), the CPMV set of left block A can be used to derive the CPMV set of the current block. That is, the CPMV set (v0, v1) of the current block can be obtained based on the CPMV set (v2, v3, v4) of the left block A.

本発明の実施形態によれば、現在ブロックのCPMVを誘導するために参照する周辺ブロックに対する情報が別途にシグナリングできる。この際、現在ブロックの周辺ブロックのCPMVセットの各々は既設定された順序に従って前述したCPMV候補リストを構成する動きベクトル情報セット候補になることができる。より具体的に、動きベクトル情報セット候補は現在ブロックの左側周辺ブロックのCPMV(または、動きベクトル)から誘導された第1候補と、現在ブロックの上側周辺ブロックのCPMV(または、動きベクトル)から誘導された第2候補を含むことができる。この際、左側周辺ブロックは現在ブロックの下左側隅に隣接したブロックであり、上側周辺ブロックは現在ブロックの上左側隅に隣接したブロックまたは現在ブロックの上右側隅に隣接したブロックである。このように獲得された動きベクトル情報セット候補を含むCPMV候補リストが生成されることができ、CPMV候補リストのうち、いずれか1つの動きベクトル情報セットを指示するCPMV指示子がシグナリングできる。一実施形態によれば、CPMV指示子は現在ブロックの各サブブロックの動きベクトルを誘導するために参照される周辺ブロックの位置情報を示すことができる。デコーダは、CPMV指示子が指示する周辺ブロックのCPMVセット(または、動きベクトル)を参照して現在ブロックのCPMVセットを獲得することができる。 According to an embodiment of the present invention, information on neighboring blocks referred to for deriving the CPMV of the current block can be separately signaled. At this time, each of the CPMV sets of neighboring blocks of the current block can be a motion vector information set candidate constituting the CPMV candidate list according to a preset order. More specifically, the motion vector information set candidate is derived from the first candidate derived from the CPMV (or motion vector) of the left neighboring block of the current block and the CPMV (or motion vector) of the upper neighboring block of the current block. can include a second candidate that has been At this time, the left peripheral block is a block adjacent to the lower left corner of the current block, and the upper peripheral block is a block adjacent to the upper left corner of the current block or a block adjacent to the upper right corner of the current block. A CPMV candidate list including motion vector information set candidates obtained in this way may be generated, and a CPMV indicator indicating any one motion vector information set in the CPMV candidate list may be signaled. According to an embodiment, the CPMV indicator may indicate location information of neighboring blocks referenced to derive motion vectors of each sub-block of the current block. The decoder can obtain the CPMV set of the current block by referring to the CPMV set (or motion vector) of neighboring blocks indicated by the CPMV indicator.

本発明の追加的な実施形態によれば、現在ブロックのCPMVは該当ポイントから近い周辺ブロックのCPMVに基づいて誘導できる。例えば、v0は左側周辺ブロックのCPMVを参照して獲得され、v1は上側周辺ブロックのCPMVを参照して獲得できる。または、v0は周辺ブロックA、D、またはEのCPMVを参照して獲得され、v1は周辺ブロックBまたはCのCPMVを参照して獲得できる。 According to an additional embodiment of the present invention, the CPMV of the current block can be derived based on the CPMV of neighboring blocks near the corresponding point. For example, v0 can be obtained by referring to the CPMV of the left peripheral block, and v1 can be obtained by referring to the CPMV of the upper peripheral block. Alternatively, v0 can be obtained by referring to the CPMV of neighboring blocks A, D, or E, and v1 can be obtained by referring to the CPMV of neighboring blocks B or C.

現在ブロックのCPMVセットを獲得する他の実施形態を図示する。一実施形態に従って、現在ブロックのCPMVはアフィン動き補償が遂行されたブロックのCPMVまたは動きベクトルから誘導できる。例えば、現在ブロックを基準に既設定された位置に対応するブロックがアフィン動き補償された場合、該当ブロックのCPMVセットまたは少なくとも1つの動きベクトルから現在ブロックのCPMVが誘導できる。図37を参照すると、既設定された位置は現在ブロックの下左側隅に隣接したA0及びA1、上右側隅に隣接したB0及びB1、上左側B2位置でありうる。本実施形態で、既設定された位置は現在ブロックに隣接しない位置を含むことができる。例えば、既設定された位置は現在ピクチャでない他のピクチャ内で現在ブロックの位置に対応する位置を含むことができる。即ち、現在ブロックのCPMVセットは既設定された位置に対応する空間的候補または時間的候補から誘導できる。図37を通じて説明した方法により獲得された動き情報セット候補は、内在的候補(inherited candidate)またはアフィンマージ候補と称されることができる。 Figure 10 illustrates another embodiment of obtaining the CPMV set of the current block; According to one embodiment, the CPMV of the current block can be derived from the CPMV or motion vector of the block on which affine motion compensation has been performed. For example, when a block corresponding to a preset position based on the current block is subjected to affine motion compensation, the CPMV of the current block can be derived from the CPMV set or at least one motion vector of the corresponding block. Referring to FIG. 37, the preset positions may be A0 and A1 adjacent to the lower left corner of the current block, B0 and B1 adjacent to the upper right corner, and the upper left B2 position. In this embodiment, the preset positions may include positions that are not adjacent to the current block. For example, the preset position may include a position corresponding to the position of the current block within a picture other than the current picture. That is, the CPMV set of the current block can be derived from spatial candidates or temporal candidates corresponding to preset positions. A motion information set candidate obtained by the method described through FIG. 37 can be called an inherent candidate or an affine merge candidate.

図36及び図37を通じて説明したように、アフィン動き補償が遂行された周辺ブロックの動きベクトル情報から現在ブロックのCPMVが誘導できる。具体的な実施形態に従って、現在ブロックに対する4-パラメータアフィン動き補償のためのCPMVセット((v_0x、v_0y)、(v_1x、v_1y))は[数式6]のように誘導できる。 As described with reference to FIGS. 36 and 37, the CPMV of the current block can be derived from motion vector information of neighboring blocks on which affine motion compensation has been performed. According to a specific embodiment, a CPMV set ((v_0x, v_0y), (v_1x, v_1y)) for 4-parameter affine motion compensation for the current block can be derived as [Equation 6].


Figure 0007159354000006
Figure 0007159354000006

ここで、(v_E0x、v_E0y)は現在ブロックの上左側ブロックのアフィン動き補償に使われた動きベクトルを示し、(v_E1x、v_E1y)は現在ブロックの上右側ブロックのアフィン動き補償に使われた動きベクトルを示し、(v_E2x、v_E2y)は現在ブロックの下左側ブロックのアフィン動き補償に使われた動きベクトルを示すことができる。 Here, (v_E0x, v_E0y) represent motion vectors used for affine motion compensation of the upper left block of the current block, and (v_E1x, v_E1y) represent motion vectors used for affine motion compensation of the upper right block of the current block. and (v_E2x, v_E2y) may indicate a motion vector used for affine motion compensation of the lower left block of the current block.

図38は、本発明の他の一実施形態に従って現在ブロックのコントロールポイント動きベクトルが獲得される方法を示す図である。一実施形態に従って、現在ブロックのCPMVは現在ブロック周辺の1つ以上の動きベクトルを参照して獲得できる。この際、現在ブロック周辺の1つ以上の動きベクトルはアフィン動き補償に使われた動きベクトルでない動きベクトルを含むことができる。例えば、現在ブロックのCPMVは該当ポイントを基準に既設定された位置の動きベクトルから誘導できる。例えば、既設定された位置は誘導しようとするCPMVに対応するポイントから一定の距離以内のブロックに含まれる位置でありうる。 FIG. 38 illustrates a method of obtaining control point motion vectors of the current block according to another embodiment of the present invention. According to one embodiment, the CPMV of the current block can be obtained by referring to one or more motion vectors around the current block. At this time, one or more motion vectors around the current block may include motion vectors other than motion vectors used for affine motion compensation. For example, the CPMV of the current block can be derived from the motion vector of the preset position based on the corresponding point. For example, the preset position may be a position included in a block within a certain distance from the point corresponding to the CPMV to be guided.

図38を参照すると、現在ブロックのアフィン動き補償のための第1のCPMV(mv0)、第2のCPMV(mv1)、及び第3のCPMV(mv2)は、前述した既設定された位置の動きベクトルから誘導できる。例えば、第1のCPMV(mv0)は上左側隅の周辺の位置A、B、Cの各々の動きベクトル情報から誘導できる。第2のCPMV(mv1)は上右側隅周辺の位置D、Eの各々の動きベクトル情報から誘導できる。第3のCPMV(mv2)は下左側隅の周辺の位置F、Gの各々の動きベクトル情報から誘導できる。 Referring to FIG. 38, the first CPMV (mv0), the second CPMV (mv1), and the third CPMV (mv2) for affine motion compensation of the current block are the motions of the previously set positions. It can be derived from vectors. For example, the first CPMV (mv0) can be derived from motion vector information for each of locations A, B, C around the upper left corner. A second CPMV (mv1) can be derived from motion vector information for each of positions D, E around the upper right corner. A third CPMV (mv2) can be derived from the motion vector information for each of the positions F, G around the lower left corner.

一実施形態に従って、デコーダは既設定された順にCPMV周辺位置の動きベクトルに対する使用可能性を確認することができる。使用可能な動きベクトルが発見されれば、デコーダは該当動きベクトルを用いて前記CPMVを獲得することができる。また、現在ブロックのポイント別にCPMVを誘導するために参照される周辺位置に対する既設定された組合せが使われることもできる。図38を通じて説明した方法により獲得された動き情報セット候補はコンストラクテッド候補(constructed candidate)またはアフィンインター候補(inter candidate)と称されることができる。図35乃至図38で説明された動きベクトル情報セットは既設定された順序に従ってCPMV候補リストを構成する動きベクトル情報セット候補になることができる。 According to an embodiment, the decoder can check the availability of the motion vectors of the CPMV peripheral positions in a preset order. If a usable motion vector is found, the decoder can obtain the CPMV using the corresponding motion vector. Also, a preset combination of peripheral positions referred to for deriving the CPMV for each point of the current block can be used. A motion information set candidate obtained by the method described through FIG. 38 can be called a constructed candidate or an affine inter candidate. The motion vector information sets illustrated in FIGS. 35 to 38 can be motion vector information set candidates forming the CPMV candidate list according to a preset order.

図39は、本発明の他の一実施形態に従って現在ブロックのコントロールポイント動きベクトルが獲得される方法を示す図である。前述したように、現在ブロックのアフィン動き補償のために複数のCPMVが使われることができる。本発明の一実施形態に従って、現在ブロックの動き補償のためのCPMVセットが含む複数のCPMVのうちの一部は、他の一部に基づいて誘導できる。例えば、エンコーダ及びデコーダは前述した方法により現在ブロックの2つのポイントの各々に対応するCPMVを獲得することができる。次に、エンコーダ及びデコーダは既獲得したCPMVから現在ブロックの異なるポイントに対応するCPMVを誘導することができる。 FIG. 39 illustrates a method of obtaining control point motion vectors of the current block according to another embodiment of the present invention. As described above, multiple CPMVs can be used for affine motion compensation of the current block. According to an embodiment of the present invention, some of the plurality of CPMVs included in the CPMV set for motion compensation of the current block can be derived based on others. For example, the encoder and decoder can obtain the CPMV corresponding to each of the two points of the current block by the method described above. Then, the encoder and decoder can derive CPMVs corresponding to different points of the current block from the previously acquired CPMVs.

図39を参照すると、第1のCPMV(mv 、mv )、第2のCPMV(mv 、mv )から第3のCPMV(mv 、mv )が誘導されるか、または第1のCPMV(mv 、mv )、第3のCPMV(mv 、mv )から第2のCPMV(mv 、mv )が誘導できる。図39の数式で、w及びhは各々現在ブロックの幅及び高さでありうる。 Referring to FIG. 39, the first CPMV (mv 0 x , mv 0 y ) and the second CPMV (mv 1 x , mv 1 y ) are derived from the third CPMV (mv 2 x , mv 2 y ). Alternatively, the second CPMV (mv 1 x , mv 1 y ) can be derived from the first CPMV (mv 0 x , mv 0 y ) and the third CPMV (mv 2 x , mv 2 y ). In the formula of FIG. 39, w and h can be the width and height of the current block, respectively.

図40は、本発明の一実施形態に従って現在ブロックのコントロールポイント動きベクトルが獲得される方法を示す。前述したように、現在ブロックのCPMVセットは複数のCPMVで構成できる。また、複数のCPMV別にCPMV予測子と動きベクトル差分値に基づいて獲得できる。CPMVの動きベクトル差分値はエンコーダからデコーダにシグナリングできる。即ち、現在ブロックのアフィン動き補償のためのCPMV別にCPMVを誘導するために用いられる動きベクトル差分値がシグナリングできる。以下、CPMVの動きベクトル差分値はCPMV差分値と称されることができる。図40で、上段バー(bar)表示されたmv0、mv1、及びmv2は、各々第1のCPMV(mv0)、第2のCPMV(mv1)、及び第3のCPMV(mv2)の各々のCPMV予測子を示すことができる。 FIG. 40 illustrates how the control point motion vector of the current block is obtained according to one embodiment of the present invention. As described above, the CPMV set of the current block can consist of multiple CPMVs. Also, it can be obtained based on a CPMV predictor and a motion vector difference value for each of a plurality of CPMVs. The CPMV motion vector difference value can be signaled from the encoder to the decoder. That is, a motion vector difference value used to derive a CPMV for each CPMV for affine motion compensation of the current block can be signaled. Hereinafter, the CPMV motion vector difference value may be referred to as the CPMV difference value. In FIG. 40, mv0, mv1, and mv2 displayed in the upper bar are CPMV predictions of the first CPMV (mv0), the second CPMV (mv1), and the third CPMV (mv2), respectively. child can be shown.

図40(a)は、4-パラメータアフィン動き補償が遂行される場合、現在ブロックの第1のCPMV(mv0)及び第2のCPMV(mv1)が獲得される方法を示す。第1のCPMV(mv0)及び第2のCPMV(mv1)の各々に対する第1のCPMV差分値(mvd0)及び第2のCPMV差分値(mvd1)が各々シグナリングできる。 FIG. 40(a) shows how the first CPMV (mv0) and the second CPMV (mv1) of the current block are obtained when 4-parameter affine motion compensation is performed. A first CPMV difference value (mvd0) and a second CPMV difference value (mvd1) for each of the first CPMV (mv0) and the second CPMV (mv1) can be signaled, respectively.

図40(b)は、6-パラメータアフィン動き補償が遂行される場合、現在ブロックの第1のCPMV(mv0)、第2のCPMV(mv1)、及び第3のCPMV(mv2)が獲得される方法を示す。第1のCPMV(mv0)、第2のCPMV(mv1)、及び第3のCPMV(mv2)の各々に対する第1のCPMV差分値(mvd0)、第2のCPMV差分値(mvd1)、及び第3のCPMV差分値(mvd2)が各々シグナリングできる。 FIG. 40(b) shows that the first CPMV (mv0), the second CPMV (mv1), and the third CPMV (mv2) of the current block are obtained when 6-parameter affine motion compensation is performed. Show how. A first CPMV difference value (mvd0), a second CPMV difference value (mvd1), and a third of CPMV difference values (mvd2) can be signaled respectively.

図41は、本発明の一実施形態に従って現在ブロックのコントロールポイント動きベクトル差分値がシグナリングされる方法を示す。現在ブロックのCPMV差分値は図9を通じて前述したシンタックスによってシグナリングできる。また、デコーダはシグナリングされた動きベクトル差分値に対する少なくとも1つの情報に基づいて現在ブロックのCPMV差分値(IMVD)を獲得することができる。図41で、compldxは動きベクトル差分値の成分を示すインデックスで、0または1でありうる。例えば、compldxは動きベクトル差分値のx軸成分またはy軸成分のうち、いずれか1つを指示することができる。また、現在ブロックのCPMV差分値は参照ピクチャリスト別に異なることがある。図41で、L0は第1参照ピクチャリストを示し、L1は第2参照ピクチャリストを示す。 FIG. 41 illustrates how the current block's control point motion vector difference value is signaled according to one embodiment of the present invention. The CPMV difference value of the current block can be signaled according to the syntax described above with reference to FIG. Also, the decoder can obtain a CPMV difference value (IMVD) of the current block based on at least one information about the signaled motion vector difference value. In FIG. 41, compldx is an index indicating a component of the motion vector difference value, and may be 0 or 1. For example, compldx can indicate either the x-axis component or the y-axis component of the motion vector difference value. Also, the CPMV difference value of the current block may be different for each reference picture list. In FIG. 41, L0 indicates the first reference picture list and L1 indicates the second reference picture list.

一方、現在ブロックの特定ポイントに対応するCPMV差分値は現在ブロックの異なるポイントに対応するCPMV差分値と類似することができる。これによって、現在ブロックの特定ポイントに対応するCPMV差分値は現在ブロックの異なるポイントに対応するCPMV差分値に基づいて獲得できる。これを通じて、エンコーダ及びデコーダはCPMV差分値に対するシグナリングオーバーヘッドを減少させることができる。 Meanwhile, a CPMV difference value corresponding to a specific point of the current block may be similar to CPMV difference values corresponding to different points of the current block. Accordingly, a CPMV difference value corresponding to a specific point of the current block can be obtained based on CPMV difference values corresponding to different points of the current block. Through this, the encoder and decoder can reduce signaling overhead for the CPMV difference value.

図42は、本発明の他の一実施形態に従って現在ブロックのコントロールポイント動きベクトルが獲得される方法を示す。図42を参照すると、現在ブロックのアフィン動き補償のためのCPMVセットは、少なくとも1つの共通したCPMV差分値に基づいて誘導できる。例えば、現在ブロックの特定ポイントに対応するCPMVは現在ブロックの異なるポイントに対応するCPMV差分値に基づいて獲得できる。 FIG. 42 illustrates a method of obtaining control point motion vectors of the current block according to another embodiment of the present invention. Referring to FIG. 42, a CPMV set for affine motion compensation of the current block can be derived based on at least one common CPMV difference value. For example, a CPMV corresponding to a specific point of the current block can be obtained based on CPMV difference values corresponding to different points of the current block.

エンコーダは、現在ブロックのアフィン動き補償のための1つの共通CPMV差分値及び少なくとも1つの追加差分値をシグナリングすることができる。また、デコーダは、1つの共通CPMV差分値及び少なくとも1つの追加差分値を用いてブロックのアフィン動き補償のためのCPMVセットを獲得することができる。図42で、上段バー(bar)表示されたmv0、mv1、及びmv2は、各々第1のCPMV(mv0)、第2のCPMV(mv1)、及び第3のCPMV(mv2)の各々のCPMV予測子を示すことができる。 The encoder can signal one common CPMV difference value and at least one additional difference value for affine motion compensation of the current block. Also, the decoder can obtain a CPMV set for affine motion compensation of the block using one common CPMV difference value and at least one additional difference value. In FIG. 42, mv0, mv1, and mv2 displayed in the upper bar are CPMV predictions of the first CPMV (mv0), the second CPMV (mv1), and the third CPMV (mv2), respectively. child can be shown.

図42(a)は、4-パラメータアフィン動き補償が遂行される場合、現在ブロックの第1のCPMV(mv0)及び第2のCPMV(mv1)が獲得される方法を示す。第1のCPMV(mv0)に対する第1のCPMV差分値(mvd0)がシグナリングできる。また、第2のCPMV差分値を獲得するために使われる第1追加差分値(mvd1′)がシグナリングできる。具体的に、第2のCPMV差分値は第1のCPMV差分値(mvd0)に第1追加差分値(mvd1′)を足した値で表現できる。即ち、第2のCPMV(mv1)は第2のCPMV予測子、第1のCPMV差分値(mvd0)、及び第1追加差分値(mvd1′)に基づいて獲得できる。第1のCPMV差分値と第2のCPMV差分値が類似する場合、第2のCPMV差分値に比べて第1追加差分値(mvd1′)が少ないことがある。これによって、エンコーダ及びデコーダは図40を通じて説明された方法に比べて、CPMV差分値に対するシグナリングオーバーヘッドを減少させることができる。 FIG. 42(a) shows how the first CPMV (mv0) and the second CPMV (mv1) of the current block are obtained when 4-parameter affine motion compensation is performed. A first CPMV difference value (mvd0) for the first CPMV (mv0) can be signaled. Also, the first additional difference value (mvd1') used to obtain the second CPMV difference value can be signaled. Specifically, the second CPMV difference value can be expressed by adding the first additional difference value (mvd1') to the first CPMV difference value (mvd0). That is, the second CPMV (mv1) can be obtained based on the second CPMV predictor, the first CPMV difference value (mvd0), and the first additional difference value (mvd1'). If the first CPMV difference value and the second CPMV difference value are similar, the first additional difference value (mvd1') may be less than the second CPMV difference value. Accordingly, the encoder and decoder can reduce signaling overhead for the CPMV difference value compared to the method described through FIG.

図42(b)は、6-パラメータアフィン動き補償が遂行される場合、現在ブロックの第1のCPMV(mv0)、第2のCPMV(mv1)、及び第3のCPMV(mv2)が獲得される方法を示す。第1のCPMV(mv0)に対する第1のCPMV差分値(mvd0)がシグナリングできる。また、第2のCPMV差分値及び第3のCPMV差分値の各々を獲得するために使われる第1追加差分値(mvd1′)及び第2追加差分値(mvd2′)がシグナリングできる。具体的に、第2のCPMV差分値は第1のCPMV差分値(mvd0)に第1追加差分値(mvd1′)を足した値で表現できる。また、第3のCPMV差分値は第1のCPMV差分値(mvd0)に第2追加差分値(mvd2′)を足した値で表現できる。 FIG. 42(b) shows that the first CPMV (mv0), the second CPMV (mv1), and the third CPMV (mv2) of the current block are obtained when 6-parameter affine motion compensation is performed. Show how. A first CPMV difference value (mvd0) for the first CPMV (mv0) can be signaled. Also, a first additional difference value (mvd1') and a second additional difference value (mvd2') used to obtain the second CPMV difference value and the third CPMV difference value, respectively, can be signaled. Specifically, the second CPMV difference value can be expressed by adding the first additional difference value (mvd1') to the first CPMV difference value (mvd0). Also, the third CPMV difference value can be expressed by adding the second additional difference value (mvd2') to the first CPMV difference value (mvd0).

図43は、図42を通じて説明された実施形態に従って現在ブロックのコントロールポイント動きベクトルが獲得される場合、コントロールポイント動きベクトル差分値がシグナリングされる方法を示す。前述したように、現在ブロックのアフィン動き補償のためのCPMVセットは、複数のCPMVを含むことができる。この際、複数のCPMVのうち、一部のCPMV差分値(mvdLK)は他のCPMVの差分値及び追加差分値に基づいて獲得できる。図43で、lmvdは既設定されたCPMVの差分値または少なくとも1つの追加差分値のうち、いずれか1つでありうる。 FIG. 43 shows how the control point motion vector difference value is signaled when the control point motion vector of the current block is obtained according to the embodiment described through FIG. As described above, the CPMV set for affine motion compensation of the current block can include multiple CPMVs. At this time, some CPMV difference values (mvdLK) among the plurality of CPMVs can be obtained based on the difference values of other CPMVs and additional difference values. In FIG. 43, lmvd may be any one of a preset CPMV difference value or at least one additional difference value.

図43で、cpIdxは現在ブロックのコントロールポイントインデックスを示すことができる。例えば、現在ブロックに対して4-パラメータアフィン動き補償が遂行される場合、cpIdxは0または1でありうる。現在ブロックに対して6-パラメータアフィン動き補償が遂行される場合、cpIdxは0、1、または2でありうる。一実施形態に従って、CPMV差分値(MvdLx)はcpIdxによって異なる方式により決定できる。例えば、cpIdxが既設定された値(例、‘0’)である場合、MvdLxは既設定されたCPMVの差分値(lMvd[0][compIdx])でありうる。cpIdxが既設定された値(例、‘0’)でない場合、MvdLxは既設定されたCPMVの差分値(lMvd[0][compIdx])に該当インデックスに対応する追加差分値を足した値でありうる。ここで、MvdLxはCPMVとCPMV予測子との間の差を示すことができる。即ち、MvdLxは(CPMV-CPMV予測子)でありうる。 In FIG. 43, cpIdx can indicate the control point index of the current block. For example, cpIdx may be 0 or 1 when 4-parameter affine motion compensation is performed on the current block. cpIdx can be 0, 1, or 2 when 6-parameter affine motion compensation is performed for the current block. According to one embodiment, the CPMV difference value (MvdLx) can be determined in different ways depending on cpIdx. For example, if cpIdx is a preset value (eg, '0'), MvdLx may be a preset CPMV difference value (lMvd[0][compIdx]). If cpIdx is not a preset value (e.g. '0'), MvdLx is a value obtained by adding an additional differential value corresponding to the corresponding index to the preset CPMV difference value (lMvd[0][compIdx]). Possible. where MvdLx can denote the difference between CPMV and the CPMV predictor. That is, MvdLx can be (CPMV-CPMV predictor).

また、compIdxは動きベクトル差分値の成分を示すインデックスで、0または1でありうる。例えば、compIdxは動きベクトル差分値のx軸成分またはy軸成分のうち、いずれか1つを指示することができる。また、現在ブロックのCPMV差分値は参照ピクチャリスト別に異なることがある。図41で、L0は第1参照ピクチャリストを示し、L1は第2参照ピクチャリストを示す。 Also, compIdx is an index indicating a component of the motion vector difference value, and may be 0 or 1. For example, compIdx can indicate either the x-axis component or the y-axis component of the motion vector difference value. Also, the CPMV difference value of the current block may be different for each reference picture list. In FIG. 41, L0 indicates the first reference picture list and L1 indicates the second reference picture list.

図44は、本発明の一実施形態に従う現在ブロックのコントロールポイント動きベクトル差分値がシグナリングされる方法を示す図である。図44を参照すると、図9を通じて前述した動きベクトル差分値のシグナリング方法と類似の方法によりCPMV差分値がエンコーディングできる。例えば、エンコーダは前述したコントロールポイントインデックス(cpIdx)によって別途にCPMV差分値をエンコーディングしてCPMV差分値に対する少なくとも1つの情報を生成することができる。また、エンコーダはエンコーディングされたCPMV差分値に対する少なくとも1つの情報をシグナリングすることができる。デコーダはCPMV差分値に対する少なくとも1つの情報に基づいて、コントロールポイントインデックス(cpIdx)別にCPMV差分値を獲得することができる。 FIG. 44 is a diagram illustrating how the control point motion vector difference value of the current block is signaled according to one embodiment of the present invention. Referring to FIG. 44, the CPMV difference value can be encoded by a method similar to the signaling method of the motion vector difference value described above with reference to FIG. For example, the encoder can generate at least one piece of information about the CPMV difference value by encoding the CPMV difference value separately according to the control point index (cpIdx). Also, the encoder can signal at least one piece of information for the encoded CPMV difference value. A decoder can obtain a CPMV difference value for each control point index (cpIdx) based on at least one piece of information about the CPMV difference value.

前述した動きベクトル差分値の解像度と関連した実施形態は、図9、図43、及び図44の実施形態を通じて説明されたCPMV差分値に対しても同一または相応する方法により適用できる。例えば、現在ブロックのCPMV差分値の解像度がRの場合、シグナリングされたCPMV差分値はRに基づいて修正できる。この際、デコーダはシグナリングされたCPMV差分値に解像度(R)を掛けて修正されたCPMV差分値を獲得することができる。 Embodiments related to the resolution of the motion vector difference values described above can also be applied to the CPMV difference values described through the embodiments of FIGS. 9, 43, and 44 in the same or corresponding manner. For example, if the resolution of the CPMV difference values of the current block is R, then the signaled CPMV difference values can be modified based on R. At this time, the decoder can obtain a corrected CPMV difference value by multiplying the signaled CPMV difference value by the resolution (R).

図45は、本発明の一実施形態に従って現在ブロックのコントロールポイント動きベクトル差分値に対する差分予測子を用いて動きベクトルが獲得される方法を示す図である。図45を参照すると、現在ブロックのCPMVとCPMV予測子との間の差を示すCPMV差分値は差分予測子(mvdp)に基づいて決定できる。ここで、差分予測子(mvdp)はCPMVとCPMV予測子との間の差に対する予測値を示すことができる。具体的に、CPMV差分値は差分予測子(mvdp)及び追加差分値(mvd0″、mvd1″、mvd2″)に基づいて獲得できる。 FIG. 45 is a diagram illustrating how a motion vector is obtained using a differential predictor for a current block control point motion vector differential value according to an embodiment of the present invention. Referring to FIG. 45, a CPMV difference value indicating the difference between the CPMV of the current block and the CPMV predictor can be determined based on the differential predictor (mvdp). Here, the difference predictor (mvdp) can indicate the predicted value for the difference between CPMV and the CPMV predictor. Specifically, a CPMV difference value can be obtained based on a difference predictor (mvdp) and additional difference values (mvd0″, mvd1″, mvd2″).

例えば、差分予測子(mvdp)及び追加差分値(mvd0″、mvd1″、mvd2″)はエンコーダからデコーダにシグナリングできる。mvdp、mvd0″、mvd1″、及びmvd2″(6-パラメータアフィン動き補償が遂行される場合)の各々は図9または図44を通じて前述した方法によりエンコーディングまたはデコーディングできる。図45で、上段バー(bar)表示されたmv0、mv1、及びmv2は、各々第1のCPMV(mv0)、第2のCPMV(mv1)、及び第3のCPMV(mv2)の各々のCPMV予測子を示すことができる。エンコーダ及びデコーダは差分予測子(mvdp)を用いてCPMV差分値のためのシグナリングオーバーヘッドを減少させることができる。 For example, a differential predictor (mvdp) and additional differential values (mvd0″, mvd1″, mvd2″) can be signaled from the encoder to the decoder. ) can be encoded or decoded by the method described above with reference to FIG. 9 or FIG. In FIG. 45, mv0, mv1, and mv2 displayed in the upper bar are CPMV predictions of the first CPMV (mv0), the second CPMV (mv1), and the third CPMV (mv2), respectively. child can be shown. Encoders and decoders can use differential predictors (mvdp) to reduce signaling overhead for CPMV differential values.

一方、本発明の一実施形態に従って、差分予測子は現在ブロックのCPMVセットが含む複数のCPMVのうち、少なくとも1つに基づいて獲得できる。例えば、差分予測子は現在ブロックのCPMVセットが含む複数のCPMVのうち、いずれか1つのCPMV差分値でありうる。以下では、現在ブロックのCPMVセットを誘導するために使われる差分予測子が獲得される方法について叙述する。 Meanwhile, according to an embodiment of the present invention, a differential predictor can be obtained based on at least one of a plurality of CPMVs included in the CPMV set of the current block. For example, the difference predictor may be any one CPMV difference value among a plurality of CPMVs included in the CPMV set of the current block. The following describes how the differential predictors used to derive the CPMV set of the current block are obtained.

図46は、本発明の一実施形態に従って差分予測子を用いて現在ブロックのコントロールポイント動きベクトルが獲得される方法を示す図である。本発明の一実施形態に従って、エンコーダ及びデコーダは現在ブロックのmvd0、mvd1、及びmvd2(以下、mvdx)のうち、少なくとも1つを用いて現在ブロックの差分予測子(mvdp)を獲得することができる。一実施形態に従って、差分予測子(mvdp)はmvdxのうち、絶対値の最も小さいmvdxの絶対値より小さい値に設定できる。または、差分予測子(mvdp)はmvdxのうち、絶対値が最も大きいmvdxの絶対値より大きい値に設定できる。この場合、現在ブロックのCPMVセットが含む複数のCPMVの各々を誘導するために使われる追加差分値(図45のmvd0″、mvd1″、mvd2″)の符号が一致できる。本実施形態で、追加差分値はmvdxと差分予測子(mvdp)との間の差を示すことができる。 FIG. 46 illustrates how the control point motion vector of the current block is obtained using the differential predictor according to one embodiment of the present invention. According to an embodiment of the present invention, the encoder and decoder can obtain a differential predictor (mvdp) of the current block using at least one of mvd0, mvd1, and mvd2 (hereinafter mvdx) of the current block. . According to one embodiment, the differential predictor (mvdp) can be set to a value of mvdx that is less than the lowest absolute value of mvdx. Alternatively, the differential predictor (mvdp) can be set to a value greater than the absolute value of mvdx with the largest absolute value among mvdx. In this case, the signs of additional difference values (mvd0″, mvd1″, mvd2″ in FIG. 45) used to derive each of the plurality of CPMVs included in the CPMV set of the current block can match. The difference value can indicate the difference between mvdx and the difference predictor (mvdp).

例えば、差分予測子(mvdp)はmvdxのうち、絶対値の最も小さいmvdxの絶対値より小さい値に設定された場合、追加差分値(図45のmvd0″、mvd1″、mvd2″)の符号は正の符号(+)に一致できる。また、差分予測子(mvdp)は、mvdxのうち、絶対値の最も大きいmvdxの絶対値より大きい値に設定された場合、追加差分値(図45のmvd0″、mvd1″、mvd2″)の符号は負の符号(-)に一致できる。 For example, when the differential predictor (mvdp) is set to a value smaller than the absolute value of mvdx with the smallest absolute value among mvdx, the sign of the additional differential values (mvd0″, mvd1″, mvd2″ in FIG. 45) is The positive sign (+) can be matched, and if the difference predictor (mvdp) is set to a value greater than the absolute value of mvdx with the largest absolute value among mvdx, the additional difference value (mvd0 ", mvd1", mvd2") can match the negative sign (-).

図46を参照すると、差分予測子(mvdp)は、mvdxのうち、絶対値の最も小さいmvdxの絶対値より小さい値に設定できる。図46で、水平破砕線はmvdxの各々のx軸成分の絶対値のうちの最も小さい値を示し、垂直破砕線はmvdxの各々のy軸成分の絶対値のうちの最も小さい値を示す。x軸座標は右側であるほど値が大きくなり、y軸座標は上側であるほど値が大きくなることができる。この際、差分予測子(mvdp)は破砕線により区画された四分面のうち、第3四分面(mvdp area)内の値でありうる。 Referring to FIG. 46, the differential predictor (mvdp) can be set to a value smaller than the absolute value of mvdx with the smallest absolute value among mvdx. In FIG. 46, the horizontal dashed line indicates the smallest absolute value of each x-axis component of mvdx, and the vertical dashed line indicates the smallest absolute value of each y-axis component of mvdx. The right side of the x-axis can have a larger value, and the higher side of the y-axis can have a larger value. At this time, the differential predictor (mvdp) may be a value within a third quadrant (mvdp area) among quadrants partitioned by the fracture line.

この場合、現在ブロックの追加差分値の符号は全て正の符号(+)になることができる。これによって、追加差分値に対する符号を示す情報が別途にシグナリングされないことがある。具体的に、現在ブロックの差分予測子(mvdp)及び追加差分値(mvdx″)の各々は[数式7]のように誘導できる。 In this case, the signs of the additional difference values of the current block can all be positive signs (+). Accordingly, information indicating a sign for the additional difference value may not be separately signaled. Specifically, each of the difference predictor (mvdp) and the additional difference value (mvdx″) of the current block can be derived as [Equation 7].


Figure 0007159354000007
Figure 0007159354000007

[数式7]を参照すると、差分予測子(mvdp)の符号を示す情報(mvd_sign_flag)がシグナリングできる。エンコーダは差分予測子の符号情報をシグナリングすることができる。また、デコーダは差分予測子の符号情報(mvd_sign_flag)に基づいて現在ブロックのCPMVセットを獲得することができる。一方、追加差分値(mvdx″)の各々の符号を示す情報はシグナリングされないことがある。追加的な実施形態に従って、差分予測子(mvdp)を決定する方法を示すmvdp指示子がシグナリングされることもできる。例えば、mvdp指示子は差分予測子(mvdp)をmvdxのうち、最小値より小さい値に決定するのか、または最大値より大きい値に決定するのかを示すフラグでありうる。 Referring to [Formula 7], information (mvd_sign_flag) indicating the sign of the differential predictor (mvdp) can be signaled. The encoder can signal the sign information of the differential predictor. Also, the decoder can obtain the CPMV set of the current block based on the sign information (mvd_sign_flag) of the differential predictor. On the other hand, information indicating the sign of each of the additional difference values (mvdx″) may not be signaled. According to an additional embodiment, an mvdp indicator indicating how to determine the difference predictor (mvdp) is signaled. For example, the mvdp indicator can be a flag indicating whether the differential predictor (mvdp) is determined to be less than the minimum value or greater than the maximum value of mvdx.

図47は、本発明の他の一実施形態に従って差分予測子を用いて現在ブロックのコントロールポイント動きベクトルが獲得される方法を示す図である。本発明の一実施形態に従って、現在ブロックの差分予測子は現在ブロックのCPMVセットが含む複数のCPMVのうち、いずれか1つのCPMV差分値でありうる。図46を参照すると、Method 0、Method 1、Method 2によって差分予測子が変わることができる。例えば、Method 0で差分予測子はmvd0でありうる。また、Method 1で差分予測子はmvd1でありうる。Method 2で差分予測子はmvd2でありうる。 FIG. 47 is a diagram illustrating how a control point motion vector of a current block is obtained using a differential predictor according to another embodiment of the present invention. According to an embodiment of the present invention, the differential predictor of the current block may be any one CPMV differential value among a plurality of CPMVs included in the CPMV set of the current block. Referring to FIG. 46, a difference predictor can be changed by Method 0, Method 1, and Method 2. FIG. For example, in Method 0 the differential predictor can be mvd0. Also, in Method 1, the differential predictor may be mvd1. In Method 2, the differential predictor can be mvd2.

一実施形態に従って、複数の方法のうち、どの方法により差分予測子が決定されるかを示すmvdp指示子(cpIdxPred)がシグナリングできる。ここで、複数の方法は図47のMethod 0、Method 1、Method 2、及び図46を通じて説明した方法のうち、少なくとも1つを含むことができる。図47の実施形態で、エンコーダはMethod 0、Method 1、Method 2のうち、いずれか1つを指示するmvdp指示子(cpIdxPred)をシグナリングすることができる。また、デコーダはmvdp指示子(cpIdxPred)に基づいてMethod 0、Method 1、Method 2のうち、いずれか1つを決定することができる。また、デコーダは決定された方法によって現在ブロックの差分予測子を獲得することができる。また、デコーダは獲得された差分予測子に基づいて現在ブロックのCPMVセットを獲得することができる。 According to one embodiment, an mvdp indicator (cpIdxPred) can be signaled that indicates which of multiple methods the differential predictor is determined by. Here, the plurality of methods may include at least one of Method 0, Method 1, and Method 2 of FIG. 47 and the methods described with reference to FIG. In the FIG. 47 embodiment, the encoder can signal an mvdp indicator (cpIdxPred) that indicates one of Method 0, Method 1, Method 2. Also, the decoder can determine one of Method 0, Method 1, and Method 2 based on the mvdp indicator (cpIdxPred). Also, the decoder can obtain a differential predictor of the current block according to the determined method. Also, the decoder can obtain a CPMV set for the current block based on the obtained differential predictors.

他の実施例に従って、mvdp指示子(cpIdxPred)は暗黙的にシグナリングされることもできる。即ち、エンコーダ及びデコーダはmvdp指示子(cpIdxPred)に対するシグナリング無しで現在ブロックの差分予測子を決定することもできる。これに対しては、図49乃至図50を通じて具体的に説明する。 According to another embodiment, the mvdp indicator (cpIdxPred) can also be implicitly signaled. That is, the encoder and decoder can also determine the differential predictor of the current block without signaling the mvdp indicator (cpIdxPred). This will be described in detail with reference to FIGS. 49 to 50. FIG.

図48は、本発明の一実施形態に従って差分予測子が獲得される方法を示す図である。本発明の一実施形態に従って、コントロールポイントインデックス(cpIdx)がmvdp指示子(cpIdxPred)と同一の場合、差分予測子が該当CPMVの差分値に使われることができる。コントロールポイントインデックス(cpIdx)がmvdp指示子(cpIdxPred)と同一でない場合、cpIdxに対応する追加差分値及び差分予測子に基づいて該当CPMVの差分値が獲得できる。動きベクトル差分値に対するコーディング効率の高い方法を指示するmvdp指示子(cpIdxPred)がシグナリングできる。図48で、lmvdは差分予測子または追加差分値のうち、いずれか1つを示すことができる。また、MvdLKはCPMV差分値を示すことができる。 FIG. 48 illustrates how differential predictors are obtained according to one embodiment of the present invention. According to an embodiment of the present invention, if the control point index (cpIdx) is the same as the mvdp indicator (cpIdxPred), the differential predictor can be used as the differential value of the corresponding CPMV. If the control point index (cpIdx) is not the same as the mvdp indicator (cpIdxPred), the difference value of the corresponding CPMV can be obtained based on the additional difference value and the difference predictor corresponding to cpIdx. An mvdp indicator (cpIdxPred) can be signaled to indicate a coding efficient method for motion vector differential values. In FIG. 48, lmvd can indicate either one of the difference predictor or the additional difference value. Also, MvdLK can indicate the CPMV difference value.

図48で、LXは参照ピクチャリストL0またはL1を示すことができる。また、mvdp指示子は可変長さのビットで表現できる。例えば、mvdp指示子は切削単項(truncated unary)方法によりシグナリングできる。また、図46乃至図48で前述した実施形態は動きベクトル差分値の成分別に遂行できる。前述した動きベクトル差分値の解像度と関連した実施形態は図46乃至48の実施形態を通じて説明されたCPMV差分値に対しても同一または相応する方法により適用できる。例えば、現在ブロックのCPMV差分値の解像度がRの場合、シグナリングされたCPMV差分値はRに基づいて修正できる。この際、デコーダはシグナリングされたCPMV差分値に解像度(R)を掛けて修正されたCPMV差分値を獲得することができる。 In FIG. 48, LX can indicate the reference picture list L0 or L1. Also, the mvdp indicator can be expressed in bits of variable length. For example, the mvdp indicator can be signaled by a truncated unary method. Also, the embodiments described with reference to FIGS. 46 to 48 can be performed for each component of the motion vector difference value. Embodiments related to the resolution of the motion vector difference value described above can also be applied to the CPMV difference value described through the embodiments of FIGS. 46 to 48 in the same or corresponding manner. For example, if the resolution of the CPMV difference values of the current block is R, then the signaled CPMV difference values can be modified based on R. At this time, the decoder can obtain a corrected CPMV difference value by multiplying the signaled CPMV difference value by the resolution (R).

本発明の一実施形態をよれば、mvdp指示子(cpIdxPred)でないコントロールポイントインデックスに対するIMvdのシグナリングを減らす方式によりmvdp指示子をシグナリングまたは決定することが可能である。例えば、mvdp指示子でないコントロールポイントインデックスに対するIMvdの符号が一致するようにmvdp指示子をシグナリングすることができる。または、明示的なシグナリング無しで差分予測子が決定されることもできる。これに対しては図49乃至図51を通じて後述する。 According to one embodiment of the present invention, the mvdp indicator (cpIdxPred) can be signaled or determined in a manner that reduces IMvd signaling for control point indices that are not mvdp indicator (cpIdxPred). For example, the mvdp indicator can be signaled to match the sign of the IMvd for control point indices that are not mvdp indicators. Alternatively, differential predictors can be determined without explicit signaling. This will be described later with reference to FIGS. 49 to 51. FIG.

前述したように、現在ブロックの差分予測子が現在ブロックのCPMV差分値の絶対値のうち、最小値または最大値に決定される場合、コントロールポイントインデックスに対するlmvdの間の符号が一致できる。この際、コントロールポイントインデックスがmvdp指示子と異なる場合、符号情報をシグナリングしないことがある。ここで、CPMV差分値の絶対値が最小または最大ということは、特定成分の絶対値が最小または最大であることを意味することができる。例えば、mvdp指示子が3個の値のうち、いずれか1つを示す場合、切削単項方法によりmvdp指示子のうち、1つは1ビット、2つは2ビットを使用してシグナリングできる。 As described above, if the difference predictor of the current block is determined to be the minimum or maximum absolute value of the CPMV difference values of the current block, the sign between lmvd for the control point index can match. At this time, if the control point index is different from the mvdp indicator, the code information may not be signaled. Here, the minimum or maximum absolute value of the CPMV difference value can mean that the absolute value of the specific component is minimum or maximum. For example, if the mvdp indicator indicates one of three values, one of the mvdp indicators can be signaled using one bit and two using two bits according to the cutting unary method.

本発明の他の一実施形態に従って、mvdp指示子はCPMV差分値の絶対値のうち、中央または中間値に該当するCPMV差分値でありうる。この場合、lmvdの符号は、1つは(+)であり、1つは(-)でありうる。これによって、1ビットを使用して2つのCPMV差分値の各々の符号情報をシグナリングすることができる。これを通じて、エンコーダ及びデコーダはCPMV差分値の符号情報のためのシグナリングオーバーヘッドを減少させることができる。 According to another embodiment of the present invention, the mvdp indicator may be a CPMV difference value corresponding to a median or intermediate value among absolute values of CPMV difference values. In this case, the sign of lmvd can be one (+) and one (-). This allows one bit to be used to signal sign information for each of the two CPMV difference values. Through this, the encoder and decoder can reduce signaling overhead for sign information of CPMV difference values.

本発明の更に他の一実施形態に従って、現在ブロックの差分予測子を決定する方法を指示するmvdp指示子(cpIdxPred)は暗黙的にシグナリングできる。例えば、現在ブロックの差分予測子を決定する方法は他の情報に基づいて決定できる。より具体的に、エンコーダ及びデコーダは現在ブロックのCPMV差分値のうち、絶対値の最も大きいCPMVの差分値を差分予測子に決定することができる。動きベクトル差分値がシグナリングされる場合、複数のCPMVを誘導する使われる差分予測子の絶対値が大きいほど有利でありうるためである。 According to yet another embodiment of the present invention, an mvdp indicator (cpIdxPred) that indicates how to determine the differential predictor of the current block can be implicitly signaled. For example, how to determine the differential predictor for the current block can be determined based on other information. More specifically, the encoder and decoder may determine a CPMV difference value having the largest absolute value among the CPMV difference values of the current block as a difference predictor. This is because when the motion vector difference value is signaled, the larger the absolute value of the difference predictor used to derive multiple CPMVs, the more advantageous it may be.

図49は、本発明の一実施形態に従って現在ブロックの差分ベクトル予測子が決定される方法を示す図である。図49を参照すると、3個のCPMVが現在ブロックのアフィン動き補償のために使われることができる。以下では、説明の便宜のためにx軸成分を例に挙げて説明するが、本開示がこれに制限されるのではない。後述する実施形態はy軸成分に対しても同一または相応する方法により適用できる。一実施形態に従って、現在ブロックのCPMVの各々のCPMV差分値であるmvd0、mvd1、及びmvd2のうち、x軸成分の絶対値が最小であるCPMVを指示するコントロールポイントインデックスは‘1’でありうる。 FIG. 49 illustrates how the current block's difference vector predictor is determined according to one embodiment of the present invention. Referring to FIG. 49, three CPMVs can be used for affine motion compensation of the current block. Although the x-axis component will be described below as an example for convenience of explanation, the present disclosure is not limited thereto. The embodiments described below can also be applied to the y-axis component in the same or corresponding manner. According to an embodiment, the control point index indicating the CPMV having the smallest absolute value of the x-axis component among the CPMV difference values mvd0, mvd1, and mvd2 of each CPMV of the current block may be '1'. .

図49で、破砕線は参照予測子のx軸成分の値を示す。図49のように、CPMV差分値の絶対値が最小であるCPMV差分値が差分予測子に使われる場合、差分予測子に選択されない残りのCPMV差分値の各々の符号は正の符号(+)に一致できる。これによって、エンコーダはmvdp指示子に対するシグナリングを省略することができる。また、デコーダはmvdp指示子無しで現在ブロックのCPMVセットを誘導することができる。 In FIG. 49, the dashed line indicates the value of the x-axis component of the reference predictor. As shown in FIG. 49, when the CPMV difference value with the smallest absolute value of the CPMV difference value is used as the difference predictor, the sign of each of the remaining CPMV difference values that are not selected as the difference predictor is a positive sign (+). can match This allows the encoder to omit signaling for the mvdp indicator. Also, the decoder can derive the CPMV set of the current block without the mvdp indicator.

図50は、現在ブロックのコントロールポイント動きベクトル差分値がシグナリングされる方法を示す図である。図48乃至図49を通じて前述したように、符号ビットハイディング方法を使用する場合、コントロールポイントインデックスとmvdp指示子が相異する場合の符号情報に対するシグナリングが省略できる。図50を参照すると、動きベクトル差分値の符号情報(mvd_sign_flag)はコントロールポイントインデックスとmvdp指示子が同一の場合、パーシングできる。反対に、コントロールポイントインデックスとmvdp指示子が相異する場合、遂行されないことがある。図50で、[0]と[1]で、0、1は成分インデックスを示し、各々x軸成分及びy軸成分を示すことができる。 FIG. 50 is a diagram showing how the control point motion vector difference value of the current block is signaled. As described above with reference to FIGS. 48 and 49, when using the code bit hiding method, signaling of code information when the control point index and the mvdp indicator are different can be omitted. Referring to FIG. 50, sign information (mvd_sign_flag) of the motion vector difference value can be parsed when the control point index and the mvdp indicator are the same. Conversely, if the control point index and the mvdp indicator are different, it may not be performed. In FIG. 50, [0] and [1], where 0 and 1 indicate component indices, can indicate the x-axis component and the y-axis component, respectively.

本発明の一実施形態に従って、動きベクトル差分値に対する情報は既設定された順序に従って順次にパーシングできる。この際、既設定された順序はコントロールポイントインデックスに基づいて設定された順序でありうる。一実施形態に従って、既設定された順序はmvdp指示子に基づいて決定された順序でありうる。 According to an embodiment of the present invention, information on motion vector difference values can be sequentially parsed according to a preset order. At this time, the preset order may be the order set based on the control point index. According to one embodiment, the preset order can be the order determined based on the mvdp indicator.

本発明の一実施形態によれば、動きベクトル差分値をコーディングする関数が存在できる。また、動きベクトル差分値をコーディングする関数の例は、図50のmvd_codingシンタックスでありうる。一実施形態に従って、デコーダはコントロールポイントインデックスによって、動きベクトル差分値に対する情報をパーシングすることができる。例えば、図50のmvd_codingシンタックスはコントロールポイントインデックス別に遂行されることもできる。この際、既設定された順序は以下の[数式8]のように遂行できる。[数式8]によれば、常に同一の順にパーシングが遂行できる。 According to one embodiment of the present invention, there can be a function for coding motion vector difference values. Also, an example of a function for coding motion vector difference values can be the mvd_coding syntax of FIG. According to one embodiment, a decoder can parse information for motion vector difference values according to control point indices. For example, the mvd_coding syntax of FIG. 50 can be performed for each control point index. At this time, the preset order can be performed as in [Equation 8] below. According to [Formula 8], parsing can always be performed in the same order.


Figure 0007159354000008
Figure 0007159354000008

他の一実施形態に従って、mvdp指示子に対応するCPMV差分値に対する情報は、mvdp指示子に対応しない他のCPMVの差分値に対する情報より先にパーシングできる。この場合、特定コントロールポイントインデックスに対応する追加差分値をデコーディングした後、直ちに該当コントロールポイントインデックスに対応するCPMV差分値を算出することができる。本実施形態とは異なり、mvdp指示子に対応するCPMV差分値に対する情報がmvdp指示子に対応しない他のCPMVの差分値に対する情報より先にパーシングされないことがある。この場合、特定コントロールポイントインデックスに対応する追加差分値をデコーディングした後にも該当コントロールポイントインデックスに対応するCPMV差分値を算出するまで待機時間がかかることがある。具体的な例に、mvdp指示子が‘1’の場合、mvd_codingシンタックスは以下の[数式9]の通りである。 According to another embodiment, information for CPMV difference values corresponding to mvdp indicators can be parsed before information for other CPMV difference values that do not correspond to mvdp indicators. In this case, after decoding the additional difference value corresponding to the specific control point index, the CPMV difference value corresponding to the corresponding control point index can be calculated immediately. Unlike the present embodiment, the information on the CPMV difference value corresponding to the mvdp indicator may not be parsed before the information on the difference value of other CPMVs not corresponding to the mvdp indicator. In this case, even after decoding the additional difference value corresponding to the specific control point index, a waiting time may be required until the CPMV difference value corresponding to the corresponding control point index is calculated. As a specific example, when the mvdp indicator is '1', the mvd_coding syntax is as [Formula 9] below.


Figure 0007159354000009
Figure 0007159354000009

他の具体的な例として、mvdp指示子が‘2’の場合、mvd_codingシンタックスは以下の[数式10]の通りである。 As another specific example, when the mvdp indicator is '2', the mvd_coding syntax is as in [Formula 10] below.


Figure 0007159354000010
Figure 0007159354000010

図51は、本発明の他の一実施形態に従って、現在ブロックのコントロールポイント動きベクトルが誘導される方法を示す図である。図51で、lmvdは差分予測子または追加差分値を示すことができる。図51を参照すると、特定コントロールポイントインデックスがmvdp指示子と同一の場合、符号情報に基づいて差分予測子が算出できる。これとは異なり、特定コントロールポイントインデックスがmvdp指示子と相異する場合、追加差分値を算出するに当たって符号情報を使用しないことがある。 FIG. 51 is a diagram illustrating how the control point motion vector of the current block is derived according to another embodiment of the present invention. In FIG. 51, lmvd can indicate the difference predictor or the additional difference value. Referring to FIG. 51, if the specific control point index is the same as the mvdp indicator, a differential predictor can be calculated based on the code information. Alternatively, if the specific control point index is different from the mvdp indicator, sign information may not be used in calculating the additional difference value.

一方、本発明の一実施形態に従って、前述した動きベクトル差分値の解像度は現在ブロックの動き補償のための複数のCPMV別に各々異なる値が使われることができる。例えば、コントロールポイントインデックス別にCPMV差分値がシグナリングされる解像度が異なることがある。一実施形態に従って、図42、図45、及び図47のように差分予測子が用いられる場合、動きベクトル差分値の解像度は現在ブロックの複数のCPMV別に各々異なる値が使われることができる。 Meanwhile, according to an embodiment of the present invention, the resolution of the motion vector difference value may be different for each of a plurality of CPMVs for motion compensation of the current block. For example, the resolution at which the CPMV difference value is signaled may be different for each control point index. According to an embodiment, when differential predictors are used as in FIGS. 42, 45, and 47, the resolution of the motion vector differential value may be different for each of the CPMVs of the current block.

一実施形態に従って、特定コントロールポイントインデックスのCPMV差分値が現在ブロックの差分予測子に使われることができる。この場合、該当コントロールポイントインデックスに対応するCPMV差分値のための解像度がシグナリングできる。また、該当コントロールポイントインデックスに対応するCPMV差分値は、該当解像度に基づいてシグナリングできる。一方、該当コントロールポイントインデックスを除外した残りのコントロールポイントインデックスに対応するCPMV差分値は既設定された解像度に基づいてシグナリングできる。この際、該当コントロールポイントインデックスを除外した残りのコントロールポイントインデックスに対応するCPMV差分値がシグナリングされる単位を示す解像度はシグナリングされないことがある。また、既設定された解像度はデフォルト値でありうる。 According to one embodiment, a CPMV difference value of a specific control point index can be used as a difference predictor of the current block. In this case, the resolution for the CPMV difference value corresponding to the corresponding control point index can be signaled. Also, the CPMV difference value corresponding to the corresponding control point index can be signaled based on the corresponding resolution. Meanwhile, CPMV difference values corresponding to control point indexes other than the corresponding control point index can be signaled based on the preset resolution. At this time, the resolution indicating the unit in which the CPMV difference values corresponding to the remaining control point indexes excluding the corresponding control point index are signaled may not be signaled. Also, the preset resolution may be a default value.

他の一実施形態に従って、現在ブロックの差分予測子に使われるCPMV差分値は相対的に小さい単位の解像度に基づいてシグナリングできる。また、現在ブロックの差分予測子に使われるCPMV差分値の以外の他のコントロールポイントのCPMV差分値は相対的に大きい単位の解像度に基づいてシグナリングされることもできる。 According to another embodiment, the CPMV difference value used for the difference predictor of the current block can be signaled based on a relatively small unit of resolution. Also, CPMV difference values of control points other than the CPMV difference value used for the difference predictor of the current block may be signaled based on a relatively large unit resolution.

図52は、本発明の一実施形態に従って現在ブロックのアフィン動き補償のための複数のコントロールポイント動きベクトルが誘導される方法を示す図である。図52を参照すると、第1のCPMV差分値(mvd0)及び第2のCPMV差分値(mvd1)を共通差分予測子(mvdp)及び単一の差分絶対値(mvdd)に基づいて獲得することができる。例えば、第1のCPMV差分値(Mvd0)はmvdpとmvddの合算に基づいて獲得できる。また、第のCPMV差分値(mvd1)はmvdpと-mvddの合算に基づいて獲得できる。 FIG. 52 illustrates how multiple control point motion vectors are derived for affine motion compensation of the current block according to one embodiment of the present invention. Referring to FIG. 52, a first CPMV difference value (mvd0) and a second CPMV difference value (mvd1) can be obtained based on a common difference predictor (mvdp) and a single absolute difference value (mvdd). can. For example, a first CPMV difference value (Mvd0) can be obtained based on the sum of mvdp and mvdd. Also, a second CPMV difference value (mvd1) can be obtained based on the sum of mvdp and -mvdd.

図52は、本発明の一実施形態に従って現在ブロックのアフィン動き補償のための複数のコントロールポイント動きベクトルが誘導される方法を示す図である。図52を参照すると、第1のCPMV差分値(mvd0)及び第2のCPMV差分値(mvd1)を共通差分予測子(mvdp)及び単一の差分絶対値(mvdd)に基づいて獲得することができる。例えば、第1のCPMV差分値(Mvd0)はmvdpとmvddの合算に基づいて獲得できる。また、第1のCPMV差分値(mvd1)はmvdpと-mvddの合算に基づいて獲得できる。 FIG. 52 illustrates how multiple control point motion vectors are derived for affine motion compensation of the current block according to one embodiment of the present invention. Referring to FIG. 52, a first CPMV difference value (mvd0) and a second CPMV difference value (mvd1) can be obtained based on a common difference predictor (mvdp) and a single absolute difference value (mvdd). can. For example, a first CPMV difference value (Mvd0) can be obtained based on the sum of mvdp and mvdd. Also, a first CPMV difference value (mvd1) can be obtained based on the sum of mvdp and -mvdd.

例えば、エンコーダは共通差分予測子(mvdp)及び差分絶対値(mvdd)をシグナリングすることができる。デコーダは共通差分予測子(mvdp)及び差分絶対値(mvdd)に基づいて現在ブロックの複数のコントロールポイントの各々に対応するCPMV差分値を獲得することができる。図52は、4-パラメータアフィン動き補償に対して示したが、本開示がこれに制限されるのではない。例えば、6-パラメータアフィン動き補償が遂行される場合、現在ブロックのCPMVセットが含むCPMVのうちの一部は、他のCPMVのCPMV予測子とCPMV差分値を用いて誘導できる。 For example, an encoder can signal a common differential predictor (mvdp) and a differential absolute value (mvdd). A decoder can obtain a CPMV difference value corresponding to each of a plurality of control points of the current block based on a common difference predictor (mvdp) and a difference absolute value (mvdd). Although FIG. 52 is shown for 4-parameter affine motion compensation, this disclosure is not so limited. For example, when 6-parameter affine motion compensation is performed, some of the CPMVs included in the CPMV set of the current block can be derived using CPMV predictors of other CPMVs and CPMV difference values.

本発明の一実施形態に従って、現在ブロックは現在ブロックの予測モードによって追加的に分割できる。例えば、現在ブロックの予測モードがイントラ予測モードである場合、エンコーダ及びデコーダは現在ブロックを複数のサブブロックに分割して各々のサブブロックに対してイントラ予測を遂行することができる。デコーダは、ビットストリームから前述したイントラ予測モード情報を受信することができる。デコーダは、イントラ予測モード情報に基づいて現在ブロックを複数のサブブロックに分割するかを決定することができる。この際、現在ブロックが複数のサブブロックに分割される方法に対する情報が追加的にシグナリングできる。または、エンコーダ及びデコーダはイントラ予測モード情報によってエンコーダ及びデコーダの間に既設定された方法を用いて現在ブロックを分割することもできる。次に、デコーダは現在ブロックのイントラ予測モード情報に基づいて現在ブロックまたは複数のサブブロックの各々に対するイントラ予測を遂行することができる。以下、図53乃至図60の実施形態で現在ブロックはコーディングユニットを示す用語に使われることができる。また、図53乃至図60のSCU(Sub-CU)は、現在ブロックから分割された複数のサブブロックを示す。以下では、現在ブロックが複数のサブブロックに分割される方法について具体的に説明する。 According to an embodiment of the present invention, the current block can be additionally partitioned according to the prediction mode of the current block. For example, if the prediction mode of the current block is the intra prediction mode, the encoder and decoder can divide the current block into a plurality of sub-blocks and perform intra prediction on each sub-block. A decoder can receive the aforementioned intra-prediction mode information from the bitstream. A decoder can determine whether to divide a current block into a plurality of sub-blocks based on intra-prediction mode information. At this time, information on how the current block is divided into a plurality of sub-blocks can be additionally signaled. Alternatively, the encoder and decoder may divide the current block using a preset method between the encoder and decoder according to the intra-prediction mode information. Next, the decoder can perform intra prediction for the current block or each of the plurality of sub-blocks based on the intra prediction mode information of the current block. Hereinafter, in the embodiments of FIGS. 53 to 60, the current block may be used as a term indicating a coding unit. Also, SCU (Sub-CU) in FIGS. 53 to 60 indicates a plurality of sub-blocks divided from the current block. Hereinafter, a detailed description will be given of how the current block is divided into a plurality of sub-blocks.

図53は、現在ブロックが複数のサブブロックに分割される形態の多様な実施形態を図示したものである。図53(a)と図53(b)は、現在ブロックから正方形に分割されたサブブロックを図示したものである。例えば、現在ブロックは既設定されたサイズのサブブロックに分割できる。この際、既設定されたサイズはエンコーダとデコーダとの間に事前協議されたサイズでありうる。一実施形態に従って、既設定されたサイズは高さと幅が互いに同一のN×Nサイズでありうる。例えば、既設定されたサイズは4×4でありうる。一実施形態に従って、既設定されたサイズは変換カーネル(transform kernel)のサイズに基づいて設定された値でありうる。既設定されたサイズは変換ユニットに基づいて設定された値でありうる。既設定されたサイズは変換ユニットのサイズでありうる。 FIG. 53 illustrates various embodiments in which the current block is divided into a plurality of sub-blocks. FIGS. 53(a) and 53(b) illustrate sub-blocks divided into squares from the current block. For example, the current block can be divided into sub-blocks of preset size. At this time, the preset size may be a size pre-negotiated between the encoder and the decoder. According to one embodiment, the preset size may be an N×N size having the same height and width. For example, the preset size can be 4×4. According to one embodiment, the preset size may be a value set based on the size of the transform kernel. The preset size may be a value set based on the transform unit. The preset size can be the size of the transform unit.

一実施形態に従って、現在ブロックは現在ブロックのサイズによって決定されたサイズのサブブロックに分割されることもできる。例えば、現在ブロックのサイズが第1しきい値より大きい場合、現在ブロックは第1しきい値よりサイズの小さいブロックに比べて大きいサイズのサブブロックに分割できる。また、現在ブロックのサイズによってサブブロックに分割される動作が制限されることもできる。例えば、現在ブロックのサイズが第2しきい値より小さい場合、エンコーダ及びデコーダは現在ブロックを複数のブロックに分割しないことがある。現在ブロックのサイズが相対的に小さい場合、現在ブロックのサイズが相対的に大きい場合に比べて現在ブロックを分割してイントラ予測を遂行する方法に従う性能利得が大きくないことがあるためである。 According to one embodiment, the current block may be divided into sub-blocks of sizes determined by the size of the current block. For example, if the size of the current block is larger than a first threshold, the current block can be divided into sub-blocks of larger size than blocks smaller than the first threshold. Also, the operation of dividing into sub-blocks may be restricted according to the size of the current block. For example, if the size of the current block is less than a second threshold, the encoder and decoder may not split the current block into multiple blocks. This is because when the size of the current block is relatively small, the performance gain according to the method of performing intra prediction by dividing the current block may not be as large as when the size of the current block is relatively large.

一実施形態に従って、サブブロックが分割される形態は現在ブロックの形態と独立的に決定できる。例えば、現在ブロックが正方形である場合にも、現在ブロックから分割された複数のサブブロックの形態は非正方形でありうる。図53(c)及び53(d)は、現在ブロックから非正方形に分割されたサブブロックを図示したものである。一実施形態に従って、現在ブロックは既設定されたサイズの非正方形のサブブロックに分割できる。この際、前述した既設定されたサイズの高さと幅が互いに異なることがある。例えば、既設定されたサイズは4×8または8×4でありうる。前述したように、既設定されたサイズは現在ブロックのサイズによって設定された値でありうる。一実施形態に従って、エンコーダ及びデコーダが4×8または8×4サイズの非正方形変換カーネルを支援することができる。また、現在ブロックが非正方形のサブブロックに分割される必要がある場合、既設定されたサイズは非正方形変換ユニットに基づいて設定された値でありうる。 According to one embodiment, the form in which the sub-blocks are divided can be determined independently of the form of the current block. For example, even if the current block is square, the shape of a plurality of sub-blocks divided from the current block may be non-square. Figures 53(c) and 53(d) illustrate non-square partitioned sub-blocks from the current block. According to one embodiment, the current block can be divided into non-square sub-blocks of preset size. At this time, the height and width of the preset size may be different from each other. For example, the preset size can be 4x8 or 8x4. As described above, the preset size may be a value set according to the size of the current block. According to one embodiment, the encoder and decoder can support non-square transform kernels of 4x8 or 8x4 size. Also, if the current block needs to be divided into non-square sub-blocks, the preset size may be a value set based on the non-square transform unit.

他の一実施形態に従って、現在ブロックは現在ブロックの形態と類似の形態の複数のサブブロックに分割できる。図53(e)及び53(f)は現在ブロックが非正方形ブロックである場合、現在ブロックから分割されたサブブロックを図示したものである。例えば、現在ブロックが非正方形である場合、現在ブロックは現在ブロックの形態と類似の非正方形のサブブロックに分割できる。図53(e)のように、現在ブロックの高さが幅より長い場合、現在ブロックは高さが幅より長い形態の複数のサブブロックに分割できる。図53(f)のように、現在ブロックの幅が高さより長い場合、現在ブロックは幅が高さより長い形態の複数のサブブロックに分割できる。 According to another embodiment, the current block can be divided into a plurality of sub-blocks having a form similar to that of the current block. Figures 53(e) and 53(f) illustrate sub-blocks divided from the current block when the current block is a non-square block. For example, if the current block is non-square, the current block can be divided into non-square sub-blocks similar in shape to the current block. As shown in FIG. 53(e), if the height of the current block is longer than the width, the current block can be divided into a plurality of sub-blocks with a height longer than the width. As shown in FIG. 53(f), when the width of the current block is longer than the height, the current block can be divided into a plurality of sub-blocks having a width longer than the height.

本発明の一実施形態に従って、現在ブロックが分割される形態は現在ブロックの予測モードに基づいて決定できる。例えば、現在ブロックが分割されるサイズまたは方向のうち、少なくとも1つは現在ブロックのイントラ予測モード(角度モード、DCモード、または平面モード)によって変わることができる。図54は、現在ブロックのイントラ予測モードによって現在ブロックが分割される方法を図示したものである。図54(a)を参照すると、複数のイントラ予測モードは平面モードまたはDCモードのような無方向性モードとイントラ予測モードインデックス2乃至66の各々に対応する角度モードに分類できる。 According to an embodiment of the present invention, the form in which the current block is divided can be determined based on the prediction mode of the current block. For example, at least one of the size or direction in which the current block is divided may vary depending on the intra-prediction mode (angle mode, DC mode, or planar mode) of the current block. FIG. 54 illustrates how the current block is divided according to the intra prediction mode of the current block. Referring to FIG. 54(a), a plurality of intra prediction modes can be classified into non-directional modes such as planar mode or DC mode and angular modes corresponding to intra prediction mode indexes 2 to 66, respectively.

一実施形態に従って、現在ブロックがイントラ予測される場合、現在ブロックから分割されたサブブロックのうち、現在ブロックの参照サンプルと遠い位置のサブブロックのレジデュアル信号が相対的に大きいことがある。これによって、現在ブロックの参照サンプルから距離が類似のサンプル同士が同一のサブブロックに属するように分割できる。 According to an embodiment, when a current block is intra-predicted, among sub-blocks divided from the current block, residual signals of sub-blocks far from reference samples of the current block may be relatively large. Accordingly, the reference samples of the current block can be divided so that the samples having similar distances belong to the same sub-block.

一実施形態に従って、現在ブロックのイントラ予測モードが無方向性モードである場合、現在ブロックは図54(b)のように正方形の複数のサブブロックに分割できる。また、現在ブロックのイントラ予測モードが前述した水平対角モード、対角モード、及び垂直対角モードのうち、いずれか1つである場合、現在ブロックは正方形の複数のサブブロックに分割できる。また、現在ブロックのイントラ予測モードが水平対角モード、対角モード、及び垂直対角モードのうち、いずれか1つの周辺の角度モードである場合、現在ブロックは正方形の複数のサブブロックに分割できる。 According to one embodiment, if the intra-prediction mode of the current block is the non-directional mode, the current block can be divided into a plurality of square sub-blocks as shown in FIG. 54(b). Also, if the intra prediction mode of the current block is any one of the horizontal diagonal mode, the diagonal mode, and the vertical diagonal mode, the current block can be divided into a plurality of square sub-blocks. In addition, if the intra prediction mode of the current block is one of the horizontal diagonal mode, the diagonal mode, and the vertical diagonal mode, the current block can be divided into a plurality of square sub-blocks. .

一方、現在ブロックのイントラ予測モードが水平モードまたは垂直モードである場合、現在ブロックは現在ブロックのイントラ予測モードによって図54(c)または54(d)のように非正方形の複数のサブブロックに分割できる。また、現在ブロックのイントラ予測モードが水平モード及び垂直モードのうち、いずれか1つの周辺の角度モードである場合、現在ブロックは非正方形の複数のサブブロックに分割できる。これを通じて、現在ブロックは現在ブロックの参照サンプルから距離が類似のサンプル同士が同一のサブブロックに属するように分割できる。 On the other hand, if the intra-prediction mode of the current block is horizontal mode or vertical mode, the current block is divided into a plurality of non-square sub-blocks as shown in FIG. 54(c) or 54(d) according to the intra-prediction mode of the current block. can. Also, if the intra prediction mode of the current block is one of the horizontal mode and the vertical mode, the current block can be divided into a plurality of non-square sub-blocks. Through this, the current block can be divided from the reference samples of the current block so that samples with similar distances belong to the same sub-block.

例えば、現在ブロックの予測モードが水平モードまたは水平モード周辺の角度モードのうちのいずれか1つである場合、現在ブロックは図54(c)のように分割できる。現在ブロックの予測モードが垂直モードまたは垂直モード周辺の角度モードのうちのいずれか1つである場合、現在ブロックは図54(d)のように分割できる。現在ブロックの参照サンプルから遠い位置のサブブロックに対して異なる予測方法を適用することもできる。 For example, if the prediction mode of the current block is either the horizontal mode or the angular mode around the horizontal mode, the current block can be divided as shown in FIG. 54(c). If the prediction mode of the current block is either the vertical mode or the angular mode around the vertical mode, the current block can be divided as shown in FIG. 54(d). Different prediction methods can be applied to sub-blocks far from the reference samples of the current block.

図55は、本発明の一実施形態に従って現在ブロックの参照サンプルのサンプル値に基づいて現在ブロックが複数のサブブロックに分割される方法を図示したものである。本発明の一実施形態に従って、現在ブロックは現在ブロックの参照サンプルのサンプル値に基づいて分割できる。一実施形態に従って、エンコーダ及びデコーダは現在ブロックの参照サンプルのサンプル値に基づいて参照サンプルエッジ(edge)を決定することができる。例えば、参照サンプルエッジは参照サンプルのサンプル値がしきい値以上変わる領域を分割する基準地点でありうる。また、参照サンプルエッジは互いに隣接した参照サンプル間のサンプル値差がしきい値以上である地点を示すこともできる。 FIG. 55 illustrates how a current block is divided into a plurality of sub-blocks based on sample values of reference samples of the current block according to one embodiment of the present invention. According to one embodiment of the present invention, the current block can be partitioned based on the sample values of the reference samples of the current block. According to one embodiment, the encoder and decoder can determine reference sample edges based on the sample values of the reference samples of the current block. For example, the reference sample edge may be a reference point dividing a region where the sample value of the reference sample changes by more than a threshold. Also, the reference sample edge may indicate a point where the sample value difference between adjacent reference samples is greater than or equal to a threshold.

図55(a)を参照すると、エンコーダ及びデコーダは現在ブロックの参照サンプルのサンプル値を比較して現在ブロックの参照サンプルエッジを決定することができる。例えば、特定参照サンプルの周辺の既設定された個数の参照サンプルの平均値との差がしきい値以上である参照サンプルの位置を参照サンプルエッジに決定することができる。また、エンコーダ及びデコーダは上側参照サンプルセット及び左側参照サンプルセット別に1つ以上の参照サンプルエッジを決定することができる。ここで、現在ブロックの上側参照サンプルセットは現在ブロックの上側ラインに位置した参照サンプルを含むセットでありうる。また、現在ブロックの左側参照サンプルセットは現在ブロックの左側ラインに位置した参照サンプルを含むセットでありうる。 Referring to FIG. 55(a), the encoder and decoder can determine the reference sample edge of the current block by comparing the sample values of the reference samples of the current block. For example, a position of a reference sample having a difference from an average value of a preset number of reference samples around a specific reference sample that is greater than or equal to a threshold may be determined as a reference sample edge. Also, the encoder and decoder can determine one or more reference sample edges for each of the upper reference sample set and the left reference sample set. Here, the upper reference sample set of the current block may be a set including reference samples located in the upper line of the current block. Also, the left reference sample set of the current block may be a set including reference samples positioned on the left line of the current block.

次に、エンコーダ及びデコーダは上側参照サンプルセットの参照サンプルエッジと左側参照サンプルセットの参照サンプルエッジを連結する線分を基準に現在ブロックを分割することができる。例えば、上側参照サンプルセット及び左側参照サンプルセット別に各々1つの参照サンプルエッジが検出される場合、現在ブロックは総2つのサブブロック(SCU1、SCU2)に分割できる。また、上側参照サンプルセット及び左側参照サンプルセット別に各々2つ以上の参照サンプルエッジが検出される場合、現在ブロックは複数のサブブロックに分割できる。 Next, the encoder and decoder can divide the current block based on a line segment connecting the reference sample edges of the upper reference sample set and the reference sample edges of the left reference sample set. For example, when one reference sample edge is detected for each of the upper reference sample set and the left reference sample set, the current block can be divided into a total of two sub-blocks (SCU1 and SCU2). Also, when two or more reference sample edges are detected for each of the upper reference sample set and the left reference sample set, the current block can be divided into a plurality of sub-blocks.

一方、前述したように、現在ブロックのイントラ予測のための参照サンプルは複数の参照ライン上のサンプルを含むことができる。図55(b)及び図55(c)を参照すると、複数の参照ライン上の参照サンプルをサンプル値に基づいて現在ブロックが分割できる。例えば、複数の参照ライン上の参照サンプルをサンプル値に基づいて現在ブロックの参照サンプルエッジが決定できる。複数の参照ライン上の参照サンプルが使われる場合、周辺ブロックで構成されたイメージ客体の形態が把握できる。 Meanwhile, as described above, reference samples for intra prediction of the current block may include samples on a plurality of reference lines. Referring to FIGS. 55(b) and 55(c), a current block can be divided based on sample values of reference samples on a plurality of reference lines. For example, a reference sample edge of the current block can be determined based on sample values of reference samples on a plurality of reference lines. When reference samples on a plurality of reference lines are used, the shape of an image object composed of peripheral blocks can be grasped.

本発明の一実施形態に従って、エンコーダ及びデコーダは参照ライン別に1つ以上の参照サンプルエッジを決定することができる。図55(b)を参照すると、エンコーダ及びデコーダは上側参照ライン別参照サンプルエッジを連結する線分を延長して現在ブロックを第1分割することができる。第1分割により2つのサブブロック(SCU1、SCU2)が獲得できる。また、エンコーダ及びデコーダは左側参照ライン別参照サンプルエッジを連結する線分を延長して現在ブロックを第2分割することができる。第2分割により2つのサブブロック(SCU2、SCU3)が獲得できる。これによって、上側参照ライン別参照サンプルエッジまたは左側参照ライン別参照サンプルエッジのうち、いずれか1つが検出されない場合にも現在ブロックは分割できる。 According to one embodiment of the present invention, the encoder and decoder can determine one or more reference sample edges per reference line. Referring to FIG. 55(b), the encoder and decoder can first divide the current block by extending a line segment connecting the reference sample edges of each upper reference line. Two sub-blocks (SCU1, SCU2) can be obtained by the first division. Also, the encoder and decoder may secondly divide the current block by extending a line segment connecting the reference sample edges of each left reference line. Two sub-blocks (SCU2, SCU3) can be obtained by the second division. Accordingly, the current block can be divided even if one of the reference sample edge for each upper reference line and the reference sample edge for each left reference line is not detected.

図55(c)は、上側参照ライン別参照サンプルエッジまたは左側参照ライン別参照サンプルエッジのうち、いずれか1つが検出されないか、または参照サンプルエッジが1つの直線に配列されない場合の現在ブロックが分割される方法を示す。図55(c)の左側参照ラインのように、左側参照ラインのうち、一部参照ラインで参照サンプルエッジが検出されないことがある。少なくとも2つの参照ラインで参照サンプルエッジが検出された場合、エンコーダ及びデコーダは該当参照サンプルエッジに基づいて現在ブロックを分割することができる。また、前述した実施形態は上側参照ラインのうち、一部の参照ラインで参照サンプルエッジが検出されない場合にも適用できる。 FIG. 55(c) shows that the current block is divided when either one of the reference sample edges for each upper reference line or the reference sample edges for each left reference line is not detected or the reference sample edges are not arranged in a straight line. show how it is done. As with the left reference lines in FIG. 55(c), reference sample edges may not be detected in some of the left reference lines. If reference sample edges are detected in at least two reference lines, the encoder and decoder can divide the current block based on the corresponding reference sample edges. In addition, the above-described embodiments can also be applied when reference sample edges are not detected in some reference lines among the upper reference lines.

また、図55(c)の上側参照ラインのように、上側参照ライン別参照サンプルエッジが1つの直線で配列されないことがある。この場合、現在ブロックに隣接しないライン上の参照サンプルエッジの中間値及び現在ブロックと隣接したライン上の参照サンプルエッジを過ぎる線分に基づいて現在ブロックが分割できる。図55(b)及び図55(c)では、3個の参照ラインが使われる実施形態を図示しているが、本開示がこれに制限されるのではない。 Also, like the upper reference line in FIG. 55(c), the reference sample edges for each upper reference line may not be arranged in one straight line. In this case, the current block can be divided based on the intermediate values of the reference sample edges on the lines not adjacent to the current block and the line segments passing the reference sample edges on the lines adjacent to the current block. Although FIGS. 55(b) and 55(c) illustrate embodiments in which three reference lines are used, the disclosure is not so limited.

本発明の一実施形態に従って、現在ブロックから分割された複数のサブブロックは現在ブロックのイントラ予測モードによって優先的に予測される1次的サブブロック(primary sub-block、PSB)と以後に予測される2次的サブブロック(Secondary sub-block、SSB)に分類できる。また、PSBで構成されたサブブロックグループは1次的サブブロックグループ(以下、PSBグループ)と、SSBで構成されたサブブロックグループは2次的サブブロックグループ(以下、SSBグループ)と称されることができる。 According to an embodiment of the present invention, a plurality of sub-blocks divided from the current block are later predicted as primary sub-blocks (PSBs) that are preferentially predicted according to the intra-prediction mode of the current block. can be classified into secondary sub-blocks (SSBs). Also, a sub-block group made up of PSBs is called a primary sub-block group (hereinafter referred to as a PSB group), and a sub-block group made up of SSBs is called a secondary sub-block group (hereinafter referred to as an SSB group). be able to.

図56は、本発明の一実施形態に従って1次的サブブロックグループと2次的サブブロックグループが決定される方法を図示したものである。一実施形態に従って、PSBグループは現在ブロックから分割された複数のサブブロックのうち、現在ブロックのイントラ予測に参照される参照サンプルから既設定された距離以内のサブブロックで構成できる。また、SSBグループは複数のサブブロックのうち、現在ブロックのイントラ予測に参照される参照サンプルから既設定された距離の外のサブブロックで構成できる。 FIG. 56 illustrates how primary sub-block groups and secondary sub-block groups are determined according to one embodiment of the present invention. According to an embodiment, the PSB group may be composed of sub-blocks within a preset distance from reference samples referred to for intra-prediction of the current block among a plurality of sub-blocks divided from the current block. Also, the SSB group may be composed of sub-blocks outside a preset distance from reference samples referred to for intra prediction of the current block among the plurality of sub-blocks.

図56を参照すると、現在ブロックは総16個のサブブロックに分割できる。現在ブロックのイントラ予測モードが水平対角モード、垂直対角モード、及び水平対角モードと垂直対角モードの周辺の角度モードのうち、いずれか1つである場合、現在ブロックのPSBグループとSSBグループは図56(a)のように決定できる。即ち、現在ブロックから分割された16個のサブブロックのうち、右上側4個のサブブロックがSSBであり、これを除外した残りのサブブロックはPSBでありうる。 Referring to FIG. 56, the current block can be divided into a total of 16 sub-blocks. If the intra prediction mode of the current block is any one of a horizontal diagonal mode, a vertical diagonal mode, and a peripheral angle mode between the horizontal diagonal mode and the vertical diagonal mode, the PSB group and the SSB of the current block Groups can be determined as shown in FIG. 56(a). That is, among the 16 sub-blocks divided from the current block, the upper right 4 sub-blocks can be SSB, and the remaining sub-blocks can be PSB.

図56(a)乃至図56(e)の各々は、現在ブロックのイントラ予測モードがHDIA、HOR、DIA、VER、VDIA、及び各々の周辺の角度モードのうち、いずれか1つである場合、PSBグループとSSBグループが決定される方法を図示する。各々の予測モードで使われる参照サンプルとの相対的な距離を考慮してPSBとSSBが区分できる。しかしながら、本開示がこれに制限されるのではなく、図56で記述した例示と類似の形態の他の分割も可能である。 Each of FIGS. 56(a) to 56(e) shows that when the intra prediction mode of the current block is any one of HDIA, HOR, DIA, VER, VDIA, and each peripheral angular mode, Figure 3 illustrates how the PSB and SSB groups are determined; PSB and SSB can be distinguished by considering relative distances from reference samples used in each prediction mode. However, the disclosure is not so limited and other divisions similar to the example described in FIG. 56 are possible.

一実施形態に従って、エンコーダ及びデコーダは現在ブロックのイントラ予測モードに基づいてPSBに対して先にイントラ予測を遂行することができる。次に、エンコーダ及びデコーダはSSBに対するイントラ予測を遂行することができる。以下では、現在ブロックのSSBに対する多様なイントラ予測方法について具体的に説明する。 According to one embodiment, the encoder and decoder may perform intra prediction first on the PSB based on the intra prediction mode of the current block. The encoder and decoder can then perform intra prediction for SSB. Various intra prediction methods for the SSB of the current block will now be described in detail.

一実施形態に従って、エンコーダ及びデコーダは現在ブロックのPSBの復元されたサンプル値に基づいて現在ブロックのSSBに対する予測を遂行することができる。例えば、エンコーダ及びデコーダは現在ブロックのイントラ予測モード及び参照サンプルに基づいて現在ブロックのPSBを先に復元することができる。次に、エンコーダ及びデコーダは現在ブロックのSSBの各々に隣接し、既復元されたサンプルを参照して現在ブロックのSSBに対するイントラ予測を遂行することができる。エンコーダ及びデコーダは、現在ブロックのイントラ予測モードに基づいて現在ブロックのSSBに対するイントラ予測を遂行することができる。この際、既復元されたサンプルはPSBの各々が含むサンプルでありうる。前記PSBの各々が含むサンプルは現在ブロックの参照サンプルに比べて現在ブロックのSSBとの距離が近いサンプルでありうる。これによって、現在ブロックのSSBに対して同一の予測モードが使われる場合にも、既存の方法に比べてSSBに対する予測正確度が高まることができる。 According to one embodiment, the encoder and decoder can perform prediction for the SSB of the current block based on the reconstructed sample values of the PSB of the current block. For example, the encoder and decoder can first recover the PSB of the current block based on the intra-prediction mode and reference samples of the current block. Next, the encoder and decoder can perform intra-prediction for the SSB of the current block by referring to the previously reconstructed samples adjacent to each of the SSBs of the current block. The encoder and decoder can perform intra prediction for SSBs of the current block based on the intra prediction mode of the current block. At this time, the pre-restored samples may be samples included in each PSB. The samples included in each of the PSBs may be samples closer to the SSB of the current block than the reference samples of the current block. Accordingly, even when the same prediction mode is used for SSBs of the current block, prediction accuracy for SSBs can be improved compared to the existing method.

一実施形態に従って、エンコーダ及びデコーダは現在ブロックのPSBグループとSSBグループの各々に対して互いに異なるイントラ予測モードを用いて予測することができる。例えば、現在ブロックのPSBは現在ブロックのイントラ予測モードである1次的モード(primary mode、PM)に基づいて予測できる。現在ブロックのSSBは可変的な2次的モード(secondary mode、SM)に基づいて予測できる。例えば、SMは現在ブロックの複数のサブブロックのうち、SSBに対してのみ適用されるイントラ予測モードでありうる。この際、SMは別途にシグナリングできる。一実施形態に従って、SMはPMを基準にするオフセット形態にシグナリングできる。例えば、SMはPMを基準にオフセットだけ加えられたイントラ予測モードインデックスに対応するイントラ予測モードでありうる。この際、オフセットは既設定された最大値以内の値でありうる。これを通じて、エンコーダが特定オフセットを選択するための演算量を減少させることができる。 According to one embodiment, an encoder and a decoder can perform prediction using different intra prediction modes for each of the PSB group and the SSB group of the current block. For example, the PSB of the current block can be predicted based on the primary mode (PM), which is the intra prediction mode of the current block. The SSB of the current block can be predicted based on a variable secondary mode (SM). For example, SM may be an intra-prediction mode applied only to SSBs among a plurality of sub-blocks of a current block. At this time, the SM can signal separately. According to one embodiment, the SM can signal an offset form relative to the PM. For example, SM may be an intra prediction mode corresponding to an intra prediction mode index added with an offset based on PM. At this time, the offset may be a value within a preset maximum value. Through this, the amount of calculation for the encoder to select a specific offset can be reduced.

また、現在ブロックのPMが角度モードであり、PMの反対角度モードが存在する場合、現在ブロックのSSBはPMの反対角度モードに基づいて予測できる。例えば、PMがイントラ予測モードインデックス2の水平対角モードである場合、SMはイントラ予測モードインデックス66に該当する垂直対角モードでありうる。反対に、PMがイントラ予測モードインデックス66の垂直対角モードである場合、SMはイントラ予測モードインデックス2に該当する水平対角モードでありうる。 Also, if the PM of the current block is an angular mode and there is an opposite angular mode of the PM, the SSB of the current block can be predicted based on the opposite angular mode of the PM. For example, if PM is a horizontal diagonal mode with an intra prediction mode index of 2, SM may be a vertical diagonal mode with an intra prediction mode index of 66 . Conversely, if PM is a vertical diagonal mode with an intra prediction mode index of 66, SM may be a horizontal diagonal mode corresponding to an intra prediction mode index of 2.

他の一実施形態に従って、SMは既設定された予測モードでありうる。例えば、現在ブロックのSSBは既設定された予測モードに基づいて予測されることもできる。前述したように、現在ブロックのSSBは現在ブロックの参照サンプルから既設定された距離の外のサブブロックでありうる。これによって、現在ブロックのSSBを無方向性モードに基づいて予測することがレジデュアル信号面で有利でありうる。即ち、既設定されたSMは平面モードまたはDCモードのうち、いずれか1つでありうる。 According to another embodiment, SM may be the preset prediction mode. For example, the SSB of the current block can be predicted based on a preset prediction mode. As described above, the SSBs of the current block can be sub-blocks outside a preset distance from the reference samples of the current block. Accordingly, it may be beneficial in terms of residual signal to predict the SSB of the current block based on the non-directional mode. That is, the preconfigured SM can be either a planar mode or a DC mode.

追加的な実施形態に従って、現在ブロックのSSBの最終予測ブロックは現在ブロックのPMに基づいて予測された第1予測SSB、及び前述した無方向性モードに基づいて予測された第2予測SSBに基づいて獲得できる。例えば、エンコーダ及びデコーダは現在ブロックの第1予測SSB及び第2予測SSBの間の平均に基づいてSSBに対応する最終予測ブロックを獲得することができる。また、エンコーダ及びデコーダはSSBに対応する最終予測ブロックとレジデュアル信号を合算してSSBを復元することができる。 According to an additional embodiment, the final predicted block for the SSB of the current block is based on the first predicted SSB predicted based on the PM of the current block and the second predicted SSB predicted based on the non-directional mode described above. can be obtained by For example, the encoder and decoder can obtain the final predicted block corresponding to the SSB based on the average between the first predicted SSB and the second predicted SSB of the current block. Also, the encoder and decoder can restore the SSB by summing the final prediction block corresponding to the SSB and the residual signal.

図57は、本発明の一実施形態に従って、1次的サブブロックグループと2次的サブブロックグループが予測される方法を図示したものである。図57を参照すると、現在ブロックは総4個のサブブロックに分割できる。一実施形態に従って、現在ブロックの予測モードが対角モード及び対角モード周辺の角度モードのうち、いずれか1つである場合、現在ブロックのPSBグループとSSBグループは図57(a)のように決定できる。即ち、現在ブロックから分割された4個のサブブロックのうち、右下側サブブロック(SCU4)が現在ブロックのSSBであり、これを除外した残りのサブブロック(SCU1、SCU2、SCU3)は現在ブロックのPSBでありうる。 FIG. 57 illustrates how a primary group of sub-blocks and a secondary group of sub-blocks are predicted in accordance with one embodiment of the present invention. Referring to FIG. 57, the current block can be divided into a total of 4 sub-blocks. According to an embodiment, when the prediction mode of the current block is one of the diagonal mode and the angular mode around the diagonal mode, the PSB group and the SSB group of the current block are as shown in FIG. can decide. That is, among four subblocks divided from the current block, the lower right subblock (SCU4) is the SSB of the current block, and the remaining subblocks (SCU1, SCU2, SCU3) are the current block. can be a PSB of

この場合、現在ブロックのSSBは現在ブロックのPSBの各々が含むサンプルを参照して復元できる。例えば、エンコーダ及びデコーダは現在ブロックのイントラ予測モード及び参照サンプルに基づいて現在ブロックのPSBを先に復元することができる。次に、エンコーダ及びデコーダは現在ブロックのPSBの既復元されたサンプルのうち、SSBに隣接したサンプルのサンプル値を用いてSSBに対するイントラ予測を遂行することができる。例えば、現在ブロックのSSB(SCU4)はPSB(SCU1、SCU2、SCU3)の既復元されたサンプルのサンプル値及びレジデュアル信号に基づいて復元できる。 In this case, the SSB of the current block can be restored by referring to the samples included in each of the PSBs of the current block. For example, the encoder and decoder can first recover the PSB of the current block based on the intra-prediction mode and reference samples of the current block. Next, the encoder and decoder can perform intra-prediction for the SSB using the sample values of the samples adjacent to the SSB among the previously reconstructed samples of the PSB of the current block. For example, the SSB (SCU4) of the current block can be reconstructed based on the sample values of the previously reconstructed samples of the PSBs (SCU1, SCU2, and SCU3) and the residual signal.

一実施形態に従って、現在ブロックの予測モードが水平対角モード及び水平対角モード周辺の角度モードのうち、いずれか1つである場合、現在ブロックのPSBグループとSSBグループは、図57(b)のように決定できる。即ち、現在ブロックから分割された4個のサブブロックのうち、右上側サブブロック(SCU2)が現在ブロックのSSBであり、これを除外した残りのサブブロック(SCU1、SCU3、SCU4)は現在ブロックのPSBでありうる。この場合、前述したように、現在ブロックのSSB(SCU2)は現在ブロックのPSB(SCU1、SCU3、SCU4)の既復元されたサンプルのうち、SSB(SCU2)に隣接したサンプルのサンプル値に基づいて復元できる。 According to one embodiment, when the prediction mode of the current block is one of the horizontal diagonal mode and the angular mode around the horizontal diagonal mode, the PSB group and the SSB group of the current block are shown in FIG. can be determined as That is, among four subblocks divided from the current block, the upper right subblock (SCU2) is the SSB of the current block, and the remaining subblocks (SCU1, SCU3, SCU4) are the SSB of the current block. It can be a PSB. In this case, as described above, the SSB (SCU2) of the current block is based on the sample values of the samples adjacent to the SSB (SCU2) among the already-restored samples of the PSBs (SCU1, SCU3, and SCU4) of the current block. can be restored.

追加的な実施形態に従って、現在ブロックの参照サンプルのうちの一部が現在ブロックのSSBに隣接することができる。この際、現在ブロックの参照サンプルのうち、一部の現在ブロックのイントラ予測に使われない参照サンプルでありうる。この場合、現在ブロックのSSBは現在ブロックのPMと異なる予測モードであるSMに基づいて予測できる。例えば、現在ブロックのPMが角度モードである場合、現在ブロックのSMはPMの反対角度モードでありうる。図57(b)のように、現在ブロックのPMが水平対角モードである場合、SMは垂直対角モードでありうる。 According to additional embodiments, some of the reference samples of the current block may be adjacent to the SSB of the current block. At this time, some of the reference samples of the current block may be reference samples that are not used for intra prediction of the current block. In this case, the SSB of the current block can be predicted based on SM, which is a prediction mode different from PM of the current block. For example, if the PM of the current block is angular mode, the SM of the current block can be the opposite angular mode of PM. As shown in FIG. 57(b), when the PM of the current block is in the horizontal diagonal mode, the SM can be in the vertical diagonal mode.

また、現在ブロックのPMが角度モードである場合、現在ブロックのSSBの最終予測ブロックは現在ブロックのPMに基づいて予測された第1予測SSB、及びPMの反対角度モードに基づいて予測された第2予測SSBに基づいて獲得できる。図56(a)及び(e)のようにPMモードと反対方向の角度モードを使用することが可能であり、SSBの境界に隣接した参照サンプルが存在する場合、前述した実施形態が適用できる。 Also, if the PM of the current block is in angular mode, the final predicted block of the SSB of the current block is the first predicted SSB predicted based on the PM of the current block and the second predicted SSB predicted based on the opposite angular mode of the PM. 2 can be obtained based on the predicted SSB. It is possible to use the angular mode opposite to the PM mode as in FIGS. 56(a) and (e), and if there is a reference sample adjacent to the boundary of the SSB, the previously described embodiments are applicable.

前述したように、ビデオ信号のコーディング過程で、ピクチャはコーディングツリーユニット(CTU)のシーケンスに分割できる。以下では、ピクチャ、スライス、またはタイル内でCTUが処理される順序について説明する。図58は、本発明の一実施形態に従ってコーディングツリーユニットが処理される順序を図示したものである。 As mentioned above, in the process of coding a video signal, pictures can be divided into a sequence of coding tree units (CTUs). The following describes the order in which CTUs are processed within a picture, slice, or tile. FIG. 58 illustrates the order in which coding tree units are processed according to one embodiment of the invention.

エンコーダ及びデコーダは、現在ブロックを含む現在ピクチャまたは現在ピクチャから分割されたスライス/タイル内でCTU別にエンコーディングまたはデコーディングすることができる。この際、エンコーダ及びデコーダは既定義された処理順序に従って複数のCTUをエンコーディングまたはデコーディングすることができる。既定義された処理順序と異なる順にCTUが処理される場合、エンコーダはデコーダに該当順序をシグナリングすることができる。 An encoder and a decoder can encode or decode CTUs in a current picture including the current block or slices/tiles divided from the current picture. At this time, the encoder and decoder can encode or decode the plurality of CTUs according to a predefined processing order. If the CTUs are processed in an order different from the predefined processing order, the encoder can signal the order to the decoder.

図58(a)は、ピクチャ、スライス、またはタイルの最上段左側のCTUから横方向処理を遂行した後、次の行のCTUを処理するラスタースキャン(raster scan)順序を示す。図58(b)は、ピクチャ、スライス、またはタイルで最初に処理される第1のCTU(Block A)の位置が明示的にシグナリングされる実施形態を示す。例えば、エンコーダは第1のCTUの位置をシグナリングすることができる。デコーダは、シグナリングされた第1のCTUの位置に基づいて該当CTUを最優先的に処理することができる。デコーダは、第1のCTUの位置を基準にラスタースキャン順序上に以前位置に該当するCTUを逆-ラスター(inverse-raster)スキャン順序に従ってデコーディングすることができる。また、第1のCTUの位置を基準にラスタースキャン順序上に以後の位置に該当するCTUは前述したラスタースキャン順序に従ってデコーディングすることができる。この際、逆-ラスタースキャン順序に従って処理されるCTUとラスタースキャン順序に従って処理されるCTUは、各々1つのCTUずつ交差する順序に従って処理されるか、または2つのうちのどの一方向のCTUが優先的に処理できる。 FIG. 58(a) shows a raster scan order in which horizontal processing is performed from the topmost left CTU of a picture, slice, or tile, and then the next row of CTUs is processed. FIG. 58(b) shows an embodiment in which the location of the first CTU (Block A) to be processed first in a picture, slice or tile is explicitly signaled. For example, the encoder can signal the location of the first CTU. The decoder can process the corresponding CTU with the highest priority based on the signaled position of the first CTU. A decoder can decode a CTU corresponding to a previous position in the raster scan order based on the position of the first CTU according to the inverse-raster scan order. In addition, CTUs corresponding to subsequent positions in the raster scan order based on the position of the first CTU can be decoded according to the raster scan order described above. At this time, the CTUs processed according to the reverse-raster scan order and the CTUs processed according to the raster scan order are each processed according to the intersecting order, or which one of the two CTUs has priority. can be processed effectively.

図58(c)及び図58(d)は、ピクチャ、スライス、またはタイルで優先的に処理される複数のCTUの位置が明示的にシグナリングされる実施形態を示す。例えば、複数のCTUは第2のCTU(Block B)及び第3のCTU(Block C)を含むことができる。エンコーダは第2のCTU(Block B)及び第3のCTU(Block C)の各々の位置をシグナリングすることができる。また、優先的に処理される複数のCTUのうち、最初に処理される第2のCTUの位置が追加的にシグナリングできる。 Figures 58(c) and 58(d) show embodiments in which the locations of preferentially processed CTUs in a picture, slice or tile are explicitly signaled. For example, the plurality of CTUs can include a second CTU (Block B) and a third CTU (Block C). The encoder can signal the position of each of the second CTU (Block B) and the third CTU (Block C). Also, the position of the second CTU to be processed first among the plurality of preferentially processed CTUs can be additionally signaled.

図58(d)を参照すると、デコーダはシグナリングされた第2のCTUの位置に基づいて第2のCTU(Block B)を最優先的にデコーディングすることができる。次に、デコーダは第3のCTU(Block C)をデコーディングすることができる。次に、第2のCTUの位置と第3のCTUの位置の間のCTUがデコーディングできる。例えば、デコーダはラスタースキャン順序上に、第2のCTUの次のCTUから第3のCTUの以前CTUまでのCTUをラスタースキャン順序または逆ラスタースキャン順序に従ってデコーディングすることができる。また、デコーダは第2のCTU(Block B)の位置を基準にラスタースキャン順序上に以前の位置に該当するCTUを逆-ラスター(inverse-raster)スキャン順序に従ってデコーディングすることができる。また、第3のCTU(Block C)の位置を基準にラスタースキャン順序上に以後の位置に該当するCTUは前述したラスタースキャン順序に従ってデコーディングすることができる。 Referring to FIG. 58(d), the decoder can preferentially decode the second CTU (Block B) based on the signaled location of the second CTU. The decoder can then decode the third CTU (Block C). The CTUs between the second CTU location and the third CTU location can then be decoded. For example, the decoder can decode the CTUs from the next CTU of the second CTU to the previous CTU of the third CTU in raster scan order or reverse raster scan order. In addition, the decoder can decode the CTU corresponding to the previous position in the raster scan order according to the inverse-raster scan order based on the position of the second CTU (Block B). Also, based on the position of the third CTU (Block C), CTUs corresponding to subsequent positions in the raster scan order can be decoded according to the above-described raster scan order.

図58(c)は、図58(d)と類似の形態にピクチャ、スライス、またはタイルで優先的に処理される複数のCTUの位置が明示的にシグナリングされる更に他の実施形態を示す。 FIG. 58(c) shows yet another embodiment in which the locations of preferentially processed CTUs in a picture, slice or tile are explicitly signaled in a manner similar to FIG. 58(d).

図59は、本発明の一実施形態に従う両方向イントラ予測方法を図示したものである。本発明の一実施形態に従って、現在ブロックは現在ブロックの使用可能な参照サンプルの分布によって両方向イントラ予測方法を使用して予測できる。図56及び図58のように、現在ブロックまたは現在ブロックから分割された複数のサブブロックがエンコーディングまたはデコーディングされる場合、該当ブロックの左側及び上側の既復元されたサンプルだけでなく、該当ブロックの下側及び右側の既復元されたサンプルが該当ブロックの参照サンプルに利用できる。これによって、特定ブロックは該当ブロックの周辺の右側及び下側の既復元されたサンプルを用いる両方向イントラ予測方法によって予測できる。以下、特定ブロックは現在ブロックまたは現在ブロックから分割された複数のサブブロックを示す。 FIG. 59 illustrates a bi-directional intra prediction method according to one embodiment of the present invention. According to one embodiment of the present invention, a current block can be predicted using a bi-directional intra prediction method according to the distribution of available reference samples of the current block. When the current block or a plurality of sub-blocks divided from the current block are encoded or decoded as shown in FIGS. The lower and right reconstructed samples can be used as reference samples for the corresponding block. Accordingly, a specific block can be predicted by a bidirectional intra prediction method using already reconstructed samples on the right and bottom sides of the block. Hereinafter, a specific block indicates a current block or a plurality of sub-blocks divided from the current block.

図59(a)及び図59(b)は、特定ブロックの4面全てに既復元されたサンプルが存在する場合、現在ブロックが予測される方法の一実施形態を図示したものである。図59(a)を参照すると、特定ブロックは現在ブロックの予測モードに基づいて2等分できる。例えば、現在ブロックの予測モードが角度モードである場合、特定ブロックは現在ブロックの予測モードと直角である線分を基準に2等分できる。また、2等分された特定ブロックの第1部分は現在ブロックの予測モード及び第1参照サンプルに基づいて復元できる。この際、第1部分は特定ブロックの上側及び左側辺を含む部分でありうる。また、第1参照サンプルは特定ブロックの左側及び上側ラインの参照サンプルでありうる。2等分された特定ブロックの第2部分は2次的予測モード及び第2参照サンプルに基づいて復元できる。この際、第2部分は特定ブロックの右側及び下側辺を含む部分でありうる。また、第2参照サンプルは特定ブロックの右側及び下側ラインの参照サンプルでありうる。一実施形態に従って、2次的予測モードは図56及び図57を通じて説明したSMでありうる。 FIGS. 59(a) and 59(b) illustrate an embodiment of a method for predicting a current block when there are already reconstructed samples in all four sides of a specific block. Referring to FIG. 59(a), a specific block can be divided into two equal parts based on the prediction mode of the current block. For example, if the prediction mode of the current block is the angular mode, the specific block can be bisected based on a line segment perpendicular to the prediction mode of the current block. Also, the first part of the bisected specific block can be reconstructed based on the prediction mode of the current block and the first reference samples. At this time, the first part may be a part including the upper side and the left side of the specific block. Also, the first reference samples may be reference samples of left and upper lines of a specific block. A second portion of the bisected specific block can be reconstructed based on the secondary prediction mode and the second reference samples. At this time, the second part may be a part including the right side and the bottom side of the specific block. Also, the second reference samples may be reference samples of the right and bottom lines of a particular block. According to one embodiment, the secondary prediction mode may be SM as described with reference to FIGS. 56 and 57. FIG.

図59(b)を参照すると、特定ブロックは追加的に分割されないことがある。例えば、特定ブロックは第1予測ブロック及び第2予測ブロックに基づいて復元できる。この際、第1予測ブロックは現在ブロックの予測モード及び第1参照サンプルに基づいて予測された予測ブロックでありうる。また、第2予測ブロックは2次的予測モード及び第1参照サンプルに基づいて予測された予測ブロックでありうる。デコーダは、第1予測ブロックと第2予測ブロックを加重合して特定ブロックを復元することができる。 Referring to FIG. 59(b), a specific block may not be additionally divided. For example, a particular block can be reconstructed based on a first predicted block and a second predicted block. At this time, the first prediction block may be a prediction block predicted based on the prediction mode of the current block and the first reference samples. Also, the second prediction block may be a prediction block predicted based on the secondary prediction mode and the first reference samples. A decoder may reconstruct a specific block by weighting the first prediction block and the second prediction block.

図59(c)及び図59(d)は、特定ブロックの4面のうち、3面のみに既復元されたサンプルが存在する場合、現在ブロックが予測される方法の一実施形態を図示したものである。この場合、特定ブロックは現在ブロックの予測モードに基づいて2等分できる。例えば、特定ブロックの領域のうち、既復元されたサンプルが存在しない辺に対応する領域は他の辺から予測モードを拡張して予測できる。また、図59(c)と図59(d)の実施形態でも、図59(b)のように、特定ブロックを追加的に分割せず、特定ブロックに対する複数の予測ブロックに基づいて特定ブロックを復元する実施形態が適用できる。 FIGS. 59(c) and 59(d) illustrate an embodiment of a method of predicting a current block when there are already reconstructed samples in only three of four sides of a specific block. is. In this case, the specific block can be divided into two halves based on the prediction mode of the current block. For example, a region of a specific block corresponding to a side where there are no previously restored samples can be predicted by extending the prediction mode from other sides. Also, in the embodiments of FIGS. 59(c) and 59(d), as shown in FIG. 59(b), a specific block is divided based on a plurality of prediction blocks for the specific block without additionally dividing the specific block. Embodiments that restore are applicable.

図60は、本発明の一実施形態に従って現在ブロックから分割された複数のサブブロックの各々が予測される方法を図示したものである。本発明の一実施形態に従って、現在ブロックから分割された複数のサブブロックは現在ブロックの周辺ブロックの予測に使われたイントラ予測モードに基づいて各々予測できる。 FIG. 60 illustrates how each of a plurality of sub-blocks divided from a current block is predicted according to one embodiment of the present invention. According to an embodiment of the present invention, each of a plurality of sub-blocks divided from a current block can be predicted based on an intra prediction mode used for prediction of neighboring blocks of the current block.

図60(a)は、現在ブロックの複数の周辺ブロックの各々の位置(AL、A、AR、R、L、BL)を図示する。この際、周辺ブロックの各々の位置に対応するイントラ予測モードが存在しないことがある。例えば、該当位置のブロックがインター予測されるか、またはラスタースキャン順序またはCU処理順序に従って該当位置のブロックに対するデコーディングが遂行されない状態でありうる。 FIG. 60(a) illustrates the positions (AL, A, AR, R, L, BL) of each of a plurality of neighboring blocks of the current block. At this time, there may be no intra-prediction mode corresponding to each position of the peripheral blocks. For example, the block at the corresponding position may be inter-predicted, or the block at the corresponding position may not be decoded according to the raster scan order or the CU processing order.

図60(b)は、現在ブロックが総4個のサブブロックに分割された場合、各々のサブブロックが予測される方法を示す。例えば、第1サブブロックSCU1は第1サブブロックSCU1に最も隣接した左上側位置(AL)に対応するイントラ予測モードを使用して予測できる。また、第2サブブロックSCU2は第2サブブロックSCU2に隣接した上側位置(A)に対応するイントラ予測モードを使用して予測できる。また、上側位置(A)に対応するイントラ予測モードが存在しない場合、第2サブブロックSCU2は他の周辺位置(例えば、右上側位置)に対応するイントラ予測モードを使用して予測できる。また、第4サブブロックSCU4のように、上側辺及び左側辺が全て現在ブロック内の場合、該当ブロックは遠隔直線上に位置した周辺ブロックのイントラ予測モードを使用して予測できる。 FIG. 60(b) shows how each sub-block is predicted when the current block is divided into a total of four sub-blocks. For example, the first sub-block SCU1 can be predicted using the intra prediction mode corresponding to the upper left position (AL) closest to the first sub-block SCU1. Also, the second sub-block SCU2 can be predicted using the intra prediction mode corresponding to the upper position (A) adjacent to the second sub-block SCU2. Also, if there is no intra prediction mode corresponding to the upper position (A), the second sub-block SCU2 can be predicted using intra prediction modes corresponding to other peripheral positions (eg, upper right position). Also, like the fourth sub-block SCU4, if both the upper side and the left side are within the current block, the corresponding block can be predicted using the intra-prediction mode of neighboring blocks located on a distant straight line.

図60(c)は、現在ブロックが総4個のサブブロックに分割された場合、各々のサブブロックが予測される更に他の方法を示す。図60(c)で、第1サブブロックSCU1、第2サブブロックSCU2、及び第3サブブロックSCU3は、現在ブロックのイントラ予測モードに基づいて予測できる。この際、第1サブブロックSCU1、第2サブブロックSCU2、及び第3サブブロックSCU3は、図56及び図57を通じて前述した1次的サブブロックでありうる。一実施形態に従って、第4サブブロックSCU4は現在ブロックのイントラ予測モードと異なるイントラ予測モードに基づいて予測できる。例えば、第4サブブロックSCU4は、右側位置(R)に対応するイントラ予測モードを使用して予測できる。または、第4サブブロックSCU4は遠隔に直線上に位置した周辺ブロックのイントラ予測モードを使用して予測できる。 FIG. 60(c) shows yet another method of predicting each sub-block when the current block is divided into a total of four sub-blocks. In FIG. 60(c), the first sub-block SCU1, the second sub-block SCU2 and the third sub-block SCU3 can be predicted based on the intra prediction mode of the current block. At this time, the first sub-block SCU1, the second sub-block SCU2, and the third sub-block SCU3 may be the primary sub-blocks described above with reference to FIGS. According to one embodiment, the fourth sub-block SCU4 can be predicted based on an intra-prediction mode different from the intra-prediction mode of the current block. For example, the fourth sub-block SCU4 can be predicted using the intra prediction mode corresponding to the right position (R). Alternatively, the fourth sub-block SCU4 can be predicted using the intra-prediction modes of neighboring blocks located in a distant line.

上述した本発明の実施例は多様な手段を介して具現される。例えば、本発明の実施例は、ハードウェア、ファームウェア(firmware)、ソフトフェアまたはそれらの組み合わせによって具現される。 The embodiments of the present invention described above can be implemented through various means. For example, embodiments of the invention may be implemented in hardware, firmware, software, or a combination thereof.

ハードウェアによる具現の場合、本発明の実施例による方法は、一つまたはそれ以上のASICs(Application Specific Integrated Circuits)、DSPs(Digital Signal Processors)、DSDPs(Digital Signal Processing Devices)、PDLs(Programmable Logic Devices)、FPGAs(Field Programmable Gate Arrays)、プロセッサ、コントローラ、マイクロコントローラ、マイクロプロセッサなどによって具現される。 In the case of a hardware implementation, methods according to embodiments of the present invention may be implemented using one or more of ASICs (Application Specific Integrated Circuits), DSPs (Digital Signal Processors), DSDPs (Digital Signal Processing Devices), PDLs (Programmable Dynamic Circuits). ), FPGAs (Field Programmable Gate Arrays), processors, controllers, microcontrollers, microprocessors, and the like.

ファームフェアやソフトウェアによる具現の場合、本発明の実施例による方法は、上述した機能または動作を行うモジュール、手順または関数などの形態で具現される。ソフトウェアコードは、メモリに貯蔵されてプロセッサによって具現される。前記メモリはプロセッサの内部または外部に位置し、既に公知の多様な手段によってプロセッサとデータを交換する。 In the case of a firmware or software implementation, the methods according to embodiments of the invention may be implemented in the form of modules, procedures or functions that perform the functions or operations described above. Software codes are stored in memory and implemented by a processor. The memory is located inside or outside the processor and exchanges data with the processor by various well-known means.

一部の実施例はコンピュータによって実行されるプログラムモジュールのようなコンピュータで実行可能な命令語を含む記録媒体の形態にも具現される。コンピュータで判読可能な媒体は、コンピュータでアクセスされ得る任意の利用可能な媒体であり、揮発性及び非揮発性媒体、分離型及び非分離型媒体をいずれも含む。また、コンピュータ読取可能媒体は貯蔵媒体及び通信媒体をいずれも含む。コンピュータ貯蔵媒体は、コンピュータ判読可能な命令語、データ構造、プログラムモジュール、またはその他のデータのような情報の貯蔵のための任意の方法または技術で具現された揮発性及び非揮発性媒体、分離型及び非分離型媒体をいずれも含む。通信媒体は、典型的にコンピュータ読取可能な命令語、データ構造、またはプログラムモジュールのような変調されたデータ信号のその他のデータ、またはその他の伝送メカニズムを含み、任意の情報伝達媒体を含む。 Some embodiments may also be embodied in the form of a recording medium containing computer-executable instructions, such as program modules, executed by a computer. Computer-readable media can be any available media that can be accessed by the computer and includes both volatile and nonvolatile media, removable and non-removable media. Also, computer-readable media includes both storage media and communication media. Computer storage media include volatile and non-volatile media embodied in any method or technology for storage of information such as computer-readable instructions, data structures, program modules, or other data, removable and non-separable media. Communication media typically embodies computer readable instructions, data structures, or other data in a modulated data signal, such as program modules, or other transmission mechanisms and includes any information delivery media.

上述した本発明の説明は例示のためのものであって、本発明が属する技術分野における通常の知識を有する者は、本発明の技術的思想や必須的特徴を変更せずも他の具体的な形態に容易に変更可能であることを理解できるはずである。よって、上述した実施例は全ての面で例示的なものであり、限定的なものではないと理解すべきである。例えば、単一型として説明されている各構成要素は分散されて実施されてもよく、同じく分散されていると説明されている構成要素も結合された形態で実施されてもよい。 The above description of the present invention is for illustrative purposes only, and those skilled in the art to which the present invention pertains may make other specific modifications without changing the technical spirit or essential features of the present invention. It should be understood that it can be easily modified to any form. Accordingly, the above-described embodiments are to be considered in all respects as illustrative and not restrictive. For example, each component described as a single type may be implemented in a distributed manner, and components described as being distributed may also be implemented in a combined form.

本発明の範囲は、上述した詳細な説明よりは後述する特許請求の範囲によって示され、特許請求の範囲の意味及び範囲、そしてその均等概念から導き出される全ての変更または変形された形態が本発明の範囲に含まれると解釈すべきである。 The scope of the present invention is indicated by the claims below rather than the detailed description given above, and all changes or modifications derived from the meaning and scope of the claims and their equivalents are considered to be the present invention. should be construed as being within the scope of

110 変換部
115 量子化部
120 逆量子化部
125 逆変換部
130 フィルタリング部
150 予測部
152 イントラ予測部
154 インター予測部
154a モーション推定部
154b モーション補償部
160 エントロピーコーディング部
210 エントロピーデコーディング部
220 逆量子化部
225 逆変換部
230 フィルタリング部
250 予測部
252 イントラ予測部
254 インター予測部
710 現在ピクチャ
720 参照ピクチャ
810 エンコーダ
820 デコーダ
110 converter
115 Quantizer
120 Inverse quantizer
125 Inverse Transformer
130 filtering section
150 predictor
152 Intra Predictor
154 Inter predictor
154a motion estimator
154b motion compensator
160 Entropy coding part
210 Entropy decoding unit
220 Inverse quantizer
225 Inverse Transformer
230 filtering section
250 predictor
252 Intra Predictor
254 Inter predictor
710 current picture
720 reference picture
810 Encoder
820 decoder

Claims (17)

ビデオ信号デコーディング装置において、
プロセッサを含み、
前記プロセッサは、
在ブロックの動き補償のための動きベクトル予測子(motion vector prediction、MVP)候補リストを構成し、
前記構成されたMVP候補リストに基づいて現在ブロックの動きベクトル予測子を獲得し、
前記現在ブロックの動きベクトルと前記動きベクトル予測子との間の差を示す動きベクトル差分値を獲得し、
前記現在ブロックの前記動きベクトル差分値の第1解像度及び前記現在ブロックの前記動きベクトル差分値の第2解像度のうちの少なくとも1つを指示する指示子の第1値を獲得し、
前記第1解像度は、第1解像度セットに含まれる複数の可用解像度の1つであり、前記第2解像度は、第2解像度セットに含まれる複数の可用解像度の1つであり、
前記第1解像度セットと前記第2解像度セットのどちらかを用いるかは、前記現在ブロックの予測モードに基づいて決定され、
前記第1解像度セット及び前記第2解像度セットの双方は、1サンプル単位の解像度を含み、
前記第1解像度セットに含まれる前記1サンプル単位の解像度、及び前記第2解像度セットに含まれる前記1サンプル単位の解像度は、前記指示子の異なる値によって指示され、
前記現在ブロックの動きベクトル差分値の解像度に基づいて、前記動きベクトル差分値を修正し、
前記動きベクトル差分値の解像度は、前記第1解像度又は前記第2解像度であり
前記動きベクトル予測子及び前記修正された動きベクトル差分値に基づいて前記現在ブロックの動きベクトルを獲得し、
前記獲得された動きベクトルに基づいて前記現在ブロックを復元する、ビデオ信号デコーディング装置。
In a video signal decoding device,
including a processor;
The processor
constructing a motion vector prediction (MVP) candidate list for motion compensation of the current block;
obtaining a motion vector predictor of the current block based on the constructed MVP candidate list;
obtaining a motion vector difference value indicating the difference between the motion vector of the current block and the motion vector predictor;
obtaining a first value of an indicator that indicates at least one of a first resolution of the motion vector difference values of the current block and a second resolution of the motion vector difference values of the current block;
the first resolution is one of a plurality of available resolutions included in a first resolution set, the second resolution is one of a plurality of available resolutions included in a second resolution set;
determining whether to use the first resolution set or the second resolution set based on a prediction mode of the current block;
both the first resolution set and the second resolution set include a resolution of 1 sample unit;
the sample-by-sample resolution included in the first resolution set and the sample-by-sample resolution included in the second resolution set are indicated by different values of the indicator;
modifying the motion vector difference value based on the resolution of the motion vector difference value of the current block;
the resolution of the motion vector difference value is the first resolution or the second resolution ;
obtaining a motion vector of the current block based on the motion vector predictor and the modified motion vector difference value;
A video signal decoding apparatus for reconstructing the current block based on the acquired motion vector.
記第2解像度セットは、前記第1解像度セットが含む複数の可用解像度でない他の可用解像度を少なくとも1つ含む、請求項1に記載のビデオ信号デコーディング装置。 2. The video signal decoding apparatus of claim 1, wherein the second resolution set includes at least one other available resolution than the plurality of available resolutions included in the first resolution set. 前記現在ブロックの前記予測モードがアフィン(affine)モデルに基づいている場合、前記動きベクトル差分値の解像度は前記第1解像度セットから獲得され、
前記現在ブロックの前記予測モードが前記アフィンモデルに基づかない場合、前記動きベクトル差分値の解像度は前記第2解像度セットから獲得される、請求項2に記載のビデオ信号デコーディング装置。
if the prediction mode of the current block is based on an affine model, the resolution of the motion vector difference value is obtained from the first resolution set;
3. The video signal decoding apparatus of claim 2, wherein the resolution of the motion vector difference values is obtained from the second resolution set if the prediction mode of the current block is not based on the affine model.
前記第1解像度セットが含む複数の可用解像度のうち、最も大きい第1可用解像度は、前記第2解像度セットが含む複数の可用解像度のうち、最も大きい第2可用解像度より小さい、請求項3に記載のビデオ信号デコーディング装置。 4. The method of claim 3, wherein the largest first available resolution among the plurality of available resolutions included in the first resolution set is smaller than the largest second available resolution among the plurality of available resolutions included in the second resolution set. video signal decoding device. 前記最も大きい第1可用解像度は1サンプル単位の解像度であり、
前記最も大きい第2可用解像度は4サンプル単位の解像度である、請求項4に記載のビデオ信号デコーディング装置。
the largest first available resolution is a resolution in units of one sample;
5. The video signal decoding apparatus of claim 4, wherein the second largest available resolution is a resolution of 4 samples.
前記現在ブロックの前記予測モードがアフィンモデル(affine)に基づいている場合、前記第1値は第1解像度セットが含む可用解像度のうちの1つである第1可用解像度を指示し、
前記現在ブロックの前記予測モードが前記アフィンモデルに基づかない場合、前記第1値は第2解像度セットが含む可用解像度のうちの1つである第2可用解像度を示し、
前記第1可用解像度と前記第2可用解像度は互いに異なる、請求項に記載のビデオ信号デコーディング装置。
if the prediction mode of the current block is based on an affine model , the first value indicates a first available resolution that is one of available resolutions included in a first resolution set;
if the prediction mode of the current block is not based on the affine model, the first value indicates a second available resolution that is one of the available resolutions included in a second resolution set;
2. The video signal decoding apparatus of claim 1 , wherein the first available resolution and the second available resolution are different from each other.
前記指示子は可変長さのビットで表現され、
前記第1値は前記可変長さのビットで表現される複数の値のうち、いずれか1つである、請求項に記載のビデオ信号デコーディング装置。
The indicator is represented by bits of variable length,
2. The video signal decoding apparatus of claim 1 , wherein the first value is one of a plurality of values represented by the variable length bits.
前記第1解像度セットが含む可用解像度の個数と前記第2解像度セットが含む可用解像度の個数は互いに異なる、請求項2に記載のビデオ信号デコーディング装置。 3. The video signal decoding apparatus of claim 2, wherein the number of available resolutions included in the first resolution set and the number of available resolutions included in the second resolution set are different from each other. 前記第1解像度セットに含まれる可用解像度の個数及び前記第2解像度セットに含まれる可用解像度の個数、参照ピクチャのピクチャ順序カウント(picture order count、POC)に基づいて決定される、請求項記載のビデオ信号デコーディング装置。 The number of available resolutions included in the first resolution set and the number of available resolutions included in the second resolution set are determined based on a picture order count (POC) of reference pictures. 9. Video signal decoding apparatus according to claim 8 . 前記参照ピクチャのピクチャ順序カウントが前記現在ブロックを含む現在ピクチャのPOCと同一の場合、前記第1解像度セットから前記現在ブロックの動きベクトル差分値の解像度が獲得され、
前記参照ピクチャのピクチャ順序カウントが前記現在ブロックを含む前記現在ピクチャのPOCと同一でない場合、前記第2解像度セットから前記現在ブロックの動きベクトル差分値の解像度が獲得され、
前記第1解像度セットは、前記第2解像度セットが含む可用解像度のうち、最も小さい可用解像度及び2番目に小さい可用解像度を除外した可用解像度で構成された、請求項に記載のビデオ信号デコーディング装置。
obtaining a resolution of a motion vector difference value of the current block from the first resolution set if the picture order count of the reference picture is the same as the POC of the current picture containing the current block;
if the picture order count of the reference picture is not the same as the POC of the current picture containing the current block, obtain the resolution of motion vector difference values of the current block from the second resolution set;
10. The video signal of claim 9 , wherein the first resolution set includes available resolutions excluding the smallest available resolution and the second smallest available resolution among the available resolutions included in the second resolution set. decoding device.
ビデオ信号エンコーディング装置において、
プロセッサを含み、
前記プロセッサは、
復号化方法を用いるデコーダによって復号されたビットストリームを獲得し、
前記復号化方法は、
在ブロックの動き補償のための動きベクトル予測子(motion vector prediction、MVP)候補リストを構成し、
前記構成されたMVP候補リストに基づいて前記現在ブロックの動きベクトル予測子を獲得し、
記現在ブロックの動きベクトルと前記動きベクトル予測子との間の差を指示する動きベクトル差分値を獲得し、
前記現在ブロックの前記動きベクトル差分値の第1解像度及び前記現在ブロックの前記動きベクトル差分値の第2解像度のうちの少なくとも1つを指示する指示子の第1値を獲得し、
前記第1解像度は、第1解像度セットに含まれる複数の可用解像度の1つであり、前記第2解像度は、第2解像度セットに含まれる複数の可用解像度の1つであり、
前記第1解像度セットと前記第2解像度セットのどちらかを用いるかは、前記現在ブロックの予測モードに基づいて決定され、
前記第1解像度セット及び前記第2解像度セットの双方は、1サンプル単位の解像度を含み、
前記第1解像度セットに含まれる前記1サンプル単位の解像度、及び前記第2解像度セットに含まれる前記1サンプル単位の解像度は、前記指示子の異なる値によって指示され、
前記現在ブロックの動きベクトル差分値の解像度に基づいて、前記動きベクトル差分値を修正し、
前記動きベクトル差分値の解像度は、前記第1解像度又は前記第2解像度であり、
前記動きベクトル予測子及び前記修正された動きベクトル差分値に基づいて前記現在ブロックの動きベクトルを獲得し、
前記獲得された動きベクトルに基づいて前記現在ブロックを復元する、ビデオ信号エンコーディング装置。
In a video signal encoding device,
including a processor;
The processor
obtaining a bitstream decoded by a decoder using a decoding method;
The decryption method includes:
constructing a motion vector prediction (MVP) candidate list for motion compensation of the current block;
obtaining a motion vector predictor for the current block based on the constructed MVP candidate list;
obtain a motion vector difference value that indicates the difference between the motion vector of the current block and the motion vector predictor ;
obtaining a first value of an indicator that indicates at least one of a first resolution of the motion vector difference values of the current block and a second resolution of the motion vector difference values of the current block;
the first resolution is one of a plurality of available resolutions included in a first resolution set, the second resolution is one of a plurality of available resolutions included in a second resolution set;
determining whether to use the first resolution set or the second resolution set based on a prediction mode of the current block;
both the first resolution set and the second resolution set include a resolution of 1 sample unit;
the sample-by-sample resolution included in the first resolution set and the sample-by-sample resolution included in the second resolution set are indicated by different values of the indicator;
modifying the motion vector difference value based on the resolution of the motion vector difference value of the current block;
the resolution of the motion vector difference value is the first resolution or the second resolution;
obtaining a motion vector of the current block based on the motion vector predictor and the modified motion vector difference value;
A video signal encoding apparatus for reconstructing the current block based on the obtained motion vector .
記第2解像度セットは、前記第1解像度セットが含む複数の可用解像度でない他の可用解像度を少なくとも1つ含む、請求項11に記載のビデオ信号エンコーディング装置。 12. The video signal encoding apparatus of claim 11 , wherein the second resolution set includes at least one other available resolution than the plurality of available resolutions included in the first resolution set. 前記第1解像度セットが含む複数の可用解像度のうち、最も大きい第1可用解像度は、前記第2解像度セットが含む複数の可用解像度のうち、最も大きい第2可用解像度より小さい、請求項12に記載のビデオ信号エンコーディング装置。 13. The method of claim 12 , wherein the largest first available resolution among the plurality of available resolutions included in the first resolution set is smaller than the largest second available resolution among the plurality of available resolutions included in the second resolution set. video signal encoding equipment. 前記最も大きい第1可用解像度は1サンプル単位の解像度であり、前記最も大きい第2可用解像度は4サンプル単位の解像度である、請求項13に記載のビデオ信号エンコーディング装置。 14. The video signal encoding apparatus of claim 13 , wherein the largest first available resolution is a resolution in units of 1 sample and the second largest available resolution is a resolution in units of 4 samples . 前記指示子は可変長さのビットで表現され、
前記第1値は前記可変長さのビットで表現される複数の値のうち、いずれか1つである、請求項11に記載のビデオ信号エンコーディング装置。
The indicator is represented by bits of variable length,
12. The video signal encoding apparatus of claim 11 , wherein the first value is one of a plurality of values represented by the variable length bits.
前記第1解像度セットが含む可用解像度の個数と前記第2解像度セットが含む可用解像度の個数は互いに異なる、請求項12に記載のビデオ信号エンコーディング装置。 13. The video signal encoding apparatus of claim 12 , wherein the number of available resolutions included in the first resolution set and the number of available resolutions included in the second resolution set are different from each other . ビットストリームを獲得する方法において、
現在ブロックの動き補償のための動きベクトル予測子(motion vector prediction、MVP)候補リストを構成するステップと、
前記構成されたMVP候補リストに基づいて前記現在ブロックの動きベクトル予測子を獲得するステップと、
前記現在ブロックの動きベクトルと前記動きベクトル予測子との間の差を指示する動きベクトル差分値を獲得するステップと、
前記現在ブロックの前記動きベクトル差分値の第1解像度及び前記現在ブロックの前記動きベクトル差分値の第2解像度のうちの少なくとも1つを指示する指示子の第1値を獲得するステップであって、前記第1解像度は、第1解像度セットに含まれる複数の可用解像度の1つであり、前記第2解像度は、第2解像度セットに含まれる複数の可用解像度の1つであり、前記第1解像度セットと前記第2解像度セットのどちらかを用いるかは、前記現在ブロックの予測モードに基づいて決定され、前記第1解像度セット及び前記第2解像度セットの双方は、1サンプル単位の解像度を含み、前記第1解像度セットに含まれる前記1サンプル単位の解像度、及び前記第2解像度セットに含まれる前記1サンプル単位の解像度は、前記指示子の異なる値によって指示される、ステップと、
前記現在ブロックの動きベクトル差分値の解像度に基づいて、前記動きベクトル差分値を修正するステップであって、前記動きベクトル差分値の解像度は、前記第1解像度又は前記第2解像度である、ステップと、
前記動きベクトル予測子及び前記修正された動きベクトル差分値に基づいて、前記現在ブロックの動きベクトルを獲得するステップと、
前記現在ブロックの前記動きベクトルのための情報を復号化することによってビットストリームを獲得するステップと、含む方法
A method for obtaining a bitstream comprising:
constructing a motion vector prediction (MVP) candidate list for motion compensation of the current block;
obtaining a motion vector predictor for the current block based on the constructed MVP candidate list;
obtaining a motion vector difference value indicating the difference between the motion vector of the current block and the motion vector predictor;
obtaining a first value of an indicator that indicates at least one of a first resolution of the motion vector difference values of the current block and a second resolution of the motion vector difference values of the current block; The first resolution is one of a plurality of available resolutions included in a first resolution set, the second resolution is one of a plurality of available resolutions included in a second resolution set, and the first resolution whether to use a set or the second resolution set is determined based on the prediction mode of the current block, both the first resolution set and the second resolution set include a resolution in units of one sample; wherein the one-sample resolution included in the first resolution set and the one-sample resolution included in the second resolution set are indicated by different values of the indicator;
modifying the motion vector difference value based on the resolution of the motion vector difference value of the current block, wherein the resolution of the motion vector difference value is the first resolution or the second resolution; ,
obtaining a motion vector for the current block based on the motion vector predictor and the modified motion vector difference value;
obtaining a bitstream by decoding information for the motion vector of the current block .
JP2020568219A 2018-06-07 2019-06-07 Video signal processing method and apparatus using adaptive motion vector resolution Active JP7159354B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022164143A JP2022185121A (en) 2018-06-07 2022-10-12 Video signal processing method and apparatus using adaptive motion vector resolution

Applications Claiming Priority (9)

Application Number Priority Date Filing Date Title
KR20180065688 2018-06-07
KR10-2018-0065688 2018-06-07
KR10-2018-0067864 2018-06-14
KR20180067864 2018-06-14
KR10-2018-0078513 2018-07-06
KR20180078513 2018-07-06
KR20180091270 2018-08-06
KR10-2018-0091270 2018-08-06
PCT/KR2019/006913 WO2019235896A1 (en) 2018-06-07 2019-06-07 Video signal processing method and apparatus using adaptive motion vector resolution

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2022164143A Division JP2022185121A (en) 2018-06-07 2022-10-12 Video signal processing method and apparatus using adaptive motion vector resolution

Publications (2)

Publication Number Publication Date
JP2021526340A JP2021526340A (en) 2021-09-30
JP7159354B2 true JP7159354B2 (en) 2022-10-24

Family

ID=68770812

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2020568219A Active JP7159354B2 (en) 2018-06-07 2019-06-07 Video signal processing method and apparatus using adaptive motion vector resolution
JP2022164143A Pending JP2022185121A (en) 2018-06-07 2022-10-12 Video signal processing method and apparatus using adaptive motion vector resolution

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2022164143A Pending JP2022185121A (en) 2018-06-07 2022-10-12 Video signal processing method and apparatus using adaptive motion vector resolution

Country Status (6)

Country Link
US (3) US11166040B2 (en)
EP (1) EP3806461A4 (en)
JP (2) JP7159354B2 (en)
KR (2) KR102493418B1 (en)
CN (1) CN112237001B (en)
WO (1) WO2019235896A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020004978A1 (en) * 2018-06-27 2020-01-02 주식회사 케이티 Method and apparatus for processing video signal
TWI746994B (en) 2018-06-19 2021-11-21 大陸商北京字節跳動網絡技術有限公司 Different precisions for different reference list
WO2020002373A1 (en) * 2018-06-27 2020-01-02 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Contour mode prediction
KR20240005178A (en) * 2018-09-19 2024-01-11 베이징 바이트댄스 네트워크 테크놀로지 컴퍼니, 리미티드 Syntax reuse for affine mode with adaptive motion vector resolution
US11025948B2 (en) * 2019-02-28 2021-06-01 Tencent America LLC Method and apparatus for motion prediction in video coding
EP3993422A4 (en) * 2019-06-27 2023-07-19 Samsung Electronics Co., Ltd. Method and apparatus for decoding video, and method and apparatus for encoding video
KR20220051842A (en) * 2019-09-18 2022-04-26 삼성전자주식회사 Motion information encoding apparatus and method, and decoding apparatus and method
KR102297479B1 (en) * 2020-04-10 2021-09-03 삼성전자주식회사 Encoding apparatus and method of motion vector, and decoding apparatus and method of motion vector
WO2023056158A1 (en) * 2021-09-28 2023-04-06 Qualcomm Incorporated Motion vector difference sign prediction for video coding
US20230139186A1 (en) * 2021-10-28 2023-05-04 Tencent America LLC Template-matching based adaptive motion vector resolution (amvr)
US20230199213A1 (en) * 2021-12-17 2023-06-22 Tencent America LLC Template-matching based adaptive motion vector resolution by using an adaptive order of motion vector resolutions
CN114826400B (en) * 2022-02-28 2023-08-08 北京邮电大学 Signal compensation method based on visible light communication and related equipment
WO2023177799A1 (en) * 2022-03-16 2023-09-21 Beijing Dajia Internet Information Technology Co., Ltd. Adaptive picture modifications for video coding

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017157259A1 (en) 2016-03-15 2017-09-21 Mediatek Inc. Method and apparatus of video coding with affine motion compensation
WO2018033661A1 (en) 2016-08-15 2018-02-22 Nokia Technologies Oy Video encoding and decoding
US20180098089A1 (en) 2016-10-04 2018-04-05 Qualcomm Incorporated Adaptive motion vector precision for video coding
US20180098063A1 (en) 2016-10-05 2018-04-05 Qualcomm Incorporated Motion vector prediction for affine motion models in video coding

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10531116B2 (en) * 2014-01-09 2020-01-07 Qualcomm Incorporated Adaptive motion vector resolution signaling for video coding
CN111741312B (en) * 2014-10-31 2024-03-19 三星电子株式会社 Method and apparatus for encoding/decoding motion vector
WO2017052000A1 (en) * 2015-09-24 2017-03-30 엘지전자 주식회사 Method and apparatus for motion vector refinement-based inter prediction in image coding system
WO2017156705A1 (en) * 2016-03-15 2017-09-21 Mediatek Inc. Affine prediction for video coding
WO2017194773A1 (en) * 2016-05-13 2017-11-16 Telefonaktiebolaget Lm Ericsson (Publ) Motion vector difference coding and decoding
CA3025490A1 (en) * 2016-05-28 2017-12-07 Mediatek Inc. Method and apparatus of current picture referencing for video coding using affine motion compensation
EP3264768A1 (en) * 2016-06-30 2018-01-03 Thomson Licensing Method and apparatus for video coding with adaptive motion information refinement
CN117201815A (en) * 2016-10-04 2023-12-08 英迪股份有限公司 Image decoding method, image encoding method, and method of transmitting bit stream
WO2018095313A1 (en) * 2016-11-22 2018-05-31 Mediatek Inc. Method and apparatus for motion vector sign prediction in video coding

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017157259A1 (en) 2016-03-15 2017-09-21 Mediatek Inc. Method and apparatus of video coding with affine motion compensation
WO2018033661A1 (en) 2016-08-15 2018-02-22 Nokia Technologies Oy Video encoding and decoding
US20180098089A1 (en) 2016-10-04 2018-04-05 Qualcomm Incorporated Adaptive motion vector precision for video coding
US20180098063A1 (en) 2016-10-05 2018-04-05 Qualcomm Incorporated Motion vector prediction for affine motion models in video coding

Also Published As

Publication number Publication date
US20210392365A1 (en) 2021-12-16
EP3806461A4 (en) 2022-03-16
CN112237001B (en) 2024-04-12
JP2022185121A (en) 2022-12-13
KR20230018548A (en) 2023-02-07
EP3806461A1 (en) 2021-04-14
KR102493418B1 (en) 2023-01-31
JP2021526340A (en) 2021-09-30
WO2019235896A1 (en) 2019-12-12
US20210112268A1 (en) 2021-04-15
US11706440B2 (en) 2023-07-18
US20230308676A1 (en) 2023-09-28
CN112237001A (en) 2021-01-15
US11166040B2 (en) 2021-11-02
KR20210006390A (en) 2021-01-18

Similar Documents

Publication Publication Date Title
JP7159354B2 (en) Video signal processing method and apparatus using adaptive motion vector resolution
CN110677660B (en) Merge index coding
US10666947B2 (en) Method and apparatus for processing a video signal
CN109076218B (en) Video encoding/decoding method and device based on multiple filter confusion
KR102570087B1 (en) Video signal processing method and apparatus using motion compensation
US11290736B1 (en) Techniques for decoding or coding images based on multiple intra-prediction modes
US11388421B1 (en) Usage of templates for decoder-side intra mode derivation
KR20190090728A (en) A method and an apparatus for processing a video signal using subblock-based motion compensation
US20210377519A1 (en) Intra prediction-based video signal processing method and device
KR20210084567A (en) Video signal processing method and apparatus using in-screen predictive filtering
KR102606291B1 (en) Video signal processing method and device using cross-component linear model
KR20210149759A (en) Video signal processing method and apparatus using adaptive motion vector resolution
JP2022521911A (en) Intra-prediction-based video signal processing methods and equipment
KR20210091208A (en) Video signal processing method and apparatus using current picture reference
KR20240026180A (en) Video signal processing method using intra prediction and device therefor
KR20240050409A (en) Video signal processing method and device therefor
KR20190023478A (en) Method and apparatus for encoding/decoding a video signal

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201207

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201207

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20211228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220124

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220425

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20220721

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: 20220912

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221012

R150 Certificate of patent or registration of utility model

Ref document number: 7159354

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150