TW202017370A - Interaction between emm and other tools - Google Patents

Interaction between emm and other tools Download PDF

Info

Publication number
TW202017370A
TW202017370A TW108123171A TW108123171A TW202017370A TW 202017370 A TW202017370 A TW 202017370A TW 108123171 A TW108123171 A TW 108123171A TW 108123171 A TW108123171 A TW 108123171A TW 202017370 A TW202017370 A TW 202017370A
Authority
TW
Taiwan
Prior art keywords
candidate
list
mvd
item
patent application
Prior art date
Application number
TW108123171A
Other languages
Chinese (zh)
Other versions
TWI731362B (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 TW202017370A publication Critical patent/TW202017370A/en
Application granted granted Critical
Publication of TWI731362B publication Critical patent/TWI731362B/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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/184Methods 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 bits, e.g. of the compressed video stream
    • 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/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/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/521Processing of motion vectors for estimating the reliability of the determined motion vectors or motion vector field, e.g. for smoothing the motion vector field or for correcting 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/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
    • 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/523Motion estimation or motion compensation with sub-pixel accuracy

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Methods, devices and systems for using an extended merge mode (EMM) in video coding are described. An exemplary method of video processing includes constructing a list of extended merge mode (EMM) candidates; determining, based on a first set of bits in a bitstream representation of a current block, the motion information inherited by the current block from the list; determining, based on a second set of bits in the bitstream representation of a current block, the signaled motion information of the current block; and performing, based on the list of EMM candidates and the signaled motion information, a conversion between the current block and the bitstream representation, wherein a motion vector difference (MVD) precision of the list of EMM candidates is based on at least one candidate inserted into the list of EMM candidates.

Description

擴展Merge模式與其他視頻編碼工具之間的交互Expand the interaction between the Merge mode and other video encoding tools

本文件涉及視頻編碼技術。 [相關申請的交叉引用] 根據適用的專利法和/或依據巴黎公約的規則,本申請要求於2018年6月29日作為國際專利申請第PCT/CN2018/093646號提交的在先中國專利申請的優先權和權益。該國際專利申請第PCT/CN2018/093646號的全部公開內容通過引用併入作為本申請的公開內容的一部分。This document deals with video encoding technology. [Cross reference to related applications] According to the applicable patent law and/or the rules of the Paris Convention, this application requires the priority and rights of the prior Chinese patent application filed as International Patent Application No. PCT/CN2018/093646 on June 29, 2018. The entire disclosure of this International Patent Application No. PCT/CN2018/093646 is incorporated by reference as part of the disclosure of this application.

數位視訊佔網際網路和其他數位通信網路上最大的頻寬使用。隨著能夠接收和顯示視頻的所連接的使用者設備的數量增加,預計數位視訊使用的頻寬需求將繼續增長。Digital video accounts for the largest bandwidth usage on the Internet and other digital communication networks. As the number of connected user devices capable of receiving and displaying video increases, it is expected that the demand for bandwidth for digital video usage will continue to grow.

所公開的技術可以由視頻解碼器或編碼器實施例用於使用擴展Merge模式,其中一些運動資訊可以被繼承,而一些運動資訊可以被信令通知。The disclosed technique can be used by a video decoder or encoder embodiment to use the extended Merge mode, where some motion information can be inherited and some motion information can be signaled.

在一個示例方面,公開了一種視頻處理方法。該方法包括構建擴展Merge模式(EMM)候選清單;基於當前塊的位元流表示中的比特的第一集合來確定由當前塊從清單中繼承的運動資訊;基於當前塊的位元流表示中的比特的第二集合來確定該當前塊被信令通知的運動資訊;並且基於EMM候選列表和被信令通知的運動資訊來執行當前塊與位元流表示之間的轉換,其中EMM候選列表的運動向量差(MVD)精度基於插入EMM候選列表中的至少一個候選。In an example aspect, a video processing method is disclosed. The method includes constructing an extended Merge mode (EMM) candidate list; determining the motion information inherited from the list by the current block based on the first set of bits in the bitstream representation of the current block; based on the bitstream representation of the current block The second set of bits to determine the motion information signaled for the current block; and based on the EMM candidate list and the signaled motion information to perform the conversion between the current block and the bitstream representation, where the EMM candidate list The accuracy of the motion vector difference (MVD) is based on at least one candidate inserted into the EMM candidate list.

在另一個示例方面,上述方法可以由包括處理器的視頻解碼器裝置實現。In another example aspect, the above method may be implemented by a video decoder device that includes a processor.

在另一個示例方面,上述方法可以由視訊轉碼器裝置實現,該視訊轉碼器裝置包括用於在視頻編碼過程期間對已編碼的視頻進行解碼的處理器。In another example aspect, the above method may be implemented by a video transcoder device including a processor for decoding encoded video during a video encoding process.

在又一個示例方面,這些方法可以以處理器可執行指令的形式實施並存儲在電腦可讀程式介質上。In yet another example aspect, these methods may be implemented in the form of processor-executable instructions and stored on a computer-readable program medium.

在本檔中進一步描述了這些方面和其他方面。These and other aspects are further described in this document.

本檔提供了可由視頻位元流的解碼器使用的各種技術,以改善解壓縮的或解碼的數位視訊的品質。此外,視訊轉碼器也可在編碼過程期間實現這些技術,以便重建用於進一步編碼的已解碼幀。This document provides various techniques that can be used by decoders of video bitstreams to improve the quality of decompressed or decoded digital video. In addition, the video transcoder can also implement these techniques during the encoding process in order to reconstruct the decoded frames for further encoding.

為了便於理解,在本檔中使用了節標題,但是並非將實施例和技術限制於對應的節。這樣,來自一個節的實施例可以與來自其他節的實施例組合。2 .技術框架 For ease of understanding, section titles are used in this file, but the embodiments and techniques are not limited to the corresponding sections. In this way, embodiments from one section can be combined with embodiments from other sections. 2 . Technical framework

視頻編碼標準主要是通過眾所周知的ITU-T和ISO/IEC標準的發展而得以演進。ITU-T產生了H.261和H.263標準,ISO/IEC產生了MPEG-1和MPEG-4 Visual標準,並且兩個組織聯合產生了H.262/MPEG-2視頻標準和H.264/MPEG-4高級視頻編碼(Advanced Video Coding,AVC)標準和H.265/HEVC [00130]標準。自H.262以來,視頻編碼標準基於混合視頻編碼結構,其中利用時間預測加變換編碼。為探索HEVC之外的未來視頻編碼技術,聯合視頻探索團隊(Joint Video Exploration Team, JVET)由VCEG和MPEG于2015年聯合創立。自那時以來,JVET採用了許多新方法,並將其納入了名為聯合探索模型(Joint Exploration Model, JEM)[1][2]的參考軟體中。在2018年4月,VCEG(Q6/16)和ISO/IEC JTC1 SC29/WG11(MPEG)之間的聯合視頻專家團隊(Joint Video Expert Team, JVET)被創建以從事於VVC標準,目標是與HEVC相比降低50%的位元速率。2.1 HEVC/H. 265 中的幀間預測 Video coding standards are mainly evolved through the development of well-known ITU-T and ISO/IEC standards. ITU-T produced H.261 and H.263 standards, ISO/IEC produced MPEG-1 and MPEG-4 Visual standards, and the two organizations jointly produced H.262/MPEG-2 video standards and H.264/ MPEG-4 Advanced Video Coding (Advanced Video Coding, AVC) standard and H.265/HEVC [00130] standard. Since H.262, the video coding standard is based on a hybrid video coding structure, in which temporal prediction plus transform coding is used. To explore future video coding technologies beyond HEVC, the Joint Video Exploration Team (JVET) was co-founded by VCEG and MPEG in 2015. Since then, JVET has adopted many new methods and incorporated them into a reference software called Joint Exploration Model (JEM) [1][2]. In April 2018, the Joint Video Expert Team (JVET) between VCEG (Q6/16) and ISO/IEC JTC1 SC29/WG11 (MPEG) was created to work on the VVC standard with the goal of collaborating with HEVC This reduces the bit rate by 50%. 2.1 interframe prediction in HEVC / H. 265 in

每個幀間預測的PU具有對於一個或兩個參考圖像清單的運動參數。運動參數包括運動向量和參考圖像索引。也可以使用inter_pred_idc 來信令通知對兩個參考圖像清單中一個的使用。運動向量可以被明確地編碼為相對於預測器的增量。Each inter-predicted PU has motion parameters for one or two reference picture lists. Motion parameters include motion vectors and reference image indexes. You can also use inter_pred_idc to signal the use of one of the two reference image lists. The motion vector can be explicitly encoded as an increment relative to the predictor.

當使用跳過(skip)模式編碼CU時,一個PU與該CU相關聯,並且不存在顯著的殘差係數,不存在編碼的運動向量增量或參考圖像索引。指定Merge模式,由此從相鄰PU——包括空間和時間候選——獲得用於當前PU的運動參數。Merge模式可以應用於任何幀間預測的PU,而不僅適用於跳過模式。Merge模式的替代方案是運動參數的顯式傳輸(explicit transmission),其中運動向量(更確切地說,與運動向量預測器相比的運動向量差異)、每個參考圖像清單的對應參考圖像索引、參考圖像清單使用被每個PU地明確地信令通知。這樣的模式在本檔中被命名為高級運動向量預測(Advanced motion vector prediction, AMVP)。When encoding a CU using a skip mode, one PU is associated with the CU, and there are no significant residual coefficients, and there is no encoded motion vector increment or reference image index. The Merge mode is specified, thereby obtaining motion parameters for the current PU from neighboring PUs, including spatial and temporal candidates. Merge mode can be applied to any inter-predicted PU, not just skip mode. An alternative to the Merge mode is explicit transmission of motion parameters, where the motion vector (more precisely, the motion vector difference compared to the motion vector predictor), the corresponding reference image for each reference image list The index and reference picture list usage are explicitly signaled by each PU. This mode is named Advanced Motion Vector Prediction (AMVP) in this file.

當信令指示要使用兩個參考圖像清單中的一個時,PU從一個樣點塊產生。這被稱為“單向預測”。單向預測可用於P條帶和B條帶。When signaling indicates that one of the two reference picture lists is to be used, the PU is generated from a sample block. This is called "one-way prediction". One-way prediction can be used for P-band and B-band.

當信令指示要使用兩個參考圖像清單時,PU從兩個樣點塊產生。這被稱為“雙向預測”。雙向預測僅可用於B條帶。When signaling indicates that two reference image lists are to be used, the PU is generated from two sample blocks. This is called "bidirectional prediction". Bidirectional prediction is only available for B bands.

以下文本提供了HEVC中指定的幀間預測模式的細節。描述將從Merge模式開始。2.1.1Merge 模式 2.1.1.1Merge 模式的候選的推導 The following text provides details of the inter prediction modes specified in HEVC. The description will start in Merge mode. 2.1.1 Merge mode 2.1.1.1 Derivation of Merge mode candidates

當使用Merge模式預測PU時,從位元流解析出指向Merge候選列表(merge candidates list)中的條目的索引,並且該索引被用於檢索運動資訊。該列表的構建在HEVC標準中規定,並且可以根據以下步驟順序進行總結: 步驟1:初始候選推導 步驟1.1:空間候選推導 步驟1.2:空間候選的冗餘校驗 步驟1.3:時間候選推導 步驟2:附加候選插入 步驟2.1:創建雙向預測候選 步驟2.2:插入零運動候選When the PU is predicted using the Merge mode, an index pointing to the entries in the Merge candidates list is parsed from the bit stream, and the index is used to retrieve motion information. The construction of this list is specified in the HEVC standard and can be summarized according to the following sequence of steps: Step 1: Derivation of initial candidates Step 1.1: Spatial candidate derivation Step 1.2: Spatial candidate redundancy check Step 1.3: Time candidate derivation Step 2: Additional candidate insertion Step 2.1: Create bidirectional prediction candidates Step 2.2: Insert zero motion candidates

這些步驟也在圖1中示意性地描繪。對於空間Merge候選推導,在位於五個不同位置的候選中選擇最多四個Merge候選。對於時間Merge候選推導,在兩個候選中選擇最多一個Merge候選。由於在解碼器處假設每個PU的候選的數量為常數,因此當從步驟1獲得的候選的數量未達到在條帶報頭中信令通知的最大Merge候選數量(MaxNumMergeCand)時,生成附加的候選。由於候選的數量是恒定的,因此使用二進位一元截斷(TUB)來編碼最佳Merge候選的索引。如果CU的尺寸等於8,則當前CU的所有PU共用單個Merge候選列表,該單個Merge候選列表與2N×2N預測單元的Merge候選清單相同。These steps are also depicted schematically in Figure 1. For the spatial Merge candidate derivation, a maximum of four Merge candidates are selected among the candidates located in five different positions. For temporal Merge candidate derivation, at most one Merge candidate is selected from the two candidates. Since the number of candidates per PU is assumed to be constant at the decoder, when the number of candidates obtained from step 1 does not reach the maximum number of Merge candidates (MaxNumMergeCand) signaled in the slice header, additional candidates are generated . Since the number of candidates is constant, binary unary truncation (TUB) is used to encode the index of the best Merge candidate. If the size of the CU is equal to 8, all PUs of the current CU share a single Merge candidate list, which is the same as the Merge candidate list of the 2N×2N prediction unit.

在下文中,詳細描述了與上述步驟相關聯的操作。2.1.1.2 空間候選推導 In the following, the operations associated with the above steps are described in detail. 2.1.1.2 Derivation of spatial candidates

在空間Merge候選的推導中,在位於圖2中描繪的位置中的候選中選擇最多四個Merge候選。推導的順序是A1 、B1 、B0 、A0 和B2 。僅當位置A1 、B1 、B0 、A0的任何PU不可用時(例如,因為該PU屬於另一個條帶(slice)或片(tile))或者是幀內編碼時,才考慮位置B2 。在添加位置A1 處的候選之後,對剩餘候選的添加進行冗餘校驗,該冗餘校驗確保具有相同運動資訊的候選被排除在清單之外,從而改善編碼效率。為了降低計算複雜度,在所提到的冗餘校驗中並未考慮所有可能的候選對。相反,僅考慮與圖3中的箭頭連結的對,並且如果用於冗餘校驗的對應候選具有不同的運動資訊,則該候選僅被添加到列表中。重複的運動資訊的另一個來源是與不同於2Nx2N的劃分相關聯的“第二PU 。作為示例,圖4分別描繪了針對N×2N和2N×N的情況的第二PU。當當前PU被劃分為N×2N時,位置A1 處的候選不被考慮用於列表構建。實際上,通過添加該候選將導致具有相同運動資訊的兩個預測單元,這對於在編碼單元中僅具有一個PU是冗餘的。類似地,當當前PU被劃分為2N×N時,不考慮位置B12.1.1.3 時間候選推導 In the derivation of spatial Merge candidates, a maximum of four Merge candidates are selected among the candidates located in the positions depicted in FIG. 2. The order of derivation is A 1 , B 1 , B 0 , A 0 and B 2 . Position B is only considered when any PU at position A 1 , B 1 , B 0 , A0 is not available (for example, because the PU belongs to another slice or tile) or is intra-coded 2 . After the addition of the candidate position at A 1, of the remaining candidate is added redundancy check, CRC to ensure that the candidate has the same motion information is excluded from the list, thereby improving coding efficiency. In order to reduce the computational complexity, not all possible candidate pairs are considered in the mentioned redundancy check. On the contrary, only the pair connected with the arrow in FIG. 3 is considered, and if the corresponding candidate for redundancy check has different motion information, the candidate is only added to the list. Another source of repetitive motion information is the "second PU " associated with a division other than 2Nx2N. As an example, FIG. 4 depicts the second PU for the cases of N×2N and 2N×N, respectively. When the current PU is divided into N×2N, the candidate at position A 1 is not considered for list construction. In fact, adding this candidate will result in two prediction units with the same motion information, which is redundant for having only one PU in the coding unit. Similarly, when the current PU is divided into 2N×N, the position B 1 is not considered. 2.1.1.3 Time candidate derivation

在此步驟中,只有一個候選被添加到列表中。特別地,在該時間Merge候選的推導中,基於共位(co-located)的PU來匯出縮放的運動向量,該共位的PU屬於相對於給定參考圖像清單內的當前圖像具有最小POC差異的圖像。在條帶報頭中明確地信令通知用於共位的PU的推導的參考圖像清單。如圖5中的虛線所示,獲得用於時間Merge候選的縮放的運動向量,其使用POC距離tb和td從共位的PU的運動向量縮放,其中tb被定義為當前圖像的參考圖像與該當前圖像之間的POC差異,並且td被定義為共位元圖像的參考圖像與該共位元圖像之間的POC差異。時間Merge候選的參考圖像索引被設置為等於零。在HEVC規範[00130]中描述了縮放過程的實際實現。對於B條帶,獲得兩個運動向量並將其組合以產生雙向預測Merge候選,該兩個運動向量中的一個用於參考圖像清單0而另一個用於參考圖像清單1。In this step, only one candidate is added to the list. In particular, in the derivation of the Merge candidate at this time, a scaled motion vector is derived based on a co-located PU, which belongs to the current image with respect to a given reference image list The image with the smallest POC difference. The deduced reference picture list for the co-located PU is explicitly signaled in the slice header. As shown by the dotted line in FIG. 5, a scaled motion vector for the temporal Merge candidate is obtained, which is scaled from the motion vector of the co-located PU using the POC distances tb and td, where tb is defined as the reference image of the current image The POC difference from the current image, and td is defined as the POC difference between the reference image of the co-located image and the co-located image. The reference image index of the temporal Merge candidate is set equal to zero. The actual implementation of the scaling process is described in the HEVC specification [00130]. For the B slice, two motion vectors are obtained and combined to generate a bidirectional prediction Merge candidate, one of the two motion vectors is used for reference image list 0 and the other is used for reference image list 1.

如圖6所示,在屬於參考幀的共位的PU(Y)中,在候選C0 和C1 之間選擇用於時間候選的位置。如果位置C0 處的PU不可用、被幀內編碼的或在當前CTU行之外,則使用位置C1 。否則,在時間Merge候選的推導中使用位置C02.1.1.4 附加的候選插入 As shown in FIG. 6, in the co-located PU(Y) belonging to the reference frame, the position for the temporal candidate is selected between the candidates C 0 and C 1 . If the PU at position C 0 is unavailable, intra-coded, or outside the current CTU line, then position C 1 is used. Otherwise, the position C 0 is used in the derivation of the time Merge candidate. 2.1.1.4 Additional candidate insertion

除了空間和時間Merge候選之外,還存在兩種附加類型的Merge候選:組合的雙向預測Merge候選和零Merge候選。通過利用空間和時間Merge候選來生成組合的雙向預測Merge候選。組合的雙向預測Merge候選僅用於B條帶。通過將初始候選的第一參考圖像清單運動參數與另一個候選的第二參考圖像清單運動參數組合來生成組合的雙向預測候選。如果這兩個元組提供不同的運動假設,則它們將形成一個新的雙向預測候選。作為示例,圖7描繪了當原始列表(在左方)中具有mvL0和refIdxL0或mvL1和refIdxL1的兩個候選被用於創建組合的雙向預測Merge候選的情況,該組合的雙向預測Merge候選被添加到最終列表(在右方)。關於被考慮來生成這些附加Merge候選的組合存在許多規則,這些規則在[00130]中定義。In addition to space and time Merge candidates, there are two additional types of Merge candidates: combined bidirectional prediction Merge candidates and zero Merge candidates. The combined bidirectional prediction Merge candidates are generated by using spatial and temporal Merge candidates. The combined bidirectional prediction Merge candidate is only used for B bands. The combined bidirectional prediction candidate is generated by combining an initial candidate's first reference image list motion parameter and another candidate's second reference image list motion parameter. If these two tuples provide different motion hypotheses, they will form a new bidirectional prediction candidate. As an example, FIG. 7 depicts the case when two candidates with mvL0 and refIdxL0 or mvL1 and refIdxL1 in the original list (on the left) are used to create a combined bidirectional prediction Merge candidate, the combined bidirectional prediction Merge candidate is added To the final list (on the right). There are many rules regarding the combination considered to generate these additional Merge candidates, which are defined in [00130].

零運動候選被插入以填充Merge候選列表中的剩餘條目,並且因此達到MaxNumMergeCand容量。這些候選具有零空間位移和參考圖像索引,該參考圖像索引從零開始並且每當新的零運動候選被添加到列表時增加。這些候選使用的參考幀的數量是分別用於單向和雙向預測的1和2。最後,不對這些候選執行冗餘校驗。2.1.1.5 用於並行處理的運動估計區域 Zero motion candidates are inserted to fill the remaining entries in the Merge candidate list, and thus reach the MaxNumMergeCand capacity. These candidates have zero spatial displacement and a reference image index that starts at zero and increases each time a new zero motion candidate is added to the list. The number of reference frames used by these candidates is 1 and 2 for unidirectional and bidirectional prediction, respectively. Finally, no redundancy check is performed on these candidates. 2.1.1.5 Motion estimation area for parallel processing

為了加速編碼過程,可以並存執行運動估計,由此同時匯出給定區域內的所有預測單元的運動向量。來自空間鄰域的Merge候選的推導可能干擾並行處理,因為一個預測單元直到其相關聯的運動估計完成才能從相鄰PU匯出運動參數。為了減輕編碼效率和處理等待時間之間的折衷,HEVC定義了運動估計區域(MER),運動估計區域的尺寸在圖像參數集中使用“log2_parallel_merge_level_minus2”語法元素[00130]來信令通知。當MER被定義時,落入同一區域的Merge候選被標記為不可用,並且因此在列表構建中也不被考慮。2.1.2 AMVP In order to speed up the encoding process, motion estimation can be performed concurrently, thereby simultaneously deriving motion vectors of all prediction units in a given area. The derivation of Merge candidates from spatial neighborhoods may interfere with parallel processing because a prediction unit cannot export motion parameters from neighboring PUs until its associated motion estimation is complete. In order to reduce the trade-off between coding efficiency and processing latency, HEVC defines a motion estimation area (MER). The size of the motion estimation area is signaled using the "log2_parallel_merge_level_minus2" syntax element [00130] in the image parameter set. When MER is defined, Merge candidates that fall into the same area are marked as unavailable, and therefore are not considered in the list construction. 2.1.2 AMVP

AMVP利用運動向量與相鄰PU的時空相關性,該時空相關性用於運動參數的顯式傳輸。對於每個參考圖像清單,通過首先如下方式來構建運動向量候選列表:校驗左方、上方在時間上相鄰PU位置的可用性,移除冗餘候選,並添加零向量,以使候選列表為恒定長度。然後,編碼器可以從候選清單中選擇最佳預測器,並傳輸指示所選候選的對應索引。與Merge索引信令類似,使用二進位一元截斷來編碼最佳運動向量候選的索引。在這種情況下要編碼的最大值是2(參見圖8)。在以下的節中,提供了關於運動向量預測候選的推導過程的細節。2.1.2.1 AMVP 候選的推導 AMVP utilizes the spatiotemporal correlation of motion vectors with neighboring PUs, which is used for explicit transmission of motion parameters. For each reference image list, a motion vector candidate list is first constructed by checking the availability of temporally adjacent PU positions on the left and above, removing redundant candidates, and adding a zero vector to make the candidate list It is a constant length. The encoder can then select the best predictor from the candidate list and transmit the corresponding index indicating the selected candidate. Similar to Merge index signaling, binary unary truncation is used to encode the index of the best motion vector candidate. The maximum value to be encoded in this case is 2 (see Figure 8). In the following section, details about the derivation process of motion vector prediction candidates are provided. 2.1.2.1 Derivation of AMVP candidates

圖8總結了用於運動向量預測候選的推導過程。FIG. 8 summarizes the derivation process for motion vector prediction candidates.

在運動向量預測中,考慮兩種類型的運動向量候選:空間運動向量候選和時間運動向量候選。如圖2所示,對於空間運動向量候選推導,最終基於位於五個不同位置的每個PU的運動向量來匯出兩個運動向量候選。In motion vector prediction, two types of motion vector candidates are considered: spatial motion vector candidates and temporal motion vector candidates. As shown in FIG. 2, for the derivation of spatial motion vector candidates, two motion vector candidates are finally derived based on the motion vectors of each PU located at five different positions.

對於時間運動向量候選推導,從基於兩個不同的共位位置匯出的兩個候選中選擇一個運動向量候選。在製作時空候選的第一列表之後,移除列表中的重複的運動向量候選。如果潛在候選的數量大於2,則從列表中移除其在相關聯的參考圖像清單內的參考圖像索引大於1的運動向量候選。如果時空運動向量候選的數量小於2,則將附加的零運動向量候選添加到列表中。2.1.2.2 空間運動向量候選 For temporal motion vector candidate derivation, one motion vector candidate is selected from two candidates derived based on two different co-located positions. After making the first list of spatiotemporal candidates, the duplicate motion vector candidates in the list are removed. If the number of potential candidates is greater than 2, the motion vector candidates whose reference image index is greater than 1 in the associated reference image list are removed from the list. If the number of spatiotemporal motion vector candidates is less than 2, additional zero motion vector candidates are added to the list. 2.1.2.2 Spatial motion vector candidates

在空間運動向量候選的推導中,在五個潛在候選中考慮最多兩個候選,該五個潛在候選來自位於如圖2所示的位置的PU,這些位置與運動Merge的那些位置相同。當前PU的左側的推導順序被定義為A0 、A1 以及縮放的A0 、縮放的A1 。當前PU的上側的推導順序被定義為B0 、B1 、B2 、縮放的B0 、縮放的B1 、縮放的B2 。因此,對於每一側,存在四種可用作運動向量候選的情況,其中兩種情況不需要使用空間縮放,並且兩種情況使用空間縮放。四種不同的情況總結如下。 •     無空間縮放 (1)相同的參考圖像清單,以及相同的參考圖像索引(相同的POC) (2)不同的參考圖像清單,但是相同的參考圖像索引(相同的POC) •     空間縮放 (3)相同的參考圖像清單,但不同的參考圖像索引(不同的POC) (4)不同的參考圖像清單,以及不同的參考圖像索引(不同的POC)In the derivation of spatial motion vector candidates, a maximum of two candidates are considered among five potential candidates from PUs located at positions shown in FIG. 2, which are the same as those of motion Merge. The derivation order on the left side of the current PU is defined as A 0 , A 1 and scaled A 0 , scaled A 1 . The derivation order of the upper side of the current PU is defined as B 0 , B 1 , B 2 , scaled B 0 , scaled B 1 , scaled B 2 . Therefore, for each side, there are four cases that can be used as motion vector candidates, two of which do not need to use spatial scaling, and two use spatial scaling. The four different situations are summarized below. • No spatial scaling (1) Same reference image list, and same reference image index (same POC) (2) Different reference image list, but same reference image index (same POC) • Spatial Zoom (3) the same reference image list, but different reference image index (different POC) (4) different reference image list, and different reference image index (different POC)

首先校驗無空間縮放情況,接下來校驗空間縮放。不管參考圖像清單如何,當POC在相鄰PU的參考圖像與當前PU的參考圖像之間是不同的時,考慮空間縮放。如果左方候選的所有PU都不可用或者是被幀內編碼的,則允許對上方運動向量進行縮放,以幫助左方和上方MV候選的並行推導。否則,對上側運動向量不允許空間縮放。First verify that there is no spatial scaling, and then verify the spatial scaling. Regardless of the reference image list, when the POC is different between the reference image of the neighboring PU and the reference image of the current PU, spatial scaling is considered. If all PUs of the left candidate are unavailable or are intra-coded, the upper motion vector is allowed to be scaled to help the parallel derivation of the left and upper MV candidates. Otherwise, spatial scaling is not allowed for the upper motion vector.

如圖9所示,在空間縮放過程中,以與時間縮放類似的方式縮放相鄰PU的運動向量。主要差異在於當前PU的參考圖像清單和索引被給出以作為輸入;實際縮放過程與時間縮放過程相同。2.1.2.3 時間運動向量候選 As shown in FIG. 9, during spatial scaling, the motion vectors of neighboring PUs are scaled in a similar manner to temporal scaling. The main difference is that the reference picture list and index of the current PU are given as input; the actual scaling process is the same as the time scaling process. 2.1.2.3 Temporal motion vector candidates

除了參考圖像索引推導之外,用於時間Merge候選的推導的所有過程與用於空間運動向量候選的推導的過程相同(參見圖6)。將參考圖像索引信令通知給解碼器。2.2 JEM 中新的幀間預測方法 2.2.1 自我調整運動向量差異解析度 Except for the reference image index derivation, all processes used for the derivation of temporal Merge candidates are the same as those used for the derivation of spatial motion vector candidates (see FIG. 6). The reference picture index is signaled to the decoder. 2.2 New inter prediction method in JEM 2.2.1 Self-adjusting motion vector difference resolution

在HEVC中,當條帶報頭中的use_integer_mv_flag等於0時,以四分之一亮度樣點為單位,信令通知(PU的運動向量與預測的運動向量之間的)運動向量差異(MVD)。在JEM中,引入了局部自我調整運動向量解析度(LAMVR)。在JEM中,MVD可以以四分之一亮度樣點、整數亮度樣點或四個亮度樣點為單位進行編碼。在編碼單元(CU)級別控制MVD解析度,並且向具有至少一個非零MVD分量的每個CU,有條件地信令通知MVD解析度標誌。In HEVC, when use_integer_mv_flag in the slice header is equal to 0, the motion vector difference (MVD) between the motion vector of the PU and the predicted motion vector is signaled in units of quarter luminance samples. In JEM, local self-adjusting motion vector resolution (LAMVR) was introduced. In JEM, MVD can be encoded in units of quarter brightness samples, integer brightness samples, or four brightness samples. The MVD resolution is controlled at the coding unit (CU) level, and to each CU having at least one non-zero MVD component, the MVD resolution flag is conditionally signaled.

對於具有至少一個非零MVD分量的CU,信令通知第一標記,以指示是否在CU中使用四分之一亮度樣點MV精度。當第一標誌(等於1)指示未使用四分之一亮度樣點MV精度時,信令通知另一個標誌,以指示是否使用整數亮度樣點MV精度或四個亮度樣點MV精度。For a CU with at least one non-zero MVD component, the first flag is signaled to indicate whether to use a quarter luminance sample MV accuracy in the CU. When the first flag (equal to 1) indicates that the quarter brightness sample MV precision is not used, another flag is signaled to indicate whether to use integer brightness sample MV precision or four brightness sample MV precision.

當CU的第一MVD解析度標誌為零,或未針對CU編碼(意味著CU中的所有MVD均為零)時,四分之一亮度樣點MV解析度被用於該CU。當CU使用整數亮度樣點MV精度或四個亮度樣點MV精度時,該CU的AMVP候選列表中的MVP被取整到對應的精度。When the CU's first MVD resolution flag is zero, or is not coded for the CU (meaning that all MVDs in the CU are zero), the quarter brightness sample MV resolution is used for the CU. When the CU uses integer luminance sample MV accuracy or four luminance sample MV accuracy, the MVP in the AMVP candidate list of the CU is rounded to the corresponding accuracy.

在編碼器中,使用CU級別RD校驗來確定將哪個MVD解析度將用於CU。換言之,對於每個MVD解析度,執行CU級RD校驗三次。為了加快編碼器速度,在JEM中應用以下編碼方案。 •     在具有正常四分之一亮度樣點MVD解析度的CU的RD校驗期間,存儲該當前CU的運動資訊(整數亮度樣點精度)。對於具有整數亮度樣點和4個亮度樣點MVD解析度的相同CU,存儲的運動資訊(取整後)被用作RD校驗期間進一步小範圍運動向量細化的起點,使得耗時的運動估計過程不重複三次。 •     有條件地調用具有4個亮度樣點MVD解析度的CU的RD校驗。對於CU,當整數亮度樣點MVD解析度的RD成本遠大於四分之一亮度樣點MVD解析度的RD成本時,跳過該CU的4個亮度樣點MVD解析度的RD校驗。2.2.2 較高的運動向量存儲精度 In the encoder, a CU level RD check is used to determine which MVD resolution will be used for the CU. In other words, for each MVD resolution, a CU level RD check is performed three times. In order to speed up the encoder, the following encoding scheme is applied in JEM. • During the RD check of a CU with a normal quarter-luminance sample MVD resolution, store the current CU motion information (integer luminance sample accuracy). For the same CU with integer brightness samples and MVD resolution of 4 brightness samples, the stored motion information (after rounding) is used as the starting point for further small-scale motion vector refinement during RD verification, making time-consuming motion The estimation process is not repeated three times. • Conditionally call the RD check of the CU with 4 brightness samples MVD resolution. For the CU, when the RD cost of the MVD resolution of the integer brightness samples is much greater than the RD cost of the MVD resolution of the quarter brightness samples, the RD check of the MVD resolution of the 4 brightness samples of the CU is skipped. 2.2.2 Higher motion vector storage accuracy

在HEVC中,運動向量精度是四分之一圖元(pel)(用於4:2:0視頻的四分之一亮度樣點和八分之一色度樣點)。在JEM中,內部運動向量存儲和Merge候選的準確度增加到1/16圖元。較高的運動向量精度(1/16圖元)用於以跳過模式/Merge模式編碼的CU的運動補償幀間預測。對於使用正常AMVP模式編碼的CU,使用整數圖元或四分之一圖元運動,如小節2.2.1所述。In HEVC, the accuracy of motion vectors is a quarter of a pixel (pel) (for quarter brightness samples and eighth chrominance samples for 4:2:0 video). In JEM, the accuracy of internal motion vector storage and Merge candidates is increased to 1/16 primitive. Higher motion vector accuracy (1/16 picture element) is used for motion-compensated inter prediction of CUs encoded in skip mode/Merge mode. For CUs encoded in normal AMVP mode, integer primitive or quarter primitive motion is used, as described in section 2.2.1.

具有與HEVC運動補償插值濾波器相同的濾波器長度和歸一化因數的SHVC上採樣插值濾波器,被用作附加分數圖元位置的運動補償插值濾波器。在JEM中色度分量運動向量精度是1/32樣點,通過使用兩個相鄰1/16圖元分數位置的濾波器的平均值,來匯出1/32圖元分數位置的附加插值濾波器。2.2.3 局部亮度補償 The SHVC upsampling interpolation filter with the same filter length and normalization factor as the HEVC motion compensation interpolation filter is used as the motion compensation interpolation filter with additional fractional primitive positions. The accuracy of the chrominance component motion vector in JEM is 1/32 samples. By using the average value of the filters of two adjacent 1/16 primitive fractional positions, additional interpolation filtering of 1/32 primitive fractional positions is derived. Device. 2.2.3 Local brightness compensation

局部亮度補償(LIC)基於用於亮度變化的線性模型,使用縮放因數a 和偏移b 。並且,針對每個幀間模式編碼的編碼單元(CU)自我調整地啟用或禁用LIC。Local brightness compensation (LIC) is based on a linear model for brightness changes, using a scaling factor a and an offset b . And, the coding unit (CU) coded for each inter mode self-adjusts to enable or disable LIC.

當LIC應用于CU時,採用最小平方誤差方法,通過使用當前CU的相鄰樣點及其對應的參考樣點來匯出參數ab 。更具體地,如圖10所示,使用了該CU的子採樣(2:1子採樣)的相鄰樣點和參考圖像中的對應樣點(其由當前CU或子CU的運動資訊識別)。IC參數被匯出並被分別應用於每個預測方向。When the LIC is applied to the CU, the least square error method is adopted, and the parameters a and b are derived by using the neighboring samples of the current CU and their corresponding reference samples. More specifically, as shown in FIG. 10, the adjacent samples of the sub-sampling (2:1 sub-sampling) of the CU and the corresponding samples in the reference image (which are identified by the motion information of the current CU or sub-CU ). The IC parameters are exported and applied to each prediction direction separately.

當使用Merge模式對CU進行編碼時,以類似於Merge模式中的運動資訊複製的方式從相鄰塊複製LIC標誌;否則,向該CU信令通知LIC標誌以指示LIC是否適用。When encoding the CU using the Merge mode, the LIC flag is copied from the adjacent block in a manner similar to the motion information copying in the Merge mode; otherwise, the CU flag is signaled to the CU to indicate whether the LIC is applicable.

當對圖像啟用LIC時,需要附加的CU級別RD校驗以確定是否對CU應用LIC。當對CU啟用LIC時,分別對整數圖元運動搜索和分數圖元運動搜索,使用均值移除的絕對差和(mean-removed sum of absolute diffefference,MR-SAD)以及均值移除的絕對哈達瑪變換差和(mean-removed sum of absolute Hadamard-transformed difference,MR-SATD),而不是SAD和SATD。When LIC is enabled for an image, an additional CU level RD check is required to determine whether to apply LIC to the CU. When LIC is enabled for CU, use integer-memory-removed sum of absolute diffefference (MR-SAD) and mean-removed absolute Hadamard for integer primitive motion search and fractional primitive motion search respectively The mean-removed sum of absolute Hadamard-transformed difference (MR-SATD) is not SAD and SATD.

為了降低編碼複雜度,在JEM中應用以下編碼方案。In order to reduce the coding complexity, the following coding scheme is applied in JEM.

當當前圖像與其參考圖像之間不存在明顯的亮度變化時,對整個圖像禁用LIC。為了識別這種情況,在編碼器處,計算當前圖像與該當前圖像的每個參考圖像的長條圖。如果當前圖像與該當前圖像的每個參考圖像之間的長條圖差異小於給定閾值,則對當前圖像禁用LIC;否則,對當前圖像啟用LIC。2.2.4 仿射運動補償預測 When there is no obvious brightness change between the current image and its reference image, LIC is disabled for the entire image. To identify this situation, at the encoder, a histogram of the current picture and each reference picture of the current picture is calculated. If the histogram difference between the current image and each reference image of the current image is less than a given threshold, LIC is disabled for the current image; otherwise, LIC is enabled for the current image. 2.2.4 Affine motion compensation prediction

在HEVC中,僅將平移運動模型應用於運動補償預測(MCP)。而在現實世界中,存在許多種運動,例如放大/縮小、旋轉、透視運動和其他不規則的運動。在JEM中,應用簡化的仿射變換運動補償預測。如圖11所示,塊的仿射運動場由兩個控制點運動向量描述。In HEVC, only translational motion models are applied to motion compensated prediction (MCP). In the real world, there are many kinds of movement, such as zoom in/out, rotation, perspective movement, and other irregular movements. In JEM, simplified affine transformation motion compensation prediction is applied. As shown in Fig. 11, the affine motion field of the block is described by two control point motion vectors.

塊的運動向量場(MVF)由以下等式描述:

Figure 02_image001
(1) 其中(v0x ,v0y )是左頂角控制點的運動向量,(v1x ,v1y )是右頂角控制點的運動向量。The motion vector field (MVF) of the block is described by the following equation:
Figure 02_image001
(1) where ( v 0x , v 0y ) is the motion vector of the left top corner control point, and ( v 1x , v 1y ) is the motion vector of the right top corner control point.

為了進一步簡化運動補償預測,應用基於子塊的仿射變換預測。子塊尺寸

Figure 02_image004
如等式(2)。中匯出,其中MvPre 是運動向量分數精度(在JEM中為1/16),(v2x ,v2y )是左下控制點的運動向量,根據等式(1)計算。
Figure 02_image006
(2)In order to further simplify motion compensation prediction, sub-block-based affine transformation prediction is applied. Subblock size
Figure 02_image004
Such as equation (2). Exported in, where MvPre is the motion vector fractional accuracy (1/16 in JEM), ( v 2x , v 2y ) is the motion vector of the lower left control point, calculated according to equation (1).
Figure 02_image006
(2)

在由等式(2)匯出之後,如果需要,應該向下調整M和N,以使其分別為w和h的除數。After exporting from equation (2), if necessary, M and N should be adjusted downwards so that they are the divisors of w and h, respectively.

如圖12所示,為了匯出每個M×N子塊的運動向量,根據等式(1)計算每個子塊的中心樣點的運動向量並將其取整至1/16分數精度。然後,應用運動補償插值濾波器,以利用匯出的運動向量生成每個子塊的預測。As shown in FIG. 12, in order to derive the motion vector of each M×N sub-block, the motion vector of the center sample of each sub-block is calculated according to equation (1) and rounded to 1/16 fractional accuracy. Then, a motion compensation interpolation filter is applied to generate the prediction of each sub-block using the exported motion vector.

在MCP之後,每個子塊的高精度運動向量以與正常運動向量相同的精度被取整並保存。After the MCP, the high-precision motion vector of each sub-block is rounded and saved with the same precision as the normal motion vector.

在JEM中,存在兩種仿射運動模式:AF_INTER模式和AF_MERGE模式。對於寬度和高度均大於8的CU,可以應用AF_INTER模式。在位元流中信令通知CU級別的仿射標誌,以指示是否使用AF_INTER模式。在此模式下,使用相鄰塊構建具有運動向量對

Figure 02_image008
的候選列表。如圖13所示,從塊A、B或C的運動向量中選擇
Figure 02_image010
。來自相鄰塊的運動向量根據參考清單以及根據相鄰塊的參考的POC、當前CU的參考的POC和當前CU的POC之間的關係來縮放。並且從相鄰塊D和E中選擇
Figure 02_image012
的方法是類似的。如果候選列表的數量小於2,則由通過重複每個AMVP候選而構建的運動向量對來填充該列表。當候選清單大於2時,首先根據相鄰運動向量的一致性(候選對中的兩個運動向量的相似性)對候選進行分類,並且僅保留前兩個候選。RD成本校驗用於確定選擇哪個運動向量對候選作為當前CU的控制點運動向量預測(CPMVP)。並且,在位元流中信令通知指示候選列表中的CPMVP的位置的索引。在確定當前仿射CU的CPMVP之後,應用仿射運動估計,並找到控制點運動向量(CPMV)。然後在位元流中信令通知CPMV與CPMVP的差異。In JEM, there are two affine motion modes: AF_INTER mode and AF_MERGE mode. For CUs with a width and height greater than 8, the AF_INTER mode can be applied. The CU-level affine flag is signaled in the bit stream to indicate whether to use AF_INTER mode. In this mode, use neighboring blocks to construct pairs with motion vectors
Figure 02_image008
Candidate list. As shown in Figure 13, choose from the motion vectors of block A, B or C
Figure 02_image010
. The motion vectors from adjacent blocks are scaled according to the reference list and the relationship between the referenced POC of the adjacent block, the referenced POC of the current CU, and the current CU. And choose from neighboring blocks D and E
Figure 02_image012
The method is similar. If the number of candidate lists is less than 2, the list is populated by the pair of motion vectors constructed by repeating each AMVP candidate. When the candidate list is greater than 2, the candidates are first classified according to the consistency of the adjacent motion vectors (similarity of the two motion vectors in the candidate pair), and only the first two candidates are retained. The RD cost check is used to determine which motion vector pair is selected as the control point motion vector prediction (CPMVP) of the current CU. And, an index indicating the position of CPMVP in the candidate list is signaled in the bit stream. After determining the CPMVP of the current affine CU, apply affine motion estimation and find the control point motion vector (CPMV). The difference between CPMV and CPMVP is then signaled in the bit stream.

當在AF_MERGE模式中應用CU時,它從有效的相鄰重建塊獲得使用仿射模式編碼的第一塊。如圖14A所示,並且對於候選塊的選擇順序是從左方、上方、右上方、左下方到左上方。如圖14B所示,如果相鄰左下塊A以仿射模式編碼,則匯出包含塊A的CU的左頂角、右上角和左底角的運動向量

Figure 02_image014
Figure 02_image016
Figure 02_image018
。並且根據
Figure 02_image014
Figure 02_image016
Figure 02_image018
來計算當前CU的左頂角的運動向量
Figure 02_image010
。其次,計算當前CU的右上方的運動向量
Figure 02_image012
。When the CU is applied in the AF_MERGE mode, it obtains the first block encoded using the affine mode from valid neighboring reconstruction blocks. As shown in FIG. 14A, and the selection order for the candidate blocks is from left, above, right above, below left to above left. As shown in FIG. 14B, if the adjacent lower left block A is encoded in affine mode, the motion vectors of the top left corner, top right corner, and bottom left corner of the CU containing the block A are exported
Figure 02_image014
,
Figure 02_image016
with
Figure 02_image018
. And according to
Figure 02_image014
,
Figure 02_image016
with
Figure 02_image018
To calculate the motion vector of the top left corner of the current CU
Figure 02_image010
. Second, calculate the motion vector at the upper right of the current CU
Figure 02_image012
.

在匯出當前CU的CPMV

Figure 02_image010
Figure 02_image012
之後,根據簡化的仿射運動模型等式(1),生成該當前CU的MVF。為了識別當前CU是否使用AF_MERGE模式編碼,當存在至少一個相鄰塊以仿射模式編碼時,在位元流中信令通知仿射標誌。2.2.5 模式匹配的運動向量推導 Export the CPMV of the current CU
Figure 02_image010
with
Figure 02_image012
After that, according to the simplified affine motion model equation (1), the MVF of the current CU is generated. In order to identify whether the current CU uses the AF_MERGE mode encoding, when there is at least one adjacent block encoded in the affine mode, the affine flag is signaled in the bit stream. 2.2.5 Motion vector derivation of pattern matching

模式匹配的運動向量推導(Pattern matched motion vector derivation, PMMVD)模式是一種基於畫面播放速率上轉換(Frame-Rate Up Conversion, FRUC)技術的特殊Merge模式。使用該模式,塊的運動資訊不被信令通知,而是在解碼器側匯出。Pattern matched motion vector derivation (PMMVD) mode is a special Merge mode based on Frame-Rate Up Conversion (FRUC) technology. With this mode, the motion information of the block is not signaled, but is exported on the decoder side.

當CU的Merge標誌為真時,向該CU信令通知FRUC標誌。當FRUC標誌為假時,信令通知Merge索引,並使用常規Merge模式。當FRUC標誌為真時,信令通知附加的FRUC模式標誌以指示將使用哪種方法(雙邊匹配或範本匹配)來匯出該塊的運動資訊。When the CU's Merge flag is true, the CU is signaled to notify the FRUC flag. When the FRUC flag is false, the Merge index is signaled and the normal Merge mode is used. When the FRUC flag is true, the additional FRUC mode flag is signaled to indicate which method (bilateral matching or template matching) will be used to export the motion information of the block.

在編碼器側,關於是否對CU使用FRUC Merge模式的決定是基於如對正常Merge候選那樣所做的RD成本選擇。換言之,通過使用RD成本選擇來校驗CU的兩種匹配模式(雙邊匹配和範本匹配)。導致最小成本的匹配模式與其他CU模式進一步比較。如果FRUC匹配模式是最有效的模式,則對於CU將FRUC標誌設置為真,並且使用有關匹配模式。On the encoder side, the decision about whether to use the FRUC Merge mode for the CU is based on the RD cost selection made as for the normal Merge candidate. In other words, two matching modes (bilateral matching and template matching) of the CU are verified by using RD cost selection. The matching mode that results in the smallest cost is further compared with other CU modes. If the FRUC matching mode is the most effective mode, the FRUC flag is set to true for the CU, and the relevant matching mode is used.

FRUC Merge模式中的運動推導過程有兩個步驟。首先執行CU級別運動搜索,接下來執行子CU級別運動細化。在CU級別,基於雙邊匹配或範本匹配為整個CU匯出初始運動向量。首先,生成MV候選列表,並且選擇導致最小匹配成本的候選作為進一步CU級別細化的起點。然後,圍繞起始點執行基於雙邊匹配或範本匹配的局部搜索,並且將導致最小匹配成本的MV作為整個CU的MV。隨後,運動資訊在子CU級別進一步細化,其中匯出的CU運動向量作為起點。The motion derivation process in FRUC Merge mode has two steps. CU-level motion search is performed first, followed by sub-CU-level motion refinement. At the CU level, the initial motion vector is exported for the entire CU based on bilateral matching or template matching. First, a MV candidate list is generated, and the candidate that results in the smallest matching cost is selected as the starting point for further CU level refinement. Then, a local search based on bilateral matching or template matching is performed around the starting point, and the MV that results in the smallest matching cost is taken as the MV of the entire CU. Subsequently, the motion information is further refined at the sub-CU level, where the exported CU motion vector is used as a starting point.

例如,針對

Figure 02_image020
CU運動資訊推導執行以下推導處理。在第一階段,匯出整體
Figure 02_image020
CU的MV。在第二階段,CU進一步劃分為
Figure 02_image022
子CU。如(3)中計算
Figure 02_image024
的值,
Figure 02_image026
是預定義的劃分深度,其在JEM中默認設置為3。然後匯出每個子CU的MV。
Figure 02_image028
}                        (3)For example, for
Figure 02_image020
The CU motion information derivation performs the following derivation processing. In the first stage, export the whole
Figure 02_image020
CU's MV. In the second stage, CU is further divided into
Figure 02_image022
Sub CU. As calculated in (3)
Figure 02_image024
'S value,
Figure 02_image026
It is a predefined division depth, which is set to 3 by default in JEM. Then export the MV of each sub-CU.
Figure 02_image028
} (3)

如圖15所示,雙邊匹配用於通過在兩個不同參考圖像中沿當前CU的運動軌跡找到兩個塊之間的最接近匹配,來匯出當前CU的運動資訊。在連續運動軌跡的假設下,指向兩個參考塊的運動向量MV0和MV1應當與在當前圖像和兩個參考圖像之間的時間距離——即TD0和TD1——成比例。作為特殊情況,當當前圖像在時間上在兩個參考圖像之間並且從當前圖像到兩個參考圖像的時間距離相同時,雙邊匹配變為基於鏡像的雙向MV。As shown in FIG. 15, bilateral matching is used to derive the motion information of the current CU by finding the closest match between the two blocks along the motion trajectory of the current CU in two different reference images. Under the assumption of continuous motion trajectories, the motion vectors MV0 and MV1 pointing to the two reference blocks should be proportional to the time distance between the current picture and the two reference pictures, namely TD0 and TD1. As a special case, when the current image is temporally between two reference images and the time distance from the current image to the two reference images is the same, bilateral matching becomes a mirror-based bidirectional MV.

如圖16所示,範本匹配用於通過找到在當前圖像中的範本(當前CU的頂部相鄰塊和/或左方相鄰塊)與參考圖像中的塊(具有與範本相同的尺寸)之間的最接近匹配,來匯出當前CU的運動資訊。除了上述FRUC Merge模式之外,範本匹配也適用於AMVP模式。在JEM中,如在HEVC中一樣,AMVP有兩個候選。使用範本匹配方法,匯出新的候選。如果由範本匹配的新匯出的候選與第一現有AMVP候選不同,則將其插入AMVP候選列表的最開始,並且然後將列表尺寸設置為2(這意味著移除第二現有AMVP候選)。當應用于AMVP模式時,僅應用CU級別搜索。2.2.5.1 CU 級別 MV 候選集合 As shown in Figure 16, template matching is used to find the template in the current image (the top adjacent block and/or the left adjacent block in the current CU) and the block in the reference image (having the same size as the template) The closest match between them to export the current CU sports information. In addition to the above FRUC Merge mode, template matching is also applicable to AMVP mode. In JEM, as in HEVC, AMVP has two candidates. Use the template matching method to export new candidates. If the newly exported candidate matched by the template is different from the first existing AMVP candidate, it is inserted at the very beginning of the AMVP candidate list, and then the list size is set to 2 (this means that the second existing AMVP candidate is removed). When applied to AMVP mode, only CU level search is applied. 2.2.5.1 CU level MV candidate set

CU級別的MV候選集合由以下組成: (i)   如果當前CU處於AMVP模式,則為原始AMVP候選, (ii) 所有Merge候選, (iii)    插值MV域中的數個MV, (iv)     頂部和左方相鄰的運動向量。The CU level MV candidate set consists of the following: (i) If the current CU is in AMVP mode, it is the original AMVP candidate, (ii) All Merge candidates, (iii) Interpolate several MVs in the MV domain, (iv) The motion vector adjacent to the top and left.

當使用雙邊匹配時,Merge候選的每個有效MV被用作輸入,以在假設雙邊匹配的情況下生成MV對。例如,Merge候選的一個有效MV是在參考列表A中的(MVa,refa)。然後,在其他參考列表B中找到其配對雙邊MV的參考圖像refb,使得refa和refb在時間上位於當前圖片的不同側。如果參考列表B中這樣的refb不可用,則refb被確定為與refa不同的參考,並且refb到當前圖像的時間距離是清單B中的最小值。在確定refb之後,基於當前圖像與refa、refb之間的時間距離通過縮放MVa來匯出MVb。When bilateral matching is used, each valid MV of the Merge candidate is used as an input to generate MV pairs assuming bilateral matching. For example, a valid MV of the Merge candidate is in the reference list A (MVa, refa). Then, the reference image refb of its paired bilateral MV is found in the other reference list B, so that refa and refb are located on different sides of the current picture in time. If such a refb in the reference list B is not available, the refb is determined to be a different reference than the refa, and the time distance of the refb to the current image is the minimum value in the list B. After determining refb, MVb is exported by scaling MVa based on the time distance between the current image and refa, refb.

來自插值MV域的四個MV也被添加到CU級別候選列表。更具體地,添加當前CU的位置(0, 0)、(W/2, 0)、(0, H/2)和(W/2, H/2)處的插值MV。The four MVs from the interpolation MV domain are also added to the CU level candidate list. More specifically, the interpolation MV at the positions (0, 0), (W/2, 0), (0, H/2), and (W/2, H/2) of the current CU is added.

當FRUC應用于AMVP模式時,原始AMVP候選也被添加到CU級別MV候選集合。When FRUC is applied in AMVP mode, the original AMVP candidate is also added to the CU level MV candidate set.

在CU級別,用於AMVP CU的最多15個MV、用於Merge CU的最多13個MV被添加到候選列表。2.2.5.2 CU 級別 MV 候選集合 At the CU level, a maximum of 15 MVs for AMVP CU and a maximum of 13 MVs for Merge CU are added to the candidate list. 2.2.5.2 Sub- CU level MV candidate set

子CU級別的MV候選集合由以下組成: (i)   從CU級別搜索確定的MV, (ii) 頂部、左方、左頂和右頂的相鄰MV, (iii)    來自參考圖像的並列MV的縮放版本, (iv)     最多4個ATMVP候選, (v) 最多4個STMVP候選。The MV candidate set at the sub-CU level consists of the following: (i) Search the determined MV from the CU level, (ii) Adjacent MVs at the top, left, top and right, (iii) A scaled version of the parallel MV from the reference image, (iv) Up to 4 ATMVP candidates, (v) Up to 4 STMVP candidates.

來自參考圖像的縮放MV如下匯出。遍歷兩個清單中的所有參考圖像。參考圖像中的子CU的並列位置處的MV被縮放到起始CU級別MV的參考。The scaled MV from the reference image is exported as follows. Iterate through all the reference images in the two lists. The MV at the parallel position of the sub-CUs in the reference image is scaled to the reference of the starting CU level MV.

ATMVP和STMVP候選僅限於前四個。ATMVP and STMVP candidates are limited to the first four.

在子CU級別,最多17個MV被添加到候選列表中。2.2.5.3 插值 MV 域的生成 At the sub-CU level, a maximum of 17 MVs are added to the candidate list. 2.2.5.3 Generation of interpolated MV domain

在對幀進行編碼之前,基於單邊ME為整個圖像生成插值運動域。然後,運動域可以稍後用作CU級別或子CU級別MV候選。Before encoding the frame, an interpolated motion domain is generated for the entire image based on the single-sided ME. The motion domain can then be used as a CU level or sub-CU level MV candidate later.

首先,兩個參考清單中的每個參考圖像的運動域以4×4塊級別遍歷。對於每個4×4塊,如果與塊相關聯的運動通過當前圖像中的4×4塊(如圖17所示)並且該塊尚未被分配任何插值運動,則參考塊的運動根據時間距離TD0和TD1(與HEVC中的TMVP的MV縮放的方式相同的方式)縮放到當前圖像,並且將縮放的運動分配給當前幀中的塊。如果無縮放的MV被分配到4×4塊,則在插值的運動域中將塊的運動標記為不可用。2.2.5.4 插值和匹配成本 First, the motion domain of each reference image in the two reference lists is traversed at the 4×4 block level. For each 4×4 block, if the motion associated with the block passes through the 4×4 block in the current image (as shown in FIG. 17) and the block has not been assigned any interpolation motion, the motion of the reference block is based on the temporal distance TD0 and TD1 (the same way as the MV scaling of TMVP in HEVC) scale to the current image, and the scaled motion is assigned to the block in the current frame. If the unscaled MV is assigned to a 4x4 block, the motion of the block is marked as unavailable in the interpolated motion domain. 2.2.5.4 Interpolation and matching costs

當運動向量指向分數樣點位置時,需要運動補償插值。為了降低複雜性,雙邊匹配和範本匹配都使用雙線性插值而不是常規的8抽頭HEVC插值。When the motion vector points to the position of the fractional sample point, motion compensation interpolation is required. To reduce complexity, both bilateral matching and template matching use bilinear interpolation instead of the conventional 8-tap HEVC interpolation.

匹配成本的計算在不同的步驟有點不同。當從CU級別的候選集合中選擇候選時,匹配成本是雙邊匹配或範本匹配的絕對差值和(SAD)。在確定起始MV之後,如下計算子CU級別搜索的雙邊匹配的匹配成本

Figure 02_image030
Figure 02_image032
(4) 其中
Figure 02_image034
是一個加權因數,且根據經驗設置為4,
Figure 02_image036
Figure 02_image038
分別指示當前MV和起始MV。SAD仍用作子CU級別搜索的範本匹配的匹配成本。The calculation of matching costs is a bit different in different steps. When selecting candidates from the CU-level candidate set, the matching cost is the sum of absolute differences (SAD) of bilateral matching or template matching. After the starting MV is determined, the matching cost of the bilateral matching for sub-CU level search is calculated as follows
Figure 02_image030
:
Figure 02_image032
(4) where
Figure 02_image034
Is a weighting factor and is set to 4 according to experience,
Figure 02_image036
with
Figure 02_image038
Indicate the current MV and the start MV respectively. SAD is still used as the matching cost of template matching for sub-CU level search.

在FRUC模式中,MV通過僅使用亮度樣點匯出。匯出的運動將用於MC幀間預測的亮度和色度。在確定MV之後,使用用於亮度的8抽頭插值濾波器和用於色度的4抽頭插值濾波器來執行最終MC。2.2.5.5 MV 細化 In the FRUC mode, MV is exported by using only luminance samples. The exported motion will be used for the luma and chroma of MC inter prediction. After determining the MV, the final MC is performed using an 8-tap interpolation filter for luma and a 4-tap interpolation filter for chroma. 2.2.5.5 MV refinement

MV細化是以雙邊匹配成本或範本匹配成本為準則的基於模式的MV搜索。在JEM中,支援兩種搜索模式——分別用於CU級別和子CU級別的MV細化的無限制的中心偏置菱形搜索(unrestricted center-biased diamond search,UCBDS)和自我調整交叉搜索(adaptive cross search)。對於CU級別和子CU級別MV細化,以四分之一亮度樣點MV精度直接搜索MV,並且接下來以八分之一亮度樣點MV細化。對於CU步驟和子CU步驟的MV細化的搜索範圍被設置為等於8個亮度樣點。2.2.5.6 範本匹配 FRUC Merge 模式中預測方向的選擇 MV refinement is a pattern-based MV search based on the criteria of bilateral matching cost or template matching cost. In JEM, two search modes are supported-unrestricted center-biased diamond search (UCBDS) and adaptive cross search (adaptive cross search) for MV-level and sub-CU-level MV refinement search). For CU-level and sub-CU-level MV refinement, the MV is directly searched with 1/4 brightness sample point MV accuracy, and then VIII refinement sample point MV refinement. The search range for MV refinement for the CU step and the sub-CU step is set equal to 8 luminance samples. 2.2.5.6 Template matching FRUC Merge mode prediction direction selection

在雙邊匹配Merge模式中,始終應用雙向預測,因為基於在兩個不同參考圖像中沿當前CU的運動軌跡的兩個塊之間的最接近匹配來匯出CU的運動資訊。範本匹配Merge模式不存在這樣的限制。在範本匹配Merge模式中,編碼器可以在針對CU的來自列表0的單向預測、來自列表1的單向預測或者雙向預測之中進行選擇。選擇基於範本匹配成本,如下: 如果costBi >= factor * min (cost 0,cost1 ) 使用雙向預測; 否則,如果cost 0 >=cost1 使用來自列表0的單向預測; 否則, 使用來自列表1的單向預測; 其中cost0是清單0範本匹配的SAD,cost1是清單1範本匹配的SAD,costBi是雙向預測範本匹配的SAD。factor 的值等於1.25,這意味著選擇過程偏向於雙向預測。In the bilateral matching Merge mode, bidirectional prediction is always applied because the CU motion information is derived based on the closest match between two blocks along the motion trajectory of the current CU in two different reference images. Template matching Merge mode does not have such restrictions. In the template matching Merge mode, the encoder can choose among unidirectional prediction from list 0, unidirectional prediction from list 1, or bidirectional prediction for the CU. Choose the matching cost based on the template as follows: if costBi >= factor * min ( cost 0, cost1 ) use bidirectional prediction; otherwise, if cost 0 >= cost1 use unidirectional prediction from list 0; otherwise, use the list from list 1 Prediction; where cost0 is the SAD matched by the template in list 0, cost1 is the SAD matched by the template in list 1, and costBi is the SAD matched by the bidirectional prediction template. The value of factor is equal to 1.25, which means that the selection process is biased towards two-way prediction.

幀間預測方向選擇僅應用於CU級別範本匹配過程。2.2.6 解碼器側運動向量細化 The inter prediction direction selection is only applied to the CU level template matching process. 2.2.6 Refinement of motion vector on decoder side

在雙向預測操作中,為了預測一個塊區域,分別使用清單0的運動向量(MV)和列表1的MV形成的兩個預測塊被組合以形成單個預測信號。在解碼器側運動向量細化(DMVR)方法中,雙向預測的兩個運動向量通過雙邊範本匹配過程進一步細化。雙邊範本匹配應用於解碼器中,以在雙邊範本和參考圖像中的重建樣點之間執行基於失真的搜索,以便在不傳輸附加的運動資訊的情況下獲得細化的MV。In the bidirectional prediction operation, in order to predict one block region, two prediction blocks formed using the motion vector (MV) of list 0 and the MV of list 1 are combined to form a single prediction signal. In the decoder-side motion vector refinement (DMVR) method, the two motion vectors for bidirectional prediction are further refined through a bilateral template matching process. Bilateral template matching is applied in the decoder to perform a distortion-based search between the bilateral template and the reconstructed samples in the reference image in order to obtain a refined MV without transmitting additional motion information.

如圖18所示,在DMVR中,分別從列表0的初始MV0和列表1的MV1生成雙邊範本,作為兩個預測塊的加權組合(即平均)。範本匹配操作包括計算生成的範本與參考圖像中的樣點區域(在初始預測塊周圍)之間的成本度量。對於兩個參考圖像中的每一個,產生最小範本成本的MV被視為該列表的更新MV以替換原始範本。在JEM中,對於每個列表,搜索九個MV候選。該九個MV候選包括原始MV和8個周圍MV,其中一個亮度樣點在水準或垂直方向上或在兩個方向上偏移到原始MV。最後,如圖18所示,兩個新的MV,即MV0'和MV1',被用於生成最終的雙向預測結果。絕對差值和(SAD)用作成本度量。請注意,當計算由一個周圍MV生成的預測塊的成本時,實際上使用取整的MV(到整數圖元)而不是真實MV來獲得預測塊。As shown in FIG. 18, in the DMVR, a bilateral template is generated from the initial MV0 of list 0 and MV1 of list 1, respectively, as a weighted combination (ie, average) of two prediction blocks. The template matching operation includes calculating the cost metric between the generated template and the sample area (around the initial prediction block) in the reference image. For each of the two reference images, the MV that produces the smallest template cost is considered the updated MV of the list to replace the original template. In JEM, for each list, nine MV candidates are searched. The nine MV candidates include the original MV and 8 surrounding MVs, one of which is shifted to the original MV in the horizontal or vertical direction or in both directions. Finally, as shown in Figure 18, two new MVs, MV0' and MV1', are used to generate the final bidirectional prediction result. The sum of absolute differences (SAD) is used as a cost metric. Please note that when calculating the cost of a prediction block generated by a surrounding MV, the rounded MV (to an integer primitive) is actually used instead of the real MV to obtain the prediction block.

DMVR被應用於雙向預測的Merge模式,在不傳輸附加的語法元素的情況下使用來自過去的參考圖像中的一個MV和來自將來的參考圖像中的另一個MV。在JEM中,當為CU啟用LIC、仿射運動、FRUC或子CU Merge候選時,不應用DMVR。2.3 非相鄰 Merge 候選 DMVR is applied to the Merge mode of bidirectional prediction, using one MV from a reference image in the past and another MV from a reference image in the future without transmitting additional syntax elements. In JEM, when LIC, affine motion, FRUC, or sub-CU Merge candidates are enabled for the CU, DMVR is not applied. 2.3 Non-adjacent Merge candidates

在J0021中,高通建議從非相鄰的相鄰位置匯出附加的空間Merge候選,這些非相鄰的相鄰位置被標記為6至49,如圖19所示。在Merge候選列表中的TMVP候選之後添加匯出的候選。In J0021, Qualcomm recommends that additional spatial Merge candidates are pooled from non-adjacent adjacent locations. These non-adjacent adjacent locations are marked as 6 to 49, as shown in Figure 19. The exported candidates are added after the TMVP candidates in the Merge candidate list.

在J0058中,騰訊建議從外部參考區域中的位置匯出附加的空間Merge候選,該外部參考區域到當前塊的偏移為(-96, -96)。In J0058, Tencent suggested to export additional spatial Merge candidates from the position in the external reference area, the offset of the external reference area from the current block is (-96, -96).

如圖20所示,位置標記為A(i,j)、B(i,j)、C(i,j)、D(i,j)和E(i,j)。與其先前的B或C候選相比,每個候選B(i, j)或C(i, j)在垂直方向上具有16的偏移。與其先前的A或D候選相比,每個候選A(i, j)或D(i, j)在水準方向上具有16的偏移。與其先前的E候選相比,每個E (i, j)在水準方向和垂直方向上具有16的偏移。候選從內到外進行校驗。並且候選的順序是A(i, j)、B(i, j)、C(i, j)、D(i, j)和E(i, j)。進一步研究Merge候選的數量是否可以進一步減少。在Merge候選列表中的TMVP候選之後添加候選。As shown in FIG. 20, the position markers are A(i,j), B(i,j), C(i,j), D(i,j), and E(i,j). Compared to its previous B or C candidate, each candidate B(i, j) or C(i, j) has an offset of 16 in the vertical direction. Compared with its previous A or D candidate, each candidate A(i, j) or D(i, j) has an offset of 16 in the horizontal direction. Compared to its previous E candidates, each E (i, j) has an offset of 16 in the horizontal and vertical directions. Candidates are checked from the inside out. And the order of candidates is A(i, j), B(i, j), C(i, j), D(i, j), and E(i, j). Further study whether the number of Merge candidates can be further reduced. Add candidates after TMVP candidates in the Merge candidate list.

在J0059中,根據時間候選之後的數位順序校驗如圖21中的從6到27的擴展空間位置。為了保存MV線緩衝區,所有空間候選都被限制在兩個CTU線內。2.4 相關方法 In J0059, the extended space positions from 6 to 27 in FIG. 21 are checked according to the order of digits after the time candidate. In order to save the MV line buffer, all spatial candidates are limited to two CTU lines. 2.4 Related methods

在J0024中的終極運動向量表達(ultimate motion vector expression,UMVE)可以是跳過模式或直接(或Merge)模式,其使用所建議的使用相鄰運動資訊的運動向量表達方法。作為HEVC中的跳過模式和Merge模式,UMVE還根據相鄰的運動資訊製作候選清單。在列表中的那些候選中,選擇MV候選並通過新的運動向量表達方法對該MV候選進行進一步擴展。The ultimate motion vector expression (UMVE) in J0024 can be skip mode or direct (or merge) mode, which uses the proposed motion vector expression method using adjacent motion information. As the skip mode and Merge mode in HEVC, UMVE also makes a candidate list based on adjacent motion information. Among those candidates in the list, the MV candidate is selected and further expanded by the new motion vector expression method.

圖22示出了UMVE搜索過程的示例,並且圖23示出了UMVE搜索點的示例。FIG. 22 shows an example of the UMVE search process, and FIG. 23 shows an example of the UMVE search point.

UMVE提供了具有簡化信令的新的運動向量表達。該表達方法包括起點、運動幅度和運動方向。UMVE provides a new motion vector representation with simplified signaling. The expression method includes a starting point, a movement amplitude and a movement direction.

基礎候選索引定義了起點。基礎候選索引如下指示在清單中的候選中的最佳候選。

Figure 108123171-A0304-0001
The base candidate index defines the starting point. The basic candidate index indicates the best candidate among the candidates in the list as follows.
Figure 108123171-A0304-0001

距離索引是運動幅度資訊。距離索引指示距離起點資訊的預定義距離。該預定義距離如下所示(表格中pel表示圖元)。

Figure 108123171-A0304-0002
The distance index is motion amplitude information. The distance index indicates a predefined distance from the starting point information. The predefined distance is shown below (pel in the table represents the primitive).
Figure 108123171-A0304-0002

方向索引表示MVD相對於起點的方向。該方向索引可以表示四個方向,如下所示。

Figure 108123171-A0304-0003
3 .現有實現方式的缺點的討論 The direction index indicates the direction of the MVD relative to the starting point. The direction index can represent four directions, as shown below.
Figure 108123171-A0304-0003
3 . Discussion of the shortcomings of existing implementations

在Merge模式中,Merge候選的運動資訊由當前塊繼承,包括運動向量、參考圖像、預測方向、LIC標誌等。僅Merge索引被信令通知,這在許多情況下是高效的。然而,繼承的運動資訊尤其是運動向量可能不足夠好。In the Merge mode, the motion information of the Merge candidate is inherited by the current block, including the motion vector, reference image, prediction direction, and LIC flag. Only the Merge index is signaled, which is efficient in many cases. However, the inherited motion information, especially motion vectors, may not be good enough.

另一方面,在AMVP模式中,所有運動資訊被信令通知,包括運動向量(即MVP索引和MVD)、參考圖像(即參考索引)、預測方向、LIC標誌和MVD精度等,這消耗比特。On the other hand, in the AMVP mode, all motion information is signaled, including motion vectors (ie MVP index and MVD), reference pictures (ie reference index), prediction direction, LIC flag and MVD accuracy, etc., which consumes bits .

在JVET-J0024建議的UMVE中,建議對附加的MVD進行編碼。然而,MVD僅可以在水準方向或垂直方向上具有非零分量,而不能在兩個方向上都具有非零分量。同時,它還信令通知MVD資訊,即距離索引或運動幅度資訊。4 .基於所公開的技術的擴展 Merge 模式( EMM )的方法 In the UMVE suggested by JVET-J0024, it is recommended to encode the additional MVD. However, the MVD can only have non-zero components in the horizontal direction or the vertical direction, and cannot have non-zero components in both directions. At the same time, it also signals MVD information, namely distance index or motion amplitude information. 4 . Method for extending Merge mode ( EMM ) based on disclosed technology

視訊轉碼器和解碼器實施例可以使用本檔中公開的技術來實現擴展Merge模式(EMM),其中只有很少的資訊被信令通知,並且對MVD沒有特別的限制。Video transcoder and decoder embodiments can use the techniques disclosed in this document to implement the extended Merge mode (EMM), where only very little information is signaled and there are no special restrictions on MVD.

下面的詳細發明應被視為解釋一般概念的示例。不應以狹隘的方式解釋這些發明。此外,這些發明可以以任何方式組合。The following detailed inventions should be considered as examples explaining general concepts. These inventions should not be interpreted in a narrow manner. Furthermore, these inventions can be combined in any way.

建議將運動資訊(諸如預測方向、參考索引/圖像、運動向量、LIC標誌、仿射標誌、幀內塊複製(IBC)標誌、MVD精度、MVD值)劃分為兩部分。第一部分是直接繼承的,並且第二部分在有/無預測編碼的情況下被明確地信令通知。It is recommended to divide motion information (such as prediction direction, reference index/image, motion vector, LIC flag, affine flag, intra block copy (IBC) flag, MVD accuracy, MVD value) into two parts. The first part is directly inherited, and the second part is explicitly signaled with or without predictive coding.

建議構建EMM清單,並且信令通知索引以指示當前塊(例如,PU/CU)繼承哪個候選的運動資訊的第一部分。同時,進一步信令通知如MVD的附加資訊(即運動資訊的第二部分)。 a.   運動資訊的第一部分包括以下資訊中的所有或一些:預測方向、參考圖像、運動向量、LIC標誌和MVD精度等。 b.   第二部分可以使用預測編碼進行編碼。It is recommended to construct an EMM list and signal the index to indicate which candidate motion information the current block (eg, PU/CU) inherits the first part of. At the same time, additional signaling such as MVD (ie, the second part of sports information) is further signaled. a. The first part of the motion information includes all or some of the following information: prediction direction, reference image, motion vector, LIC flag, MVD accuracy, etc. b. The second part can be coded using predictive coding.

建議通過插入空間相鄰塊、時間相鄰塊或非相鄰塊的運動資訊來構建運動資訊候選清單。It is recommended to construct a motion information candidate list by inserting motion information of spatially adjacent blocks, temporally adjacent blocks or non-adjacent blocks.

替代地,預測方向不是被繼承的而是明確地被信令通知的。在這種情況下,建議構建兩個或多個運動資訊候選清單。Instead, the predicted direction is not inherited but explicitly signaled. In this case, it is recommended to build two or more candidate lists of sports information.

建議MVD精度在Merge模式中從相鄰塊繼承並被存儲。 a.   當插入組合的雙向預測Merge候選時,預設情況下將MVD精度設置為最高支持精度(例如,1/4)。 i.            替代地,將MVD精度設置為所涉及的兩個候選中的較低精度或較高精度。 ii.          替代地,如果插入多於一個組合的雙向預測Merge候選,則將不同的MVD精度用於不同的組合的雙向預測候選。 iii.        替代地,將MVD精度設置為Merge候選列表中出現的最頻繁的MVD精度。 iv.         替代地,將MVD精度設置為任意有效的MVD精度。 v.           可以應用舍入(rounding)操作來實現此操作。 b.   當插入零Merge候選時,預設情況下將MVD精度設置為最高支持精度(例如,1/4)。 i.            替代地,如果插入多於一個零Merge候選,則將不同的MVD精度用於不同的零候選。 ii.          替代地,將MVD精度設置為Merge候選列表中出現的最頻繁的MVD精度。 iii.        替代地,將MVD精度設置為任意有效的MVD精度。 建議在EMM模式中可以禁止所有零MVD。 a.   在單向預測中,當水準MVD分量為零時,則零標誌不被信令通知用於垂直MVD分量,且被隱含地匯出為假。 b.   在雙向預測中,如果L0的MVD和水準L1 MVD分量為零,則零標誌不被信令通知用於垂直L1 MVD分量,且被隱含地匯出為假。It is recommended that the MVD accuracy be inherited from adjacent blocks and stored in the Merge mode. a. When inserting the combined bidirectional prediction Merge candidate, the MVD accuracy is set to the highest supported accuracy (for example, 1/4) by default. i. Instead, set the MVD accuracy to the lower or higher accuracy of the two candidates involved. ii. Alternatively, if more than one combined bidirectional prediction Merge candidate is inserted, different MVD accuracy is used for different combined bidirectional prediction candidates. iii. Instead, set the MVD accuracy to the most frequent MVD accuracy in the Merge candidate list. iv. Instead, set the MVD accuracy to any valid MVD accuracy. v. The rounding operation can be applied to achieve this operation. b. When inserting zero Merge candidates, the MVD accuracy is set to the highest supported accuracy (for example, 1/4) by default. i. Alternatively, if more than one zero Merge candidate is inserted, different MVD accuracy is used for different zero candidates. ii. Instead, set the MVD accuracy to the most frequent MVD accuracy in the Merge candidate list. iii. Instead, set the MVD accuracy to any valid MVD accuracy. It is recommended that all zero MVDs can be disabled in EMM mode. a. In one-way prediction, when the horizontal MVD component is zero, the zero flag is not signaled for the vertical MVD component and is implicitly exported as false. b. In bidirectional prediction, if the MVD of L0 and the level L1 MVD component are zero, the zero flag is not signaled for the vertical L1 MVD component and is implicitly exported as false.

EMM模式可以與DMVR或範本匹配一起工作。在這種情況下,由DMVR或範本匹配進一步細化一些或所有候選。 a.   在一個示例中,FRUC不被進一步細化。EMM mode can work with DMVR or template matching. In this case, some or all candidates are further refined by DMVR or template matching. a. In one example, FRUC is not further refined.

從編碼器向解碼器信令通知是否應用EMM模式。例如,可以在以下方式中信令通知該選擇:視頻參數集(VPS)、序列參數集(SPS)、圖像參數集(PPS)、條帶報頭、編碼樹單元(CTU)、編碼樹塊(CTB)、編碼單元(CU)或預測單元(PU)、覆蓋多個CTU/CTB/CU/ Pu的區域。Signal whether the EMM mode is applied from the encoder to the decoder. For example, the selection can be signaled in the following ways: video parameter set (VPS), sequence parameter set (SPS), image parameter set (PPS), slice header, coding tree unit (CTU), coding tree block ( CTB), coding unit (CU) or prediction unit (PU), an area covering multiple CTU/CTB/CU/Pu.

所建議的方法可以應用於某些塊尺寸/形狀和/或某些子塊尺寸。 a.   當僅在某些條件下應用所建議的方法並且不滿足所需條件時,不需要信令通知EMM的指示,也不需要調用如上所述的運動候選列表構建過程。The proposed method can be applied to certain block sizes/shapes and/or certain sub-block sizes. a. When the proposed method is applied only under certain conditions and the required conditions are not met, there is no need to signal the EMM's instructions or call the motion candidate list construction process as described above.

例如,EMM僅可以應用於w×h≥T的塊,其中w和h是當前塊的寬度和高度。在另一個示例中,EMM僅可以應用於w≥T&&h≥T的塊。For example, EMM can only be applied to blocks where w×h≥T, where w and h are the width and height of the current block. In another example, EMM can only be applied to blocks w≥T&&h≥T.

上述示例可以被併入下面描述的方法(例如,方法2400)的上下文中,該方法可以在視頻解碼器或視訊轉碼器實現。The above example can be incorporated in the context of the method described below (eg, method 2400), which can be implemented in a video decoder or video transcoder.

圖24是處理視頻位元流的示例方法2400的流程圖。該方法2400包括構建(2402)EMM候選列表;基於當前塊的位元流表示中的比特的第一集合來確定(2404)由該當前塊從清單中繼承的運動資訊;基於當前塊的位元流表示中的比特的第二集合來確定(2406)該當前塊被信令通知的運動資訊;並且基於EMM候選列表和被信令通知的運動資訊來執行(2408)當前塊與位元流表示之間的轉換,其中EMM候選列表的運動向量差(MVD)精度基於插入EMM候選列表中的至少一個候選。24 is a flowchart of an example method 2400 of processing a video bitstream. The method 2400 includes constructing (2402) an EMM candidate list; determining (2404) the motion information inherited from the list by the current block based on the first set of bits in the bitstream representation of the current block; based on the bits of the current block The second set of bits in the stream representation to determine (2406) the motion information signaled by the current block; and perform (2408) the current block and bit stream representation based on the EMM candidate list and the signaled motion information Conversion between, where the accuracy of the motion vector difference (MVD) of the EMM candidate list is based on at least one candidate inserted into the EMM candidate list.

以下列舉的示例提供了可以解決本檔中描述的技術問題以及其他問題的實施例。The examples listed below provide embodiments that can solve the technical problems and other problems described in this document.

1.一種視頻位元流處理方法,包括:構建擴展Merge模式(EMM)候選清單;基於當前塊的位元流表示中的比特的第一集合來確定由當前塊從清單中繼承的運動資訊;基於當前塊的位元流表示中的比特的第二集合來確定當前塊的被信令通知的運動資訊;並且基於EMM候選列表和被信令通知的運動資訊來執行當前塊與位元流表示之間的轉換,其中EMM候選列表的運動向量差(MVD)精度基於插入EMM候選列表中的至少一個候選。1. A video bitstream processing method, including: constructing an extended Merge mode (EMM) candidate list; determining the motion information inherited from the list by the current block based on the first set of bits in the bitstream representation of the current block; based on the current The second set of bits in the bitstream representation of the block to determine the signaled motion information of the current block; and based on the EMM candidate list and the signaled motion information to perform between the current block and the bitstream representation Conversion, where the motion vector difference (MVD) accuracy of the EMM candidate list is based on at least one candidate inserted into the EMM candidate list.

2.根據示例1的方法,其中至少一個候選包括從第一候選和第二候選匯出的雙向預測Merge候選。2. The method according to example 1, wherein at least one candidate includes a bidirectional prediction Merge candidate that is merged from the first candidate and the second candidate.

3.根據示例2的方法,其中MVD精度是第一候選或第二候選中的較低精度。3. The method according to example 2, wherein the MVD accuracy is the lower accuracy of the first candidate or the second candidate.

4.根據示例2的方法,其中MVD精度是第一候選或第二候選中的較高精度。4. The method according to example 2, wherein the MVD accuracy is the higher accuracy of the first candidate or the second candidate.

5.根據示例1的方法,其中至少一個候選包括零Merge候選。5. The method according to example 1, wherein at least one candidate includes a zero Merge candidate.

6.根據示例2或5的方法,其中MVD精度是最高支援精度。6. The method according to Example 2 or 5, wherein the MVD accuracy is the highest supported accuracy.

7.根據示例2或5的方法,其中MVD精度是任意精度。7. The method according to Example 2 or 5, wherein the MVD accuracy is arbitrary accuracy.

8.根據示例1的方法,其中MVD精度是從相鄰塊繼承的。8. The method according to example 1, wherein the MVD accuracy is inherited from adjacent blocks.

9.根據示例1的方法,其中至少一個候選包括多個雙向預測Merge候選。9. The method according to example 1, wherein at least one candidate includes a plurality of bidirectional prediction Merge candidates.

10.根據示例1的方法,其中至少一個候選包括多個零Merge候選。10. The method according to example 1, wherein at least one candidate includes a plurality of zero Merge candidates.

11.根據9或10的方法,其中對於至少一個候選中的每一個,MVD精度是不同的。11. The method according to 9 or 10, wherein the MVD accuracy is different for each of the at least one candidate.

12.根據示例9或10的方法,其中MVD精度被設置為至少一個候選的最頻繁的MVD精度。12. The method according to example 9 or 10, wherein the MVD accuracy is set to the most frequent MVD accuracy of at least one candidate.

13.根據示例1至12中任一項的方法,其中從EMM候選清單和/或視頻編碼和/或視頻解碼中排除全零MVD候選。13. The method according to any one of examples 1 to 12, wherein all zero MVD candidates are excluded from the EMM candidate list and/or video encoding and/or video decoding.

14.根據示例13的方法,進一步包括:當水準MVD為零時,在單向預測模式中推斷垂直運動分量的零標記。14. The method according to Example 13, further comprising: when the level MVD is zero, inferring the zero mark of the vertical motion component in the unidirectional prediction mode.

15.根據示例13的方法,進一步包括:當列表0(L0)的MVD和列表1(L1)的水準MVD為零時,將列表1(L1)的MVD推斷為零。15. The method according to Example 13, further comprising: when the MVD of list 0 (L0) and the level MVD of list 1 (L1) are zero, infer the MVD of list 1 (L1) to zero.

16.根據示例1的方法,其中執行轉換包括解碼器側運動向量細化(DMVR)過程或範本匹配。16. The method according to example 1, wherein performing the conversion includes a decoder-side motion vector refinement (DMVR) process or template matching.

17.根據示例1至16中任一項的方法,其中基於當前塊的特性來選擇性地使用該方法,並且其中特性包括當前塊的尺寸或當前塊的形狀。17. The method according to any one of Examples 1 to 16, wherein the method is selectively used based on the characteristics of the current block, and wherein the characteristics include the size of the current block or the shape of the current block.

18.根據示例17的方法,特性包括當前塊的尺寸大於閾值。18. According to the method of Example 17, the characteristics include that the size of the current block is greater than the threshold.

19.一種視頻系統中的裝置,包括處理器和其上具有指令的非暫時性記憶體,其中指令在由處理器執行時使得處理器實現示例1至18中任一項的方法。19. An apparatus in a video system includes a processor and a non-transitory memory having instructions thereon, where the instructions, when executed by the processor, cause the processor to implement the method of any one of Examples 1 to 18.

20.一種存儲在非暫時性電腦可讀介質上的電腦程式產品,電腦程式產品包括用於實施示例1至18中任一項的方法的程式碼。5 .參考文獻 20. A computer program product stored on a non-transitory computer readable medium. The computer program product includes program code for implementing the method of any one of Examples 1 to 18. 5 . references

ITU-T和ISO/IEC,“High efficiency video coding”,Rec. ITU-T H.265|ISO/IEC 23008-2(有效版本)。ITU-T and ISO/IEC, "High efficiency video coding", Rec. ITU-T H.265|ISO/IEC 23008-2 (valid version).

C. Rosewarne,B.Bross,M.Naccari,K.Sharman,G.Sullivan,“High Efficiency Video Coding (HEVC) Test Model 16 (HM 16) Improved Encoder Description Update 7,”JCTVC-Y1002,2016年10月。C. Rosewarne, B. Bross, M. Naccari, K. Sharman, G. Sullivan, "High Efficiency Video Coding (HEVC) Test Model 16 (HM 16) Improved Encoder Description Update 7," JCTVC-Y1002, October 2016 .

J. Chen,E.Alshina,G.J. Sullivan,J.-R. Ohm,J.Boyce,“Algorithm description of Joint Exploration Test Model 7 (JEM7)”,JVET-G1001,2017年8月。J. Chen, E. Alshina, G.J. Sullivan, J.-R. Ohm, J. Boyce, "Algorithm description of Joint Exploration Test Model 7 (JEM7)", JVET-G1001, August 2017.

JEM-7.0:https://jvet.hhi.fraunhofer.de/svn/svn_HMJEMSoftware/tags/ HM-16.6-JEM-7.0。JEM-7.0: https://jvet.hhi.fraunhofer.de/svn/svn_HMJEMSoftware/tags/ HM-16.6-JEM-7.0.

A. Alshin,E.Alshina等,“Description of SDR, HDR and 360° video coding technology proposal by Samsung, Huawei, GoPro, and HiSilicon – mobile application scenario”,JVET-J0024,2018年4月。6 .所公開技術的實施例 A. Alshin, E. Alshina, etc., "Description of SDR, HDR and 360° video coding technology proposal by Samsung, Huawei, GoPro, and HiSilicon – mobile application scenario", JVET-J0024, April 2018. 6 . Embodiments of the disclosed technology

圖25是視頻處理裝置2500的框圖。裝置2500可以用於實現本文描述的一種或多種方法。裝置2500可以實施在智慧手機、平板電腦、電腦、物聯網(IoT)接收器等中。裝置2500可以包括一個或多個處理器2502、一個或多個記憶體2504和視頻處理電路2506。(一個或多個)處理器2502可以被配置為實現本檔中描述的一種或多種方法(包括但不限於方法2400)。(一個或多個)記憶體2504可以用於存儲用於實現本文描述的方法和技術的資料和代碼。視頻處理電路2506可以用於在硬體電路中實現本檔中描述的一些技術。25 is a block diagram of the video processing device 2500. The apparatus 2500 may be used to implement one or more methods described herein. The device 2500 may be implemented in smartphones, tablets, computers, Internet of Things (IoT) receivers, and so on. The device 2500 may include one or more processors 2502, one or more memories 2504, and video processing circuits 2506. The processor(s) 2502 may be configured to implement one or more methods (including but not limited to method 2400) described in this document. The memory(s) 2504 may be used to store materials and codes for implementing the methods and techniques described herein. The video processing circuit 2506 can be used to implement some of the techniques described in this document in a hardware circuit.

在一些實施例中,視頻編碼方法可以使用在如關於圖25所描述的硬體平臺上實現的裝置來實現。In some embodiments, the video encoding method may be implemented using a device implemented on a hardware platform as described with respect to FIG. 25.

本檔中描述的公開和其他解決方案、示例、實施例、模組和功能操作可以以數位電子電路實現,或者以電腦軟體、固件或硬體實現,包含本檔中公開的結構及其結構等同物,或者以它們中的一個或多個的組合實現。公開和其他實施例可以實現為一個或多個電腦程式產品,即,在電腦可讀介質上編碼的一個或多個電腦程式指令模組,用於由資料處理裝置執行或控制資料處理裝置的操作。電腦可讀介質可以是機器可讀存放裝置、機器可讀存儲基板、記憶體設備、影響機器可讀傳播信號的物質組合、或者它們中的一個或多個的組合。術語“資料處理裝置”涵蓋用於處理資料的所有裝置、設備和機器,包括例如可程式設計處理器、電腦或多個處理器或電腦。除了硬體之外,該裝置還可以包括為所討論的電腦程式創建執行環境的代碼,例如,構成處理器固件、協定棧、資料庫管理系統、作業系統、或者它們中的一個或多個的組合的代碼。傳播信號是人工生成的信號,例如機器生成的電信號、光信號或電磁信號,其被生成以對資訊進行編碼以便傳輸到合適的接收器裝置。The disclosure and other solutions, examples, embodiments, modules, and functional operations described in this document can be implemented by digital electronic circuits, or by computer software, firmware, or hardware, including the structures disclosed in this document and their structural equivalents Thing, or a combination of one or more of them. The disclosed and other embodiments may be implemented as one or more computer program products, that is, one or more computer program instruction modules encoded on a computer-readable medium, for execution by or control of the operation of the data processing device by the data processing device . The computer-readable medium may be a machine-readable storage device, a machine-readable storage substrate, a memory device, a material combination that affects a machine-readable propagation signal, or a combination of one or more of them. The term "data processing device" encompasses all devices, equipment, and machines used to process data, including, for example, a programmable processor, computer, or multiple processors or computers. In addition to the hardware, the device may also include code to create an execution environment for the computer program in question, for example, the processor firmware, protocol stack, database management system, operating system, or one or more of them Combined code. Propagated signals are artificially generated signals, such as machine-generated electrical signals, optical signals, or electromagnetic signals, which are generated to encode information for transmission to a suitable receiver device.

電腦程式(也稱為程式、軟體、軟體應用、腳本或代碼)可以以任何形式的程式設計語言編寫,包括編譯或解釋語言,並且可以以任何形式來部署電腦程式,包括作為獨立程式或作為適合在計算環境中使用的模組、元件、子常式或其他單元。電腦程式不一定對應於檔案系統中的檔。程式可以存儲在保存其他程式或資料的檔的一部分中(例如,存儲在標記語言檔中的一個或多個腳本),存儲在專用於所討論的程式的單個檔中,或存儲在多個協調檔中(例如,存儲一個或多個模組、副程式或代碼部分的檔)。可以部署電腦程式以在一個電腦上或在位於一個網站上或分佈在多個網站上並由通信網路互連的多個電腦上執行。Computer programs (also called programs, software, software applications, scripts, or codes) can be written in any form of programming language, including compiled or interpreted languages, and computer programs can be deployed in any form, including as standalone programs or as suitable Modules, components, subroutines, or other units used in computing environments. Computer programs do not necessarily correspond to files in the file system. Programs can be stored in part of a file that holds other programs or data (for example, one or more scripts stored in a markup language file), in a single file dedicated to the program in question, or in multiple coordination Files (for example, files that store one or more modules, subprograms, or code sections). Computer programs can be deployed to execute on one computer or on multiple computers located on one website or distributed across multiple websites and interconnected by a communication network.

本檔中描述的過程和邏輯流程可以由執行一個或多個電腦程式的一個或多個可程式設計處理器執行,以通過對輸入資料進行操作並生成輸出來執行功能。過程和邏輯流程也可以由專用邏輯電路執行,並且裝置也可以實現為專用邏輯電路,例如FPGA(現場可程式設計閘陣列)或ASIC(專用積體電路)。The processes and logic flows described in this document can be executed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The process and logic flow can also be performed by dedicated logic circuits, and the device can also be implemented as dedicated logic circuits, such as FPGA (field programmable gate array) or ASIC (dedicated integrated circuit).

舉例來說,適合於執行電腦程式的處理器包括通用和專用微處理器、以及任何種類的數位電腦的任何一個或多個處理器。通常,處理器將從唯讀記憶體或隨機存取記憶體或兩者接收指令和資料。電腦的基本元件是用於執行指令的處理器和用於存儲指令和資料的一個或多個記憶體設備。通常,電腦還將包括或可操作地耦合到用於存儲資料的一個或多個大型存放區設備,例如磁片、磁光碟或光碟,以從該一個或多個大型存放區設備接收資料,或將資料傳遞到該一個或多個大型存放區設備,或者既接收又傳遞資料。然而,電腦不需要具有這樣的設備。適用於存儲電腦程式指令和資料的電腦可讀介質包括所有形式的非易失性記憶體、介質和記憶體設備,舉例來說,包括半導體記憶體設備,例如EPROM、EEPROM和快閃記憶體設備;磁片,例如內部硬碟或抽取式磁碟;磁光碟;以及CD ROM和DVD-ROM磁片。處理器和記憶體可以由專用邏輯電路補充或併入專用邏輯電路中。For example, processors suitable for executing computer programs include general-purpose and special-purpose microprocessors, and any one or more processors of any kind of digital computer. Typically, the processor will receive commands and data from read-only memory or random access memory or both. The basic components of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Typically, the computer will also include or be operatively coupled to one or more large storage area devices for storing data, such as magnetic disks, magneto-optical disks, or optical discs, to receive data from the one or more large storage area devices, or Transfer data to the one or more large storage area devices, or both receive and transfer data. However, the computer does not need to have such equipment. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices ; Diskettes, such as internal hard drives or removable disks; magneto-optical disks; and CD ROM and DVD-ROM disks. The processor and memory can be supplemented by or incorporated into dedicated logic circuits.

雖然本專利檔包含許多細節,但這些細節不應被解釋為對任何發明或可要求保護的範圍的限制,而是作為特定于特定發明的特定實施例的特徵的描述。在本專利檔中,在分開的實施例的上下文中描述的某些特徵也可以在單個實施例中組合實現。相反,在單個實施例的上下文中描述的各種特徵也可以分開地或以任何合適的子組合在多個實施例中實現。此外,儘管上面的特徵可以描述為以某些組合起作用並且甚至最初如此要求保護,但是在一些情況下,可以從所要求保護的組合中去除來自該組合的一個或多個特徵,並且所要求保護的組合可以指向子組合或子組合的變型。Although this patent document contains many details, these details should not be construed as limitations on the scope of any inventions or of what may be claimed, but as descriptions of features specific to particular embodiments of particular inventions. In this patent document, certain features described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although the above features may be described as functioning in certain combinations and even claimed as such initially, in some cases, one or more features from the claimed combination may be removed from the claimed combination and the claimed Protected combinations can point to sub-combinations or variations of sub-combinations.

類似地,雖然在附圖中以特定順序描繪了操作,但是這不應該被理解為要求以所示的特定順序或按循序執行這樣的操作,或者執行所有示出的操作,以實現期望的結果。此外,在本專利檔中描述的實施例中的各種系統元件的分離不應被理解為在所有實施例中都要求這樣的分離。Similarly, although the operations are depicted in a specific order in the drawings, this should not be construed as requiring such operations to be performed in the specific order shown or in order, or to perform all the operations shown to achieve the desired result . Furthermore, the separation of various system elements in the embodiments described in this patent document should not be understood as requiring such separation in all embodiments.

僅描述了幾個實現方式和示例,並且可以基於本專利檔中描述和示出的內容來做出其他實現方式、增強和變型。Only a few implementations and examples are described, and other implementations, enhancements, and variations can be made based on what is described and shown in this patent file.

2400:方法 2402、2404、2406、2408:步驟 2500:視頻處理裝置 2502:處理器 2504:記憶體 2506:視頻處理電路 A、B、C、D、E:塊 A0、A1、B0、B1、B2、C0、C1:位置 L0:列表0 L1:列表1 MV0、MV0’、MV1、MV1’:運動向量 tb、td:POC距離 TD0、TD1:時間距離2400: Methods 2402, 2404, 2406, 2408: Step 2500: Video processing device 2502: Processor 2504: Memory 2506: Video processing circuits A, B, C, D, E: Blocks A 0 , A 1 , B 0 , B 1 , B 2 , C 0 , C 1 : position L0: list 0 L1: list 1 MV0, MV0', MV1, MV1': motion vector tb, td: POC distance TD0, TD1: time distance

圖1示出了用於Merge候選列表構建的推導過程的示例。 圖2示出了空間Merge候選的示例位置。 圖3示出了考慮空間Merge候選的冗餘校驗的候選對的示例。 圖4A和圖4B示出了N×2N和2N×N劃分的第二PU的示例位置。 圖5是用於時間Merge候選的運動向量縮放的示例圖示。 圖6示出了時間Merge候選C0和C1的候選位置的示例。 圖7示出了組合的雙向預測Merge候選的示例。 圖8示出了用於運動向量預測候選的示例推導過程。 圖9示出了用於空間運動向量候選的運動向量縮放的示例圖示。 圖10示出了用於匯出IC參數的相鄰樣點的示例。 圖11示出了簡化的仿射運動模型的示例。 圖12示出了每個子塊的仿射MVF的示例。 圖13顯示了AF_INTER的MVP的示例。 圖14A和14B示出了AF_MERGE的候選的示例。 圖15示出了雙邊匹配的示例。 圖16示出了範本匹配的示例。 圖17示出了FRUC中單向ME的示例。 圖18示出了基於雙邊範本匹配的DMVR的示例。 圖19示出了非相鄰Merge候選的示例。 圖20示出了非相鄰Merge候選的示例。 圖21示出了非相鄰Merge候選的示例。 圖22和圖23描繪了視頻編碼的最終運動向量表達技術的示例。 圖24是視頻位元流處理方法的示例的流程圖。 圖25是視頻處理裝置的示例的框圖。FIG. 1 shows an example of a derivation process for Merge candidate list construction. Figure 2 shows an example location of spatial Merge candidates. FIG. 3 shows an example of candidate pairs considering the redundancy check of spatial Merge candidates. 4A and 4B show example positions of the second PU divided by N×2N and 2N×N. FIG. 5 is an example illustration of motion vector scaling for temporal Merge candidates. FIG. 6 shows an example of candidate positions of time Merge candidates C0 and C1. FIG. 7 shows an example of combined bidirectional prediction Merge candidates. FIG. 8 shows an example derivation process for motion vector prediction candidates. FIG. 9 shows an example illustration of motion vector scaling for spatial motion vector candidates. FIG. 10 shows an example of adjacent samples for exporting IC parameters. FIG. 11 shows an example of a simplified affine motion model. FIG. 12 shows an example of affine MVF for each sub-block. Fig. 13 shows an example of MVP of AF_INTER. 14A and 14B show examples of candidates for AF_MERGE. FIG. 15 shows an example of bilateral matching. Fig. 16 shows an example of template matching. FIG. 17 shows an example of unidirectional ME in FRUC. FIG. 18 shows an example of DMVR based on bilateral template matching. FIG. 19 shows an example of non-adjacent Merge candidates. FIG. 20 shows an example of non-adjacent Merge candidates. FIG. 21 shows an example of non-adjacent Merge candidates. 22 and 23 depict examples of final motion vector expression techniques for video encoding. 24 is a flowchart of an example of a video bit stream processing method. 25 is a block diagram of an example of a video processing device.

2400:方法 2400: Method

2402、2404、2406、2408:步驟 2402, 2404, 2406, 2408: steps

Claims (20)

一種視頻位元流處理方法,包括: 構建擴展Merge模式(EMM)候選清單; 基於當前塊的位元流表示中的比特的第一集合來確定由所述當前塊從所述清單中繼承的運動資訊; 基於當前塊的所述位元流表示中的比特的第二集合來確定所述當前塊的被信令通知的運動資訊;並且 基於所述EMM候選列表和所述被信令通知的運動資訊來執行所述當前塊與所述位元流表示之間的轉換, 其中所述EMM候選列表的運動向量差(MVD)精度基於插入所述EMM候選列表中的至少一個候選。A video bit stream processing method, including: Build an extended Merge mode (EMM) candidate list; Determine the motion information inherited by the current block from the list based on the first set of bits in the bitstream representation of the current block; Determining the signaled motion information of the current block based on the second set of bits in the bitstream representation of the current block; and Perform conversion between the current block and the bitstream representation based on the EMM candidate list and the signaled motion information, Wherein the accuracy of the motion vector difference (MVD) of the EMM candidate list is based on at least one candidate inserted into the EMM candidate list. 如申請專利範圍第1項所述的方法,其中所述至少一個候選包括從第一候選和第二候選匯出的雙向預測Merge候選。The method as described in item 1 of the patent application scope, wherein the at least one candidate includes a bidirectional predictive Merge candidate derived from the first candidate and the second candidate. 如申請專利範圍第2項所述的方法,其中所述MVD精度是所述第一候選或所述第二候選中的較低精度。The method according to item 2 of the patent application scope, wherein the MVD accuracy is the lower accuracy of the first candidate or the second candidate. 如申請專利範圍第2項所述的方法,其中所述MVD精度是所述第一候選或所述第二候選中的較高精度。The method according to item 2 of the patent application scope, wherein the MVD accuracy is the higher accuracy of the first candidate or the second candidate. 如申請專利範圍第2項所述的方法,其中所述至少一個候選包括零Merge候選。The method according to item 2 of the patent application scope, wherein the at least one candidate includes a zero Merge candidate. 如申請專利範圍第2項或第5項所述的方法,其中所述MVD精度是最高支援精度。The method as described in item 2 or 5 of the patent application scope, wherein the MVD accuracy is the highest supported accuracy. 如申請專利範圍第2項或第5項所述的方法,其中所述MVD精度是任意精度。The method according to item 2 or item 5 of the patent application scope, wherein the MVD accuracy is arbitrary accuracy. 如申請專利範圍第1項所述的方法,其中所述MVD精度是從相鄰塊繼承的。The method as described in item 1 of the patent application scope, wherein the MVD accuracy is inherited from adjacent blocks. 如申請專利範圍第1項所述的方法,其中所述至少一個候選包括多個雙向預測Merge候選。The method according to item 1 of the patent application scope, wherein the at least one candidate includes a plurality of bidirectional prediction Merge candidates. 如申請專利範圍第1項所述的方法,其中所述至少一個候選包括多個零Merge候選。The method according to item 1 of the patent application scope, wherein the at least one candidate includes a plurality of zero Merge candidates. 如申請專利範圍第9項或第10項所述的方法,其中對於所述至少一個候選中的每一個,所述MVD精度是不同的。The method according to item 9 or item 10 of the patent application scope, wherein the MVD accuracy is different for each of the at least one candidate. 如申請專利範圍第9項或第10項所述的方法,其中所述MVD精度被設置為所述至少一個候選的最頻繁的MVD精度。The method according to item 9 or item 10 of the patent application scope, wherein the MVD accuracy is set to the most frequent MVD accuracy of the at least one candidate. 如申請專利範圍第1項至第12項中任一項所述的方法,其中從所述EMM候選清單和/或視頻編碼和/或視頻解碼中排除全零MVD候選。The method according to any one of items 1 to 12 of the patent application scope, wherein all zero MVD candidates are excluded from the EMM candidate list and/or video encoding and/or video decoding. 如申請專利範圍第13項所述的方法,進一步包括: 當水準MVD為零時,在單向預測模式中推斷垂直運動分量的零標記。The method as described in item 13 of the patent application scope further includes: When the level MVD is zero, the zero mark of the vertical motion component is inferred in the unidirectional prediction mode. 如申請專利範圍第13項所述的方法,進一步包括: 當列表0(L0)的MVD和列表1(L1)的水準MVD為零時,將列表1(L1)的MVD推斷為零。The method as described in item 13 of the patent application scope further includes: When the MVD of list 0 (L0) and the level MVD of list 1 (L1) are zero, the MVD of list 1 (L1) is inferred to be zero. 如申請專利範圍第1項所述的方法,其中執行所述轉換包括解碼器側運動向量細化(DMVR)過程或範本匹配。The method according to item 1 of the patent application scope, wherein performing the conversion includes a decoder-side motion vector thinning (DMVR) process or template matching. 如申請專利範圍第1項至第16項中任一項所述的方法,其中基於所述當前塊的特性來選擇性地使用所述方法,並且其中所述特性包括所述當前塊的尺寸或所述當前塊的形狀。The method according to any one of claims 1 to 16, wherein the method is selectively used based on the characteristics of the current block, and wherein the characteristics include the size of the current block or The shape of the current block. 如申請專利範圍第17項所述的方法,所述特性包括所述當前塊的尺寸大於閾值。As in the method described in item 17 of the patent application scope, the characteristic includes that the size of the current block is greater than a threshold. 一種視頻系統中的裝置,包括處理器和其上具有指令的非暫時性記憶體,其中所述指令在由所述處理器執行時使得所述處理器實現申請專利範圍第1項至第18項中任一項所述的方法。An apparatus in a video system, including a processor and a non-transitory memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to implement patent application items 1 to 18 The method as described in any one. 一種存儲在非暫時性電腦可讀介質上的電腦程式產品,所述電腦程式產品包括用於實施申請專利範圍第1項至第18項中任一項所述的方法的程式碼。A computer program product stored on a non-transitory computer readable medium, the computer program product including program code for implementing the method described in any one of items 1 to 18 of the patent application.
TW108123171A 2018-06-29 2019-07-01 Interaction between emm and other tools TWI731362B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2018093646 2018-06-29
WOPCT/CN2018/093646 2018-06-29

Publications (2)

Publication Number Publication Date
TW202017370A true TW202017370A (en) 2020-05-01
TWI731362B TWI731362B (en) 2021-06-21

Family

ID=67253944

Family Applications (3)

Application Number Title Priority Date Filing Date
TW108123159A TWI722467B (en) 2018-06-29 2019-07-01 Video processing method, device of video system and product of computer program
TW108123171A TWI731362B (en) 2018-06-29 2019-07-01 Interaction between emm and other tools
TW108123158A TWI736923B (en) 2018-06-29 2019-07-01 Extended merge mode

Family Applications Before (1)

Application Number Title Priority Date Filing Date
TW108123159A TWI722467B (en) 2018-06-29 2019-07-01 Video processing method, device of video system and product of computer program

Family Applications After (1)

Application Number Title Priority Date Filing Date
TW108123158A TWI736923B (en) 2018-06-29 2019-07-01 Extended merge mode

Country Status (3)

Country Link
CN (3) CN110662046B (en)
TW (3) TWI722467B (en)
WO (3) WO2020003281A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11051025B2 (en) * 2018-07-13 2021-06-29 Tencent America LLC Method and apparatus for video coding
WO2020043061A1 (en) * 2018-08-28 2020-03-05 FG Innovation Company Limited Device and method for coding video data
CN117336468A (en) 2019-08-10 2024-01-02 北京字节跳动网络技术有限公司 Sub-picture related signaling in video bitstreams
CN114556952A (en) 2019-10-02 2022-05-27 北京字节跳动网络技术有限公司 Stripe level signaling in video bitstreams including sub-pictures
KR20220078600A (en) 2019-10-18 2022-06-10 베이징 바이트댄스 네트워크 테크놀로지 컴퍼니, 리미티드 Syntax constraints in parameter set signaling of subpictures
MX2022008384A (en) * 2020-01-12 2022-08-08 Beijing Bytedance Network Tech Co Ltd Constraints for video coding and decoding.
CN115335817A (en) * 2020-03-27 2022-11-11 科乐美数码娱乐株式会社 Video distribution system, video distribution control method, and computer program
CN117321994A (en) * 2021-04-09 2023-12-29 抖音视界有限公司 Method, apparatus and medium for video processing
WO2022214077A1 (en) * 2021-04-10 2022-10-13 Beijing Bytedance Network Technology Co., Ltd. Gpm motion refinement

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9819963B2 (en) * 2011-07-12 2017-11-14 Electronics And Telecommunications Research Institute Inter prediction method and apparatus for same
MX365013B (en) * 2011-08-29 2019-05-20 Ibex Pt Holdings Co Ltd Method for generating prediction block in amvp mode.
US9357214B2 (en) * 2012-12-07 2016-05-31 Qualcomm Incorporated Advanced merge/skip mode and advanced motion vector prediction (AMVP) mode for 3D video
KR101854003B1 (en) * 2013-07-02 2018-06-14 경희대학교 산학협력단 Video including multi layers encoding and decoding method
CN103561263B (en) * 2013-11-06 2016-08-24 北京牡丹电子集团有限责任公司数字电视技术中心 Based on motion vector constraint and the motion prediction compensation method of weighted motion vector
US10944983B2 (en) * 2014-04-01 2021-03-09 Mediatek Inc. Method of motion information coding
US10200711B2 (en) * 2015-03-27 2019-02-05 Qualcomm Incorporated Motion vector derivation in video coding
US10812791B2 (en) * 2016-09-16 2020-10-20 Qualcomm Incorporated Offset vector identification of temporal motion vector predictor
US10778999B2 (en) * 2016-09-30 2020-09-15 Qualcomm Incorporated Frame rate up-conversion coding mode with affine motion model
WO2018070632A1 (en) * 2016-10-11 2018-04-19 엘지전자 주식회사 Video decoding method and device in video coding system
CN107396106A (en) * 2017-06-26 2017-11-24 深圳市亿联智能有限公司 A kind of Video Encryption Algorithm based on H.265 coding standard
CN107396102B (en) * 2017-08-30 2019-10-08 中南大学 A kind of inter-frame mode fast selecting method and device based on Merge technological movement vector
EP3468194A1 (en) * 2017-10-05 2019-04-10 Thomson Licensing Decoupled mode inference and prediction

Also Published As

Publication number Publication date
TWI736923B (en) 2021-08-21
CN110662041B (en) 2022-07-29
CN110662046A (en) 2020-01-07
TW202002651A (en) 2020-01-01
TWI722467B (en) 2021-03-21
WO2020003276A1 (en) 2020-01-02
WO2020003281A1 (en) 2020-01-02
CN110662046B (en) 2022-03-25
CN110662041A (en) 2020-01-07
TWI731362B (en) 2021-06-21
TW202002650A (en) 2020-01-01
CN110662055B (en) 2022-07-05
CN110662055A (en) 2020-01-07
WO2020003273A1 (en) 2020-01-02

Similar Documents

Publication Publication Date Title
TWI727338B (en) Signaled mv precision
TWI706670B (en) Generalized mvd resolutions
TWI815974B (en) Modification of motion vector with adaptive motion vector resolution
TWI731362B (en) Interaction between emm and other tools
TW202025781A (en) Mode dependent adaptive motion vector resolution for affine mode coding
CN112956197A (en) Restriction of decoder-side motion vector derivation based on coding information
TW201933866A (en) Improved decoder-side motion vector derivation
TWI709332B (en) Motion prediction based on updated motion vectors
TWI719522B (en) Symmetric bi-prediction mode for video coding
CN113545076A (en) Enabling BIO based on information in picture header