Coordination between geometric segmentation prediction mode and other tools

By adopting history-based motion vector prediction technology in video coding to perform intra- and inter-frame coding on non-square and non-rectangular video blocks, the problem of low coding efficiency in the existing technology is solved and more efficient video block processing is achieved .

CN111147855BActive Publication Date: 2024-10-29DOUYIN VISION CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN201911067653.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-04
Publication Date
2024-10-29
Estimated Expiration
2039-11-04

AI Technical Summary

Technical Problem

Existing video coding technology is difficult to effectively utilize intra-frame and inter-frame prediction modes when processing non-square and non-rectangular video blocks, resulting in low coding efficiency, and history-based motion vector prediction technology is not suitable for triangular segmentation mode.

Method used

Employs history-based motion vector prediction (HMVP) technology to optimize motion by dividing video blocks into non-square and non-rectangular sub-parts, using intra- and inter-coding modes respectively, and adding HMVP candidates to the motion vector prediction candidate list Vector prediction and encoding process.

Benefits of technology

Improves the efficiency and quality of video encoding, especially when processing non-square and non-rectangular video blocks, improving encoding efficiency and compression performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111147855B_ABST
    Figure CN111147855B_ABST
Patent Text Reader

Abstract

The present disclosure relates to coordination between geometric partitioning prediction modes and other tools. A method for processing video includes: during a conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, determining a plurality of sub-portions of the current block; determining intra-frame prediction information for the plurality of sub-portions; performing the conversion of the current block using the intra-frame prediction information for the plurality of sub-portions; and wherein the current block is intra-coded and at least one of the plurality of sub-portions is a non-rectangular and non-square sub-portion.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application timely claims the priority and benefits of International Patent Application No. PCT / CN2018 / 113716 filed on November 2, 2018 and International Patent Application No. PCT / CN2019 / 086174 filed on May 9, 2019, in accordance with applicable patent laws and / or the rules applicable to the Paris Convention. The entire disclosure of the above application is incorporated by reference as part of the disclosure of this application. Technical Field

[0003] This document deals with video and image encoding and decoding techniques. Background Art

[0004] Digital video accounts for the largest use of bandwidth on the Internet and other digital communications networks. As the number of connected user devices capable of receiving and displaying video increases, bandwidth demand for digital video usage is expected to continue to grow. Summary of the invention

[0005] The disclosed techniques may be used by video or image decoder or encoder embodiments where geometric partitioning based on history-based motion vector prediction (HMVP) is used.

[0006] In one example aspect, a method for processing a video is disclosed. The method includes: performing, by a processor, determining whether a first video block is intra-coded or non-Merge inter-coded; determining, by the processor, a first prediction portion and a second prediction portion of the first video block based on determining whether the first video block is intra-coded or non-Merge inter-coded, wherein one or both of the first prediction portion or the second prediction portion are non-rectangular and non-square portions of the first video block; and performing further processing on the first video block using the first prediction portion and the second prediction portion.

[0007] In another example aspect, a method for processing a video includes: executing, by a processor, determining whether a first video block is intra-frame encoded or non-Merge inter-frame encoded; determining, by the processor, a first prediction portion and a second prediction portion of the first video block, wherein one or both of the first prediction portion or the second prediction portion are non-rectangular and non-square portions of the first video block; and performing further processing on the first video block using the first prediction portion and the second prediction portion, wherein at least one prediction portion is Merge or non-Merge inter-frame encoded, and using a current image as a reference image.

[0008] In another example aspect, a method for processing a video includes: performing, by a processor, determining whether a first video block is intra-frame encoded or non-Merge inter-frame encoded; determining, by the processor, a first prediction portion and a second prediction portion of the first video block, wherein one or both of the first prediction portion or the second prediction portion are non-rectangular and non-square portions of the first video block; and performing further processing on the first video block using the first prediction portion and the second prediction portion, wherein the first video block is further processed using the first prediction portion and the second prediction portion based on inter-frame or intra-frame encoding information of non-adjacent spatial video blocks related to the first video block.

[0009] In another example aspect, a method of processing a video includes: performing a determination that a first video block is encoded in a triangular partition mode (TPM) using a triangular predicted portion of the first video block, and a second video block is encoded in a non-TPM using a non-triangular predicted portion of the second video block; performing further processing on the first video block and the second video block using stored HMVP candidates, and storing the HMVP candidates associated with the first video block and the second video block.

[0010] In another example aspect, a method of processing a video includes: performing, by a processor, determining that a first video block includes a prediction portion that is a non-rectangular and non-square portion of the first video block; and determining an HMVP candidate; adding one or more motion candidates derived from the HMVP candidate to a Merge list associated with the video block including the non-rectangular and non-square prediction portion; and performing further processing on the first video block using the Merge list.

[0011] In another example aspect, a method of processing video comprises: during a conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, determining multiple sub-portions of the current block; determining intra-frame prediction information for the multiple sub-portions; using the intra-frame prediction information for the multiple sub-portions to perform the conversion of the current block; and wherein the current block is intra-frame encoded and at least one of the multiple sub-portions is a non-rectangular and non-square sub-portion.

[0012] In another example aspect, a method for processing video comprises: during a conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, determining multiple sub-portions of the current block; determining motion information of the multiple sub-portions; performing conversion of the current block using the motion information of the multiple sub-portions; and wherein the current block is non-Merge inter-frame encoded and at least one of the multiple sub-portions is a non-rectangular and non-square sub-portion.

[0013] In another example aspect, a method for processing a video comprises: performing a conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, wherein the current block is divided into a plurality of sub-portions according to a partitioning pattern, wherein a first sub-portion has a non-rectangular, non-square shape; processing the first sub-portion using an intra-frame coding mode; and processing the second sub-portion using an inter-frame coding mode.

[0014] In another example aspect, a method for processing a video comprises: performing a conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, wherein the current block is divided into a plurality of sub-portions according to a partitioning pattern, wherein a first sub-portion has a non-rectangular, non-square shape; wherein at least one of the plurality of sub-portions is Merge or non-Merge inter-frame encoded and uses a current picture as a reference picture.

[0015] In another example aspect, a method for processing a video comprises: performing a conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, wherein the current block is divided into a plurality of sub-portions according to a partitioning pattern, wherein a first sub-portion has a non-rectangular, non-square shape; and performing the conversion using inter-frame or intra-frame encoding information of one or more non-adjacent spatial blocks.

[0016] In another example aspect, a method for processing a video comprises: during a conversion between a first block of visual media data and a corresponding encoded representation of the visual media data, determining that the first block is encoded in a geometric partitioning mode; determining motion information of at least a sub-portion of the first block based on at least one table, the at least one table storing history-based motion vector prediction (HMVP) candidates including motion information based on previously encoded blocks; and performing the conversion of the first block using the determined motion information.

[0017] In another example aspect, a method for processing a video comprises: during a conversion between a first block of visual media data and a corresponding encoded representation of the visual media data, determining that the first block is encoded in a geometric partitioning mode; determining motion information of at least one sub-portion of the first block; using the motion information of the at least one sub-portion, performing a conversion of the first block; wherein determining the motion information of at least one sub-portion of the first block comprises: constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate, and determining the motion information from the motion candidate list; wherein the at least one HMVP candidate comprises motion information based on a previously encoded block.

[0018] In another example aspect, the above method may be implemented by a video encoder apparatus including a processor.

[0019] In another example aspect, the above method may be implemented by a video decoder device including a processor.

[0020] In yet another example aspect, the methods may be embodied in the form of processor-executable instructions and stored on a computer-readable program medium.

[0021] These and other aspects are described further herein. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 An example of the derivation process for Merge candidate list construction is shown.

[0023] Figure 2 An example of the location of spatial merge candidates is shown.

[0024] Figure 3 An example of candidate pairs considered for redundancy checking of spatial merge candidates is shown.

[0025] Figure 4 Examples of the location of the second PU for N×2N and 2N×N partitions are shown.

[0026] Figure 5 An example of motion vector scaling of a temporal merge candidate is shown.

[0027] Figure 6 Examples of candidate positions C0 and C1 of the time-domain Merge candidate are shown.

[0028] Figure 7 An example of a combined bi-predictive Merge candidate is shown.

[0029] Figure 8 An example of a derivation process of motion vector prediction candidates is shown.

[0030] Fig. 9 An example of motion vector scaling of spatial motion vector candidates is shown.

[0031] Fig.10 An example of ATMVP motion prediction for a CU is shown.

[0032] Fig.11 An example of one CU having four sub-blocks (AD) and their neighboring blocks (ad) is shown.

[0033] Fig.12 An example of a flowchart for encoding with different MV precisions is shown.

[0034] Fig.13 An example of dividing a CU into two triangular prediction units (two partition types) is shown.

[0035] Fig.14 An example of the positions of neighboring blocks is shown.

[0036] Fig.15 An example of a CU to which the first weighting factor group is applied is shown.

[0037] Fig.16 An example of motion vector storage is shown.

[0038] Fig.17 An example of neighboring blocks (A and L) used for context selection in TPM flag encoding is shown.

[0039] Fig.18 An example of a sub-block in which OBMC is applied is shown.

[0040] Fig.19 An example of neighboring sample points used to derive IC parameters is shown.

[0041] Fig. 20 An example of a simplified affine motion model is shown.

[0042] Fig.21 An example of the affine MVF for each sub-block is shown.

[0043] Fig. 22 Examples of a 4-parameter affine model (a) and a 6-parameter affine model (b) are shown.

[0044] Fig.23 An example of MVP for AF_INTER is shown.

[0045] Fig.24 An example of a candidate for AF_MERGE is shown.

[0046] Fig.25 An example of candidate positions for the affine merge mode is shown.

[0047] Fig.26 An example of light flow trajectory is shown.

[0048] Fig. 27 Examples of BIOs with and without block extension are shown: a) access location is outside the block; b) padding is used to avoid additional memory access and computation.

[0049] Fig.28 An example of DMVR based on bilateral template matching is shown.

[0050] Fig.29 is a block diagram of an example of a video processing device.

[0051] Fig.30 A block diagram showing an example implementation of a video encoder.

[0052] Fig.31 is a flow chart of an example of a video processing method.

[0053] Fig.32 is a flow chart of an example of a video processing method.

[0054] Fig.33 is a flow chart of an example of a video processing method.

[0055] Fig.34 is a flow chart of an example of a video processing method.

[0056] Fig.35 is a flow chart of an example of a video processing method.

[0057] Fig.36 is a flow chart of an example of a video processing method.

[0058] Fig.37 is a flow chart of an example of a video processing method.

[0059] Fig.38 is a flow chart of an example of a video processing method.

[0060] Fig.39 is a flow chart of an example of a video processing method.

[0061] Fig.40 is a flow chart of an example of a video processing method.

[0062] Fig.41 is a flow chart of an example of a video processing method.

[0063] Fig.42 is a flow chart of an example of a video processing method. DETAILED DESCRIPTION

[0064] Various techniques that can be used by a decoder of an image or video bitstream are provided herein to improve the quality of a decompressed or decoded digital video or image. For brevity, the term "video" is used herein to include both a sequence of pictures (traditionally referred to as video) and a single image. In addition, a video encoder may also implement these techniques during the encoding process to reconstruct a decoded frame for further encoding.

[0065] For ease of understanding, section headings are used herein, and embodiments and techniques are not limited to the corresponding sections. Thus, embodiments of one section may be combined with embodiments of other sections.

[0066] 1. Overview

[0067] This patent document relates to video coding technology. Specifically, it relates to motion vector coding under geometric segmentation in video coding. It can be applied to existing video coding standards such as HEVC, or to a pending standard (multi-functional video coding). It can also be applied to future video coding standards or video codecs.

[0068] 2. Background

[0069] Video coding standards have evolved primarily through the development of the well-known ITU-T and ISO / IEC standards. ITU-T produced H.261 and H.263, ISO / IEC produced MPEG-1 and MPEG-4 Video, and the two organizations worked together to produce the H.262 / MPEG-2 Video and H.264 / MPEG-4 Advanced Video Coding (AVC) and H.265 / HEVC standards. Since H.262, video coding standards have been based on a hybrid video coding structure that utilizes temporal prediction plus transform coding. To explore future video coding technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, JVET has adopted many new approaches and applied them to reference software called the Joint Exploration Model (JEM). In April 2018, a Joint Video Experts Team (JVET) between VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) was established to work on the VVC standard with the goal of reducing bitrate by 50% compared to HEVC.

[0070] Fig.30 is a block diagram of an example implementation of a video encoder. Fig.30 The encoder implementation is shown to have a built-in feedback path, where the video encoder also performs a video decoding function (reconstructing a compressed representation of the video data for use in the encoding of the next video data).

[0071] 2.1 Inter-frame prediction in HEVC / H.265

[0072] Each inter-predicted PU has motion parameters for one or two reference picture lists. The motion parameters include motion vectors and reference picture indices. The use of one of the two reference picture lists can also be signaled using inter_pred_idc. The motion vector can be explicitly coded as a delta relative to the predictor.

[0073] When a CU is coded in skip mode, a PU is associated with the CU and there are no significant residual coefficients, no coded motion vector increments or reference picture indices. A Merge mode is specified, by which the motion parameters of the current PU can be obtained 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 Merge mode is the explicit transmission of motion parameters, where the motion vector (more precisely, the motion vector difference compared to the motion vector predictor), the corresponding reference picture index of each reference picture list, and the use of the reference picture list are explicitly signaled per PU. In the present disclosure, such a mode is named Advanced Motion Vector Prediction (AMVP).

[0074] When signaling indicates that one of the two reference picture lists is to be used, a PU is generated from a block of samples. This is called "unidirectional prediction". Unidirectional prediction is available for both P slices and B slices.

[0075] When signaling indicates that two reference picture lists are to be used, a PU is generated from two sample blocks. This is called "bidirectional prediction". Bidirectional prediction is only available for B slices.

[0076] The following provides details about the inter prediction modes specified in HEVC. The description will start with the Merge mode.

[0077] 2.1.1 Reference Image List

[0078] In HEVC, the term inter prediction is used to refer to predictions derived from data elements (e.g., sample values ​​or motion vectors) of reference pictures other than the current decoded picture. As in H.264 / AVC, a picture can be predicted from multiple reference pictures. Reference pictures used for inter prediction are organized in one or more reference picture lists. A reference index identifies which reference pictures in the list should be used to create a prediction signal.

[0079] A single reference picture list (list 0) is used for P slices, and two reference picture lists (list 0 and list 1) are used for B slices. It should be noted that the reference pictures contained in lists 0 / 1 may be from both past and future pictures in terms of capture / display order.

[0080] 2.1.2Merge Mode

[0081] 2.1.2.1 Merge Mode Candidate Derivation

[0082] When predicting a PU using Merge mode, an index pointing to an entry in the Merge candidate list is parsed from the bitstream and the motion information is retrieved using the index. The construction of this list is specified in the HEVC standard and can be summarized in the following order of steps:

[0083] Step 1: Initial candidate derivation

[0084] Step 1.1: Spatial Candidate Derivation

[0085] Step 1.2: Spatial Candidate Redundancy Check

[0086] Step 1.3: Time Domain Candidate Derivation

[0087] Step 2: Additional candidate insertions

[0088] Step 2.1: Create bidirectional prediction candidates

[0089] Step 2.2: Insert zero motion candidates

[0090] exist Figure 1 These steps are also schematically shown in . For spatial Merge candidate derivation, at most four Merge candidates are selected from candidates located at five different positions. For temporal Merge candidate derivation, at most one Merge candidate is selected from two candidates. Since the number of candidates for each 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, the index of the best Merge candidate is encoded using truncated unary binarization (TU). If the size of the CU is equal to 8, all PUs of the current CU share a Merge candidate list, which is the same as the Merge candidate list of the 2N×2N prediction unit.

[0091] Hereinafter, operations associated with the aforementioned steps are described in detail.

[0092] Figure 1 An example of the derivation process for Merge candidate list construction is shown.

[0093] 2.1.2.2 Spatial Candidate Derivation

[0094] In the derivation of spatial merge candidates, Figure 2A maximum of four Merge candidates are selected from the candidates at the positions shown. The derivation order is A1, B1, B0, A0 and B2. Position B2 is considered only when any PU at position A1, B1, B0, A0 is unavailable (for example, because it belongs to another slice or piece) or is intra-coded. After adding the candidate at position A1, a redundancy check is performed on the remaining candidates, which ensures that candidates with the same motion information are excluded from the list, thereby improving coding efficiency. In order to reduce the complexity of the calculation, not all possible candidate pairs are considered in the mentioned redundancy check. Instead, only those with Figure 3 Only pairs linked by arrows in are considered, and candidates are added to the list only if the corresponding candidates for redundancy checking do not have the same motion information. Another source of duplicate motion information is the "second PU" associated with a different partition of 2Nx2N. For example, Figure 4 The second PU in the N×2N and 2N×N cases is described respectively. When the current PU is split into N×2N, the candidate at position A1 is not considered for list construction. In fact, adding this candidate may 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 split into 2N×N, position B1 is not considered.

[0095] Figure 2 An example of the location of spatial merge candidates is shown.

[0096] Figure 3 An example of candidate pairs considered for redundancy checking of spatial merge candidates is shown.

[0097] Figure 4 Examples of the location of the second PU for N×2N and 2N×N partitions are shown.

[0098] 2.1.2.3 Time Domain Candidate Derivation

[0099] In this step, only one candidate is added to the list. In particular, in the derivation of this temporal Merge candidate, a scaled motion vector is derived based on the collocated PU belonging to the picture with the smallest POC difference with the current picture in a given reference picture list. The reference picture list used to derive the collocated PU is explicitly signaled in the slice header. Figure 5The reference picture index of the temporal Merge candidate is set to zero. The actual implementation of the scaling process is described in the HEVC specification. For B slices, two motion vectors are obtained (one for reference picture list 0 and the other for reference picture list 1) and combined to make a bidirectional prediction Merge candidate.

[0100] Figure 5 An example of motion vector scaling of a temporal merge candidate is shown.

[0101] In the collocated PU(Y) belonging to the reference frame, the position of the temporal candidate is selected between candidates C0 and C1, such as Figure 6 As shown. If the PU at position C0 is not available, intra-coded, or outside the current CTU row, position C1 is used. Otherwise, position C0 is used for the derivation of the temporal Merge candidate.

[0102] Figure 6 Examples of candidate positions C0 and C1 of the time-domain Merge candidate are shown.

[0103] 2.1.2.4 Additional candidate insertion

[0104] In addition to spatial and temporal Merge candidates, there are two additional types of Merge candidates: combined bi-prediction Merge candidate and zero Merge candidate. Combined bi-prediction Merge candidate is generated using spatial and temporal Merge candidates. Combined bi-prediction Merge candidate is only used for B slices. Combined bi-prediction candidate is generated by combining the first reference picture list motion parameters of the initial candidate with the second reference picture list motion parameters of another candidate. If these two tuples provide different motion hypotheses, they will form a new bi-prediction candidate. As an example, Figure 7 This is shown where two candidates in the original list (on the left) with MVL0 and refIdxL0 or MVL1 and refIdxL1 are used to create a combined bi-predictive Merge candidate that is added to the final list (on the right). A number of rules are defined regarding the combinations that are considered to generate these additional Merge candidates.

[0105] Figure 7 An example of a combined bi-predictive Merge candidate is shown.

[0106] Zero-motion candidates are inserted to fill the remaining entries in the Merge candidate list to the capacity of MaxNumMergeCand. These candidates have zero spatial displacement and a reference picture 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 frame for unidirectional prediction and 2 frames for bidirectional prediction, respectively. Finally, no redundancy check is performed on these candidates.

[0107] 2.1.2.5 Parallel Motion Estimation Regions

[0108] To speed up the encoding process, motion estimation can be performed in parallel, thereby deriving motion vectors for all prediction units in a given region at the same time. Deriving Merge candidates from spatial neighborhoods may interfere with parallel processing because one prediction unit cannot derive motion parameters from neighboring PUs until the relevant motion estimation is completed. To ease the trade-off between coding efficiency and processing latency, HEVC defines a motion estimation region (MER) whose size is signaled in the picture parameter set using the "log2_parallel_merge_level_minus2" syntax element. When defining the MER, Merge candidates that fall into the same region are marked as unavailable and are therefore not considered in list construction.

[0109] 2.1.3AMVP

[0110] AMVP exploits the spatio-temporal correlation of motion vectors with neighboring PUs for explicit transmission of motion parameters. For each reference picture list, a motion vector candidate list is first constructed by checking the availability of the temporally neighboring PU position to the upper left, removing redundant candidates, and adding zero vectors to make the candidate list length constant. The encoder can then select the best predictor from the candidate list and send the corresponding index indicating the selected candidate. Similar to Merge index signaling, the index of the best motion vector candidate is encoded using truncated unary. In this case, the maximum value to be encoded is 2 (see Figure 8 ). In the following sections, details about the derivation process of motion vector prediction candidates are provided. 2.1.3.1 Derivation of AMVP Candidates

[0111] Figure 8 The derivation process of motion vector prediction candidates is summarized.

[0112] In motion vector prediction, two types of motion vector candidates are considered: spatial motion vector candidates and temporal motion vector candidates. For the derivation of spatial motion vector candidates, based on the Figure 2 The motion vectors of each PU at the five different positions shown ultimately lead to two motion vector candidates.

[0113] For the derivation of temporal motion vector candidates, one motion vector candidate is selected from two candidates that are derived based on two different collocated positions. After making the first list of spatio-temporal candidates, duplicate motion vector candidates in the list are removed. If the number of potential candidates is greater than two, motion vector candidates with reference picture index greater than 1 in the associated reference picture list are removed from the list. If the number of spatio-temporal motion vector candidates is less than two, an additional zero motion vector candidate is added to the list.

[0114] 2.1.3.2 Spatial Motion Vector Candidates

[0115] When deriving spatial motion vector candidates, at most two candidates are considered among five potential candidates, which come from Figure 2 PUs at the positions shown, which are the same as the positions of the motion merge. The derivation order on the left side of the current PU is defined as A0, A1, and scaled A0, scaled A1. The derivation order on the upper side of the current PU is defined as B0, B1, B2, scaled B0, scaled B1, scaled B2. Therefore, there are four cases on each side that can be used as motion vector candidates, two of which do not require spatial scaling, and two use spatial scaling. The four different cases are summarized as follows:

[0116] --No airspace scaling

[0117] (1) Same reference picture list and same reference picture index (same POC)

[0118] (2) Different reference picture lists, but the same reference picture (same POC)

[0119] --Airspace scaling

[0120] (3) Same reference picture list, but different reference pictures (different POC)

[0121] (4) Different reference picture lists and different reference pictures (different POC)

[0122] First check the case without spatial scaling, then check the case where spatial scaling is allowed. Spatial scaling is considered whenever the POC is different between the reference picture of the neighboring PU and the reference picture of the current PU, regardless of the reference picture list. If all PUs of the left candidate are unavailable or intra-coded, then scaling of the above motion vectors is allowed to help parallel derivation of the left and upper MV candidates. Otherwise, spatial scaling of the above motion vectors is not allowed.

[0123] Fig. 9 An example of motion vector scaling of spatial motion vector candidates is shown.

[0124] In the spatial domain scaling process, the motion vectors of neighboring PUs are scaled in a similar way to the temporal domain scaling, such as Fig. 9 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 domain scaling process.

[0125] 2.1.3.3 Temporal Motion Vector Candidates

[0126] Except for the derivation of the reference picture index, all derivation processes of the temporal Merge candidate are the same as those of the spatial motion vector candidate (see Figure 6 ). The reference picture index is signaled to the decoder.

[0127] 2.2 New inter-frame prediction method in JEM

[0128] 2.2.1 Motion vector prediction based on sub-CU

[0129] In JEM with QTBT, each CU can have at most one set of motion parameters for each prediction direction. By splitting a large CU into sub-CUs and deriving motion information of all sub-CUs of the large CU, two sub-CU-level motion vector prediction methods are considered in the encoder. The alternative temporal motion vector prediction (ATMVP) method allows each CU to extract multiple sets of motion information from multiple blocks smaller than the current CU in the collocated reference picture. In the spatial-temporal motion vector prediction (STMVP) method, the motion vector of the sub-CU is recursively derived by using the temporal motion vector prediction value and the spatial neighboring motion vector.

[0130] In order to maintain a more accurate motion field for sub-CU motion prediction, motion compression of reference frames is currently disabled.

[0131] Fig.10 An example of ATMVP motion prediction for a CU is shown.

[0132] 2.2.1.1 Alternative temporal motion vector prediction

[0133] In the alternative temporal motion vector prediction (ATMVP) method, the motion vector temporal motion vector prediction (TMVP) is modified by extracting multiple sets of motion information (including motion vectors and reference indices) from blocks smaller than the current CU. The sub-CU is a square N×N block (the default N is set to 4).

[0134] ATMVP predicts the motion vectors of sub-CUs within a CU in two steps. The first step is to identify the corresponding block in the reference picture using the so-called time domain vector. The reference picture is called the motion source picture. The second step is to divide the current CU into sub-CUs and obtain the motion vector and the reference index of each sub-CU from the block corresponding to each sub-CU.

[0135] In the first step, the reference picture and the corresponding block are determined by the motion information of the spatial neighboring blocks of the current CU. In order to avoid repeated scanning of neighboring blocks, the first Merge candidate in the Merge candidate list of the current CU is used. The first available motion vector and its associated reference index are set to the index of the temporal vector and the motion source picture. In this way, in ATMVP, the corresponding block can be identified more accurately than in TMVP, where the corresponding block (sometimes called the collocated block) is always located at the lower right corner or center relative to the current CU.

[0136] In the second step, the corresponding block of the sub-CU is identified by the time domain vector in the motion source picture by adding the time domain vector to the coordinates of the current CU. For each sub-CU, the motion information of its corresponding block (the minimum motion grid covering the center sample point) is used to derive the motion information of the sub-CU. After identifying the motion information of the corresponding N×N block, it is converted into the motion vector and reference index of the current sub-CU, which is the same as the TMVP method of HEVC, where motion scaling and other processing are applied. For example, the decoder checks whether the low latency condition is met (for example, the POC of all reference pictures of the current picture is less than the POC of the current picture), and may use the motion vector MVx (the motion vector corresponding to the reference picture list X) to predict the motion vector MVy (X is equal to 0 or 1 and Y is equal to 1-X) for each sub-CU.

[0137] 2.2.1.2 Spatial Temporal Motion Vector Prediction (STMVP)

[0138] In this method, the motion vector of the sub-CU is recursively derived in raster scan order. Fig.11 The concept is illustrated. Consider an 8×8 CU, which contains four 4×4 sub-CUs A, B, C, and D. The adjacent 4×4 blocks in the current frame are labeled a, b, c, and d.

[0139] The motion derivation of sub-CU A starts with identifying its two spatial neighbors. The first neighbor is the N×N block (block c) above sub-CU A. If block c is not available or intra-coded, check the other N×N blocks above sub-CU A (from left to right, starting from block c). The second neighbor is a block on the left side of sub-CU A (block b). If block b is not available or intra-coded, check the other blocks on the left side of sub-CU A (from top to bottom, starting from block b). The motion information obtained from the adjacent blocks in each list is scaled to the first reference frame of the given list. Next, the temporal motion vector prediction (TMVP) of sub-block A is derived according to the same procedure as TMVP derivation specified in HEVC. The motion information of the collocated block at position D is extracted and scaled accordingly. Finally, after retrieving and scaling the motion information, all available motion vectors (up to 3) are averaged for each reference list. The average motion vector is designated as the motion vector of the current sub-CU.

[0140] 2.2.1.3 Sub-CU motion prediction mode signaling notification

[0141] Sub-CU mode is enabled as an additional Merge candidate, and no additional syntax elements are required to signal this mode. Two additional Merge candidates are added to the Merge candidate list of each CU to represent ATMVP mode and STMVP mode. If the sequence parameter set indicates that ATMVP and STMVP are enabled, a maximum of seven Merge candidates are used. The encoding logic of the additional Merge candidates is the same as that of the Merge candidates in HM, which means that for each CU in a P slice or B slice, two more RD checks are required for the two additional Merge candidates.

[0142] In JEM, all bins of the Merge index are context coded by CABAC. However, in HEVC, only the first bin is context coded and the rest of the bins are context bypass coded.

[0143] 2.2.2 Adaptive motion vector difference resolution

[0144] In HEVC, when use_integer_mv_flag is equal to 0 in the slice header, the motion vector difference (MVD) (between the motion vector of the PU and the predicted motion vector) is signaled in units of quarter luma samples. In JEM, local adaptive motion vector resolution (LAMVR) is introduced. In JEM, MVD can be coded in units of quarter luma samples, integer luma samples, or four luma samples. The MVD resolution is controlled at the coding unit (CU) level, and the MVD resolution flag is conditionally signaled for each CU that has at least one non-zero MVD component.

[0145] For a CU with at least one non-zero MVD component, signal the first flag to indicate whether quarter-luminance sample MV precision is used in the CU. When the first flag (equal to 1) indicates that quarter-luminance sample MV precision is not used, signal another flag to indicate whether integer-luminance sample MV precision or four-luminance sample MV precision is used.

[0146] When the first MVD resolution flag of the CU is zero or no coding is done for the CU (meaning all MVDs in the CU are zero), the CU uses quarter-luminance sample MV resolution. When a CU uses integer-luminance sample MV precision or four-luminance sample MV precision, the MVP in the AMVP candidate list of the CU is rounded to the corresponding precision.

[0147] In the encoder, CU-level RD checking is used to determine which MVD resolution will be used for the CU. That is, three CU-level RD checks are performed for each MVD resolution. To speed up the encoder, the following coding scheme is applied in JEM.

[0148] -- During the RD check for a CU with normal quarter-luminance sampled MVD resolution, store the motion information of the current CU (integer-luminance sampled precision). When performing the RD check for the same CU with integer-luminance samples and 4-luminance sample MVD resolution, the stored motion information (after rounding) is used as the starting point for further small-range motion vector refinement, so that the time-consuming motion estimation process is not repeated three times.

[0149] -- Conditionally call the RD check for a CU with 4-luminance sample MVD resolution. For a CU, when the RD check cost of integer-luminance sample MVD resolution is much greater than the RD check cost of quarter-luminance sample MVD resolution, the RD check for the 4-luminance sample MVD resolution of the CU is skipped.

[0150] The encoding process is as Fig.12 shown. First, test the 1 / 4 pixel MV, calculate the RD cost and denote it as RDCost0, then test the integer MV and denote the RD cost as RDCost1. If RDCost1 < th * RDCost0 (where th is a positive value), then test the 4 pixel MV; otherwise, skip testing the 4 pixel MV. Basically, when checking the integer or 4 pixel MV, for the 1 / 4 pixel MV, motion information and RD cost etc. are known and can be reused to speed up the encoding process of the integer or 4 pixel MV.

[0151] 2.2.3 Triangular prediction mode

[0152] The concept of triangular prediction mode (TPM) is to introduce a new triangular partitioning for motion compensated prediction. Fig.13 As shown, it divides the CU into two triangular prediction units in the diagonal direction or the anti-diagonal direction. Each triangular prediction unit in the CU uses its own unidirectional prediction motion vector and reference frame index derived from the unidirectional prediction candidate list for inter-frame prediction. After predicting the triangular prediction unit, adaptive weighting is performed on the diagonal edges. Then, the transformation and quantization process is applied to the entire CU. Note that this mode is only applied to Skip and Merge modes.

[0153] 2.2.3.1 TPM’s One-Way Prediction Candidate List

[0154] The unidirectional prediction candidate list consists of five unidirectional prediction motion vector candidates. Fig.14 As shown, it is derived from seven neighboring blocks including five spatial neighboring blocks (1 to 5) and two temporal collocated blocks (6 to 7). The motion vectors of the seven neighboring blocks are collected and put into the unidirectional prediction candidate list in the order of unidirectional prediction motion vector, L0 motion vector of bidirectional prediction motion vector, L1 motion vector of bidirectional prediction motion vector, and average motion vector of L0 and L1 motion vector of bidirectional prediction motion vector. If the number of candidates is less than five, a zero motion vector is added to the list.

[0155] More specifically, the following steps are involved:

[0156] Without any pruning operation, from A1, B1, B0, A0, B2, Col and Col2 (corresponding to Fig.14 Motion candidates are obtained in blocks 1-7).

[0157] Set the variable numCurrMergeCand = 0

[0158] For each motion candidate derived from A1, B1, B0, A0, B2, Col and Col2, and numCurrMergeCand is less than 5, if the motion candidate is unidirectionally predicted (from list 0 or list 1), it is added to the Merge list and numCurrMergeCand is increased by 1. The motion candidate added in this way is called the "initial unidirectionally predicted candidate".

[0159] Apply full trim.

[0160] For each motion candidate derived from A1, B1, B0, A0, B2, Col, and Col2, and numCurrMergeCand is less than 5, if the motion candidate is bidirectionally predicted, the motion information from list 0 is added to the Merge list (i.e., modified to unidirectional prediction from list 0), and numCurrMergeCand is increased by 1. The motion candidate added in this way is called a "truncated list 0-predicted candidate".

[0161] Apply full trim.

[0162] For each motion candidate derived from A1, B1, B0, A0, B2, Col and Col2, and numCurrMergeCand is less than 5, if the motion candidate is bidirectionally predicted, the motion information from list 1 is added to the Merge list (i.e., modified to unidirectional prediction from list 1), and numCurrMergeCand is increased by 1. The motion candidate added in this way is called a "truncated list 1-predicted candidate".

[0163] Apply full trim.

[0164] For each motion candidate derived from A1, B1, B0, A0, B2, Col, and Col2, and numCurrMergeCand is less than 5, if the motion candidate is bi-predicted.

[0165] If the slice QP of the list 0 reference picture is less than the slice QP of the list 1 reference picture, the motion information of list 1 is first scaled to the list 0 reference picture, and the average of two MVs (one from the original list 0 and the other from the scaled MV of list 1) is added to the Merge list, which is the average unidirectional prediction from the list 0 motion candidates, and numCurrMergeCand is increased by 1.

[0166] Otherwise, first scale the motion information of list 0 to the list 1 reference picture, and add the average of the two MVs (one from the original list 1 and the other from the scaled MV of list 0) to the Merge list, which is the average unidirectional prediction from the list 1 motion candidates, and numCurrMergeCand is increased by 1.

[0167] Apply full trim.

[0168] If numCurrMergeCand is less than 5, a zero motion vector candidate is added.

[0169] 2.2.3.2 Adaptive Weighting Process

[0170] After predicting each triangular prediction unit, an adaptive weighting process is applied to the diagonal edges between two triangular prediction units to derive the final prediction for the entire CU. Two groups of weighting factors are defined:

[0171] The first weighting factor group: {7 / 8, 6 / 8, 4 / 8, 2 / 8, 1 / 8} and {7 / 8, 4 / 8, 1 / 8} are used for luminance and chrominance samples respectively;

[0172] The second weighting factor group: {7 / 8, 6 / 8, 5 / 8, 4 / 8, 3 / 8, 2 / 8, 1 / 8} and {6 / 8, 4 / 8, 2 / 8} are used for luma and chroma samples respectively.

[0173] The weighting factor set is selected based on the comparison of the motion vectors of the two triangular prediction units. When the reference pictures of the two triangular prediction units are different from each other or the difference of their motion vectors is greater than 16 pixels, the second weighting factor set is used. Otherwise, the first weighting factor set is used. For example Fig.15 shown.

[0174] 2.2.3.3 Motion Vector Storage

[0175] The motion vector of the triangle prediction unit ( Fig.16 Mv1 and Mv2 in CU are stored in 4×4 grids. For each 4×4 grid, a unidirectional prediction or bidirectional prediction motion vector is stored according to the position of the 4×4 grid in the CU. Fig.16 As shown, a unidirectional prediction motion vector Mv1 or Mv2 is stored for a 4×4 grid located in a non-weighted area (i.e. not at a diagonal edge). On the other hand, a bidirectional prediction motion vector is stored for a 4×4 grid located in a weighted area. The bidirectional prediction motion vector is derived from Mv1 and Mv2 according to the following rules:

[0176] In the case where Mv1 and Mv2 have motion vectors from different directions (L0 or L1), Mv1 and Mv2 are simply combined to form a bidirectional prediction motion vector.

[0177] In the case where both Mv1 and Mv2 come from the same L0 (or L1) direction,

[0178] If the reference picture of Mv2 is the same as a picture in the L1 (or L0) reference picture list, Mv2 is scaled to that picture. Mv1 and the scaled Mv2 are combined to form a bidirectional prediction motion vector.

[0179] If the reference picture of Mv1 is the same as a picture in the L1 (or L0) reference picture list, Mv1 is scaled to that picture. The scaled Mv1 and Mv2 are combined to form a bidirectional prediction motion vector.

[0180] Otherwise, only Mv1 is stored for the weighted region.

[0181] 2.2.3.4 Signaling of Triangular Prediction Mode (TPM)

[0182] First, a one-bit flag indicating whether to use TPM can be signaled. Then, two partitioning mode indications (such as Fig.13 ) and the Merge index selected for each of the two splits.

[0183] 2.2.3.4.1TPM Flag Signaling Notification

[0184] Denote the width and height of a luma block by W and H respectively. If W*H<64, the triangular prediction mode is disabled.

[0185] When encoding a block in affine mode, triangular prediction mode is also disabled.

[0186] When a block is encoded in Merge mode, a one-bit flag may be signaled to indicate whether triangular prediction mode is enabled or disabled for the block.

[0187] The flags are encoded with 3 contexts based on the following equations:

[0188] Ctx index = ((available left block L && L is TPM coded?) 1:0) + ((available block A above && A is TPM coded?) 1:0);

[0189] 2.2.3.4.2 Signaling of two partitioning modes (e.g. Fig.13 ), and the Merge index selected for each of the two splits

[0190] Note that the partition mode and the merge index of the two partitions are jointly coded. In [5], it is restricted that the two partitions cannot use the same reference index. Therefore, there are 2 (partition mode) * N (maximum number of merge candidates) * (N-1) possibilities, where N is set to 5. An indication is encoded, and the mapping between the partition type and the two merge indices is derived from the array defined below: const uint8_t g_TriangleCombination[TRIANGLE_MAX_NUM_CANDS][3] = {

[0191] {0,1,0},{1,0,1},{1,0,2},{0,0,1},{0,2,0},

[0192] {1,0,3},{1,0,4},{1,1,0},{0,3,0},{0,4,0},

[0193] {0,0,2},{0,1,2},{1,1,2},{0,0,4},{0,0,3},

[0194] {0,1,3},{0,1,4},{1,1,4},{1,1,3},{1,2,1},

[0195] {1,2,0},{0,2,1},{0,4,3},{1,3,0},{1,3,2},

[0196] {1,3,4},{1,4,0},{1,3,1},{1,2,3},{1,4,1},

[0197] {0,4,1},{0,2,3},{1,4,2},{0,3,2},{1,4,3},

[0198] {0,3,1},{0,2,4},{1,2,4},{0,4,2},{0,3,4}};

[0199] Segmentation type (45 degrees or 135 degrees) = g_TriangleCombination [signaling notification indication] [0];

[0200] Merge index of candidate A = g_TriangleCombination[signaling notification indication][1];

[0201] Merge index of candidate B = g_TriangleCombination[signaling notification indication][2];

[0202] Once two motion candidates A and B are derived, the motion information of the two partitions (PU1 and PU2) can be set from A or B. Whether PU1 uses the motion information of Merge candidate A or B depends on the prediction direction of the two motion candidates. Table 1 shows the relationship between the two derived motion candidates A and B with two partitions.

[0203] Table 1: Motion information derived from two derived Merge candidates (A, B)

[0204]

[0205] 2.2.3.4.3 Indicated entropy coding (indicated by merge_triangle_idx)

[0206] merge_triangle_idx is in the range of [0, 39], including the endpoints. K-order exponential Golomb (EG) code is used for binarization of merge_triangle_idx, where K is set to 1.

[0207] Kth Stage EG

[0208] To encode larger numbers with fewer bits (at the expense of using more bits to encode smaller numbers), we can generalize using a non-negative integer parameter k. Encode a non-negative integer x with an exp-Golomb code of order k:

[0209] Using the above 0th order exp-Golomb code pair Encode, then

[0210] Will Encoding as binary

[0211] Table 2: Exp-Golomb-k encoding examples

[0212]

[0213]

[0214] 2.2.4 Overlapped Block Motion Compensation

[0215] Overlapped block motion compensation (OBMC) has been used previously in H.263. In JEM, unlike in H.263, OBMC can be turned on and off using CU-level syntax. When OBMC is used in JEM, OBMC is performed on all motion compensated (MC) block boundaries, except for the right and bottom boundaries of the CU. In addition, it also applies to luminance and chrominance components. In JEM, an MC block corresponds to a coding block. When a CU is encoded with sub-CU mode (including sub-CU MERGE, affine, and FRUC modes), each sub-block of the CU is an MC block. In order to handle CU boundaries in a unified manner, OBMC is performed at the sub-block level for all MC block boundaries, where the sub-block size is set equal to 4×4, such as Fig.18 shown.

[0216] When OBMC is applied to the current sub-block, in addition to the current motion vector, the motion vectors of four adjacent adjacent sub-blocks (if available and different from the current motion vector) can also be used to derive the prediction block of the current sub-block. These multiple prediction blocks based on multiple motion vectors are combined to generate the final prediction signal of the current sub-block.

[0217] The prediction block based on the motion vector of the adjacent sub-block is denoted as P N, where N represents the index of the adjacent upper, lower, left, and right sub-blocks, and the prediction block based on the current sub-block motion vector is represented as P C When P N When based on the motion information of a neighboring sub-block containing the same motion information as the current sub-block, OBMC does not N Otherwise, each P N The sample points are added to P C In the same point in N Add four rows / columns to P C .P N Using weight factors {1 / 4, 1 / 8, 1 / 16, 1 / 32}, P C Use weight factors {3 / 4, 7 / 8, 15 / 16, 31 / 32}. The exception is small MC blocks (i.e., the height or width of the coding block is equal to 4 or the CU is coded in sub-CU mode), for which P C Only add P N In this case, P N Using weight factors {1 / 4,1 / 8}, P C Use weight factors {3 / 4, 7 / 8}. For P generated based on the motion vectors of vertically (horizontally) adjacent sub-blocks N , P N The samples in the same row (column) of P are added to P with the same weight factor. C middle.

[0218] In JEM, for CUs with a size less than or equal to 256 luma samples, a CU level flag is signaled to indicate whether OBMC is applied to the current CU. For CUs with a size greater than 256 luma samples or not encoded using AMVP mode, OBMC is applied by default. At the encoder, when OBMC is applied to a CU, its impact is considered during the motion estimation stage. The prediction signal formed by OBMC using the motion information of the upper and left adjacent blocks is used to compensate for the upper and left boundaries of the original signal of the current CU, and then the normal motion estimation process is applied.

[0219] 2.2.5 Local lighting compensation

[0220] Local illumination compensation (LIC) is based on a linear model for illumination variations, using a scale factor a and an offset b, and is adaptively enabled or disabled for each inter-mode coded coding unit (CU).

[0221] When LIC is applied to a CU, the least square error method is used to derive parameters a and b by using the neighboring samples of the current CU and their corresponding reference samples. More specifically, Fig.19As shown, the IC parameters are derived and applied to each prediction direction separately using the subsampling (2:1 subsampling) neighboring samples and corresponding samples (identified by the motion information of the current CU or sub-CU) of the reference picture.

[0222] When the CU is encoded using Merge mode, the LIC flag is copied from the neighboring blocks in a manner similar to the motion information copying in Merge mode; otherwise, the LIC flag is signaled for the CU to indicate whether LIC is applicable.

[0223] When LIC is enabled for a picture, an additional CU-level RD check is required to determine whether LIC is applied for the CU. When LIC is enabled for a CU, for integer pixel motion search and fractional pixel motion search, the mean removed sum of absolute differences (MR-SAD) and the mean removed sum of absolute Hadamard transform differences (MR-SATD) are used, respectively, instead of SAD and SATD.

[0224] In order to reduce the coding complexity, the following coding scheme is applied in JEM:

[0225] --When there is no significant illumination change between the current picture and its reference pictures, LIC is disabled for the entire picture. To identify this situation, the histogram of the current picture and the histogram of each reference picture of the current picture are calculated at the encoder. If the histogram difference between the current picture and each reference picture of the current picture is less than a given threshold, LIC is disabled for the current picture; otherwise, LIC is enabled for the current picture.

[0226] 2.2.6 Affine Motion Compensated Prediction

[0227] In HEVC, motion compensated prediction (MCP) only applies the translation motion model. However, in the real world, there may be a variety of motions, such as zooming in / out, rotation, perspective motion, and other irregular motions. In JEM, a simplified affine transformation motion compensated prediction is applied. Fig. 20 As shown, the affine motion field of the block is described by two control point motion vectors.

[0228] The motion vector field (MVF) of a block is described by the following equation:

[0229]

[0230] For 6-parameter affine:

[0231]

[0232] Among them, (v 0x , v 0y ) is the motion vector of the upper left control point, (v 1x , v1y ) is the motion vector of the upper right control point, and (v 2x , v 2y ) is the motion vector of the lower left control point, and (x, y) represents the coordinates of the representative point relative to the upper left sample point in the current block. In VTM, the representative point is defined as the center position of the sub-block. For example, when the coordinates of the upper left corner of the sub-block relative to the upper left sample point in the current block are (xs, ys), the coordinates of the representative point are defined as (xs+2, ys+2).

[0233] To further simplify motion compensated prediction, sub-block based affine transform prediction is applied. The sub-block size M×N is derived as Equation 2, where MvPre is the fractional precision of the motion vector (e.g., 1 / 16 in JEM). (v 2x , v 2y ) is the motion vector of the lower left control point, which is calculated according to Equation 1.

[0234]

[0235] After being derived from Equation 2, M and N should be adjusted downwards, if necessary, to make them divisors of w and h, respectively.

[0236] In order to derive the motion vector of each M×N sub-block, as Fig.21 As shown, the motion vector of the center sample of each sub-block can be calculated according to Equation 1 and rounded to 1 / 16 fractional precision. Then, the motion compensation interpolation filter mentioned elsewhere in this article is applied to generate predictions for each sub-block using the derived motion vector.

[0237] After MCP, the high-precision motion vector of each sub-block is rounded and saved to the same precision as the normal motion vector.

[0238] 2.2.6.1AF_INTER mode

[0239] In JEM, there are two affine motion modes: AF_INTER mode and AF_Merge mode. For CUs with width and height greater than 8, AF_INTER mode can be applied. In the bitstream, the affine flag at the CU level is signaled to indicate whether AF_INTER mode is used. In this mode, adjacent blocks are used to construct a pair of motion vectors {(v0, v1)|v0={v A ,v B , v C},v1={v D ,v E}} candidate list. Fig.23As shown, v0 is selected from the motion vector of block A, B or C. The motion vector from the adjacent block is scaled according to the reference list and the relationship between the POC of the adjacent block reference, the POC of the current CU reference and the POC of the current CU. The method of selecting v1 from adjacent blocks D and E is similar. When the number of candidate lists is less than 2, the list is filled by copying the motion vector pairs consisting of each AMVP candidate. When the candidate list is greater than 2, the candidates can be first sorted according to the consistency of the adjacent motion vectors (the similarity of the two motion vectors in a pair of candidates), and only the first two candidates are retained. The RD cost check is used to determine which motion vector pair candidate is selected as the control point motion vector prediction (CPMVP) of the current CU. And the index indicating the position of the CPMVP in the candidate list is signaled in the bitstream. After determining the CPMVP of the current affine CU, affine motion estimation is applied, and the control point motion vector (CPMV) is found. Then, the difference between CPMV and CPMVP is signaled in the bitstream.

[0240] In AF_INTER mode, when using the 4 / 6 parameter affine mode, 2 / 3 control points are required, so 2 / 3 MVDs need to be encoded for these control points, such as Fig. 22 MV is derived in the following way, that is, mvd1 and mvd2 are predicted based on mvd0.

[0241]

[0242]

[0243]

[0244] in mvd i and mv1 are the predicted motion vector, motion vector difference and motion vector of the upper left pixel (i=0), upper right pixel (i=1) or lower left pixel (i=2), respectively. Fig. 22 Note that the addition of two motion vectors (e.g., mvA(xA, yA) and mvB(xB, yB)) is equal to the sum of the two components, i.e., newMV=mvA+mvB, and the two components of newMV are set to (xA+xB) and (yA+yB), respectively.

[0245] 2.2.6.2AF_MERGE Mode

[0246] When a CU is applied in AF_MERGE mode, it obtains the first block encoded in affine mode from the valid adjacent reconstructed blocks. And the selection order of candidate blocks is from left, top, top right, bottom left to top left, such as Fig.24 If the adjacent lower left block A is encoded in affine mode, such as Fig.24 As shown, the motion vectors v2, v3 and v4 of the upper left corner, upper right corner and lower left corner of the CU containing block A are derived. And the motion vector v0 of the upper left corner of the current CU is calculated based on v2, v3 and v4. Secondly, the motion vector v1 of the upper right corner of the current CU is calculated.

[0247] After deriving the CPMV v0 and v1 of the current CU, the MVF of the current CU is generated according to the simplified affine motion model Equation 1. In order to identify whether the current CU is coded in AF_MERGE mode, an affine flag is signaled in the bitstream when at least one neighboring block is coded in affine mode.

[0248] The affine merge candidate list is constructed by the following steps:

[0249] Insert inheritance affine candidates

[0250] An inherited affine candidate is one that is derived from the affine motion model of its valid neighboring affine coded blocks. In general libraries, such as Fig.25 As shown, the scanning order of candidate positions is: A1, B1, B0, A0 and B2.

[0251] After deriving a candidate, a full pruning process is performed to check if the same candidate has been inserted into the list. If there is an identical candidate, the derived candidate is discarded.

[0252] Insert the constructed affine candidate

[0253] If the number of candidates in the affine Merge candidate list is less than MaxNumAffineCand (set to 5 in this contribution), the constructed affine candidate is inserted into the candidate list. Constructing an affine candidate means constructing a candidate by combining the neighbor motion information of each control point.

[0254] First, from Fig.25 The specified spatial and temporal neighbors shown in the figure derive the motion information of the control point. CPk (k = 1, 2, 3, 4) represents the kth control point. A0, A1, A2, B0, B1, B2 and B3 are the spatial positions used to predict CPk (k = 1, 2, 3); T is the temporal position used to predict CP4.

[0255] The coordinates of CP1, CP2, CP3, and CP4 are (0, 0), (W, 0), (H, 0), and (W, H), respectively, where W and H are the width and height of the current block.

[0256] The motion information for each control point is obtained according to the following priority order:

[0257] For CP1, the priority of checking is B2->B3->A2. If available, use B2. Otherwise, if B2 is not available, use B3. If both B2 and B3 are not available, use A2. If none of the three candidates are available, the motion information of CP1 cannot be obtained.

[0258] For CP2, the check priority is B1->B0.

[0259] For CP3, the check priority is A1->A0.

[0260] For CP4, use T.

[0261] Second, affine merge candidates are constructed using combinations of control points.

[0262] The motion information of three control points is required to construct a 6-parameter affine candidate. Three control points can be selected from one of the following four combinations ({CP1, CP2, CP4}, {CP1, CP2, CP3}, {CP2, CP3, CP4}, {CP1, CP3, CP4}). The combination {CP1, CP2, CP3}, {CP2, CP3, CP4}, {CP1, CP3, CP4} will be converted to a 6-parameter motion model represented by the top left, top right and bottom left control points.

[0263] The motion information of two control points is required to construct a 4-parameter affine candidate. Two control points can be selected from one of the following six combinations ({CP1, CP4}, {CP2, CP3}, {CP1, CP2}, {CP2, CP4}, {CP1, CP3}, {CP3, CP4}). The combination {CP1, CP4}, {CP2, CP3}, {CP2, CP4}, {CP1, CP3}, {CP3, CP4} will be converted to a 4-parameter motion model represented by the top left and top right control points.

[0264] Insert the combinations of constructed affine candidates into the candidate list in the following order:

[0265] {CP1, CP2, CP3}, {CP1, CP2, CP4}, {CP1, CP3, CP4}, {CP2, CP3, CP4}, {CP1, CP2}, {CP1, CP3}, {CP2, CP3}, {CP1, CP4}, {CP2, CP4}, {CP3, CP4}

[0266] For a combined reference list X (X is 0 or 1), the reference index with the highest usage in the control point is selected as the reference index of list X, and the motion vector pointing to the difference reference picture is scaled.

[0267] After deriving a candidate, a full pruning process is performed to check if the same candidate has been inserted into the list. If there is an identical candidate, the derived candidate is discarded.

[0268] Filling with zero motion vectors

[0269] If the number of candidates in the affine merge candidate list is less than 5, zero motion vectors with zero reference index are inserted into the candidate list until the list is full.

[0270] 2.2.7 Bidirectional Optical Flow

[0271] Bidirectional Optical Flow (BIO) is a sample-wise motion refinement for bidirectional prediction performed on top of block-wise motion compensation. Sample-level motion refinement uses no signaling.

[0272] Let I (k) is the luminance value from reference k (k=0,1) after block motion compensation, and I (k) The horizontal and vertical components of the gradient. Assuming that the optical flow is valid, the motion vector field (v x , v y ) is given by the equation:

[0273]

[0274] Combining this optical flow equation with the Hermitian interpolation of the trajectory of each sample point yields a unique third-order polynomial that matches the function value I at the end. (k) and its derivative The value of this polynomial at t=0 is the BIO prediction:

[0275]

[0276] Here, τ0 and τ1 represent the distance to the reference frame, as Fig.26 As shown. The distances τ0 and τ1 are calculated based on the POC of Ref0 and Ref1: τ0 = POC(current)-POC(Ref0), τ1 = POC(Ref1)-POC(current). If both predictions are from the same temporal direction (both from the past or both from the future), the signs are different (e.g., τ0·τ1<0). In this case, BIO is only applied when the predictions are not from the same moment (i.e., τ0≠τ1). Both reference regions have non-zero motion (MVx0, MVy0, MVx1, MVy1≠0), and the block motion vector is proportional to the temporal distance (MVx0 / MVx1=MVy0 / MVy1=-τ0 / τ1).

[0277] By minimizing the distance between points A and B ( Fig. 9 The motion vector field (v x , v y ). For Δ, the model uses only the first linear term of the local Taylor expansion:

[0278]

[0279] All values ​​in Equation 7 depend on the sample position (i′, j′), which has been ignored from the labeling so far. Assuming that the motion in the local surrounding area is consistent, Δ can be minimized within a (2M+1)x(2M+1) square window Ω centered at the current prediction point (i, j), where M equals 2:

[0280]

[0281] For this optimization problem, JEM uses a simplified approach, first minimizing in the vertical direction and then minimizing in the horizontal direction. This leads to:

[0282]

[0283]

[0284] in,

[0285]

[0286] In order to avoid division by zero or a very small value, regularization parameters r and m are introduced in Equations 7 and 8.

[0287] r=500·4 d -8 (10)

[0288] m=700·4 d -8 (11)

[0289] Here, d is the bit depth of the video samples.

[0290] In order to make the memory access of BIO the same as that of regular bi-directional prediction motion compensation, all predictions and gradient values ​​are calculated only for positions within the current block. In Equation 11, a square window Ω of (2M+1)x(2M+1) centered at the current prediction point on the prediction block boundary needs to access locations outside the block (such as Fig. 27 In JEM, values ​​outside a block Set equal to the nearest available value within the block. For example, this could be implemented as a fill, such as Fig. 27 shown.

[0291] Using BIO, the motion field of each sample can be refined. In order to reduce the computational complexity, a block-based BIO is used in JEM. The motion refinement is calculated based on 4x4 blocks. In the block-based BIO, the s in equation 11 for all samples in the 4x4 block is n The values ​​are aggregated, and then s n The aggregate value is used for the derivation of BIO motion vector offsets for 4x4 blocks. More specifically, the following equation is used for block-based BIO derivation:

[0292]

[0293] Among them, b k represents the sample group of the kth 4x4 block belonging to the prediction block. s in equations 7 and 8 n Replace with ((s n,bk )>>4) to derive the associated motion vector offset.

[0294] In some cases, the MV regiment of BIO may be unreliable due to noise or irregular motion. Therefore, in BIO, the amplitude of the MV regiment is clamped to a threshold thBIO. This threshold is determined based on whether all the reference images of the current image are from one direction. If all the reference images of the current image are from one direction, the value of the threshold is set to 12×2 14-d , otherwise it is set to 12×2 13-d .

[0295] The gradient of BIO is calculated simultaneously by motion compensated interpolation using an operation consistent with the HEVC motion compensation process (2D separable FIR). The input of this 2D separable FIR is the same reference frame samples as the motion compensation process, and the fractional position (fracX, fracY) according to the fractional part of the block motion vector. If it is a horizontal gradient The signal is first interpolated vertically using BIOfilterS, which corresponds to the fractional position fracY with a descaling displacement of d-8. Then a gradient filter BIOfilterG is applied in the horizontal direction, which corresponds to the fractional position fracX with a descaling displacement of 18-d. If the vertical gradient First, a gradient filter is applied vertically using BIOfilterG, which corresponds to the fractional position fracY with a descaling displacement of d-8. Then a signal shift is performed in the horizontal direction using BIOfilterS, which corresponds to the fractional position fracX with a descaling displacement of 18-d. The length of the interpolation filter used for gradient calculation BIOfilterG and signal shift BIOfilterF can be shorter (6-tap) to keep the complexity reasonable. Table 1 shows the example filters used for gradient calculation of different fractional positions of block motion vectors in BIO. Table 2 shows the interpolation filters used for prediction signal generation in BIO.

[0296] Table 1 Filters used for gradient calculation in BIO

[0297] Fractional pixel position Gradient interpolation filter (BIOfilterG) 0 {8,-39,-3,46,-17,5} 1 / 16 {8,-32,-13,50,-18,5} 1 / 8 {7,-27,-20,54,-19,5} 3 / 16 {6,-21,-29,57,-18,5} 1 / 4 {4,-17,-36,60,-15,4} 5 / 16 {3,-9,-44,61,-15,4} 3 / 8 {1,-4,-48,61,-13,3} 7 / 16 {0,1,-54,60,-9,2} 1 / 2 {-1,4,-57,57,-4,1}

[0298] Table 2 Interpolation filters used in BIO for prediction signal generation

[0299] Fractional pixel position Interpolation filter for prediction signal (BIOfilterS) 0 {0,0,64,0,0,0} 1 / 16 {1,-3,64,4,-2,0} 1 / 8 {1,-6,62,9,-3,1} 3 / 16 {2,-8,60,14,-5,1} 1 / 4 {2,-9,57,19,-7,2} 5 / 16 {3,-10,53,24,-8,2} 3 / 8 {3,-11,50,29,-9,2} 7 / 16 {3,-11,44,35,-10,3} 1 / 2 {3,-10,35,44,-11,3}

[0300] In JEM, BIO is applied to all bidirectional prediction blocks when the two predictions come from different reference pictures. BIO is disabled when LIC is enabled for a CU.

[0301] In JEM, OBMC is applied to a block after normal MC processing. In order to reduce computational complexity, BIO is not applied during OBMC processing. This means that during OBMC processing, BIO is applied to the MC processing of a block only when its own MV is used, and BIO is not applied to the MC processing of a block when the MV of a neighboring block is used.

[0302] 2.2.8 Decoder-side Motion Vector Refinement

[0303] In the bidirectional prediction operation, for the prediction of a block region, two prediction blocks formed by motion vectors (MVs) from list 0 and MVs from list 1, respectively, are combined to form a single prediction signal. In the decoder-side motion vector refinement (DMVR) method, the two motion vectors of the bidirectional prediction are further refined by a bilateral template matching process. The bilateral template matching applied in the decoder is used to perform a distortion-based search between the bilateral template and the reconstructed samples in the reference picture in order to obtain the refined MV without transmitting additional motion information.

[0304] In DMVR, the bilateral template is generated as a weighted combination (i.e., average) of two prediction blocks, where the two prediction blocks come from the initial MV0 of list 0 and MV1 of list 1, respectively, as shown in Fig.28As shown. The template matching operation consists of calculating a cost metric between the generated template and the sample area in the reference picture (around the initial prediction block). For each of the two reference pictures, the MV that produces the minimum template cost is considered as the updated MV for the list to replace the original MV. In JEM, nine MV candidates are searched for each list. The nine MV candidates include the original MV and 8 surrounding MVs, which have a one-luminance sample offset from the original MV in the horizontal or vertical direction or both. Finally, use Fig.28 The two new MVs shown (i.e., MV0′ and MV1′) generate the final bidirectional prediction result. The sum of absolute differences (SAD) is used as a cost metric. It should be noted that when calculating the cost of a prediction block generated by a surrounding MV, the rounded MV (to integer pixels) is actually used instead of the actual MV to obtain the prediction block.

[0305] Without transmitting additional syntax elements, DMVR is applied to the Merge mode of bidirectional prediction, where one MV comes from the past reference picture and the other MV comes from the future reference picture. In JEM, DMVR is not applied when LIC, affine motion, FRUC, or sub-CU Merge candidate is enabled for a CU.

[0306] In the examples described below for various implementations, LUT-based motion vector prediction based on public technology is described, which can enhance existing and future video coding standards. Because LUT allows the encoding / decoding process to be performed based on historical data (e.g., processed blocks), LUT-based motion vector prediction can also be referred to as a history-based motion vector prediction (HMVP) method. In the LUT-based motion vector prediction method, one or more tables with motion information from previously encoded blocks will be maintained during the encoding / decoding process. These motion candidates stored in the LUT are called HMVP candidates. During the encoding / decoding of a block, the relevant motion information in the LUT can be added to a motion candidate list (e.g., Merge / AMVP candidate list), and after encoding / decoding a block, the LUT can be updated. Then, the updated LUT is used to encode subsequent blocks. That is, the update of the motion candidate in the LUT is based on the encoding / decoding order of the block. The following examples should be regarded as examples of explaining general concepts. These examples should not be interpreted narrowly. In addition, these examples can be combined in any way.

[0307] 3. Examples of Problems Solved by Embodiments

[0308] In the design of triangular partitioning, a block can be divided into two partitions. In order to save the memory bandwidth required for motion compensation, these two partitions must be unidirectionally predicted. During motion compensation, bidirectional prediction is used for diagonal edges, and unidirectional prediction is used for all other parts. If bidirectional prediction is allowed for each partition, the sample points at the diagonal edge will have four MVs, two from one partition and the other two from the other partition. Such a design has the following problems:

[0309] During the Merge list construction process, only spatially adjacent chunks and temporal chunks are checked.

[0310] History-based motion vector prediction techniques are not suitable for triangulation.

[0311] It is unknown how to handle the triangulation mode using the intra block copy mode.

[0312] 4. Example of implementation

[0313] The proposed technique can be applied to any non-square / non-rectangular partitioning, such as geometric partitioning. In the following description, we take "triangular partitioning mode" as an example to represent one of the non-square / non-rectangular partitioning modes (TPM). It should be noted that other kinds of partitioning may also be applicable.

[0314] The following detailed techniques should be considered as examples to explain the general concept. These techniques should not be interpreted narrowly. In addition, these inventions can be combined in any way. The block size is expressed as WxH.

[0315] 1. It is recommended to enable triangular prediction mode for intra-frame coded blocks or non-merge inter-frame coded blocks instead of always applying merge mode for triangular prediction mode.

[0316] a. In one example, two partitions are predicted using different intra prediction modes.

[0317] b. Alternatively, in addition, the predicted values ​​of samples along the edge boundaries can be further filtered.

[0318] c. In one example, the motion information (e.g., MV) of two triangular partitions cannot predict each other;

[0319] i. Alternatively, the motion information (eg MV) of one triangular partition can be used to predict the other partition.

[0320] 2. It is recommended that when a block is divided into two geometric partitions, one partition can be encoded in intra mode and the other partition can be encoded in inter mode.

[0321] a. In one example, for inter-coded partitions, bidirectional prediction can also be applied.

[0322] b. In one example, when the current block is encoded in Merge mode, this method can be signaled, that is, for inter-frame coded partitions, the Merge index is used to signal the motion information.

[0323] c. Alternatively, in addition, the predicted values ​​of samples along edge boundaries may be further filtered.

[0324] d. In one example, only a subset of intra prediction modes may be applied.

[0325] i. The two partitioned subsets can be different.

[0326] ii. The subsets may depend on the location of the split.

[0327] iii. The subset may depend on the block size and / or block shape.

[0328] 3. As disclosed in Item 1 and Item 2, a Merge or non-Merge inter-coded block can use the current picture as a reference picture.

[0329] 4. It is suggested that when a block is encoded in triangular partitioning mode, the inter / intra coded information of non-neighboring spatial blocks can also be considered as a predictor for encoding the current block.

[0330] a. In one example, motion information of non-neighboring spatial blocks can be utilized.

[0331] b. In one example, intra prediction modes of non-neighboring spatial blocks may be utilized.

[0332] c. Alternatively, the encoding information of the time block can be further used to encode a block using TPM.

[0333] 5. It is recommended to add motion candidates derived from HMVP candidates in the Merge list construction process for TPM coded blocks, where HMVP (history-based motion vector prediction) candidates are motion information inherited or derived from previously coded blocks.

[0334] Table maintenance for HMVP candidate storage

[0335] a. Maintenance of HMVP candidates and / or updating of a table storing HMVP candidates may be the same as that for HMVP for normal motion vectors.

[0336] b. In one example, the same table can be maintained for HMVP candidate storage, which can be used for both non-TPM encoded blocks and TPM encoded blocks.

[0337] i. In one example, the motion information used by the TPM is not put into the HMVP storage. The HMVP table is not updated after encoding / decoding a TPM coded block.

[0338] c. In one example, a separate table may be maintained to store HMVP candidates for encoding TPM encoding blocks.

[0339] i. A table can be maintained for HMVP candidate storage using motion information only from TPM coded blocks.

[0340] ii. Two tables may be maintained to store HMVP candidates for unidirectional prediction and bidirectional prediction respectively.

[0341] iii. Two tables may be maintained to store the motion information of the first segmentation and the second segmentation respectively.

[0342] iv. Two tables may be maintained to store the motion information of list 0 and the motion information of list 1 respectively.

[0343] v. Alternatively, three tables may be maintained to store HMVP candidates for unidirectional prediction from list 0, unidirectional prediction from L1, and bidirectional prediction, respectively.

[0344] d. After encoding with the TPM encoding block, the table used for HMVP candidate storage may not be updated.

[0345] i. Alternatively, the table / tables for HMVP candidate storage may be updated with the motion information of the first segmentation

[0346] ii. Alternatively, the motion information of the second partition may be used to update the table / tables used for HMVP candidate storage.

[0347] iii. Alternatively, the table / tables used for HMVP candidate storage may be updated with motion information from both partitions by adding two HMVP candidates.

[0348] iv. Alternatively, the table / tables used for HMVP candidate storage may be updated with motion information from both partitions by adding one HMVP candidate (eg, when both partitions are predicted from two reference picture lists).

[0349] v. Whether one or two motion candidates are added to the HMVP table may depend on whether the two partitions are predicted from the same reference picture list and / or from the same reference picture.

[0350] vi. Whether to add the motion information of the first partition or the second partition to the HMVP table may depend on the difference in POC between the reference picture and the current picture.

[0351] e. When separate tables are maintained for encoding TPM and non-TPM encoded blocks respectively, an update of the table may be invoked based on the pattern of a block.

[0352] i. In one example, after decoding the TPM encoding block, the motion information can be used to update the table used to encode the TPM encoding block.

[0353] ii. In one example, after decoding the non-TPM encoded block, the motion information may be used to update the table used to encode the non-TPM encoded block.

[0354] iii. Alternatively, furthermore, after decoding the non-TPM encoded block, the motion information may be used to update the table used to encode the TPM encoded block.

[0355] Use of HMVP candidates in TPM encoding blocks

[0356] f. HMVP candidates can be added directly to the Merge list of the TPM encoding block.

[0357] i. Alternatively, one HMVP candidate may be used to derive two motion candidates, for example, one is unidirectionally predicted using list 0 motion information, and the other is unidirectionally predicted using list 1 motion information of the HMVP candidate.

[0358] ii. When inserting a motion candidate derived / inherited from an HMVP candidate, pruning can be applied using other motion candidates derived / inherited from spatial or temporal blocks.

[0359] iii. When inserting a motion candidate derived / inherited from a HMVP candidate, pruning can be applied using a motion candidate derived / inherited from another HMVP candidate.

[0360] iv. When inserting a motion candidate derived / inherited from a HMVP candidate, pruning can be applied using another motion candidate derived / inherited from the same HMVP candidate.

[0361] g. In one example, the time interval can be calculated from a spatial and / or temporal block (e.g., Fig.14 After the motion candidates derived from blocks 1-7 in the above, one or more motion candidates derived from one or more HMVP candidates are added. In this case, the HMVP candidate is processed in the same way as other spatial / temporal Merge candidates.

[0362] h. Motion candidates inherited / derived from HMVP candidates can be added to the Merge list after or before a specific step in the Merge list construction process that depends on the motion information of the spatial / temporal blocks.

[0363] i. Alternatively, the motion candidates inherited / derived from the HMVP candidate may be added to the Merge list immediately after or before several predefined steps.

[0364] ii. In one example, one or more HMVP candidates with uni-directional prediction may be added immediately after all candidates with original uni-directional prediction of the current design.

[0365] iii. In one example, one or more HMVP candidates with unidirectional prediction or bidirectional prediction from L0 may be added immediately after all truncated List0 predicted candidates. Alternatively, furthermore, if the HMVP candidate has bidirectional prediction, only List0 motion information may be retained.

[0366] iv. In one example, one or more HMVP candidates with uni-prediction or bi-prediction from L1 may be added immediately after all truncated List1 predicted candidates. Additionally, if the HMVP candidate has bi-prediction, only List1 motion information may be retained.

[0367] v. In one example, one or more HMVP candidates may be added immediately after all average unidirectional predictions from list 0 or list 1 motion candidates.

[0368] vi. In one example, one or more HMVP candidates may be added immediately before all average unidirectional predictions from list 0 or list 1 motion candidates.

[0369] i. Motion candidates inherited / derived from HMVP candidates can be added to the Merge list in an interleaved manner with motion candidates inherited / derived from the motion information of spatial / temporal blocks.

[0370] j. In one example, the motion candidates derived from List 0 and List 1 of each HMVP candidate may be added in order before the motion candidates derived from List 0 and List 1 of another HMVP candidate.

[0371] k. In one example, the motion candidates derived from List 0 of the first HMVP candidate set may be added in order before the motion candidates derived from List 1 of the second HMVP candidate set.

[0372] i. In one example, the first set and the second set are the same set, ie, all available HMVP candidates.

[0373] ii. Alternatively, the first set and the second set may be different, such as

[0374] The HMVP candidate set includes unidirectional prediction and bidirectional prediction from list 0.

[0375] HMVP candidates; and the second HMVP candidate set includes HMVP candidates with unidirectional prediction and bidirectional prediction from List 1.

[0376] iii. The number of HMVP candidates associated with the first and second sets may be different.

[0377] 1. The HMVP candidates of list LX can be scaled to list L(1-X) and then used for list L(1-X).

[0378] i. The scaled candidate can be inserted after all other candidates.

[0379] ii. The scaled candidate can be inserted after all other candidates except the time domain candidate.

[0380] m. The order in which HMVP candidates are checked for deriving motion candidates to be added to the TPM Merge list may depend on the index of the HMVP candidate.

[0381] i. Alternatively, it may depend on the prediction direction.

[0382] ii. Alternatively, it may depend on motion information.

[0383] 6. You can pre-define how many HMVPs to check during the TPM Merge list construction process, for example 5.

[0384] a. The number of HMVP candidates to be checked during TPM Merge list construction may depend on the block size / block shape / how many candidates are available before checking the HMVP candidate.

[0385] b. The number of HMVP candidates to be checked during the TPM Merge list construction process can be signaled in the SPS / VPS / PPS / picture header / slice header / slice header / CTU row / CTU / CTU group.

[0386] c. When a portion of available HMVP candidates are to be checked during TPM Merge list construction, the selection of HMVP candidates may depend on the prediction direction / MV information / reference picture index / POC distance and / or candidate index of the candidate's reference picture and current picture.

[0387] 7. Whether and how to apply HMVP on a TPM code block may depend on the block size (eg, width and / or height, ratio of width to height) or block shape (eg, square or non-square).

[0388] 8. The proposed method can also be applied to other kinds of motion candidate lists for geometric segmentation (such as AMVP list).

[0389] Fig.29 is a block diagram of a video processing device 2900. Device 2900 may be used to implement one or more methods described herein. Device 2900 may be embodied in a smartphone, a tablet computer, a computer, an Internet of Things (IoT) receiver, etc. Device 2900 may include one or more processors 2902, one or more memories 3704, and video processing hardware 2906. Processor 2902 may be configured to implement one or more methods described herein. (One or more) memories 2904 may be used to store data and code for implementing the methods and techniques described herein. Video processing hardware 2906 may be used to implement some of the techniques described in this document in hardware circuits.

[0390] Fig.31 3100 is a flowchart of a method for processing a video. The method 3100 includes performing a determination (3105) that a first video block is intra-coded or non-Merge inter-coded, determining (3110) a first prediction portion and a second prediction portion for the first video block based on the determination that the first video block is intra-coded or non-Merge inter-coded, wherein one or both of the first prediction portion or the second prediction portion are non-rectangular and non-square portions of the first video block, and performing (3115) further processing of the first video block using the first prediction portion and the second prediction portion.

[0391] Fig.32 3200 is a flowchart of a method 3200 for processing a video. The method 3200 includes performing a determination (3205) that a first video block is intra-coded or non-Merge inter-coded, determining (3210) a first prediction portion and a second prediction portion for the first video block, wherein one or both of the first prediction portion or the second prediction portion are non-rectangular and non-square portions of the first video block, and performing (3215) further processing of the first video block using the first prediction portion and the second prediction portion, wherein at least one prediction portion is merged or non-Merge inter-coded using a current image as a reference image.

[0392] Fig.333300 is a flowchart of a method 3300 for processing a video. The method 3300 includes performing a determination (3305) that a first video block is intra-coded or non-Merge inter-coded, determining (3310) a first prediction portion and a second prediction portion for the first video block, wherein one or both of the first prediction portion or the second prediction portion are non-rectangular and non-square portions of the first video block, and performing (3315) further processing of the first video block using the first prediction portion and the second prediction portion, wherein the further processing of the first video block using the first prediction portion and the second prediction portion is based on information of inter-coded or intra-coded spatial blocks that are non-adjacent to the first video block.

[0393] Fig.34 is a flow chart of a method 3400 for processing a video. The method 3400 includes performing a determination (3405) to encode a first video block in a triangular part mode (TPM) using a triangular predicted portion of the first video block and to encode a second video block in a non-TPM using a non-triangular predicted portion of the second video block, performing (3410) further processing of the first video block and the second video block using stored HMVP candidates, and storing (3415) the HMVP candidates associated with the first video block and the second video block.

[0394] Fig.35 is a flow chart of a method 3500 for processing a video. The method 3500 includes performing a determination (3505) that a first video block includes a predicted portion that is a non-rectangular and non-square portion of the first video block; identifying (3510) an HMVP candidate; adding (3515) one or more motion candidates derived from the HMVP candidate to a Merge list associated with the video block, the video block including the non-rectangular and non-square predicted portion, and performing (3520) further processing on the first video block using the Merge list.

[0395] Some examples of determining encoding candidates and their use are described in Section 4 of this document with reference to methods 3100, 3200, 3300, 3400, and 3500. For example, a video block may be processed using non-square and non-rectangular prediction portions.

[0396] Referring to methods 3100 , 3200 , 3300 , 3400 , and 3500 , a video block may be encoded in a video bitstream, wherein bit efficiency may be achieved by using a bitstream generation rule related to motion information prediction.

[0397] The method may include determining image information of a first prediction portion using a first intra prediction mode; and determining image information of a second prediction portion using a second intra prediction mode, the first intra prediction mode being different from the second intra prediction mode.

[0398] The method may include filtering prediction values ​​related to the first prediction portion and the second prediction portion along an edge boundary between the first prediction portion and the second prediction portion.

[0399] The method may include determining, by a processor, first motion information of a first predicted portion; and determining, by a processor, second motion information of a second predicted portion, wherein the first motion information is determined without using the second motion information, and the second motion information is determined without using the first motion information.

[0400] The method may include determining, by a processor, first motion information of a first predicted portion; and determining, by the processor, second motion information of a second predicted portion, wherein the second motion information is determined using the first motion information.

[0401] The method may include: processing the first predicted portion using intra-mode coding; and processing the second predicted portion using inter-mode coding.

[0402] The method may include: wherein processing the second predicted portion includes applying bi-directional prediction.

[0403] The method may include: wherein processing the second predicted part includes determining motion information signaled using a Merge index.

[0404] The method may include filtering prediction values ​​related to the first prediction portion and the second prediction portion along an edge boundary between the first prediction portion and the second prediction portion.

[0405] The method may include: wherein a subset of intra-mode encoding is used.

[0406] The method may include wherein the first predicted portion and the second predicted portion are associated with different subsets of intra-mode coding.

[0407] The method may include wherein the first prediction portion and the second prediction portion are associated with different subsets of intra-mode coding based on the positions of the first prediction portion and the second prediction portion.

[0408] The method may include wherein the first prediction portion and the second prediction portion are associated with different subsets of intra-mode coding based on one or more of a size of the first video block or a shape of the first video block.

[0409] The method may include: wherein the inter-frame or intra-frame coding information of the non-adjacent spatial video blocks includes motion information of the non-adjacent spatial video blocks.

[0410] The method may include wherein an intra prediction mode of non-adjacent spatial video blocks is used.

[0411] The method may include: wherein coding information of a time block is used.

[0412] The method may include adding a history-based motion vector prediction (HMVP) candidate to a motion vector prediction candidate list, wherein the HMVP candidate includes motion information based on a previously encoded video block; and decoding the first video block based on the HMVP candidate.

[0413] The method may include wherein the HMVP candidates are stored in a table, and wherein the motion information used by the TPM is not stored in the table.

[0414] The method may include wherein the table is not updated after encoding or decoding the first video block using the TPM.

[0415] The method may include wherein the HMVP candidates are stored in a first table and a second table, the first table storing HMVP candidates for TPMs and the second table storing HMVP candidates for non-TPMs.

[0416] The method may include wherein one of the first table or the second table stores unidirectionally predicted HMVP candidates and the other stores bidirectionally predicted HMVP candidates.

[0417] The method may include wherein one of the first table or the second table stores motion information of the first partition and the other stores motion information of the second partition.

[0418] The method may include wherein one of the first table or the second table stores motion information of list 0 and the other stores motion information of list 1 .

[0419] The method may include wherein a first table stores unidirectionally predicted HMVP candidates from list 0, a second table stores unidirectionally predicted HMVP candidates from list 1, and a third table stores bidirectionally predicted HMVP candidates.

[0420] The method may include wherein the table for HMVP candidate storage is not updated based on the first prediction portion or the second prediction portion being one or both of a non-rectangular and a non-square geometric portion of the first video block.

[0421] The method may include updating one or more of the first table or the second table for HMVP candidate storage using the motion information of the first partition.

[0422] The method may include updating one or more of the first table or the second table for HMVP candidate storage using the motion information of the second partition.

[0423] The method may include updating one or more of a first table or a second table for HMVP candidate storage using the motion information of the first partition and the motion information of the second partition.

[0424] The method may include: determining that a first partition and a second partition are predicted from two reference picture lists; and updating one or more tables for HMVP candidate storage using motion information of an HMVP candidate based on the determination that the first partition and the second partition are predicted from the two reference picture lists.

[0425] The method may include determining that the first partition and the second partition are predicted using the same reference picture list or the same reference picture, wherein the table is updated based on determining that the first partition and the second partition are predicted using the same reference picture list or the same reference picture.

[0426] The method may include determining a picture order count (POC) difference between a reference picture and a current picture, wherein motion information of the first partition or the second partition is added to one or more tables based on the POC difference.

[0427] The method may include determining characteristics of encoding regarding the first video block; and updating one or both of the first table or the second table based on the characteristics of the encoding regarding the first video block.

[0428] The method may include where the motion information is used to update a table associated with the TPM video block after decoding the TPM video block.

[0429] The method may include where the motion information is used to update a table associated with the non-TPM video block after decoding the non-TPM video block.

[0430] The method may include where the motion information is used to update a table associated with the TPM video block after decoding the non-TPM video block.

[0431] The method may include determining a first motion candidate and a second motion candidate from the HMVP candidate, one of the first Merge candidate or the second Merge candidate being unidirectionally predicted using list 0 motion information of the HMVP candidate, and the other being unidirectionally predicted using list 1 motion information of the HMVP candidate.

[0432] The method may include pruning based on inserting motion candidates derived from the HMVP candidate into other motion candidates based on spatial or temporal video blocks.

[0433] The method may include inserting pruning based on motion candidates derived from the HMVP candidate into other motion candidates based on other HMVP candidates.

[0434] The method may include pruning based on inserting motion candidates derived from the HMVP candidate into other motion candidates based on the HMVP candidate.

[0435] The method may include adding a motion candidate derived from an HMVP candidate associated with the first video block to a Merge list after the motion candidate derived from one or both of the spatial or temporal video blocks.

[0436] The method may include: adding a motion candidate derived from an HMVP candidate to a Merge list after or before a Merge list construction process based on motion information of a spatial or temporal video block.

[0437] The method may include: adding the motion candidate derived from the HMVP candidate to the Merge list after or before the predefined step.

[0438] The method may include adding a motion candidate derived from the HMVP candidate using uni-directional prediction after other original uni-predicted candidates.

[0439] The method may include adding a motion candidate derived from the HMVP candidate using uni-directional prediction or bi-directional prediction from list 0 after the truncated list 0 predicted candidate.

[0440] The method may include adding a motion candidate derived from the HMVP candidate using uni-directional prediction or bi-directional prediction from list 1 after the truncated list 1 predicted candidate.

[0441] The method may include adding the motion candidate derived from the HMVP candidate after the average unidirectional prediction from the list 0 or list 1 motion candidate.

[0442] The method may include adding a motion candidate derived from the HMVP candidate before an average unidirectional prediction from the list 0 or list 1 motion candidate.

[0443] The method may include: wherein, according to interleaving of motion candidates based on motion information of a spatial or temporal block related to the first video block, motion candidates derived from the HMVP candidate are added to the Merge list.

[0444] The method may include wherein the motion candidate derived from list 0 and list 1 of HMVP candidates is added in order before the motion candidate derived from list 0 and list 1 of another HMVP candidate.

[0445] The method may include herein: wherein the motion candidates derived from list 0 of the first HMVP candidate set are added in order before the motion candidates derived from list 1 of the second HMVP candidate set.

[0446] The method may include: wherein the first set and the second set are the same, wherein the first set and the second set include all available HMVP candidates.

[0447] The method may include: wherein the first set and the second set are different, the first set includes HMVP candidates using unidirectional prediction and bidirectional prediction from list0, and the second set includes HMVP candidates using unidirectional prediction and bidirectional prediction from list1.

[0448] The method may include: wherein the first set includes a first number of HMVP candidates, the second set includes a second number of HMVP candidates, the first number and the second number being different.

[0449] The method may include wherein a scaled motion candidate may be derived from the HMVP candidate by scaling a motion vector of a list LX of HMVP candidates to a list L(1-X), and assigning the scaled motion candidate the scaled motion vector and the list L(1-X).

[0450] The method may include wherein a scaled motion candidate derived from the HMVP candidate is inserted after other motion candidates derived from the HMVP candidate.

[0451] The method may comprise wherein a scaled motion candidate derived from the HMVP candidate is inserted before the temporal candidate.

[0452] The method may include: wherein an order of checking the HMVP candidates to be added to the Merge list is based on an index of the HMVP candidate.

[0453] The method may include: wherein an order of checking HMVP candidates to be added to the Merge list is based on a prediction direction.

[0454] The method may include: wherein an order of checking HMVP candidates to be added to the Merge list is based on motion information.

[0455] The method may include: wherein the number of HMVP candidates to be checked during motion candidate list construction is predefined.

[0456] The method may include wherein the number of HMVP candidates to be checked during the TPM Merge list construction is based on a block size of the first video block, a block shape of the first video block, or a number of candidates available before checking the HMVP candidates.

[0457] The method may include: wherein the number of HMVP candidates to be checked during the TPM Merge list construction process is signaled in a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice group header, a slice header, a row group of a coding tree unit (CTU), a CTU, or a CTU group.

[0458] The method may include where selection of the HMVP candidate is based on prediction direction, motion vector (MV) information, reference picture index, POC distance of the reference picture, and a current picture of one or both of the candidate or the candidate index.

[0459] The method may include wherein applying the HMVP associated with the first video block is based on a block size of the first video block or a block shape of the first video block.

[0460] The method may include wherein the non-rectangular and non-square portion is triangular.

[0461] It should be understood that when the shape of the compressed coding unit is significantly different from the traditional square block or semi-square rectangular block, the disclosed technology can be embodied in a video encoder or decoder to improve compression efficiency. For example, new encoding tools using long or tall coding units such as 4×32 or 32×4 size units can benefit from the disclosed technology.

[0462] Fig.36 is a flow chart of a method 3600 for processing a video. The method 3600 includes: during a conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, determining (3605) a plurality of sub-portions of the current block; determining (3610) intra-frame prediction information for the plurality of sub-portions; performing (3615) a conversion of the current block using the intra-frame prediction information for the plurality of sub-portions; and wherein the current block is intra-frame encoded and at least one of the plurality of sub-portions is a non-rectangular and non-square sub-portion. It should be noted that the sub-portions described below may be equivalent to the predicted portions described above.

[0463] Fig.37 3700 is a flowchart of a method for processing video. The method 3700 includes: during a conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, determining (3705) a plurality of sub-portions of the current block; determining (3710) motion information of the plurality of sub-portions; performing (3715) conversion of the current block using the motion information of the plurality of sub-portions; and wherein the current block is non-Merge inter-frame coded and at least one of the plurality of sub-portions is a non-rectangular and non-square sub-portion.

[0464] Fig.38 is a flow chart of a method 3800 for processing video. The method 3800 includes: performing (3805) a conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, wherein the current block is partitioned into a plurality of sub-portions according to a partitioning pattern, wherein a first sub-portion has a non-rectangular, non-square shape; processing (3810) the first sub-portion using an intra-frame coding mode; and processing (3815) the second sub-portion using an inter-frame coding mode.

[0465] Fig.39 is a flow chart of a method 3900 for processing a video. The method 3900 includes: performing (3905) a conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, wherein the current block is divided into a plurality of sub-portions according to a partitioning pattern, wherein a first sub-portion has a non-rectangular, non-square shape; wherein at least one of the plurality of sub-portions is Merge or non-Merge inter-frame coded and uses a current picture as a reference picture.

[0466] Fig.40 is a flow chart of a method 4000 for processing a video. The method 4000 includes: performing (4005) a conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, wherein the current block is partitioned into a plurality of sub-portions according to a partitioning pattern, wherein a first sub-portion has a non-rectangular, non-square shape; and performing (4010) the conversion using inter-frame or intra-frame encoding information of one or more non-adjacent spatial blocks.

[0467] Fig.41 is a flow chart of a method 4100 for processing a video. The method 4100 includes: during a conversion between a first block of visual media data and a corresponding encoded representation of the visual media data, determining (4105) that the first block is encoded in a geometric partitioning mode; determining (4110) motion information for at least a sub-portion of the first block based on at least one table, the at least one table storing history-based motion vector prediction (HMVP) candidates including motion information based on previously encoded blocks; and performing (4115) conversion of the first block using the determined motion information.

[0468] Fig.42is a flow chart of a method 4200 for processing a video. The method 4200 includes: during a conversion between a first block of visual media data and a corresponding encoded representation of the visual media data, determining (4205) that the first block is encoded in a geometric partitioning mode; determining (4210) motion information of at least one sub-portion of the first block; using the motion information of the at least one sub-portion, performing (4215) a conversion of the first block; wherein determining the motion information of at least one sub-portion of the first block includes: constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate, and determining the motion information from the motion candidate list; wherein the at least one HMVP candidate includes motion information based on a previously encoded block.

[0469] Some features preferably implemented by some embodiments are now disclosed in a clause-based format.

[0470] Clause 1. A method for processing a video, comprising:

[0471] During conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, determining a plurality of sub-portions of the current block;

[0472] determining intra prediction information for the plurality of sub-portions;

[0473] performing conversion of the current block using the intra prediction information of the plurality of sub-parts; and

[0474] The current block is intra-coded, and at least one of the plurality of sub-portions is a non-rectangular and non-square sub-portion.

[0475] Clause 2. The method of clause 1, wherein determining intra prediction information for the plurality of sub-portions comprises:

[0476] determining first intra prediction information for a first sub-portion of the plurality of sub-portions using a first intra prediction mode;

[0477] determining second intra prediction information for a second sub-portion of the plurality of sub-portions using a second intra prediction mode;

[0478] The first intra-frame prediction mode is different from the second intra-frame prediction mode.

[0479] Clause 3. The method of clause 2, wherein the first intra prediction information is determined by using a first subset of intra prediction modes, and the second intra prediction information is determined by using a second subset of intra prediction modes;

[0480] The first subset of intra-frame prediction modes is different from the second subset of intra-frame prediction modes.

[0481] Clause 4. The method of clause 3, wherein the subset of intra prediction modes is based on at least one of a position, a size, and a shape of the first sub-portion and / or the second sub-portion.

[0482] Clause 5. A method according to any one of clauses 1 to 4, wherein determining intra prediction information for the plurality of sub-parts further comprises:

[0483] The predicted values ​​of the samples are filtered along an edge boundary of at least one of the plurality of sub-parts.

[0484] Clause 6. A method according to any one of clauses 1-5, wherein first intra-frame prediction information of a first sub-portion included in the multiple sub-portions is determined without using second intra-frame prediction information of a second sub-portion included in the multiple sub-portions, and second intra-frame prediction information of the second sub-portion is determined without using the first intra-frame prediction information of the first sub-portion.

[0485] Clause 7. A method according to any one of clauses 1-5, wherein the first intra-frame prediction information of the first sub-part included in the multiple sub-parts is determined using the second intra-frame prediction information of the second sub-part included in the multiple sub-parts, and / or the second intra-frame prediction information of the second sub-part is determined using the first intra-frame prediction information of the first sub-part.

[0486] Clause 8. A method for processing a video, comprising:

[0487] during conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, determining a plurality of sub-portions of the current block;

[0488] determining motion information of the plurality of sub-portions;

[0489] performing conversion of the current block using motion information of the plurality of sub-portions; and

[0490] The current block is non-Merge inter-frame coded, and at least one of the multiple sub-portions is a non-rectangular and non-square sub-portion.

[0491] Clause 9. The method of clause 8, wherein determining motion information of the plurality of sub-portions comprises:

[0492] determining first motion information of a first sub-portion of the plurality of sub-portions using a first intra-prediction mode;

[0493] Second motion information of a second sub-portion of the plurality of sub-portions is determined using a second intra-prediction mode.

[0494] Clause 10. A method according to any of clauses 8-9, wherein determining intra predictions for the plurality of sub-portions further comprises:

[0495] The predicted values ​​of the samples are filtered along an edge boundary of at least one of the plurality of sub-parts.

[0496] Clause 11. A method according to any one of clauses 8-9, wherein the first motion information of the first sub-portion is determined without using the second motion information of the second sub-portion, and the second motion information of the second sub-portion is determined without using the first motion information of the first sub-portion.

[0497] Clause 12. A method according to any one of clauses 8-9, wherein the first motion information of the first sub-portion is determined using the second motion information of the second sub-portion, and / or the second motion information of the second sub-portion is determined using the first motion information of the first sub-portion.

[0498] Clause 13. A method of video processing, comprising:

[0499] performing a conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, wherein the current block is partitioned into a plurality of sub-portions according to a partitioning pattern, wherein a first sub-portion has a non-rectangular, non-square shape;

[0500] processing the first sub-portion using an intra-frame coding mode; and

[0501] The second sub-portion is processed using the inter-frame coding mode.

[0502] Clause 14. The method of clause 13, wherein the second sub-portion is processed by applying bi-directional prediction.

[0503] Clause 15. The method according to any one of clauses 13-14, further comprising:

[0504] In response to the current block being encoded in Merge mode, the motion information is signaled using a Merge index.

[0505] Clause 16. The method according to any one of clauses 13-15, further comprising:

[0506] Motion information for the plurality of sub-portions is determined using a subset of intra prediction modes.

[0507] Clause 17. The method of clause 16, wherein the subset of intra prediction modes is based on at least one of a position, a size, and a shape of the first sub-portion.

[0508] Clause 18. A method for processing a video, comprising:

[0509] performing a conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, wherein the current block is partitioned into a plurality of sub-portions according to a partitioning pattern, wherein a first sub-portion has a non-rectangular, non-square shape;

[0510] At least one of the multiple sub-parts is Merge or non-Merge inter-frame coded, and uses the current picture as a reference picture.

[0511] Clause 19. A method for processing a video, comprising:

[0512] performing a conversion between a current block of visual media data and a corresponding encoded representation of the visual media data, wherein the current block is partitioned into a plurality of sub-portions according to a partitioning pattern, wherein a first sub-portion has a non-rectangular, non-square shape; and

[0513] The conversion is performed using inter-frame or intra-frame coded information of one or more non-adjacent spatial blocks.

[0514] Clause 20. The method of clause 19, wherein the inter-frame or intra-frame coding information of the one or more non-adjacent spatial blocks comprises motion information of the one or more non-adjacent spatial blocks.

[0515] Clause 21. The method of clause 19, wherein performing the conversion of the current block using inter-frame or intra-frame coded information of one or more non-adjacent spatial blocks comprises:

[0516] The conversion of the current block is performed using an intra prediction mode of one or more non-neighboring spatial blocks.

[0517] Clause 22. The method of clause 19, wherein coding information of time blocks is used.

[0518] Clause 23. A video processing device comprising a processor configured to implement the method of any one of clauses 1 to 22.

[0519] Clause 24. The apparatus of clause 23, wherein the apparatus is a video encoder.

[0520] Clause 25. The apparatus of clause 23, wherein the apparatus is a video decoder.

[0521] Clause 26. A computer-readable recording medium having recorded thereon a program including codes for a processor to execute the method of any one of Clauses 1 to 22.

[0522] Some features preferably implemented by other embodiments are now disclosed in a clause-based format.

[0523] Clause 1. A method for processing a video, comprising:

[0524] during conversion between a first block of visual media data and a corresponding encoded representation of the visual media data, determining that the first block is encoded in a geometric partitioning mode;

[0525] determining motion information of at least a sub-portion of the first block based on at least one table storing history-based motion vector prediction (HMVP) candidates including motion information based on previously encoded blocks;

[0526] Transforming of the first block is performed using the determined motion information.

[0527] Clause 2. The method of clause 1, wherein encoding the first block in a geometric partitioning mode comprises:

[0528] dividing the first block into a plurality of sub-parts;

[0529] Wherein, at least one of the plurality of sub-portions is a non-rectangular and non-square portion.

[0530] Clause 3. The method according to clause 1, further comprising:

[0531] during a conversion between a second block of the visual media data and a corresponding encoded representation of the visual media data, determining motion information for the second block based on the same table as used for the first block,

[0532] Furthermore, the second block does not use the geometric partitioning mode.

[0533] Clause 4. A method according to any of clauses 1-3, wherein storing motion information used by the first block in the at least one table is avoided.

[0534] Clause 5. The method of any of clauses 1-4, wherein the at least one table is not updated after conversion of the first block.

[0535] Clause 6. The method of any of clauses 1-5, wherein the at least one table comprises a plurality of tables maintained to store HMVP candidates for blocks having the geometric partitioning mode.

[0536] Clause 7. The method of clause 6, wherein, for the at least one table, the stored HMVP candidates have only motion information used according to blocks having the geometric partitioning pattern.

[0537] Clause 8. The method of any one of clauses 1-7, wherein the at least one table comprises two tables maintained to store unidirectionally predicted HMVP candidates and bidirectionally predicted HMVP candidates, respectively.

[0538] Clause 9. The method of any one of clauses 1-8, wherein the at least one table comprises two tables maintained to store motion information of a first sub-portion and a second sub-portion of the first block, respectively.

[0539] Clause 10. The method of any one of clauses 1-9, wherein the at least one table comprises two tables maintained to store motion information of list 0 and list 1, respectively.

[0540] Clause 11. A method according to any one of clauses 1-10, wherein the at least one table comprises three tables, and the three tables are maintained to store unidirectionally predicted HMVP candidates from list 0, unidirectionally predicted HMVP candidates from list 1, and bidirectionally predicted HMVP candidates, respectively.

[0541] Clause 12. A method according to any of clauses 1-11, wherein the at least one table is updated using motion information of a partial sub-portion of the first block.

[0542] Clause 13. A method according to any of clauses 1-12, wherein the at least one table is updated using motion information of a first sub-portion and motion information of a second sub-portion, the first sub-portion and the second sub-portion being sub-portions of the first block.

[0543] Clause 14. The method according to clause 13, wherein the at least one table is updated by adding a HMVP candidate using the motion information of the first sub-portion and the motion information of the second sub-portion.

[0544] Clause 15. The method according to clause 14, wherein whether the at least one table is updated by adding one or two motion candidates depends on whether the first sub-portion and the second sub-portion use the same reference picture list or the same reference picture.

[0545] Clause 16. The method of clause 14, wherein whether to update the at least one table by adding the motion information of the first sub-portion or the second sub-portion depends on a picture order count (POC) difference between the reference picture and the current picture.

[0546] Clause 17. The method according to any one of clauses 1 to 16, wherein the method further comprises:

[0547] After processing the block with the non-rectangular and non-square portion, the motion information of the block with the non-rectangular and non-square portion is used to update a table maintained to store HMVP candidates for the block with the non-rectangular and non-square portion.

[0548] Clause 18. The method according to any one of clauses 1 to 16, wherein the method further comprises:

[0549] After processing the block without non-rectangular and non-square portions, the motion information of the block without non-rectangular and non-square portions is used to update a table maintained to store HMVP candidates for the block without non-rectangular and non-square portions.

[0550] Clause 19. The method according to any one of clauses 1 to 16, wherein the method further comprises:

[0551] After processing the block without the non-rectangular and non-square portion, the motion information of the block without the non-rectangular and non-square portion is used to update a table maintained to store HMVP candidates for the block with the non-rectangular and non-square portion.

[0552] Clause 20. The method of any one of clauses 1-19, wherein the geometric segmentation mode comprises a triangulation segmentation mode.

[0553] Clause 21. A method according to any one of clauses 1-20, wherein the method is applicable to other types of motion candidate lists.

[0554] Clause 22. A video processing device comprising a processor configured to implement the method of any one of clauses 1 to 21.

[0555] Clause 23. The device of clause 22, wherein the device is a video encoder.

[0556] Clause 24. The device of Clause 22, wherein the device is a video decoder.

[0557] Clause 25. A computer-readable recording medium having recorded thereon a program including codes for a processor to execute the method of any one of Clauses 1 to 21.

[0558] Some features preferably implemented by other embodiments are now disclosed in a clause-based format.

[0559] Clause 1. A method for processing a video, comprising:

[0560] during conversion between a first block of visual media data and a corresponding encoded representation of the visual media data, determining that the first block is encoded in a geometric partitioning mode;

[0561] determining motion information of at least a sub-portion of the first block;

[0562] performing a transformation of the first block using the motion information of the at least one sub-portion;

[0563] Wherein, determining the motion information of at least one sub-portion of the first block includes:

[0564] A motion candidate list is constructed using at least one history-based motion vector prediction (HMVP) candidate, and the motion information is determined from the motion candidate list; wherein the at least one HMVP candidate includes motion information based on a previously encoded block.

[0565] Clause 2. The method of clause 1, wherein encoding the first block in a geometric partitioning mode comprises:

[0566] dividing the first block into a plurality of sub-parts;

[0567] Wherein, at least one of the plurality of sub-portions is a non-rectangular and non-square portion.

[0568] Clause 3. The method of clause 1, wherein the at least one HMVP candidate is added directly to the motion candidate list.

[0569] Clause 4. A method according to any one of clauses 1 to 3, wherein constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0570] One HMVP candidate is used to determine a first motion candidate and a second motion candidate, one of which is unidirectionally predicted using list 0 motion information of the HMVP candidate and the other of which is unidirectionally predicted using list 1 motion information of the HMVP candidate.

[0571] Clause 5. The method according to any one of clauses 1 to 4, further comprising:

[0572] In response to inserting a motion candidate derived from the HMVP candidate, pruning is performed using other motion candidates based on spatial or temporal video blocks.

[0573] Clause 6. The method according to any one of clauses 1 to 5, further comprising:

[0574] In response to inserting the motion candidate derived from the HMVP candidate, pruning is performed using other motion candidates based on other HMVP candidates.

[0575] Clause 7. The method according to any one of clauses 1 to 6, further comprising:

[0576] In response to inserting a motion candidate derived from the HMVP candidate, pruning is performed using other motion candidates based on the HMVP candidate.

[0577] Clause 8. A method according to any one of clauses 1 to 7, wherein constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0578] After the motion candidates are derived from one or both of the spatial or temporal blocks, at least one motion candidate derived from the HMVP candidate is added to the motion candidate list.

[0579] Clause 9. A method according to any one of clauses 1 to 8, wherein constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0580] After or before a predetermined step in a motion candidate list construction process based on motion information of a spatial or temporal block, at least one motion candidate derived from the HMVP candidate is added to the motion candidate list.

[0581] Clause 10. A method according to any one of clauses 1 to 9, wherein constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0582] After or before a plurality of predetermined steps in a motion candidate list construction process based on motion information of a spatial or temporal block, at least one motion candidate derived from the HMVP candidate is added to the motion candidate list.

[0583] Clause 11. A method according to any one of clauses 1 to 10, wherein constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0584] At least one motion candidate derived from the HMVP candidate using unidirectional prediction is added to the motion candidate list after all the original unidirectional predicted candidates.

[0585] Clause 12. A method according to any one of clauses 1 to 11, wherein constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0586] After the truncated list 0 predicted candidates, at least one motion candidate derived from the HMVP candidate from list 0 using uni-directional prediction or bi-directional prediction is added to the motion candidate list.

[0587] Clause 13. A method according to any one of clauses 1 to 12, wherein constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0588] After the truncated list 1 predicted candidates, at least one motion candidate derived from the HMVP candidate from list 1 using unidirectional prediction or bidirectional prediction is added to the motion candidate list.

[0589] Clause 14. A method according to any one of clauses 1 to 13, wherein constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0590] After average unidirectional prediction of motion candidates from list 0 or list 1, at least one motion candidate derived from the HMVP candidate is added to the motion candidate object list.

[0591] Clause 15. A method according to any one of clauses 1 to 14, wherein constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0592] At least one motion candidate derived from the HMVP candidate is added to the motion candidate object list before average unidirectional prediction of the motion candidates from list 0 or list 1.

[0593] Clause 16. A method according to any one of clauses 1 to 15, wherein constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0594] At least one motion candidate derived from the HMVP candidate is added to the motion candidate list according to the interleaving of motion candidates based on motion information of a spatial or temporal block related to a current block.

[0595] Clause 17. The method of any of clauses 1-16, wherein the motion candidate derived from the HMVP candidate is set equal to the HMVP candidate.

[0596] Clause 18. A method according to any one of clauses 1 to 17, wherein constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0597] At least one motion candidate derived from List 0 and List 1 of the HMVP candidates is added to the motion candidate list before a motion candidate derived from List 0 and List 1 of another HMVP candidate.

[0598] Clause 19. A method according to any one of clauses 1 to 18, wherein constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0599] At least one motion candidate derived from List 0 of the first set of HMVP candidates is added to the motion candidate list before the motion candidate derived from List 1 of the second set of HMVP candidates.

[0600] Clause 20. The method of Clause 19, wherein the first set and the second set are the same.

[0601] Clause 21. The method of clause 19, wherein the first set and the second set are different, and the first set includes HMVP candidates using unidirectional prediction and bidirectional prediction from list 0, and the second set includes HMVP candidates using unidirectional prediction and bidirectional prediction from list 1.

[0602] Clause 22. The method of Clause 19, wherein the first set includes a first number of HMVP candidates, the second set includes a second number of HMVP candidates, and the first number and the second number are different.

[0603] Clause 23. A method according to any one of clauses 1 to 22, wherein constructing a motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0604] The HMVP candidates of list LX are scaled to list L(1-X) to generate scaled HMVP candidates for L(1-X).

[0605] Clause 24. The method of clause 23, wherein constructing the motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0606] The scaled HMVP candidate is added after other motion candidates derived from the HMVP candidate.

[0607] Clause 25. The method of clause 23, wherein constructing the motion candidate list using at least one history-based motion vector prediction (HMVP) candidate comprises:

[0608] The scaled HMVP candidate is added after other motion candidates derived from the HMVP candidate and before the temporal candidate.

[0609] Clause 26. The method of any of clauses 1-25, wherein an order of checking HMVP candidates to be added to the motion candidate list is based on an index of the HMVP candidate.

[0610] Clause 27. The method of any of clauses 1-25, wherein an order of checking HMVP candidates to be added to the motion candidate list is based on a prediction direction.

[0611] Clause 28. The method of any of clauses 1-25, wherein an order of checking HMVP candidates to be added to the motion candidate list is based on motion information.

[0612] Clause 29. The method according to any one of clauses 1-28, wherein the number of HMVP candidates to be checked during the motion candidate list construction process is predefined.

[0613] Clause 30. A method according to any one of clauses 1-28, wherein the number of HMVP candidates to be checked during the motion candidate list construction process is based on the block size of the current block, the block shape of the current block, or the number of candidates available before checking HMVP candidates.

[0614] Clause 31. A method according to any one of clauses 1-28, wherein the number of HMVP candidates to be checked during the motion candidate list construction process is signaled in a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice group header, a slice header, a row group of a coding tree unit (CTU), a CTU or a CTU group.

[0615] Clause 32. A method according to any one of clauses 1-28, wherein the HMVP candidate to be checked selected in the motion candidate list is based on a prediction direction, motion vector (MV) information, a reference picture index, a POC distance of a reference picture, and at least one of a current picture of the candidate and / or candidate index.

[0616] Clause 33. The method of any of clauses 1-28, wherein application of HMVP on the current block is based on a block size of the current block or a block shape of the current block.

[0617] Clause 34. The method according to any one of clauses 1-33, wherein the motion candidate list comprises a Merge list.

[0618] Clause 35. The method according to any one of clauses 1-33, wherein the motion candidate list is applicable to other types of motion candidate lists besides a Merge candidate list.

[0619] Clause 36. A video processing device comprising a processor configured to implement the method of any one of clauses 1 to 35.

[0620] Clause 37. The apparatus of clause 36, wherein the apparatus is a video encoder.

[0621] Clause 38. The device of clause 36, wherein the device is a video decoder.

[0622] Clause 39. A computer-readable recording medium having recorded thereon a program including codes for a processor to execute the method of any one of Clauses 1 to 35.

[0623] The disclosed and other solutions, examples, embodiments, modules and functional operations described herein may be implemented in digital electronic circuits, or computer software, firmware or hardware, including the structures disclosed herein and their structural equivalents, or a combination of one or more thereof. The present disclosure and other embodiments may be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on a tangible and non-volatile computer-readable medium, for execution by a data processing device or for controlling the operation of the data processing device. The computer-readable medium may be a machine-readable storage device, a machine-readable storage substrate, a storage device, a material composition that affects a machine-readable propagation signal, or a combination of one or more thereof. The term "data processing unit" or "data processing device" includes all devices, equipment and machines for processing data, including, for example, a programmable processor, a computer or a multiprocessor or a computer group. In addition to hardware, the device may also include code that creates an execution environment for a computer program, for example, code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more thereof. A propagated signal is an artificially generated signal, for example, a machine-generated electrical, optical or electromagnetic signal, which is generated to encode information for transmission to a suitable receiver device.

[0624] A computer program (also referred to as a program, software, software application, script, or code) may be written in any form of programming language (including compiled or interpreted languages) and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program may be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program, or in multiple coordinated files (e.g., files that store one or more modules, subroutines, or portions of code). A computer program may be deployed for execution on one or more computers that are located at one site or distributed across multiple sites and interconnected by a communications network.

[0625] The processes and logic flows described in this specification may be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be performed by special purpose logic circuits, and the apparatus may also be implemented as special purpose logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application specific integrated circuits).

[0626] For example, processors suitable for executing computer programs include general and special purpose microprocessors, and any one or more of any type of digital computer. Typically, the processor will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a processor that executes instructions and one or more storage devices that store instructions and data. Typically, a computer will also include one or more mass storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or be operatively coupled to one or more mass storage devices to receive data from them or transfer data to one or more mass storage devices, or both. However, a computer does not necessarily have such a device. 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; magnetic disks, such as internal hard disks or removable hard disks; magneto-optical disks; and CD ROM and DVD ROM disks. The processor and memory may be supplemented by, or incorporated into, dedicated logic circuits.

[0627] Although this patent document contains many details, they should not be interpreted as limitations on any subject matter or the scope of the claims, but rather as descriptions of features of specific embodiments of specific technologies. Certain features described in this patent document in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various functions described in the context of a single embodiment can also be implemented separately in multiple embodiments, or in any suitable subcombination. In addition, although the above-mentioned features may be described as working in certain combinations, or even initially required to be so, in some cases, one or more features in the claim combination can be removed from the combination, and the combination of claims can be directed to subcombinations or variations of subcombinations.

[0628] Likewise, although operations are described in a particular order in the drawings, this should not be understood as requiring that such operations be performed in the particular order or order shown, or that all illustrated operations be performed, in order to achieve the desired results. In addition, the separation of various system components in the embodiments described in this patent document should not be understood as requiring such separation in all embodiments.

[0629] Only a few implementations and examples are described, and other implementations, enhancements, and variations can be made based on what is described and illustrated in this patent document.

Claims

1. A method for processing video data, include: during conversion between a first block of visual media data and a corresponding codec representation of the visual media data, determining a plurality of sub-portions of the first block; determining motion information of a plurality of sub-portions of the first block; performing a transform of the first block using motion information of the plurality of sub-portions of the first block; and The first block is non-Merge inter-frame prediction coded and decoded, and at least one of the multiple sub-parts of the first block is a non-rectangular and non-square sub-part, wherein the first motion information of a first sub-portion among the plurality of sub-portions of the first block is used to determine the second motion information of a second sub-portion among the plurality of sub-portions of the first block, and / or the second motion information of the second sub-portion is used to determine the first motion information of the first sub-portion, and The first sub-portion and the second sub-portion are sub-portions obtained by dividing the same block of the visual media data, and at least one of the first sub-portion and the second sub-portion is a non-rectangular and non-square sub-portion.

2. The method according to claim 1, in, Determining predictions of the plurality of sub-portions of the first block includes: The predicted values ​​of the samples are filtered along an edge boundary of at least one of the plurality of sub-portions of the first block.

3. The method according to claim 1, include: during conversion between a second block of the visual media data and a corresponding codec representation of the visual media data, determining a plurality of sub-portions of the second block; determining intra prediction information for a plurality of sub-portions of the second block; performing a transform of the second block using intra prediction information of the plurality of sub-portions of the second block; and wherein the second block is intra-prediction coded, and at least one of the plurality of sub-portions of the second block is a non-rectangular and non-square sub-portion, Wherein, determining the intra prediction information of the plurality of sub-parts of the second block comprises: determining first intra prediction information of a third sub-portion of the plurality of sub-portions of the second block using a first intra prediction mode; determining second intra prediction information for a fourth sub-portion of the plurality of sub-portions of the second block using a second intra prediction mode; The first intra-frame prediction mode is different from the second intra-frame prediction mode.

4. The method according to claim 3, in, determining the first intra prediction information by using a first subset of intra prediction modes, and determining the second intra prediction information by using a second subset of intra prediction modes; The first subset of intra-frame prediction modes is different from the second subset of intra-frame prediction modes.

5. The method according to claim 4, in, The first and / or second subset of intra prediction modes is based on at least one of a position, a size and a shape of the third sub-portion and / or the fourth sub-portion.

6. The method according to any one of claims 3 to 5, in, Determining intra prediction information for a plurality of sub-portions of the second block further comprises: The predicted values ​​of the samples are filtered along an edge boundary of at least one of the plurality of sub-portions of the second block.

7. The method according to any one of claims 3 to 5, in, The first intra-frame prediction information of the third sub-portion included in the multiple sub-portions of the second block is determined without using the second intra-frame prediction information of the fourth sub-portion included in the multiple sub-portions of the second block, and the second intra-frame prediction information of the fourth sub-portion is determined without using the first intra-frame prediction information of the third sub-portion.

8. The method according to any one of claims 3 to 5, in, The first intra-frame prediction information of the third sub-portion included in the multiple sub-portions of the second block is determined using the second intra-frame prediction information of the fourth sub-portion included in the multiple sub-portions of the second block, and / or the second intra-frame prediction information of the fourth sub-portion is determined using the first intra-frame prediction information of the third sub-portion.

9. The method according to claim 1, further comprising: include: performing a conversion between a third block of visual media data and a corresponding codec representation of the visual media data, wherein the third block is partitioned into a plurality of sub-portions according to a partitioning pattern, wherein a fifth sub-portion of the plurality of sub-portions of the third block has a non-rectangular and non-square shape; Processing a fifth sub-portion of the plurality of sub-portions of the third block using an intra-frame prediction coding mode; and A sixth sub-portion of the plurality of sub-portions of the third block is processed using an inter-frame prediction coding mode.

10. The method according to claim 9, in, A sixth sub-portion of the plurality of sub-portions of the third block is processed by applying bi-directional prediction.

11. The method according to any one of claims 9 to 10, further comprising: include: In response to the third block being encoded and decoded in Merge mode, the motion information is signaled using a Merge index.

12. The method according to any one of claims 9 to 10, further comprising: include: Intra prediction information for a fifth sub-portion of the plurality of sub-portions of the third block is determined using a third subset of intra prediction modes.

13. The method according to claim 12, in, The third subset of intra prediction modes is based on at least one of a position, a size, and a shape of a fifth sub-portion of the plurality of sub-portions of the third block.

14. The method according to claim 3, further comprising: include: The transforming of the second block is performed using intra prediction codec information of one or more non-adjacent spatial blocks.

15. The method according to claim 14, in, The performing the conversion of the second block using the intra prediction coding information of one or more non-adjacent spatial blocks comprises: The conversion of the second block is performed using an intra prediction mode of one or more non-adjacent spatial blocks.

16. The method according to claim 14, in, Codec information for using time blocks.

17. A video processing device, comprising a processor configured to implement the method according to any one of claims 1 to 16.

18. The device according to claim 17, in, The device is a video encoder.

19. The device according to claim 17, in, The device is a video decoder.

20. A computer-readable recording medium having recorded thereon a program including codes for a processor to execute the method according to any one of claims 1 to 16.

Citation Information

Cited By

  • HMVP table improvements

    US12382087B2