Selection of coded motion information for lookup table update

By using a lookup table (LUT) to store and update motion candidates in video encoding, the problem of low motion information encoding efficiency in the existing technology is solved, achieving higher encoding efficiency and simplification of hardware implementation.

CN114466197BActive Publication Date: 2024-10-22DOUYIN VISION CO LTD +1
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202210307588.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-06-29
Filing Date
2019-07-01
Publication Date
2024-10-22
Estimated Expiration
2039-07-01

AI Technical Summary

Technical Problem

Existing video coding technologies have challenges in improving compression ratios, especially when bandwidth requirements increase when processing large amounts of video data, and existing methods are not efficient in encoding motion information.

Method used

Motion vector prediction technology based on look-up table (LUT) is adopted to improve coding efficiency by maintaining a look-up table containing motion candidates and selecting motion information at typical positions to update the table during the video block encoding process.

Benefits of technology

The coding efficiency of video coding is improved, the hardware complexity and computing cost are reduced, and the coding efficiency of non-adjacent block motion information prediction is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114466197B_ABST
    Figure CN114466197B_ABST
Patent Text Reader

Abstract

A video processing method is used for selecting the motion information of the encoding updated by the lookup table, comprising: maintaining one or more tables, each table including motion candidates derived from one or more video blocks that have been encoded and decoded, and the motion candidates in each table are arranged based on the sequence of adding the motion candidates derived from the one or more video blocks to each table; constructing a motion candidate list for the current video block, whether to use one of the one or more tables to construct the motion candidate list is determined based on the encoding and decoding information of the current video block, the encoding and decoding information including the size of the current video block; using the motion candidate list to determine the motion information of the current video block; encoding and decoding the current video block based on the determined motion information.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of an invention patent application with an application date of July 1, 2019, an application number of 201910586813.6, and an invention name of “Selection of encoded motion information for lookup table update”. Technical Field

[0002] This application document relates to video encoding technology, equipment and systems. Background Art

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

[0004] This document discloses methods, systems and devices for encoding and decoding digital video using Merge lists of motion vectors.

[0005] In one example aspect, a video decoding method is disclosed. The method includes: maintaining a plurality of tables, wherein each table includes a set of motion candidates, wherein each motion candidate is associated with corresponding motion information previously derived from a video block; performing conversion between the video block and an encoded representation of the video block; and determining whether to update at least one table by adding motion information corresponding to the video block based on a conversion condition of the video block.

[0006] In another example aspect, another video decoding method is disclosed. The method includes: maintaining a plurality of tables, wherein each table includes a set of motion candidates, wherein each motion candidate is associated with corresponding motion information previously derived from a video block; performing conversion between the video block and an encoded representation of the video block; selecting M typical positions within the video block, wherein M is an integer, to load motion information associated with the M typical positions; and updating at least one table using the motion information associated with the M typical positions.

[0007] In yet another example aspect, a video encoding device implementing the video encoding method described herein is disclosed.

[0008] In yet another typical aspect, the various techniques described herein can be implemented as a computer program product stored on a non-transitory computer-readable medium. The computer program product includes a program code for executing the methods described herein.

[0009] In yet another typical aspect, a video decoding device implementing the video decoding method described herein is disclosed.

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

[0011] Figure 1 is a block diagram illustrating an example of a video encoder implementation.

[0012] Figure 2 The diagram illustrates macroblock partitioning in the H.264 video coding standard.

[0013] Figure 3 An example of dividing a coding block (CB) into prediction blocks (PB) is illustrated.

[0014] Figure 4 An example implementation of subdividing a coding tree block (CTB) into CBs and transform blocks (TBs) is illustrated. Solid lines represent CB boundaries and dashed lines represent TB boundaries, including an example CTB with partitioning and the corresponding quadtree.

[0015] Figure 5 An example of a quadtree binary tree (QTBT) structure for partitioning video data is shown.

[0016] Figure 6 An example of video block segmentation is shown.

[0017] Figure 7 An example of quadtree partitioning is shown.

[0018] Figure 8 An example of tree signaling is shown.

[0019] Fig. 9 An example of the derivation process of Merge candidate list construction is shown.

[0020] Fig.10 Example locations of spatial merge candidates are shown.

[0021] Fig.11 An example of candidate pairs considering redundancy checking of spatial Merge candidates is shown.

[0022] Fig.12 Examples of the location of the second PU for Nx2N and 2NxN partitions are shown.

[0023] Fig.13 Illustrated is an example motion vector scaling of a temporal merge candidate.

[0024] Fig.14 The candidate positions of the time-domain Merge candidates and their collocated pictures are shown.

[0025] Fig.15An example of combining bi-predictive Merge candidates is shown.

[0026] Fig.16 An example of a derivation process of motion vector prediction candidates is shown.

[0027] Fig.17 An example of motion vector scaling of spatial motion vector candidates is shown.

[0028] Fig.18 An example alternative temporal motion vector prediction (ATMVP) for motion prediction of a coding unit (CU) is shown.

[0029] Fig.19 An example of identification of source blocks and source pictures is schematically depicted.

[0030] Fig. 20 An example of one CU having four sub-blocks and neighboring blocks is shown.

[0031] Fig.21 An example of bilateral matching is illustrated.

[0032] Fig. 22 An example of template matching is illustrated.

[0033] Fig.23 An example of unilateral motion estimation (ME) in frame rate up-conversion (FRUC) is depicted.

[0034] Fig.24 An example of decoder-side motion vector refinement (DMVR) based on bilateral template matching is shown.

[0035] Fig.25 An example of spatial neighboring blocks used to derive spatial Merge candidates is shown.

[0036] Fig.26 Depicted is an example of how a selection of typical locations of a lookup table is updated.

[0037] Fig. 27 An example of updating a lookup table with a new set of motion information is illustrated.

[0038] Fig.28 is a block diagram of an example of a hardware platform for implementing the visual media decoding or visual media encoding techniques described herein.

[0039] Fig.29 is a flow chart of another example method of video bitstream processing.

[0040] Fig.30 is a flow chart of another example method of video bitstream processing. DETAILED DESCRIPTION

[0041] In order to improve the compression ratio of video, researchers are constantly looking for new technologies to encode video.

[0042] 1. Introduction

[0043] This document relates to video coding techniques. Specifically, it relates to motion information coding in video coding (such as Merge mode, AMVP mode). It can be applied to existing video coding standards, or standard multifunctional video coding to be finalized. It may also be applicable to future video coding standards or video codecs.

[0044] Brief Discussion

[0045] Video coding standards have evolved primarily through the development of the well-known ITU-T and ISO / IEC standards. ITU-T developed H.261 and H.263, ISO / IEC developed MPEG-1 and MPEG-4 Vision, and the two organizations jointly developed the H.262 / MPEG-2 Video, H.264 / MPEG-4 Advanced Video Coding (AVC), and H.265 / HEVC standards. Since H.262, video coding standards are based on a hybrid video coding structure that employs temporal prediction plus transform coding. An example of a typical HEVC encoder framework is shown in Figure 1. Figure 1 shown.

[0046] 2.1 Segmentation Structure

[0047] 2.1.1 Segmentation Tree Structure in H.264 / AVC

[0048] The core of the coding layer in previous standards is the macroblock, which contains a 16×16 block of luminance samples and, in the case of conventional 4:2:0 color sampling, two corresponding 8×8 blocks of chrominance samples.

[0049] Intra-coded blocks use spatial prediction to explore the spatial correlation between pixels. Two splits are defined: 16x16 and 4x4.

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

[0051] 2.1.2 Segmentation Tree Structure in HEVC

[0052] In HEVC, various local characteristics are adapted by dividing CTU into CUs using a quadtree structure (expressed as coding tree). It is decided at the CU level whether to use inter-frame (temporal) prediction or intra-frame (spatial) prediction to encode the picture area. Depending on the partition type of the PU, each CU can be further divided into one, two or four PUs. In one PU, the same prediction process is applied, and the relevant information is transmitted to the decoder on a PU basis. After obtaining the residual block by applying the prediction process based on the PU partition type, the CU can be partitioned into transform units (TUs) according to another quadtree structure similar to the coding tree of the CU. An important feature of the HEVC structure is that it has multiple partition concepts, including CU, PU, ​​and TU.

[0053] Below, various features involved in hybrid video coding using HEVC are highlighted as follows.

[0054] 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 can be larger than a traditional macroblock. A CTU consists of a luma CTB and a corresponding chroma CTB, as well as syntax elements. The size L×L of the luma CTB can be selected to be 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 signaling.

[0055] 2) Coding Unit (CU) and Coding Block (CB): The quadtree syntax of a CTU specifies the size and position of its luma and chroma CBs. The root of the quadtree is associated with the CTU. Therefore, the size of the luma CTB is the maximum size supported by the luma CB. The partitioning of the luma and chroma CBs of a CTU is jointly signaled. One luma CB and usually two chroma CBs together with the associated syntax form a coding unit (CU). A CTB can contain only one CU or be partitioned to form multiple CUs, and each CU has an associated partitioning, which is divided into a prediction unit (PU) and a transform unit tree (TU).

[0056] 3) Prediction Unit and Prediction Block (PB): At the CU level, it is decided whether to use inter-frame prediction or intra-frame prediction to encode the picture area. The root of the PU partition structure is at the CU level. Depending on the basic prediction type decision, the luma and chroma CBs can be further divided in size and predicted from the luma and chroma prediction blocks (PBs). HEVC supports variable PB sizes from 64×64 to 4×4 samples. Figure 3 An example of allowed PBs for an MxM CU is shown.

[0057] 4) TU and transform blocks: The prediction residuals are encoded using block transforms. The root of the TU tree structure is at the CU level. The luma CB residual may be the same as the luma transform block (TB), or it may be further divided into smaller luma TBs. The same applies to chroma TBs. Integer basis functions similar to discrete cosine transform (DCT) are defined for square TBs of 4×4, 8×8, 16×16, and 32×32. For the 4×4 transform of the luma intra prediction residual, an integer transform derived from the discrete sine transform (DST) form can also be specified.

[0058] Figure 4 An example of subdividing a CTB into CBs (and transform blocks (TBs)) is shown. Solid lines indicate CB boundaries, and dashed lines indicate TB boundaries. (a) CTB with partitioning. (b) Corresponding quadtree.

[0059] 2.1.2.1 Tree structure division into transform blocks and units

[0060] For residual coding, CBs can be recursively partitioned into transform blocks (TBs). The partitioning is signaled by the residual quadtree. Only square CB and TB partitioning is specified, where blocks can be recursively partitioned into four quadrants, such as Figure 4 As shown. For a given luma CB of size M×M, the flag indicates whether it is divided into four blocks of size M / 2×M / 2. If further division is possible, as indicated by the maximum depth of the residual quadtree indicated in the SPS, each quadrant is assigned a flag indicating whether it is divided into four quadrants. The leaf node blocks generated by the residual quadtree are transform blocks that are further processed by transform coding. The encoder indicates the maximum and minimum luma TB sizes it will use. When the CB size is larger than the maximum TB size, the division is implied. When the division will result in a smaller luma TB size than the indicated minimum, no division is implied. The chroma TB size is half the luma TB size in each dimension, except when the luma TB size is 4×4, in which case the area covered by four 4×4 luma TBs uses a single 4×4 chroma TB. In the case of an intra-predicted CU, the decoded samples of the nearest neighboring TB (inside or outside the CB) are used as reference data for intra prediction.

[0061] Different from previous standards, for inter-predicted CUs, the HEVC design allows a TB to span multiple PBs to maximize the potential coding efficiency benefiting from the TB partitioning of the quadtree structure.

[0062] 2.1.2.2 Parent Node and Child Node

[0063] CTB is divided according to a quadtree structure, and its nodes are coding units. A plurality of nodes in the quadtree structure include leaf nodes and non-leaf nodes. A leaf node has no child nodes in the tree structure (e.g., a leaf node will not be further divided). Non-leaf nodes include the root node of the tree structure. The root node corresponds to an initial video block (e.g., CTB) of video data. For each respective non-root node of a plurality of nodes, the respective non-root node corresponds to a video block, which is a sub-block of a video block of a parent node in the tree structure corresponding to the respective non-root node. Each respective non-leaf node of a plurality of non-leaf nodes has one or more child nodes in the tree structure.

[0064] 2.1.3 Quadtree plus Binarytree Block Structure with Large CTU in JEM

[0065] To explore future video coding technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, JVET has adopted many new methods and applied them to the reference software called Joint Exploration Model (JEM).

[0066] 2.1.3.1 QTBT block segmentation structure

[0067] Unlike HEVC, the QTBT structure eliminates the concept of multiple partition types, that is, the QTBT structure eliminates the separation of the concepts of CU, PU, ​​and TU, and supports more flexibility in the CU partition shape. In the QTBT block structure, the CU can be square or rectangular. Figure 5 As shown, the coding tree unit (CTU) is first partitioned using a quadtree structure. The quadtree leaf nodes are further partitioned by a binary tree structure. There are two types of partitioning in the binary tree partitioning: symmetrical horizontal partitioning and symmetrical vertical partitioning. The binary tree leaf nodes are called coding units (CUs), which are used for prediction and conversion processing without further partitioning. This means that in the QTBT coding block structure, CU, PU, ​​and TU have the same block size. In JEM, a CU sometimes consists of coding blocks (CBs) of different color components, for example, in P and B slices of a 4:2:0 chroma format, a CU contains one luminance CB and two chroma CBs, and a CU sometimes consists of CBs of a single component, for example, in the case of an I slice, a CU contains only one luminance CB or only two chroma CBs.

[0068] The following parameters are defined for the QTBT segmentation scheme.

[0069] –CTU size: The root node size of the quadtree, which is the same concept as in HEVC.

[0070] –MiNQTSize: Minimum allowed quadtree leaf node size

[0071] –MaxBTSize: Maximum allowed binary tree root node size

[0072] –MaxBTDePTh: Maximum allowed binary tree depth

[0073] –MiNBTSize: Minimum allowed binary tree leaf node size

[0074] In one example of a QTBT partitioning structure, the CTU size is set to 128×128 luma samples with two corresponding 64×64 chroma sample blocks, MiNQTSize is set to 16×16, MaxBTSize is set to 64×64, MiNBTSize (width and height) is set to 4×4, and MaxBTSize is set to 4. Quadtree partitioning is first applied to the CTU to generate quadtree leaf nodes. The size of the quadtree leaf node can have a size from 16×16 (i.e., MiNQTSize) to 128×128 (i.e., CTU size). If the leaf quadtree node is 128×128, it will not be further divided by the binary tree because its size exceeds MaxBTSize (e.g., 64×64). Otherwise, the leaf quadtree node can be further divided by the binary tree. Therefore, the quadtree leaf node is also the root node of the binary tree, and its binary tree depth is 0. When the binary tree depth reaches MaxBTDePTh (i.e., 4), no further division is considered. When the width of the binary tree node is equal to MiNBTSize (i.e., 4), no further horizontal splitting is considered. Similarly, when the height of the binary tree node is equal to MiNBTSize, no further vertical splitting is considered. The leaf nodes of the binary tree are further processed by prediction and transform processing without further splitting. In JEM, the maximum CTU size is 256×256 luma samples.

[0075] Figure 5 (Left) illustrates an example of block segmentation using QTBT, Figure 5 (Right) The corresponding tree representation is illustrated. Solid lines represent quadtree partitioning, and dashed lines represent binary tree partitioning. In each partitioned (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which partitioning type (i.e., horizontal or vertical) is used, where 0 indicates horizontal partitioning and 1 indicates vertical partitioning. For quadtree partitioning, there is no need to specify the partitioning type, because quadtree partitioning always partitions a block horizontally and vertically to generate 4 sub-blocks of the same size.

[0076] 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 split into CUs using a QTBT structure, and the chroma CTB is split into chroma CUs using another QTBT structure. This means that a CU in an I slice consists of coding blocks for the luma component or coding blocks for two chroma components, and a CU in a P slice or B slice consists of coding blocks for all three color components.

[0077] In HEVC, in order to reduce memory access for motion compensation, inter prediction of small blocks is restricted, so that 4×8 and 8×4 blocks do not support bidirectional prediction, and 4×4 blocks do not support inter prediction. In JEM's QTBT, these restrictions are removed.

[0078] 2.1.4 Versatile Video Coding (VVC) Ternary Tree

[0079] In some embodiments, tree types other than quadtree and binary tree are supported. In the implementation, two other ternary tree (TT) partitions are introduced, namely horizontal and vertical center-side ternary trees, such as Figure 6 (d) and Figure 6 (e) as shown.

[0080] Figure 6 Shown are: (a) quadtree partition (b) vertical binary tree partition (c) horizontal binary tree partition (d) vertical center-side ternary tree partition (e) horizontal center-side ternary tree partition.

[0081] In some implementations, there are two levels of trees: region tree (quadtree) and prediction tree (binary tree or ternary tree). The CTU is first divided using the region tree (RT). The RT leaves can be further divided using the prediction tree (PT). The PT leaves can also be further divided using the PT until the maximum PT depth is reached. The PT leaf is the basic coding unit. For convenience, it is still referred to as a CU. The CU cannot be further divided. Prediction and transformation are applied to the CU in the same way as JEM. The entire partitioning structure is called a "multi-type tree".

[0082] 2.1.5 Segmentation Structure

[0083] The tree structure used in this response, called multi-tree type (MTT), is a generalization of QTBT. In QTBT, if Figure 5 As shown, the coding tree unit (CTU) is first segmented using a quadtree structure, and then the quadtree leaf nodes are further segmented using a binary tree structure.

[0084] The basic structure of MTT consists of two types of tree nodes: regional tree (RT) and prediction tree (PT), supporting nine types of partitioning, such as Figure 7 shown.

[0085] Figure 7 The following examples are illustrated: (a) quadtree partition, (b) vertical binary tree partition, (c) horizontal binary tree partition, (d) vertical ternary tree partition, (e) horizontal ternary tree partition, (f) horizontal upward asymmetric binary tree partition, (g) horizontal downward asymmetric binary tree partition, (h) vertical left asymmetric binary tree partition, and (i) vertical right asymmetric binary tree partition.

[0086] The region tree can recursively divide the CTU into square blocks until the region tree leaf node of size 4x4. At each node of the region tree, a prediction tree can be formed from one of three tree types: binary tree (BT), ternary tree (TT) and / or asymmetric binary tree (ABT). In PT partitioning, quadtree partitioning in the branches of the prediction tree may be prohibited. As with JEM, the luma tree and chroma tree are separated in the I slice. The signaling method of RT and PT is as follows Figure 8 shown.

[0087] 2.2 Inter-frame prediction in HEVC / H.265

[0088] Each inter-predicted PU has motion parameters for one or two reference picture lists. Motion parameters include motion vectors and reference picture indices. The use of one of the two reference picture lists can also be signaled using inter_pred_idc. Motion vectors can be explicitly coded as deltas relative to the predicted value, a coding mode called Advanced Motion Vector Prediction (AMVP) mode.

[0089] When a CU is coded in skip mode, a PU is associated with the CU and has no significant residual coefficients, no coded motion vector increments or reference picture indices. A Merge mode is specified, by which the motion parameters of the current PU are obtained from neighboring PUs (including spatial and temporal candidates). Merge mode can be applied to any inter-predicted PU, not just skip mode. An alternative to Merge mode is explicit transmission of motion parameters, where the motion vectors, the reference picture indices corresponding to each reference picture list, and the use of reference picture lists are explicitly signaled in each PU.

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

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

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

[0093] 2.2.1 Merge mode

[0094] 2.2.1.1 Merge Mode Candidate Derivation

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

[0096] Step 1: Initial candidate derivation

[0097] Step 1.1: Spatial Candidate Derivation

[0098] Step 1.2: Redundancy check of spatial candidates

[0099] Step 1.3: Time Domain Candidate Derivation

[0100] Step 2: Additional candidate insertions

[0101] Step 2.1: Creation of Bidirectional Prediction Candidates

[0102] Step 2.2: Insertion of zero motion candidates

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

[0104] The operations related to the above steps are described in detail below.

[0105] 2.2.1.2 Spatial Candidate Derivation

[0106] In the derivation of spatial Merge candidates, Fig.10A maximum of four Merge candidates are selected from the candidates at the positions shown. The derivation order is A1, B1, B0, A0, and B2. Position B2 is considered only when any PU at position A1, B1, B0, A0 is unavailable (for example, because it belongs to another slice or piece) or is intra-coded. After adding the candidate at position A1, a redundancy check is performed on the remaining candidates, which ensures that candidates with the same motion information are excluded from the list, thereby improving coding efficiency. In order to reduce the complexity of the calculation, not all possible candidate pairs are considered in the mentioned redundancy check. Instead, only those with Fig.11 Only pairs linked by arrows in are considered, and candidates are added to the list only if the corresponding candidates for redundancy checking do not have the same motion information. Another source of duplicate motion information is the "second PU" associated with a different 2N×2N partition. For example, Fig.12 The second PU in the N×2N and 2N×N cases is described respectively. When the current PU is split into N×2N, the candidate at position A1 is not considered for list construction. In some embodiments, adding this candidate may result in two prediction units with the same motion information, which is redundant for having only one PU in the coding unit. Similarly, when the current PU is split into 2N×N, position B1 is not considered.

[0107] 2.2.1.3 Time Domain Candidate Derivation

[0108] In this step, only one candidate is added to the list. In particular, in the derivation of this temporal Merge candidate, the scaled motion vector is derived based on the collocated PU with the minimum picture order count (POC) difference with the current picture in the given reference picture list. The reference picture list used to derive the collocated PU is explicitly signaled in the slice header. Fig.13 The dotted line in shows the acquisition of the scaled motion vector of the temporal Merge candidate, which is scaled from the motion vector of the collocated PU using the POC distances tb and td, where 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 collocated picture and the collocated picture. The reference picture index of the temporal Merge candidate is set to zero. The actual implementation of the scaling process is described in the HEVC specification. For the B slice, two motion vectors are obtained (one for reference picture list 0 and the other for reference picture list 1) and combined to make it a bidirectional prediction Merge candidate. Illustration of the motion vector scaling of the temporal Merge candidate.

[0109] In the collocated PU(Y) belonging to the reference frame, in the candidate C 0 and C 1 Select the position of the time domain candidate between Fig.14 If position C 0If the PU at position C is not available, is internally coded, or is outside the current CTU, then position C is used. 1 Otherwise, position C 0 Used for the derivation of time domain Merge candidates.

[0110] 2.2.1.4 Additional candidate insertion

[0111] In addition to the space-time Merge candidates, there are two additional types of Merge candidates: combined bi-directional prediction Merge candidates and zero Merge candidates. Combined bi-directional prediction Merge candidates are generated using space-time Merge candidates. Combined bi-directional prediction Merge candidates are only used for B slices. A combined bi-directional prediction candidate is generated by combining the first reference picture list motion parameters of the initial candidate with the second reference picture list motion parameters of another candidate. If the two tuples provide different motion hypotheses, they will form a new bi-directional prediction candidate. Fig.15 It shows the case where two candidates in the original list (on the left) are used to create a combined bi-predictive Merge candidate that is added to the final list (on the right), which has two candidates of MvL0 and refIdxL0 or MvL1 and refIdxL1. There are many rules about combining that need to be considered to generate these additional Merge candidates.

[0112] Zero-motion candidates are inserted to fill the remaining entries in the Merge candidate list to the capacity of MaxNumMergeCand. These candidates have zero spatial displacement and a reference picture index that starts at zero and increases each time a new zero-motion candidate is added to the list. The number of reference frames used by these candidates is 1 frame and 2 frames for unidirectional prediction and bidirectional prediction, respectively. Finally, no redundancy check is performed on these candidates.

[0113] 2.2.1.5 Parallel Motion Estimation Regions

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

[0115] 7.3.2.3 Picture Parameter Set Raw Byte Sequence Payload (RBSP) Syntax

[0116] 7.3.2.3.1 Generic Picture Parameter Set RBSP Syntax

[0117]

[0118] log2_parallel_Merge_level_MiNus2 plus 2 specifies the value of the variable Log2ParMrgLevel, which is used in the derivation of the Merge mode luma motion vectors as specified in clause 8.5.3.2.2 and in the derivation of the spatial Merge candidates as specified in clause 8.5.3.2.3. The value of log2_parallel_Merge_level_MiNus2 shall be in the range of 0 to CtbLog2SizeY-2, inclusive.

[0119] The variable Log2ParMrgLevel is derived as follows:

[0120] Log2ParMrgLevel=log2_parallel_Merge_level_MiNus2+2

[0121] Note 3 – The value of Log2ParMrgLevel indicates the built-in function of parallel derivation of Merge candidate lists. For example, when Log2ParMrgLevel is equal to 6, the Merge candidate lists of all prediction units (PUs) and coding units (CUs) contained in a 64x64 block can be derived in parallel.

[0122] 2.2.2 Motion Vector Prediction in AMVP Mode

[0123] Motion vector prediction exploits the spatio-temporal correlation of motion vectors with neighboring PUs, which is used for explicit transmission of motion parameters. A motion vector candidate list is first constructed by checking the availability of the temporal neighboring PU positions to the upper left, removing redundant candidate positions, and adding zero vectors to make the candidate list length constant. The encoder can then select the best prediction value from the candidate list and send the corresponding index indicating the selected candidate. Similar to Merge index signaling, the index of the best motion vector candidate is encoded using truncated unary. The maximum value to be encoded in this case is 2 ( Figures 2 to 8 ). In the following sections, the derivation process of motion vector prediction candidates will be introduced in detail.

[0124] 2.2.2.1 Derivation of Motion Vector Prediction Candidates

[0125] Fig.16The derivation process of motion vector prediction candidates is summarized.

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

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

[0128] 2.2.2.2 Spatial Motion Vector Candidates

[0129] When deriving spatial motion vector candidates, at most two candidates are considered among five potential candidates, which come from Fig.11 The PUs at the depicted positions are the same as those of the motion merge. The derivation order to the left of the current PU is defined as A 0 , A 1 , and the scaled A 0 , scaled A 1 The derivation order on the current PU is defined as B 0 , B 1 ,B 2 , scaled B 0 , scaled B 1 , scaled B 2 Therefore, there are four cases on each side that can be used as motion vector candidates, two of which do not require the use of spatial scaling, and two of which use spatial scaling. The four different cases are summarized as follows:

[0130] --No space scaling

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

[0132] (2) Different reference picture lists, but same reference picture index (same POC)

[0133] --Space Scaling

[0134] (3) Same reference picture list, but different reference picture index (different POC)

[0135] (4) Different reference picture lists and different reference picture indexes (different POC)

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

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

[0138] 2.2.2.3 Temporal Motion Vector Candidates

[0139] Except for the derivation of the reference picture index, all derivation processes of the temporal Merge candidate are the same as those of the spatial motion vector candidate ( Figures 2 to 6 ). Signaling of reference picture index to the decoder.

[0140] 2.2.2.4 Signaling of AMVP Information

[0141] For the AMVP mode, four parts may be signaled in the bitstream, including prediction direction, reference index, MVD, and MV prediction candidate index.

[0142] Syntax table:

[0143]

[0144] 7.3.8.9 Motion Vector Difference Syntax

[0145]

[0146] 2.3 New inter-frame prediction method in the joint exploration model (JEM)

[0147] 2.3.1 Motion vector prediction based on sub-CU

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

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

[0150] 2.3.1.1 Optional temporal motion vector prediction

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

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

[0153] In the first step, the reference picture and the corresponding block are determined by the motion information of the spatial neighboring blocks of the current CU. In order to avoid repeated scanning processing of neighboring blocks, the first Merge candidate in the Merge candidate list of the current CU is used. The first available motion vector and its associated reference index are set to the temporal vector and the index of the motion source picture. In this way, in ATMVP, the corresponding block can be identified more accurately compared to TMVP, where the corresponding block (sometimes called the collocated block) is always located in the lower right corner or center position relative to the current CU. In an example, if the first Merge candidate comes from the left neighboring block (for example, Fig.19 A 1 ), the relevant MV and reference picture are used to identify the source block and source picture.

[0154] Fig.19 An example of identification of source blocks and source pictures is shown.

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

[0156] 2.3.1.2 Space-time motion vector prediction

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

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

[0159] Fig. 20 An example of one CU having four sub-blocks (AD) and a neighboring block (ad) is shown.

[0160] 2.3.1.3 Sub-CU motion prediction mode signaling notification

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

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

[0163] 2.3.2 Adaptive Motion Vector Difference Resolution

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

[0165] For CUs with at least one non-zero MVD component, the first flag will signal whether quarter luma sample MV precision is used in the CU. When the first flag (equal to 1) indicates that quarter luma sample MV precision is not used, another flag signals whether integer luma sample MV precision or quad luma sample MV precision is used.

[0166] When the first MVD resolution flag of a CU is zero or not encoded for the CU (meaning that all MVDs in the CU are zero), the CU uses a quarter luma sample MV resolution. When a CU uses integer luma sample MV precision or four luma sample MV precision, the MVP in the AMVP candidate list of the CU will be rounded to the corresponding precision.

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

[0168] During RD check for a CU with normal quarter luma sample MVD resolution, the motion information of the current CU (integer luma sample precision) is stored. When RD check is performed for 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-scale motion vector refinement, so that the time-consuming motion estimation process is not repeated three times.

[0169] Conditionally call RD check for CUs with 4 luma sample MVD resolution. For a CU, when the RD check cost for integer luma sample MVD resolution is much greater than the RD check cost for quarter luma sample MVD resolution, the RD check for CU's 4 luma sample MVD resolution will be skipped.

[0170] 2.3.3 Pattern Matching Motion Vector Derivation

[0171] The Pattern Matching Motion Vector Derivation (PMMVD) mode is a special Merge mode based on the Frame Rate Up Conversion (FRUC) technique. In this mode, the motion information of the block is not signaled but derived at the decoder side.

[0172] For a CU, when its Merge flag is true, the FRUC flag is signaled. When the FRUC flag is false, the Merge index is signaled and the normal Merge mode is used. When the FRUC flag is true, another FRUC mode flag is signaled to indicate which mode (bilateral matching or template matching) will be used to derive the motion information of the block.

[0173] On the encoder side, the decision on whether to use FRUCMerge mode for the CU is based on the RD cost selection made for the normal Merge candidate. That is, the two matching modes (bilateral matching and template matching) of the CU are checked by using the RD cost selection. The mode that results in the lowest cost is further compared with other CU modes. If the FRUC matching mode is the most effective mode, then for the CU, the FRUC flag is set to true and the relevant matching mode is used.

[0174] The motion derivation process in FRUC Merge mode has two steps: first, a CU-level motion search is performed, and then a sub-CU-level motion optimization is performed. At the CU level, the initial motion vector of the entire CU is derived based on bilateral matching or template matching. First, a list of MV candidates is generated, and the candidate that results in the lowest matching cost is selected as the starting point for further optimization of the CU level. Then a local search based on bilateral matching or template matching is performed near the starting point, and the MV result with the minimum matching cost is used as the MV value of the entire CU. Next, the motion information is further refined at the sub-CU level, starting from the derived CU motion vector.

[0175] For example, the following derivation process is performed for the W×H CU motion information derivation. In the first stage, the MV of 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 according to equation (1), and D is the pre-defined partition depth, which is set to 3 by default in JEM. Then the MV value of each sub-CU is derived.

[0176]

[0177] like Fig.21 As shown, bilateral matching is used to derive the motion information of the current CU by finding the closest match between two blocks in two different reference pictures along the motion trajectory of the current CU. Under the assumption of continuous motion trajectory, the motion vectors MV0 and MV1 pointing to the two reference blocks are proportional to the temporal distance (e.g., TD0 and TD1) between the current picture and the two reference pictures. As a special case, when the current picture is temporally located between the two reference pictures and the temporal distance from the current picture to the two reference pictures is the same, bilateral matching becomes a mirror-based bidirectional MV.

[0178] like Fig. 22 As shown, template matching is used to derive the motion information of the current CU by finding the closest match between the template in the current picture (the top and / or left neighboring blocks of the current CU) and the block in the reference picture (the same size as the template). In addition to the above-mentioned FRUC Merge mode, template matching is also applied to AMVP mode. In JEM, as in HEVC, AMVP has two candidates. Using the template matching method, a new candidate is derived. If the candidate newly derived 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 (ie, the second existing AMVP candidate is removed). When applied to AMVP mode, only CU level search is applied.

[0179] 2.3.3.1 CU-level MV candidate set

[0180] The CU-level MV candidate sets include:

[0181] (i) Original AMVP candidate, if the current CU is in AMVP mode,

[0182] (ii) All Merge candidates,

[0183] (iii) Several MVs in the interpolated MV field introduced in Section 2.3.3.2.

[0184] (iv) Top and left neighboring motion vectors

[0185] When bilateral matching is used, each valid MV of the Merge candidate is used as input to generate a pair of MVs that are assumed to be bilaterally matched. For example, a valid MV of the Merge candidate at reference list A is (MVa, ref a ). Then find the reference image ref of its paired bilateral MV in another reference list B b , so that ref a and ref b is located on a different side of the current picture in time. If the reference ref in reference list B b If not available, the reference b Determined as reference ref a A different reference whose temporal distance to the current image is the minimum distance in list B. Determine the reference ref b After that, based on the current image and reference ref a , reference b The temporal distance between MVa is scaled to derive MVb.

[0186] Four MVs from the interpolated MV field are also added to the CU-level candidate list. More specifically, the interpolated MVs at positions (0, 0), (W / 2, 0), (0, H / 2), and (W / 2, H / 2) of the current CU are added.

[0187] When FRUC is applied in AMVP mode, the original AMVP candidates are also added to the MV candidate set at the CU level.

[0188] At the CU level, up to 15 MVs of an AMVP CU and up to 13 MVs of a Merge CU can be added to the candidate list.

[0189] 2.3.3.2 Sub-CU Level MV Candidate Set

[0190] The MV candidates set at the sub-CU level include:

[0191] (i) MV determined from CU-level search,

[0192] (ii) the top, left, upper-left, and upper-right adjacent MVs,

[0193] (iii) a scaled version of the collocated MV from the reference image,

[0194] (iv) Up to 4 ATMVP candidates,

[0195] (v) A maximum of 4 STMVP candidates.

[0196] The scaled MV from the reference picture is derived as follows. All reference pictures in both lists are traversed. The MV at the collocated position of the sub-CU in the reference picture is scaled as the reference of the starting CU level MV.

[0197] ATMVP and STMVP candidates are limited to the first four. At the sub-CU level, up to 17 MVs are added to the candidate list.

[0198] 2.3.3.3 Generation of interpolated MV fields

[0199] Before encoding a frame, an interpolated motion field of the entire picture is generated based on unidirectional ME. This motion field can then be used as an MV candidate at the CU level or sub-CU level.

[0200] First, the motion fields of each reference picture in both reference lists are traversed at the 4×4 block level. For each 4×4 block, if the motion associated with the block passes through a 4×4 block in the current picture (e.g. Fig.23 As shown), and the block is not assigned any interpolated motion, the motion of the reference block is scaled to the current picture according to the temporal distances TD0 and TD1 (same as the MV scaling of TMVP in HEVC), and the scaled motion is assigned to the block in the current frame. If no scaled MV is assigned to the 4×4 block, the motion of the block is marked as unavailable in the interpolated motion field.

[0201] 2.3.3.4 Interpolation Matching Cost

[0202] When motion vectors point to fractional sample locations, motion compensated interpolation is required. To reduce complexity, bilinear interpolation is used for both bilateral matching and template matching instead of the conventional 8-tap HEVC interpolation.

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

[0204]

[0205] Here, w is the weight coefficient, which is empirically set to 4. MV and MV s Indicate the current MV and the starting MV respectively. SAD is still used as the matching cost for pattern matching at the sub-CU level.

[0206] In FRUC mode, MV is derived by using only luma samples. The derived motion will be used for MC inter-frame prediction of luma and chroma. After determining MV, the final MC is performed using an 8-tap interpolation filter for luma and a 4-tap interpolation filter for chroma.

[0207] 2.3.3.5 MV Refinement

[0208] MV refinement is a pattern-based MV search with either bilateral cost or template matching cost as the criterion. In JEM, two search modes are supported—Unrestricted Center Biased Diamond Search (UCBDS) and Adaptive Cross Search—to perform MV refinement at CU level and sub-CU level, respectively. For both CU-level and sub-CU-level MV refinement, MVs are directly searched at quarter luma sample accuracy, followed by eighth luma sample MV refinement. The search range for MV refinement at both CU and sub-CU steps is set to 8 luma samples.

[0209] 2.3.3.6 Selection of prediction direction in template matching FRUC Merge mode

[0210] In bilateral Merge mode, bidirectional prediction is always applied because the motion information of the CU is derived from the closest match between two blocks on the current CU motion track in two different reference pictures. Template matching Merge mode has no such restriction. In template matching Merge mode, the encoder can choose from unidirectional prediction in list 0, unidirectional prediction in list 1, or bidirectional prediction for the CU.

[0211] The selection is based on the template matching cost as follows:

[0212] If costBi <= factor * min (cost0, cost1)

[0213] Bidirectional prediction is used;

[0214] Otherwise, if cost0 <= cost1

[0215] Then use the one-way prediction in list 0;

[0216] otherwise,

[0217] Use the one-way prediction in Listing 1;

[0218] Where cost0 is the SAD of list 0 template matching, cost1 is the SAD of list 2 template matching, and costBi is the SAD of bi-prediction template matching. The value of factor is equal to 1.25, which means that the selection process is biased towards bi-prediction. Inter prediction direction selection can only be applied to CU-level template matching process.

[0219] 2.3.4 Decoder-side motion vector refinement

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

[0221] In DMVR, a bilateral template is generated as a weighted combination (i.e., average) of two prediction blocks, where the two prediction blocks are from the initial MV0 of list 0 and MV1 of list 1, respectively. The template matching operation involves calculating a cost metric between the generated template and the sample area in the reference picture (around the initial prediction block). For each of the two reference pictures, the MV that produces the minimum template cost is considered as the updated MV for that list to replace the original MV. In JEM, nine MV candidates are searched for each list. The nine MV candidates include the original MV and 8 surrounding MVs that have a one-luminance sample offset from the original MV in the horizontal or vertical direction or both. Finally, the MV is matched using Fig.24 The two new MVs shown (ie, MV0' and MV1') generate the final bidirectional prediction result. The sum of absolute differences (SAD) is used as the cost metric.

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

[0223] 2.3.5 Merge / Skip Mode with Bilateral Matching Refinement

[0224] First, the Merge candidate list is constructed by inserting the motion vectors and reference indexes of spatial neighboring blocks and temporal neighboring blocks into the candidate list and performing redundancy checks until the number of available candidates reaches the maximum number of candidates, which is 19. The Merge candidate list for Merge / Skip mode is constructed by inserting spatial candidates ( Fig.11 ), time domain candidates, affine candidates, advanced time domain MVP (ATMVP) candidates, space-time MVP (STMVP) candidates and additional candidates used in HEVC (combined candidates and zero candidates):

[0225] - Spatial candidates for blocks 1-4.

[0226] - Extrapolated affine candidates for blocks 1-4.

[0227] -ATMVP.

[0228] -STMVP.

[0229] -Virtual affine candidate.

[0230] - Spatial candidates (block 5) (only used when the number of available candidates is less than 6).

[0231] - Extrapolate affine candidates (block 5).

[0232] - Temporal candidates (as derived in HEVC).

[0233] - Non-adjacent spatial candidates followed by extrapolated affine candidates (blocks 6 to 49, e.g. Fig.25 shown).

[0234] -Combination candidates.

[0235] -Zero Candidates

[0236] It is worth noting that, in addition to STMVP and Affine, the IC flag is also inherited from the Merge candidate. In addition, for the first four spatial candidates, the bidirectional prediction candidates are inserted before the unidirectional prediction candidates.

[0237] In some implementations, blocks that are not connected to the current block may be accessed. If non-adjacent blocks are encoded using non-intra mode, the associated motion information may be added as additional Merge candidates.

[0238] 3. Examples of Problems Solved by the Embodiments Disclosed in This Article

[0239] The current HEVC design can use the correlation between the current block and its neighboring blocks (adjacent to the current block) to better encode motion information. However, the neighboring blocks may correspond to different objects with different motion trajectories. In this case, prediction from neighboring blocks is not effective.

[0240] Predicting from motion information of non-neighboring blocks can bring additional coding benefits at the cost of storing all motion information (usually at 4x4 level) into cache, which significantly increases the complexity of hardware implementation.

[0241] 4. Some Examples

[0242] In order to overcome the shortcomings of existing implementations, a LUT-based motion vector prediction technique can be implemented in various embodiments to provide video encoding with higher coding efficiency. The LUT-based motion vector prediction technique uses one or more lookup tables storing at least one motion candidate to predict the motion information of a block. Each LUT may include one or more motion candidates, each motion candidate being associated with corresponding motion information. The motion information of the motion candidate may include part or all of the prediction direction, reference index / picture, motion vector, LIC flag, affine flag, motion vector derivation (MVD) accuracy and / or MVD value. The motion information may also include block position information to indicate where the motion information comes from.

[0243] The examples described below for various implementations illustrate LUT-based motion vector prediction based on the disclosed technology, which can enhance existing and future video coding standards. Since the LUT allows the encoding / decoding process to be performed based on historical data (e.g., processed blocks), the LUT-based motion vector prediction can also be referred to as a history-based motion vector prediction (HMVP) method. In the LUT-based motion vector prediction method, one or more tables are maintained during the encoding / decoding process, and its motion information comes from the previously encoded block. During the encoding / decoding of the block, the relevant motion information in the LUT can be added to the motion candidate list, and the LUT can be updated after the block is encoded / decoded. The following examples should be regarded as examples to explain general concepts. These examples should not be understood narrowly. In addition, these examples can be combined in any way.

[0244] Some embodiments may use one or more lookup tables storing at least one motion candidate to predict motion information of a block. Embodiments may use motion candidates to indicate a set of motion information stored in a lookup table. For traditional AMVP or Merge mode, embodiments may use AMVP or Merge candidates to store motion information.

[0245] The following example illustrates the general concept.

[0246] Example of a lookup table

[0247] Example A1: Each lookup table may contain one or more motion candidates, where each candidate is associated with its motion information.

[0248] a. Here, the motion information of the candidate motion may include part or all of the prediction direction, reference index / picture, motion vector, LIC flag, affine flag, MVD precision, and MVD value.

[0249] b. Motion information may also include block location information to indicate where the motion information comes from.

[0250] c. A counter may be further assigned to each lookup table.

[0251] i. At the beginning of encoding / decoding a picture / slice / LCU (CTU) row / slice, the counter may be initialized to zero.

[0252] ii. In one example, the counter may be updated after encoding / decoding a CTU / CTB / CU / CB / PU / specific region size (e.g., 8x8 or 16x16).

[0253] iii. In one example, each time a candidate is added to the lookup table, the counter is incremented by 1.

[0254] iv. In one example, the counter should not be larger than the size of the table (the number of allowed motion candidates).

[0255] v. Alternatively, a counter may be used to indicate how many motion candidates have been attempted to be added to the lookup table (some of them are in the lookup table, but may be removed from the table later). In this case, the counter may be larger than the size of the table.

[0256] d. The size of the table (the number of motion candidates allowed) and / or the number of tables may be fixed or adaptive. The table size may be the same for all tables, or different tables may have different table sizes.

[0257] i. Alternatively, different lookup tables may use different sizes (eg, 1 or 2).

[0258] ii. In one example, the size of the table and / or the number of tables may be predefined.

[0259] iii. In one example, the size of the table and / or the number of tables can be signaled in a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, a slice header, a coding tree unit (CTU), a coding tree block (CTB), a coding unit (CU) or a prediction unit (PU), or a region covering multiple CTUs / CTBs / CUs / PUs.

[0260] iv. The size of the table and / or the number of tables may further depend on the slice type, the temporal layer index of the picture, the picture order count (POC) distance between a slice and the nearest inner slice.

[0261] e. Assuming there are N tables for encoding threads, N*P tables may be needed to encode stripes, where P represents the number of LCU rows or slices.

[0262] i. Alternatively, only P tables are needed for the coded slice, where P represents the number of LCU rows, where only one lookup table is used for each LCU row, even though N may be greater than 1 when slices are disabled.

[0263] LUT Selection

[0264] Example B1: For a coding block, some or all motion candidates from a lookup table may be checked in order. When a motion candidate is checked during a coding block, it may be added to a motion candidate list (eg, AMVP, Merge candidate list).

[0265] a. Alternatively, motion candidates from multiple lookup tables may be checked sequentially.

[0266] b. The lookup table index may be signaled in a CTU, CTB, CU or PU, or a region covering multiple CTUs / CTBs / CUs / PUs.

[0267] Example B2: The choice of the lookup table may depend on the location of the block.

[0268] a. It may depend on the CTU address covering the block. Here, we take two lookup tables (dual lookup table, DLUT) as an example to illustrate this concept:

[0269] i. If the block is located in one of the first M CTUs in a CTU row, the first lookup table can be used to encode the block, while for blocks located in the remaining CTUs in the CTU row, the second lookup table can be used.

[0270] ii. If the block is located in one of the first M CTUs in a CTU row, the motion candidates in the first lookup table can be checked first to encode the block, and if there are not enough candidates in the first table, the second lookup table can be used further. For blocks located in the remaining CTUs in the CTU row, the second lookup table can be used.

[0271] iii. Alternatively, for blocks located in the remaining CTUs in the CTU row, the motion candidates in the second lookup table may be checked first to encode the blocks, and if there are not enough candidates in the second table, the first lookup table may be further used.

[0272] b. May depend on the distance between the location of the block and a location associated with a motion candidate in one or more lookup tables.

[0273] iv. In one example, if one motion candidate is associated with a smaller distance between the block to be encoded, it may be checked earlier than another motion candidate.

[0274] Use of Lookup Table

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

[0276] a. It may further depend on coding information, block size, block shape, etc. For example, for AMVP mode, only m motion candidates may be checked, while for Merge mode, n motion candidates may be checked (e.g., m=2, n=44).

[0277] b. In one example, the total number of motion candidates to be checked may be signaled in a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, a slice header, a coding tree unit (CTU), a coding tree block (CTB), a coding unit (CU) or a prediction unit (PU), or an area covering multiple CTUs / CTBs / CUs / PUs.

[0278] Example C2: The motion candidates contained in the lookup table can be directly inherited by the block.

[0279] a. They can be used for Merge mode encoding, i.e. motion candidates can be checked during Merge candidate list derivation.

[0280] b. They can be used for affine Merge mode encoding.

[0281] i. If the affine flag of the motion candidate in the lookup table is 1, it can be added as an affine Merge candidate.

[0282] c. Checking for motion candidates in the lookup table may be enabled when:

[0283] i. After inserting the TMVP candidate, the Merge candidate list is not full;

[0284] ii. After checking a certain spatial neighboring block for spatial Merge candidate derivation, the Merge candidate list is not full;

[0285] iii. After all spaces are merged as candidates, the merge candidate list is not full;

[0286] iv. After combining the bidirectional prediction Merge candidates, the Merge candidate list is not full;

[0287] v. Pruning can be applied before adding motion candidates to the Merge candidate list.

[0288] Example C3: The motion candidates contained in the lookup table may be used as predictors of the motion information of the coding block.

[0289] a. They can be used for AMVP mode coding, i.e., motion candidates can be checked during the AMVP candidate list derivation process.

[0290] b. Checking for motion candidates in the lookup table may be enabled when:

[0291] i. After inserting the TMVP candidate, the AMVP candidate list is not full;

[0292] ii. Before inserting TMVP candidates, the AMVP candidate list is not full after selecting and pruning from spatial neighbors;

[0293] iii. When there is no AMVP candidate without scaling from the upper neighboring block and / or when there is no AMVP candidate without scaling from the left neighboring block.

[0294] iv. Before adding the motion candidate to the AMVP candidate list, pruning may be applied.

[0295] c. Check motion candidates that have the same reference picture as the current reference picture.

[0296] i. Optionally, in addition, motion candidates (MV with scaling) with different reference pictures than the current reference picture are also checked.

[0297] 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 different reference pictures from the current reference picture.

[0298] iii. Alternatively, check motion candidates in the same way as in Merge.

[0299] Example C4: The order of checking motion candidates in the lookup table is defined as follows (assuming that K (K>=1) motion candidates are allowed to be checked):

[0300] a. Look up the last K motion candidates in the table, e.g., in descending order of the entry index of the LUT.

[0301] b. Top K%L candidates, where L is the lookup table size when K>=L, eg, in descending order of entry index of the LUT.

[0302] c. When K>=L, search all candidates in the table (L candidates).

[0303] d. Alternatively, or in addition, based on descending order of motion candidate indices.

[0304] e. Alternatively, K motion candidates are selected according to candidate information (eg, positions related to the motion candidates and distances from the current block).

[0305] f. The order in which the different lookup tables are checked is defined in the next section, Use of Lookup Tables.

[0306] g. Once the Merge / AMVP candidate list reaches the maximum allowed number of candidates, the checking process will terminate.

[0307] h. Alternatively, once the number of added motion candidates reaches the maximum allowed number of motion candidates, the checking process will terminate.

[0308] i. One syntax element indicating the size of the allowed table and the number of motion candidates allowed to be checked (ie K=L) may be signaled in the SPS, PPS, slice header, or slice header.

[0309] Example C5: The use of a lookup table to enable / disable motion information encoding for a block may be signaled in an SPS, PPS, slice header, slice header, CTU, CTB, CU or PU, or in an area covering multiple CTUs / CTBs / CUs / PUs.

[0310] Example C6: Whether to apply prediction from a lookup table may further depend on coding information. When inference is not applied to a block, additional signaling indicating prediction is skipped. Alternatively, when inference is not applied to a block, motion candidates in the lookup table do not need to be accessed, and checking of relevant motion candidates is omitted.

[0311] a. Whether to apply prediction from the lookup table may depend on the block size / block shape. In one example, for smaller blocks (such as 4x4, 8x4 or 4x8 blocks), prediction from the lookup table is not allowed.

[0312] b. Whether to apply prediction from a lookup table may depend on whether the block is coded in AMVP or Merge mode. In one example, for AMVP mode, prediction from a lookup table is not allowed.

[0313] c. Whether to apply prediction from a lookup table may depend on whether the block is coded with affine motion or other motion (such as translational motion). In one example, for affine mode, prediction from a lookup table is not allowed.

[0314] Example C7: Motion candidates from a lookup table in a previously coded frame / slice / slice may be used to predict motion information for a block in a different frame / slice / slice.

[0315] a. In one example, only the lookup table associated with the reference picture of the current block can be used to encode the current block.

[0316] b. In one example, only the lookup tables associated with pictures having the same slice type and / or the same quantization parameter as the current block may be used for encoding the current block.

[0317] Update of lookup table

[0318] Example D1: After a block is encoded using motion information (ie, intra block copy mode, inter coding mode), one or more lookup tables may be updated.

[0319] a. In one example, whether to update the lookup table may reuse the rules for selecting the lookup table, for example, when a lookup table may be selected to encode the current block, the selected lookup table may be further updated after the block is encoded / decoded.

[0320] b. The lookup table to be updated may be selected based on coding information and / or the location of the block / LCU.

[0321] c. If the block is encoded with directly signaled motion information (such as AMVP mode), the motion information of the block can be added to the lookup table.

[0322] i. Alternatively, if the block is encoded with motion information directly inherited from spatial neighboring blocks without any refinement (eg, a spatial merge candidate without refinement), the motion information of the block should not be added to the lookup table.

[0323] ii. Alternatively, if the block is encoded with refined motion information inherited directly from spatial neighboring blocks (eg, DMVR, FRUC), the motion information of the block should not be added to any lookup table.

[0324] iii. Alternatively, if the block is encoded with motion information inherited directly from motion candidates stored in a lookup table, the motion information of the block should not be added to any lookup table.

[0325] d. Select M (M>=1) typical positions within the block and update the lookup table using the motion information associated with the typical positions.

[0326] i. In one example, typical locations are defined as the four corner locations within a block (e.g. Fig.26 One of C0-C3).

[0327] ii. In one example, the typical location is defined as the center location within a block (e.g. Fig.26 of Ca-Cd).

[0328] iii. When the block does not allow sub-block prediction, M is set to 1.

[0329] iv. When the block allows sub-block prediction, M can be set to 1, or the total number of sub-blocks, or any value between 1 and the total number of sub-blocks, including 1 and the total number of sub-blocks.

[0330] v. Alternatively, when the block allows sub-block prediction, M can be set to 1, and the selection of representative sub-blocks is based on

[0331] 1. The frequency of motion information used,

[0332] 2. Whether it is a bidirectional prediction block,

[0333] 3. Based on reference image index / reference image,

[0334] 4. Motion vector difference compared to other motion vectors (e.g., select the largest MV difference)

[0335] 5. Other coded information.

[0336] e. When M (M>=1) groups of representative positions are selected to update the lookup table, further conditions may be checked before adding them as additional motion candidates to the lookup table.

[0337] i. Pruning can be applied to a new set of motion information for existing motion candidates in the lookup table.

[0338] ii. In one example, the new set of motion information should not be identical to any or part of the existing motion candidates in the lookup table.

[0339] iii. Alternatively, for the same reference picture from a new motion information set and an existing motion candidate, the MV difference should be no less than one / multiple thresholds. For example, the horizontal and / or vertical components of the MV difference should be greater than 1 pixel distance.

[0340] iv. Alternatively, when K>L, the new motion information set is pruned only to the last K candidates or the first K%L existing motion candidates to allow old motion candidates to be reactivated.

[0341] v. Alternatively, no pruning should be applied.

[0342] f. If M sets of motion information are used to update the lookup table, the corresponding counter should be increased by M.

[0343] g. Assume that before encoding the current block, the counter of the lookup table to be updated is denoted by K. After encoding the block, for a set of selected motion information (using the above method), it is added as an additional motion candidate with an index equal to K%L (where L is the lookup table size). For example Fig. 27 shown.

[0344] i. Alternatively, add it as an additional motion candidate with index equal to min(K+1, L-1). In addition, if K>=L, remove the first motion candidate (index equal to 0) from the lookup table and decrement the indexes of the subsequent K candidates by 1.

[0345] h. After encoding an internal constraint block, the lookup table may be cleared.

[0346] i. If a motion information entry is added to the lookup table, more motion information entries may also be added to the table by inference from the motion information. In this case, the counter associated with the lookup table may be increased by more than 1.

[0347] i. In one example, the MV of the motion information entry is scaled and placed in a table;

[0348] ii. In one example, the MV of the motion information entry is added by (dx, dy) and placed in the table;

[0349] iii. In one example, the average of the MVs of two or more motion information items is calculated and put into a table.

[0350] Example D2: If a block is located at a picture / strip / slice boundary, then updating the lookup table may never be allowed.

[0351] Example D3: The motion information of the above LCU row may be disabled to encode the current LCU row.

[0352] a. In this case, the number of available motion candidates may be reset to 0 at the beginning of a new slice / slice / LCU row.

[0353] Example D4: At the beginning of encoding a slice / slice with a new temporal layer index, the number of available motion candidates may be reset to 0.

[0354] Example D5: The lookup table may be continuously updated using a stripe / slice / LCU row / stripes with the same temporal layer index.

[0355] a. Alternatively, the lookup table can only be updated after encoding / decoding every S (S>=1) CTU / CTB / CU / CB or encoding / decoding a certain area (e.g., size equal to 8x8 or 16x16).

[0356] b. Alternatively, a lookup table may stop updating once it reaches the maximum allowed counter.

[0357] c. In one example, the counter may be predefined. Alternatively, it may be signaled in a video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), slice header, slice header, coding tree unit (CTU), coding tree block (CTB), coding unit (CU) or prediction unit (PU), or in an area covering multiple CTU / CTB / CU / PU.

[0358] Fig.28 2800. The apparatus 2800 may be used to implement one or more of the methods described herein. The apparatus 2800 may be implemented in a smartphone, a tablet computer, a computer, an Internet of Things (IoT) receiver, etc. The apparatus 2800 may include one or more processors 2802, one or more memories 2804, and video processing hardware 2806. The processor 2802 may be configured to implement one or more of the methods described herein. The memory (memories) 2804 may be used to store data and code for implementing the methods and techniques described herein. The video processing hardware 2806 may be used to implement some of the techniques described herein in hardware circuits.

[0359] Fig.29 is a flow chart of an example of a video decoding method 2900. The method 2900 includes maintaining (2902) a number of tables (e.g., lookup tables; LUTs), wherein each table includes a set of motion candidates, wherein each motion candidate is associated with corresponding motion information previously derived from a video block, performing (2904) conversion between a video block and an encoded representation of the video block, and based on a conversion condition of the video block, determining (2906) whether to update at least one table by adding motion information corresponding to the video block.

[0360] Fig.30 is a flow chart of an example of a video decoding method 3000. The method 3000 includes maintaining (3002) a number of tables (e.g., lookup tables; LUTs), wherein each table includes a set of motion candidates, wherein each motion candidate is associated with corresponding motion information previously derived from a video block; performing (3004) a conversion between a video block and an encoded representation of the video block; selecting (3006) M typical positions within the video block, wherein M is an integer, to load motion information associated with the M typical positions; and updating (3008) at least one table using the motion information associated with the M typical positions.

[0361] From the above, it should be understood that for ease of explanation, specific embodiments of the technology disclosed in the present invention have been described herein, but various modifications may be made without departing from the scope of the present invention. Therefore, except for the above, the technology disclosed in the present invention is not limited to the limitations of the claims.

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

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

[0364] 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 the apparatus may be implemented as, special purpose logic circuits, for example, FPGAs (field programmable gate arrays) or ASICs (application specific integrated circuits).

[0365] For example, processors suitable for executing computer programs include general and special purpose microprocessors, and any one or more of any type of digital computer. Typically, the processor will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a processor that executes instructions and one or more storage devices that store instructions and data. Typically, a computer will also include one or more mass storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or be operatively coupled to one or more mass storage devices to receive data from them or transfer data to one or more mass storage devices, or both. However, a computer does not necessarily have such a device. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CDROM and DVD-ROM optical disks. The processor and memory may be supplemented by, or incorporated into, dedicated logic circuits.

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

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

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

Claims

1. A video processing method, comprising: Maintaining one or more tables, wherein each table includes motion candidates derived from one or more video blocks that have been coded and decoded, and the motion candidates in each table are arranged based on the order in which the motion candidates derived from the one or more video blocks are added to each table; Constructing a motion candidate list for a current video block, wherein whether to use one of the one or more tables to construct the motion candidate list is determined based on codec information of the current video block, wherein the codec information includes a size of the current video block; Determine motion information of the current video block using the motion candidate list; The current video block is encoded and decoded based on the determined motion information.

2. The method according to claim 1, wherein: The codec information also includes a codec mode of the current video block; If the codec mode is affine mode, the one or more tables are not used to construct the motion candidate list.

3. The method according to claim 1, wherein: Using the table to construct the motion candidate list includes checking at least one motion candidate in the table to determine whether to add the checked motion candidate from the table to the candidate list.

4. The method according to claim 3, wherein: If the size of the current video block is smaller than a predetermined size, the one or more tables are not used to construct the motion candidate list.

5. The method according to any one of claims 1 to 4, wherein: The motion candidate list is constructed by selecting a table from a plurality of tables; The selected table is updated using the determined motion information of the current video block.

6. The method according to any one of claims 1 to 3, wherein: The one or more tables include a table for predicting one or more video blocks in a region different from a region including video blocks from which motion candidates in the table were derived. The method of claim 6 , wherein the region is one of a frame, a stripe, or a slice.

8. The method according to any one of claims 1 to 3, wherein: The adding order is determined based on a sequence of one or more video blocks to be encoded or decoded.

9. The method according to claim 1, wherein the motion information of the motion candidates in the table includes at least one of: prediction direction, reference picture index, motion vector value, intensity compensation flag, affine flag, motion vector difference accuracy, and motion vector difference value.

10. The method of claim 1, wherein a coding mode of the current video block is an Advanced Motion Vector Prediction (AMVP) mode or a Merge mode.

11. The video processing method according to claim 1, further comprising: Selecting M typical positions in the current video block to load motion information associated with the M typical positions, where M is an integer; as well as At least one table is updated using motion information associated with the M representative locations.

12. The method of claim 11, wherein the M representative positions include at least one of four corner positions within the current block.

13. The method of claim 11, wherein the M typical positions include at least one of four center positions within the current block.

14. The method of claim 11, wherein the value of M is set to 1 if processing of the video block allows sub-block prediction.

15. The method of claim 11, wherein in the case where processing of the video block allows sub-block prediction, the value of M is set to 1, or the total number of sub-blocks, or a value between 1 and the total number of sub-blocks.

16. The method of claim 11, wherein the value of M is set to 1 if sub-block prediction is allowed in processing of the video block, and the M representative positions are selected based on at least one of: a frequency of motion information used, whether a bi-directional prediction block is used, a reference picture, a reference picture index, or a motion vector difference compared to other motion vectors.

17. The method according to claim 11, wherein M is predetermined according to a coding tree unit, a coding tree block unit, a coding unit, or a prediction unit, and is contained in a video parameter set, a sequence parameter set, a picture parameter set, a slice header, or a slice header.

18. The method according to claim 11, further comprising: A second video block different from the video block is reconstructed based on the updated set of tables.

19. The method according to any one of claims 1 to 3, wherein the motion candidates in the table are associated with intra prediction modes for intra-coded blocks.

20. The method according to any one of claims 1 to 3, wherein the motion candidates in the table are associated with a plurality of illumination compensation (IC) parameters for an IC coding block.

21. The method according to any one of claims 1 to 3, wherein the motion candidates in the table are associated with filter parameters used in a filtering process.

22. An apparatus for processing video data, comprising a processor and a non-transitory memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to: Maintain one or more tables, where The motion candidates included in each table are derived from one or more video blocks that have been coded and decoded, and the motion candidates in each table are arranged based on the order in which the motion candidates derived from the one or more video blocks are added to each table; Constructing a motion candidate list for a current video block, wherein whether to use one of the one or more tables to construct the motion candidate list is determined based on codec information of the current video block, wherein the codec information includes a size of the current video block; Determine motion information of the current video block using the motion candidate list; The current video block is encoded and decoded based on the determined motion information.

23. The apparatus of claim 22, wherein the instructions, when executed by the processor, further cause the processor to: Selecting M typical positions within the current video block to load motion information associated with the M typical positions, where M is an integer; and At least one table is updated using motion information associated with the M representative locations.

24. A video decoding device, comprising a processor, configured to implement the method according to any one of claims 2 to 21.

25. A computer-readable program medium having codes stored thereon, the codes comprising instructions which, when executed by a processor, cause the processor to implement the method of any one of claims 2 to 21.

26. A non-transitory computer-readable storage medium storing instructions that cause a processor to: Maintain one or more tables, where The motion candidates included in each table are derived from one or more video blocks that have been coded and decoded, and the motion candidates in each table are arranged based on the order in which the motion candidates derived from the one or more video blocks are added to each table; Constructing a motion candidate list for a current video block, wherein whether to use one of the one or more tables to construct the motion candidate list is determined based on codec information of the current video block, wherein the codec information includes a size of the current video block; Determine motion information of the current video block using the motion candidate list; The current video block is encoded and decoded based on the determined motion information.

27. A method for storing a bitstream of a video, comprising: Maintaining one or more tables, wherein each table includes motion candidates derived from one or more video blocks that have been coded and decoded, and the motion candidates in each table are arranged based on the order in which the motion candidates derived from the one or more video blocks are added to each table; Constructing a motion candidate list for a current video block, wherein whether to use one of the one or more tables to construct the motion candidate list is determined based on codec information of the current video block, wherein the codec information includes a size of the current video block; Determine motion information of the current video block using the motion candidate list; Encode and decode the current video block based on the determined motion information to generate the bitstream; and The bit stream is stored in a non-transitory computer-readable recording medium.

Citation Information

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