Interaction between LUT and AMVP
A lookup table-based method for motion vector prediction addresses inefficiencies in video encoding by utilizing historical data to predict motion information, improving encoding efficiency and reducing complexity.
Patent Information
- Application Number
- JP2023016139
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-01-16
- Filing Date
- 2023-02-06
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2039-07-01
AI Technical Summary
Existing video encoding technologies face challenges in efficiently encoding motion information due to limitations in predicting motion trajectories of neighboring blocks, leading to increased complexity and reduced coding efficiency, especially when nearby blocks correspond to different objects with varying motion trajectories.
Implementing a lookup table (LUT) based method for motion vector prediction, where motion candidates are stored and used to predict motion information for video blocks, enhancing encoding efficiency by leveraging historical data and reducing the need for caching all motion information.
The LUT-based method improves video encoding efficiency by allowing encoding operations to utilize historical data, reducing complexity, and enhancing coding gains, applicable to both existing and future video coding standards.
Smart Images

Figure 0007544883000025 
Figure 0007544883000020 
Figure 0007544883000012
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS Pursuant to applicable patent laws and / or regulations under the Paris Convention, this application is intended to timely claim priority to and the benefit of International Patent Application No. PCT / CN2018 / 093663, filed June 29, 2018, International Patent Application No. PCT / CN2018 / 105193, filed September 12, 2018, and International Patent Application No. PCT / CN2019 / 072058, filed January 16, 2019. Under the laws of the United States, for all purposes, the entire disclosures of International Patent Application No. PCT / CN2018 / 093663, International Patent Application No. PCT / CN2018 / 105193, and International Patent Application No. PCT / CN2019 / 072058 are incorporated by reference as part of the disclosure of this application.
[0002] This patent specification 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 specification discloses methods, systems, and devices for encoding and decoding digital video.
[0005] In one exemplary aspect, a method of video decoding is provided that includes maintaining tables, each table including a set of motion candidates, each motion candidate being associated with corresponding motion information, and converting between a first video block and a bitstream representation of a video including the first video block, the converting including processing the motion information of the first video block using at least a portion of the set of motion candidates as predictors.
[0006] 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.
[0007] 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]
[0008] [Figure 1] FIG. 2 is a block diagram illustrating an example implementation of a video encoder. [Diagram 2] 2 shows a division of macroblocks 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 the 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 unilateral motion estimation (ME) in Frame Rate Up Conversion (FRUC) is shown. [Figure 24]1 shows an example of DMVR based on bilateral template matching. [Diagram 25] 1 shows an example of spatially neighboring blocks used to derive spatial merging candidates. [Figure 26] 13 shows an example of how to select a representative location for updating a lookup table. [Figure 27A] An example of updating a lookup table with a new set of motion information is given. [Figure 27B] An example of updating a lookup table with a new set of motion information is given. [Figure 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] 4 is a flow chart of another exemplary method of video bitstream processing. [Diagram 30] 1 shows an example of a decoding flowchart according to the proposed HMVP method. [Diagram 31] An example of updating a table using the proposed HMVP method is shown. [Figure 32A] An example of a redundancy elimination based LUT update method (eliminating one redundant motion candidate) is given. [Figure 32B] An example of a redundancy elimination based LUT update method (eliminating one redundant motion candidate) is given. [Figure 33A] 1 shows an example of a redundancy elimination based LUT update method (eliminating multiple redundant motion candidates). [Figure 33B] 1 shows an example of a redundancy elimination based LUT update method (eliminating multiple redundant motion candidates). [Diagram 34] An example of the difference between type 1 blocks and type 2 blocks is shown below. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] To improve video compression rates, researchers are continually seeking new techniques for encoding video.
[0010] 1. Introduction
[0011] This specification relates to a video coding technology. Specifically, 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 may be applied to finalize a standard (Versatile Video Coding). The present invention is also applicable to future video coding standards or video codecs.
[0012] Short Description
[0013] 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.
[0014] 2.1 Partition structure
[0015] 2.1.1 Partition Tree Structure in H.264 / AVC
[0016] The core of the coding layer in previous standards was a macroblock, containing a 16x16 block of luma samples and, in the case of conventional 4:2:0 colour sampling, two corresponding 8x8 blocks of chroma samples.
[0017] Intra-coded blocks use spatial prediction to exploit spatial correlation between pixels. We define two partitions: 16x16 and 4x4.
[0018] 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.
[0019] 2.1.2 Partition Tree Structure in HEVC
[0020] 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.
[0021] Below we will highlight various aspects related to hybrid video coding using HEVC.
[0022] 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 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.
[0023] 2) Coding Units (CUs) and Coding Blocks (CBs): The quadtree syntax of a CTU specifies the size and location of its luma and chroma CBs. The root of the quadtree is associated with the CTU. The size of the luma CTB is therefore the maximum size supported for the luma CB. The partitioning of a CTU into luma and chroma CBs is to be signaled together. One luma CB and usually two chroma CBs, together with the associated syntax, form one coding unit (CU). A CTB may contain only one CU or may be partitioned to form multiple CUs, each of which has a partition into prediction units (PUs) and one tree of transform units (TUs) associated with it.
[0024] 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 size samples from 64x64 to 4x4. Figure 3 shows an example of allowed PBs for an MxM CU.
[0025] 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.
[0026] 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.
[0027] 2.1.2.1 Dividing the tree structure into transformation blocks and units
[0028] For residual coding, the CB can be recursively split into transform blocks (TBs). This split is signaled by the residual quadtree. As shown in Figure 4, we only specify the square CB and TB split so that one block can be recursively split into quadrants. For a given luma CB of size M×M, a flag signals whether it is split into four blocks of size M / 2×M / 2. If further splitting is possible, as signaled by the maximum depth of the residual quadtree indicated in the SPS, each quadrant is assigned a flag indicating whether it is split into four quadrants or not. 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 size that it will use. If the CB size is larger than the maximum TB size, the split is done implicitly. If the splitting results in a luma TB size smaller than the indicated minimum, it is implicit not to do the split. 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.
[0029] 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 TB partitioning.
[0030] 2.1.2.2 Parent and Child Nodes
[0031] 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.
[0032] 2.1.3 Quadtree+2-tree block structure with larger CTU in JEM
[0033] 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).
[0034] 2.1.3.1 QTBT block division structure
[0035] Unlike HEVC, the QTBT structure removes the concept of multiple partition types. That is, it removes the decoupling of the concepts of CU, PU, and TU, and improves the flexibility of the shape of CU partitions. In the QTBT block structure, a CU can have either a square or a rectangle. As shown in Figure 5, first, the 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 coded 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.
[0036] 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.
[0037] In one example of a partitioning structure for QTBT, the size of the CTU is set as 128×128 luma samples with two corresponding 64×64 blocks of chroma samples, MinQTSize is set as 16×16, MaxBTSize is set as 64×64, MinBTSize (for both width and height) is set as 4×4, and MaxBTDepth is set as 4. A quadtree partition is first applied to the CTU to generate quadtree leaf nodes. The quadtree leaf nodes can have sizes from 16×16 (i.e., MinQTSize) to 128×128 (i.e., CTU size). If a leaf quadtree node is 128×128, it is not further partitioned by the binary tree because the size exceeds MaxBTSize (i.e., 64×64). Otherwise, the leaf quadtree node may 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.
[0038] 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.
[0039] 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 coded block of one luma component or one coded block of two chroma components, and one CU in one P or B slice consists of coded blocks of all three color components.
[0040] In HEVC, inter prediction for small blocks is restricted to reduce memory access for motion compensation, resulting in no bi-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.
[0041] 2.1.4 VVC Ternary Tree
[0042] In some embodiments, tree types other than quadtrees and binary trees are supported. In this implementation, we introduce two or more ternary tree (TT) partitions, i.e., horizontal and vertical center-side ternary trees, as shown in Fig. 6(d) and (e).
[0043] 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.
[0044] In some implementations, there are two levels of trees: a region tree (quadtree) and a prediction tree (binary or ternary). The CTU is first split by a region tree (RT). The RT leaves may be further split by a prediction tree (PT). The PT leaves may also be further split in PTs until a maximum PT depth is reached. The PT leaves are the basic coding units. For convenience, they are also referred to as CUs. A CU cannot be further split. Both prediction and transformation are applied to CUs, similar to JEM. The whole partition structure is called a "multi-type tree".
[0045] 2.1.5 Split structure
[0046] 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.
[0047] 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.
[0048] 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.
[0049] 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 formed from one of three tree types: binary tree (BT), ternary tree (TT), and asymmetric binary tree (ABT). In PT partitioning, it is forbidden to have 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.
[0050] 2.2 Inter Prediction in HEVC / H.265
[0051] 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] The inter prediction modes defined in HEVC will be described in detail below. First, the merge mode will be described.
[0056] 2.2.1 Merge Mode
[0057] 2.2.1.1 Deriving Merge Mode Candidates
[0058] 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
[0059] 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, it generates 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 a CU is equal to 8, all PUs of the current CU share one merge candidate list, which is the same as the merge candidate list of the 2N × 2N prediction units.
[0060] The operations associated with the above steps are described in detail below.
[0061] 2.2.1.2 Deriving Spatial Candidates
[0062] In the derivation of spatial merge candidates, up to four merge candidates are selected from the candidates at the positions shown in FIG. 10. The order of derivation is A1, B1, B0, A0, B2. Position B2 is considered only if any of the PUs at positions A1, B1, B0, A0 are not available (e.g., because they belong to another slice or tile) or are intra-coded. After adding the candidate at position A1, the remaining candidates are added and subjected to a redundancy check, which ensures that candidates with the same motion information are removed from the list, improving coding efficiency. To reduce computational complexity, the aforementioned redundancy check does not consider all possible candidate pairs. Instead, only the pairs linked by arrows in FIG. 11 are considered, and a candidate is added to the list only if the corresponding candidate used for the redundancy check does not have the same motion information. Another source of duplicated motion information is a "second PU" associated with a partition different from 2N×2N. As an example, FIG. 12 shows the second PU for N×2N and 2N×N cases, respectively. When splitting the current PU into N×2N, the candidate at position A1 is not considered in the list construction. In fact, adding this candidate would lead to two prediction units with the same motion information, which is redundant for having only one PU in one coding unit. Similarly, when splitting the current PU into 2N×N, position B1 is not considered.
[0063] 2.2.1.3 Temporal Candidate Derivation
[0064] In this step, only one candidate is added to the list. Specifically, in the derivation of this temporal merge candidate, a scaled motion vector is derived based on the co-located PU belonging to the picture with the smallest POC difference with the current picture in a given reference picture list. In the slice header, the reference picture list used for the derivation of the co-located PU is explicitly signaled. As shown by the dotted line in FIG. 13, the scaled motion vector of the temporal merge candidate is obtained, which is scaled from the motion vector of the co-located PU using the POC distances tb and td. tb is defined as the POC difference between the reference picture of the current picture and the current picture, and td is defined as the POC difference between the reference picture of the co-located PU and the co-located picture. The reference picture index of the temporal merge candidate is set equal to zero. The practical realization of this scaling process is described in the HEVC specification. For B slices, we take two motion vectors, one for reference picture list 0 and one for reference picture list 1, and combine them to form a bi-predictive merge candidate. Description of Scaling of Motion Vectors for Temporal Merge Candidates
[0065] For the co-located PU(Y) belonging to the reference frame, select the location of the temporal candidate between candidates C0 and C1 as shown in Fig. 14. If the PU at location C0 is not available, is intra-coded, or is outside the current CTU, location C1 is used. Otherwise, location C0 is used to derive the temporal merge candidate.
[0066] 2.2.1.4 Inserting additional candidates
[0067] Besides the spatial-temporal merge candidates, there are two additional types of merge candidates: joint bi-predictive merge candidates and zero merge candidates. The spatial-temporal merge candidates are utilized to generate joint bi-predictive merge candidates. The joint bi-predictive merge candidates are used only for B slices. The joint bi-predictive candidate is generated by combining the first reference picture list motion parameters of the first candidate with the second reference picture list motion parameters of another candidate. If these two tuples provide different motion hypotheses, these tuples form a new bi-predictive candidate. As an example, FIG. 15 shows the case where two candidates with mvL0 and refIdxL0, or mvL1 and refIdxL1 in the original list (left side) are used to generate the joint bi-predictive merge candidate that is added to the final list (right side). There are various rules for the combinations considered to generate these additional merge candidates, which are specified here.
[0068] 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.
[0069] 2.2.1.5 Motion Estimation Regions for Parallel Processing
[0070] To speed up the encoding process, motion estimation can be done in parallel, thereby deriving motion vectors for all prediction units in a given region simultaneously. Derivation of merge candidates from spatial neighborhoods can interfere with parallel processing, since one prediction unit cannot derive motion parameters from neighboring PUs until its associated motion estimation is completed. To mitigate the tradeoff between encoding efficiency and processing latency, HEVC specifies a Motion Estimation Region (MER), the size of which is signaled in the picture parameter set using the "log2_parallel_merge_level_minus2" syntax element. When specifying one MER, merge candidates in the same region are marked as unavailable and therefore not considered in list construction. 7.3.2.3 Picture parameter set RBSP syntax 7.3.2.3.1 General picture parameter set RBSP syntax
[0071] [Table 1]
[0072] 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.
[0073] 2.2.2 Motion Vector Prediction in AMVP Mode
[0074] Motion vector prediction exploits the spatial-temporal correlation between motion vectors and neighboring PUs, which is used for unambiguous transmission of motion parameters. First, a motion vector candidate list is constructed by checking the availability of the left, upper temporally neighboring PU positions, removing redundant candidates, and adding zero vectors to keep the length of the candidate list constant. Then, the encoder can select the best predictor from the candidate list and transmit the corresponding index indicating the selected candidate. Similar to the merge index signaling, the index of the best motion vector candidate is coded using a shortened unary term. The maximum value of the coding target in this case is 2 (e.g., Figures 2 to 8). The following chapters will explain the details of the motion vector prediction candidate derivation process.
[0075] 2.2.2.1 Derivation of motion vector prediction candidates
[0076] FIG. 16 summarizes the process of deriving motion vector prediction candidates.
[0077] 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 in five different positions, as shown in Figure 11.
[0078] 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.
[0079] 2.2.2.2 Spatial Motion Vector Candidates
[0080] In deriving spatial motion vector candidates, we consider up to two candidates among five possible candidates derived from PUs located as shown in FIG. 11 that are in the same position as the motion merge. The order of derivation for the left side of the current PU is specified as A0, A1, scaled A0, scaled A1. The order of derivation for the top side of the current PU is specified as B0, B1, B2, scaled B0, scaled B1, scaled B2. So, for each edge, there are four possible cases for motion vector candidates: two cases that do not require spatial scaling and two cases that use spatial scaling. The four different cases can be summarized as follows: No spatial scaling -(1) Same reference picture list and same reference picture index (same POC) - (2) Different reference picture lists and the same reference picture (same POC) Spatial Scaling - (3) Same reference picture list but different reference pictures (different POC) (4) Different reference picture lists and different reference pictures (different POCs)
[0081] First check the non-spatial scaling case, then do spatial scaling. Regardless of the reference picture list, if the POC is different between the reference picture of the neighboring PU and the reference picture of the current PU, consider spatial scaling. If all PUs of the left candidate are not available or are intra-coded, scaling of the top motion vector helps in the parallel derivation of the left and top MV candidates. Otherwise, no spatial scaling is allowed for the top motion vector.
[0082] 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.
[0083] 2.2.2.3 Temporal Motion Vector Candidates
[0084] Except for deriving the reference picture index, all the processes for deriving the temporal merge candidates are the same as those for deriving the spatial motion vector candidates (see FIG. 6). The reference picture index is signaled to the decoder.
[0085] 2.2.2.4 Signaling of AMVP Information
[0086] For AMVP mode, four parts can be signaled in the bitstream: prediction direction, reference index, MVD, and mv predictor candidate index. Syntax table:
[0087] [Table 2]
[0088] 7.3.8.9 Motion Vector Difference Syntax
[0089] [Table 3]
[0090] 2.3 New Inter-Prediction Method in JEM (Joint Exploration Model)
[0091] 2.3.1 Sub-CU-based motion vector prediction
[0092] 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.
[0093] In order to maintain a more accurate motion field for sub-CU motion prediction, reference frame motion compression is currently disabled.
[0094] 2.3.1.1 Alternative Temporal Motion Vector Prediction
[0095] 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).
[0096] 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.
[0097] In the first step, the reference picture and corresponding block are determined by the motion information of the spatially neighboring blocks of the current CU. In order to avoid the repeated scanning process of the neighboring blocks, the first merge candidate in the merge candidate list of the current CU is used. The first available motion vector and its associated reference index are set to the temporal vector and the index of the motion source picture. In this way, the corresponding block can be more accurately identified in ATMVP compared with TMVP, and the corresponding block (sometimes called the aligned block) is always in the lower right or center position with respect to the current CU. In one example, if the first merge candidate is from the left neighboring block (i.e., A1 in FIG. 19), the associated MV and reference picture are utilized to identify the source block and the source picture.
[0098] FIG. 19 shows a specific example of a source block and a source picture.
[0099] 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).
[0100] 2.3.1.2 Spatial-Temporal Motion Vector Prediction
[0101] 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.
[0102] The motion derivation of sub-CU A starts by identifying its two spatial neighbors. The first neighbor is the N×N block above sub-CU A (block c). If this block c is not available or is intra-coded, check the other N×N blocks above sub-CU A (starting from block c, going from left to right). The second neighbor is the block to the left of sub-CU A (block b). If block b is not available or is intra-coded, check the other blocks to the left of sub-CU A (starting from 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.
[0103] FIG. 20 shows an example of one CU having four sub-blocks (AD) and its neighboring blocks.
[0104] 2.3.1.3 Sub CU Motion Prediction Mode Signaling
[0105] 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.
[0106] 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.
[0107] 2.3.2 Adaptive motion vector difference resolution
[0108] 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 decoded 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.
[0109] 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.
[0110] If the first MVD resolution flag of a CU is zero or is not coded for the CU (i.e., all MVDs in the CU are zero), then 1 / 4 luma sample MV resolution is used for the CU. If the CU uses integer luma sample MV precision or 4 luma sample MV precision, round the MVPs in the CU's AMVP candidate list to the corresponding precision.
[0111] In the encoder, the CU-level RD check is used to determine which MVD resolution to use for a CU. That is, the CU-level RD check is performed three times for each MVD resolution. To speed up the encoder, the following encoding method is applied in JEM:
[0112] 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.
[0113] 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.
[0114] 2.3.3 Pattern Matching Motion Vector Derivation
[0115] 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 the blocks is not signaled but is derived at the decoder side.
[0116] 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.
[0117] On the encoder side, the decision of whether to use the FRUC merging mode for a CU is based on the RD cost selection, just as it is done for regular merging candidates. That is, we check both two matching modes (bilateral matching and template matching) for one CU using the RD cost selection. 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.
[0118] 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 opening 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.
[0119] For example, to derive W×H CU motion information, the following derivation process is performed: In the first stage, an MV for the entire W×H CU is derived. In the second stage, the CU is further divided into M×M sub-CUs. The value of M is calculated as (16), where D is a predefined division depth, which is set to 3 by default in JEM. Then, an MV for each sub-CU is derived.
[0120]
number
[0121] 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.
[0122] 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.
[0123] 2.3.3.1 CU-level MV candidate set
[0124] 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
[0125] 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 its 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.
[0126] We also add the four MVs from the interpolated MV field to the CU-level candidate list: the interpolated MVs at positions (0,0), (W / 2,0), (0,H / 2), and (W / 2,H / 2) of the current CU.
[0127] When applying FRUC in AMVP mode, we also add the original AMVP candidates to the CU-level MV candidate set.
[0128] At the CU level, add up to 15 MVs for AMVP CUs and up to 13 MVs for merged CUs to the candidate list.
[0129] 2.3.3.2 Sub-CU level MV candidate set
[0130] 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
[0131] 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.
[0132] Candidates for ATMVP and STMVP are limited to the first four candidates
[0133] At the sub-CU level, up to 17 MVs are added to the candidate list.
[0134] 2.3.3.3 Generating Interpolated MV Fields
[0135] Before encoding 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.
[0136] First, the motion field of each reference picture in both reference lists is traversed at the 4x4 block level. For each 4x4 block, if the motion associated with a block passing through the 4x4 block of the current picture (shown in Figure 23) does not have an interpolated motion assigned to it yet, scale the motion of the reference block to the current picture based on the temporal distances TD0 and TD1 (similar to MV scaling of TMVP in HEVC) and assign the scaled motion to the block of the current frame. If the 4x4 block does not have a scaled MV assigned to it, the motion of the block is marked as unavailable in the interpolated motion field.
[0137] 2.3.3.4 Interpolation and Matching Costs
[0138] 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.
[0139] 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:
[0140]
number
[0141] 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.
[0142] 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.
[0143] 2.3.3.5 MV Improvements
[0144] 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.
[0145] 2.3.3.6 Prediction Direction Selection in Template Matching FRUC Merge Mode
[0146] 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.
[0147] Here, cost0 is the SAD of list0 template matching, cost1 is the SAD of list1 template matching, and costBi is the SAD of bidirectional prediction template matching. When the factor value is 1.25, it means that the selection process is biased towards bidirectional prediction. This inter prediction direction selection is applied only to the template matching process at the CU level.
[0148] 2.3.4 Decoder-side motion vector improvement
[0149] In the bi-directional prediction operation, the bi-predictive blocks constructed by using the motion vectors (MVs) in list0 and MVs in list1 respectively to predict one block region are combined to form one prediction signal. In the Decoder-side Motion Vector Refinement (DMVR) method, the two motion vectors of the bi-directional prediction are further refined by a bilateral template matching process. In order to obtain the refined MVs without transmitting additional motion information, bilateral template matching is applied in the decoder to perform a distortion-based search between the bilateral template and the reconstructed samples in the reference picture.
[0150] In DMVR, we generate a bilateral template from the first MV0 in list0 and MV1 in list1 as a weighted combination (i.e., average) of two prediction blocks, respectively, as shown in Fig. 23. The template matching operation consists of calculating a cost measure between the generated template and a sample region (near the first prediction block) in the reference picture. For each of the two reference pictures, the MV with the smallest template cost is considered as the updated MV of that list and replaces the original MV. In JEM, we search for nine MV candidates for each list. The nine MV candidates include the original MV and eight surrounding MVs with one luma sample offset with respect to the original MV in either horizontal or vertical direction or both directions. Finally, we use two new MVs, namely MV0' and MV1' as shown in Fig. 24, to generate the final bidirectional prediction result. We use the sum of absolute difference (SAD) as the cost measure.
[0151] 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 when LIC, affine motion, FRUC, or sub-CU merge candidates are enabled for a CU.
[0152] 2.3.5 Merge / Skip Mode with Bilateral Matching Improvements
[0153] 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.
[0154] -Spatial candidates for blocks 1-4
[0155] -Extrapolation affine candidates for blocks 1 to 4
[0156] -ATMVP
[0157] -STMVP
[0158] - Virtual affine candidates
[0159] - Spatial Candidates (Block 5) (used only if the number of available candidates is less than 6).
[0160] - Extrapolated affine candidates (Block 5)
[0161] -Temporal candidates (derived like HEVC)
[0162] - Non-adjacent spatial candidates following the extrapolated affine candidates (blocks 6-49 shown in Figure 25).
[0163] -Combination candidates
[0164] -Zero Candidates
[0165] 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.
[0166] In some embodiments, blocks that are not connected to the current block can be accessed. If the non-adjacent blocks are coded in a non-intra mode, the associated motion information may be added as additional merging candidates.
[0167] 2.3.6 Shared Merge List JVET-M0170
[0168] To enable parallel processing of small skip / merge coded CUs, we propose to share the same merge candidate list for all leaf coding units (CUs) of an ancestor node in the CU partition tree. We call the ancestor node a merge-share node. We generate a shared merge candidate list at the merge-share node, pretending that the merge-share node is a leaf CU.
[0169] In the definition of Type-2, during the parsing phase of decoding, a merge-share node is determined for each CU in the CTU. A merge-share node is an ancestor node of a leaf CU and must satisfy the following two criteria:
[0170] The size of the merge shared node is greater than or equal to the size threshold.
[0171] In a merge-share node, the size of a child CU is smaller than a size threshold.
[0172] Furthermore, we need to ensure that the samples of a merge-shared node are not outside the picture boundary. During the parsing phase, if an ancestor node meets criteria (1) and (2) but has some samples outside the picture boundary, then this ancestor node is not a merge-shared node, and we go ahead and find a merge-shared node for its child CU.
[0173] Figure 35 shows an example of the difference between Type-1 and Type-2 definitions. In this example, a parent node is split into three child CUs. The size of the parent node is 128. In the Type-1 definition, the three child CUs are separate merge-share nodes. However, in the Type-2 definition, the parent node is a merge-share node.
[0174] The proposed shared merge candidate list algorithm supports translational merge (including merge mode and triangle merge mode, history-based candidates are also supported) and subblock-based merge modes. In all kinds of merge modes, the behavior of the shared merge candidate list algorithm basically looks the same, generating candidates in the merge share node that only make the merge share node look like a leaf CU. It has two major advantages. The first advantage is that it enables parallel processing for merge modes, and the second advantage is that it shares all the computations of all leaf CUs to the merge share node. Therefore, it can greatly reduce the hardware cost of all merge modes for hardware codecs. The proposed shared merge candidate list algorithm allows the encoder and decoder to easily accommodate parallel encoding of merge modes, and it alleviates the cycle budget problem of merge modes.
[0175] 2.3.7 Tiles
[0176] In JVET-L0686, slices are removed in favor of tile groups, and the HEVC syntax element slice_address is replaced by the tile_group_address in the tile_group_header as the address of the first tile in the tile group (if there are multiple tiles in the picture).
[0177] 3. Examples of problems to be solved by the embodiments disclosed herein
[0178] 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.
[0179] Prediction from motion information of non-adjacent blocks comes at 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.
[0180] 4. Some Examples
[0181] 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., look-up 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 look-up table is an 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 position information to indicate where the motion information originates from.
[0182] The LUT-based motion vector prediction based on the disclosed technology can improve both existing and future video coding standards, and various embodiments are elucidated in the following examples. Since the LUT allows the encoding / decoding process to be performed based on history data (e.g., already processed blocks), the LUT-based motion vector prediction can also be called HMVPHistory-based Motion Vector Prediction (HMVP) method. 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 a block, the associated motion information in the LUT is added to a motion candidate list (e.g., merge / AMVP candidate list) to encode / decode a block. The LUT may be used after updating the motion candidates. The updated LUT is then used to code the subsequent blocks. Thus, the updating 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 illustrate the general concept. These examples should not be construed in a narrow sense. Moreover, these examples can be combined in any way.
[0183] 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.
[0184] The following examples illustrate the general concepts.
[0185] Lookup Table Example
[0186] Example A1: Each lookup table may include one or more motion candidates, with each candidate associated with its motion information. The motion information of the motion candidates here 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.
[0187] Choosing a LUT
[0188] Example B1: When encoding 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 encoding a block, this motion candidate may be added to a motion candidate list (e.g., AMVP, merge candidate list). Example B2: The selection of the lookup table may depend on the position of the block.
[0189] Using a Lookup Table
[0190] Example C1: The total number of motion candidates in the lookup table to be checked may be predefined.
[0191] 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., motion candidates may be checked in the merge candidate list derivation process. b. They may be used for affine merge mode encoding. i. If the affine flag is 1, then the motion candidates in the lookup table can be added as affine merge candidates. c. They may be used for other kinds of merge modes, such as sub-block merge mode, affine merge mode, triangle merge mode, inter-intra merge mode, and MMVD (Merge with MVD) mode. d. Checking of motion candidates in the lookup table may be enabled if: i. The merge candidate list is not full after inserting a TMVP candidate. ii. After checking certain spatially neighboring blocks for spatial merge candidate derivation, the merge candidate list is not full. iii. After all spatial merge candidates, the merge candidate list is not full. iv. After combining bidirectional predictive merge candidates, the merge candidate list is not full. v. If the number of spatial or temporal (e.g., including contiguous and non-contiguous spatial, TMVP, STMVP, ATMVP, etc.) merge candidates put into the merge candidate list from other coding methods (e.g., the merge derivation process of the HEVC design, or the JEM design) is less than the maximum allowed merge candidates minus a given threshold. 1. In one example, the threshold is set to 1 or 0. 2. Alternatively, the threshold may be signaled in the SPS / PPS / sequence, picture, slice header / tile or may be pre-defined. 3. Alternatively, the threshold may be adaptively changed per block, e.g., it may depend on coded block information like block size / block shape / slice type and / or it may depend on the number of available spatial or temporal merging candidates. 4. In another example, the number of certain merge candidates that are not already included in the merge candidate list is less than the maximum allowed merge candidates minus a given threshold. The "certain merge candidates" may be spatial candidates such as HEVC or non-adjacent merge candidates. vi. Pruning may be applied before adding motion candidates to the merge candidate list. In various implementations of this and other examples disclosed in this patent specification, pruning may be applied. The filtering may include a) comparing the motion information with existing entries for uniqueness, or b) if unique, adding the motion information to the list, or c) if not unique, c1) not adding the motion information, or c2) adding the motion information and removing the matching existing entry. In some implementations, no pruning step is performed when adding motion candidates from the table to the candidate list. 1. In one example, motion candidates may be pruned to all or a portion of spatial or temporal (e.g., including contiguous and non-contiguous spatial, TMVP, STMVP, ATMVP, etc.) merge candidates available from other coding methods in the merge candidate list. 2. The motion candidates may not be pruned to sub-block based motion candidates, e.g., ATMVP, STMVP. 3. In one example, the current motion candidate may be pruned to all or a portion of the available motion candidates in the merge candidate list (inserted before the current motion candidate). 4. The number of pruning steps associated with a motion candidate (e.g., the number of times a motion candidate needs to be compared to other candidates in the merge list) may depend on the number of available spatial or temporal merge candidates. For example, when checking a new motion candidate, if there are M candidates available in the merge list, the new motion candidate may only be compared to the first K (K≦M) candidates. If the pruning function returns false (e.g., not identical to any of the first K candidates), the new motion candidate may be considered different from all M candidates and added to the merge candidate list. In one example, K is set to min(K,2). 5. In one example, just compare the newly added motion candidate with the first N candidates in the merge candidate list, for example N=3, 4 or 5. N may be signaled from the encoder to the decoder. 6. In one example, the new motion candidate being checked is only compared to the last N candidates in the merge candidate list, for example N=3, 4 or 5. N may be signaled from the encoder to the decoder. 7. In one example, the way in which candidates previously added to the list are selected from the table to compare with new motion candidates may depend on where the previously added candidates were derived from. In one example, motion candidates in a lookup table may be compared to candidates derived from given temporal and / or spatial neighboring blocks. b. In one example, different entries of motion candidates in the lookup table may be compared to different candidates that were previously added (i.e., derived from different positions). . e. Checking of motion candidates in a lookup table may be enabled before checking other merge (or affine merge or other inter-coding method) candidates, such as those derived from adjacent / non-adjacent spatial or temporal blocks. f. If there is at least one motion candidate in the lookup table, checking of motion candidates in the lookup table may be enabled.
[0192] Example C3: The motion candidates included in the lookup table may be used as predictors for encoding the motion information of the block. a. They may be used for AMVP mode encoding, i.e., motion candidates may be checked in the AMVP candidate list derivation process. b. They may be used for Symmetric Motion Vector Difference (SMVD) coding, which codes only a part of the MVD (eg, only the MVD signaled for one reference picture list and derived from another reference picture list). c. They may be used for Symmetric Motion Vector (SMV) coding, which codes only a portion of the MVs (eg, only those signaled for one reference picture list and derived from another reference picture list). d. Checking of motion candidates in the lookup table may be enabled if: i. After checking or inserting a TMVP candidate, the AMVP candidate list is not full. ii. The AMVP candidate list is not full after selecting from spatial neighbors and pruning, and immediately prior to inserting a TMVP candidate. iii. If no AMVP candidates from the neighboring blocks above are present without scaling, and / or if no AMVP candidates from the neighboring blocks to the left are present without scaling. iv. The AMVP candidate list is not full after inserting a particular AMVP candidate. v. Before adding motion candidates to the AMVP candidate list, pruning may be applied. vi. Rules similar to those described in vi.3 and 4 of embodiment C2 may be applied to the AMVP mode. e. Checking of motion candidates may be enabled before checking other AMVP (or SMVD / SMV / Affine Inter or other Inter coding methods) candidates, such as those derived from adjacent / non-adjacent spatial or temporal blocks. f. If there is at least one motion candidate in the lookup table, motion candidate checking may be enabled. g. Check for motion candidates that have the same reference picture as the current reference picture (i.e., have the same Picture-Order-Count (POC)). That is, if a motion candidate contains the same reference picture as the current reference picture, the corresponding motion vector may be considered for the AMVP candidate list construction process. i. Alternatively, also check (in the scaled MV) for motion candidates that have a different reference picture than the current reference picture, i.e., if a motion candidate has a different reference picture than the current reference picture, the corresponding motion vector may be taken into account in the AMVP candidate list building process. ii. Alternatively, first check all motion candidates that have the same reference picture as the current reference picture, and then check motion candidates that have a different reference picture from the current reference picture, i.e., assign a higher priority to motion candidates that have the same reference picture. iii. Alternatively, motion candidates are checked in the merge as well. iv. If one motion candidate is a bidirectional prediction candidate, first check the reference picture in reference picture list X (e.g., the reference picture index or picture order counter of the reference picture), and then, if the current reference target picture list is X, check the reference picture in reference picture list Y (Y!=X, e.g., Y=1-X). v. Alternatively, if one motion candidate is a bidirectional prediction candidate, first check the reference pictures (e.g., the reference picture index or picture order counter of the reference picture) in reference picture list Y (Y!=X, e.g., Y=1-X), and then check the reference pictures in reference picture list X if the current reference target picture list is X. vi. Alternatively, before a reference picture in the reference picture list is Y (Y!=X, for example, Y=1-X) associated with all the motion candidates being checked, it may be checked whether the reference picture in the reference picture list is X associated with all the motion candidates being checked.
[0193] 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. b. The first K%L candidates, where L is the size of the lookup table for K≧L. If cK≧L, then all candidates in the lookup table (L candidates). d. Alternatively, it may also be based on descending order of motion candidate index. e. Alternatively, it may also be based on ascending order of motion candidate index. f. Alternatively, select the K motion candidates based on candidate information such as the distance between the position associated with the motion candidate and the current block. i. In one example, select the K closest motion candidates. ii. In one example, the candidate information may further take into account the shape of the block when calculating the distance. g. In one example, the checking order of K motion candidates from a table containing L candidates may be defined as follows: a0, a0+T0, a0+T0+T1, a0+T0+T1+T2, ... a0+T0+T1+T2+...+T K-1 Select candidates with indexes a0 and T i (i is 0...K-1) is an integer value. i. In one example, a0 is set to 0 (i.e., the first entry of the motion candidate in the table). Alternatively, a0 is set to (KL / K). The operation " / " is defined as integer division that truncates the result to zero. Alternatively, a0 is set to any integer between 0 and L / K. 1. Alternatively, the value of a0 may depend on the coding information of the current block and neighboring blocks. ii. In one example, for every interval T i (i from 0...K-1) is the same, e.g. L / K. The operation " / " is defined as integer division with the result truncated towards zero. iii. In one example, (K, L, a0, T i ) is set to (4,16,0,4), or (4,12,0,3), or (4,8,0,1), or (4,16,3,4), or (4,12,2,3), or (4,8,1,2). iis the same for all i. iv. Such methods may only be applied if K is smaller than L. v. Alternatively, if K is greater than or equal to a threshold, part c of Example C4 may be applied. The threshold may be defined as L, or may depend on K, or may be adaptively changed for each block. In one example, the threshold may depend on the number of available motion candidates in the list before adding new motion candidates from the lookup table. h. In one example, the checking order of K motion candidates from a table containing L candidates may be defined as follows: a0, a0-T0, a0-T0-T1, a0-T0-T1-T2, ... a0-T0-T1-T2-...-T K-1 Select candidates with indexes a0 and T i (i is 0...K-1) is an integer value. In one example, a0 is set to L-1 (i.e., the last entry of the motion candidates in the table). Alternatively, a0 is set to any integer between L-1-L / K and L-1. ii. In one example, for every interval T i (i is 0...K-1) is the same, e.g., L / K. iii. In one example, (K, L, a0, T i ) is set to (4,16,L-1,4), or (4,12,L-1,3), or (4,8,L-1,1), or (4,16,L-4,4), or (4,12,L-3,3), or (4,8,L-2,2). i is the same for all i. iv. Such methods may only be applied if K is smaller than L. v. Alternatively, part c of Example C4 may also be applied if K is greater than or equal to a threshold. The threshold may be defined as L, or may depend on K, or may be adaptively changed for each block. In one example, the threshold may depend on the number of available motion candidates in the list before adding new motion candidates from the lookup table. i. The number and / or manner of selecting motion candidates from the look-table may depend on the coding information, eg, block size / block shape. i. In one example, for smaller block sizes, instead of selecting the last K motion candidates, one may select the other K motion candidates (not starting from the end). ii. In one example, the encoding information may be in AMVP mode or in merge mode. iii. In one example, the coding information may be in affine mode or non-affine AMVP mode or non-affine merge mode. iv. In one example, the coding information may be in affine AMVP (inter) mode, or affine merge mode, or non-affine AMVP mode, or non-affine merge mode. v. In one example, the coding information may or may not be in Current Picture Reference (CPR) mode. vi. Alternatively, the method of selecting a motion candidate from the lookup table may further depend on the number of motion candidates in the lookup table and / or the number of available motion candidates in the list before adding a new motion candidate from the lookup table. j. In one example, the maximum number of available motion candidates in the lookup table to be checked (i.e., may be added to the merge / AMVP candidate list) is the number of available motion candidates in the lookup table (N avaiMCinLUT Indicated by and / or the maximum number of allowable motion candidates (NUM maxMC ), and / or the number of available motion candidates in the candidate list before checking candidates from the lookup table (N avaiC (denoted by i. In one example, the maximum number of motion candidates in the lookup table to be checked is (N avaiMCinLUT ,NUMmaxMC ,N avaiC ) is set to the minimum can be. ii. Alternatively, the maximum number of motion candidates in the lookup table to be checked is (N avaiMCinLUT ,NUM maxMC -N avaiC ) is set to the minimum of do. iii. In one example, N avaiC denotes the number of insertion candidates derived from spatially or temporally (adjacent and / or non-adjacent) neighboring blocks. Alternatively, the number of sub-block candidates (AMTVP, STMVP, etc.) is N avaiC is not counted. iv.NUM maxMC may depend on the coding mode, e.g., in merge mode and AMVP mode, NUM maxMC may be set to different values. In one example, in merge mode, NUM maxMC may be set to 4, 6, 8, 10, etc. In AMVP mode, NUM maxMC may be set to 1, 2, 4, etc. v. Alternatively, NUM maxMC may depend on other coding information such as block size, block shape, slice type, etc. k. The order in which the different lookup tables are checked is specified in the next subsection, Lookup Table Usage. l. Once the merge / AMVP candidate list reaches the maximum number of allowed candidates, this checking process ends. m. Once the merge / AMVP candidate list reaches the maximum allowed number of candidates minus a threshold (Th), the checking process ends. In one example, Th may be predefined as a positive integer value, e.g., 1, 2, or 3. Alternatively, Th may be adaptively changed per block. Alternatively, Th may be signaled in the SPS / PPS / slice header, etc. Alternatively, Th may further depend on the block shape / block size / coding mode, etc. Alternatively, Th may depend on the number of available candidates before adding the motion candidates from the LUT. Alternatively, it terminates when the number of added motion candidates reaches the maximum allowed number of motion candidates. The maximum allowed number of motion candidates may be signaled or predefined. Alternatively, the maximum allowed number of motion candidates may further depend on block shape / block size / coding mode, etc. o. One syntax element indicating the table size as well as the number of motion candidates that can be checked (ie, K=L) may be signaled in the SPS, PPS, slice header, tile header.
[0194] In some implementations, the motion candidates in the lookup table may be used to derive other candidates, and the derived candidates may be used to code the block.
[0195] In some implementations, the enable / disable of the use of a lookup table for motion information encoding of a block may be signaled in the SPS, PPS, slice header, tile header, CTU, CTB, CU, or PU, an area covering multiple CTU / CTB / CU / PU.
[0196] In some implementations, whether to apply a prediction from the lookup table may further depend on the coding 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.
[0197] In some implementations, motion candidates in a look-up table in a previously coded frame / slice / tile may be used to predict motion information of a block in a different frame / slice / tile. In one example, only the look-up table associated with the reference picture of the current block may be utilized to code the current block. b. In one example, only lookup tables associated with pictures having the same slice type and / or the same quantization parameter of the current block may be utilized to code the current block.
[0198] Update the lookup table
[0199] After coding a block with motion information (ie, IntraBC mode, inter coding mode), one or more look-up tables may be updated.
[0200] In all of the above examples and implementations, the lookup table indicates coded information, or information derived from coded information from previously coded blocks, in decoding order. a. The lookup table may include translational motion information, or affine motion information, or affine model parameters, or intra-mode information, or lighting compensation information, or the like. b. Alternatively, the lookup table may include at least two types of information, such as translational motion information, or affine motion information, or affine model parameters, or intra-mode information, or lighting compensation information, and so on.
[0201] Additional Exemplary Embodiments
[0202] A History-based MVP (HMVP) method is proposed, which defines HMVP candidates as the motion information of previously coded blocks. During the coding / 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 30.
[0203] In one example, the table size is set to L (eg, L=16 or 6 or 44), indicating that up to L HMVP candidates can be added to the table.
[0204] In one embodiment (corresponding to Example 11.gi), if there are more than L HMVP candidates from previously coded blocks, a First-In-First-Out (FIFO) rule is applied so that the table always contains the most recent L previously coded motion candidates. Figure 31 shows an example of applying the FIFO rule to remove HMVP candidates and add new ones to the table used in the proposed method.
[0205] In another embodiment (corresponding to invention 11.g.iii), whenever a new motion candidate is added (e.g. the current block is inter-coded and in non-affine mode), we first apply a redundancy check process to identify whether there is a same or similar motion candidate in the LUT.
[0206] Some examples are given below:
[0207] FIG. 32A shows an example where the LUT was full before adding new motion candidates.
[0208] FIG. 32B shows an example where the LUT was not full before adding the new motion candidates.
[0209] FIG. 32A and FIG. 32B together show an example of a LUT update method based on redundancy elimination (eliminating one redundant motion candidate).
[0210] 33A and 33B show two example implementations of the redundancy elimination based LUT update method (removing multiple redundant motion candidates, two candidates are shown in the figure).
[0211] FIG. 33A shows an example where the LUT was full before adding new motion candidates.
[0212] FIG. 33B shows an example where the LUT was not full before adding the new motion candidates.
[0213] 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.
[0214] 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.
[0215] 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.
[0216] 29 is a flowchart of an example video decoding method 2900. The method 2900 includes maintaining (2902) tables, each table including a set of motion candidates, each motion candidate associated with corresponding motion information. The method 2900 further includes converting (2904) between the first video block and a bitstream representation of the video including the first video block, the converting including processing the motion information of the first video block using at least a portion of the set of motion candidates as predictors.
[0217] For method 2900, in some embodiments, the motion information includes at least one of a prediction direction, a reference picture index, a motion vector value, an intensity compensation flag, an affine flag, a motion vector difference precision, or a motion vector difference value. Additionally, the motion information may further include block location information to indicate where the motion information comes from. In some embodiments, the video block is a CU or a PU, and the portion of the video may correspond to one or more video slices or one or more video pictures.
[0218] In some embodiments, each LUT includes an associated counter, which 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 one image 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 one image slice. Further details of method 2900 are described in the examples provided in Chapter 4 and in the examples listed below.
[0219] Features and embodiments of the above mentioned methods / techniques are described below.
[0220] 1. A video processing method comprising: maintaining tables, each table including a set of motion candidates, each motion candidate being associated with corresponding motion information; and converting between a first video block and a bitstream representation of a video including the first video block, the converting including processing the motion information of the first video block using at least a portion of the set of motion candidates as predictors.
[0221] 2. The method of claim 1, wherein the table includes motion candidates derived from previously decoded video blocks that were decoded before the first video block.
[0222] 3. The method of claim 1, wherein performing the conversion includes performing an Advanced Motion Vector Prediction (AMVP) candidate list derivation process using at least a portion of the set of motion candidates.
[0223] 4. The method of claim 3, wherein the AMVP candidate list derivation process includes checking motion candidates from one or more tables.
[0224] 5. A method according to any one of claims 1 to 4, wherein performing the transformation includes checking motion candidates, and a motion vector associated with the checked motion candidate is used as a motion vector predictor for encoding the motion vector of the first video block.
[0225] 6. The method of claim 4, wherein motion vectors associated with the checked motion candidates are added to the AMVP motion candidate list.
[0226] 7. The method of claim 1, wherein performing the transformation includes checking at least a portion of the motion candidates based on rules.
[0227] 8. The method of claim 7, wherein the rule enables the check if the AMVP candidate list is not full after checking Temporal Motion Vector Prediction (TMVP) candidates.
[0228] 9. The method of claim 7, wherein the rule enables the check if the AMVP candidate list is not full after selecting and pruning from spatial neighborhoods and before inserting a TMVP candidate.
[0229] 10. The method of claim 7, wherein the rule enables the check if i) no AMVP candidates from the upper neighboring block exist without scaling, or ii) no AMVP candidates from the left neighboring block exist without scaling.
[0230] 11. The method of claim 7, wherein the rule enables said check if pruning is applied before adding a motion candidate to the AMVP candidate list.
[0231] 12. The method of claim 1, checking motion candidates that have the same reference picture as the current reference picture.
[0232] 13. The method of claim 12, further checking motion candidates that have a different reference picture than the current reference picture.
[0233] 14. The method of claim 13, wherein checking motion candidates with the same reference picture is performed prior to checking motion candidates with different reference pictures.
[0234] 15. The method of claim 1, further comprising an AMVP candidate list construction process including a pruning step prior to adding motion vectors from the motion candidates to the table.
[0235] 16. The method of claim 15, wherein the pruning step includes comparing the motion candidates to at least a portion of the available motion candidates in an AMVP candidate list.
[0236] 17. The method of claim 15, wherein the pruning step includes multiple steps, the number of which is a function of the number of spatial or temporal AMVP candidates.
[0237] 18. The method of claim 17, wherein the multiple steps are such that if M candidates are available in the AMVP candidate list, the pruning is applied to only K AMVP candidates, where K≦M and K and M are integers.
[0238] 19. The method according to claim 1, wherein performing the conversion includes performing a Symmetric Motion Vector Difference (SMVD) process using differences between several motion vectors.
[0239] 20. The method according to claim 1, wherein performing the conversion includes performing Symmetric Motion Vector (SMV) processing using several motion vectors.
[0240] 21. The method of claim 7, wherein the rule enables the check if, after inserting an AMVP candidate, the AMVP candidate list is not full.
[0241] 22. The method of claim 1, further comprising enabling checking of motion candidates in the table, the checking being enabled before checking other candidates derived from spatial or temporal blocks, the other candidates including AMVP candidates, SMVD candidates, SMV candidates, or affine inter candidates.
[0242] 23. The method of claim 1, further comprising enabling a check of motion candidates in a table, said check being enabled if there is at least one motion candidate in the table.
[0243] 24. The method of claim 1, wherein for a motion candidate that is a bidirectional prediction candidate, a reference picture in a first reference picture list is checked before a reference picture in a second reference picture list is checked, and the first reference picture list is a current reference target picture list.
[0244] 25. The method of claim 1 or 2, wherein for a motion candidate that is a bidirectional prediction candidate, a reference picture in a first reference picture list is checked before a reference picture in a second reference picture list is checked, the second reference picture list being the current reference target picture list.
[0245] 26. The method of claim 1, wherein a reference picture of a first reference picture list is checked before a reference picture of a second reference picture list.
[0246] 27. The method of claim 1, wherein performing the conversion includes generating the bitstream representation from the first video block.
[0247] 28. The method of claim 1, wherein performing the conversion includes generating the first video block from a bitstream representation.
[0248] 29. A method according to any one of clauses 1 to 28, 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.
[0249] 30. The method of any one of clauses 1 to 29, wherein one motion candidate is associated with an intra prediction mode used for an intra-coded block.
[0250] 31. A method according to any one of clauses 1 to 29, wherein one motion candidate is associated with multiple IC (Illumination Compensation) parameters used for IC-coded blocks.
[0251] 32. A method according to any one of claims 1 to 29, wherein one motion candidate is associated with a filter parameter used in the filtering process.
[0252] 33. The method of any one of clauses 1 to 29, further comprising updating one or more tables based on the transformation.
[0253] 34. The method of claim 33, wherein updating one or more tables includes updating one or more tables based on motion information of the first video block after performing the transformation.
[0254] 35. The method of claim 34, further comprising converting between subsequent video blocks of the video and a bitstream representation of the video based on the updated table.
[0255] 36. 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 35.
[0256] 37. A computer program product stored on a non-transitory computer readable medium comprising program code for carrying out the method according to any one of clauses 1 to 35.
[0257] 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.
[0258] 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.
[0259] 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 the program, or may be stored in multiple coordinating files (e.g., a file that stores one or more modules, subprograms, or code portions). A computer program can be deployed to run on one computer located at one site, or on multiple computers distributed across multiple sites and interconnected by a communication network.
[0260] 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).
[0261] 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.
[0262] Although this patent specification contains many details, these should not be construed as limiting the scope of any invention or the scope of the claims, but rather as descriptions of features that may be specific to particular embodiments of a particular invention. Certain features described in this patent specification in the context of 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.
[0263] 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 specification be understood as requiring such separation in all embodiments.
[0264] Only some implementations and examples have been described; other embodiments, extensions and variations are possible based on what is described and illustrated in this patent specification.
Claims
1. constructing a motion candidate list for a current video block, during said constructing, at least one motion candidate in a table is selectively checked in order after checking at least one block each having a predefined relative position with respect to the current video block; determining motion information for the current video block using the motion candidate list; coding the current video block based on the determined motion information; and having the table includes one or more motion candidates derived from one or more previously coded video blocks that were coded before the current video block; A method of video processing, wherein an arrangement of the motion candidates in the table is based on an order of addition of the motion candidates to the table.
2. The method of claim 1 , wherein the at least one block comprises a temporal block in a different picture than a picture containing the current video block.
3. The method of claim 1 or 2, wherein the at least one block comprises a given spatial block located in the same picture as a picture containing the current video block.
4. the at least one block includes a last spatial block of the plurality of spatial blocks checked in sequence; The method of claim 1 , wherein the spatial blocks are located in the same picture as a picture containing the current video block.
5. The method of claim 1 , wherein the motion candidate list is a motion vector prediction list.
6. The method of claim 5 , further comprising adding a motion vector of the at least one motion candidate of the table to the motion vector prediction list.
7. The method of claim 5 or 6, wherein checking the at least one motion candidate in the table comprises checking reference picture information of the motion candidate.
8. The method of claim 1 , wherein the motion candidate list is a merge candidate list.
9. The method of claim 8 , further comprising adding the at least one motion candidate of the table to the merge candidate list.
10. The method of claim 9 , wherein the at least one motion candidate in the table is checked before checking other merging candidates associated with a spatial or temporal block.
11. A method according to any one of claims 1 to 10, wherein a motion vector of the at least one motion candidate of the table or the at least one motion candidate is added to the motion candidate list after all of the at least one motion candidate derived from the at least one block.
12. The method according to claim 1 , wherein the predefined relative position of the at least one block is different for different objects to be coded.
13. If at least one condition is met, at least one motion candidate in the table is checked; 13. The method of claim 1, wherein the at least one condition is based on a current number of motion candidates in the motion candidates table after checking the at least one block or a current number of motion candidates in the table.
14. The method of claim 13 , wherein the at least one condition further comprises the current number of motion candidates in the motion candidate list not reaching a particular value.
15. The method of claim 14 , wherein the particular value is associated with a maximum allowed number of motion candidates in the motion candidate list.
16. The method of claim 13 , wherein the at least one condition includes the current number of motion candidates in the table being greater than zero.
17. 17. The method of claim 1, wherein the motion candidates of the table are 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 differential precision, a motion vector differential value, or a filtering parameter.
18. The method of claim 1 , further comprising updating the table based on the motion information of the current block.
19. 19. The method of claim 1, wherein one or more motion candidates in the table are deleted due to adding a new motion candidate to the table if the table is full before the new motion candidate is added to the table.
20. The method of claim 1 , wherein the current block is coded in a non-affine inter mode or an affine inter mode.
21. The method according to claim 1 , further comprising adding a motion vector of the at least one motion candidate of the table to the motion candidate list based on a result of the checking.
22. The method of claim 1 , wherein the coding comprises decoding the current video block from the video block.
23. 22. The method of claim 1, wherein the coding comprises encoding the current video block into a bitstream representation.
24. 1. An apparatus for coding video data, comprising a processor and a non-transitory memory having instructions, comprising: The instructions, when executed by the processor, cause the processor to: constructing a motion candidate list for a current video block of a video, during said constructing, at least one motion candidate in a table is selectively checked in order after checking at least one block each having a predefined relative position with respect to the current video block; determining motion information for the current video block using the motion candidate list; coding the current video block based on the determined motion information; and Run the command, the table includes one or more motion candidates derived from one or more previously coded video blocks that were coded before the current video block; An apparatus, wherein an ordering of the motion candidates in the table is based on an order of addition of the motion candidates to the table.
25. The processor: constructing a motion candidate list for a current video block of a video, during said constructing, at least one motion candidate in a table is selectively checked in order after checking at least one block each having a predefined relative position with respect to the current video block; determining motion information for the current video block using the motion candidate list; coding the current video block based on the determined motion information; and Run the command, the table includes one or more motion candidates derived from one or more previously coded video blocks that were coded before the current video block; A non-transitory computer-readable storage medium having stored thereon instructions, wherein an ordering of the motion candidates in the table is based on an order of addition of the motion candidates to the table.
26. 1. A method for storing a video bitstream, comprising: constructing a motion candidate list for a current video block of the image, during said construction at least one motion candidate in a table being checked selectively in sequence after checking at least one block each having a predefined relative position with respect to the current video block; determining motion information for the current video block using the motion candidate list; encoding the current video block into the bitstream based on the determined motion information; and storing the bitstream on a non-transitory computer-readable recording medium; the table includes one or more motion candidates derived from one or more previously coded video blocks that were coded before the current video block; A method according to claim 1, wherein an ordering of the motion candidates in the table is based on an order of addition of the motion candidates to the table.
Citation Information
Patent Citations
Motion vector prediction
WO2018231700A1
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
