Triggering LUT Update

By employing merged lists of motion vectors and motion candidate tables, the method addresses inefficiencies in motion vector prediction, enhancing video coding efficiency and reducing complexity.

JP7572499B2Active Publication Date: 2024-10-23DOUYIN VISION CO LTD +1

Patent Information

Application Number
JP2023072498
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-01-10
Filing Date
2023-04-26
Publication Date
2024-10-23
Estimated Expiration
2040-01-10

AI Technical Summary

Technical Problem

Current video coding technologies face challenges in efficiently encoding motion information due to limitations in predicting motion vectors from neighboring blocks that may correspond to different objects with varying motion trajectories, leading to increased complexity and coding inefficiencies.

Method used

The implementation of merged lists of motion vectors and motion candidate tables to predict motion information, utilizing lookup tables to store and update motion candidates based on block characteristics and coding modes, enhancing the efficiency of motion vector prediction.

Benefits of technology

This approach improves video compression rates by reducing redundancy in motion vector prediction, thereby decreasing computational complexity and increasing coding efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007572499000006
    Figure 0007572499000006
  • Figure 0007572499000007
    Figure 0007572499000007
  • Figure 0007572499000008
    Figure 0007572499000008
Patent Text Reader

Abstract

To provide a method, a video encoder device, and a program code for encoding and decoding a digital video using a merged list of a motion vector.SOLUTION: An image processing method includes maintaining one or more motion candidate tables, performing a conversion between a current video block of a video and a coded representation of the current video block using multiple video processing operations in a sequence using one motion candidate table, and updating the motion candidate table due to the completion of certain processing operations.SELECTED DRAWING: Figure 29
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS Original Application claims priority and benefit of International Patent Application No. PCT / CN2019 / 071214, filed on January 10, 2019. main Stretch This is a divisional application of patent application No. 2021-539078 based on International Patent Application No. PCT / CN2020 / 071332 filed on January 10, 2020. . International Application No. PCT / CN2019 / 071214 The entire disclosure of which is incorporated by reference as part of the disclosure of this specification.

[0002] This patent specification relates to video coding techniques, devices and systems. [Background technology]

[0003] Despite advances in video compression, digital video remains the largest bandwidth user on the Internet and other digital communications networks. The bandwidth demands for digital video use 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] This document discloses methods, systems, and devices for encoding and decoding digital video using merged lists of motion vectors.

[0005] In one exemplary aspect, a video processing method is disclosed that includes maintaining one or more motion candidate tables, performing a conversion between a current video block of a video and a coded representation of the current video block using a plurality of video processing operations in a sequence using the motion candidate tables, and updating the motion candidate tables due to completion of a particular processing operation.

[0006] In another exemplary aspect, another video processing method is disclosed that includes maintaining one or more motion candidate tables, and determining at least one of i) whether to update one of the one or more motion candidate tables or ii) how to update the motion candidate table based on characteristics of a current video block including a coding mode, a dimension, a video processing data unit, or a low latency check, and performing a conversion between the current video block of a video and a coded representation of the video based on the determination.

[0007] In yet another exemplary aspect, a video encoder device is disclosed that implements the video encoding methods described herein.

[0008] In yet another representative aspect, the various techniques described herein may be implemented as a computer program product stored on a non-transitory computer-readable medium, the computer program product including program code for performing the methods described herein.

[0009] In yet another exemplary aspect, a video decoder device may implement the methods as described herein.

[0010] The details of one or more implementations are set forth in the accompanying attachments, drawings, and description below. Other features will be apparent from the description and drawings, and from the claims. [Brief description of the drawings]

[0011] [Figure 1] FIG. 2 is a block diagram illustrating an example implementation of a video encoder. [Diagram 2] 1 shows a macroblock division in the H.264 video coding standard. [Diagram 3] An example of dividing a coding block (CB) into prediction blocks (PU) will be shown. [Figure 4] 1 illustrates an exemplary implementation for subdividing a CTB into CBs and transform blocks (TBs), with solid lines indicating CB boundaries and dotted lines indicating TB boundaries, including an example CTB including that division, and a corresponding quadtree. [Diagram 5] 1 shows an example of a Quad Tree Binary Tree (QTBT) structure for dividing video data. [Figure 6] 1 shows an example of video block division. [Figure 7] Here is an example of a quadtree division: [Figure 8] 1 shows an example of tree-type signaling. [Figure 9] 13 illustrates an example of a derivation process for building a merge candidate list. [Figure 10] 1 shows examples of spatial merge candidate locations. [Figure 11] 1 shows examples of candidate pairs considered for redundancy check of spatial merge candidates. [Figure 12] Examples of the location of the second PU for N×2N and 2N×N divisions are shown. [Figure 13] 13 illustrates the scaling of motion vectors for temporal merge candidates. [Figure 14] Shows the candidate locations of temporal merge candidates and their co-located pictures. [Figure 15] 1 illustrates an example of a combined bi-predictive merge candidate. [Figure 16] 13 shows an example of a process for deriving motion vector prediction candidates. [Figure 17] 13 illustrates an example of motion vector scaling for spatial motion vector candidates. [Figure 18] 1 illustrates an exemplary Alternative Temporal Motion Prediction (ATMVP) for CU motion prediction. [Figure 19] 1 illustrates an example of identifying a source block and a source picture. [Figure 20] An example of one CU with four sub-blocks and neighboring blocks is shown. [Figure 21] 1 shows an example of bilateral matching. [Figure 22] An example of template matching will be given below. [Diagram 23] An example of unilateral motion estimation (ME) in Frame Rate Up Conversion (FRUC) is shown. [Figure 24] 1 shows an example of DMVR based on bilateral template matching. [Diagram 25] 1 shows an example of spatially neighboring blocks used to derive spatial merging candidates. [Figure 26] 13 shows an example of how to select a representative location for updating a lookup table. [Figure 27A] An example of updating a lookup table with a new set of motion information is given. [Figure 27B] An example of updating a lookup table with a new set of motion information is given. [Figure 28A] 1 illustrates an example hardware platform for implementing the visual media decoding or visual media encoding techniques described herein. [Figure 28B] 1 illustrates an example hardware platform for implementing the visual media decoding or visual media encoding techniques described herein. [Figure 29] 1 is an example flowchart of a video processing method according to some implementations of the disclosed technology. [Diagram 30] 1 is an example flowchart of a video processing method according to some implementations of the disclosed technology. [Diagram 31] 1 shows an example of a decoding flowchart according to the proposed HMVP method. [Diagram 32] An example of updating a table using the proposed HMVP method is given below. [Figure 33A] An example of a redundancy elimination based LUT update method (eliminating one redundant motion candidate) is given. [Figure 33B]An example of a redundancy elimination based LUT update method (eliminating one redundant motion candidate) is given. [Figure 34A] 1 shows an example of a redundancy elimination based LUT update method (eliminating multiple redundant motion candidates). [Figure 34B] 1 shows an example of a redundancy elimination based LUT update method (eliminating multiple redundant motion candidates). DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] To improve video compression rates, researchers are continually seeking new techniques for encoding video.

[0013] 1. Introduction

[0014] This specification relates to video coding technology. In particular, it relates to coding of motion information in video coding (e.g., merge mode, AMVP mode). The present invention can be applied to existing video encoding standards such as HEVC or standards to be finalized (Versatile Video Coding). The present invention can also be applied to future video coding standards or video codecs.

[0015] Short Description

[0016] 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-2 Video, H.264 / MPEG-4 AVC (Advanced Video Coding), and H.265 / HEVC standards. Since H.262, video coding standards have been based on a hybrid video coding structure where temporal prediction plus transform coding is utilized. An example of a typical HEVC encoder framework is shown in Figure 1.

[0017] 2.1 Split structure 2.1.1 Partition Tree Structure in H.264 / AVC

[0018] The core of the coding layer in previous standards was a macroblock containing a 16x16 block of luma samples and, in the case of conventional 4:2:0 colour sampling, two corresponding 8x8 blocks of chroma samples.

[0019] Intra-coded blocks use spatial prediction to exploit spatial correlation between pixels. We define two partitions: 16x16 and 4x4.

[0020] Inter-coded blocks use temporal prediction instead of spatial prediction by estimating the motion between pictures. Motion can be estimated independently for the 16x16 macroblock or any of its sub-macroblock partitions: 16x8, 8x16, 8x8, 8x4, 4x8, 4x4 (see Figure 2). Only one Motion Vector (MV) per sub-macroblock partition is allowed.

[0021] 2.1.2 Partition Tree Structure in HEVC

[0022] In HEVC, CTUs are divided into CUs using a quad-tree structure called a coding tree to adapt to various local features. The decision of whether to code a picture region using inter-picture (temporal) prediction or intra-picture (spatial) prediction is made at the CU level. Each CU can be further divided into one, two or four PUs depending on the PU partition type. Inside one PU, the same prediction process is applied, and related information is sent to the decoder on a PU-by-PU basis. After applying the prediction process based on the PU partition type to obtain the residual block, the CU can be divided into transform units (TUs) based on another quad-tree structure similar to the coding tree for CUs. One of the important features of the HEVC structure is that it has multiple partition concepts including CU, PU, ​​and TU.

[0023] Below we highlight various aspects related to hybrid video coding using HEVC.

[0024] 1) Coding Tree Unit and Coding Tree Block (CTB) Structure. A similar structure in HEVC is the Coding Tree Unit (CTU), which has a size selected by the encoder and may be larger than a conventional macroblock. The CTU consists of a luma CTB and a corresponding chroma CTB and syntax elements. The size L×L of the luma CTB can be selected as L=16, 32, or 64 samples, with larger sizes generally enabling better compression. HEVC then supports splitting the CTB into smaller blocks using a tree structure and quad-tree-like signaling.

[0025] 2) Coding Unit (CU) and Coding Block (CB): The quadtree syntax of a CTU specifies the size and location of its luma and chroma CBs. The root of the quadtree is associated with the CTU. The size of the luma CTB is therefore the maximum size supported for the luma CB. The partitioning of a CTU into luma and chroma CBs is to be signaled together. One luma CB and usually two chroma CBs, together with the associated syntax, form one Coding Unit (CU). A CTB may contain only one CU or may be partitioned to form multiple CUs, each of which has a partition into Prediction Units (PUs) associated with it, and one tree of Transform Units (TUs).

[0026] 3) Prediction Unit and Prediction Block (PB): The decision of whether to code a picture region using inter-picture or intra-picture prediction is made at the CU level. The partition structure of the PU has its root at the CU level. Based on the basic prediction type decision, the size of the luma CB and chroma CB can then be further partitioned and predicted from the luma and chroma prediction blocks (PBs). HEVC supports variable PB size samples from 64x64 to 4x4. Figure 3 shows an example of allowed PBs for an MxM CU.

[0027] 4) TUs and Transform Blocks: The prediction residual is coded using a block transform. The TU tree structure has its root at the CU level. This luma CB residual may be identical to the luma transform block (TB) or may be further divided into smaller luma TBs. The same is true for the chroma TBs. For square TB sizes 4x4, 8x8, 16x16, and 32x32, integer basis functions similar to those of the discrete cosine transform (DCT) are specified. For the 4x4 transform of the luma intra-picture prediction residual, an integer transform derived from a form of the discrete sine transform (DST) is alternatively specified.

[0028] Figure 4 shows an example of subdivision of a CTB into CBs [and transform blocks (TBs)]. The solid lines indicate the CB boundaries, and the dotted lines indicate the TB boundaries. (a) The CTB and its division. (b) The corresponding quadtree.

[0029] 2.1.2.1 Dividing the tree structure into transformation blocks and units

[0030] For residual coding, the CB can be recursively split into transform blocks (TBs). This split is signaled by the residual quadtree. As shown in Figure 4, we only specify the square CB and TB split so that one block can be recursively split into quadrants. For a given luma CB of size M×M, a flag signals whether it is split into four blocks of size M / 2×M / 2. If further splitting is possible, as signaled by the maximum depth of the residual quadtree indicated in the SPS, each quadrant is assigned a flag indicating whether it is split into four quadrants. The leaf node blocks resulting from the residual quadtree are the transform blocks that are further processed by transform coding. The encoder indicates the maximum and minimum luma TB sizes it will use. If the CB size is larger than the maximum TB size, the split is done implicitly. If the splitting results in a luma TB size smaller than the indicated minimum, no splitting is done implicitly. The chroma TB size is half the luma TB size in each dimension, except when the luma TB size is 4×4, in which case one 4×4 chroma TB is used for the area covered by four 4×4 luma TBs. For intra-picture predicted CUs, decoded samples of the nearest neighboring TBs (inside or outside the CB) are used as reference data for intra-picture prediction.

[0031] In contrast to previous standards, the HEVC design allows one TB to span multiple PBs for inter-picture predicted CUs, maximizing the potential coding efficiency benefits of quadtree-structured TB partitioning.

[0032] 2.1.2.2 Parent and Child Nodes

[0033] The CTB is divided based on a quadtree structure, and the nodes are coding units. The multiple nodes in the quadtree structure include leaf nodes and non-leaf nodes. The leaf nodes have no child nodes in the tree structure (i.e., the leaf nodes are not further divided). The non-leaf nodes include a root node of the tree structure. The root node corresponds to a first video block (e.g., the CTB) of the video data. For each non-root node of the multiple nodes, a video block corresponds to a sub-block of a video block corresponding to a parent node in the tree structure of the respective non-root node. Each non-leaf node of the multiple non-leaf nodes has one or more child nodes in the tree structure.

[0034] 2.1.3 Quadtree+2-tree block structure with larger CTU in JEM

[0035] To explore future video coding technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, many new methods have been adopted by JVET and incorporated into reference software called the Joint Exploration Model (JEM).

[0036] 2.1.3.1 Division structure of QTBT block

[0037] Unlike HEVC, the QTBT structure removes the concept of multiple partition types. That is, it removes the decoupling of the concepts of CU, PU, ​​and TU, and improves the flexibility of the shape of CU partition. In the QTBT block structure, a CU can have either a square or a rectangle. As shown in FIG. 5, first, a coding tree unit (CTU) is partitioned by a quadtree structure. The leaf nodes of the quadtree are further partitioned by a binary tree structure. There are two partition types in the binary tree partition: symmetric horizontal partition and symmetric vertical partition. The leaf nodes of the binary tree are called coding units (CUs), and this segmentation is used for prediction and transformation processes without further partitioning. This means that in the QTBT coding block structure, CUs, PUs, and TUs have the same block size. In JEM, a CU consists of coding blocks (CBs) of different color components, e.g., for P and B slices in 4:2:0 chroma format, one CU contains one luma CB and two chroma CBs, and a CU often consists of CBs of a single component, e.g., one CU contains only one luma CB, one CU contains only one luma CB, or for an I slice, two chroma CBs.

[0038] We specify the following parameters for the QTBT partitioning scheme: -CTU size: size of the root node of one quadtree, same concept as HEVC -MinQTSize: The minimum allowable size of a quadtree leaf node. -MaxBTSize: Maximum allowed binary tree root node size -MaxBTDepth: Maximum allowed binary tree depth -MinBTSize: The minimum allowable size of a leaf node in a binary tree.

[0039] In one example of a partitioning structure of QTBT, the size of the CTU is set as 128×128 luma samples with two corresponding 64×64 blocks of chroma samples, MinQTSize is set as 16×16, MaxBTSize is set as 64×64, MinBTSize (for both width and height) is set as 4×4, and MaxBTDepth is set as 4. A quadtree partition is first applied to the CTU to generate quadtree leaf nodes. The quadtree leaf nodes can have sizes from 16×16 (i.e., MinQTSize) to 128×128 (i.e., CTU size). If the quadtree leaf node is 128×128, it is not further partitioned by the binary tree because the size exceeds MaxBTSize (i.e., 64×64). Otherwise, the quadtree leaf node may be further partitioned by the binary tree. Therefore, this quadtree leaf node is also the root node of the binary tree, whose binary tree depth is 0. If the depth of the binary tree reaches MaxBTDepth (i.e., 4), no further splits are considered. If the width of a binary tree node is equal to MinBTSize (i.e., 4), no further horizontal splits are considered. Similarly, if the height of a binary tree node is equal to MinBTSize, no further vertical splits are considered. The leaf node of the binary tree is further processed by the prediction and transformation process without further splits. In JEM, the maximum CTU size is 256x256 luma samples.

[0040] Figure 5 (left) shows an example of block partitioning using QTBT, and Figure 5 (right) shows the corresponding tree representation. Solid lines represent quadtree partitioning, and dotted lines represent binary tree partitioning. At each partition (i.e., non-leaf) node of the binary tree, one flag is signaled to indicate which partition type (i.e., horizontal or vertical) is used, where 0 represents a horizontal partitioning and 1 represents a vertical partitioning. In the case of quadtree partitioning, there is no need to indicate the partitioning type, since a quadtree partitioning always partitions a block horizontally and vertically, generating four sub-blocks of equal size.

[0041] In addition, the QTBT scheme supports the ability for luma and chroma to have separate QTBC structures. Currently, for P and B slices, the luma and chroma CTBs in one CTU share the same QTBT structure. However, for I slices, the luma CTB is divided into CUs by a QTBT structure, and the chroma CTB is divided into chroma CUs by another QTBT structure. This means that one CU in an I slice consists of one luma coding block or two chroma coding blocks, and one CU in a P or B slice consists of coding blocks of all three color components.

[0042] In HEVC, inter prediction for small blocks is restricted to reduce memory access for motion compensation, resulting in no bidirectional prediction being supported for 4x8 and 8x4 blocks, and no inter prediction being supported for 4x4 blocks. In JEM's QTBT, these restrictions are removed.

[0043] 2.1.4 VVC Ternary Tree

[0044] Tree types other than quad-trees and binary trees are supported. In this implementation, we introduce two or more ternary tree (TT) partitions, i.e., horizontal and vertical central ternary trees, as shown in Fig. 6(d) and (e).

[0045] FIG. 6 shows (a) quad-tree division, (b) vertical binary tree division, (c) horizontal binary tree division, (d) vertical central side ternary tree division, and (e) horizontal central side ternary tree division.

[0046] There are two levels of trees: region trees (quad trees) and prediction trees (binary or ternary trees). A CTU is first split by a region tree (RT). The RT leaves may be further split by prediction trees (PT). The PT leaves may also be further split by PTs until a maximum PT depth is reached. A PT leaf is the basic coding unit. For convenience, we also call it a CU. A CU cannot be further split. Both prediction and transformation are applied to CUs, just like in JEM. The whole splitting structure is called a "multi-type tree".

[0047] 2.1.5 Split structure

[0048] The tree structure used in this response is called the Multi-Tree Type (MTT), which is a generalization of QTBT. In QTBT, a Coding Tree Unit (CTU) is first divided into a quad-tree structure, as shown in Figure 5. The leaf nodes of the quad-tree are further divided into binary trees.

[0049] The basic structure of MTT consists of two types of tree nodes: Region Tree (RT) and Prediction Tree (PT), which support nine types of splits, as shown in Figure 7.

[0050] FIG. 7 shows (a) quad-tree partitioning, (b) vertical binary tree partitioning, (c) horizontal binary tree partitioning, (d) vertical ternary tree partitioning, (e) horizontal ternary tree partitioning, (f) horizontal upper asymmetric binary tree partitioning, (g) horizontal lower asymmetric binary tree partitioning, (h) vertical left asymmetric binary tree partitioning, and (i) vertical right asymmetric binary tree partitioning.

[0051] The region tree can be recursively divided into square blocks such that one CTU becomes a leaf node of the region tree of size 4×4. At each node in the region tree, a prediction tree can be formed from one of three tree types: Binary Tree (BT), Ternary Tree (TT), and Asymmetric Binary Tree (ABT). In PT partitioning, it is forbidden to have a quadtree partition in the branch of the prediction tree. As in JEM, the luma tree and chroma tree are divided into I slices. The signaling method of RT and PT is shown in Figure 8.

[0052] 2.2 Inter Prediction in HEVC / H.265

[0053] 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 differential to the predictor, and such a coding mode is called AMVP mode.

[0054] If a CU is coded in skip mode, one PU is associated with this CU, there are no significant residual coefficients, no coded motion vector differentials, 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 an explicit transmission of motion parameters, and an explicit signaling for each PU of the motion vectors corresponding to each reference picture list and the reference picture index corresponding to the use of the reference picture list.

[0055] If the signaling indicates to use one of the two reference picture lists, the PU is generated from one block of samples. This is called "uni-prediction". Uni-prediction is available for both P and B slices.

[0056] If the signaling indicates to use both reference picture lists, the PU is generated from two blocks of samples. This is called "bi-prediction." Bi-prediction is only available for B slices.

[0057] The inter prediction modes defined in HEVC will be described in detail below. First, the merge mode will be described.

[0058] 2.2.1 Merge Mode

[0059] 2.2.1.1 Deriving Merge Mode Candidates

[0060] 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: Step 1: Derive initial candidates Step 1.1: Derive spatial candidates o Step 1.2: Redundancy check of spatial candidates o Step 1.3: Deriving Temporal Candidates Step 2: Insert additional candidates o Step 2.1: Creating bidirectional prediction candidates o Step 2.2: Insertion of zero motion candidates

[0061] These steps are also shown diagrammatically in Fig. 9. 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 the decoder side assumes a constant number of candidates per PU, additional candidates are generated if the number of candidates does not reach the maximum number of merge candidates (MaxNumMergeCand) signaled in the slice header. Since the number of candidates is constant, the index of the best merge candidate is coded using truncated unary binarization (TU). If the size of the 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.

[0062] The operations associated with the above steps are described in detail below.

[0063] 2.2.1.2 Deriving Spatial Candidates

[0064] In the derivation of spatial merge candidates, up to four merge candidates are selected from the candidates at the positions shown in FIG. 10. 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 addition of the remaining candidates is subject to a redundancy check, which can ensure that candidates with the same motion information are removed from the list and improve 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. 11 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. 12 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 in list construction. In fact, adding this candidate makes the bidirectional 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.

[0065] 2.2.1.3 Temporal Candidate Derivation

[0066] 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 FIG. 13, the scaled motion vector of the temporal merge candidate is obtained, which is scaled from the motion vector of the co-located PU using the POC distances tb and td. 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. Description of Scaling of Motion Vectors for Temporal Merge Candidates

[0067] 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, position C1 is used. Otherwise, position C0 is used to derive the temporal merge candidate.

[0068] 2.2.1.4 Inserting additional candidates

[0069] Besides the spatial-temporal merge candidates, there are two additional types of merge candidates: joint bi-predictive merge candidates and zero merge candidates. The spatial-temporal merge candidates are utilized to generate joint bi-predictive merge candidates. The joint bi-predictive merge candidates are used only for B slices. The joint 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. 15 shows the case where two candidates with mvL0 and refIdxL0, or mvL1 and refIdxL1 in the original list (left side) are used to generate the joint 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.

[0070] 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.

[0071] 2.2.1.5 Motion Estimation Regions for Parallel Processing

[0072] 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. Since one prediction unit cannot derive motion parameters from neighboring PUs until its associated motion estimation is completed, the derivation of merge candidates from spatial neighborhoods can interfere with parallel processing. To mitigate the tradeoff between coding efficiency and processing latency, HEVC specifies a Motion Estimation Region (MER), whose size is signaled in the picture parameter set using the "log2_parallel_merge_level_minus2" syntax element. When specifying an MER, merge candidates in the same region are marked as unavailable and therefore not considered in list construction.

[0073] 7.3.2.3 Picture parameter set RBSP syntax 7.3.2.3.1 General picture parameter set RBSP syntax

[0074] [Table 1]

[0075] log2_parallel_merge_level_minus2+2 specifies the value of the variable Log2ParMrgLevel used in the derivation of luminance motion vectors for merge modes specified in section 8.5.3.2.2 and in the derivation of spatial merge candidates specified in section 8.5.3.2.3. The value of log2_parallel_merge_level_minus2 shall be in the range 0 to CtbLog2SizeY-2 inclusive. The variable Log2ParMrgLevel is derived as follows: Log2ParMrgLevel=log2_parallel_merge_level_minus2+2 (7-37) NOTE 3: The value of Log2ParMrgLevel indicates the built-in capability of deriving merge candidate lists in parallel. For example, if Log2ParMrgLevel is equal to 6, merge candidate lists for all prediction units (PUs) and coding units (CUs) contained in a 64x64 block can be derived in parallel.

[0076] 2.2.2 Motion Vector Prediction in AMVP Mode

[0077] Motion vector prediction exploits the spatial-temporal correlation between motion vectors and neighboring PUs, which is used for unambiguous transmission of motion parameters. First, a motion vector candidate list is constructed by checking the availability of the left, upper temporally neighboring PU positions, removing redundant candidates, and adding zero vectors to keep the length of the candidate list constant. Then, the encoder can 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 coded using a shortened unary term. The maximum value of the coding target in this case is 2 (e.g., Figures 2 to 8). The following chapters will explain the details of the motion vector prediction candidate derivation process.

[0078] 2.2.2.1 Derivation of motion vector prediction candidates

[0079] FIG. 16 summarizes the process of deriving motion vector prediction candidates.

[0080] In motion vector prediction, two types of motion vector candidates are considered: spatial motion vector candidates and temporal motion vector candidates. To derive spatial motion vector candidates, we finally derive two motion vector candidates based on the motion vectors of each PU at five different positions, as shown in Figure 11.

[0081] For derivation of a temporal motion vector candidate, select one motion vector candidate from two candidates derived based on two different co-located positions. After creating an initial list of spatial-temporal candidates, remove duplicate motion vector candidates in the list. If the number of possible candidates is greater than two, remove from the list the motion vector candidates whose reference picture index in the associated reference picture list is greater than 1. If the number of spatial-temporal motion vector candidates is less than two, add an additional zero motion vector candidate to the list.

[0082] 2.2.2.2 Spatial Motion Vector Candidates

[0083] In deriving spatial motion vector candidates, up to two candidates out of five possible candidates derived from PUs located as shown in Fig. 11 that are in the same position as the motion merge are considered. 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 edge, 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: No spatial scaling -(1) Same reference picture list and same reference picture index (same POC) - (2) Different reference picture lists and 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)

[0084] 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 is useful for parallel derivation of the left and top MV candidates. Otherwise, spatial scaling is not allowed for the top motion vector.

[0085] 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 17. 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.

[0086] 2.2.2.3 Temporal Motion Vector Candidates

[0087] Except for deriving the reference picture index, all the processes for deriving the temporal merge candidates are the same as the processes for deriving the spatial motion vector candidates (see FIG. 6, etc.). The reference picture index is signaled to the decoder.

[0088] 2.2.2.4 Signaling of AMVP Information

[0089] For AMVP mode, four parts can be signaled in the bitstream: prediction direction, reference index, MVD, and mv predictor candidate index. Syntax table:

[0090] [Table 2]

[0091] 7.3.8.9 Motion Vector Difference Syntax

[0092] [Table 3]

[0093] 2.3 New Inter-Prediction Method in JEM (Joint Exploration Model)

[0094] 2.3.1 Sub-CU-based motion vector prediction

[0095] 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 a large CU into sub-CUs and deriving motion information of all sub-CUs of the large CU. The Alternative Temporal Motion Vector Prediction (ATMP) method allows each CU to fetch multiple sets of motion information from multiple blocks smaller than the current CU in the collocated reference picture. In the Spatial-Temporal Motion Vector Prediction (STMP) method, we use the temporal motion vector predictor and spatial neighborhood motion vectors to recursively derive the motion vectors of sub-CUs.

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

[0097] 2.3.1.1 Alternative Temporal Motion Vector Prediction

[0098] In Alternative Temporal Motion Vector Prediction (ATMP), the motion vector Temporal Motion Vector Prediction (TMVP) method is modified by fetching multiple sets of motion information (including motion vectors and reference indexes) from blocks smaller than the current CU. As shown in Figure 18, a sub-CU is a square NxN block (by default, N is set to 4).

[0099] ATMVP predicts motion vectors of sub-CUs in a CU in two steps. The first step is to identify the corresponding blocks in a reference picture by a so-called temporal vector. This reference picture is called the motion source picture. The second step is to split the current CU into sub-CUs and obtain the motion vectors and reference indexes of each sub-CU from the blocks corresponding to each sub-CU, as shown in Figure 18.

[0100] In the first step, the reference picture and corresponding block are determined by the motion information of the spatially neighboring blocks of the current CU. In order to avoid the repeated scanning process of the neighboring blocks, the first merge candidate in the merge candidate list of the current CU is used. The first available motion vector and its associated reference index are set to the temporal vector and the index of the motion source picture. In this way, 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. In one example, if the first merge candidate is from the left neighboring block (i.e., A1 in FIG. 19), the associated MV and reference picture are utilized to identify the source block and the source picture.

[0101] FIG. 19 shows a specific example of a source block and a source picture.

[0102] 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 coordinate 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 of HEVC. For example, the decoder checks whether the low-delay condition (i.e., the POC of all reference pictures of the current picture is smaller than the POC of the current picture) is met, and possibly predicts the motion vector MVy (X is equal to 0 or 1, and Y is equal to 1-X) of each sub-CU using the motion vector MVx (the motion vector corresponding to the reference picture list X).

[0103] 2.3.1.2 Spatial-Temporal Motion Vector Prediction

[0104] In this method, the motion vectors of sub-CUs are derived recursively along the raster scan order. This concept is illustrated in Figure 20. 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.

[0105] 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 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 other blocks to the left of sub-CU A (starting from block b, going from top to bottom). Scale the motion information obtained from the neighboring blocks in each list to the first reference frame of the given list. Then, derive the TMVP for sub-block A following the same procedure as the TMVP (Temporal Motion Vector Predictor) derivation specified in HEVC. Fetch 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. This averaged motion vector is assigned as the motion vector of the current sub-CU.

[0106] FIG. 20 shows an example of one CU having four sub-blocks (A to D) and their neighboring blocks (a to d).

[0107] 2.3.1.3 Sub CU Motion Prediction Mode Signaling

[0108] 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 when the sequence parameter set indicates that ATMVP and STMVP are enabled. The coding logic of the additional merge candidates is the same as that of the merge candidates in HM, that is, for each CU in a P or B slice, two or more RD checks are required for the two additional merge candidates.

[0109] In JEM, all bins of the merge index are CABAC coded contexts, whereas in HEVC, only the first bin is a coded context and the remaining bins are bypass coded contexts.

[0110] 2.3.2 Adaptive Motion Vector Difference Resolution

[0111] 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.

[0112] For a CU with at least one non-zero MVD component, 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.

[0113] If the first MVD resolution flag of a CU is zero or 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 MVP in the CU's AMVP candidate list to the corresponding precision.

[0114] 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 speed up the encoder, the following coding method is applied in JEM:

[0115] During the RD check of a CU with normal 1 / 4 luma sample MVD resolution, the motion information (integer luma sample precision) of the current CU is stored. During the RD check of the same CU with integer luma sample and 4 luma sample MVD resolution, the stored motion information (after rounding) is used as a starting point for further small range motion vector refinement, so that the time consuming motion estimation process is not duplicated three times.

[0116] Conditionally invoke RD check for CUs with 4 luma sample MVD resolution. For a CU, if the RD cost of integer luma sample MVD resolution is much larger than that of quarter luma sample MVD resolution, then the RD check of 4 luma sample MVD resolution for the CU is skipped.

[0117] 2.3.3 Pattern Matching Motion Vector Derivation

[0118] The Pattern Matched Motion Vector Derivation (PMMVD) mode is a special merging mode based on the Frame-Rate Up Conversion (FRUC) technique, in which the motion information of blocks is not signaled but derived at the decoder side.

[0119] If that merge flag is true, then the FRUC flag is signaled to the CU. If the FRUC flag is false, then the merge index is signaled and the normal merge mode is used. If the FRUC flag is true, then an additional FRUC mode flag is signaled to indicate which method (bilateral matching or template matching) is used to derive the motion information of the block.

[0120] On the encoder side, the decision of whether to use the FRUC merging mode for a CU is based on the RD cost selection, just as it is done for normal merging candidates. That is, we check both two matching modes (e.g., bilateral matching and template matching) for the CU using the RD cost selection. The one that leads to the minimum cost is further compared with other CU modes. If the FRUC matching mode is the most efficient one, we set the FRUC flag to true for the CU and use the associated matching mode.

[0121] The motion derivation process in FRUC merge mode has two steps. First, perform CU-level motion search, and then perform sub-CU-level motion refinement. At the CU level, derive an initial motion vector for the entire CU based on bilateral matching or template matching. First, generate a list of MV candidates, and select the candidate that leads to the minimum matching cost as the starting point for further CU-level refinement. Then, perform a local search based on bilateral matching or template matching near the starting point, and take the MV result with the minimum matching cost as the MV for the entire CU. Then, use the derived CU motion vector as the starting point to further refine the motion information at the sub-CU level.

[0122] For example, to derive W×H CU motion information, the following derivation process is performed: In the first stage, an MV for the entire W×H CU is derived. In the second stage, the CU is further divided into M×M sub-CUs. The value of M is calculated as (16), where D is a predefined division depth, which is set to 3 by default in JEM. Then, an MV for each sub-CU is derived.

[0123]

number

[0124] As shown in Figure 21, bilateral matching is used to derive the motion information of a current CU by finding the closest matching between two blocks along the motion trajectory of the current CU in two different reference pictures. Assuming a continuous motion trajectory, the motion vectors MV0 and MV1 pointing to two reference blocks are proportional to the temporal distance between the current picture and the two reference pictures, e.g., TD0 and TD1. As a special case, when the current picture is between two reference pictures in time and the temporal distance between the current picture and the two reference pictures is the same, the bilateral matching becomes a bidirectional MV based on a mirror.

[0125] As shown in FIG. 22, template matching is used to derive the motion information of the current CU by finding the closest match between a template in the current picture (a block in the upper and / or left neighbor of the current CU) and a block in the reference picture (the same size as the template). Besides the aforementioned FRUC merge mode, template matching is also applied to the AMVP mode. In JEM, similar to HEVC, AMVP has two candidates. A new candidate is derived by using the template matching method. If the newly derived candidate by template matching is different from the first existing AMVP candidate, it is inserted at the beginning of the AMVP candidate list, and then the list size is set to 2 (meaning removing the second existing AMVP candidate). When applied to the AMVP mode, only the CU level search is applied.

[0126] 2.3.3.1 CU-level MV candidate set

[0127] The CU-level MV candidate set consists of: (i) Original AMVP candidate when the current CU is in AMVP mode (ii) all merge candidates; (iii) Multiple MVs in an interpolated MV field. (iv) Motion vectors of the top and left neighbors

[0128] When bilateral matching is used, each valid MV of the merging candidate is used as input to generate an MV pair assuming bilateral matching. For example, one valid MV of the merging candidate is (MVa, refa) in reference list A. Then, the reference picture refb of the paired bilateral MV is found in another reference list B such that refa and refb are on different sides of the current picture in time. If no such refb is available in reference list B, determine refb as a reference different from refa, whose temporal distance with the current picture is the minimum value in list B. After determining refb, derive MVb by scaling MVa based on the temporal distance between the current picture and refa, refb.

[0129] We also add four MVs from the interpolated MV field to the CU-level candidate list, namely, the MVs at the current CU positions (0,0), (W / 2,0), (0,H / 2), and (W / 2,H / 2) the interpolated MV.

[0130] When applying FRUC in AMVP mode, we also add the original AMVP candidates to the CU-level MV candidate set.

[0131] At the CU level, add up to 15 MVs for AMVP CUs and up to 13 MVs for merged CUs to the candidate list.

[0132] 2.3.3.2 Sub-CU level MV candidate set

[0133] The sub-CU level MV candidate set consists of: (i) MVs determined from CU-level searches; (ii) MVs in the top, left, top-left, and top-right neighborhoods; (iii) a scaled version of the MV collocated from the reference picture; (iv) up to four ATMVP candidates; (v) Up to four STMVP candidates

[0134] The scaled MV from the reference picture is derived as follows: Traverse all the reference pictures in both lists. The MV at the sub-CU's alignment position in the reference picture is scaled with respect to the reference of the starting CU level MV.

[0135] Candidates for ATMVP and STMVP are limited to the first four candidates

[0136] At the sub-CU level, up to 17 MVs are added to the candidate list.

[0137] 2.3.3.3 Generating Interpolated MV Fields

[0138] Before coding a frame, an interpolated motion field is generated for the whole picture based on unilateral ME, and this motion field may later be used as a CU-level or sub-CU-level MV candidate.

[0139] First, the motion field of each reference picture in both reference lists is traversed at the 4x4 block level. For each 4x4 block, if the block does not already have an interpolated motion assigned to it, the motion of the reference block is scaled to the current picture based on the temporal distances TD0 and TD1 (similar to MV scaling of TMVP in HEVC), and the scaled motion is assigned to the block in the current frame, if the 4x4 block does not have a scaled MV assigned to it, the motion of the block is marked as unavailable in the interpolated motion field.

[0140] 2.3.3.4 Interpolation and Matching Costs

[0141] Motion compensated interpolation is necessary when the motion vectors point to fractional sample positions. To reduce complexity, we use bilinear interpolation for both bilateral and template matching instead of the usual 8-tap HEVC interpolation.

[0142] The calculation of the matching cost is slightly different in different steps. When selecting a candidate from the CU-level candidate set, the matching cost is the sum of absolute differences (SAD) of bilateral matching or template matching. After determining the starting MV, the matching cost C of bilateral matching in the sub-CU level search is calculated as follows:

[0143]

number

[0144] where w is a weighting factor empirically set to 4, and MV and MV s denote the current MV and the starting MV, respectively. The SAD is still used as the matching cost for template matching in the sub-CU level search.

[0145] In FRUC mode, the MV is derived by using only luma samples. The derived motion is used for both luma and chroma for MC inter prediction. After determining the MV, an 8-tap interpolation filter for luma and a 4-tap interpolation filter for chroma are used to perform the final MC.

[0146] 2.3.3.5 MV Improvements

[0147] MV refinement is a pattern-based MV search with the criteria of bilateral matching cost or template matching cost. In JEM, two search patterns are supported, namely, UCBDS (Unrestricted Center-Biased Diamond Search) and adaptive cross search for MV refinement at CU level and sub-CU level, respectively. For both CU and sub-CU level MV refinement, MV is directly searched with the accuracy of 1 / 4 luma sample MV, which is followed by 1 / 8 luma sample MV refinement. The search range of MV refinement for CU and sub-CU steps is set equal to 8 luma samples.

[0148] 2.3.3.6 Prediction Direction Selection in Template Matching FRUC Merge Mode

[0149] In the bilateral matching merge mode, bidirectional prediction is always applied to derive the motion information of the CU based on the closest matching between two blocks along the motion trajectory of the current CU in two different reference pictures. For the template matching merge mode, there is no such limitation. In the template matching merge mode, the encoder can select from single prediction from list0, single prediction from list1, or bidirectional prediction for the CU. The selection is made based on the template matching cost as follows: If costBi<=factor*min(cost0,cost1) Bidirectional prediction is used. Otherwise, if cost0<=cost1, Use a single prediction from list0. If not, Use a single prediction from list1.

[0150] Here, cost0 is the SAD of list0 template matching, cost1 is the SAD of list1 template matching, and costBi is the SAD of bidirectional prediction template matching. When the factor value is 1.25, it means that the selection process is biased towards bidirectional prediction. This inter prediction direction selection is applied only to the template matching process at the CU level.

[0151] 2.3.4 Decoder-side motion vector improvement

[0152] In the bidirectional prediction operation, the bidirectionally predicted blocks constructed by using the motion vectors (MVs) in list0 and the MVs in list1 respectively to predict one block region are combined to form one prediction signal. In the Decoder-side Motion Vector Refinement (DMVR) method, the two motion vectors of the bidirectional prediction are further refined by a bilateral template matching process. In order 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.

[0153] 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 Fig. 23. The template matching operation consists of calculating a cost measure between the generated template and a sample region (near the first prediction block) in the reference picture. 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 Fig. 24, to generate the final bidirectional prediction result. We use the sum of absolute difference (SAD) as the cost measure.

[0154] DMVR is applied to the bi-prediction merge mode 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.

[0155] 2.3.5 Merge / Skip Mode with Bilateral Matching Improvements

[0156] First, we build a merge candidate list by inserting the motion vectors and reference indexes of spatially and temporally neighboring blocks into a candidate list with redundancy check until the number of available candidates reaches the maximum candidate size of 19. The merge candidate list for merge / skip mode is built by inserting the spatial candidates (Fig. 11), temporal candidates, affine candidates, Advanced Temporal MVP (ATMVP) candidates, Spatial Temporal MVP (STMVP) candidates, and additional candidates used for HEVC (merge candidates and zero candidates) based on a predefined insertion order.

[0157] -Spatial candidates for blocks 1-4

[0158] -Extrapolation affine candidates for blocks 1 to 4

[0159] -ATMVP

[0160] -STMVP

[0161] - Virtual affine candidates

[0162] - Spatial Candidates (Block 5) (used only if the number of available candidates is less than 6).

[0163] - Extrapolated affine candidates (block 5)

[0164] -Temporal candidates (derived like HEVC)

[0165] - Non-adjacent spatial candidates following extrapolated affine candidates (blocks 6-49 shown in Figure 25)

[0166] -Combination candidates

[0167] -Zero Candidates

[0168] Note that the IC flag is inherited from the merge candidate, except for STMVP and affine. Also, for the first four spatial candidates, we insert the bi-predictive ones before the uni-predictive ones.

[0169] Blocks that are not connected to the current block can be accessed. If the non-adjacent blocks are coded in non-intra mode, the associated motion information may be added as additional merging candidates.

[0170] 3. Examples of problems to be solved by the embodiments disclosed herein

[0171] Current HEVC design can correlate the neighboring blocks of the current block (next to the current block) to better code the motion information. However, the neighboring blocks may correspond to different objects with different motion trajectories. In this case, prediction from the neighboring blocks is not efficient.

[0172] Prediction from motion information of non-adjacent blocks incurs the cost of storing all the motion information (typically at the 4x4 level) in a cache, resulting in no additional coding gain, and significantly increasing the complexity of the hardware implementation.

[0173] 4. Some Examples

[0174] The following examples should be considered as illustrative examples of the general concept. These examples should not be construed in a narrow sense. Moreover, these examples can be combined in any way.

[0175] In some embodiments, one or more lookup tables in which at least one motion candidate is stored may be used to predict the motion information of a block. The embodiment may use a motion candidate to indicate a set of motion information stored in the lookup table. In the case of a conventional AMVP or merge mode, the embodiment may use an AMVP or merge candidate to store the motion information.

[0176] The following examples illustrate the general concepts.

[0177] Lookup Table Example

[0178] Example A1: Each lookup table may include one or more motion candidates, with each candidate associated with its motion information. a. Motion information of a motion candidate may include some or all of: prediction direction, reference index / picture, motion vector, LIC flag, affine flag, MVD precision, MVD value. b. The motion information may further include block position information and / or block shape to indicate where the motion information is coming from.

[0179] c. A counter may also be allocated for each lookup table. i. At the start of encoding / decoding a picture / slice / LCU (CTU) row / tile, a counter may be initialized to zero. ii. In one example, the counter may be updated after encoding / decoding a CTU / CTB / CU / CB / PU / fixed region size (e.g., 8x8 or 16x16). iii. In one example, each time a candidate is added to the lookup table, a counter is incremented by one. iv. In one example, the counter should be less than or equal to the size of the table (the number of allowed motion candidates). v. Alternatively, a counter may be used to indicate how many motion candidates were attempted to be added to the lookup table (some of these may have been included in the lookup table but later removed from the table), in which case the counter may be larger than the size of the table.

[0180] d. The size of the tables (number of allowed motion candidates) and / or the number of tables may be fixed or adaptive. The size of the tables may be the same for all tables or may be different for different tables. i. Alternatively, different sizes can be used for different lookup tables (e.g., 1 or 2) may be used. ii. In one example, the size of the tables and / or the number of tables may be predefined. iii. In one example, the size of the table and / or the number of tables may be signaled in an area containing a Video Parameter Set (VPS), Sequence Parameter Set (SPS), Picture Parameter Set (PPS), slice header, tile header, Coding Tree Unit (CTU), Coding Tree Block (CTB), Coding Unit (CU) or Prediction Unit (PU), multiple CTU / CTB / CU / PU. iv. The size of the table and / or the number of tables may further depend on the slice type, the picture's temporal layer index, the POC (Picture Order Count) distance between one slice and the nearest intra slice.

[0181] e. There are N tables used by a coding thread, and N*P tables are needed to code a slice, where P indicates the number of LCU rows or tiles. i. Alternatively, only P tables may be needed to code a slice, where P indicates the number of LCU rows, and if a tile is disabled, each LCU row uses only one lookup table, even if N can be greater than 1.

[0182] Choosing a LUT

[0183] Example B1: When coding a block, some or all of the motion candidates from one lookup table can be checked in sequence. If one motion candidate is checked while coding a block, this motion candidate may be added to a motion candidate list (e.g., AMVP, merge candidate list). Alternatively, motion candidates from multiple lookup tables may be checked in sequence. b. The lookup table index may be signaled in a CTU, CTB, CU or PU, or in an area including multiple CTUs / CTBs / CUs / PUs.

[0184] Example B2: The selection of the lookup table may depend on the position of the block. a. It may depend on the CTU address that contains the block. Here, to explain the idea, we take two lookup tables (dual lookup table, DLUT) as an example. i. If the block is located in one of the first M CTUs in the CTU row, a first lookup table may be used to code the block, and for blocks located in the remaining CTUs in the CTU row, a second lookup table may be used. ii. If a block is located in one of the first M CTUs in a CTU row, first check whether to code the block by the motion candidates in the first lookup table, and if there are not enough candidates in the first table, the second lookup table may be further used. Meanwhile, for blocks located in the remaining CTUs in the CTU row, the second lookup table may be used. iii. Alternatively, for blocks located in the remaining CTUs of the CTU row, the motion candidates in the second lookup table may be first checked for the coding of the block, and if there are not enough candidates in the second table, the first lookup table may be further utilized.

[0185] b. It may depend on the distance between the position of the block and the position associated with one of the motion candidates in one or more lookup tables. iv. In one example, if one motion candidate is associated with a smaller distance to the block being coded, it may be checked earlier compared to another motion candidate.

[0186] Using a Lookup Table

[0187] Example C1: The total number of motion candidates in the lookup table to be checked may be predefined. a. It may further depend on the coded information, block size, block shape, etc. For example, for AMVP mode, only m motion candidates may be checked, and for merge mode, n motion candidates may be checked (e.g., m=2, n=44). b. In one example, the total number of motion candidates to be checked may be signaled in a Video Parameter Set (VPS), Sequence Parameter Set (SPS), Picture Parameter Set (PPS), slice header, tile header, Coding Tree Set (CTU), Coding Tree Block (CTB), Coding Unit (CU) or Prediction Unit (PU), or an area containing multiple CTUs / CTBs / CUs / PUs.

[0188] Example C2: One or more motion candidates included in the lookup table may be directly inherited by one block. a. They may be used for merge mode coding, i.e., they may check motion candidates in the merge candidate list derivation process. b. They may be used for affine merge mode coding. i. If the affine flag is 1, then the motion candidates in the lookup table can be added as affine merge candidates.

[0189] c. Checking of motion candidates in the lookup table may be enabled if: i. The merge candidate list is not full after inserting a TMVP candidate. ii. After checking certain spatially neighboring blocks for spatial merge candidate derivation, the merge candidate list is not full. iii. After all spatial merge candidates, there is space in the merge candidate list. iv. After combining the bi-predictive merge candidates, there is space in the merge candidate list. v. If the number of spatial or temporal (e.g., TMVP, STMVP, ATMVP, etc., including adjacent and non-adjacent spaces) merge candidates placed in the merge candidate list from other coding schemes (e.g., the merge derivation process of the HEVC design, or the JEM design) is less than the maximum allowed merge candidates minus a given threshold. 1. In one example, the threshold is set to 1 or 0. 2. Alternatively, the threshold may be signaled in the SPS / PPS / sequence, picture, slice header / tile or may be pre-defined. 3. Alternatively, the threshold may be adaptively changed per block, e.g., it may depend on coded block information like block size / block shape / slice type and / or it may depend on the number of available spatial or temporal merging candidates. 4. In another example, the number of certain merge candidates that are not already included in the merge candidate list is less than the maximum allowed merge candidates minus a given threshold. The "certain merge candidates" may be spatial candidates such as HEVC or non-adjacent merge candidates. vi. Before adding motion candidates to the merge candidate list, pruning may be applied. 1. In one example, motion candidates may be pruned to all or a portion of spatial or temporal (e.g., including adjacent and non-adjacent spatial, TMVP, STMVP, ATMVP, etc.) merge candidates available from other coding methods in the merge candidate list. 2. The motion candidates may not be pruned to sub-block based motion candidates, e.g., ATMVP, STMVP. 3. In one example, the current motion candidate may be pruned to all or a portion of the available motion candidates in the merge candidate list (inserted before the current motion candidate). 4. The number of pruning operations associated with a motion candidate (i.e., the number of times a motion candidate needs to be compared to other candidates in the merge list) may depend on the number of available spatial or temporal merge candidates. For example, when checking a new motion candidate, if there are M candidates available in the merge list, the new motion candidate can only be compared to the first K (K<=M) candidates. If the pruning function returns false (e.g., not identical to any of the first K candidates), the new motion candidate is considered to be different from all M candidates and can be added to the merge candidate list. In one example, K is set to min(K,2). 5. In one example, only compare the newly added motion candidate with the first N candidates in the merge candidate list. For example, N=3, 4 or 5. N may be signaled from the encoder to the decoder. 6. In one example, the new motion candidate being checked is only compared to the last N candidates in the merge candidate list, for example N=3, 4 or 5. N may be signaled from the encoder to the decoder. 7. In one example, the method of selecting from a table of candidates previously added to the list against which to compare a new motion candidate may depend on where the previously added candidate was derived from. In one example, motion candidates in a lookup table may be compared to candidates derived from given temporal and / or spatial neighboring blocks. b. In one example, different entries of motion candidates in the lookup table may be compared to different candidates that were previously added (ie, derived from different positions).

[0190] Example C3: The motion candidates included in the look-up table may be used as predictors for coding the motion information of a block. a. They may be used for AMVP mode coding, i.e., to check motion candidates in the AMVP candidate list derivation process. b. Checking of motion candidates in the lookup table may be enabled if: i. The AMVP candidate list is not full after inserting a TMVP candidate. ii. The AMVP candidate list is not full after selecting from spatial neighbors and pruning, and immediately prior to inserting a TMVP candidate. iii. If no AMVP candidates from the neighboring blocks above are present without scaling, and / or if no AMVP candidates from the neighboring blocks to the left are present without scaling. iv. Before adding motion candidates to the AMVP candidate list, pruning may be applied. Similar rules as stated in v.5.(3)(4) may be applied to AMVP mode.

[0191] c. Check for motion candidates that have the same reference picture as the current reference picture. i. Alternatively, also check motion candidates (in the MV scaled state) that have a different reference picture than the current reference picture. ii. Alternatively, first check all motion candidates that have the same reference picture as the current reference picture, and then check motion candidates that have a different reference picture than the current reference picture. iii. Alternatively, check the motion candidates after merging.

[0192] Example C4: The checking order of motion candidates in the lookup table is specified as follows (assuming that K (K>=1) motion candidates can be checked): The last K motion candidates in the lookup table are arranged, for example, in descending order of entry index into the LUT. b. The first K%L candidates, where L is the size of the lookup table, where K>=L, arranged, for example, in descending order of entry index into the LUT. If cK>=L, then all candidates in the lookup table (L candidates), based on order. In one example, check the first K%L candidates in the table in descending order of entry index into the LUT, then check the last (LK%L) candidates in descending order of entry index.

[0193] d. Alternatively, also based on descending order of motion candidate indices. e. Alternatively, it may be based on ascending order of motion candidate indices. f. Alternatively, select the K motion candidates based on candidate information such as the distance of the position associated with the motion candidates and the current block. i. In one example, select the K closest motion candidates. ii. In one example, the candidate information may further take into account the shape of the block when calculating the distance.

[0194] g. In one example, the checking order of K motion candidates from a table containing L candidates may be defined as follows: a0, a0+T0, a0+T0+T1, a0+T0+T1+T2, ... a0+T0+T1+T2+...+T K-1 Select candidates with indexes a0 and T i (i is 0...K-1) is an integer value. i. In one example, a0 is set to 0 (i.e., the first entry of the motion candidate in the table). Alternatively, a0 is set to (KL / K). The operation " / " is defined as integer division that truncates the result towards zero. Alternatively, a0 is set to any integer between 0 and L / K. 1. Alternatively, the value of a0 may depend on the coding information of the current block and neighboring blocks. ii. In one example, for every interval T i (i is 0...K-1) is the same, e.g. L / K. The operation " / " is defined as integer division with the result truncated towards zero. iii. In one example, (K, L, a0, T i ) is set to (4,16,0,4), or (4,12,0,3), or (4,8,0,1), or (4,16,3,4), or (4,12,2,3), or (4,8,1,2). i is the same for all i. iv. Such methods may only be applied if K is smaller than L. v. Alternatively, part 7.c. may also be applied if K is greater than or equal to a threshold. This threshold may be defined as L, or may depend on K, or may be adaptively changed for each block. In one example, the threshold may depend on the number of available motion candidates in the list before adding new motion candidates from the lookup table.

[0195] h. In one example, the checking order of K motion candidates from a table containing L candidates may be defined as follows: a0, a0-T0, a0-T0-T1, a0-T0-T1-T2, ... a0-T0-T1-T2-...-T K-1 Candidates with index Select a0 and T in order. i (i is 0...K-1) is an integer value. In one example, a0 is set to L-1 (i.e., the last entry of the motion candidates in the table). Alternatively, a0 is set to any integer between L-1-L / K and L-1. ii. In one example, all the intervals Ti (i is 0...K-1) are the same, say L / K. iii. In one example, (K, L, a0, T i ) is set to (4,16,L-1,4), or (4,12,L-1,3), or (4,8,L-1,1), or (4,16,L-4,4), or (4,12,L-3,3), or (4,8,L-2,2). i is the same for all i. iv. Such methods may only be applied if K is smaller than L. Alternatively, part 7.c. may also be applied if K is greater than or equal to a threshold. This threshold may be defined as L, or may depend on K, or may be adaptively changed for each block. In one example, the threshold may depend on the number of available motion candidates in the list before adding new motion candidates from the lookup table.

[0196] i. The number and / or manner of selecting motion candidates from the look table may depend on the coded information, eg, block size / block shape. i. In one example, for smaller block sizes, instead of selecting the last K motion candidates, one may select the other K motion candidates (not starting from the end). ii. In one example, the coded information may be in AMVP mode or in merge mode. iii. In one example, the coded information may be in affine mode or non-affine AMVP mode or non-affine merge mode. iv. In one example, the coded information may be in affine AMVP (inter) mode, affine merge mode, non-affine AMVP mode, or non-affine merge mode. v. In one example, the coded information may or may not be in Current Picture Reference (CPR) mode. vi. Alternatively, the method of selecting a motion candidate from the lookup table may further depend on the number of motion candidates in the lookup table and / or the number of available motion candidates in the list before adding a new motion candidate from the lookup table.

[0197] j. In one example, the maximum number of available motion candidates in the lookup table to be checked (i.e., may be added to the merge / AMVP candidate list) is the number of available motion candidates in the lookup table (N avaiMCinLUT ), and / or the number of maximum allowable motion candidates to be added (NUM maxMC ) (which may be predefined or signaled), and / or the number of available motion candidates in the candidate list (N avaiC (denoted by i. In one example, the maximum number of motion candidates in the lookup table to be checked is (N avaiMCinLUT ,NUM maxMC ,N avaiC ) ii. Alternatively, the maximum number of motion candidates in the lookup table to be checked is (N avaiMCinLUT ,NUM maxMC -N avaiC ) iii. In one example, N avaiC is spatially or temporally (adjacent and / or Alternatively, the number of sub-block candidates (AMTVP, STMVP, etc.) is N avaiC is not included. iv.NUM maxMC may depend on the coded mode, e.g., merge mode and AMVP mode, and NUMmaxMC may be set to different values. In one example, in merge mode, NUM maxMC may be set to 4, 6, 8, 10, etc. In AMVP mode, NUM maxMC may be set to 1, 2, 4, etc. v. Alternatively, NUM maxMC may depend on other coded information such as block size, block shape, slice type, etc.

[0198] k. The order in which the different lookup tables are checked is specified in the next subsection, Lookup Table Usage. l. Once the merge / AMVP candidate list reaches the maximum number of allowed candidates, this checking process ends. m. Once the merge / AMVP candidate list reaches the maximum allowed number of candidates minus a threshold (Th), the checking process ends. In one example, Th may be predefined as a positive integer value, e.g., 1, 2, or 3. Alternatively, Th may be adaptively changed per block. Alternatively, Th may be signaled in the SPS / PPS / slice header, etc. Alternatively, Th may further depend on the block shape / block size / coded mode, etc. Alternatively, Th may depend on the number of available candidates before adding the motion candidates from the LUT. Alternatively, it terminates when the number of added motion candidates reaches the maximum allowed number of motion candidates. The maximum allowed number of motion candidates may be signaled or predefined. Alternatively, the maximum allowed number of motion candidates may further depend on block shape / block size / coded mode, etc. o. One syntax element indicating the table size as well as the number of motion candidates to check (ie, K=L) may be signaled in the SPS, PPS, slice header, or tile header.

[0199] Example C5: Enabling / disabling the use of a lookup table for motion information coding of a block may be signaled in an area including an SPS, PPS, slice header, tile header, CTU, CTB, CU, or PU, or multiple CTU / CTB / CU / PU.

[0200] Example C6: Whether to apply a prediction from the lookup table may depend on further coded information. If it is inferred not to apply to the block, the additional signaling of the prediction indication is skipped. Alternatively, if it is inferred not to apply to the block, there is no need to access the motion candidates in the lookup table and the check of the relevant motion candidates is omitted. Whether to apply prediction from the lookup table may depend on the block size / block shape. In one example, smaller blocks, e.g., 4TB, CU, or PU, may be signaled in areas containing multiple CTU / CTB / CU / PU. b. Whether prediction from a lookup table is applied may depend on whether the block is coded in AMVP mode or merge mode. In one example, in AMVP mode, prediction from a lookup table is not allowed. c. Whether to apply prediction from a lookup table may depend on whether the block is coded with affine motion or other types of motion (e.g., translational motion). In one example, in the case of affine mode, prediction from a lookup table is not allowed.

[0201] Example C7: Motion candidates in a look-up table in a previously coded frame / slice / tile may be used to predict motion information of a block in a different frame / slice / tile. In one example, only the look-up tables associated with the reference pictures of the current block may be utilized for coding the current block. b. In one example, only lookup tables associated with pictures having the same slice type and / or the same quantization parameter of the current block may be utilized to code the current block.

[0202] Update the lookup table

[0203] Example D1: After coding a block with motion information (ie, IntraBC mode, inter coding mode), one or more look-up tables may be updated. a. In one example, whether to update a lookup table may reuse the rule for selecting a lookup table, for example, if a lookup table can be selected for encoding / decoding the current block, the selected lookup table may be further updated after encoding / decoding the block. b. The lookup table to be updated may be selected based on the coded information and / or the location of the block / LCU.

[0204] c. If the block is coded with directly signaled motion information (eg, AMVP mode, MMVD mode in normal / affine inter mode, AMVR mode in normal / affine inter mode), the motion information of the block can be added to the lookup table. i. Alternatively, if a block is coded with motion information inherited directly from spatially neighboring blocks without any refinement (e.g., a spatial merge candidate without refinement), the block's motion information should not be added to the lookup table. ii. Alternatively, if a block is coded with motion information inherited directly from spatially neighboring blocks with refinement (DMVR, FRUC, etc.), the block's motion information should not be added to any lookup table. iii. Alternatively, if a block is coded with motion information inherited directly from motion candidates stored in a lookup table, the motion information of the block should not be added to any lookup table. iv. In one example, such motion information may be added directly to a lookup table, such as the last entry in the table or the entry used to store the next available motion candidate. v. Alternatively, such motion information may be added directly to the look-up table without pruning, eg, without any pruning. vi. Alternatively, such motion information may be used to reorder the look-up table. vii. Alternatively, such motion information may be used to update the look-up table (eg, relative to the current state of the look-up table) with limited pruning.

[0205] d. M representative positions within the block are selected and the motion information associated with the representatives is used to update the look-up table. i. In one example, the representative position is defined as one of four corner positions (eg, C0 to C3 in FIG. 26) in the block. ii. In one example, the representative position is defined as the center position within the block (eg, Ca to Cd in FIG. 26). iii. If sub-block prediction is not allowed for the block, then M is set to 1. iv. If sub-block prediction is allowed for the block, then M may be set to 1, or the total number of sub-blocks, or a unique value between [1 and the number of sub-blocks] exclusively. v. Alternatively, if sub-block prediction is allowed for a block, M can be set to 1 and the selection of the representative sub-block is made based on: 1. Frequency of use of movement information 2. Whether it is a bidirectional prediction block or not 3. Based on reference picture index / reference picture 4. Difference of the motion vector compared to other motion vectors (e.g., select the maximum MV difference) 5. Other coded information

[0206] When selecting a set of eM (M>=1) representative positions to update the lookup table, further conditions may be checked before adding them to the lookup table as further motion candidates. i. A set of new motion information may be pruned relative to existing motion candidates in the lookup table. ii. In one example, the new set of motion information must not be identical to any or any part of the existing motion candidates in the lookup table. Alternatively, for a new set of motion information and the same reference picture from one existing motion candidate, the MV difference should not be smaller than 1 / multiple thresholds. For example, the horizontal and / or vertical modules of the MV difference should be greater than a distance of 1 pixel. iv. Alternatively, if K>L, prune the new set of motion information only by the last K candidates or the first K%L existing motion candidates, allowing old motion candidates to become active again. v. Alternatively, no pruning is applied.

[0207] f. When a set of M motion information is used to update a lookup table, the corresponding counter should be incremented by M. g. Let K be the counter of the lookup table to be updated, and before coding the current block, for one set of motion information selected (by the method described above), add this block as an additional motion candidate with an index equal to K%L (where L is the size of the lookup table), after coding the block. An example is shown in Figure 27A and Figure 27B. Alternatively, it is added as an additional motion candidate with index equal to min(K+1,L-1).Alternatively, further, if K≧L, remove the first motion candidate (with index 0) from the lookup table and reduce the indexes of the subsequent K candidates by 1. ii. For both above methods (adding a new motion candidate at an entry index equal to K%L or adding an index equal to min(K+1,L+1)), they try to maintain the latest few sets of motion information from the previous coded block, regardless of whether the same / similar motion candidates exist or not. iii. Alternatively, when adding a new set of motion information to the LUT as a motion candidate, a redundancy check is first performed. In this case, the LUT holds the last few sets of motion information from previous coded blocks, but redundant motion information may be removed from the LUT. Such a method is called a redundancy-removal based LUT updating method. 1. If there are duplicate motion candidates in the LUT, the counter associated with the LUT may not be incremented or may be decremented. 2. This redundancy check may be defined as a pruning process in the merge candidate list construction process, such as checking whether the reference picture / reference picture indices are the same and whether the motion vector difference is within range or identical. 3. If a redundant motion candidate is found in the LUT, move the redundant motion candidate from its current position to the last LUT. a. Similarly, if a redundant motion candidate is found in the LUT, remove this redundant motion candidate from the LUT. Also, all motion candidates inserted into the LUT after the redundant motion candidate are shifted forward to refill the entry of the removed redundant motion candidate. After shifting, add the new motion candidate to the LUT. b. In this case the counter remains unchanged. c. After identifying redundant motion candidates in the LUT, the redundancy checking process ends. 4. Multiple redundant motion candidates may be identified, in which case all of them are removed from the LUT, and the remaining motion candidates may all be moved forward in sequence. In this case, decrement the counter by (the number of redundant motion candidates - 1). b. After identifying maxR redundant motion candidates, where maxR is a positive integer variable, the redundancy checking process is terminated. 5. The redundancy check process can be performed from the first motion candidate to the last motion candidate (ie, in the order they were added to the LUT, in the order of the decoding process of blocks with motion information). 6. Alternatively, if there are redundant motion candidates in the LUT, instead of removing one or more of the redundant ones, a virtual motion candidate may be derived from the redundant ones and this virtual motion candidate may be used to replace the redundant ones. a. Virtual motion candidates may be derived from redundant motion candidates by adding an offset to the horizontal and / or vertical components of one or more motion vectors, or by adding the average value of two motion vectors if they point to the same reference picture. Alternatively, virtual motion candidates may be derived from any function that takes as input the motion vectors in a look-up table. Exemplary functions are: Adding two or more motion vectors together; Averaging two or more motion vectors. Motion vectors may be scaled before being input to the function. b. A virtual motion candidate may be added in the same position as the redundant motion candidate. c. The virtual motion candidate may be added before all other motion candidates (eg, starting from the smallest entry index, eg, zero). d. In one example, it is applied only under certain conditions, such as when there is space in the current LUT. 7. The LUT update method based on redundancy elimination may be invoked under certain conditions, such as: The current block is coded in merge mode. b. The current block is coded in AMVP mode, but at least one component of the MV difference is non-zero. c. The current block is coded with a sub-block based motion prediction / motion compensation method or is not coded (eg, not coded in affine mode). d. The current block is coded in merge mode, and motion information is associated with it of a certain type (eg, from a spatially neighboring block, from a left neighboring block, from a temporal block).

[0208] h. After encoding / decoding one block, one or more lookup tables may be updated by only inserting the M sets of motion information at the end of the table, i.e., after all of the existing candidates. i. Alternatively, one may also remove some of the existing motion candidates in the table. 1. In one example, after inserting M sets of motion information, if the table is full, the first few entries of motion candidates may be removed from the table. 2. In one example, if the table is full before inserting the M sets of motion information, the first few entries of the motion candidates may be removed from the table. ii. Alternatively, and in addition, if the block is coded with motion candidates from a table, the motion candidates in the table may be reordered such that the selected motion candidate is placed in the last entry of the table.

[0209] In one example, before encoding / decoding a block, the lookup table contains HMVP0, HMVP1, HMVP2, ..., HMVP K-1 , HMVP K , HMVP K+1 , ..., HMVP L-1 The motion candidates denoted by HMVP may be included. idenotes the ith entry of the lookup table. If a block is predicted from HMVPK (K is in the range [0,L-1] inclusive), after encoding / decoding this block, the lookup table is HMVP0, HMVP1, HMVP2, ..., HMVP K-1 , HMVP K , HMVP K+1 , ..., HMVP L-1 , HMVP K The elements are rearranged as follows:

[0210] j. After coding one intra-constraint block, the lookup table may be emptied. k. When adding an entry for motion information to the lookup table, more entries for the motion information may be added to the table by derivation from the motion information, in which case a counter associated with the lookup table may be incremented by a number greater than one. i. In one example, the MVs of the motion information entries are scaled and put into a table. ii. In one example, the MV of the motion information entry is incremented by (dx, dy) and entered into a table. iii. In one example, the average of the MV of two or more entries of the motion information is calculated and entered into a table.

[0211] Example D2: When a block is located on the boundary of a picture / slice / tile, the look-up table update is always disallowed.

[0212] Example D3: To code the current LCU row, the motion information of the upper LCU row may be disabled. In this case, the number of available motion candidates may be reset to 0 at the beginning of a new slice / tile / LCU row.

[0213] Example D4: At the start of coding a slice / tile with a new temporal layer index, the number of available motion candidates may be reset to 0.

[0214] Example D5: The lookup table may be continuously updated with rows / slices of one slice / tile / LCU that have the same time layer index. a. Alternatively, the lookup table may be continuously updated after encoding / decoding each S (layer index / CTB / CU / CB) or for a particular region (e.g., one slice / tile / row / slice of LCU with 8 pixels). b. Alternatively, the lookup table may be updated consecutively for each S (S slices) having a particular mode (e.g., S inter-coded blocks) and updated only after rearranging and decoding the candidates. Alternatively, the lookup table may be updated only after encoding / decoding each S (S>=1) inter-coded blocks (e.g., CU / CB) that are not coded with a sub-block based motion prediction / motion compensation method (e.g., not coded with affine and / or ATMVP modes). Alternatively, the lookup table may be updated only if the top-left coordinate of the encoded / decoded block satisfies some condition. For example, the lookup table is updated only if (x&M==0)&&(y&M==0), where (x,y) is the top-left coordinate of the encoded / decoded block. M is an integer such as 2, 4, 8, 16, 32, or 64. d. Alternatively, one lookup table may stop updating once a maximum allowed counter is reached. e. In one example, the counter may be predefined, or alternatively, signaled in a Video Parameter Set (VPS), Sequence Parameter Set (SPS), Picture Parameter Set (PPS), slice header, tile header, Coding Tree Unit (CTU), Coding Tree Block (CTB), Coding Unit (CU) or Prediction Unit (PU), an area covering multiple CTU / CTB / CU / PU.

[0215] Example D6: The lookup table update process may be invoked within different procedures. a. In one example, for a block coded in merge mode, the lookup table update process may be after decoding merge candidates, after building a merge list, or after decoding motion information with and / or without refinement. b. In one example, for AMVP coded blocks, the lookup table update process may be after decoding with and / or without refinement of the motion information. c. When and / or how to update the lookup table may depend on the coded mode, block size, video processing data units, low latency checks, etc. i. In one example, if one block is coded in AMVP mode, the lookup table may be updated directly without pruning. ii. Alternatively, if one block is coded in merge mode, the lookup table may be updated by pruning. iii. Alternatively, if one block is coded in merge mode and its motion information is derived from spatial and / or temporal blocks, the look-up table may be updated by pruning. iv. Alternatively, if one block is coded in merge mode and its motion information is derived from motion candidates in a lookup table, the lookup table may be reordered without pruning. v. Alternatively, if a block is coded in merge mode and its motion information is derived from virtual candidates in the lookup table (e.g., combined bi-, pair-, zero-motion vector candidates), the lookup table may not need to be updated. vi. Alternatively, if one block is coded in sub-block merging mode and / or triangle merging mode, the lookup table may not need to be updated. vii. Alternatively, if one block is coded in MMVD (Merge with Motion Vector Differences) mode and its motion information is derived from spatial and / or temporal blocks, the look-up table may be updated directly. In one example, when a block is coded in an Illumination Compensation (IC) mode and / or an Overlapped Block Motion Compensation (OBMC) mode and / or a Decode-side Motion Vector Derivation (DMVD) mode, the lookup table may not be updated. Alternatively, when coding a block in such modes, the lookup table may be updated.

[0216] Additional Exemplary Embodiments

[0217] A History-based MVP (HMVP) method is proposed, where HMVP candidates are defined as the motion information of previously coded blocks. During the encoding / decoding process, a table with multiple HMVP candidates is maintained. When a new slice is encountered, the table is emptied. Whenever there is an inter-coded block, the associated motion information is added to the last entry of the table as a new HMVP candidate. The overall coding flow is shown in Figure 31.

[0218] In one example, the table size is set to L (eg, L=16 or 6 or 44), which indicates that up to L HMVP candidates can be added to the table.

[0219] In one embodiment (corresponding to Example 11.gi), if there are more than L HMVP candidates from previously coded blocks, a First-In-First-Out (FIFO) rule is applied so that the table always contains the most recent L previously coded motion candidates. Figure 32 shows an example of applying the FIFO rule to remove HMVP candidates and add new ones to the table used in the proposed method.

[0220] In another embodiment (corresponding to invention 11.g.iii), whenever a new motion candidate is added (e.g. the current block is inter-coded and in non-affine mode), we first apply a redundancy check process to identify whether there is a same or similar motion candidate in the LUT.

[0221] Some examples are given below:

[0222] FIG. 33A shows an example of the case where the LUT is full before adding a new motion candidate.

[0223] FIG. 33B shows an example where there is space in the LUT before adding a new motion candidate.

[0224] 33A and 33B together show an example of a redundancy elimination based LUT update method (eliminating one redundant motion candidate).

[0225] 34A and 34B show two example implementations of the redundancy elimination based LUT update method (removing multiple redundant motion candidates, two candidates shown in the figure).

[0226] FIG. 34A shows an example of the case where the LUT is full before adding a new motion candidate.

[0227] FIG. 34B shows an example where there is space in the LUT before adding a new motion candidate.

[0228] The HMVP candidates may be used in the merge candidate list construction process. After the TMVP candidate, insert all HMVP candidates from the last entry in the table to the first entry (or the last K0 HMVPs, e.g., K0=16 or 6). Apply pruning to the HMVP candidates. Terminate the merge candidate list construction process when the total number of available merge candidates reaches the signaled maximum allowed merge candidates. Alternatively, terminate fetching motion candidates from the LUT when the total number of added motion candidates reaches a given value.

[0229] Similarly, HMVP candidates may be used in the AMVP candidate list construction process: Insert motion vectors of the last K1 HMVP candidates in the table after the TMVP candidates; Build the AMVP candidate list using only HMVP candidates that have the same reference picture as the AMVP target reference picture; Apply pruning to the HMVP candidates; In one example, K1 is set to 4.

[0230] References [1] “Overview of the High Efficiency Video Coding (HEVC) Standard”, Gary J.Sullivan, Jens-Rainer Ohm, Woo-Jin Han, and Thomas Wiegand, IEEE Transactions on Circuits and Systems for Video Technology, Vol.22, No.12, December 2012. [2]“Overview of the H.264 / AVC video coding standard”, Ajay Luthra, Pankaj Topiwala, Proceedings of SPIE Vol.5203 ​​Applications of Digital Image Processing XXVI. [3] J.Chen, E.Alshina, GJSullivan, J.-R.Ohm, J.Boyce, “Algorithm description of Joint Exploration Test Model 7 (JEM7),” JVET-G1001, Aug.2017. [4]JEM-7.0: https: / / jvet.hhi.fraunhofer.de / svn / svn_HMJEMSoftware / tags / HM-16.6-JEM-7.0. [5]H.265 / HEVC, https: / / www.itu.int / rec / T-REC-H.265 [6]“Multi-Type-Tree”, JVET-D0117 [7] International Publication WO2016 / 091161 [8]“Description of SDR, HDR and 360° video coding technology proposal by Qualcomm and Technicolor - low and high complexity versions”, JVET-J0021.

[0231] FIG. 28A is a block diagram of a video processing device 2800. The device 2800 may be used to implement one or more of the methods described herein. The device 2800 may be implemented in a smartphone, tablet, computer, Internet of Things (IoT) receiver, etc. The device 2800 may include one or more processing units 2802, one or more memories 2804, and video processing hardware 2806. The processor 2802 may be configured to implement one or more of the methods described herein. The memory(s) 2804 may be used to store data and codes used to implement the methods and techniques described herein. The video processing hardware 2806 may be used to implement the techniques described herein in a hardware circuit.

[0232] FIG. 28B is another example of a block diagram of a video processing system in which the disclosed technology may be implemented. FIG. 28B is a block diagram illustrating an example video processing system 3100 in which various technologies disclosed herein may be implemented. Various implementations may include some or all of the components of the system 3100. The system 3100 may include an input unit 3102 for receiving video content. The video content may be received in a raw or uncompressed format, for example, 8 or 10-bit multi-component pixel values, or may be received in a compressed or encoded format. The input unit 3102 may represent a network interface, a peripheral bus interface, or a storage interface. Examples of network interfaces include wired interfaces such as Ethernet, Passive Optical Network (PON), and wireless interfaces such as Wi-Fi or cellular interfaces.

[0233] The system 3100 may include a coding component 3104 that may implement various coding or encoding methods described herein. The coding component 3104 may reduce the average bit rate of the video from the input 3102 to the output of the coding component 3104, generating a coded representation of the video. Thus, this coding technique may be referred to as a video compression or video transcoding technique. The output of the coding component 3104 may be stored or transmitted via a connected communication, as represented by component 3106. The bitstream (or coded) representation of the video received at the input 3102, stored or communicated, may be used by component 3108 to generate pixel values ​​or displayable video that are transmitted to the display interface 3110. The process of generating a user-viewable video from the bitstream representation may be referred to as video unfolding. Additionally, although certain video processing operations are referred to as "coding" operations or tools, it will be understood that the coding tools or operations are used by the encoder, and corresponding decoding tools or operations that reverse the results of the decoding are performed by the decoder.

[0234] Examples of peripheral bus interface units or display interface units may include Universal Serial Bus (USB) or High Definition Multimedia Interface (HDMI) or DisplayPort, etc. Examples of storage interfaces include Serial Advanced Technology Attachment (SATA), PCI, IDE interfaces, etc. The techniques described herein may be implemented in various electronic devices such as mobile phones, laptops, smartphones, or other devices capable of digital data processing and / or video display.

[0235] In some embodiments, the video coding method may be performed using an apparatus implemented on a hardware platform, such as those described with reference to FIG. 28A or FIG. 28B.

[0236] 29 is a flow chart of an example video processing method 2900. The method 2900 includes, at step 2902, maintaining one or more motion candidate tables. The method 2900 further includes, at step 2904, converting between the current video block and a coded representation of the current video block using a number of video processing operations in a sequence using the motion candidate tables. The method 2900 further includes, at step 2906, updating the motion candidate table due to a particular processing operation being completed.

[0237] 30 is a flow chart of an example of a video processing method 3000. The method 3000 includes, at step 3002, maintaining one or more motion candidate tables. The method 3000 further includes, at step 3004, determining at least one of i) whether to update the motion candidate table of the motion candidate table or ii) how to update the motion candidate table based on characteristics of the current video block including coding mode, dimensions, video processing data units, or low latency checks. The method 3000 further includes, at step 3006, converting between the current video block of the video and a coded representation of the video based on the determination.

[0238] For methods 2900 and 3000, in some embodiments, the motion information includes at least one of a prediction direction, a reference picture index, a motion vector value, an intensity compensation flag, an affine flag, a motion vector difference precision, or a motion vector difference value. Additionally, the motion information may further include block location information to indicate where the motion information comes from. In some embodiments, the video block is a CU or a PU, and the portion of the video may correspond to one or more video slices or one or more video pictures.

[0239] In some embodiments, each LUT includes an associated counter that is initialized to a zero value at the beginning of the portion of the image and is incremented for each coded image region in the portion of the image. The image region includes one of a coding tree unit, a coding tree block, a coding unit, a coding block, or a prediction unit. In some embodiments, the counter indicates, for a corresponding LUT, the number of motion candidates that have been removed from the corresponding LUT. In some embodiments, the set of motion candidates may have the same size for all LUTs. In some embodiments, the portion of the image corresponds to a video slice, and the number of LUTs is equal to N*P, where N is an integer representing the number of LUTs per decoding thread, and P is an integer representing the number of rows or tiles of the largest coding unit in a video slice. Further details of methods 2900 and 3000 are described in the examples provided in Chapter 4 and in the examples listed below.

[0240] 1. A video processing method comprising: maintaining one or more motion candidate tables; performing a conversion between a current video block of a video and a coded representation of the current video block using a plurality of video processing operations in a sequence using the motion candidate tables; and updating the motion candidate table due to completion of a particular processing operation.

[0241] 2. The method of example 1, wherein the identity of the particular processing operation depends on the coding characteristics of the current video block.

[0242] 3. The current video block is coded in merge mode and the motion candidate table is a part of the transformation, the following operations: (i) Decoding the merge candidates; (ii) constructing a merge list that includes the merge candidates; (iii) decoding the motion information without refinement, or (iv) Decoding of motion information with refinements; The method of example 1, wherein the method is updated after at least one of

[0243] 4. The method of Example 3, wherein the current video block is coded in merge mode and the motion candidate table is updated using decoded motion information before being refined with decode-side motion vector refinement (DMVR).

[0244] 5. The method of Example 3, wherein the current video block is coded in merge mode, and the motion candidate table is updated with decoded motion information after merging and refining MMVD (Merge with Motion Vector Differences).

[0245] 6. The method of example 1, in which the current video block is coded in Advanced Motion Vector Prediction (AMVP) mode and the motion candidate table is updated after the motion information is decoded with or without refinement.

[0246] 7. A video processing method comprising: maintaining one or more motion candidate tables; and determining, based on characteristics of a current video block including coding mode, dimensions, video processing data units, or a low latency check, at least one of i) whether to update one of the one or more motion candidate tables, or ii) how to update the motion candidate table, and performing a conversion between the current video block of a video and a coded representation of the video based on the determination.

[0247] 8. The method of example 7, wherein the current video block is coded in an Advanced Motion Vector Prediction (AMVP) mode, and the motion candidate table is updated without pruning.

[0248] 9. The method of example 7, wherein the current video block is coded in merge mode and the motion candidate table is updated by pruning.

[0249] 10. The method of example 8 or 9, wherein the pruning includes comparing motion information associated with the current video block with at least one motion candidate in the motion candidate table.

[0250] 11. The method of example 9, wherein the motion information of the current video block is derived from a spatial block or a temporal block.

[0251] 12. The method of example 7, wherein the current video block is coded in merge mode, motion information of the current video block is derived from motion candidates in the motion candidate table, and the motion candidate table is reordered without pruning.

[0252] 13. The method of example 7, wherein the current video block is coded in merge mode, motion information for the current video block is derived from hypothetical candidates in the motion candidate table, and the motion candidate table is not updated.

[0253] 14. The method of example 7, wherein the current video block is coded in a sub-block merging mode and / or a triangle merging mode, and the motion candidate table is not updated.

[0254] 15. The method of Example 7, wherein the current video block is coded in MMVD (Merge with Motion Vector Differences) mode, motion information of the current video block is derived from a spatial block or a temporal block, and the motion candidate table is updated.

[0255] 16. The method of Example 7, wherein the current video block is coded in one or more of an illumination compensation (IC) mode, an overlapped block motion compensation (OBMC) mode, or a decode-side motion vector derivation (DMVD) mode, and the motion candidate table is not updated.

[0256] 17. The method of Example 7, wherein the current video block is coded in one or more of an illumination compensation (IC) mode, an overlapped block motion compensation (OBMC) mode, or a decode-side motion vector derivation (DMVD) mode, and the motion candidate table is updated.

[0257] 18. The method according to any one of Examples 1 to 17, wherein the motion candidate table is a History Motion Vector Prediction (HMVP) table.

[0258] 19. The method of any of examples 1-18, wherein performing the transformation includes generating a coded representation from the current video block.

[0259] 20. The method of any of examples 1-18, wherein performing the transformation includes generating the current video block from the coded representation.

[0260] 21. An apparatus in a video system comprising a processor and a non-transitory memory having instructions, the instructions, when executed by the processor, causing the processor to perform the method described in any one of Examples 1 to 20.

[0261] 22. A computer program product stored on a non-transitory computer readable medium, the computer program product comprising program code for executing the method according to any one of Examples 1-20.

[0262] While specific embodiments of the disclosed technology have been described above for purposes of illustration, it will be understood that various modifications may be made without departing from the scope of the invention. Accordingly, the disclosed technology is not to be limited except as by the appended claims.

[0263] The disclosed and other 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 components of computer program instructions encoded on a computer-readable medium for implementation 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 processor, a computer, or multiple processors or computers. In addition to hardware, the apparatus may include code that creates an environment for the execution of the computer program, such as code that constitutes a processor 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.

[0264] 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.

[0265] The processes and logic flows described herein may be performed by one or more programmable processors that perform one or more computer program translations 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 circuitry, such as a Field Programmable Gate Array (FPGA) or Application Specific Integrated Circuit (ASIC).

[0266] 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, such as 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 types of non-volatile memory, media, and memory devices, including, for example, EPROMs, EEPROMs, flash memory devices, magnetic disks, such as 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.

[0267] Although this patent specification contains many details, these should not be construed as limiting the scope of any invention or the scope of the claims, but rather as descriptions of features that may be specific to particular embodiments of a particular invention. 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.

[0268] 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.

[0269] Only some 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 of image processing, comprising: maintaining one or more motion candidate tables, each motion candidate table having one or more motion candidates, at least one motion candidate table being derived from at least one previous video block, and an arrangement of the motion candidates in the motion candidate tables being based on an order of addition of the motion candidates to the motion candidate tables; performing a motion candidate list derivation process to derive a motion candidate list for the first video block; deriving motion information for the first image block based on the motion candidate list; and refining the motion information using a Merge with Motion Vector Differences (MMVD) tool; performing a conversion between the first video block and a video bitstream that includes the first video block based on the refined motion information; and updating a motion candidate table of the one or more motion candidate tables by using the improved motion information improved by the MMVD tool; having The one or more motion candidates in the updated motion candidate table are checked in order while building a motion candidate list for a subsequent block.

2. The method of claim 1 , wherein the first video block is coded in merge mode.

3. The method according to claim 1 or 2, wherein the motion candidate table is determined to be updated based on a coding mode of a current block belonging to at least one particular mode.

4. The method of claim 3 , wherein the at least one particular mode includes at least one of a motion vector prediction mode or a merge mode.

5. The at least one specific mode is excluding at least one of a sub-block merge mode and a rectangular merge mode, The method of claim 3 , wherein the motion candidate table is not updated with motion information derived from blocks that use the sub-block or rectangular merge modes.

6. The method according to claim 1 , wherein the motion candidate table is a History Motion Vector Prediction (HMVP) table.

7. The updating step comprises:

7. The method of claim 1, further comprising: updating the motion candidate table using a pruning operation, the pruning operation comprising: comparing a new motion candidate to be added in the motion candidate table with at least one motion candidate in the motion candidate table, and determining whether to remove the at least one motion candidate from the motion candidate table.

8. A method according to claim 1 , wherein if a new candidate associated with motion information derived from the motion candidate list is a motion candidate added from the motion candidate table to the motion candidate list, the motion candidate table is reordered without performing a pruning operation.

9. 9. The method of claim 1 , wherein if a new candidate associated with motion information derived from the motion candidate list is a motion candidate associated with a spatially neighboring block of the current block having the first video block or temporal block in a picture different from the current picture, the motion candidate table is updated by performing a pruning operation.

10. performing a motion candidate list derivation process to derive a motion candidate list for a second video block coded in a motion vector prediction mode; deriving motion information for the second video block based on the motion candidate list derived for the second video block; and performing a conversion between the second video block and a bitstream of a video having the second video block based on the motion information derived for the second video block; updating the motion candidate table with the motion information derived for the second video block without refinement; 10. The method of claim 1, further comprising:

11. The method of claim 1 , wherein performing the conversion comprises generating the bitstream based on the first video block.

12. The method of claim 1 , wherein performing the conversion comprises generating the first video block from the bitstream.

13. 1. An apparatus for processing video data, comprising a processor and a non-transitory memory having instructions, comprising: The instructions, when executed by the processor, cause the processor to: maintaining one or more motion candidate tables, each motion candidate table having one or more motion candidates, at least one motion candidate table being derived from at least one previous video block, and an arrangement of the motion candidates in the motion candidate tables being based on an order of addition of the motion candidates to the motion candidate tables; performing a motion candidate list derivation process to derive a motion candidate list for the first video block; deriving motion information for the first image block based on the motion candidate list; and refining the motion information using a Merge with Motion Vector Differences (MMVD) tool; performing a conversion between the first video block and a video bitstream that includes the first video block based on the refined motion information; and updating a motion candidate table of the one or more motion candidate tables by using the improved motion information improved by the MMVD tool; Run the command, The one or more motion candidates in the updated motion candidate table are checked in order while building a motion candidate list for a subsequent block.

14. The processor: maintaining one or more motion candidate tables, each motion candidate table having one or more motion candidates, at least one motion candidate table being derived from at least one previous video block, and an arrangement of the motion candidates in the motion candidate tables being based on an order of addition of the motion candidates to the motion candidate tables; performing a motion candidate list derivation process to derive a motion candidate list for the first video block; deriving motion information for the first image block based on the motion candidate list; and refining the motion information using a Merge with Motion Vector Differences (MMVD) tool; performing a conversion between the first video block and a video bitstream that includes the first video block based on the refined motion information; and updating a motion candidate table of the one or more motion candidate tables by using the improved motion information improved by the MMVD tool; Run the command, The one or more motion candidates in the updated motion candidate table are checked in sequence while building a motion candidate list for a subsequent block.

15. A method for storing a video bitstream, comprising the steps of: The method comprises: maintaining one or more motion candidate tables, each motion candidate table having one or more motion candidates, at least one motion candidate table being derived from at least one previous video block, and an arrangement of the motion candidates in the motion candidate tables being based on an order of addition of the motion candidates to the motion candidate tables; performing a motion candidate list derivation process to derive a motion candidate list for the first video block; deriving motion information for the first image block based on the motion candidate list; and refining the motion information using a Merge with Motion Vector Differences (MMVD) tool; generating the bitstream based on the refined motion information; and updating a motion candidate table of the one or more motion candidate tables by using the improved motion information improved by the MMVD tool; storing the bitstream on a non-transitory computer readable storage medium; having The one or more motion candidates in the updated motion candidate table are checked in order while building a motion candidate list for a subsequent block.

Citation Information

Patent Citations

  • Decoder-side motion vector improvement

    JP2022507683A

  • Decoder-side motion vector restoration for video coding

    US20180192071A1

  • Decoder-side motion vector refinement

    US20200169748A1

Cited By

  • Invoke of LUT updating

    US12368880B2

  • Interaction between merge list construction and other tools

    US12401820B2

  • Partial / full pruning when adding a HMVP candidate to merge / AMVP

    US12549756B2

  • Update of look up table: FIFO, constrained FIFO

    US12556738B2

  • Motion candidates derivation

    US12604029B2