Update lookup table: FIFO, limited FIFO

The use of lookup tables to store and update motion candidates addresses inefficiencies in motion prediction within video coding standards, enhancing coding efficiency and reducing complexity by leveraging historical data for improved prediction accuracy.

JP7534474B2Active Publication Date: 2024-08-14DOUYIN VISION CO LTD +1

Patent Information

Application Number
JP2023053264
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-01-10
Filing Date
2023-03-29
Publication Date
2024-08-14
Estimated Expiration
2039-07-01

AI Technical Summary

Technical Problem

Existing video coding standards face inefficiencies in predicting motion information due to neighboring blocks often representing different objects with varying motion trajectories, leading to increased complexity and reduced coding efficiency.

Method used

Implementing lookup tables (LUTs) to store motion candidates and their associated motion information, allowing for history-based motion vector prediction (HMVP) to improve coding efficiency by leveraging historical data during encoding and decoding processes.

Benefits of technology

Enhances video coding efficiency by reducing complexity and improving prediction accuracy through the use of LUTs, which store and update motion candidates based on previously coded blocks, thereby optimizing motion information prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007534474000013
    Figure 0007534474000013
  • Figure 0007534474000017
    Figure 0007534474000017
  • Figure 0007534474000030
    Figure 0007534474000030
Patent Text Reader

Abstract

To provide a method for encoding and decoding a digital video with higher coding efficiency, and a system, and a device.SOLUTION: A method of video processing includes: maintaining one or more tables, wherein each table includes a set of one or more motion candidates and each motion candidate is associated with corresponding motion information; performing conversion between a current block and a bitstream representation of a video including the current block by using motion information in a table; and updating, after performing of the conversion, one or more tables based on M sets of additional motion information associated with the current block, M being an integer.SELECTED DRAWING: Figure 29
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS Books This application claims priority to and the benefit of International Patent Application No. PCT / CN2018 / 093663 filed on June 29, 2018, International Patent Application No. PCT / CN2018 / 094929 filed on July 7, 2018, International Patent Application No. PCT / CN2018 / 101220 filed on August 18, 2018, International Patent Application No. PCT / CN2018 / 117627 filed on November 27, 2018, and International Patent Application No. PCT / CN2019 / 071214 filed on January 10, 2019. The claimed invention is a divisional application of Japanese Patent Application No. 2021-523111, filed on February 24, 2021, which is the national stage application of International Patent Application No. PCT / IB2019 / 055586, filed on July 1, 2019. . law Under the law, for all purposes, All of the above applications are The disclosure of this application is incorporated herein by reference. Here It is incorporated herein by reference.

[0002] This patent document relates to video encoding and decoding techniques, devices and systems. [Background technology]

[0003] Despite advances in video compression, digital video still accounts for the largest bandwidth usage in the Internet and other digital communications networks. As the number of connected user devices capable of receiving and displaying video increases, the bandwidth demands for digital video use are expected to continue to grow. Summary of the Invention

[0004] This document discloses methods, systems, and devices for encoding and decoding digital video.

[0005] In one exemplary aspect, a video processing method is provided that includes maintaining one or more tables, each table including a set of one or more motion candidates, each motion candidate being associated with corresponding motion information; converting between a current block and a bitstream representation of a video including the current block using the motion information in the tables; and updating the one or more tables after converting based on an integer number of sets of M additional motion information associated with the current block.

[0006] In another exemplary aspect, a video processing method is provided to convert between a current block and a bitstream representation of a video including the current block using one or more tables, each table including one or more motion candidates, each motion candidate being associated with corresponding motion information, and updating the one or more tables based on the conversion based on an integer number M of sets of additional motion information associated with the current block.

[0007] In yet another exemplary aspect, a video encoder apparatus 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] 13 shows examples of the location of the second PU for N×2N and 2N×N partitions. [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 Vector Prediction (ATMVP) for CU motion prediction. [Figure 19] 1 illustrates a pictorial example of source block and source picture identification. [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 one-way 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 28] FIG. 2 is a block diagram illustrating an example of a hardware platform for implementing the visual media decoding or visual media encoding techniques described herein. [Figure 29] 1 is a flow chart of an exemplary method of video bitstream processing. [Diagram 30] 4 is a flow chart of another exemplary method of video bitstream processing. [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. [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). It may be applied to existing video coding standards such as HEVC, or to finalize standards (Versatile Video Coding). The present invention is also applicable to future video coding standards or visualization 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 created H.261 and H.263, ISO / IEC created MPEG-1 and MPEG-4 Visual, and the two organizations jointly created the 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 and transform coding are utilized. An example of a typical HEVC encoder framework is shown in Figure 1.

[0017] 2.1 Partition structure

[0018] 2.1.1 Partition Tree Structure in H.264 / AVC

[0019] 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 color sampling, two corresponding 8x8 blocks of chroma samples.

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

[0021] Inter-coded blocks use temporal prediction instead of spatial prediction by estimating the motion between pictures. Motion can be estimated independently for a 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.

[0022] 2.1.2 Partition Tree Structure in HEVC

[0023] 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 a multiple partition concept, including CUs, PUs and TUs.

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

[0025] 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 quadtree-like signaling.

[0026] 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 supported size for the luma CB. The size of the CTU is the size of the luminance and chrominance CBs. The division of the 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). The CTB may contain only one CU or may be divided to form multiple CUs, each of which has a division into prediction units (PUs) and one tree of transform units (TUs) associated with it.

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

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

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

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

[0031] 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 splits are 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 split would result in a luma TB size smaller than the indicated minimum, the split is not done implicitly. The chroma TB size is half of 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, the decoded samples of the nearest neighboring TBs (inside or outside the CB) are used as reference data for intra-picture prediction.

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

[0033] 2.1.2.2 Parent and Child Nodes

[0034] 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. In each non-root node of the multiple nodes, the non-root node corresponds to a video block that is 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.

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

[0036] 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 Joint Exploration Mode (JEM).

[0037] 2.1.3.1 Division structure of QTBT block

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

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

[0040] 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 size of the quadtree leaf nodes can range from 16×16 (i.e., MinQTSize) to 128×128 (i.e., CTU size). If the leaf quadtree node is 128×128, it will not be further partitioned by the binary tree because the size exceeds MaxBTSize (i.e., 64×64). Otherwise, the leaf quadtree node can be further partitioned by the binary tree. Therefore, a leaf node of this quadtree is also the root node of a binary tree, whose 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. Leaf nodes of the binary tree are further processed by the prediction and transformation process without further splits. In JEM, the maximum CTU size is 256x256 luma samples.

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

[0042] In addition, the QTBT scheme supports the ability for luma and chroma to have separate QTBT 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 one I slice consists of one coding block of one luma component or one coding block of two chroma components, and one CU in one P or B slice consists of coding blocks of all three color components.

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

[0044] 2.1.4 VVC Ternary Tree

[0045] As proposed in [6], 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).

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

[0047] In [6], there are two levels of trees: a region tree (quadtree) and a prediction tree (binary or ternary tree). A CTU is first partitioned by a region tree (RT). The RT leaves may be further partitioned by prediction trees (PT). The PT leaves may also be further partitioned 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 partitioned. Both prediction and transformation are applied to CUs, as in JEM. The whole partition structure is called a "multi-type tree".

[0048] 2.1.5 Example of a division structure

[0049] 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 quadtree structure as shown in Figure 5. The leaf nodes of the quadtree are further divided into binary trees.

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

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

[0052] A region tree can recursively split one CTU into square blocks to become leaf nodes of the region tree of size 4x4. At each node in the region tree, a prediction tree can be shaped 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 quad-tree partitions on the branches 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.

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

[0054] 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 associated with the predictor, and such a coding mode is called an AMVP mode.

[0055] 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 explicit transmission of motion parameters, and explicit signaling for each PU the motion vectors corresponding to each reference picture list and the reference picture index for the use of the reference picture list.

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

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

[0058] Below, we will explain the inter prediction modes defined in HEVC in detail [2]. First, we will explain the merge mode.

[0059] 2.2.1 Merge Mode

[0060] 2.2.1.1 Deriving Merge Mode Candidates

[0061] 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 based on 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

[0062] 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, generate additional candidates 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.

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

[0064] 2.2.1.2 Deriving Spatial Candidates

[0065] In the derivation of spatial merge candidates, a maximum of four merge candidates are selected from the candidates located at the positions shown in FIG. 10. The derivation order is A 1 , B 1 , B 0 , A 0 , B 2 Position A 1 , B 1 , B 0 , A 0 Position B is used only if any of the PUs in 2 is considered. Position A 1After adding the candidates of the remaining candidates, they are subjected to a redundancy check, which can ensure that candidates with the same motion information are removed from the list, improving coding efficiency. To reduce computational complexity, the aforementioned redundancy check does not consider all possible candidate pairs. Instead, it considers only the pairs linked by arrows in FIG. 11 and adds a candidate 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. If the current PU is divided into N×2N, the list structure will include a position A, B, C, D ... 1 The candidate B is not considered. In fact, adding this candidate leads to two prediction units with the same motion information, so having only one PU in one coding unit is redundant. Similarly, if the current PU is divided into 2N×N, the candidate B 1 is not taken into consideration.

[0066] 2.2.1.3 Temporal Candidate Derivation

[0067] 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 [1]. 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

[0068] In the same position PU(Y) belonging to the reference frame, as shown in FIG. 0 and Candidate C 1 Select a candidate temporal position between position C 0 If the PU in position C is not available, is intra-coded, or is outside the current CTU, 1 is used. Otherwise, position C 0 is used to derive temporal merge candidates.

[0069] 2.2.1.4 Inserting additional candidates

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

[0071] 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 from 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.

[0072] 2.2.1.5 Motion Estimation Regions for Parallel Processing

[0073] To speed up the encoding process, motion estimation can be done in parallel, thereby deriving motion vectors for all prediction units in a given region simultaneously. Derivation of merge candidates from spatial neighborhoods can interfere with parallel processing, since one prediction unit cannot derive motion parameters from neighboring PUs until its associated motion estimation is completed. To mitigate the tradeoff between coding efficiency and processing latency, HEVC specifies a Motion Estimation Region (MER), the size of which is signaled in the picture parameter set using the "log2_parallel_merge_level_minus2" syntax element. When specifying one MER, merge candidates in the same region are marked as unavailable and therefore not considered in list construction. 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.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 within the range of 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 and 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 to be encoded 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-location arrangements. 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, we consider up to two candidates that are in the same position as the motion merge among the five possible candidates derived from PUs located as shown in Figure 11. The derivation order for the left side of the current PU is A 0 , A 1 , scaled A 0 , scaled A 1 The derivation order for the upper side of the current PU is B 0 , B 1 , B 2 , scaled B 0 , scaled B 1 , scaled B 2 Therefore, for each edge, there are four possible cases for motion vector candidates: two cases where spatial scaling is not required and two cases where spatial scaling is used. 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 helps in the 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 (eg, see FIG. 6). The reference picture index is signaled to the decoder.

[0088] 2.2.2.4 Signaling of AMVP Information

[0089] For AMVP mode, four parts are 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 set of motion parameters 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 aligned 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 the 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 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 the motion vectors of sub-CUs in a CU in two steps. The first step is to identify the corresponding blocks in a reference picture with so-called temporal vectors. This reference picture is called the motion source picture. The second step is to split the current CU into sub-CUs, as shown in Figure 18, and obtain the motion vectors and reference indexes of each sub-CU from the blocks corresponding to each sub-CU.

[0100] In the first step, the reference picture and corresponding block are determined according to the motion information of the spatially neighboring blocks of the current CU. To avoid the repeated scanning process of the neighboring blocks, the first merging candidate in the merging 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 compared to 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, the first merging candidate is the left neighboring block (i.e., A in FIG. 19 ). 1 ), the associated MV and reference pictures are used to identify the source block and 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 coordinates of the current CU. For each sub-CU, the motion information of its corresponding block (the smallest motion grid covering the center sample) is used to derive the motion information of the sub-CU. After identifying the motion information of the corresponding N×N block, it is converted into the motion vector and reference index of the current sub-CU, similar to TMVP of HEVC, and motion scaling and other procedures are applied. 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 equals 0 or 1, and Y equals 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 of each list to the first reference frame of a given list. Then, derive the TMVP of sub-block A following a procedure similar to the TMVP (Temporal Motion Vector Predictor) derivation specified in HEVC. Fetch the motion information of the aligned blocks 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 set as the motion vector of the current sub-CU.

[0106] FIG. 20 shows an example of one CU having four sub-blocks (AD) and its neighboring blocks (ad).

[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 if the sequence parameter set indicates that ATMVP and STMVP are enabled. The coding logic for the additional merge candidates is the same as for 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 CABAC coded context and the remaining bins are bypass coded contexts.

[0110] 2.3.2 Adaptive motion vector differential 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 component.

[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 increase the speed of 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 omitted.

[0117] 2.3.3 Deriving Pattern Matching Motion Vectors

[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 like it is done for regular merging candidates. That is, we use the RD cost selection to check both two matching modes (bilateral matching and template matching) for one CU. The one that leads to the minimum cost is further compared with the 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, for W×H CU motion information derivation, the following derivation process is performed: In the first stage, the 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, the MV of each sub-CU is derived.

[0123]

number

[0124] As shown in Figure 21, this bilateral matching is used to derive the motion information of the 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 from the current picture to the two reference pictures is the same, the bilateral matching becomes a bidirectional MV based on mirrors.

[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, where refa and refb are on different sides of the current picture in time. If such a refb is not 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. More specifically, we add the MVs from the current CU at positions (0,0), (W / 2,0), (0,H / 2), and (W / 2 , H / 2) of the interpolated MVs are added.

[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 collocated MV 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 one ME, and this motion field may be used later as a CU-level or sub-CU-level MV candidate.

[0139] First, the motion fields of each reference picture in both reference lists are traversed at the 4x4 block level. For each 4x4 block, the motion associated with the block passing through the 4x4 block of the current picture (shown in Figure 23) is assigned an interpolated motion based on the temporal distances TD0 and TD1 (as in TMVP in HEVC). MV scaling), we scale the motion of the reference block to the current picture and assign the scaled motion to the block in the current frame. If a 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 one motion vector points to one fractional sample position. 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. JEM supports two search patterns, 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, 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. In other cases, 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 bi-predictive template matching. When the value of factor is 1.25, it means that the selection process is biased towards bi-prediction. This inter-prediction direction selection is only applied to the template matching process at the CU level.

[0151] 2.3.4 Decoder-side motion vector improvement

[0152] In the bidirectional prediction operation, two prediction blocks are combined to form one prediction signal, which are constructed by using the motion vector (MV) in list0 and the MV in list1, respectively, to predict one block region. In the Decoder-side Motion Vector Refinement (DMVR) method, the two motion vectors of bidirectional prediction are further refined by bilateral template matching processing. In order to obtain the refined MV 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 sample 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 the two predicted 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 predicted 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 directions 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 the 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 indices of spatially and temporally neighboring blocks into a candidate list with redundancy check until the number of available candidates reaches the maximum candidate size 19. The merge candidate list for merge / skip mode is built by inserting the spatial candidates (Fig. 11) used for HEVC (merge candidates and zero candidates), temporal candidates, affine candidates, Advanced Temporal MVP (ATMVP) candidates, Spatial Temporal MVP (STMVP) candidates, and additional 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 the 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 candidates before the uni-predictive ones.

[0169] In [8], 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, which provides no additional coding gain and significantly increases the complexity of the hardware implementation.

[0173] 4. Some Examples

[0174] SUMMARY OF THE DISCLOSURE Embodiments of the techniques of this disclosure overcome shortcomings of existing implementations, thereby providing video coding with higher coding efficiency.

[0175] To overcome the shortcomings of existing implementations, various embodiments may implement a LUT-based motion vector prediction technique that uses one or more tables (e.g., lookup tables) in which at least one motion candidate is stored to predict motion information of a block, providing video coding with higher coding efficiency. The lookup table is one example of a table that may be used to include motion candidates to predict motion information of a block, and other implementations are possible. Each LUT may include one or more motion candidates, each associated with corresponding motion information. The motion information of the motion candidates may include some or all of a prediction direction, a reference index / picture, a motion vector, a LIC flag, an affine flag, a Motion Vector Derivation (MVD) precision, and / or an MVD value. The motion information may further include block location information to indicate where the motion information originates from.

[0176] The LUT-based motion vector prediction based on the disclosed technology can improve both existing and future video coding standards, and is elucidated in the following examples for various embodiments. The LUT-based motion vector prediction can also be called the History-based Motion Vector Prediction (HMVP) method, since the LUT enables the encoding / decoding process to be performed based on history data (e.g., already processed blocks). In the LUT-based motion vector prediction method, one or more tables with motion information from previously coded blocks are maintained during the encoding / decoding process. These motion candidates stored in the LUT are called HMVP candidates. During the encoding / decoding of one block, the associated motion information in the LUT may be added to a motion candidate list (e.g., merge / AMVP candidate list) to use the LUT after encoding / decoding one block. The updated LUT is then used to code the subsequent block. That is, the update of the motion candidates in the LUT is based on the encoding / decoding order of the blocks. The following examples should be considered as examples to explain the general concept. These examples should not be interpreted in a narrow sense. Additionally, these examples can be combined in any manner.

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

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

[0179] The following examples illustrate the general concepts.

[0180] Table example

[0181] 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 originates. c. A counter may further be allocated for each lookup table. 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.

[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. When a motion candidate is checked during coding a block, this motion candidate may be added to a motion candidate list (e.g., AMVP, merge candidate list).

[0184] Using a Lookup Table

[0185] Example C1: The total number of motion candidates in the lookup table to be checked may be predefined.

[0186] Example C2: One or more motion candidates contained in one lookup table may be directly inherited by one block. They may be used for merge mode coding, i.e., they may be checked for motion candidates in the merge candidate list derivation process.

[0187] Example C3: The motion candidates included in the lookup table may be used as a prediction module for coding the motion information of the block. They may be used for AMVP mode coding, i.e., they may be checked for motion candidates in the AMVP candidate list derivation process.

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

[0189] Example C5: Enabling / disabling the use of a lookup table for motion information coding of one 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.

[0190] Example C6: Whether to apply a prediction from the lookup table may depend on further coded information. If it is inferred that it does not apply to a block, the additional signaling of the prediction indication is skipped. Alternatively, if it is inferred that it does not apply to a block, there is no need to access the motion candidates in the lookup table and the check of the related motion candidates is omitted.

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

[0192] Update the lookup table

[0193] 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. 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 may 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 lookup table without pruning, eg, without any pruning. vi. Alternatively, such motion information may be used to reorder the look-up table. Alternatively, such motion information may be used to update the lookup table with limited pruning. In various implementations, pruning may include a) comparing the motion information to existing entries for uniqueness, b) adding the motion information to a list if unique, and c) if not unique, c1) not adding the motion information or c2) removing the matching existing entry. d. Select M (M≧1) representative positions within the block and update the look-up table using the motion information associated with the representative positions. 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_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 exclusively to 1 or the total number of sub-blocks, or a unique value between 1 and the number of sub-blocks. 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 movement information used 2. Whether it is a bidirectional prediction block 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 When a set of eM (M≧1) representative positions is selected to update the lookup table, further conditions may be checked before adding them to the lookup table as additional 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 must be greater than or equal to a threshold value, e.g., the horizontal and / or vertical components of the MV difference must 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. f. If M sets of motion information are used to update the lookup table, the corresponding counter should be incremented by M. g. Before coding the current block, after coding this block, for one set of selected motion information, let the counter of the lookup table to be updated be K (add as additional motion candidates with index equal to K%L, where L is the size of the lookup table, in the manner described above). 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 (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 are trying to retain the last few sets of motion information from previously coded blocks, regardless of whether 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 performed first. In this case, the LUT holds the last few sets of motion information from previously coded blocks, but redundant motion information may be removed from the LUT. Such a method is called a LUT update method based on redundancy removal. 1. If there are duplicate motion candidates in the LUT, then a counter associated with the LUT may be incremented or decremented. 2. This redundancy check may be defined as a pruning process in the merge candidate list construction process, for example, checking if the reference picture / reference picture indexes are the same and 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 position in the 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 may be performed from the first motion candidate to the last motion candidate (ie, in the order they were added to the LUT, and in the order of the decoding process of the blocks from which the motion information originates). 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. Note that a virtual motion candidate may be added at 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 lowest entry index, eg, zero). d. In one example, it is applied only under certain conditions, such as when the current LUT is not full. 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). h. After encoding / decoding one block, one or more lookup tables may be updated by simply 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 entries of the first few 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. 1. In one example, before encoding / decoding a block, the lookup table contains the HMVP 0 ,HMVP 1 ,HMVP 2 ,···,HMVP K-1 ,HMVP K ,HMVP K+1 ,···,HMVP L-1 The motion candidates denoted by HMVP may be included. i indicates the i-th entry of the lookup table. K If the prediction is done from (K is in the range [0,L-1] inclusive), then after encoding / decoding this block, the lookup table is 0 ,HMVP 1 ,HMVP 2 ,···,HMVP K-1 ,HMVP K ,HMVP K+1 ,···,HMVP L-1 ,HMVPK are rearranged to. i. After coding one intra-constrained block, the lookup table may be emptied. j. 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 MV of the motion information entry is scaled and put into a table. ii. In one example, the MV of the motion information entry is added with (dx, dy) and entered into a table. iii. In one example, the average of the MV of two or more motion information entries is calculated and entered into a table.

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

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

[0196] Example D4: The number of available motion candidates may be reset to 0 at the start of coding a slice / tile using a new temporal layer index.

[0197] 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 updated only after encoding / decoding each S (S≧1) CTU / CTB / CU / CB, or after encoding / decoding a specific region (e.g., size equal to 8×8 or 16×16). Alternatively, the lookup table may be updated only after encoding / decoding each of S (S≧1) blocks (e.g., CU / CB) having a particular mode (e.g., S inter-coding coding blocks). Alternatively, the lookup table may be updated only after encoding / decoding each of S (S≧1) inter-coding coding 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.

[0198] Example D6: The lookup table update process may be called 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 with and / or without refining the motion information. b. In one example, for AMVP coded blocks, the look-up table update process may occur 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 coding mode, block size, video processing data unit, low latency check, etc. i. In one example, if a 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, then the lookup table may be reordered without pruning. v. Alternatively, if one block is coded in merge mode and its motion information is derived from virtual candidates in the lookup table (e.g., a combination of bi, pair, and 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 IC (Illumination Compensation) mode and / or an OBMC (Overlapped Block Motion Compensation) mode and / or a DMVD (Decode-side Motion Vector Derivation) mode, the lookup table may not be updated. Alternatively, when coding a block in such modes, the lookup table may be updated.

[0199] Additional Exemplary Embodiments

[0200] A History-based MVP (HMVP) method is proposed, which defines HMVP candidates 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.

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

[0202] In one embodiment (corresponding to example D1.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.

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

[0204] Some examples are given below:

[0205] FIG. 33A shows an example where the LUT was full before adding new motion candidates.

[0206] FIG. 33B shows an example where the LUT is not full before adding new motion candidates.

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

[0208] 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).

[0209] FIG. 34A shows an example where the LUT was full before adding new motion candidates.

[0210] FIG. 34B shows an example where the LUT is not full before adding new motion candidates.

[0211] 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 HMVP, e.g., K0=16 or 6). Apply pruning to the HMVP candidates. End the merge candidate list construction process when the total number of available merge candidates reaches the signaled maximum allowed merge candidates. Alternatively, end the extraction of motion candidates from the LUT when the total number of added motion candidates reaches a given value.

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

[0213] FIG. 28 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 by a smartphone, a tablet, a computer, an Internet of Things (IoT) receiver, etc. The device 2800 may include one or more processors 2802, one or more memories 2804, and video processing hardware 2806. The one or more processors 2802 may be configured to implement one or more methods described herein. The one or more memories 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.

[0214] 29 is a flow chart of an example video decoding method 2900. The method 2900 includes, at step 2902, maintaining one or more tables, each table including one or more sets of motion candidates, each motion candidate associated with corresponding motion information. The method 2900 further includes, at step 2904, converting between the current block and a bitstream representation of the video including the current block using the motion information in the tables. The method 2900 further includes, at step 2906, updating the one or more tables based on an integer number M of sets of additional motion information associated with the current block after performing the conversion.

[0215] 30 is a flow chart of an example video decoding method 3000. The method 3000 includes, at step 3002, converting between a current block and a bitstream representation of a video including the current block using one or more tables, each table including one or more motion candidates, each motion candidate associated with corresponding motion information. The method 3000 further includes, at step 3004, updating the one or more tables based on an integer number M of sets of additional motion information associated with the current block based on the conversion.

[0216] 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 indicating a source of the motion information. In some embodiments, the video block may be 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.

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

[0218] Features and embodiments of the above-mentioned methods / techniques are described below using a section-based format.

[0219] 1. A method for processing video comprising: maintaining one or more tables, each table including a set of one or more motion candidates, each motion candidate being associated with corresponding motion information; using the motion information in the tables to convert between a current block and a bitstream representation of a video including the current block; and after converting, updating the one or more tables based on an integer number of sets of M additional motion information associated with the current block.

[0220] 2. A video processing method comprising: using one or more tables to convert between a current block and a bitstream representation of a video including the current block, each table including one or more motion candidates, each motion candidate being associated with corresponding motion information; and updating the one or more tables based on the conversion based on an integer number M of sets of additional motion information associated with the current block.

[0221] 3. The method of claim 1 or 2, wherein M is equal to 1.

[0222] 4. The method of claim 1 or 2, further comprising adding the M sets of motion information as M additional motion candidates to a table.

[0223] 5. The updating of the table includes performing a comparison step for one of the M sets of motion information before adding the set of motion information to the table as an additional motion candidate. 5. The method of claim 4, further comprising:

[0224] 6. Pruning the set of motion information at the last K candidates or the first K%L existing motion candidates, where K is an integer representing a counter of motion candidates corresponding to the table; The method of claim 5, where L denotes the size of the table.

[0225] 7. The method of claim 4, further comprising adding one of the M sets of motion information to a table as an additional motion candidate, and not applying a comparison step.

[0226] 8. The method of claim 4, wherein when adding one of the M sets of motion information to a table, the set of motion information includes motion information that differs from any or some of the current motion candidates in the table.

[0227] 9. The method of claim 4, further comprising: when adding one set among the M sets of motion information, the difference between the MV (Motion Vector) of the current motion candidate in the table and the MV of the same reference picture from the set of motion information is not less than one or more thresholds.

[0228] 10. The method of claim 1 or 2, wherein each table has a corresponding counter, and the corresponding counter is incremented by M.

[0229] 11. The method of claim 4, further comprising adding an index in said table equal to K%L to each additional motion candidate, where K represents a counter of the motion candidate corresponding to the table to be updated, and L represents the size of the table.

[0230] 12. The method of claim 4, further comprising adding an index in said table equal to min(K+1,L-1) to each additional motion candidate, where K represents a counter of the motion candidate corresponding to the table to be updated, and L represents the size of the table.

[0231] 13. The method of claim 4, wherein if K is not less than L, then remove the first motion candidate with index 0 from the table.

[0232] 14. The method of claim 11 or 12, wherein the latest set of motion information from a previously coded block is maintained regardless of whether identical or similar motion candidates exist.

[0233] 15. The method of claim 4, wherein the updating of the one or more tables includes checking redundancy between current motion candidates and additional motion candidates in the tables.

[0234] 16. The method of claim 15, wherein the updating of one or more tables includes performing a table update based on redundancy elimination, removing one or more redundant current motion candidates from the table and maintaining an up-to-date set of motion information from previous coding blocks.

[0235] 17. The method of claim 16, wherein the latest set of motion information includes non-redundant motion information.

[0236] 18. The method of claim 16, wherein a counter associated with the table is not incremented if at least one of the current motion candidates in the table is redundant with an additional motion candidate.

[0237] 19. The method according to claim 16, wherein the redundancy elimination based table update process comprises a step of comparing an additional motion candidate to be added to the table with the current motion candidates in the table.

[0238] 20. The method of claim 19, wherein checking for redundancy identifies redundant current motion candidates in the table and moves the identified redundant current motion candidates from their current positions to the last positions after the remaining current motion candidates in the table.

[0239] 21. The method of claim 19, wherein checking the redundancy comprises identifying a redundant current motion candidate in the table, removing the identified redundant current motion candidate from the table to provide a free entry in the table, and moving a non-redundant current motion candidate after the identified redundant current motion candidate in the table forward to fill the free entry.

[0240] 22. The method of claim 21, wherein the adding of the additional motion candidate occurs after the removal of a non-redundant current motion candidate in the table.

[0241] 23. The method of claim 16, wherein performing the table update based on the redundancy elimination includes checking redundancy of current motion candidates in the table to identify multiple redundant motion candidates, and eliminating all of the identified multiple redundant motion candidates.

[0242] 24. The method of claim 23, further comprising decrementing a counter corresponding to the table by a value equal to the number of the identified redundant motion candidates minus one.

[0243] 25. The method of claim 23, wherein the redundancy check is terminated after the number of the identified redundant motion candidates reaches a maximum value maxR, where maxR is a positive integer variable.

[0244] 26. The method of claim 16, further comprising terminating the redundancy check if a redundant current motion candidate is identified.

[0245] 27. The method of claim 16, wherein checking the redundancy is performed in order from the first current motion candidate in the table to the last current motion candidate.

[0246] 28. The method according to claim 16, wherein checking the redundancy is performed in the order of adding the current motion candidate to the table or in the order of the decoding process of the block from which the current motion candidate was obtained.

[0247] 29. The method of claim 16, wherein checking the redundancy comprises identifying redundant current motion candidates in the table, deriving virtual motion candidates from the identified redundant candidates, and removing the identified redundant candidates from the table.

[0248] 30. The method of claim 29, wherein the virtual motion candidates are derived by i) adding an offset to the horizontal or vertical components of one or more motion vectors, or ii) averaging two motion vectors that point to the same reference picture.

[0249] 31. The method of claim 29, wherein the virtual motion candidate is derived from a function of a motion vector associated with a current motion candidate in the table.

[0250] 32. The method of clause 29, further comprising adding the virtual motion candidate to the table in place of the identified redundant motion candidate.

[0251] 33. The method of claim 16, further comprising adding the virtual motion candidate before a current motion candidate in the table, the current motion candidate corresponding to a motion candidate in the table excluding the identified redundant motion candidate.

[0252] 34. The method according to claim 16, further comprising invoking the table update process based on the redundancy elimination if it is determined that certain conditions are met.

[0253] 35. The method of claim 34, wherein the condition includes if the current block is coded in merge mode.

[0254] 36. The method of claim 35, wherein the condition includes the current block being coded neither with sub-block based motion prediction nor with sub-block based motion compensation.

[0255] 37. The method of claim 1 or 2, wherein the update of the one or more tables is performed only after performing the transformation of S blocks, where S is 1 or greater.

[0256] 38. The method of claim 37, wherein the S blocks are inter-coding coding blocks.

[0257] 39. The method according to claim 37, wherein the S blocks are not coded using a sub-block based motion prediction method or a sub-block based motion compensation method.

[0258] 40. The method of claim 39, wherein the conditions include if the current block is coded in merge mode and a source of motion information of a corresponding motion candidate has a certain type.

[0259] 41. The method of claim 40, wherein the source of the motion information of the corresponding motion candidate is from spatially neighboring blocks, including a left neighboring block, or from a temporal block.

[0260] 42. The method of claim 4, further comprising adding the M additional motion candidates after a current motion candidate that was added to the table before the M additional motion candidates.

[0261] 43. The method of claim 42, further comprising removing some of the current motion candidates from the table.

[0262] 44. The method of claim 43, further comprising removing from the table the first entry or entries in the set of motion candidates if the table becomes full before or after inserting the M sets of motion information.

[0263] 45. The method of claim 1 or 2, further comprising adding the motion information to a table if the current block is coded with directly signaled motion information.

[0264] 46. ​​The method according to claim 41, wherein the current block is coded in AMVP mode, in normal / affine mode, in Marge with Motion Vector Differences (MMVD) mode, or in normal / affine mode, in Advanced Motion Vector Prediction (AMVR) mode.

[0265] 47. The method of claim 45, wherein the motion information is added to the last entry of the table or to an entry used to store the next available motion candidate.

[0266] 48. The method of clause 1, 2 or 16, further comprising adding additional motion candidates to the table by a motion information derivation process based on the M sets of motion information.

[0267] 49. The method of claim 44, wherein a counter corresponding to the table is incremented by a value greater than one.

[0268] 50. The method of claim 44, wherein the motion information derivation process includes scaling a set of motion vectors in the M sets of motion information.

[0269] 51. The method of claim 48, wherein the motion information derivation process comprises adding a motion vector offset (dx, dy) to the motion vectors of the M sets of motion information.

[0270] 52. The method of claim 48, wherein the motion information derivation process includes using an average value of motion vectors of two or more sets in the M sets of motion information.

[0271] 53. A method according to any one of clauses 1 to 52, wherein the updating comprises modifying the M sets of motion information before they are added to the table.

[0272] 54. The method of claim 1 or 2, wherein performing the transformation includes generating the bitstream representation from the current block.

[0273] 55. The method of claim 1 or 2, wherein performing the transformation includes generating the current block from the bitstream representation.

[0274] 56. A method according to any one of clauses 1 to 55, wherein the motion candidate is associated with motion information including 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.

[0275] 57. A method according to any one of clauses 1 to 55, wherein the motion candidates correspond to intra-prediction mode motion candidates for intra-mode coding.

[0276] 58. A method according to any one of clauses 1 to 55, wherein the motion candidates correspond to motion candidates including illumination compensation parameters for IC parameter coding.

[0277] 59. A method according to any one of clauses 1 to 58, further comprising converting between subsequent video blocks of the video and the bitstream representation of the video based on the updated table.

[0278] 60. An apparatus comprising a processor and non-transitory memory having instructions stored thereon, the instructions, when executed by the processor, causing the processor to perform a method according to any one of clauses 1 to 59.

[0279] 61. A computer program product stored on a non-transitory computer readable medium, the computer program product comprising program code for carrying out a method according to any one of clauses 1 to 59.

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

[0281] Implementations of 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 modules 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 storage 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.

[0282] 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 it 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 that program, or may be stored in multiple coordinating files (e.g., one or more modules, subprograms, or code). A computer program may be deployed to run on one computer located at one site, or on multiple computers distributed across multiple sites and interconnected by a communications network.

[0283] The processes and logic flows described herein may be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be performed by, and an apparatus may be implemented as, special purpose logic circuitry, such as a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC).

[0284] Processors suitable for executing computer programs 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 executing instructions and one or more storage 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 forms of non-volatile memory, media, and storage devices, including, for example, EPROMs, EEPROMs, flash storage devices, magnetic disks, such as internal hard disks or removable disks, magneto-optical disks, and semiconductor storage devices such as CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.

[0285] Although this patent document 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 certain embodiments of a particular invention. Certain features described in this patent document in the context of another embodiment may be implemented in combination in one example. Conversely, various features described in the context of a single 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.

[0286] 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 components in the examples described in this patent document be understood as requiring such separation in all embodiments.

[0287] Only certain implementations and examples have been described; other embodiments, extensions and variations are possible based on what is described and illustrated in this patent document.

Claims

1. 1. A method for processing video data, comprising the steps of: maintaining a table including one or more motion candidates derived from one or more coded video blocks for conversion between video blocks of a video and a bitstream of the video; constructing a candidate list for the current video block by checking at least one motion candidate in the table to determine whether to add the at least one motion candidate to a candidate list; determining motion information for the current video block of a video based at least on the candidate list; performing said transformation based at least on said determined motion information; updating the table with new motion candidates corresponding to the determined motion information; having In the updating, at least one motion candidate is removed from the table due to the at least one motion candidate stored in the table now being the same as the new motion candidate; The method, wherein the updated table is checked during determination of motion information of subsequent video blocks.

2. The determining of motion information of a subsequent video block comprises: checking at least one motion candidate in the updated table during construction of the candidate list for the subsequent video block; deriving the motion information using the candidate list; and 2. The method of claim 1, comprising:

3. The method of claim 1, wherein a redundancy check to determine whether the at least one motion candidate stored in the table is currently the same as the new motion candidate is performed in the order in which the stored motion candidates were added to the table or in the order of the coding process of the block from which the stored motion candidate in the table was obtained.

4. 2. The method of claim 1, wherein a redundancy check to determine whether the at least one motion candidate stored in the table is currently the same as the new motion candidate is performed in order from a first stored motion candidate having the smallest index in the table to a last stored motion candidate having the largest index in the table.

5. The method of claim 1 , wherein a redundancy check to determine whether the at least one motion candidate stored in the table is currently the same as the new motion candidate terminates when the same motion candidate in the table is identified.

6. The method of claim 1 , wherein the redundancy check to determine whether the at least one motion candidate stored in the table is currently the same as the new motion candidate includes comparing the new motion candidate with the stored motion candidates in the table.

7. The method of claim 1 , further comprising not incrementing a counter indicating the number of stored motion candidates in the table if at least one of the stored motion candidates in the table is redundant with respect to the new motion candidate.

8. The method of claim 1 , wherein an index of the stored motion candidates in the table is based on an order of addition of the stored motion candidates to the table.

9. The method of claim 8 , wherein when the new motion candidate is added to the table, the new motion candidate has a higher index than other stored motion candidates in the table.

10. The method of claim 8 , wherein the at least one motion candidate in the table is checked in order of the at least one index of the at least one motion candidate during determination of a motion candidate for the subsequent block.

11. the same motion candidate is removed from the table to provide an empty entry in the table; A motion candidate having an index greater than the index of the same motion candidate is moved forward to fill the empty entry; The method of claim 1 , wherein the adding of the new motion candidate to the table is performed after the moving of the motion candidate.

12. The method of claim 1 , wherein the converting comprises generating the bitstream from the current video block.

13. The method of claim 1 , wherein the converting comprises generating the current video block from the bitstream.

14. 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 a table including one or more motion candidates derived from one or more coded video blocks for conversion between video blocks of a video and a bitstream of the video; constructing a candidate list for the current video block by checking at least one motion candidate in the table to determine whether to add the at least one motion candidate to a candidate list; determining motion information for the current video block of a video based at least on the candidate list; performing said transformation based at least on said determined motion information; updating the table with new motion candidates corresponding to the determined motion information; Run the command, In updating the table, at least one motion candidate is removed from the table because the at least one motion candidate stored in the table is now the same as the new motion candidate; The updated table is checked during determination of motion information of subsequent video blocks.

15. The processor: maintaining a table including one or more motion candidates derived from one or more coded video blocks for conversion between video blocks of a video and a bitstream of the video; constructing a candidate list for the current video block by checking at least one motion candidate in the table to determine whether to add the at least one motion candidate to a candidate list; determining motion information for the current video block of a video based at least on the candidate list; performing said transformation based at least on said determined motion information; updating the table with new motion candidates corresponding to the determined motion information; Run the command, In updating the table, at least one motion candidate is removed from the table because the at least one motion candidate stored in the table is now the same as the new motion candidate; The updated table is checked during determination of motion information for a subsequent video block.

16. A method for storing a video bitstream, comprising the steps of: maintaining a table including one or more motion candidates derived from one or more coded video blocks for conversion between video blocks of a video and a bitstream of the video; constructing a candidate list for the current video block by checking at least one motion candidate in the table to determine whether to add the at least one motion candidate to a candidate list; determining motion information for the current video block of a video based at least on the candidate list; generating the bitstream from the current video block based on the determined motion information; and storing the bitstream on a non-transitory computer readable recording medium; updating the table with new motion candidates corresponding to the determined motion information; having In the updating, at least one motion candidate is removed from the table due to the at least one motion candidate stored in the table now being the same as the new motion candidate; The method, wherein the updated table is checked during determination of motion information of subsequent video blocks.

Citation Information

Patent Citations

  • Moving picture coding device, moving picture coding method, moving picture coding program, transmitting device, transmission method and transmission program

    JP2016059066A

  • Merge candidates for motion vector prediction for video coding

    JP2019515587A

  • Motion Vector Prediction

    JP2020523853A

  • Image coding device, image coding method, image coding program, image decoding device, image decoding method and image decoding program

    JP2021052373A

  • Selecting Predicted Motion Vector Candidates

    US20110194609A1

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