Maintaining tables for HMVP candidate storage devices
The method enhances video coding efficiency by geometrically partitioning video blocks into non-rectangular sub-portions and using history-based motion vector prediction to address inefficiencies in encoding non-rectangular blocks, improving computational performance and bitstream generation.
Patent Information
- Application Number
- JP2023076888
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-05-09
- Filing Date
- 2023-05-08
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2039-11-04
AI Technical Summary
Existing video coding standards face challenges in efficiently encoding and decoding non-rectangular and non-square video blocks, particularly in handling geometric partitioning and history-based motion vector prediction, which can lead to increased computational complexity and reduced coding efficiency.
The proposed method involves geometric partitioning of video blocks into non-rectangular and non-square sub-portions, using history-based motion vector prediction (HMVP) candidates to enhance encoding efficiency by deriving motion information from adjacent and non-adjacent spatial blocks, and incorporating these candidates into merge lists for improved encoding and decoding processes.
This approach improves the coding efficiency and reduces computational complexity by allowing for more flexible and efficient encoding of non-rectangular video blocks, utilizing history-based motion vector prediction to optimize bitstream generation and decoding performance.
Smart Images

Figure 0007534482000047 
Figure 0007534482000059 
Figure 0007534482000039
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application is a divisional application of Japanese Patent Application No. 2021-522382, which is based on International Patent Application No. PCT / CN2019 / 115453 filed on November 4, 2019, and claims priority to and the benefit 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. The entire disclosures of the aforementioned applications are incorporated by reference as part of the disclosure of this specification.
[0002] This specification relates to video and image encoding and decoding techniques. [Background technology]
[0003] Digital video accounts for the largest bandwidth usage in the Internet and other digital communications networks, and the bandwidth demands for digital video usage are expected to continue to grow as the number of connected user devices capable of receiving and displaying video increases. Summary of the Invention
[0004] The disclosed techniques may be used by any video or image decoder or encoder embodiment in which geometry partitioning with history-based motion vector prediction (HMVP) is used.
[0005] In one exemplary aspect, a method of processing video is disclosed that includes: determining, by a processing device, whether a first video block is intra-coded or non-merged inter-coded; determining, by the processing device, a first sub-portion and a second sub-portion for the first video block based on the determination of whether the first video block is intra-coded or non-merged inter-coded, where one or both of the first sub-portion or the second sub-portion are non-rectangular and non-square portions of the first video block; and performing further processing of the first video block using the first sub-portion and the second sub-portion.
[0006] In another example aspect, a video processing method includes determining, by a processing device, whether a first video block is intra-coded or non-merged inter-coded; determining, by the processing device, a first sub-portion and a second sub-portion for the first video block, where one or both of the first sub-portion or the second sub-portion are non-rectangular and non-square portions of the first video block; and further processing the first video block using the first sub-portion and the second sub-portion, where at least one sub-portion is merged or non-merged inter-coded and uses the current image as a reference image.
[0007] In another example aspect, a video processing method includes determining, by a processing device, whether a first video block is intra-coded or non-merged inter-coded; determining, by the processing device, a first sub-portion and a second sub-portion for the first video block, where one or both of the first sub-portion or the second sub-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 sub-portion and the second sub-portion, where the further processing of the first video block using the first sub-portion and the second sub-portion is based on inter- or intra-coded information of non-adjacent spatial blocks to the first video block.
[0008] In another example aspect, a video processing method includes determining that a first video block is coded in triangular portion mode (TPM) using a triangular predicted portion of the first video block, determining that a second video block is coded using non-TPM using a non-triangular predicted portion of the second video block, further processing the first and second video blocks using the stored HMVP candidates, and storing HMVP candidates associated with the first and second video blocks.
[0009] In another exemplary aspect, a video processing method includes: determining, by a processing device, that a first video block includes a prediction portion that includes a non-rectangular and non-square portion of the first video block; identifying an HMVP candidate; adding one or more motion candidates derived from the HMVP candidate to a merge list associated with the video block that includes the prediction portion that is non-rectangular and non-square; and further processing the first video block using the merge list.
[0010] In another exemplary aspect, a video processing method includes, during a transformation between a current block of visual media data and a corresponding encoded representation of the visual media data, determining a plurality of sub-portions for the current block, determining intra prediction information for the plurality of sub-portions, and performing a transformation of the current block using the intra prediction information for the plurality of sub-portions, 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.
[0011] In another exemplary aspect, a video processing method includes, 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 for a current block, determining motion information of the plurality of sub-portions, and performing conversion of the current block using the motion information of the plurality of sub-portions, wherein the current block is inter-coded and at least one of the plurality of sub-portions is a non-rectangular and non-square sub-portion.
[0012] In another exemplary aspect, a video processing method includes converting between a current block of visual media data and a corresponding encoded representation of the visual media data, where the current block is divided into a plurality of sub-portions according to a division pattern, where a first sub-portion has a non-rectangular, non-square shape; processing the first sub-portion in an intra-coding mode; and processing the second sub-portion in an inter-coding mode.
[0013] In another exemplary aspect, a video processing method includes converting between a current block of visual media data and a corresponding encoded representation of the visual media data, where the current block is divided into a plurality of sub-portions according to a division pattern where a first sub-portion has a non-rectangular, non-square shape, and at least one of the plurality of sub-portions is merged or non-merged inter-coded, using the current picture as a reference picture.
[0014] In another exemplary aspect, a video processing method includes performing a conversion between a current block of visual media data and a corresponding coded representation of the visual media data, where a first predictive partitioning divides the current block into a plurality of sub-portions according to a partitioning pattern having a non-rectangular, non-square shape, and performing the conversion using inter- or intra-coded information of one or more non-adjacent spatial blocks.
[0015] In another exemplary aspect, a video processing method includes, during a transformation between a first block of visual media data and a corresponding encoded representation of the visual media data, determining a first block encoded in a geometry partitioning mode, determining motion information of at least one sub-portion of the first block based on at least one table that stores historical motion vector prediction (HMVP) candidates including motion information based on the encoded block, and performing a transformation of the first block using the determined motion information.
[0016] In another exemplary aspect, a video processing method includes, during a transformation between a first block of visual media data and a corresponding encoded representation of the visual media data, determining a first block encoded in a geometry partitioning mode, determining motion information of at least one sub-portion of the first block, and transforming the first block using the motion information of the at least one sub-portion, where determining the motion information of the at least one sub-portion includes using at least one history-based motion vector prediction (HMVP) candidate including motion information based on the aforementioned encoded block to construct a motion candidate list, and determining the motion information from the motion candidate list.
[0017] In another exemplary aspect, the method may be implemented by a video encoder apparatus that includes a processing unit.
[0018] In another exemplary aspect, the method may be implemented by a video decoder device that includes a processing device.
[0019] In yet another exemplary aspect, the methods may be embodied in a form of processor executable instructions and stored on a computer readable program medium.
[0020] These and other aspects are further described herein. [Brief description of the drawings]
[0021] [Figure 1] 13 illustrates an example of a process for deriving a merge candidate list. [Diagram 2] 1 shows examples of spatial merge candidate locations. [Diagram 3] 13 shows examples of candidate pairs considered in a spatial merge candidate redundancy check. [Figure 4] Examples of the location of the second PU consisting of Nx2N and 2NxN divisions are shown. [Diagram 5] 13 illustrates an example of scaling of motion vectors for temporal merge candidates. [Figure 6] FIG. 13 is a diagram showing an example of candidate positions C0 and C1 of temporal merge candidates. [Figure 7] 1 illustrates an example of combined bi-predictive merge candidates. [Figure 8] 13 shows an example of a process for deriving motion vector prediction candidates. [Figure 9] 13 illustrates an example of motion vector scaling for spatial motion vector candidates. [Figure 10] 13 shows an example of ATMVP motion prediction for a CU. [Figure 11] An example of one CU with four sub-blocks (AD) and its neighboring blocks is shown. [Figure 12] 1 shows an example of a flowchart for encoding with different MV precision. [Figure 13] An example of splitting one CU into two triangular prediction units (two split types) is shown. [Figure 14] An example of the location of neighboring blocks is shown below. [Figure 15] 13 shows an example of a CU to which the first set of weighting coefficients is applied. [Figure 16] 2 shows an example of a motion vector storage device. [Figure 17] 1 shows an example of neighboring blocks (A and L) used for context selection in TPM flag encoding. [Figure 18] An example of a sub-block to which OBMC is applied is shown below. [Figure 19] 1 shows an example of nearby samples used to derive IC parameters. [Figure 20] An example of a simplified affine motion model is shown. [Figure 21] 13 shows an example of affine MVF per sub-block. [Figure 22] Examples of a four-parameter affine model (a) and a six-parameter affine model (b) are shown. [Diagram 23] Here is an example of an MVP for AF_INTER. [Figure 24] Here are some examples of AF_MERGE candidates: [Diagram 25] 13 shows an example of candidate positions for an affine merge mode. [Figure 26] 1 shows an example of an optical flow trajectory. [Figure 27] Here is an example of a BIO w / o block extension, a) positioning accesses outside the block, and b) using padding to avoid extra memory accesses and computations. [Figure 28] 1 shows an example of DMVR based on bilateral template matching. [Figure 29] FIG. 1 is a block diagram showing an example of a video processing device. [Diagram 30] 1 shows a block diagram of an example implementation of a video encoder. [Diagram 31] 1 is a flowchart of an example of a video processing method. [Diagram 32] 1 is a flowchart of an example of a video processing method. [Diagram 33] 1 is a flowchart of an example of a video processing method. [Diagram 34] 1 is a flowchart of an example of a video processing method. [Diagram 35] 1 is a flowchart of an example of a video processing method. [Diagram 36] 1 is a flowchart of an example of a video processing method. [Figure 37] 1 is a flowchart of an example of a video processing method. [Figure 38] 1 is a flowchart of an example of a video processing method. [Figure 39] 1 is a flowchart of an example of a video processing method. [Diagram 40] 1 is a flowchart of an example of a video processing method. [Diagram 41] 1 is a flowchart of an example of a video processing method. [Diagram 42] 1 is a flowchart of an example of a video processing method. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0022] This specification provides various techniques that can be used by a decoder of an image or video bitstream to improve the quality of the decompressed or decoded digital video or image. For simplicity, the term "video" is used herein to include both a series of pictures (conventionally called video) and individual images. Furthermore, a video encoder may implement these techniques during the encoding process to reconstruct the decoded frames that are used for further encoding.
[0023] Section headings are used herein for ease of understanding, but are not intended to limit the embodiments and techniques to the corresponding sections, such that embodiments from one section may be combined with examples from other sections.
[0024] 1. Overview This patent specification relates to video coding technology. In particular, the present invention relates to motion vector coding with geometry partitioning in video coding. The present invention can be applied to existing video coding standards such as HEVC or standards to be finalized (e.g., general purpose video coding). The present invention can also be applied to future video coding standards or video codecs.
[0025] 2. Background technology Video coding standards have evolved primarily through the development of well-known ITU-T and ISO / IEC standards. ITU-T has produced H.261 and H.263, ISO / IEC MPEG-1 and MPEG-4 Visual, and the two organizations have jointly produced H.262 / MPEG-2Video, H.264 / MPEG-4 Advanced Video Coding (AVC), and H.265 / HEVC standards. The video coding standard, H.262, is based on a hybrid video coding structure in which temporal prediction plus transform coding is utilized. In 2015, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) to explore future video coding technologies beyond HEVC. Since then, many new methods have been adopted by JVET and incorporated into reference software called the Joint Exploration Model (JEM). In April 2018, the Joint Video Exploration Team (JVET) was formed between VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) to work on the VVC standard, which aims to reduce the bitrate by 50% compared to HEVC.
[0026] 30 is a block diagram of an example implementation of a video encoder, showing that the encoder implementation incorporates a feedback path in which the video encoder also performs a video decoding function (reconstructing a compressed representation of the video data for use in encoding subsequent video data).
[0027] 2.1 Inter Prediction in HEVC / H.265 Each inter-predicted PU has motion parameters for one or two reference picture lists. The motion parameters include a motion vector and a reference picture index. The use of one of the two reference picture lists may be signaled using inter_pred_idc. The motion vector may be explicitly coded as a delta to the predictor.
[0028] If one CU is coded in skip mode, one PU is associated with this CU, there are no significant residual coefficients, no coded motion vector deltas, and no reference picture indexes. A merge mode is specified, which obtains motion parameters for the current PU from neighboring PUs, including spatial and temporal candidates. The merge mode can be applied to any inter-predicted PU, not just for skip mode. An alternative to the merge mode is explicit transmission of motion parameters, explicitly signaling, for each PU, the motion vector (more precisely, the difference of the motion vector compared to the motion vector predictor), which is the reference picture index corresponding to each reference picture list and the use of the reference picture list. Such a mode is referred to as Advanced Motion Vector Prediction (AMVP) in this disclosure.
[0029] If the signaling indicates to use one of the two reference picture lists, the PU is generated from a block of one sample. This is called "uni-prediction." Uni-prediction is available for both P and B slices.
[0030] If the signaling indicates to use both reference picture lists, generate the PU from a block of two samples. This is called "bi-prediction." Bi-prediction is only available for B slices.
[0031] The inter prediction modes defined in HEVC will be described in detail below. First, the merge mode will be described.
[0032] 2.1.1. Reference Picture List In HEVC, the term inter prediction is used to indicate a prediction derived from data elements (e.g., sample values or motion vectors) of reference pictures other than the currently decoded picture. Similar to H.264 / AVC, a picture can be predicted from multiple reference pictures. The reference pictures used for inter prediction are organized into one or more reference picture lists. A reference index identifies which reference picture in the list to use to generate the prediction signal.
[0033] One reference picture list, List0, is used for P slices, and two reference picture lists, List0 and List1, are used for B slices. Note that the reference pictures included in List0 / 1 may be in capture / display order or from past and future pictures.
[0034] 2.1.2 Merge Mode 2.1.2.1 Deriving Merge Mode Candidates When predicting a PU using merge mode, an index pointing to an entry in the merge candidate list is parsed from the bitstream and used to look up the motion information. The construction of this list is specified in the HEVC standard and can be summarized according to the following sequence of steps:
[0035] Step 1: Initial candidate selection Step 1.1: Spatial candidate derivation Step 1.2: Redundancy check of spatial candidates Step 1.3: Temporal candidate derivation Step 2: Additional candidate insertions Step 2.1: Creating bi-predictive candidates Step 2.2: Inserting zero motion candidates
[0036] These steps are also shown diagrammatically in Fig. 1. For spatial merge candidate derivation, select up to four merge candidates among candidates at five different positions. For temporal merge candidate derivation, select up to one merge candidate among two candidates. Since we assume a constant number of candidates per PU on the decoder side, we generate additional candidates if the number of candidates obtained in step 1 does not reach the maximum number of merge candidates (MaxNumMergeCand) signaled in the slice header. Since the number of candidates is constant, we use a truncated unary binarization (TU) to encode the index of the best merge candidate. If the size of a CU is equal to 8, all PUs of the current CU share one merge candidate list, which is the same as the merge candidate list of the 2N × 2N prediction units.
[0037] The operations associated with the above steps are described in detail below.
[0038] FIG. 1 illustrates an example of a process for deriving a merge candidate list.
[0039] 2.1.2.2. Spatial candidate derivation In the derivation of spatial merge candidates, up to four merge candidates are selected from the candidates at the positions shown in FIG. 2. The order of derivation is A1, B1, B0, A0, B2. Position B2 is considered only if any of the PUs at positions A1, B1, B0, A0 are not available (e.g., because they belong to another slice or tile) or are intra-coded. After adding the candidate at position A1, the remaining candidates are subjected to a redundancy check, which ensures that candidates with the same motion information are removed from the list, improving coding efficiency. To reduce computational complexity, the aforementioned redundancy check does not consider all possible candidate pairs. Instead, only the pairs linked by arrows in FIG. 3 are considered, and a candidate is added to the list only if the corresponding candidate used for the redundancy check does not have the same motion information. Another source of duplicated motion information is a "second PU" associated with a partition different from 2N×2N. As an example, FIG. 4 shows the second PU for N×2N and 2N×N cases, respectively. When splitting the current PU into N×2N, the candidate at position A1 is not considered for list construction. In fact, adding this candidate makes the bi-prediction units have the same motion information, and it is redundant to have only one PU in one coding unit. Similarly, when splitting the current PU into 2N×N, position B1 is not considered.
[0040] FIG. 2 shows examples of spatial merge candidate locations.
[0041] FIG. 3 shows examples of candidate pairs that are considered for redundancy checking of spatial merge candidates.
[0042] FIG. 4 shows examples of the location of the second PU consisting of N×2N and 2N×N divisions.
[0043] 2.1.2.3. Temporal candidate derivation In this step, only one candidate is added to the list. Specifically, in the derivation of this temporal merge candidate, a scaled motion vector is derived based on the co-located PU belonging to the picture with the smallest POC difference with the current picture in a given reference picture list. In the slice header, the reference picture list used for the derivation of the co-located PU is explicitly signaled. As shown by the dotted line in Figure 5, the scaled motion vector of the temporal merge candidate is obtained, which is scaled from the motion vector of the co-located PU by utilizing the POC distances tb and td. tb is defined as the POC difference between the reference picture of the current picture and the current picture, and td is defined as the POC difference between the reference picture of the co-located PU and the co-located picture. The reference picture index of the temporal merge candidate is set equal to zero. The practical realization of this scaling process is described in the HEVC specification. For B slices, we take two motion vectors, one for reference picture list 0 and one for reference picture list 1, and combine them to form a bi-predictive merge candidate.
[0044] FIG. 5 shows an example of motion vector scaling for temporal merging candidates.
[0045] At the same position PU(Y) belonging to the reference frame, select the position of the temporal candidate between candidates C0 and C1 as shown in Figure 6. If the PU at position C0 is not available, is intra-coded, or is outside the current CTU row, position C1 is used. Otherwise, position C0 is used to derive the temporal merge candidate.
[0046] FIG. 6 is a diagram showing an example of candidate positions C0 and C1 of temporal merge candidates.
[0047] 2.1.2.4. Additional Candidate Inserts Besides the spatio-temporal merge candidates, there are two additional types of merge candidates: combined bi-predictive merge candidates and zero merge candidates. The combined bi-predictive merge candidates are generated by utilizing the spatio-temporal merge candidates. The combined bi-predictive merge candidates are used only for B slices. The combined bi-predictive candidate is generated by combining the first reference picture list motion parameters of the first candidate with the second reference picture list motion parameters of another candidate. If these two tuples provide different motion hypotheses, these tuples form a new bi-predictive candidate. As an example, FIG. 7 shows the case where two candidates with mvL0, refIdxL0 or mvL1, refIdxL1 in the original list (left side) are used to generate a combined bi-predictive merge candidate that is added to the final list (right side). There are various rules for the combinations considered to generate these additional merge candidates.
[0048] FIG. 7 shows examples of combined bi-predictive merge candidates.
[0049] By inserting zero motion candidates and filling the remaining entries in the merge candidate list, the MaxNumMergeCand capacity is hit. These candidates have a spatial displacement of zero 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 one for unidirectional prediction and two for bidirectional prediction, respectively. Finally, no redundancy check is performed on these candidates.
[0050] 2.1.2.5. Motion Estimation Regions for Parallel Processing To speed up the encoding process, motion estimation can be done in parallel, thereby deriving motion vectors for all prediction units in a given region simultaneously. Derivation of merge candidates from spatial neighborhoods can interfere with parallel processing, since one prediction unit cannot derive motion parameters from neighboring PUs until its associated motion estimation is completed. To mitigate the tradeoff between encoding efficiency and processing latency, HEVC specifies a motion estimation region (MER), the size of which is signaled in the picture parameter set using the "log2_parallel_merge_level_minus2" syntax element. When specifying one MER, merge candidates in the same region are marked as unavailable and therefore not considered in list construction.
[0051] 2.1.3 AMVP AMVP exploits the spatio-temporal correlation of motion vectors with neighboring PUs, which is used for unambiguous transmission of motion parameters. In each reference picture list, we build a motion vector candidate list by checking the availability of the left and top temporal neighboring PU positions, removing redundant candidates, and adding zero vectors to keep the length of the candidate list constant. The encoder can then select the best predictor from the candidate list and transmit the corresponding index indicating the selected candidate. Similar to the merge index signaling, the index of the best motion vector candidate is encoded using a shortened unary term. The maximum value to be coded in this case is 2 (see Figure 8). The following sections will explain the details of the motion vector prediction candidate derivation process.
[0052] 2.1.3.1 Derivation of AMVP Candidates FIG. 8 summarizes the process of deriving motion vector prediction candidates.
[0053] In motion vector prediction, two types of motion vector candidates can be considered: spatial motion vector candidates and temporal motion vector candidates. To derive spatial motion vector candidates, as shown in Figure 2, we finally derive two motion vector candidates based on the motion vectors of each PU at five different positions.
[0054] To derive a temporal motion vector candidate, select one motion vector candidate from two candidates derived based on two different co-located positions. After creating a first spatio-temporal candidate list, remove duplicate motion vector candidates in the list. If the number of candidates is greater than two, remove motion vector candidates whose reference picture index in the associated reference picture list is greater than 1 from the list. If the number of spatio-temporal motion vector candidates is less than two, add an additional zero motion vector candidate to the list.
[0055] 2.1.3.2. Spatial Motion Vector Candidates In deriving spatial motion vector candidates, we consider up to two candidates among five potential candidates derived from PUs located as shown in Figure 2 that are in the same position as the motion merge. The order of derivation for the left side of the current PU is specified as A0, A1, scaled A0, scaled A1. The order of derivation for the top side of the current PU is specified as B0, B1, B2, scaled B0, scaled B1, scaled B2. So, for each side, there are four possible cases for motion vector candidates: two cases that do not require spatial scaling and two cases that use spatial scaling. The four different cases can be summarized as follows:
[0056] No spatial scaling (1) The same reference picture list and the same reference picture index (same POC) (2) Different reference picture lists, but the same reference picture (same POC) Spatial Scaling (3) Same reference picture list, but different reference pictures (different POC) (4) Different reference picture lists and different reference pictures (different POCs)
[0057] First check the non-spatial scaling case, then do spatial scaling. Regardless of the reference picture list, if the POC is different between the reference picture of the neighboring PU and the reference picture of the current PU, consider spatial scaling. If all PUs of the left candidate are not available or are intra-coded, scaling of the top motion vector helps in the parallel derivation of the left and top MV candidates. Otherwise, no spatial scaling is allowed for the top motion vector.
[0058] FIG. 9 shows an example of motion vector scaling for spatial motion vector candidates.
[0059] In the spatial scaling process, the motion vectors of neighboring PUs are scaled in the same manner as in temporal scaling, as shown in Figure 9. The main difference is that the reference picture list and index of the current PU are given as input, and the actual scaling process is the same as in temporal scaling.
[0060] 2.1.3.3. Temporal Motion Vector Candidates Except for deriving the reference picture index, all the processes for deriving the temporal merge candidates are the same as those for deriving the spatial motion vector candidates (see FIG. 6). The reference picture index is signaled to the decoder.
[0061] 2.2. New Inter Prediction Method in JEM 2.2.1. Sub-CU-based motion vector prediction In JEM with QTBT, each CU can have at most one motion parameter set for each prediction direction. In the encoder, we consider two sub-CU level motion vector prediction methods by splitting the large CU into sub-CUs and deriving motion information of all sub-CUs of the large CU. The alternative temporal motion vector prediction (ATMVP) method allows each CU to retrieve multiple sets of motion information from multiple blocks smaller than the current CU in the aligned reference picture. In the spatio-temporal motion vector prediction (STMVP) method, we recursively derive the motion vectors of the sub-CUs using the temporal motion vector predictor and spatial neighborhood motion vectors.
[0062] In order to maintain a more accurate motion field for sub-CU motion prediction, reference frame motion compression is currently disabled.
[0063] FIG. 10 shows an example of ATMVP motion prediction for a CU.
[0064] 2.2.1.1. Alternative Temporal Motion Vector Prediction In alternative temporal motion vector prediction (ATMVP), the motion vector temporal motion vector prediction (TMVP) method is modified by taking a set of multiple motion information (including motion vectors and reference indexes) from a block smaller than the current CU. A sub-CU is a square of NxN blocks (N is set to 4 by default).
[0065] ATMVP predicts the motion vectors of sub-CUs in a CU in two steps. In the first step, the corresponding blocks in a reference picture are identified by a temporal vector. This reference picture is called the motion source picture. In the second step, the current CU is divided into sub-CUs, and the motion vectors and reference indexes of each sub-CU are obtained from the blocks corresponding to each sub-CU.
[0066] In the first step, the reference picture and corresponding block are determined according to the motion information of the spatially neighboring blocks of the current CU. The first merging candidate in the merging candidate list of the current CU is used to avoid the repeated scanning process of the neighboring blocks. The first available motion vector and its associated reference index are set to the temporal vector and the index of the motion source picture. Thus, the corresponding block can be more accurately identified in ATMVP than in TMVP, and the corresponding block (sometimes called the aligned block) is always in the lower right or center position with respect to the current CU.
[0067] In the second step, the corresponding block of the sub-CU is identified by the temporal vector in the motion source picture by adding the temporal vector to the coordinates of the current CU. For each sub-CU, the motion information of its corresponding block (the smallest motion grid covering the center sample) 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, and motion scaling and other procedures are applied, similar to TMVP in HEVC. For example, the decoder checks whether the low-delay condition (POC of all reference pictures of the current picture is smaller than POC of the current picture) is met, and possibly predicts the motion vector MVy (X equals 0 or 1, Y equals 1-X) of each sub-CU using the motion vector MVx (the motion vector corresponding to the reference picture list X).
[0068] 2.2.1.2. Spatio-temporal Motion Vector Prediction (STMVP) In this method, the motion vectors of sub-CUs are derived recursively along the raster scan order. Figure 11 illustrates this concept. Consider an 8x8 CU that contains four 4x4 sub-CUs, A, B, C, and D. The neighboring 4x4 blocks in the current frame are labeled a, b, c, and d.
[0069] The motion derivation of sub-CU A starts by identifying its two spatial neighbors. The first neighbor is the N×N block above sub-CU A (block c). If this block c is not available or is intra-coded, check the other N×N blocks above sub-CU A (starting from block c, going from left to right). The second neighbor is the block to the left of sub-CU A (block b). If block b is not available or is intra-coded, check the other blocks to the left of sub-CU A (starting from top to bottom, starting from block b). Scale the motion information from the neighboring blocks in each list to the first reference frame of the given list. Then derive the temporal motion vector predictor (TMVP) of sub-block A following the same procedure as the TMVP derivation specified in HEVC. Take the motion information of the co-located block at position D and scale it accordingly. Finally, after retrieving and scaling the motion information, average all available motion vectors (up to 3) separately for each reference list. Let this averaged motion vector be the motion vector of the current sub-CU.
[0070] 2.2.1.3. Sub CU Motion Prediction Mode Signaling Sub-CU modes are enabled as additional merge candidates, and no additional syntax elements are required to signal the mode. Add two additional merge candidates to the merge candidate list of each CU to represent ATMVP and STMVP modes. Use up to seven merge candidates if the sequence parameter set indicates that ATMVP and STMVP are enabled. The encoding logic for the additional merge candidates is the same as for merge candidates in HM, i.e., for each CU in a P or B slice, two or more RD checks are required for the two additional merge candidates.
[0071] In JEM, all binary values of the merge index are context coded by CABAC, whereas in HEVC, only the first binary value is context coded and the remaining binary values are context bypass coded.
[0072] 2.2.2. Adaptive Motion Vector Difference Resolution In HEVC, when use_integer_mv_flag is 0 in the slice header, the motion vector difference (MVD) (the difference between the motion vector and the predicted motion vector of the PU) is signaled in units of quarter luma samples. In JEM, locally 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. 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 module.
[0073] For a CU with at least one non-zero MVD module, a first flag is signaled to indicate whether ¼ luma sample MV precision is used in the CU. If the first flag (equal to 1) indicates that ¼ luma sample MV precision is not used, another flag is signaled to indicate whether integer luma sample MV precision or 4 luma sample MV precision is used.
[0074] If the first MVD resolution flag of a CU is zero or is not coded for the CU (i.e., all MVDs in the CU are zero), then 1 / 4 luma sample MV resolution is used for the CU. If the CU uses integer luma sample MV precision or 4 luma sample MV precision, round the MVPs in the CU's AMVP candidate list to the corresponding precision.
[0075] In the encoder, the CU-level RD check is used to determine which MVD resolution to use for the CU. That is, the CU-level RD check is performed three times for each MVD resolution. To increase the speed of the encoder, the following coding method is applied in JEM.
[0076] During the RD check of a CU with the normal 1 / 4 luminance sample MVD resolution, the motion information (integer luminance sample accuracy) of the current CU is stored. During the RD check of 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 fine-tuning, so that the time-consuming motion estimation process does not repeat three times.
[0077] The RD check of the CU with 4 luminance sample MVD resolution is conditionally called. For a CU, if the RD cost of the integer luminance sample MVD resolution is much larger than that of the 1 / 4 luminance sample MVD resolution, the RD check of the 4 luminance sample MVD resolution for the CU is skipped.
[0078] The encoding process is shown in Figure 12. First, the 1 / 4 pixel MV is tested, the RD cost is calculated and denoted as RDCost0. Next, the integer MV is tested and the RD cost is denoted as RDCost1. If RDCost1 < th * RDCost0 (where th is a positive value), the 4 pixel MV is tested; otherwise, the 4 pixel MV is skipped. Basically, when checking the integer or 4 pixel MV, the motion information and RD cost etc. for the 1 / 4 pixel MV are already known, and this can be reused to speed up the encoding process of the integer or 4 pixel MV.
[0079] 2.2.3. Triangle Prediction Mode The concept of the triangle prediction mode (TPM) is to introduce a new triangle partition for motion compensation prediction. As shown in Figure 13, a CU is divided into two triangle prediction units along the diagonal or anti-diagonal direction. Each triangle prediction unit in the CU is inter-predicted using its own single prediction motion vector and reference frame index derived from a single prediction candidate list. After predicting the triangle prediction unit, adaptive weighting processing is performed on the diagonal edge. Then, transformation and quantization processing are performed on the entire CU. Note that this mode is only applicable to the skip mode and the merge mode.
[0080] 2.2.3.1 TPM Single Prediction Candidate List The uni-prediction candidate list consists of five uni-prediction motion vector candidates. It is derived from seven neighboring blocks, including five spatially neighboring blocks (1-5) and two temporally co-located blocks (6-7), as shown in Figure 14. The motion vectors of the seven neighboring blocks are collected and put into the uni-prediction candidate list in the following order: uni-prediction motion vector, L0 motion vector of bi-prediction motion vector, L1 motion vector of bi-prediction motion vector, and average motion vector of L0, L1 motion vector of tile group motion vector. If the number of candidates is less than five, add motion vector zero to the list.
[0081] Specifically, the steps include the following:
[0082] Without performing the pruning operation, motion candidates are obtained from A1, B1, B0, A0, B2, Col, and Col2 (corresponding to blocks 1-7 in Fig. 14).
[0083] Set the variable numCurrMergeCand=0.
[0084] For each motion candidate derived from,A1,,B1,,B0,,A0,,B2,,Col,,Col2,, where numCurrMergeCand is less than 5, if the motion candidate is,unipredictive (from either List0 or List1), then it is added to the merge list,which increments numCurrMergeCand by 1. We call such added motion candidates,“intrinsically unipredictive candidates”.
[0085] Apply full pruning.
[0086] For each motion candidate derived from A1, B1, B0, B0, A0, B2, Col, Col2, where numCurrMergeCand is less than 5, if the motion candidate is bi-predictive, add the motion information from List0 to the merge list (i.e., modify it to be uni-predictive from List0) and increment numCurrMergeCand by 1. We call the motion candidate added in this way a "Truncated List0-predicted candidate."
[0087] Apply full pruning.
[0088] For each motion candidate derived from A1, B1, B0, B0, A0, B2, Col, Col2, for which numCurrMergeCand is less than 5, if the motion candidate is bi-predictive, add the motion information from List1 to the merge list (i.e., modified to be uni-predictive from List1) and increment numCurrMergeCand by 1. We call the motion candidate added in this way a "Truncated List1-predicted candidate."
[0089] Apply full pruning.
[0090] For each motion candidate derived from A1, B1, B0, A0, B2, Col, Col2, where numCurrMergeCand is less than 5, if the motion candidate is bi-predictive,
[0091] If the List0 reference picture slice QP is smaller than the List1 reference picture slice QP, we first scale the motion information of List1 to the List0 reference picture, then add the average of two MVs (one from the original List0 and the other from List1) to the merge list, which is the average uni-prediction from List0 motion candidates, and increase numCurrMergeCand by 1.
[0092] Otherwise, we first scale the motion information of List0 to List1 reference picture, and add the average of two MVs (one is original from List1, the other is scaled MV from List0) to the merge list, i.e., average the single prediction from List1 motion candidates and numCurrMergeCand, and increase by 1.
[0093] Apply full pruning.
[0094] If numCurrMergeCand is less than 5, add a zero motion vector candidate.
[0095] 2.2.3.2. Adaptive weighting process After each triangular prediction unit is predicted, an adaptive weighting process is applied to the diagonal edge between two triangular prediction units to derive the final prediction for the entire CU. Two weighting coefficient sets are defined as follows:
[0096] The first set of weighting factors uses {7 / 8, 6 / 8, 4 / 8, 2 / 8, 1 / 8} and {7 / 8, 4 / 8, 1 / 8} for the luma and chroma samples, respectively.
[0097] The second set of weighting factors uses {7 / 8, 6 / 8, 5 / 8, 4 / 8, 3 / 8, 2 / 8, 1 / 8} and {6 / 8, 4 / 8, 2 / 8} for the luma and chroma samples, respectively.
[0098] A set of weighting factors is selected based on a comparison of the motion vectors of the two triangular prediction units. The second set of weighting factors is used when the reference pictures of the two triangular prediction units are different or the difference between their motion vectors is greater than 16 pixels. Otherwise, the first set of weighting factors is used. An example is shown in FIG. 15.
[0099] 2.2.3.3. Motion Vector Storage The motion vectors of the triangular prediction unit (Mv1, Mv2 in FIG. 16) are stored in 4×4 grids. For each 4×4 grid, a uni-predictive or bi-predictive motion vector is stored based on the location of the 4×4 grid in the CU. As shown in FIG. 16, for a 4×4 grid located in a non-weighted area (i.e., not located on a diagonal edge), a uni-predictive motion vector of either Mv1 or Mv2 is stored. Meanwhile, for a 4×4 grid located in a weighted area, a bi-predictive motion vector is stored. A bi-predictive motion vector is derived from Mv1 and Mv2 based on the following rules:
[0100] If Mv1 and Mv2 have motion vectors in different directions (L0 or L1), then simply combining Mv1 and Mv2 forms a bi-predictive motion vector.
[0101] If both Mv1 and Mv2 are coming from the same L0 (or L1) direction, 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 bi-predictive motion vector.
[0102] 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 bi-predictive motion vector.
[0103] Otherwise, only Mv1 is stored for the weighting region.
[0104] 2.2.3.4. Triangle Prediction Mode (TPM) Signaling A single bit flag may be signaled first to indicate whether a TPM is being used, followed by signaling an indication of the two split patterns (as shown in FIG. 13) and further signaling the selected merge index for each of the two splits.
[0105] 2.2.3.4.1 TPM Flag Signaling Let the width and height of one luma block be represented as W and H, respectively. If W*H<64, the triangular prediction mode is disabled.
[0106] When coding a block in affine mode, the triangular prediction mode is also disabled.
[0107] When a block is coded in merge mode, a one-bit flag can be signaled to indicate whether the triangular prediction mode is enabled or disabled for this block.
[0108] This flag is coded in three contexts according to the following formula:
[0109] Ctx index=((left block L available && L is coded with TPM?)1:0) +((Above block A available && A is coded with TPM?)1:0);
[0110] 2.2.3.4.2. Indication of two split patterns (as shown in FIG. 13) and signaling the merge index selected for each of the two splits.
[0111] Note that the split pattern and the merge indexes of the two splits are coded together. We restrict two splits from using the same reference index. Therefore, there are 2 (split patterns)*N(maximum number of merge candidates)*(N-1) possibilities, where N is set to 5. We code an indication and derive the mapping between the split type and the two merge indexes from the array defined below.
[0112] const uint8_t g_TriangleCombination[TRIANGLE_MAX_NUM_CANDS][3]={{0,1,0},{1,0,1},{1,0,2},{0,0,1},{0,2,0},{1 ,0,3},{1,0,4},{1,1,0},{0,3,0},{0,4,0},{0,0,2},{0,1,2},{1,1,2},{0,0,4},{0,0,3},{0,1,3},{0,1,4} ,{1,1,4},{1,1,3},{1,2,1},{1,2,0},{0,2,1},{0,4,3},{1,3,0},{1,3,2},{1,3,4},{1,4,0},{1,3,1},{1,2,3},{1,4,1},{0,4,1},{0,2,3},{1,4,2},{0,3,2},{1,4,3},{0,3,1},{0,2,4},{1,2,4},{0,4,2},{0,3,4}};
[0113] Partition type(45degree or 135degree)=g_TriangleCombination[signaled indication][0];
[0114] Merge index of candidate A=g_TriangleCombination[signaled indication][1];
[0115] Merge index of candidate B=g_TriangleCombination[signaled indication][2];
[0116] After deriving two motion candidates A and B, the (PU1, PU2) motion information of the two partitions can be set from either A or B, and 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.
[0117] [Table 1]
[0118] 2.2.3.4.3. Entropy coding of the display (indicated by merge_triangle_idx) merge_triangle_idx is in the range of [0, 39] (including each). The K_th order Exponential Golomb (EG) code is used for the binarization of merge_triangle_idx (K is set to 1).
[0119] <K-th order EG> To encode a larger number with fewer bits (at the expense of using more bits to encode a smaller number), this can be generalized using a non-negative integer parameter k. To encode a non-negative integer x with an exp-Golomb code of order k, do the following.
[0120] Encode [x / 2 k using the aforementioned order-0 exp-Golomb code. Next,[[]]
[0121] Encode x mod 2k in binary.
[0122]
Table 2
[0123] 2.2.4. Duplicate block motion compensation H.263 has used overlapped block motion compensation (OBMC) before. Unlike H.263, in JEM, OBMC can be switched on / off using CU-level syntax. When using OBMC in JEM, OBMC is performed for all motion compensation (MC) block boundaries except the bottom-right boundary of the CU. It also applies to both luma and chroma components. In JEM, one MC block corresponds to one coding block. If the CU is coded in a sub-CU mode (including sub-CU merge, affine, and FRUC modes), each sub-block of the CU is one MC block. To handle CU boundaries uniformly, OBMC is performed at the sub-block level for all MC block boundaries, and the sub-block size is set equal to 4×4, as shown in Figure 18.
[0124] When OBMC is applied to the current subblock, in addition to the current motion vector, the motion vectors of the four connected neighboring subblocks are also available and used to derive a prediction block for the current subblock if they are not the same as the current motion vector. These multiple prediction blocks based on multiple motion vectors are combined to generate a final prediction signal for the current subblock.
[0125] A predicted block based on the motion vector of a neighboring subblock is P N (N is the index of the neighboring subblocks above, below, left, and right), and let P be the predicted block based on the motion vector of the current subblock. C Let us assume that N If P is based on the motion information of a neighboring subblock that contains the same motion information as the current subblock, then OBMC is not performed from P. N All samples of P C Add to the same sample in P N The four rows / columns of P C The weighting coefficients for PN are {1 / 4, 1 / 8, 1 / 16, 1 / 32}, and P CThe exception is for small MC blocks (i.e., when the height or width of the coding block is equal to 4 or one CU is coded in sub-CU mode), in which case the weighting factors for the two rows / columns are N Only P C In this case, weighting factors {1 / 4, 1 / 8} are used for PN, and P C Weighting factors {3 / 4, 7 / 8} are used for P N In contrast, P N The samples in the same row (column) of are weighted with the same coefficients. C Add to.
[0126] In JEM, for CUs whose size is 256 luma samples or less, a CU level flag is signaled to indicate whether OBMC is applied for the current CU. For CUs whose size is larger than 256 luma samples or not coded in AMVP mode, OBMC is applied by default. In the encoder, if OBMC is applied to a CU, its influence is taken into account during the motion estimation stage. The prediction signal formed by OBMC using the motion information of the upper and left neighboring blocks is used to compensate the upper and left boundaries of the original signal of the current CU, and then the normal motion estimation process is applied.
[0127] Local illumination compensation Local Illumination Compensation (LIC) is based on a linear model of illumination changes, with a scale factor a and an offset b, and is adaptively enabled or disabled for each inter mode coding unit (CU).
[0128] When LIC is applied to a CU, a 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. Specifically, as shown in Figure 19, it uses the subsampled (2:1 subsampled) neighboring samples of the CU and the corresponding samples in the reference picture (identified by the motion information of the current CU or sub-CU). IC parameters are derived and applied separately for each prediction direction.
[0129] If the CU is coded in merge mode, the IC flag is copied from the neighboring block, similar to copying motion information in merge mode; otherwise, the LIC flag is signaled to the CU to indicate whether LIC is applied or not.
[0130] When LIC is enabled for a picture, an additional CU-level RD check is required to determine whether LIC applies for a CU. When LIC is enabled for a CU, the mean removed sum of absolute differences (MR-SAD) and mean removed sum of absolute Hadamard transform differences (MR-SATD) are used instead of SAD and SATD for integer pixel motion search and fractional pixel motion search, respectively.
[0131] In order to reduce the coding complexity, the following coding scheme is applied in JEM:
[0132] If there is no clear illumination change between the current picture and its reference pictures, LIC is disabled for the entire picture. To identify this situation, in the encoder, the histograms of the current picture and all reference pictures of the current picture are calculated. If the histogram difference between the current picture and all reference pictures of the current picture is smaller than a given threshold, LIC is disabled for the current picture; otherwise, LIC is enabled for the current picture.
[0133] 2.2.6. Affine motion compensation prediction In HEVC, only the translational motion model is applied for motion compensated prediction (MCP). In the real world, there are various types of motion, such as zoom in / out, rotation, perspective motion, and other irregular motions. In JEM, a simple affine transform motion compensated prediction is applied. As shown in Figure 20, the affine motion field of a block is represented by two control point motion vectors.
[0134] The motion vector field (MVF) of a block is expressed by the following formula:
[0135]
number
[0136] For the six-parameter affine case,
[0137]
number
[0138] (v 0x , v 0y ) is the motion vector of the control point in the upper left corner, and (v 1x ,v 1y ) is the motion vector of the control point in the upper right corner, and (v 2x ,v 2y ) is the motion vector of the control point of the lower left corner, and (x, y) represents the coordinates of the representative point relative to the upper left sample in the current block. In VTM, the representative point is set to the center position of a subblock. For example, if the coordinates of the upper left sample of the upper left corner of a subblock in the current block are (xs, ys), the coordinates of the representative point are set to (xs+2, ys+2).
[0139] To further simplify the motion compensation prediction, sub-block-based affine transformation prediction is applied. The size of the sub-block M×N is derived as in Equation 2, where MvPre is the fractional precision of the motion vector (1 / 16 in JEM), and (v 2x ,v 2y) is the motion vector of the bottom-left control point, calculated according to equation (1).
[0140]
number
[0141] After being derived by equation (2), M and N should be adjusted downwards as necessary to make them divisors of w and h, respectively.
[0142] To derive a motion vector for each M×N sub-block, the motion vector of the center sample of each sub-block is calculated and rounded to 1 / 16 fractional precision based on equation (1), as shown in Figure 21. A motion compensated interpolation filter, as described elsewhere herein, is then applied to generate a prediction for each sub-block using the derived motion vector.
[0143] After the MCP, the high-precision motion vectors for each subblock are rounded and stored with the same precision as the regular motion vectors.
[0144] AF_INTER mode In JEM, there are two affine motion modes: AF_INTER mode and AF_MERGE mode. For CUs with both width and height greater than 8, AF_INTER mode can be applied. A CU-level affine flag is signaled in the bitstream to indicate whether AF_INTER mode is used or not. In this mode, the motion vector pair {(v0,v1)|v0={v A ,v B ,v C},v1={v D ,v E}}. As shown in FIG. 23, select v0 from the motion vectors of blocks A, B or C, and scale the motion vectors from the neighboring blocks based on the relationship between the reference list and the POC of the reference to the neighboring blocks, the POC of the reference to the current CU, and the POC of the current CU. Then, the method of selecting v1 from the neighboring blocks D and E is similar. If the number of candidate lists is less than 2, fill the list with motion vector pairs that duplicate each of the AMVP candidates. If the candidate list is greater than 2, first sort the candidates based on the consistency of the neighboring motion vectors (similarity of the two motion vectors in a pair candidate) and keep only the first two candidates. Use RD cost check to determine which motion vector pair candidate to select as the control point motion vector prediction (CPMVP) of the current CU. Then, signal an index indicating the position of the CMVVP in the candidate list in the bitstream. After determining the CMVVP of the current affine CU, apply affine motion estimation to obtain the control point motion vector (CPMV). Then, signal the difference between the CPMV and the CMVP in the bitstream.
[0145] In AF_INTER mode, if a 4 / 6 parameter affine mode is used, 2 / 3 control points are needed and therefore it is necessary to code 2 / 3 MVDs for these control points as shown in Figure 22. It is proposed to derive the MVs as follows: mvd1 and mvd2 are predicted from mvd0.
[0146]
number
[0147] where m  ̄ v i  ̄ , mvd i, mv1 are the predicted motion vector, the motion vector difference, and the motion vector of the upper left pixel (i=0), the upper right pixel (i=1), and the lower left pixel (i=2), respectively, as shown in Figure 22 (b). Note that the addition of two motion vectors (e.g., mvA(xA, yA) and mvB(xB, yB)) is equal to the sum of two modules separately, that is, newMV=mvA+mvB, and the two modules of newMV are set to (xA+xB) and (yA+yB), respectively.
[0148] AF_MERGE mode When applying CU in AF_MERGE mode, the CU obtains the first block coded in affine mode from the valid neighboring reconstructed blocks. Then, the selection order of the candidate blocks is left, top, top right, bottom left, top left to top left, as shown in FIG. 24a. As shown in FIG. 24b, when the bottom left neighbor block A is coded in affine mode, the motion vectors v2, v3, and v4 of the top left corner, top right corner, and bottom left corner of the CU including block A are derived. Then, the motion vector v0 of the top left corner in the current CU is calculated based on v2, v3, and v4. Then, the motion vector v1 of the top right corner of the current CU is calculated.
[0149] After deriving the CPMV of current CU v0, v1, we generate the MVF of the current CU based on the simplified affine motion model equation (1). To identify whether the current CU is coded in AF_MERGE mode, we signal an affine flag in the bitstream if there is at least one neighboring block coded in affine mode.
[0150] The affine merge candidate list is constructed using the following steps.
[0151] Insert inherited affine candidates.
[0152] The inherited affine candidate means that the candidate is derived from the affine motion model of its valid neighboring affine coded blocks. In the common base, the scanning order of the candidate positions is A1, B1, B0, A0, B2, as shown in FIG.
[0153] After deriving the candidate, we perform a full pruning process to check whether the same candidate is inserted into the list. If the same candidate exists, we discard the derived candidate.
[0154] Insert the constructed affine candidates.
[0155] If the number of candidates in the affine merge candidate list is less than MaxNumAffineCand (set to 5 in this contribution), insert the constructed affine candidate into the candidate list. The constructed affine candidate means that we construct a candidate by combining the motion information of the neighborhood of each control point.
[0156] First, we derive the motion information of the control points from the identified spatial and temporal neighborhoods shown in Fig. 25. CPk (k=1, 2, 3, 4) represents the kth control point. A0, A1, A2, B0, B1, B2, B3 are the spatial positions for predicting CPk (k=1, 2, 3), and T is the temporal position for predicting CP4.
[0157] 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.
[0158] The motion information of each control point is obtained according to the following priority:
[0159] For CP1, the priority of the check is B2->B3->A2. If available, use B2. Otherwise, if B2 is available, use B3. If both B2 and B3 are unavailable, use A2. If all three candidates are unavailable, the motion information of CP1 cannot be obtained.
[0160] In the case of CP2, the check priority is B1->B0.
[0161] In the case of CP3, the check priority is A1->A0.
[0162] Use T for CP4.
[0163] We then use combinations of these control points to construct affine merge candidates.
[0164] To construct a 6-parameter affine candidate, we need motion information of three control points. The 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}). We convert the combinations {CP1,CP2,CP3},{CP2,CP3,CP4},{CP1,CP3,CP4} into a 6-parameter motion model represented by the top-left, top-right, and bottom-left control points.
[0165] To construct a 4-parameter affine candidate, we need motion information of two control points. The 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}. We convert the combinations {CP1,CP4},{CP2,CP3},{CP2,CP4},{CP1,CP3},{CP3,CP4} into a 4-parameter motion model represented by the top-left and top-right control points.
[0166] The constructed combinations of affine candidates are inserted into a candidate list in the following order:
[0167] {CP1,CP2,CP3},{CP1,CP2,CP4},{CP1,CP3,CP4},{CP2,CP3,CP4},{CP1,CP2},{CP1,CP3},{CP2,CP3},{CP1,CP4},{CP2,CP4},{CP3,CP4}
[0168] For a given combination of reference list X (X is 0 or 1), select the reference index with the highest usage rate in the control point as the reference index in list X, and scale the motion vector point to the differential reference picture.
[0169] After deriving the candidate, we perform a full pruning process to check whether the same candidate is inserted into the list. If the same candidate exists, we discard the derived candidate.
[0170] Motion vector zero padding.
[0171] If the number of candidates in the affine merge candidate list is less than five, then insert zero motion vectors with reference index zero into the candidate list until the list is full.
[0172] Bidirectional Optical Flow Bidirectional Optical Flow (BIO) is a sample-by-sample motion refinement performed on top of block-by-block motion compensation for bi-prediction. Sample-level motion refinement does not use signaling.
[0173] After motion compensation of the block, I (k) is the brightness value from the reference k (k=0,1), and ∂I (k) / ∂x and ∂I (k) / ∂y, respectively, I (k) Let,be the horizontal and vertical components of the gradient.,Assuming that optical flow is valid, the motion vector field,v, x ,vy ) is given by the following formula:
[0174]
number
[0175] Combining this optical flow equation with Hermite interpolation of the motion trajectory of each specimen, we obtain the function value I (k) and the derivative ∂I (k) / ∂x and ∂I (k) We obtain a unique 3rd order polynomial that fits both ends of / ∂y. The value of this polynomial at t=0 is the BIO prediction.
[0176]
number
[0177] τ0 and τ1 denote the distances to the reference frames, as shown in Figure 26. The distances τ0 and τ1 are calculated based on the POCs of Ref0 and Ref1 as follows: τ0=POC(current)-POC(Ref0), τ1=POC(Ref1)-POC(current). If both predictions come from the same temporal direction (either both from the past or both from the future), they have different signs (i.e., τ0·τ1<0). In this case, BIO is only applied if the predictions do not come from the same temporal instant (i.e., τ0≠τ1), both reference regions have non-zero motion (MVx0,MVy0,MVx1,MVy1≠0) and the block motion vectors are proportional to the temporal distance (MVx0 / MVx1=MVy0 / MVy1=-τ0 / τ1).
[0178] Motion vector field (v x ,v y ) is determined by minimizing the difference Δ between the values at points A and B (the intersection of the motion trajectory and the reference frame plane in Figure 9). The model uses only the first linear term of a local Taylor expansion for Δ.
[0179]
number
[0180] All values in equation (5) depend on the sample position (i',j'), which we have omitted from the previous notation. Assuming that the motion is consistent in the local surrounding area, we minimize Δ inside a (2M+1) × (2M+1) square window centered on the current prediction point (i,j), where M is equal to 2.
[0181]
number
[0182] For this optimization problem, JEM uses a simple approach that first minimizes vertically and then horizontally. The result is
[0183]
number
[0184]
number
[0185] Where:
number
[0186] To avoid dividing by zero or getting very small values, we introduce regularization parameters r and m in equations (7) and (8).
[0187]
number
[0188] d is the bit depth of the video samples.
[0189] To make the memory access of BIO the same as that of normal bipredictive motion compensation, all the prediction values and gradient values I (k) , ∂I (k) / ∂x, ∂I (k) ∂y is calculated for a position within the current block. In equation (9), a (2M+1)×(2M+1) vector is used, centered on the current prediction point at the boundary of the prediction block. 2 The window Ω needs to access the outer location (as shown in Fig. 27(a)). In JEM, the outer I (k) , ∂I (k) / ∂x, ∂I (k) The value of / ∂y is set equal to the closest available value inside the block. For example, this may be implemented as padding, as shown in Figure 27(b).
[0190] By using BIO, we can fine-tune the motion field on a sample-by-sample basis. To reduce the computational complexity, a block-based BIO design is used in JEM. We calculate the motion fine-tuning based on a 4×4 block. In block-based BIO, we use s in Eq. (9) for all samples in a 4×4 block. n The value of s is integrated and then n The combined value of is used to derive the BIO motion vector offset for the 4x4 block. Specifically, the following equation is used for block-based BIO derivation:
[0191]
number
[0192] bk denotes the set of samples belonging to the k-th 4×4 block of the prediction block. n ((s n , bk )>>4) and derive the associated motion vector offset.
[0193] In some cases, the MV management of BIO may be unreliable due to noise or irregular motion. Therefore, in BIO, the magnitude of the MV regime is clipped to a threshold value. The threshold value is determined based on whether the reference pictures of the current picture are all from one direction or not. If the reference pictures of the current picture are all from one direction, the value of the threshold value is 12 × 2 14-d otherwise, 12 × 2 13-d is set to.
[0194] Calculate the gradient of BIO simultaneously with the motion compensation interpolation using an operation consistent with HEVC motion compensation (2D separable FIR). The input of this 2D separable FIR is the same reference frame sample as for motion compensation and fractional position (fracX, fracY) according to the fractional part of the block motion vector. For horizontal gradient ∂I / ∂x signal, first interpolate vertically using BIOfilterS corresponding to fractional position fracY with descaling shift d-8, then apply gradient filter BIOfilterG horizontally corresponding to fractional position fracX with descaling shift 18-d. For vertical gradient ∂I / ∂y, apply the first gradient filter vertically using BIOfilterG corresponding to fractional position fracY with descaling shift d-8, then move the signal horizontally with descaling shift 18-d corresponding to fractional position fracX using BIOfilterS. To maintain reasonable complexity, the length of the interpolation filters for gradient calculation BIOFilterG and signal displacement BIOFilterF is short (e.g., 6 taps). Table 3 shows the filters used for gradient calculation for different fractional positions of block motion vectors in BIO. Table 4 shows the interpolation filters used for generating the prediction signal in BIO.
[0195] [Table 3]
[0196] [Table 4]
[0197] In JEM, BIO can be applied to all bi-predicted blocks when the two predictions are from different reference pictures. If LIC is enabled for a CU, BIO is disabled.
[0198] In JEM, OBMC is applied to blocks after normal MC processing. To reduce computational complexity, BIO is not applied during OBMC processing. That is, BIO is applied in the MC processing of one block if it uses its own MV, and is not applied in the MC processing if it uses the MV of a neighboring block in the OBMC processing.
[0199] 2.2.8. Decoder-side motion vector fine-tuning In the bi-prediction operation, the bi-predicted blocks are combined to form one prediction signal by using the motion vectors (MVs) in list0 and MVs in list1, respectively, to predict one block region. In the decoder-side motion vector refinement (DMVR) method, the two bi-predictive motion vectors are further refined by a bilateral template matching process. To obtain the refined MVs without transmitting additional motion information, bilateral template matching is applied in the decoder to perform a distortion-based search between the bilateral template and the reconstructed samples in the reference picture.
[0200] In DMVR, we generate a bilateral template from the first MV0 in list0 and MV1 in list1 as a weighted combination (i.e., average) of two prediction blocks, respectively, as shown in Figure 28. The template matching operation consists of calculating a cost measure between the generated template and a sample region in the reference picture (near the first prediction block). For each of the two reference pictures, the MV with the smallest template cost is considered as the updated MV of that list and replaces the original MV. In JEM, we search for nine MV candidates for each list. The nine MV candidates include the original MV and eight surrounding MVs with one luma sample offset with respect to the original MV in either horizontal or vertical direction or both directions. Finally, we use two new MVs, namely MV0' and MV1' as shown in Figure 28, to generate the final bi-prediction result. We use the sum of absolute differences (SAD) as a cost measure. Note that when calculating the cost of a prediction block generated by one surrounding MV, we use the rounded MV (integer pixels) instead of the actual MV to obtain the prediction block.
[0201] DMVR is applied to bi-predictive merge modes between one MV from a past reference picture and one MV from a future reference picture without transmitting additional syntax elements. In JEM, DMVR is not applied if LIC, affine motion, FRUC or sub-CU merge candidates are enabled for a CU.
[0202] The LUT-based motion vector prediction based on the disclosed technology can improve both existing and future video coding standards, and various implementations are elucidated in the following examples. The LUT-based motion vector prediction can also be called a history-based motion vector prediction (HMVP) method, since the LUT enables the encoding / decoding process to be performed based on history data (e.g., already processed blocks). In the LUT-based motion vector prediction method, one or more tables with motion information from the aforementioned coded blocks are maintained during the encoding / decoding process. These motion candidates stored in the LUT are called HMVP candidates. During the coding / decoding of one block, the LUT may be used after encoding / decoding one block by adding the associated motion information in the LUT to a motion candidate list (e.g., merge / AMVP candidate list). The updated LUT is then used to code the subsequent block. That is, the update of the motion candidates in the LUT is based on the coding / decoding order of the blocks. The following examples should be considered as examples to explain the general concept. These examples should not be interpreted in a narrow sense. Moreover, these examples can be combined in any manner.
[0203] 3. Examples of problems to be solved by the embodiments In the design of triangulation, one block can be divided into two partitions. In order to save memory bandwidth due to motion compensation, it is necessary that the two partitions should be uni-predicted. During the motion compensation process, bi-prediction is used for the diagonal edges and uni-prediction is used for all other parts. If bi-prediction is allowed for each partition, a sample located at a diagonal edge will have four MVs, two of which are from one partition and two from another partition. Such a design has the following problems:
[0204] In the merge list construction process, only spatially nearby and temporally adjacent blocks are checked.
[0205] In the case of triangulation, history-based motion vector prediction techniques are not permitted.
[0206] It is unclear how to handle triangulation modes in intrablock copy mode.
[0207] 4. Example of embodiment The proposed technique may be applied to any non-square / non-rectangular partition, e.g., geometry partition. In the following description, we use "triangulation mode" as an example of a non-square / non-rectangular partition mode (TPM). However, other partitions are also possible.
[0208] The detailed techniques below should be regarded as examples to illustrate the general concept. These techniques should not be interpreted in a narrow sense. Moreover, these inventions can be combined in any way. Let the size of the block be WxH. 1. Instead of always applying triangular prediction mode to merge mode, it is proposed to enable triangular prediction mode for intra-coded blocks or non-merged inter-coded blocks. In one example, the two partitions are predicted with different intra prediction modes. b. Alternatively, the predictions of samples along the edge boundaries may be further filtered. c. In one example, the motion information (eg, MV) of the two triangulations are non-predictable from each other. i. Alternatively, motion information (eg, MV) of one triangulation can be used to predict the other.
[0209] 2. If a block is divided into two geometric partitions, one partition can be coded in intra mode and the other partition can be coded in inter mode. In one example, for inter-coded partitions, bi-prediction may also be applied. b. In one example, such a method can signal motion information signaled by a merge index when the current block is encoded in merge mode, i.e., in the case of an inter-encoded partition. c. Alternatively, the predicted values of samples along the edge boundary may be further filtered. d. In one example, only a subset of intra prediction modes may be applied. i. The subsets may be different for two partitions. ii. The subsets may depend on the position of the partition. iii. The subsets may depend on the block size and / or block shape.
[0210] 3. As disclosed in Bullet1 and Bullet2, a merge or non-merge inter-encoded block can use the current picture as a reference picture.
[0211] 4. When encoding one block in triangular partitioning mode, the inter / intra-encoded information of non-adjacent spatial blocks may be treated as a predictor for encoding the current block. a. In one example, the motion information of non-adjacent spatial blocks may be utilized. b. In one example, the intra prediction mode of non-adjacent spatial blocks may be utilized. c. Alternatively, for encoding one block in TPM, the encoded information of temporal blocks may be further utilized.
[0212] 5. In the merge list construction process of TPM-encoded blocks, it is proposed to add motion candidates derived from HMVP (history-based motion vector prediction) candidates by using, as HMVP candidates, motion information inherited from or derived from the aforementioned encoded blocks. a. Maintenance and / or storage of HMVP candidates and / or updating of the table of HMVP candidates may be the same as for normal motion vector HMVP. b. In one example, the same table may be maintained for HMVP candidate storage devices that may be utilized for both non-TPM encoded blocks and TPM encoded blocks. In one example, the motion information used by the TPM is not put into the HMVP storage. After encoding / decoding a TPM coded block, the HMVP table is not updated.
[0213] c. In one example, a separate table may be maintained to store HMVP candidates for encoding TPM encoded blocks. i. A table for HMVP candidate storage devices may be maintained using purely motion information from TPM encoded blocks. ii. Two tables can be maintained to store the uni- and bi-predicted HMVP candidates, respectively. iii. Two tables may be maintained to store the motion information of the first and second partitions, respectively. iv. Two tables may be maintained to store the motion information of List0 and List1 motion information, respectively. v. Alternatively, three tables may be maintained to store uni-prediction from List0, uni-prediction from L1, and bi-predicted HMVP candidates, respectively.
[0214] d. After encoding with the TPM encoded block, the table for the HMVP candidate storage device does not need to be updated. i. Alternatively, one / more tables for HMVP candidate stores may be updated with the motion information of the first partition. ii. Alternatively, one / more tables for the HMVP candidate store may be updated with the motion information of the second partition. iii Alternatively, adding two HMVP candidates may update one / more tables for the HMVP candidate store with motion information from both partitions. iv. Alternatively, by adding one more HMVP candidate (e.g., when predicting two splits from two reference picture lists), one or more tables for the HMVP candidate memory device may be updated with motion information from both splits. v. Whether to add one or two motion candidates to the HMVP table may depend on whether the two splits are predicted from the same reference picture list and / or the same reference picture. vi. Whether to add the motion information of the first split or the second split to the HMVP table is determined by the difference in POC between the reference picture and the current picture.
[0215] e. If separate tables are maintained to encode the TPM-encoded blocks and the non-TPM-encoded blocks, the update of the tables can be invoked based on the mode of one block. i. In an example, after decoding the TPM-encoded block, this motion information may be used to update the table for encoding the TPM-encoded block. ii. In one example, after decoding the non-TPM-encoded block, this motion information may be used to update the table for encoding the non-TPM-encoded block. iii. Alternatively, after decoding the non-TPM-encoded block, this motion information may be used to update the table for the TPM-encoded block.
[0216] <Use of HMVP Candidates in TPM-Encoded Blocks> f. The HMVP candidate may be added directly to the merge list of the TPM-encoded block. i. Alternatively, one HMVP candidate can be used to derive two motion candidates. For example, one is a single prediction based on the List0 motion information, and the other is a single prediction based on the List1 motion information of the HMVP candidate. ii. When inserting the motion candidates derived from / inherited from the HMVP candidate together with other motion candidates derived from / inherited from spatial or temporal blocks, pruning may be applied. iii. When inserting motion candidates derived / inherited from HMVP candidates and motion candidates derived / inherited from other HMVP candidates, pruning may be applied. iv. When inserting a motion candidate derived / inherited from an HMVP candidate and another motion candidate derived / inherited from the same HMVP candidate, pruning may be applied.
[0217] g. In one example, one or more motion candidates derived from one or more HMVP candidates may be added after motion candidates derived from spatial and / or temporal blocks, such as blocks 1-7 of Figure 14. In this case, the HMVP candidates are treated like other spatial / temporal merge candidates.
[0218] h. Motion candidates inherited / derived from HMVP candidates may be added to the merge list immediately after or before certain steps in the merge list construction process that depend on the motion information of spatial / temporal blocks. i. Alternatively, motion candidates inherited / derived from HMVP candidates may be added to the merge list immediately after or before some predefined steps. ii. In one example, one or more HMVP candidates with a single prediction may be added immediately after the originally single prediction candidate with the current design. iii. In one example, one or more HMVP candidates with uni-prediction from L0 or bi-prediction may be added immediately after all the shortened List0 prediction candidates. Alternatively, if an HMVP candidate has bi-prediction, only List0 motion information may be retained. iv. In one example, one or more HMVP candidates with uni-prediction from L1 or bi-prediction may be added immediately after all the shortened List1-prediction candidates. Alternatively, if an HMVP candidate has bi-prediction, only the motion information of List1 may be kept. v. In one example, one or more HMVP candidates may be added immediately after all the averaged single predictions from List0 or List1 motion candidates. vi. In one example, one or more HMVP candidates may be added immediately before all the averaged single predictions from List0 or List1 motion candidates.
[0219] i. Motion candidates inherited / derived from HMVP candidates may be added to the merge list in an interleaved manner with motion candidates inherited / derived from spatial / temporal block motion information. j. In one example, the motion candidates derived from List0 and List1 of each HMVP candidate may be added in order before the motion candidates derived from List0 and List1 of other HMVP candidates. k. In one example, motion candidates derived from List 0 of the first HMVP candidate set may be added in order before motion candidates derived from List 1 of the second HMVP candidate set. i. In one example, the first set and the second set are the same set, i.e., all available HMVP candidates. ii. Alternatively, the first set and the second set may be different, for example, the first HMVP candidate set includes HMVP candidates with uni-prediction and bi-prediction from List0, while the second HMVP candidate set includes HMVP candidates with uni-prediction and bi-prediction from List1. iii. The number of HMVP candidates associated with the first set and the second set may differ. HMVP candidates in l.listLX may first be scaled to list L(1-X) and then used for list L(1-X). i. The scaled candidate may be inserted after all other candidates. ii. The scaled candidate may be inserted after all other candidates except for the temporal candidate. The order in which HMVP candidates are checked to derive motion candidates to be added to the m.TPM merge list may depend on the index of the HMVP candidates. i. Alternatively, it may depend on the prediction direction. ii. Alternatively, it may rely on motion information.
[0220] 6. The number of HMVPs to be checked in the TPM merge list construction process may be predefined, for example, five. a. The number of HMVP candidates to check in the PM merge list construction process may depend on the block size / block shape / number of candidates available before checking HMVP candidates. b. The number of HMVP candidates to check in the TPM merge list construction process may be signaled in the SPS / VPS / PPS / Picture Header / Slice Header / Tile Group Header / CTU Row / CTU / CTU Group. c. In the TPM merge list construction process, when some of the available HMVP candidates are to be checked, the selection of the HMVP candidate may depend on the prediction direction / MV information / reference picture index / POC distance and / or candidate index between the candidate's reference picture and the current picture.
[0221] 7. Whether and how to apply HMVP to a TPM encoded block may depend on the block size (e.g., width and / or height, width to height ratio) or block shape (e.g., square or non-square).
[0222] 8. The proposed method is also applicable to other types of motion candidate lists for geometry partitioning (e.g., AMVP lists).
[0223] 9. The size of the HMVP table (ie, the maximum number of historical motion candidates that may be stored) may depend on one or more functions of the motion candidate list size. In one example, the size of the HMVP table may depend on the nominal merge list size, the TPM merge list size, the IBC merge list size, the nominal inter-AMVP list size, the nominal inter-IBC list size, and the like. b. In one example, the size of the HMVP table may depend on the motion candidate list that accesses the same HMVP table. c. In one example, the function may be a function Max(inputs) that returns the maximum value of multiple inputs. d. In one example, the HMVP table size may be defined as Max(normal merge list size-K0, TPM merge list size-K1, IBC merge list size-K2). i. In one example, K0=K1=K2=1.
[0224] 10. The size of the HMVP table (i.e., the maximum number of historical motion candidates that can be stored) may depend on a function of the number of one or more HMVP candidates (denoted by numHMVP) that can be added to the motion candidate list. In one example, it may depend on the number of HMVP candidates that may be added to a motion candidate list (eg, regular merge list, TPM merge list, IBC merge list, regular inter-AMVP list, regular inter-IBC list, etc.). b. In one example, the function may be a function Max(inputs) that returns the maximum value of multiple inputs. c. In one example, the size of the HMVP table may be defined as Max(numHMVP for regular merge list-K0, numHMVP for regular AMVP list-K1). ii. In one example, K0=1 and K1=0. d. In one example, the size of the HMVP table may be defined as Max(numHMVP for regular merge list-K0, numHMVP for TPM merge list-K1, numHMVP for IBC merge list size-K2). iii. In one example, K0=K1=K2=1.
[0225] 11. The size of the HMVP table in one coding mode may be different from other coding modes and may depend on the motion candidate list size. In one example, the size of the HMVP tables for the normal merge list and the TPM merge list may depend on the normal merge list size. iv. In one example, the size of the HMVP table may be equal to the normal merge list size minus K0, for example, K0=1. b. In one example, the HMVP table size of the normal merge list and the TPM merge list may depend on the normal merge list size and the TPM merge list size. v. In one example, it may be defined as Max(normal merge list size-K0, TPM merge list size-K1). vi. In one example, the HVMP table between normal AMVPs follows that used for normal merge and TPM merge lists. c. In one example, the HMVP table size of an IBC encoded block depends on the HMVP table size of a regular merge list and / or a TPM merge list. vii. For example, the size of the HMVP table of an IBC encoded block is equal to the size of the HMVP table of a regular merge list and / or a TPM merge list. viii. Alternatively, the size of the HMVP table for an IBC encoded merge / AMVP block may depend on the IBC merge / AMVP candidate list size. d. An indication of the HMVP table size may be signaled in the bitstream. ix. If the signaled size is 0, do not insert HMVP candidates into any motion candidate lists. x. In one example, the HMVP table size must not be 0. xi. Alternatively, the size of the HMVP table -K0, e.g., K0=1, is signaled.
[0226] 12. An indication of the number of allowed HMVP candidates that may be added to the motion candidate list may be signaled in the bitstream. a. In one example, in each mode (e.g., IBC or non-IBC; no AMVP merging), an indication of the number of allowed HMVP candidates may be signaled independently. b. Alternatively, an indication of the number of admitted HMVP candidates may be signaled in a predictive manner. c. Alternatively, the size of the HMVP table may depend on the allowed number of HMVP candidates. d. For example, the number of allowed HMVP candidates that can be added to a motion candidate list must not be 0. e. Alternatively, the number of allowed HMVP candidates that can be added to the motion candidate list - K0, for example K0=1, may be signaled. f. Alternatively, predictive coding may be applied with the number of allowed HMVP candidates that can be added to the motion candidate list (denoted by numHMVP) and the maximum number of motion candidates in the motion candidate list (denoted by numMotionList). xii. In one example, the difference between numMotionList and numHMVP may be encoded. xiii. In one example, the difference between (numMotionList-K0) and numHMVP may be encoded, for example, K0=1.
[0227] 13. The number of allowed HMVP candidates that can be added to a motion candidate list may depend on the motion candidate list size. In one example, it may be derived from the corresponding motion candidate list size, eg, (list size-K0), eg, K0=0 or 1. b. In one example, it may be derived from the size of the corresponding HMVP table that the motion candidate list uses, eg, (table size-K0), eg, K0=0 or 1.
[0228] 14. A conforming bitstream shall satisfy that the number of allowed HMVP candidates that may be added to a motion candidate list shall be no greater than the number of maximum motion candidates in the motion candidate list. a. Alternatively, a conforming bitstream shall satisfy that the number of allowed HMVP candidates that may be added to the motion candidate list is not greater than (the maximum number of motion candidates in the motion candidate list minus K0), e.g., K0=1.
[0229] FIG. 29 is a block diagram of a video processing device 2900. The device 2900 may be used to implement one or more of the methods described herein. The device 2900 may be implemented in a smartphone, a tablet, a computer, an Internet of Things (IoT) receiver, etc. The device 2900 may include one or more processing devices 2902, one or more memories 2904, and video processing hardware 2906. The processing device 2902 may be configured to implement one or more methods described herein. The memory(s) 2904 may be used to store data and codes used to implement the methods and techniques described herein. The video processing hardware 2906 may be used to implement the techniques described herein in a hardware circuit.
[0230] 31 is a flow chart of a method 3100 for processing video. The method 3100 includes determining whether a first video block is intra-coded or non-merged inter-coded (3105), determining a first prediction portion and a second prediction portion for the first video block based on the determination of whether the first video block is intra-coded or non-merged inter-coded (3110), where 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 (3115).
[0231] 32 is a flow chart of a method 3200 for processing video. The method 3200 includes determining whether a first video block is intra-coded or non-merged inter-coded (3205), determining a first prediction portion and a second prediction portion for the first video block, where 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 (3210), and further processing the first video block using the first prediction portion and the second prediction portion, where at least one prediction portion is merged or non-merged inter-coded using a current image as a reference image (3215).
[0232] 33 is a flow chart of a method 3300 for processing video. The method 3300 includes determining whether a first video block is intra-coded or non-merged inter-coded (3305), determining a first prediction portion and a second prediction portion for the first video block, where 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 (3310), and further processing the first video block using the first prediction portion and the second prediction portion, where further processing the first video block using the first prediction portion and the second prediction portion is based on inter- or intra-coded information of non-adjacent spatial blocks related to the first video block (3315).
[0233] 34 is a flowchart of a method 3400 for processing video. The method 3400 includes determining (3405) that a first video block is coded in triangular portion mode (TPM) using a triangular predicted portion of the first video block and that a second video block is coded using non-TPM using a non-triangular predicted portion of the second video block, further processing the first and second video blocks using the stored HMVP candidates (3410), and storing HMVP candidates associated with the first and second video blocks (3415).
[0234] 35 is a flowchart of a method 3500 for processing video. The method 3500 includes determining (3505) that a first video block includes a prediction portion that is a non-rectangular, non-square portion of the first video block, identifying an HMVP candidate (3510), adding one or more motion candidates derived from the HMVP candidate to a merge list associated with the video block that includes the prediction portion that is non-rectangular, non-square (3515), and further processing the first video block using the merge list (3520).
[0235] Some examples of determining encoding candidates and their uses are described in Chapter 4 of this specification with reference to methods 3100, 3200, 3300, 3400, and 3500. For example, as described in Chapter 4, video blocks may be processed using non-square and non-rectangular prediction portions.
[0236] Referring to methods 3100, 3200, 3300, 3400, and 3500, a video block may be encoded in a video bitstream, and bit efficiency in the bitstream may be achieved by using a bitstream generation rule for a motion information prediction.
[0237] 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, where the first intra-prediction mode is different from the second intra-prediction mode.
[0238] The method can include filtering predicted values associated with the first prediction portion and the second prediction portion along an edge boundary between the first prediction portion and the second prediction portion.
[0239] The method may include determining, by a processing device, first motion information for a first prediction portion; determining, by the processing device, second motion information for a second prediction portion; determining the first motion information without using the second motion information; and determining the second motion information without using the first motion information.
[0240] The method may include determining, by a processing device, first motion information for a first prediction portion; and determining, by the processing device, second motion information for a second prediction portion, where the second motion information is determined using the first motion information.
[0241] The method may include processing the first prediction portion with intra mode coding and processing the second prediction portion with inter mode coding.
[0242] The method may include processing the second prediction portion including applying bi-prediction.
[0243] The method may include processing the second prediction portion including determining motion information signaled along with the merge index.
[0244] The method can include filtering predicted values associated with the first prediction portion and the second prediction portion along an edge boundary between the first prediction portion and the second prediction portion.
[0245] The method may include using a subset of intra-mode coding.
[0246] The method can include the first prediction portion and the second prediction portion being associated with different subsets of intra-mode encoding.
[0247] The method can include associating the first prediction portion and the second prediction portion with different subsets of intra-mode encoding based on positions of the first prediction portion and the second prediction portion.
[0248] The method may include the first prediction portion and the second prediction portion being associated with different subsets of intra-mode encoding based on one or more of a size of the first video block or a shape of the first video block.
[0249] The method may include the inter-coded or intra-coded information of a non-adjacent spatial video block including motion information of the non-adjacent spatial video block.
[0250] The method can include using intra-prediction modes of non-adjacent spatial video blocks.
[0251] The method may include using coded information of the temporal blocks.
[0252] The method may include adding, in a motion vector prediction candidate list, a history-based motion vector prediction (HMVP) candidate including motion information based on the encoded video block, where the HMVP candidate includes motion information based on the encoded video block, and decoding the first video block based on the HMVP candidate.
[0253] The method can include storing HMVP candidates in a table and not storing motion information used by the TPM in the table.
[0254] The method can include not updating the table after encoding or decoding the first video block using the TPM.
[0255] The method may include storing the HMVP candidates in a first table and a second table, the first table storing TPM HMVP candidates and the second table storing non-TPM HMVP candidates.
[0256] The method may include storing uni-predictive HMVP candidates in one of the first table or the second table and storing bi-predicted HMVP candidates in the other table.
[0257] The method may include one of the first table or the second table storing motion information for the first subdivision and the other storing motion information for the second subdivision.
[0258] The method may include one of the first table or the second table storing motion information for List0 and the other storing motion information for List1.
[0259] The method may include a first table storing uni-predicted HMVP candidates from List0, a second table storing uni-predicted HMVP candidates from List1, and a third table storing bi-predicted HMVP candidates.
[0260] The method may include not updating a table for the HMVP candidate storage device based on one or both of the first predicted portion or the second predicted portion being a non-rectangular and non-square geometric portion of the first image block.
[0261] The method can include updating one or more of the first table or the second table for the HMVP candidate store using the motion information of the first partition.
[0262] The method may include updating one or more of the first table or a table for the second HMVP candidate store with motion information for the second partition.
[0263] The method may include updating one or more of a first table or a second table for the HMVP candidate storage device with the motion information of the first partition and the motion information of the second partition.
[0264] The method may include determining that the first and second partitioned portions are predicted from two reference picture lists, and updating one or more tables for an HMVP candidate storage device using motion information of one HMVP candidate based on determining that the first and second partitioned portions are predicted from the two reference picture lists.
[0265] The method may include determining that the first and second partitions are predicted using the same reference picture list or the same reference picture, and updating the table based on a determination that the first and second partitions are predicted using the same reference picture list or the same reference picture.
[0266] The method may include determining a picture order count (POC) difference between the reference picture and the current image, and adding motion information of the first partition or the second partition to one or more tables based on the POC difference.
[0267] The method may include determining characteristics related to encoding of a first video block and updating one or both of the first table or the second table based on the characteristics related to encoding of the first video block.
[0268] The method may include using the motion information to update a table associated with the TPM video block after decoding the TPM video block.
[0269] The method may include using the motion information to update a table associated with the non-TPM video block after decoding the non-TPM video block.
[0270] The method may include using the motion information to update a table associated with the TPM video block after decoding the non-TPM video block.
[0271] The method may include determining a first motion candidate and a second motion candidate from an HMVP candidate, where one of the first merge candidate or the second merge candidate is single-predicted with List0 motion information of the HMVP candidate, and the other is single-predicted with List1 motion information of the HMVP candidate.
[0272] The method may include pruning based on inserting motion candidates derived from HMVP candidates and other motion candidates that are based on spatial or temporal video blocks.
[0273] The method can include pruning based on inserting motion candidates derived from HMVP candidates and other motion candidates that are based on other HMVP candidates.
[0274] The method can include pruning based on inserting motion candidates derived from HMVP candidates and other motion candidates that are based on the HMVP candidates.
[0275] The method may include adding motion candidates derived from HMVP candidates associated with the first video block to the merge list after motion candidates derived from one or both of the spatial or temporal video blocks.
[0276] The method may include adding motion candidates derived from HMVP candidates to the merge list after or before the merge list building process based on motion information of the spatial or temporal video blocks.
[0277] The method may include adding motion candidates derived from the HMVP candidates to a merge list after or before the predefined step.
[0278] The method may include adding motion candidates and uni-predictors derived from the HMVP candidates after other original uni-prediction candidates.
[0279] The method may include adding uni-prediction from List0 or bi-prediction after truncated List0 prediction to motion candidates derived from HMVP candidates.
[0280] The method may include adding motion candidates derived from HMVP candidates using uni-prediction from List1 or bi-prediction after truncated List1 predicted candidates.
[0281] The method may include adding motion candidates derived from HMVP candidates after a single prediction averaged from motion candidates in List0 or List1.
[0282] The method may include adding motion candidates derived from HMVP candidates before a single prediction averaged from motion candidates in List0 or List1.
[0283] The method may include adding motion candidates derived from the HMVP candidates to the merge list according to interleaving with motion candidates based on spatial or temporal video block motion information relative to the first video block.
[0284] The method may include sequentially adding motion candidates derived from List0 and List1 of an HMVP candidate before motion candidates derived from List0 and List1 of another HMVP candidate.
[0285] The method herein may include sequentially adding motion candidates derived from List 0 of the first collection of HMVP candidates before extracting motion candidates derived from List 1 of the second collection of HMVP candidates.
[0286] The method can include the first set and the second set being the same, the first set and the second set including all available HMVP candidates.
[0287] The method may include the first set and the second set being different, the first set including HMVP candidates with uni-prediction and bi-prediction from List0, and the second set including HMVP candidates with uni-prediction and bi-prediction from List1.
[0288] The method can include the first set including a first number of HMVP candidates and the second set including a second number of HMVP candidates, the first number and the second number being different.
[0289] The method may include deriving scaled motion candidates from the HMVP candidates by scaling motion vectors in listLX to listL(1-X), where the scaled motion candidates are assigned the scaled motion vectors and listL(1-X).
[0290] The method may include inserting a scaled motion candidate derived from the HMVP candidate after other motion candidates derived from the HMVP candidate.
[0291] The method may include inserting a scaled motion candidate derived from an HMVP candidate before a temporal candidate.
[0292] The method can include a checking order for HMVP candidates to be added to the merge list based on an index of the HMVP candidates.
[0293] The method can include determining a checking order for HMVP candidates to be added to a merge list based on a prediction direction.
[0294] The method may include determining a checking order for HMVP candidates to be added to a merge list based on the motion information.
[0295] The method can include predefining a number of HMVP candidates to be checked in a TPM merge list construction process.
[0296] The method may include based on a number of HMVP candidates to check in the TPM merge list construction process a block size of the first video block, a block shape of the first video block, or a number of candidates available prior to checking the HMVP candidates.
[0297] The method may include signaling the number of HMVP candidates to be checked in the TPM merge list construction process in a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a tile group header, a slice header, a group of rows of a coding tree unit (CTU), a CTU, or a group of CTUs.
[0298] The method may include selecting an HMVP candidate based on a prediction direction, motion vector (MV) information, a reference picture index, a POC distance between one or both of the candidate reference pictures and the current picture, or a candidate index.
[0299] The method may include applying the HMVP in relation to the first video block based on a block size of the first video block or a block shape of the first video block.
[0300] The method may include the non-rectangular and non-square portion being a triangle.
[0301] It will be appreciated that the disclosed techniques may be implemented in a video encoder or decoder to improve compression efficiency when the coding units being compressed have shapes significantly different from traditional square or semi-square rectangular blocks. For example, new coding tools that use long or tall coding units, such as 4x32 or 32x4 sized units, can benefit from the disclosed techniques.
[0302] 36 is a flowchart of a method 3600 for processing video. The method 3600 includes determining a plurality of sub-portions of a current block during conversion between a current block of visual media data and a corresponding encoded representation of the visual media data (3605), determining intra prediction information for the plurality of sub-portions (3610), and converting the current block using the intra prediction information for the plurality of sub-portions (3615), where 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. Note that this sub-portion may correspond to the prediction portion above.
[0303] In some implementations, additional modifications may be made to the method 3600. For example, determining intra prediction information of the plurality of sub-portions includes determining a first intra prediction information of a first sub-portion in the plurality of sub-portions using a first intra prediction mode, and determining a second intra prediction information of a second sub-portion in the plurality of sub-portions using a second intra prediction mode, where the first intra prediction mode is different from the second intra prediction mode. The first intra prediction information is determined using a first subset of intra prediction modes, and the second intra prediction information is determined using a second subset of intra prediction modes, where the first subset of intra prediction modes is different from the second subset of intra prediction modes. 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. Determining intra prediction information of the plurality of sub-portions further includes filtering predicted values of samples along an edge boundary of at least one sub-portion of the plurality of sub-portions. determining first intra prediction information of a first sub-portion of the plurality of sub-portions without using second intra prediction information of a second sub-portion of the plurality of sub-portions, determining second intra prediction information of the second sub-portion without using the first intra prediction information of the first sub-portion, the first intra prediction information of the first sub-portion of the plurality of sub-portions is determined using the second intra prediction information of the second sub-portion of the plurality of sub-portions, and / or the second intra prediction information of the second sub-portion is determined using the first intra prediction information of the first sub-portion.
[0304] 37 is a flowchart of a method 3700 for processing video. The method 3700 includes determining a plurality of sub-portions for a current block during conversion between a current block of visual media data and a corresponding coded representation of the visual media data (3705), determining motion information for the plurality of sub-portions (3710), and performing conversion of the current block using the motion information of the plurality of sub-portions (3715), where the current block is inter-coded and at least one of the plurality of sub-portions is a non-rectangular and non-square sub-portion.
[0305] In some implementations, additional modifications may be made to the method 3700. For example, determining the motion information of the plurality of sub-portions includes determining a first motion information of a first sub-portion in the plurality of sub-portions using a first intra prediction mode, and determining a second motion information of a second sub-portion in the plurality of sub-portions using a second intra prediction mode. Determining the intra prediction of the plurality of sub-portions further includes filtering the prediction value of the sample along an edge boundary of at least one sub-portion of the plurality of sub-portions. Determining the first motion information of the first sub-portion without using the second motion information of the second sub-portion, and determining the second motion information of the second sub-portion without using the first motion information of the first sub-portion. Determining the first motion information of the first sub-portion using the second motion information of the second prediction, and / or determining the second motion information of the second sub-portion using the first motion information of the first sub-portion.
[0306] Figure 38 is a flowchart of a method 3800 for processing video. The method 3800 includes converting (3805) between a current block of visual media data and a corresponding coded representation of the visual media data, where the current block is divided into a plurality of levels according to a division pattern, where a first sub-portion has a non-rectangular and non-square shape, processing the first sub-portion in an intra-coding mode (3810), and processing a second sub-portion in an inter-coding mode (3815).
[0307] In some implementations, additional modifications can be made to the method 3800. For example, the second sub-portion is processed by applying bi-prediction. In response to the current block being encoded in merge mode, signaling motion information using a merge index. Determining motion information of the first prediction portion using a subset of intra-prediction modes. The subset of intra-prediction modes is based on at least one of a position of the first prediction portion, a size of the first prediction portion, and a shape of the first prediction portion.
[0308] 39 is a flow chart of a method 3900 for processing video. The method 3900 includes converting (3905) between a current block of visual media data and a corresponding coded representation of the visual media data, where the current block is divided into a plurality of sub-portions according to a division pattern, where a first sub-portion has a non-rectangular and non-square shape, and at least one of the plurality of sub-portions is merged or non-merged intercoded, using the current picture as a reference picture.
[0309] Figure 40 is a flow chart of a method 4000 for processing video. The method 4000 includes performing a transformation between a current block of visual media data and a corresponding coded representation of the visual media data (4005), where the current block is divided into a plurality of sub-portions according to a partitioning pattern where a first predictive partition has a non-rectangular, non-square shape, and performing the transformation using inter-coded or intra-coded information of one or more non-adjacent spatial blocks (4010).
[0310] In some implementations, additional modifications can be made to the method 4000. For example, the inter-coded or intra-coded information of the one or more non-adjacent spatial blocks includes motion information of the one or more non-adjacent spatial blocks. Performing the transformation of the current block using the inter-coded or intra-coded information of the one or more non-adjacent spatial blocks includes performing the transformation of the current block using the intra-prediction modes of the one or more non-adjacent spatial blocks. Using the coded information of the temporal block.
[0311] 41 is a flowchart of a method 4100 for processing video. The method 4100 includes, during a transformation between a first block of visual media data and a corresponding encoded representation of the visual media data, determining a first block encoded in a geometry partitioning mode (4105), determining motion information of at least one sub-portion of the first block based on at least one table that stores historical motion vector prediction (HMVP) candidates including motion information based on said encoded block (4110), and performing a transformation of the first block using the determined motion information (4115).
[0312] In some implementations, additional modifications can be made to the method 4100. For example, the first block encoded in a geometry partition mode includes dividing the first block into a plurality of sub-portions, at least one of the plurality of sub-portions being a non-rectangular and non-square portion. During the conversion between the second block of visual media data and the corresponding encoded representation of the visual media data, the motion information of the second block is determined based on the same table used for the first block. The second block does not use the geometry partition mode. The motion information used in the first block is avoided from being stored in the at least one table. After the conversion of the first block, the at least one table is not updated. The at least one table includes a plurality of tables maintained to store HMVP candidates of blocks having a geometry partition mode. In the at least one table, the stored HMVP candidates only have motion information used in blocks of the geometry partition mode. The at least one table includes two tables maintained to store uni-predicted HMVP candidates and bi-predicted HMVP candidates, respectively. The at least one table includes two tables maintained to store motion information of the first sub-portion and the second sub-portion of the first block, respectively. The at least one table includes two tables maintained to store motion information of List0 and List1, respectively. The at least one table includes three tables maintained to store mono-predicted HMVP candidates from List0, mono-predicted HMVP candidates from List1, and bi-predicted HMVP candidates, respectively. The at least one table is updated with motion information of some sub-portions of the first block. The at least one table in which the first sub-portion and the second sub-portion of the first block are sub-portions s is updated with the motion information of the first sub-portion and the motion information of the second sub-portion. The at least one table is updated with the motion information of the first sub-portion and the motion information of the second sub-portion by adding one HMVP candidate.Whether to update at least one table 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.
[0313] Whether to update at least one table by adding the motion information of the first sub-part or the second sub-part depends on the difference of picture order count (POC) between the reference picture and the current picture. After processing the block having a non-rectangular and non-square part, the motion information of the block having the non-rectangular and non-square part is used to update the table maintained to store HMVP candidates of the block having the non-rectangular and non-square part. After processing the block not including the non-rectangular and non-square part, the motion information of the block not including the non-rectangular and non-square part is used to update the table maintained to store HMVP candidates of the block not including the non-rectangular and non-square part. After processing the block not including the non-rectangular and non-square part, the motion information of the block not including the non-rectangular and non-square part is used to update the table maintained to store the motion vector prediction (HMVP) candidates of the block including the non-rectangular and non-square part. The geometry partition mode includes a triangulation partition mode. The method is also applicable to other types of motion candidate lists.
[0314] 42 is a flowchart of a method 4200 for processing video. The method 4200 includes, during conversion between a first block of visual media data and a corresponding encoded representation of the visual media data, determining whether the first block is encoded in a geometry partitioning mode (4205), determining motion information of at least one sub-portion of the first block (4210), and performing conversion of the first block using the motion information of the at least one sub-portion (4215), where determining the motion information of the at least one sub-portion includes using at least one historical motion vector prediction (HMVP) candidate including the motion information based on said encoded block to build a motion candidate list, and determining the motion information from the motion candidate list.
[0315] In some implementations, additional modifications can be made to the method 4200. For example, the first block encoded in the geometry partition mode includes dividing the first block into a plurality of sub-parts, at least one of the plurality of sub-parts being a non-rectangular and non-square part. At least one HMVP candidate is added directly to the motion candidate list. Using at least one HMVP candidate including motion information based on the encoded block to construct the motion candidate list includes using one HMVP candidate to determine a first motion candidate and a second motion candidate, where one of the first motion candidate and the second motion candidate is single predicted by the List0 motion information of the HMVP candidate and the other is single predicted by the List1 motion information of the HMVP candidate. Pruning is performed in response to inserting the motion candidate derived from the HMVP candidate into other motion candidates based on spatial or temporal video blocks. Pruning is performed in response to inserting the motion candidate derived from the HMVP candidate into other motion candidates based on other HMVP candidates. Pruning is performed in response to inserting motion candidates derived from the HMVP candidate along with other motion candidates that are based on the HMVP candidate.
[0316] Using at least one HMVP candidate including motion information based on the coded block to build a motion candidate list includes adding at least one motion candidate derived from the HMVP candidate to a motion candidate list after a motion candidate derived from one or both of a spatial block or a temporal block. Using at least one HMVP candidate including motion information based on the coded block to build a motion candidate list includes adding at least one motion candidate derived from the HMVP candidate to a motion candidate list after or before a predefined step in a motion candidate list building process based on the motion information of the spatial block or the temporal block. Using at least one HMVP candidate including motion information based on the coded block to build a motion candidate list includes adding at least one motion candidate derived from the HMVP candidate to a motion candidate list after or before a predefined step in a motion candidate list building process based on the motion information of the spatial block or the temporal block. Using at least one HMVP candidate including motion information based on the aforementioned encoded block to construct a motion candidate list includes adding at least one motion candidate derived from the HMVP candidate and uni-prediction to the motion candidate list after all original uni-prediction candidates.
[0317] Using at least one HMVP candidate including motion information based on the coded block to construct a motion candidate list includes adding at least one motion candidate derived from an HMVP candidate with uni-prediction or bi-prediction from List0 to a motion candidate list after the shortened List0. Using at least one HMVP candidate including motion information based on the coded block to construct a motion candidate list includes adding at least one motion candidate derived from an HMVP candidate with uni-prediction or bi-prediction from List1 to a motion candidate list after the shortened List1. Using at least one HMVP candidate including motion information based on the coded block to construct a motion candidate list includes adding at least one motion candidate derived from the at least one HMVP candidate to a motion candidate list after an average uni-prediction from List0 or List1 motion candidate. Using at least one HMVP candidate including motion information based on the coded block to construct a motion candidate list includes adding at least one motion candidate derived from the at least one HMVP candidate to a motion candidate list before an average uni-prediction from List0 or List1 motion candidate. Using at least one HMVP candidate including motion information based on the coded block to construct a motion candidate list includes adding at least one motion candidate derived from the HMVP candidate to the motion candidate list according to an interleaving with motion candidates based on the motion information of the spatial or temporal video block relative to the current block. Setting the motion candidate derived from the HMVP candidate equal to the HMVP candidate.
[0318] Using at least one HMVP candidate including motion information based on the coded block to construct a motion candidate list includes adding at least one motion candidate derived from List0 and List1 of HMVP candidates to the motion candidate list before a motion candidate derived from List0 and List1 of another HMVP candidate. Using at least one HMVP candidate including motion information based on the coded block to construct a motion candidate list includes adding at least one motion candidate derived from List0 of a first set of HMVP candidates to the motion candidate list before a motion candidate derived from List1 of a second set of HMVP candidates. The first set and the second set are the same. The first set and the second set are different, and the first set may include HMVP candidates with uni-prediction and bi-prediction from List0, and the second set may include HMVP candidates with uni-prediction and bi-prediction from List1. The first set may include a first number of HMVP candidates, and the second set may include a second number of HMVP candidates, and the first number and the second number are different.
[0319] Using at least one HMVP candidate including motion information based on the coded block to build a motion candidate list includes scaling HMVP candidates in listLX to list L(1-X) to generate a scaled HMVP candidate used for L(1-X). Using at least one HMVP candidate including motion information based on the coded block to build a motion candidate list includes adding the scaled HMVP candidate after other motion candidates derived from the HMVP candidate. Using at least one HMVP candidate including motion information based on the coded block to build a motion candidate list includes adding the scaled HMVP candidate after other motion candidates derived from the HMVP candidate and before a temporal candidate. A check order of the HMVP candidates to be added to the motion candidate list is based on an index of the HMVP candidate. A check order of the HMVP candidates to be added to the motion candidate list is based on a prediction direction. A check order of the HMVP candidates to be added to the motion candidate list is based on the motion information.
[0320] The number of HMVP candidates to be checked in the motion candidate list construction process is predefined. The number of HMVP candidates to be checked in 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. The number of HMVP candidates to be checked in 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 tile group header, a slice header, a group of rows of coding tree units (CTUs), a CTU, or a group of CTUs. The HMVP candidates selected to be checked in the motion candidate list are based on at least one of a prediction direction, a motion vector (MV) information, a reference picture index, a POC distance between the reference picture and the current picture of the candidate, and a candidate index. The application of HMVP to the current block is based on the block size of the current block or the block shape of the current block. The motion candidate list includes a merge list. The motion candidate list can also be applied to other types of motion candidate lists except a merge candidate list.
[0321] Certain features preferably implemented by some embodiments of the present invention are disclosed in a section format.
[0322] 1. A method for processing an image, comprising: determining a plurality of sub-portions for a current block of visual media data during conversion between the current block of visual media data and a corresponding encoded representation of the visual media data; determining intra prediction information for the plurality of sub-portions; performing the transformation of the current block using the intra prediction information of the plurality of sub-portions; The current block is intra-coded and at least one of the sub-portions is a non-rectangular and non-square sub-portion.
[0323] 2. The method of claim 1, wherein determining intra prediction information for the plurality of sub-portions comprises: determining first intra prediction information for a first sub-portion in the plurality of sub-portions using a first intra prediction mode; determining second intra prediction information for a second sub-portion in the plurality of sub-portions using a second intra prediction mode; A method, wherein the first intra-prediction mode is different from the second intra-prediction mode.
[0324] 3. 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; The method of claim 2 , wherein the first subset of intra-prediction modes is different from the second subset of intra-prediction modes.
[0325] 4. The method of claim 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.
[0326] 5. The method according to any one of claims 1 to 4, wherein determining intra prediction information for the plurality of sub-portions further comprises: filtering estimates of samples along an edge boundary of the at least one subportion of the plurality of subportions.
[0327] 6. A method according to any one of claims 1 to 5, comprising determining first intra prediction information of a first subportion of the plurality of subportions without using the second intra prediction information of the second subportion of the plurality of subportions, and determining the second intra prediction information of the second subportion without using the first intra prediction information of the first subportion.
[0328] 7. A method according to any one of claims 1 to 5, comprising using second intra prediction information of a second subportion of the plurality of subportions to determine first intra prediction information of a first subportion of the plurality of subportions and / or using the first intra prediction information of the first subportion to determine the second intra prediction information of the second subportion.
[0329] 8. A method for processing an image, comprising: determining a plurality of sub-portions for a current block of visual media data during conversion between the current block of visual media data and a corresponding encoded representation of the visual media data; determining motion information of the plurality of sub-portions; performing the transformation of the current block using the motion information of the plurality of sub-portions; The current block is inter-coded and at least one of the sub-portions is a non-rectangular and non-square sub-portion.
[0330] 9. The method of claim 8, wherein determining motion information for the plurality of sub-portions comprises: determining first motion information for a first sub-portion in the plurality of sub-portions using a first intra-prediction mode; and determining second motion information for a second sub-portion in the plurality of sub-portions using a second intra-prediction mode.
[0331] 10. A method according to any one of claims 8 to 9, wherein the step of determining intra prediction of the plurality of sub-portions further comprises: filtering estimates of samples along an edge boundary of the at least one subportion of the plurality of subportions.
[0332] 11. A method according to any one of claims 8 to 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.
[0333] 12. A method according to any one of claims 8 to 9, wherein the first motion information of the first sub-portion is determined using the second motion information of the second prediction and / or the second motion information of the second sub-portion is determined using the first motion information of the first sub-portion.
[0334] 13. A video processing method comprising: performing a conversion between a current block of visual media data and a corresponding coded representation of the visual media data, the current block being divided into a plurality of sub-portions according to a division pattern, a first sub-portion having a non-rectangular, non-square shape; processing the first sub-portion in an intra-coding mode; and processing the second sub-portion in an inter-coding mode.
[0335] 14. The method of claim 13, wherein the second subportion is processed by applying bi-prediction.
[0336] 15. The method according to any one of claims 13 to 14, The method further includes signaling motion information having a merge index in response to the current block being encoded in merge mode.
[0337] 16. The method according to any one of claims 13 to 15, The method, further comprising determining motion information for the first prediction portion using a subset of intra-prediction modes.
[0338] 17. The method of claim 16, wherein the subset of intra prediction modes is based on at least one of a position of the first prediction portion, a size of the first prediction portion, and a shape of the first prediction portion.
[0339] 18. A video processing method comprising: performing a conversion between a current block of visual media data and a corresponding coded representation of the visual media data, the current block being divided into a plurality of sub-portions according to a division pattern, a first sub-portion having a non-rectangular, non-square shape; A method according to claim 1, wherein at least one of the sub-portions is merged or non-merged inter-coded and uses the current picture as a reference picture.
[0340] 19. A video processing method comprising: performing a conversion between a current block of visual media data and a corresponding coded representation of the visual media data, the current block being divided into a plurality of sub-portions according to a partitioning pattern, wherein a first predicted partitioning has a non-rectangular, non-square shape; and performing said transformation using inter- or intra-coded information of one or more non-adjacent spatial blocks.
[0341] 20. The method of claim 19, wherein the inter- or intra-coded information of one or more non-adjacent spatial blocks includes motion information of the one or more non-adjacent spatial blocks.
[0342] 21. Performing the transformation of the current block using inter-coded or intra-coded information of one or more non-adjacent spatial blocks, The method of claim 19 , comprising performing the transform of the current block using an intra-prediction mode of the one or more non-adjacent spatial blocks.
[0343] 22. The method of claim 19, in which coded information of temporal blocks is used.
[0344] 23. A video processing device comprising a processing device configured to implement a method according to any one of claims 1 to 22.
[0345] 24. The apparatus of claim 23, wherein the apparatus is a video encoder.
[0346] 25. The apparatus of claim 23, wherein the apparatus is a video decoder.
[0347] 26. The program causes a processing device to carry out the method according to any one of claims 1 to 22. A computer-readable recording medium having a program including code recorded thereon.
[0348] Certain features preferably implemented by some embodiments of the present invention are disclosed in a section format.
[0349] 1. A method for processing an image, comprising: determining, during conversion between a first block of visual media data and a corresponding encoded representation of the visual media data, whether the first block is encoded in a geometry partitioning mode; determining motion information of at least one sub-portion of the first block based on at least one table storing historical motion vector prediction (HMVP) candidates including motion information based on the coded block; and transforming the first block using the determined motion information.
[0350] 2. The method of claim 1, wherein the first block is encoded in a geometry partitioning mode; dividing the first block into a plurality of sub-portions; At least one of the plurality of sub-portions is a non-rectangular and non-square portion.
[0351] 3. The method according to claim 1, determining motion information for the second block of visual media data during conversion between the second block of visual media data and the corresponding encoded representation of the visual media data based on the same table as used for the first block; The method, wherein the second block does not use the geometry division mode.
[0352] 4. The method according to any one of claims 1 to 3, further comprising prohibiting the motion information used in the first block from being stored in the at least one table.
[0353] 5. The method according to any one of claims 1 to 4, wherein the at least one table is not updated after the transformation of the first block.
[0354] 6. The method of any one of claims 1 to 5, wherein the at least one table comprises a plurality of tables maintained to store the HMVP candidates for blocks of the geometry partitioning mode.
[0355] 7. The method of claim 6, wherein in the at least one table, the stored HMVP candidates have motion information based only on motion information used in blocks of the geometry partitioning mode.
[0356] 8. The method of any one of claims 1 to 7, wherein the at least one table includes two tables maintained to store uni-predicted HMVP candidates and bi-predicted HMVP candidates, respectively.
[0357] 9. A method according to any one of claims 1 to 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.
[0358] 10. The method of any one of claims 1 to 9, wherein the at least one table includes two tables maintained to store motion information for List0 and List1, respectively.
[0359] 11. The method of any one of claims 1 to 10, wherein the at least one table includes three tables maintained to store, respectively, uni-predicted HMVP candidates from List0, uni-predicted HMVP candidates from List1, and bi-predicted HMVP candidates.
[0360] 12. A method according to any one of claims 1 to 11, wherein the at least one table is updated with the motion information of a sub-portion of the first block.
[0361] 13. A method according to any one of claims 1 to 12, wherein the at least one table is updated with the motion information of a first sub-portion and the motion information of a second sub-portion of a first block, the first sub-portion and the second sub-portion being sub-portion s of the first block.
[0362] 14. The method of claim 13, wherein the at least one table is updated with the motion information of the first sub-portion and the motion information of the second sub-portion by adding one HMVP candidate.
[0363] 15. The method of claim 14, wherein whether to update the at least one table 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.
[0364] 16. The method of claim 14, wherein whether to update the at least one table by adding motion information of the first sub-portion or the second sub-portion depends on a difference in picture order count (POC) between a reference picture and a current picture.
[0365] 17. The method according to any one of claims 1 to 16, The method further includes using motion information of blocks having non-rectangular and non-square portions to update the maintained table after processing the blocks having non-rectangular and non-square portions to store the HMVP candidates of the blocks having non-rectangular and non-square portions.
[0366] 18. The method according to any one of claims 1 to 16, wherein the method comprises: The method further includes updating the maintained table after processing the blocks that do not include the non-rectangular, non-square portions, and using the motion information of the blocks that do not include the non-rectangular, non-square portions to store the HMVP candidates for the blocks that do not include the non-rectangular, non-square portions.
[0367] 19. The method according to any one of claims 1 to 16, wherein the method comprises: The method further includes updating the maintained table after processing the blocks that do not include the non-rectangular, non-square portions, and using the motion information of the blocks that do not include the non-rectangular, non-square portions to store the motion vector prediction (HMVP) candidates for the blocks that include the non-rectangular, non-square portions.
[0368] 20. The method according to any one of claims 1 to 19, wherein the geometry decomposition mode includes a triangulation mode.
[0369] 21. The method according to any one of claims 1 to 20, wherein the method is applicable to other types of motion candidate lists.
[0370] 22. A video processing device comprising a processing device configured to implement a method according to any one of claims 1 to 21.
[0371] 23. The apparatus of claim 22, wherein the apparatus is a video encoder.
[0372] 24. The apparatus of claim 22, wherein the apparatus is a video decoder.
[0373] 25. The program causes a processing device to carry out the method according to any one of claims 1 to 21. A computer-readable recording medium having a program including code recorded thereon.
[0374] Certain features preferably implemented by some embodiments of the present invention are disclosed in a section format.
[0375] 1. A method for processing an image, comprising: determining, during conversion between a first block of visual media data and a corresponding encoded representation of the visual media data, whether the first block is encoded in a geometry partitioning mode; determining motion information for at least one sub-portion of the first block; performing the transformation of the first block using the motion information of the at least one sub-portion; Determining motion information of at least one sub-portion includes using at least one history-based motion vector prediction (HMVP) candidate, including motion information based on the aforementioned encoded block, to construct a motion candidate list, and determining motion information from the motion candidate list.
[0376] 2. The method of claim 1, wherein the first block is encoded in a geometry partitioning mode; dividing the first block into a plurality of sub-portions; At least one of the plurality of sub-portions is a non-rectangular and non-square portion.
[0377] 3. The method according to claim 1, adding the at least one HMVP candidate directly to the motion candidate list.
[0378] 4. The method according to any one of claims 1 to 3, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct a motion candidate list comprises: The method includes using one HMVP candidate to determine a first motion candidate and a second motion candidate, wherein one of the first motion candidate and the second motion candidate is single-predicted by the HMVP candidate's List0 motion information and the other is single-predicted by the HMVP candidate's List1 motion information.
[0379] 5. The method according to any one of claims 1 to 4, The method further comprising pruning in response to inserting motion candidates derived from the HMVP candidates into other spatial or temporal video block based motion candidates.
[0380] 6. The method according to any one of claims 1 to 5, responsive to inserting motion candidates derived from the HMVP candidate into other motion candidates that are based on other HMVP candidates, pruning.
[0381] 7. The method according to any one of claims 1 to 6, The method further includes pruning in response to inserting motion candidates derived from the HMVP candidate with other motion candidates that are based on the HMVP candidate.
[0382] 8. The method according to any one of claims 1 to 7, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct the motion candidate list comprises: adding at least one motion candidate derived from the HMVP candidate to the motion candidate list after the motion candidates derived from either or both of the spatial block or the temporal block.
[0383] 9. The method according to any one of claims 1 to 8, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct the motion candidate list comprises: The method includes adding at least one motion candidate derived from an HMVP candidate to a motion candidate list after or before a predefined step in the motion candidate list construction process based on motion information of the spatial or temporal block.
[0384] 10. The method according to any one of claims 1 to 9, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct the motion candidate list comprises: The method includes adding at least one motion candidate derived from the HMVP candidate to a motion candidate list after or before a plurality of predefined steps in the motion candidate list construction process based on motion information of the spatial or temporal block.
[0385] 11. The method according to any one of claims 1 to 10, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct the motion candidate list comprises: adding at least one motion candidate derived from the HMVP candidate and uni-prediction to a motion candidate list after all original uni-prediction candidates.
[0386] 12. The method according to any one of claims 1 to 11, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct the motion candidate list comprises: adding at least one motion candidate derived from an HMVP candidate with uni-prediction or bi-prediction from List0 to the motion candidate list after the shortened List0.
[0387] 13. The method according to any one of claims 1 to 12, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct the motion candidate list comprises: adding at least one motion candidate derived from an HMVP candidate with uni-prediction or bi-prediction from List1 to the motion candidate list after the shortened List1.
[0388] 14. The method according to any one of claims 1 to 13, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct the motion candidate list comprises: Adding at least one motion candidate derived from the at least one HMVP candidate to a motion candidate list after average uni-prediction from List0 or List1 motion candidates.
[0389] 15. The method according to any one of claims 1 to 14, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct the motion candidate list comprises: Prior to averaging uni-prediction from List0 or List1 motion candidates, adding at least one motion candidate derived from at least one HMVP candidate to a motion candidate list.
[0390] 16. The method according to any one of claims 1 to 15, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct the motion candidate list comprises: adding at least one motion candidate derived from the HMVP candidate to a motion candidate list according to interleaving with motion candidates based on spatial or temporal video block motion information relative to the current block.
[0391] 17. The method according to any one of claims 8 to 16, setting a motion candidate derived from the HMVP candidate equal to the HMVP candidate.
[0392] 18. The method according to any one of claims 1 to 17, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct the motion candidate list comprises: Adding at least one motion candidate derived from List0 and List1 of the HMVP candidate to the motion candidate list before a motion candidate derived from List0 and List1 of another HMVP candidate.
[0393] 19. The method according to any one of claims 1 to 18, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct the motion candidate list comprises: Adding at least one motion candidate derived from List0 of the first set of HMVP candidates to the motion candidate list before the motion candidate derived from List1 of the second set of HMVP candidates.
[0394] 20. The method of claim 19, wherein the first set and the second set are the same.
[0395] 21. The first set and the second set are different, and the first set may include HMVP candidates with uni-prediction and bi-prediction from List0, and the second set may include HMVP candidates with uni-prediction and bi-prediction from List1. 20. The method of claim 19.
[0396] 22. The method of claim 19, wherein the first set includes a first number of HMVP candidates and the second set includes a second number of HMVP candidates, the first number and the second number being different.
[0397] 23. The method according to any one of claims 1 to 22, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct the motion candidate list comprises: It involves scaling the HMVP candidates in listLX to list L(1-X) to generate scaled HMVP candidates to be used for L(1-X).
[0398] 24. The method of claim 23, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct the motion candidate list comprises: This involves adding the scaled HMVP candidate after other motion candidates derived from the HMVP candidate.
[0399] 25. The method of claim 23, wherein using at least one HMVP candidate including motion information based on the coded blocks to construct the motion candidate list comprises: This involves adding the scaled HMVP candidate after other motion candidates derived from the HMVP candidate and before the temporal candidate.
[0400] 26. The method of claim 1, wherein a checking order of HMVP candidates added to the motion candidate list is based on an index of the HMVP candidates.
[0401] 27. The method of claim 1, wherein the checking order of HMVP candidates added to the motion candidate list is based on a prediction direction.
[0402] 28. The method according to any one of claims 1 to 25, wherein a checking order of HMVP candidates added to the motion candidate list is based on motion information.
[0403] 29. The method according to any one of claims 1 to 28, wherein the number of HMVP candidates to be checked in the motion candidate list construction process is predefined.
[0404] 30. The method of any one of claims 1 to 28, wherein the number of HMVP candidates to check in 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 for HMVP candidates.
[0405] 31. A method according to any one of claims 1 to 28, wherein the number of HMVP candidates to be checked in the motion candidate list construction process is signalled in a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a tile group header, a slice header, a group of rows of a coding tree unit (CTU), a CTU, or a group of CTUs.
[0406] 32. A method according to any one of claims 1 to 28, wherein the HMVP candidate selected for checking in the motion candidate list is based on at least one of a prediction direction, motion vector (MV) information, a reference picture index, a POC distance between the reference picture and the candidate's current picture, and a candidate index.
[0407] 33. The method of any one of claims 1 to 28, wherein applying HMVP to the current block is based on a block size of the current block or a block shape of the current block.
[0408] 34. The method of any one of claims 1 to 33, wherein the motion candidate list comprises a merge list.
[0409] 35. The method according to any one of claims 1 to 33, wherein the motion candidate list is also applicable to other types of motion candidate lists except the merge candidate list.
[0410] 36. A video processing device comprising a processing device configured to implement a method according to any one of claims 1 to 35.
[0411] 37. The apparatus of claim 36, wherein the apparatus is a video encoder.
[0412] 38. The apparatus of claim 36, wherein the apparatus is a video decoder.
[0413] 39. The program causes a processing device to carry out the method according to any one of claims 1 to 35. A computer-readable recording medium having a program including code recorded thereon.
[0414] The disclosed and other solutions, examples, embodiments, modules, and functional operations described herein, including the structures disclosed herein and their structural equivalents, may be implemented in digital electronic circuitry, or computer software, firmware, or hardware, or in one or more combinations thereof. The disclosed 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 computer-readable medium for execution by or for controlling the operation of a data processing apparatus. The computer-readable medium may be a machine-readable storage device, a machine-readable storage substrate, a memory device, a composition of matter that provides a machine-readable propagated signal, or one or more combinations thereof. The term "data processing apparatus" includes all apparatus, devices, and machines for processing data, including, for example, a programmable processing apparatus, a computer, or multiple processing apparatuses or computers. The apparatus may include, in addition to hardware, code that creates an environment for the execution of the computer program, such as code that constitutes a processing apparatus firmware, a protocol stack, a database management system, an operating system, or one or more combinations thereof. A propagated signal is an artificially generated signal, for example a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to an appropriate receiving device.
[0415] A computer program (also called a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and can 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 recorded as part of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), may be stored in a single file dedicated to the program, or may be stored in multiple coordinating files (e.g., a file that stores one or more modules, subprograms, or code portions). A computer program can be deployed to run on one computer located at one site, or on multiple computers distributed across multiple sites and interconnected by a communication network.
[0416] The processes and logic flows described herein may be performed by one or more programmable processing devices 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, and devices may be implemented as, special purpose logic circuits, such as an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).
[0417] Processors suitable for executing a computer program include, for example, both general purpose and special purpose microprocessors, as well as any one or more processors of any kind of digital computer. Typically, a processor receives instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a processor for performing instructions and one or more memory devices for storing instructions and data. Typically, a computer may include one or more mass storage devices, e.g., magnetic, magneto-optical, or optical disks, for storing data, or may be operatively coupled to receive data from or transfer data to these mass storage devices. However, a computer need not have such devices. 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, EPROMs, EEPROMs, flash memory devices, magnetic disks, e.g., internal hard disks or removable disks, magneto-optical disks, and semiconductor memory devices, such as CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.
[0418] Although this patent specification contains many details, these should not be construed as limiting the scope of any subject matter or what may be claimed, but as descriptions of features that may be specific to particular embodiments of a particular technology. Certain features described in this patent specification in the context of separate embodiments may be implemented in combination in one example. Conversely, various features described in the context of one example may be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may be described above as acting in a particular combination and initially claimed as such, one or more features from a claimed combination may, in some cases, be extracted from the combination, and the claimed combination may be directed to a subcombination or a variation of the subcombination.
[0419] Similarly, although operations are shown in a particular order in the figures, this should not be understood as requiring that such operations be performed in the particular order or sequential order shown, or that all of the operations shown be performed, to achieve desired results, nor should the separation of various system modules in the examples described in this patent specification be understood as requiring such separation in all embodiments.
[0420] Only a few implementations and examples have been described; other embodiments, extensions and variations are possible based on what is described and illustrated in this patent specification.
Claims
1. 1. A method for processing video data, comprising the steps of: determining, during conversion between a first block of visual media data and a corresponding bitstream of the visual media data, the first block of visual media data being coded with a geometry partition mode, the prediction mode for the coding unit; building a motion candidate list corresponding to the merge candidate list based on a table storing one or more motion candidates associated with motion information based on previously coded blocks, the table including a historical motion vector prediction (HMVP) table; determining a geometry partition mode merge index for a geometry partition of the first block included in the corresponding bitstream, the geometry partition mode merge index and the motion candidate list being associated with motion information of the first block; performing the transformation of the first block using the motion information of the first block.
2. The method of claim 1 , further comprising avoiding storing the motion information used in the first block in the table.
3. The method of claim 1 , wherein the table is not updated after the transformation of the first block.
4. determining motion information for the second block of visual media data based on the same table as used for the first block during conversion between the second block of visual media data and a corresponding bitstream of the visual media data; The method of any one of claims 1 to 3, wherein the second block is not coded using the geometry partitioning mode.
5. A method according to any one of claims 1 to 4, wherein constructing the motion candidate list further comprises constructing the motion candidate list based on motion candidates derived from spatial blocks and / or temporal blocks.
6. Constructing a motion candidate list corresponding to the merge candidate list based on a table storing one or more motion candidates associated with motion information based on previously coded blocks, comprising: The method of claim 1 , further comprising adding at least one motion candidate derived from the table for the first block.
7. Adding the motion candidates derived from the table for the first block includes: The method of claim 6 , comprising adding at least one motion candidate derived from the table to the motion candidate list after motion candidates derived from one or both of spatial and temporal blocks.
8. The method of claim 6 , further comprising setting at least one motion candidate derived from the table equal to a corresponding at least one motion candidate in the table.
9. The method of claim 6 , wherein a checking order of motion candidates in the table to be added to the motion candidate list is based on an index of the motion candidate in the table.
10. 10. The method of claim 1, wherein the geometric partitioning mode comprises a plurality of partitioning schemes, at least one partitioning scheme partitioning the first block into two geometric partitions, at least one of which is non-square and non-rectangular.
11. The method according to any one of claims 1 to 9, wherein the geometry decomposition mode comprises a triangulation mode.
12. The method of any one of claims 1 to 11, wherein the converting comprises decoding the first block from a corresponding bitstream.
13. The method of any one of claims 1 to 11, wherein the transforming comprises encoding the first block into the corresponding bitstream.
14. 1. An apparatus for processing video data, comprising a processor and a non-transitory memory having instructions stored thereon, the instructions, when executed by the processor, causing the processor to: determining, during conversion between a first block of visual media data and a corresponding bitstream of the visual media data, the first block of visual media data being coded with a geometry partition mode, the prediction mode for the coding unit; building a motion candidate list corresponding to the merge candidate list based on a table storing one or more motion candidates associated with motion information based on previously coded blocks, the table including a historical motion vector prediction (HMVP) table; determining a geometry partition mode merge index for a geometry partition of the first block included in the corresponding bitstream, the geometry partition mode merge index and the motion candidate list being associated with motion information of the first block; performing the transformation of the first block using the motion information of the first block.
15. A non-transitory computer-readable storage medium storing instructions, the non-transitory computer-readable storage medium storing instructions for a processor to: determining, during conversion between a first block of visual media data and a corresponding bitstream of the visual media data, the first block of visual media data being coded with a geometry partition mode, the prediction mode for the coding unit; building a motion candidate list corresponding to the merge candidate list based on a table storing one or more motion candidates associated with motion information based on previously coded blocks, the table including a historical motion vector prediction (HMVP) table; determining a geometry partition mode merge index for a geometry partition of the first block included in the corresponding bitstream, the geometry partition mode merge index and the motion candidate list being associated with motion information of the first block; performing the transformation of the first block using the motion information of the first block.
16. A method for storing a bitstream, the method comprising: determining a first block, the coding unit, coded in a geometry partition mode, the prediction mode for the coding unit; building a motion candidate list corresponding to the merge candidate list based on a table storing one or more motion candidates associated with motion information based on previously coded blocks, the table including a historical motion vector prediction (HMVP) table; determining a geometry partition mode merge index for a geometry partition of the first block included in the corresponding bitstream, the geometry partition mode merge index and the motion candidate list being associated with motion information of the first block; generating the bitstream using the motion information of the first block; and storing the bitstream on a non-transitory computer-readable recording medium.
