Method, apparatus, and medium for video processing

By using chained motion vectors to derive subblock-based temporal motion vectors, the method addresses inefficiencies in existing video coding technologies, enhancing compression performance in video encoding and decoding.

WO2025214451A1PCT designated stage Publication Date: 2025-10-16DOUYIN VISION CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/088297
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-10
Filing Date
2025-04-10
Publication Date
2025-10-16

AI Technical Summary

Technical Problem

Existing video coding technologies, such as HEVC and VVC, face challenges in improving coding efficiency for video encoding and decoding, particularly in refining motion vector prediction methods to enhance compression performance.

Method used

The proposed solution involves determining a chained motion vector for a current video block based on guided motion vectors or guided block vectors, and using this to derive a subblock-based temporal motion vector for improved video processing.

Benefits of technology

This approach enhances the coding efficiency by optimizing motion vector prediction, leading to improved video compression and decoding performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025088297_16102025_PF_FP_ABST
    Figure CN2025088297_16102025_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a solution for video processing. A method for video processing is proposed. In the method, for a conversion between a current video block of a video and a bitstream of the video, a chained motion vector of the current video block is determined. The chained motion vector includes a motion vector or block vector determined based on a guided motion vector and / or a guided block vector. A subblock based temporal motion vector is determined based on the chained motion vector. The conversion is performed based on the subblock based temporal motion vector.
Need to check novelty before this filing date? Find Prior Art

Description

METHOD, APPARATUS, AND MEDIUM FOR VIDEO PROCESSINGFIELDS

[0001] Embodiments of the present disclosure relates generally to video processing techniques, and more particularly, to chained motion vector prediction.BACKGROUND

[0002] In nowadays, digital video capabilities are being applied in various aspects of peoples’ lives. Multiple types of video compression technologies, such as motion picture expert group (MPEG) -2, MPEG-4, international telecommunication union -telecommunication standardization sector (ITU-T) H. 263, ITU-T H. 264 / MPEG-4 Part 10 advanced video coding (AVC) , ITU-T H. 265 high efficiency video coding (HEVC) standard, versatile video coding (VVC) standard, have been proposed for video encoding / decoding. However, the coding efficiency of video coding techniques is generally expected to be further improved.SUMMARY

[0003] Embodiments of the present disclosure provide a solution for video processing.

[0004] In a first aspect, a method for video processing is proposed. The method comprises: determining, for a conversion between a current video block of a video and a bitstream of the video, a chained motion vector of the current video block, the chained motion vector comprising a motion vector or block vector determined based on at least one of: a guided motion vector, or a guided block vector; determining a subblock based temporal motion vector based on the chained motion vector; and performing the conversion based on the subblock based temporal motion vector. The method in accordance with the first aspect of the present disclosure enables using the chained motion vector for determining the subblock based temporal motion vector.

[0005] In a second aspect, an apparatus for video processing is proposed. The apparatus comprises a processor and a non-transitory memory with instructions thereon. The instructions upon execution by the processor, cause the processor to perform a method in accordance with the first aspect of the present disclosure.

[0006] In a third aspect, a non-transitory computer-readable storage medium is proposed. The non-transitory computer-readable storage medium stores instructions that cause a processor to perform a method in accordance with the first aspect of the present disclosure.

[0007] In a fourth aspect, another non-transitory computer-readable recording medium is proposed. The non-transitory computer-readable recording medium stores a bitstream of a video which is generated by a method performed by an apparatus for video processing. The method comprises: determining a chained motion vector of a current video block of the video, a chained motion vector of the current video block, the chained motion vector comprising a motion vector or block vector determined based on at least one of:a guided motion vector, or a guided block vector; determining a subblock based temporal motion vector based on the chained motion vector; and generating the bitstream based on the subblock based temporal motion vector.

[0008] In a fifth aspect, a method for storing a bitstream of a video is proposed. The method comprises: determining a chained motion vector of a current video block of the video, the chained motion vector comprising a motion vector or block vector determined based on at least one of: a guided motion vector, or a guided block vector; determining a subblock based temporal motion vector based on the chained motion vector; generating the bitstream based on the subblock based temporal motion vector; and storing the bitstream in a non-transitory computer-readable recording medium.

[0009] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Through the following detailed description with reference to the accompanying drawings, the above and other objectives, features, and advantages of example embodiments of the present disclosure will become more apparent. In the example embodiments of the present disclosure, the same reference numerals usually refer to the same components.

[0011] Fig. 1 illustrates a block diagram of an example video coding system in accordance with some embodiments of the present disclosure;

[0012] Fig. 2 illustrates a block diagram of an example video encoder in accordance with some embodiments of the present disclosure;

[0013] Fig. 3 illustrates a block diagram of an example video decoder in accordance with some embodiments of the present disclosure;

[0014] Fig. 4 illustrates spatial neighboring blocks used to derive the spatial merge candidates;

[0015] Fig. 5 illustrates subblock templates generation of SbTMVP;

[0016] Fig. 6 illustrates possible MVs of the proposed mode;

[0017] Fig. 7 illustrates template matching performs on a search area around initial MV;

[0018] Fig. 8 illustrates diamond regions in the search area;

[0019] Fig. 9 illustrates a template;

[0020] Fig. 10 illustrates first HPT and the second HPT;

[0021] Fig. 11 illustrates spatial neighbors for deriving affine merge / AMVP candidates;

[0022] Fig. 12 illustrates from non-adjacent neighbors to the first type of constructed affine merge / AMVP candidates;

[0023] Fig. 13 illustrates frequency responses of the interpolation filter and the VVC interpolation filter at half-pel phase;

[0024] Fig. 14 illustrates template and reference samples of the template in reference pictures;

[0025] Fig. 15 illustrates template and reference samples of the template for block with sub-block motion using the motion information of the subblocks of the current block;

[0026] Fig. 16 illustrates additional directions along k×π / 8 diagonal angles;

[0027] Fig. 17 illustrates the neighboring 4 x 4 subblocks that are used for RMVF parameter derivation;

[0028] Fig. 18 illustrates the ramp function for the weights for GPM blending;

[0029] Fig. 19 illustrates GPM with inter and intra prediction;

[0030] Fig. 20 illustrates the edge on templates;

[0031] Fig. 21 illustrates padding candidates for the replacement of the zero-vector in the IBC list;

[0032] Fig. 22 illustrates IBC candidate clustering based on the L2 distance and the TM cost;

[0033] Fig. 23 illustrates IBC reference region depending on current CU position;

[0034] Fig. 24 illustrates reference area for IBC;

[0035] Fig. 25 illustrates prediction of BVD;

[0036] Fig. 26 illustrates motion compensated boundary padding method;

[0037] Fig. 27 illustrates an example of deriving a M×4 padding block with a left padding direction;

[0038] Fig. 28A and Fig. 28B illustrate examples of BV adjustment;

[0039] Fig. 29 illustrates the InterCCCM method on the decoder;

[0040] Fig. 30 illustrates luma samples L0 to L5 in relation to the chroma sample C;

[0041] Fig. 31 illustrates an example of derivation of CMVP candidate;

[0042] Fig. 32 illustrates an operation of referencing source and destination of tracing MVs in CMVP;

[0043] Fig. 33 illustrates an example to derive the chained motion vector based motion shift for subblock based temporal motion vector prediction;

[0044] Fig. 34 illustrates an example to derive the chained block vector based subblock prediction within the current picture;

[0045] Fig. 35 illustrates a flowchart of a method for video processing in accordance with some embodiments of the present disclosure; and

[0046] Fig. 36 illustrates a block diagram of a computing device in which various embodiments of the present disclosure can be implemented.

[0047] Throughout the drawings, the same or similar reference numerals usually refer to the same or similar elements.DETAILED DESCRIPTION

[0048] Principle of the present disclosure will now be described with reference to some embodiments. It is to be understood that these embodiments are described only for the purpose of illustration and help those skilled in the art to understand and implement the present disclosure, without suggesting any limitation as to the scope of the disclosure. The disclosure described herein can be implemented in various manners other than the ones described below.

[0049] In the following description and claims, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skills in the art to which this disclosure belongs.

[0050] References in the present disclosure to “one embodiment, ” “an embodiment, ” “an example embodiment, ” and the like indicate that the embodiment described may include a particular feature, structure, or characteristic, but it is not necessary that every embodiment includes the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an example embodiment, it is submitted that it is within the knowledge of one skilled in the art to affect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.

[0051] It shall be understood that although the terms “first” and “second” etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and similarly, a second element could be termed a first element, without departing from the scope of example embodiments. As used herein, the term “and / or” includes any and all combinations of one or more of the listed terms.

[0052] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments. As used herein, the singular forms “a” , “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” , “comprising” , “has” , “having” , “includes” and / or “including” , when used herein, specify the presence of stated features, elements, and / or components etc., but do not preclude the presence or addition of one or more other features, elements, components and / or combinations thereof.

[0053] Fig. 1 is a block diagram that illustrates an example video coding system 100 that may utilize the techniques of this disclosure. As shown, the video coding system 100 may include a source device 110 and a destination device 120. The source device 110 can be also referred to as a video encoding device, and the destination device 120 can be also referred to as a video decoding device. In operation, the source device 110 can be configured to generate encoded video data and the destination device 120 can be configured to decode the encoded video data generated by the source device 110. The source device 110 may include a video source 112, a video encoder 114, and an input / output (I / O) interface 116.

[0054] The video source 112 may include a source such as a video capture device. Examples of the video capture device include, but are not limited to, an interface to receive video data from a video content provider, a computer graphics system for generating video data, and / or a combination thereof.

[0055] The video data may comprise one or more pictures. The video encoder 114 encodes the video data from the video source 112 to generate a bitstream. The bitstream may include a sequence of bits that form a coded representation of the video data. The bitstream may include coded pictures and associated data. The coded picture is a coded representation of a picture. The associated data may include sequence parameter sets, picture parameter sets, and other syntax structures. The I / O interface 116 may include a modulator / demodulator and / or a transmitter. The encoded video data may be transmitted directly to destination device 120 via the I / O interface 116 through the network 130A. The encoded video data may also be stored onto a storage medium / server 130B for access by destination device 120.

[0056] The destination device 120 may include an I / O interface 126, a video decoder 124, and a display device 122. The I / O interface 126 may include a receiver and / or a modem. The I / O interface 126 may acquire encoded video data from the source device 110 or the storage medium / server 130B. The video decoder 124 may decode the encoded video data. The display device 122 may display the decoded video data to a user. The display device 122 may be integrated with the destination device 120, or may be external to the destination device 120 which is configured to interface with an external display device.

[0057] The video encoder 114 and the video decoder 124 may operate according to a video compression standard, such as the High Efficiency Video Coding (HEVC) standard, Versatile Video Coding (VVC) standard and other current and / or further standards.

[0058] Fig. 2 is a block diagram illustrating an example of a video encoder 200, which may be an example of the video encoder 114 in the system 100 illustrated in Fig. 1, in accordance with some embodiments of the present disclosure.

[0059] The video encoder 200 may be configured to implement any or all of the techniques of this disclosure. In the example of Fig. 2, the video encoder 200 includes a plurality of functional components. The techniques described in this disclosure may be shared among the various components of the video encoder 200. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.

[0060] In some embodiments, the video encoder 200 may include a partition unit 201, a prediction unit 202 which may include a mode select unit 203, a motion estimation unit 204, a motion compensation unit 205 and an intra-prediction unit 206, a residual generation unit 207, a transform unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transform unit 211, a reconstruction unit 212, a buffer 213, and an entropy encoding unit 214.

[0061] In other examples, the video encoder 200 may include more, fewer, or different functional components. In an example, the prediction unit 202 may include an intra block copy (IBC) unit. The IBC unit may perform prediction in an IBC mode in which at least one reference picture is a picture where the current video block is located.

[0062] Furthermore, although some components, such as the motion estimation unit 204 and the motion compensation unit 205, may be integrated, but are represented in the example of Fig. 2 separately for purposes of explanation.

[0063] The partition unit 201 may partition a picture into one or more video blocks. The video encoder 200 and the video decoder 300 may support various video block sizes.

[0064] The mode select unit 203 may select one of the coding modes, intra or inter, e.g., based on error results, and provide the resulting intra-coded or inter-coded block to a residual generation unit 207 to generate residual block data and to a reconstruction unit 212 to reconstruct the encoded block for use as a reference picture. In some examples, the mode select unit 203 may select a combined inter and intra prediction (CIIP) mode in which the prediction is based on an inter prediction signal and an intra prediction signal. The mode select unit 203 may also select a resolution for a motion vector (e.g., a sub-pixel or integer pixel precision) for the block in the case of inter-prediction.

[0065] To perform inter prediction on a current video block, the motion estimation unit 204 may generate motion information for the current video block by comparing one or more reference frames from buffer 213 to the current video block. The motion compensation unit 205 may determine a predicted video block for the current video block based on the motion information and decoded samples of pictures from the buffer 213 other than the picture associated with the current video block.

[0066] The motion estimation unit 204 and the motion compensation unit 205 may perform different operations for a current video block, for example, depending on whether the current video block is in an I-slice, a P-slice, or a B-slice. As used herein, an “I-slice” may refer to a portion of a picture composed of macroblocks, all of which are based upon macroblocks within the same picture. Further, as used herein, in some aspects, “P-slices” and “B-slices” may refer to portions of a picture composed of macroblocks that are not dependent on macroblocks in the same picture.

[0067] In some examples, the motion estimation unit 204 may perform uni-directional prediction for the current video block, and the motion estimation unit 204 may search reference pictures of list 0 or list 1 for a reference video block for the current video block. The motion estimation unit 204 may then generate a reference index that indicates the reference picture in list 0 or list 1 that contains the reference video block and a motion vector that indicates a spatial displacement between the current video block and the reference video block. The motion estimation unit 204 may output the reference index, a prediction direction indicator, and the motion vector as the motion information of the current video block. The motion compensation unit 205 may generate the predicted video block of the current video block based on the reference video block indicated by the motion information of the current video block.

[0068] Alternatively, in other examples, the motion estimation unit 204 may perform bi-directional prediction for the current video block. The motion estimation unit 204 may search the reference pictures in list 0 for a reference video block for the current video block and may also search the reference pictures in list 1 for another reference video block for the current video block. The motion estimation unit 204 may then generate reference indexes that indicate the reference pictures in list 0 and list 1 containing the reference video blocks and motion vectors that indicate spatial displacements between the reference video blocks and the current video block. The motion estimation unit 204 may output the reference indexes and the motion vectors of the current video block as the motion information of the current video block. The motion compensation unit 205 may generate the predicted video block of the current video block based on the reference video blocks indicated by the motion information of the current video block.

[0069] In some examples, the motion estimation unit 204 may output a full set of motion information for decoding processing of a decoder. Alternatively, in some embodiments, the motion estimation unit 204 may signal the motion information of the current video block with reference to the motion information of another video block. For example, the motion estimation unit 204 may determine that the motion information of the current video block is sufficiently similar to the motion information of a neighboring video block.

[0070] In one example, the motion estimation unit 204 may indicate, in a syntax structure associated with the current video block, a value that indicates to the video decoder 300 that the current video block has the same motion information as the another video block.

[0071] In another example, the motion estimation unit 204 may identify, in a syntax structure associated with the current video block, another video block and a motion vector difference (MVD) . The motion vector difference indicates a difference between the motion vector of the current video block and the motion vector of the indicated video block. The video decoder 300 may use the motion vector of the indicated video block and the motion vector difference to determine the motion vector of the current video block.

[0072] As discussed above, video encoder 200 may predictively signal the motion vector. Two examples of predictive signaling techniques that may be implemented by video encoder 200 include advanced motion vector prediction (AMVP) and merge mode signaling.

[0073] The intra prediction unit 206 may perform intra prediction on the current video block. When the intra prediction unit 206 performs intra prediction on the current video block, the intra prediction unit 206 may generate prediction data for the current video block based on decoded samples of other video blocks in the same picture. The prediction data for the current video block may include a predicted video block and various syntax elements.

[0074] The residual generation unit 207 may generate residual data for the current video block by subtracting (e.g., indicated by the minus sign) the predicted video block (s) of the current video block from the current video block. The residual data of the current video block may include residual video blocks that correspond to different sample components of the samples in the current video block.

[0075] In other examples, there may be no residual data for the current video block, for example in a skip mode, and the residual generation unit 207 may not perform the subtracting operation.

[0076] The transform unit 208 may generate one or more transform coefficient video blocks for the current video block by applying one or more transforms to a residual video block associated with the current video block.

[0077] After the transform unit 208 generates a transform coefficient video block associated with the current video block, the quantization unit 209 may quantize the transform coefficient video block associated with the current video block based on one or more quantization parameter (QP) values associated with the current video block.

[0078] The inverse quantization unit 210 and the inverse transform unit 211 may apply inverse quantization and inverse transforms to the transform coefficient video block, respectively, to reconstruct a residual video block from the transform coefficient video block. The reconstruction unit 212 may add the reconstructed residual video block to corresponding samples from one or more predicted video blocks generated by the prediction unit 202 to produce a reconstructed video block associated with the current video block for storage in the buffer 213.

[0079] After the reconstruction unit 212 reconstructs the video block, loop filtering operation may be performed to reduce video blocking artifacts in the video block.

[0080] The entropy encoding unit 214 may receive data from other functional components of the video encoder 200. When the entropy encoding unit 214 receives the data, the entropy encoding unit 214 may perform one or more entropy encoding operations to generate entropy encoded data and output a bitstream that includes the entropy encoded data.

[0081] Fig. 3 is a block diagram illustrating an example of a video decoder 300, which may be an example of the video decoder 124 in the system 100 illustrated in Fig. 1, in accordance with some embodiments of the present disclosure.

[0082] The video decoder 300 may be configured to perform any or all of the techniques of this disclosure. In the example of Fig. 3, the video decoder 300 includes a plurality of functional components. The techniques described in this disclosure may be shared among the various components of the video decoder 300. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.

[0083] In the example of Fig. 3, the video decoder 300 includes an entropy decoding unit 301, a motion compensation unit 302, an intra prediction unit 303, an inverse quantization unit 304, an inverse transform unit 305, a reconstruction unit 306 and a buffer 307. The video decoder 300 may, in some examples, perform a decoding pass generally reciprocal to the encoding pass described with respect to video encoder 200.

[0084] The entropy decoding unit 301 may retrieve an encoded bitstream. The encoded bitstream may include entropy coded video data (e.g., encoded blocks of video data) . The entropy decoding unit 301 may decode the entropy coded video data, and from the entropy decoded video data, the motion compensation unit 302 may determine motion information including motion vectors, motion vector precision, reference picture list indexes, and other motion information. The motion compensation unit 302 may, for example, determine such information by performing the AMVP and merge mode. AMVP is used, including derivation of several most probable candidates based on data from adjacent PBs and the reference picture. Motion information typically includes the horizontal and vertical motion vector displacement values, one or two reference picture indices, and, in the case of prediction regions in B slices, an identification of which reference picture list is associated with each index. As used herein, in some aspects, a “merge mode” may refer to deriving the motion information from spatially or temporally neighboring blocks.

[0085] The motion compensation unit 302 may produce motion compensated blocks, possibly performing interpolation based on interpolation filters. Identifiers for interpolation filters to be used with sub-pixel precision may be included in the syntax elements.

[0086] The motion compensation unit 302 may use the interpolation filters as used by the video encoder 200 during encoding of the video block to calculate interpolated values for sub-integer pixels of a reference block. The motion compensation unit 302 may determine the interpolation filters used by the video encoder 200 according to the received syntax information and use the interpolation filters to produce predictive blocks.

[0087] The motion compensation unit 302 may use at least part of the syntax information to determine sizes of blocks used to encode frame (s) and / or slice (s) of the encoded video sequence, partition information that describes how each macroblock of a picture of the encoded video sequence is partitioned, modes indicating how each partition is encoded, one or more reference frames (and reference frame lists) for each inter-encoded block, and other information to decode the encoded video sequence. As used herein, in some aspects, a “slice” may refer to a data structure that can be decoded independently from other slices of the same picture, in terms of entropy coding, signal prediction, and residual signal reconstruction. A slice can either be an entire picture or a region of a picture.

[0088] The intra prediction unit 303 may use intra prediction modes for example received in the bitstream to form a prediction block from spatially adjacent blocks. The inverse quantization unit 304 inverse quantizes, i.e., de-quantizes, the quantized video block coefficients provided in the bitstream and decoded by entropy decoding unit 301. The inverse transform unit 305 applies an inverse transform.

[0089] The reconstruction unit 306 may obtain the decoded blocks, e.g., by summing the residual blocks with the corresponding prediction blocks generated by the motion compensation unit 302 or intra-prediction unit 303. If desired, a deblocking filter may also be applied to filter the decoded blocks in order to remove blockiness artifacts. The decoded video blocks are then stored in the buffer 307, which provides reference blocks for subsequent motion compensation / intra prediction and also produces decoded video for presentation on a display device.

[0090] Some example embodiments of the present disclosure will be described in detailed hereinafter. It should be understood that section headings are used in the present document to facilitate ease of understanding and do not limit the embodiments disclosed in a section to only that section. Furthermore, while certain embodiments are described with reference to Versatile Video Coding or other specific video codecs, the disclosed techniques are applicable to other video coding technologies also. Furthermore, while some embodiments describe video coding steps in detail, it will be understood that corresponding steps decoding that undo the coding will be implemented by a decoder. Furthermore, the term video processing encompasses video coding or compression, video decoding or decompression and video transcoding in which video pixels are represented from one compressed format into another compressed format or at a different compressed bitrate. 1 Brief Summary

[0091] This disclosure is related to video coding technologies. Specifically, it is about the non-intra prediction in image / video coding. It may be applied to the existing video coding standard like HEVC, VVC, and etc. It may be also applicable to future video coding standards or video codec. 2 Introduction

[0092] Video coding standards have evolved primarily through the development of the well-known ITU-T and ISO / IEC standards. The ITU-T produced H. 261 and H. 263, ISO / IEC produced MPEG-1 and MPEG-4 Visual, and the two organizations jointly produced the H. 262 / MPEG-2 Video and H. 264 / MPEG-4 Advanced Video Coding (AVC) and H. 265 / HEVC standards. Since H. 262, the video coding standards are based on the hybrid video coding structure wherein temporal prediction plus transform coding are utilized. To explore the future video coding technologies beyond HEVC, the Joint Video Exploration Team (JVET) was founded by VCEG and MPEG jointly in 2015. The JVET meeting is concurrently held once every quarter, and the new video coding standard was officially named as Versatile Video Coding (VVC) in the April 2018 JVET meeting, and the first version of VVC test model (VTM) was released at that time. The VVC working draft and test model VTM are then updated after every meeting. The VVC project achieved technical completion (FDIS) at the July 2020 meeting. 2.1 Inter prediction 2.1.1 Local illumination compensation (LIC)

[0093] LIC is an inter prediction technique to model local illumination variation between current block and its prediction block as a function of that between current block template and reference block template. The parameters of the function can be denoted by a scale α and an offset β, which forms a linear equation, that is, α*p [x] +β to compensate illumination changes, where p [x] is a reference sample pointed to by MV at a location x on reference picture. When wrap around motion compensation is enabled, the MV shall be clipped with wrap around offset taken into consideration. Since α and β can be derived based on current block template and reference block template, no signaling overhead is required for them, except that an LIC flag is signaled for AMVP mode to indicate the use of LIC.

[0094] The local illumination compensation proposed is used for inter CUs with the following modifications. ● Intra neighbor samples can be used in LIC parameter derivation; ● LIC is disabled for blocks with less than 32 luma samples; ● For both non-subblock and affine modes, LIC parameter derivation is performed based on the template block  samples corresponding to the current CU, instead of partial template block samples corresponding to first top-left 16x16 unit; ● Samples of the reference block template are generated by using MC with the block MV without rounding it  to integer-pel precision.

[0095] For the bi-predictive inter CUs, two sets of LIC parameters are separately dervided for L0 and L1 prediction samples. An iterative manner to derive the L0 and L1 LIC parameters is applied. Specifically, L0 LIC parameters are firstly derived by minimizing difference between L0 template prediction T0 and the template T and the samples in T are updated by subtracting the corresponding samples in T0. Then, the L1 parameters are calculated that minimizes the difference between L1 template prediction T1 and the updated template. Finally, the L0 parameter is refined again in the same way. 2.1.2 Non-adjacent spatial candidate

[0096] The non-adjacent spatial merge candidates are inserted after the temporal motion vector prediction (TMVP) in the regular merge candidate list. The pattern of spatial merge candidates is shown in Fig. 4. The distances between non-adjacent spatial candidates and current coding block are based on the width and height of current coding block. The line buffer restriction is not applied. 2.1.3 Temporal motion information derivation

[0097] In VVC, the Temporal Motion Vector Prediction (TMVP) for the AMVP and merge mode is derived by fetching the motion information from the center or the bottom-right of the collocated block in a signaled collocated picture. Similarly, for the Subblock-based Temporal Motion Vector Prediction (SbTMVP) mode, the motion information from the left neighboring position is used as a motion shift, which is then employed to obtain TMVPs at sub-CU level.

[0098] In ECM, to further improve the coding efficiency of TMVP, two aspects are modified. Firstly, two collocated pictures are utilized which are the two reference frames with the least POC distance relative to the to-be-coded frame. Secondly, the motion shift to locate TMVP is adaptively determined from multiple locations according to template costs. More specifically, two motion shift candidate lists are constructed respectively for the two collocated frames. The motion shifts with the minimum template matching cost are used to derive SbTMVP or TMVP candidates. At most 4 SbTMVP candidates are included in the sub-block-based merge list. The SbTMVP candidate with the least template matching cost derived from the first collocated frame is placed in the first entry without reordering, while other SbTMVP candidates are sorted together with affine candidates. In addition, the prediction direction of each subblock template is determined based on the center subblock. As illustrated in Fig. 5, if the center subblock is uni-predicted, then all the subblock templates are uni-predicted, and vice versa. If the motion vector of corresponding adjacent subblock at the determined reference list is not available for a subblock template, zero MV is used for that subblock template. 2.1.3.1 AMVP with SbTMVP mode

[0099] In the proposed AMVP with SbTMVP mode, a CU is split into 4x4 subblocks, and each subblock derives its own motion from a corresponding subblock in the collocated picture. One collocated picture is used for non-low delay pictures, whereas two collocated pictures are used for low delay pictures. The corresponding subblock is obtained using MVP with a signaled MVD. The MVP is derived in the same way as that of AMVP mode. The number of MVD is determined according to the percentage of the area of the blocks coded in the proposed mode in the previous coded picture with the same temporal layer as follows: ● If the current picture is the first coded picture in a temporal layer, the number of MVD is set to 8,  as shown in (a) of Fig. 6. ● Otherwise, if the percentage of the area of the proposed mode is smaller than threshold1, the number  of MVD is set to 4, as shown in (b) of Fig. 6. ● Otherwise, if the percentage of the area of the proposed mode is smaller than threshold2, the number  of MVD is set to 8, as shown in (c) of Fig. 6. ● Otherwise, the number of MVD is set to 12, as shown in (c) of Fig. 6.

[0100] In the 1st test, threshold1 and threshold2 are set to 3%and 6%, respectively. In the 2nd test, threshold1 and threshold2 are set to 4%and 7%, respectively.

[0101] When deriving the motion for subblocks, the reference pictures are fixed to the one with the reference picture index equal to 0. Then, the temporal motion vector scaling is applied to the motion vectors of the corresponding subblocks to obtain motion vectors for the subblocks. When the corresponding subblock in collocated picture is non-inter coded, the temporal motion information is considered unavailable and the motion of center subblock of the CU is used instead. When the motion of the center subblock of the CU is also unavailable, the MVP with the signaled MVD is used instead.

[0102] When combining the proposed mode with other inter prediction modes, LIC, MHP are not applied. The OBMC mode is always enabled for the proposed mode. The AMVR is enabled for picture resolution larger than or equal to 3840x2160 luma samples. When the AMVR is enabled for a AMVP with SbTMVP coded block, the MVD magnitudes are increased from {4, 8, 12} -pel to larger values. In the 1st test, MVD magnitudes are {16, 32, 48} -pel when AMVR is enabled, whereas in the 2nd test, MVD magnitudes are {16, 24, 32} -pel.

[0103] To reduce the encoder complexity, when the POC distance between collocated pictures and current picture is larger than threshold3, the proposed mode is disabled for the current picture. The threshold3 is set to 2 and 4 for 1st and 2nd tests, respectively. Besides, in the 2nd test, the AMVP affine ME process is skipped if current best coding mode is SbTMVP or the proposed AMVP with SbTMVP modes at the encoder. 2.1.4 Template matching (TM)

[0104] Template matching (TM) is a decoder-side MV derivation method to refine the motion information of the current CU by finding the closest match between a template (i.e., top and / or left neighbouring blocks of the current CU) in the current picture and a block (i.e., same size to the template) in a reference picture. As illustrated in Fig. 7, a better MV is searched around the initial motion of the current CU within a [–8, +8] -pel search range. The template matching method is used with the following modifications: search step size is determined based on AMVR mode and TM can be cascaded with bilateral matching process in merge modes.

[0105] In AMVP mode, an MVP candidate is determined based on template matching error to select the one which reaches the minimum difference between the current block template and the reference block template, and then TM is performed only for this particular MVP candidate for MV refinement. TM refines this MVP candidate, starting from full-pel MVD precision (or 4-pel for 4-pel AMVR mode) within a [–8, +8] -pel search range by using iterative 16-point diamond search. The AMVP candidate may be further refined by using cross search with full-pel MVD precision (or 4-pel for 4-pel AMVR mode) , followed sequentially by half-pel and quarter-pel ones depending on AMVR mode as specified in Table 1. This search process ensures that the MVP candidate still keeps the same MV precision as indicated by the AMVR mode after TM process. In the search process, if the difference between the previous minimum cost and the current minimum cost in the iteration is less than a threshold that is equal to the area of the block, the search process terminates. Table 1. Search patterns of AMVR and merge mode with AMVR.

[0106] In merge mode, similar search method is applied to the merge candidate indicated by the merge index. As Table 1 shows, TM may perform all the way down to 1 / 8-pel MVD precision or skipping those beyond half-pel MVD precision, depending on whether the alternative interpolation filter (that is used when AMVR is of half-pel mode) is used according to merged motion information. Besides, when TM mode is enabled, template matching may work as an independent process or an extra MV refinement process between block-based and subblock-based bilateral matching (BM) methods, depending on whether BM can be enabled or not according to its enabling condition check.

[0107] When TM is applied to bi-predictive blocks, an iterative process is used. Specifically, the initial motion vectors of L0 and L1 are firstly refined and TM costs Cost0 and Cost1 are calculated for L0 and L1, respectively. When Cost0 is larger than Cost1, the refined motion vector of L1 (MV’1) is used to derive a further refined motion vector of L0 (MV’0) . Then, the MV’1 is further refined using MV’0. Similarly, when Cost0 is not larger than Cost1, the refined motion vector of L0 (MV’0) is used to derive a further refined motion vector of L1 (MV’1) , and the MV’0 is further refined using MV’1. Besides, TM for bi-prediction is enabled when DMVR condition is satisfied. 2.1.5 Multi-pass decoder-side motion vector refinement

[0108] A multi-pass decoder-side motion vector refinement is applied. In the first pass, bilateral matching (BM) is applied to the coding block. In the second pass, BM is applied to each 16x16 subblock within the coding block. In the third pass, MV in each 8x8 subblock is refined by applying bi-directional optical flow (BDOF) . The refined MVs are stored for both spatial and temporal motion vector prediction. 2.1.5.1 First pass -Block based bilateral matching MV refinement

[0109] In the first pass, a refined MV is derived by applying BM to a coding block. Similar to decoder-side motion vector refinement (DMVR) , in bi-prediction operation, a refined MV is searched around the two initial MVs (MV0 and MV1) in the reference picture lists L0 and L1. The refined MVs (MV0_pass1 and MV1_pass1) are derived around the initiate MVs based on the minimum bilateral matching cost between the two reference blocks in L0 and L1.

[0110] BM performs local search to derive integer sample precision intDeltaMV. The local search applies a 3×3 square search pattern to loop through the search range [–sHor, sHor] in horizontal direction and [–sVer, sVer] in vertical direction, wherein, the values of sHor and sVer are determined by the block dimension, and the maximum value of sHor and sVer is 8.

[0111] The bilateral matching cost is calculated as: bilCost = mvDistanceCost + sadCost. When the block size cbW *cbH is greater than 64, mean-removal SAD (MRSAD) cost function is applied to remove the DC effect of distortion between reference blocks. When the bilCost at the center point of the 3×3 search pattern has the minimum cost, the intDeltaMV local search is terminated. Otherwise, the current minimum cost search point becomes the new center point of the 3×3 search pattern and continue to search for the minimum cost, until it reaches the end of the search range.

[0112] The existing fractional sample refinement is further applied to derive the final deltaMV. The refined MVs after the first pass is then derived as: ● MV0_pass1 = MV0 + deltaMV, ● MV1_pass1 = MV1 –deltaMV. 2.1.5.2 Second pass -Subblock based bilateral matching MV refinement

[0113] In the second pass, a refined MV is derived by applying BM to a 16×16 grid subblock. For each subblock, a refined MV is searched around the two MVs (MV0_pass1 and MV1_pass1) , obtained on the first pass, in the reference picture list L0 and L1. The refined MVs (MV0_pass2 (sbIdx2) and MV1_pass2 (sbIdx2) ) are derived based on the minimum bilateral matching cost between the two reference subblocks in L0 and L1.

[0114] For each subblock, BM performs full search to derive integer sample precision intDeltaMV. The full search has a search range [–sHor, sHor] in horizontal direction and [–sVer, sVer] in vertical direction, wherein, the values of sHor and sVer are determined by the block dimension, and the maximum value of sHor and sVer is 8.

[0115] The bilateral matching cost is calculated by applying a cost factor to the SATD cost between two reference subblocks, as: bilCost = satdCost *costFactor. The search area (2*sHor + 1) * (2*sVer + 1) is divided up to 5 diamond shape search regions shown on Fig. 8. Each search region is assigned a costFactor, which is determined by the distance (intDeltaMV) between each search point and the starting MV, and each diamond region is processed in the order starting from the center of the search area. In each region, the search points are processed in the raster scan order starting from the top left going to the bottom right corner of the region. When the minimum bilCost within the current search region is less than a threshold equal to sbW *sbH, the int-pel full search is terminated, otherwise, the int-pel full search continues to the next search region until all search points are examined. Additionally, if the difference between the previous minimum cost and the current minimum cost in the iteration is less than a threshold that is equal to the area of the block, the search process terminates.

[0116] The existing VVC DMVR fractional sample refinement is further applied to derive the final deltaMV (sbIdx2) . The refined MVs at second pass is then derived as: ● MV0_pass2 (sbIdx2) = MV0_pass1 + deltaMV (sbIdx2) , ● MV1_pass2 (sbIdx2) = MV1_pass1 –deltaMV (sbIdx2) . 2.1.5.3 Third pass -Subblock based bi-directional optical flow MV refinement

[0117] In the third pass, a refined MV is derived by applying BDOF to an 8×8 grid subblock. For each 8×8 subblock, BDOF refinement is applied to derive scaled Vx and Vy without clipping starting from the refined MV of the parent subblock of the second pass. The derived bioMv (Vx, Vy) is rounded to 1 / 16 sample precision and clipped between -32 and 32.

[0118] The refined MVs (MV0_pass3 (sbIdx3) and MV1_pass3 (sbIdx3) ) at third pass are derived as: ● MV0_pass3 (sbIdx3) = MV0_pass2 (sbIdx2) + bioMv, ● MV1_pass3 (sbIdx3) = MV0_pass2 (sbIdx2) –bioMv. 2.1.5.4 Fourth pass -Adaptive subblock based bi-directional optical flow MV refinement

[0119] In the fourth pass, a refined MV is derived by applying BDOF to an 4×4 or 8×8 grid subblock. When a block is smaller than 1024 pixels, the 4×4 grid subblock is used. Otherwise, 8×8 grid subblock is used. The MV of each subblock is refined in the same way as that used in third pass.

[0120] In all aforementioned sub-clauses, when wrap around motion compensation is enabled, the motion vectors shall be clipped with wrap around offset taken into consideration. 2.1.6 Adaptive decoder-side motion vector refinement

[0121] Adaptive decoder side motion vector refinement method is an extension of multi-pass DMVR which consists of the two new merge modes to refine MV only in one direction, either L0 or L1, of the bi-prediction for the merge candidates that meet the DMVR conditions. The multi-pass DMVR process is applied for the selected merge candidate to refine the motion vectors, however either MVD0 or MVD1 is set to zero in the 1st pass (i.e., PU level) DMVR.

[0122] The merge candidates for the new merge mode are derived from spatial neighboring coded blocks, TMVPs, non-adjacent blocks, HMVPs, pair-wise candidate, similar as in the regular merge mode. The difference is that only those meet DMVR conditions are added into the candidate list. The same merge candidate list is used by the two new merge modes. If the list of BM candidates contains the inherited BCW weights and DMVR process is unchanged except the computation of the distortion is made using MRSAD or MRSATD if the weights are non-equal and the bi-prediction is weighted with BCW weights. Merge index is coded as in regular merge mode. 2.1.7 OBMC

[0123] When OBMC is applied, top and left boundary pixels of a CU are refined using neighboring block’s motion information with a weighted prediction.

[0124] Conditions of not applying OBMC are as follows: ● When OBMC is disabled at SPS level. ● When current block has intra mode or IBC mode. ● When current luma block area is smaller or equal to 32.

[0125] Additionally OBMC is adaptively controlled on a block level as follows: ● OBMC flag is inherited from a neighboring affine block for affine merge mode. ● OBMC is not applied to a block if there is a neighbor block coded with IBC, palette, or BDPCM modes. ● When applying OBMC to a block, block boundary check whether OBMC is applied to the boundary is  further made based on the reference samples of the current block. If any absolute difference between the prediction sample and non-interpolated (integer pel) reference sample is greater than a threshold, the OBMC is not applied to that boundary.

[0126] A subblock-boundary OBMC is performed by applying the same blending to the top, left, bottom, and right subblock boundary pixels using neighboring subblocks’ motion information. It is enabled for the subblock based coding tools: ● Affine AMVP modes; ● Affine merge modes and subblock-based temporal motion vector prediction (SbTMVP) ; ● Subblock-based bilateral matching.

[0127] When OBMC mode is used in CIIP mode with LMCS, inter blending is performed prior to LMCS mapping of inter samples. LMCS is applied to blended inter samples which are combined with LMCS applied intra samples in CIIP mode, where InterpredY represents the samples predicted by the motion of current block in the original domain,  IntrapredY represents the samples predicted in the mapped domain, OBMCpredY represents the samples predicted by the motion of neighboring blocks in the original domain, and w0 and w1 are the weights.

[0128] When OBMC mode is used in a LIC coded block, the LIC parameters are applied to generate the corresponding prediction samples for the OBMC of the LIC coded block. Besides, to reduce the complexity, the OBMC is only applied to the top and left CU boundaries while being always disabled for the boundaries of the internal sub-blocks of the LIC coded block. 2.1.8 Template matching based OBMC

[0129] In template matching based OBMC scheme, instead of directly using the weighted prediction, the prediction value of CU boundary samples derivation approach is decided according to the template matching costs, including using current block’s motion information only, or using neighboring block’s motion information as well with one of the blending modes.

[0130] In this scheme for each block with a size of 4×4 at the top CU boundary, the above template size equals to 4×1. If N adjacent blocks have the same motion information, then the above template size is enlarged to 4N×1 since the MC operation can be processed at one time. For each left block with a size of 4×4 at the left CU boundary, the left template size equals to 1×4 or 1×4N (Fig. 9) .

[0131] For each 4×4 top block (or N 4×4 blocks group) , the prediction value of boundary samples is derived following the below steps.

[0132] Take block A as the current block and its above neighboring block AboveNeighbor_Afor example. The operation for left blocks is conducted in the same manner.

[0133] First, three template matching costs (Cost1, Cost2, Cost3) are measured by SAD between the reconstructed samples of a template and its corresponding reference samples derived by MC process according to the following three types of motion information:

[0134] Cost1 is calculated according to A’s motion information.

[0135] Cost2 is calculated according to AboveNeighbor_A’s motion information.

[0136] Cost3 is calculated according to weighted prediction of A’s and AboveNeighbor_A’s motion information with weighting factors as 3 / 4 and 1 / 4 respectively.

[0137] Second, choose one approach to calculate the final prediction results of boundary samples by comparing Cost1, Cost2 and Cost 3.

[0138] The original MC result using current block’s motion information is denoted as Pixel1, and the MC result using neighboring block’s motion information is denoted as Pixel2. The final prediction result is denoted as NewPixel. - If Cost1 is minimum, then NewPixel (i, j) = Pixel1 (i, j) . - If (Cost2 + (Cost2 >> 2) + (Cost2 >> 3) ) <= Cost1, then blending mode 1 is used. For luma blocks, the number of blending pixel rows is 4. NewPixel (i, 0) = (26×Pixel1 (i, 0) +6×Pixel2 (i, 0) +16) >>5, NewPixel (i, 1) = (7×Pixel1 (i, 1) +Pixel2 (i, 1) +4) >>3, NewPixel (i, 2) = (15×Pixel1 (i, 2) +Pixel2 (i, 2) +8) >>4, NewPixel (i, 3) = (31×Pixel1 (i, 3) +Pixel2 (i, 3) +16) >>5. For chroma blocks, the number of blending pixel rows is 1. NewPixel (i, 0) = (26×Pixel1 (i, 0) +6×Pixel2 (i, 0) +16) >>5. - If Cost1 <= Cost2, then blending mode 2 is used. For luma blocks, the number of blending pixel rows is 2. NewPixel (i, 0) = (15×Pixel1 (i, 0) +Pixel2 (i, 0) +8) >>4, NewPixel (i, 1) = (31×Pixel1 (i, 1) +Pixel2 (i, 1) +16) >>5. For chroma blocks, the number of blending pixel rows / columns is 1. NewPixel (i, 0) = (15×Pixel1 (i, 0) +Pixel2 (i, 0) +8) >>4. - Otherwise, blending mode 3 is used. For luma blocks, the number of blending pixel rows is 4. NewPixel (i, 1) = (7×Pixel1 (i, 1) +Pixel2 (i, 1) +4) >>3, NewPixel (i, 2) = (15×Pixel1 (i, 2) +Pixel2 (i, 2) +8) >>4, NewPixel (i, 3) = (31×Pixel1 (i, 3) +Pixel2 (i, 3) +16) >>5. For chroma blocks, the number of blending pixel rows is 1. NewPixel (i, 0) = (7×Pixel1 (i, 0) +Pixel2 (i, 0) +4) >>3. 2.1.9 History-parameter-based affine model inheritance and non-adjacent affine mode

[0139] History-parameter-based affine model inheritance (HAMI) allows the affine model to be inherited from a previously affine-coded block which may not be neighboring to the current block. Similar to the enhanced regular merge mode, non-adjacent affine mode (NA-AFF) is introduced.

[0140] A first history-parameter table (HPT) is established. An entry of the first HPT stores a set of affine parameters: a, b, c and d, each of which is represented by a 16-bit signed integer. Entries in HPT is categorized by reference list and reference index. Five reference indices are supported for each reference list in HPT. In a formular way, the category of HPT (denoted as HPTCat) is calculated as HPTCat (RefList, RefIdx) = 5×RefList + min (RefIdx, 4) , where RefList and RefIdx represents a reference picture list (0 or 1) and a reference index, respectively. For  each category, at most seven entries can be stored, resulting in 70 entries totally in HPT. At the beginning of each CTU row, the number of entries for each category is initialized as zero. After decoding an affine-coded CU with reference list RefListcur and RefIdxcur, the affine parameters are utilized to update entries in the category HPTCat (RefListcur, RefIdxcur) in a way similar to HMVP table updating.

[0141] A history-affine-parameter-based candidate (HAPC) is derived from one of the seven neighbouring 4×4 blocks denoted as A0, A1, A2, B0, B1, B2 or B3 in Fig. 4 and a set of affine parameters stored in a corresponding entry in the first HPT. The MV of a neighbouring 4×4 block served as the base MV. In a formulating way, the MV of the current block at position (x, y) is calculated as: where (mvhbase, mvvbase) represents the MV of the neighbouring 4×4 block, (xbase, ybase) represents the center  position of the neighbouring 4×4 block. (x, y) can be the top-left, top-right and bottom-left corner of the current block to obtain the corner-position MVs (CPMVs) for the current block, or it can be the center of the current block to obtain a regular MV for the current block.

[0142] A second history-parameter table (HPT) with base MV information is also appended. There are nine entries in the second HPT, wherein an entry comprises a base MV, a reference index and four affine parameters for each reference list, and a base position. An additional merge HAPC can be generated from the second HPT with the base MV information the corresponding affine models stored in an entry. The difference between the first HPT and the second HPT is illustrated in Fig. 10.

[0143] Moreover, pair-wised affine merge candidates are generated by two affine merge candidates which are history-derived or not history-derived. A pair-wised affine merge candidates is generated by averaging the CPMVs of existing affine merge candidates in the list.

[0144] As a response to new HAPCs being introduced, the size of sub-block-based merge candidate list is increased from five to fifteen, which are all involved in the ARMC process.

[0145] In NA-AFF, the pattern of obtaining non-adjacent spatial neighbors is shown in Fig. 6. Same as the existing non-adjacent regular merge candidates, the distances between non-adjacent spatial neighbors and current coding block in the NA-AFF are also defined based on the width and height of current CU.

[0146] The motion information of the non-adjacent spatial neighbors in Fig. 6 is utilized to generate additional inherited and constructed affine merge / AMVP candidates. Specifically, for inherited candidates, the same derivation process of the inherited affine merge / AMVP candidates in the VVC is kept unchanged except that the CPMVs are inherited from non-adjacent spatial neighbors. The non-adjacent spatial neighbors are checked based on their distances to the current block, i.e., from near to far. At a specific distance, only the first available neighbor (that is coded with the affine mode) from each side (e.g., the left and above) of the current block is included for inherited candidate derivation. As indicated by the dash arrows in (a) of Fig. 11, the checking orders of the neighbors on the left and above sides are bottom-to-up and right-to-left, respectively.

[0147] For the first type of constructed candidates, as shown in (b) of Fig. 11, the positions of one left and above non-adjacent spatial neighbors are firstly determined independently. After that, the location of the top-left neighbor can be determined accordingly which can enclose a rectangular virtual block together with the left and above non-adjacent neighbors. Then, as shown in the Fig. 12, the motion information of the three non-adjacent neighbors is used to form the CPMVs at the top-left (A) , top-right (B) and bottom-left (C) of the virtual block, which is finally projected to the current CU to generate the corresponding constructed candidates.

[0148] The NA-AFF candidates are inserted into the existing affine merge candidate list and affine AMVP candidate list according to the following orders:Affine merge mode: 1. SbTMVP candidate, if available. 2. Inherited from adjacent neighbors. 3. Inherited from non-adjacent neighbors. 4. Constructed from adjacent neighbors. 5. The first type of constructed affine candidates from non-adjacent neighbors. 6. Zero MVs.Affine AMVP mode: 1. Inherited from adjacent neighbors. 2. Constructed from adjacent neighbors. 3. Translational MVs from adjacent neighbors. 4. Translational MVs from temporal neighbors. 5. Inherited from non-adjacent neighbors. 6. The first type of constructed affine candidates from non-adjacent neighbors. 7. Zero MVs.

[0149] Due to the inclusion of the additional candidates generated by NA-AFF, the size of the affine merge candidate list is increased from 5 to 15. The subgroup size of ARMC for the affine merge mode is increased from 3 to 15.

[0150] In NA-AFF: 1. The area from where the non-adjacent neighbors come is restricted to be within the current CTU (i.e.,  no additional storage requirements for line buffer) . 2. The storage granularity for affine motion information, including CPMVs and reference indexes, is  reduced from 8x8 to 16x16 (i.e., only the affine motion from the top-left 8x8 block is saved) . Additionally, the saved CPMVs are projected to each 16x16 block before storage, such that the position and size information are not needed. 3. Only the top-left and top-right CPMVs are stored (i.e., always using 4-parameter affine model for NA- AFF) . 2.1.10 Sample-based BDOF

[0151] In the sample-based BDOF, instead of deriving motion refinement (Vx, Vy) on a block basis, it is performed per sample.

[0152] The coding block is divided into 8×8 subblocks. For each subblock, whether to apply BDOF or not is determined by checking the SAD between the two reference subblocks against a threshold. If decided to apply BDOF to a subblock, for every sample in the subblock, a sliding 5×5 window is used and the existing BDOF process is applied for every sliding window to derive Vx and Vy. The derived motion refinement (Vx, Vy) is applied to adjust the bi-predicted sample value for the center sample of the window. 2.1.11 Interpolation

[0153] The 8-tap interpolation filter used in VVC is replaced with a 12-tap filter. The interpolation filter is derived from the sinc function of which the frequency response is cut off at Nyquist frequency and cropped by a cosine window function. Table 2 gives the filter coefficients of all 16 phases. Fig. 13 compares the frequency responses of the interpolation filters with the VVC interpolation filter, all at half-pel phase. Table 2. Filter coefficients of the 12-tap interpolation filter

[0154] For chroman interpolation additional longer 6-tap filters are used. The coefficients of filters are tabulated in Table 3. Table 3. The coefficients of the 6-tap interpolation filter for chroma components. 2.1.12 Multi-hypothesis prediction (MHP)

[0155] In the multi-hypothesis inter prediction mode, one or more additional motion-compensated prediction signals are signaled, in addition to the conventional bi-prediction signal. The resulting overall prediction signal is obtained by sample-wise weighted superposition. With the bi-prediction signal pbi and the first additional inter prediction signal / hypothesis h3, the resulting prediction signal p3 is obtained as follows: p3= (1-α) pbi+αh3

[0156] The weighting factor α is specified by the new syntax element add_hyp_weight_idx, according to the following mapping:

[0157] Analogously to above, more than one additional prediction signal can be used. The resulting overall prediction signal is accumulated iteratively with each additional prediction signal. pn+1= (1-αn+1) pn+αn+1hn+1.

[0158] The resulting overall prediction signal is obtained as the last pn (i.e., the pn having the largest index n) . Within this EE, up to two additional prediction signals can be used (i.e., n is limited to 2) .

[0159] The motion parameters of each additional prediction hypothesis can be signaled either explicitly by specifying the reference index, the motion vector predictor index, and the motion vector difference, or implicitly by specifying a merge index. A separate multi-hypothesis merge flag distinguishes between these two signalling modes.

[0160] For inter AMVP mode, MHP is only applied if non-equal weight in BCW is selected in bi-prediction mode.

[0161] Combination of MHP and BDOF is possible, however the BDOF is only applied to the bi-prediction signal part of the prediction signal (i.e., the ordinary first two hypotheses) . 2.1.13 Pixel based affine motion compensation

[0162] The minimum affine subblock size is changed from 4x4 to 1x1 for both luma and chroma components, 1x1 subblock size allows pixel based affine MC. When affine subblock width or height is smaller than 4, PROF is disabled. 2.1.14 Adaptive reordering of merge candidates with template matching (ARMC-TM)

[0163] The merge candidates are adaptively reordered with template matching (TM) . The reordering method is applied to regular merge mode, TM merge mode, and affine merge mode (excluding the SbTMVP candidate) . For the TM merge mode, merge candidates are reordered before the refinement process.

[0164] An initial merge candidate list is firstly constructed according to given checking order, such as spatial, TMVPs, non-adjacent, HMVPs, pairwise, virtual merge candidates. Then the candidates in the initial list are divided into several subgroups. For the template matching (TM) merge mode, adaptive DMVR mode, each merge candidate in the initial list is firstly refined by using TM / multi-pass DMVR. Merge candidates in each subgroup are reordered to generate a reordered merge candidate list and the reordering is according to cost values based on template matching. The index of selected merge candidate in the reordered merge candidate list is signalled to the decoder. For simplification, merge candidates in the last but not the first subgroup are not reordered. All the zero candidates from the ARMC reordering process are excluded during the construction of Merge motion vector candidates list. The subgroup size is set to 5 for regular merge mode and TM merge mode. The subgroup size is set to 3 for affine merge mode. ● Cost calculation

[0165] The template matching cost of a merge candidate during the reordering process is measured by the SAD between samples of a template of the current block and their corresponding reference samples. The template comprises a set of reconstructed samples neighboring to the current block. Reference samples of the template are located by the motion information of the merge candidate. When a merge candidate utilizes bi-directional prediction, the reference samples of the template of the merge candidate are also generated by bi-prediction as shown in Fig. 14. ● Refinement of the initial merge candidate list

[0166] When multi-pass DMVR is used to derive the refined motion to the initial merge candidate list only the first pass (i.e., PU level) of multi-pass DMVR is applied in reordering. When template matching is used to derive the refined motion, the template size is set equal to 1. Only the above or left template is used during the motion refinement of TM when the block is flat with block width greater than 2 times of height or narrow with height greater than 2 times of width. TM is extended to perform 1 / 16-pel MVD precision. The first four merge candidates are reordered with the refined motion in TM merge mode.

[0167] For subblock-based merge candidates with subblock size equal to Wsub × Hsub, the above template comprises several sub-templates with the size of Wsub × 1, and the left template comprises several sub-templates with the size of 1 × Hsub. As shown in Fig. 15, the motion information of the subblocks in the first row and the first column of current block is used to derive the reference samples of each sub-template. ● Reordering criteria

[0168] In the reordering process, a candidate is considered as redundant if the cost difference between a candidate and its predecessor is inferior to a lambda value e.g. |D1-D2| < λ, where D1 and D2 are the costs obtained during the first ARMC ordering and λ is the Lagrangian parameter used in the RD criterion at encoder side.

[0169] The proposed algorithm is defined as the following: - Determine the minimum cost difference between a candidate and its predecessor among all candidates in  the list. ● If the minimum cost difference is superior or equal to λ, the list is considered diverse enough and the  reordering stops. ● If this minimum cost difference is inferior to λ, the candidate is considered as redundant, and it is  moved at a further position in the list. This further position is the first position where the candidate is diverse enough compared to its predecessor. - The algorithm stops after a finite number of iterations (if the minimum cost difference is not inferior to λ) .

[0170] This algorithm is applied to the Regular, TM, BM and Affine merge modes. A similar algorithm is applied to the Merge MMVD and sign MVD prediction methods which also use ARMC for the reordering.

[0171] The value of λ is set equal to the λ of the rate distortion criterion used to select the best merge candidate at the encoder side for low delay configuration and to the value λ corresponding to a another QP for Random Access configuration. A set of λ values corresponding to each signaled QP offset is provided in the SPS or in the Slice Header for the QP offsets which are not present in the SPS. ● Extension to AMVP modes

[0172] The ARMC design is also applicable to the AMVP mode wherein the AMVP candidates are reordered according to the TM cost. For the template matching for advanced motion vector prediction (TM-AMVP) mode, an initial AMVP candidate list is constructed, followed by a refinement from TM to construct a refined AMVP candidate list. In addition, an MVP candidate with a TM cost larger than a threshold, which is equal to five times of the cost of the first MVP candidate, is skipped.

[0173] Note, when wrap around motion compensation is enabled, the MV candidate shall be clipped with wrap around offset taken into consideration. 2.1.15 MV candidate type based ARMC

[0174] Merge candidates of one single candidate type, e.g., TMVP or non-adjacent MVP (NA-MVP) , are reordered based on the ARMC TM cost values. The reordered candidates are then added into the merge candidate list. The TMVP candidate type adds more TMVP candidates with more temporal positions and different inter prediction directions to perform the reordering and the selection. Moreover, NA-MVP candidate type is further extended with more spatially non-adjacent positions. The target reference picture of the TMVP candidate can be selected from any one of reference picture in the list according to scaling factor. The selected reference picture is the one whose scaling factor is the closest to 1. 2.1.16 TM based reordering for MMVD and affine MMVD

[0175] The MMVD offsets are extended for MMVD and affine MMVD modes. Additional refinement positions along k×π / 8 diagonal angles are added shown in Fig. 16, thus increasing the number of directions from 4 to 16. Second, based on the SAD cost between the template (one row above and one column left to the current block) and its reference for each refinement position, all the possible MMVD refinement positions (16×6) for each base candidate are reordered. Finally, the top 1 / 8 refinement positions with the smallest template SAD costs are kept as available positions, consequently for MMVD index coding. The MMVD index is binarized by the rice code with the parameter equal to 2. The affine MMVD reordering is extended, in which additional refinement positions along k×π / 4 diagonal angles are added. After reordering top 1 / 2 refinement positions with the smallest template SAD costs are kept.

[0176] The first N motion candidates in the candidate list before being reordered are utilized as the base candidates for MMVD and affine MMVD. N is equal to 3 for MMVD, and [1, 3] depending on the neighboring block affine flags for affine MMVD. Two ways of adding MMVD offsets are allowed, including the ‘two-side’ and ‘one-side’ , depending on whether the offset of the other reference picture list is mirrored or directly set to zero. Which way is applied to one block is dependent on the TM cost. 2.1.17 Regression based affine candidate derivation

[0177] The Regression based Motion Vector Field (RMVF) derivation method provides a new variety of subblock-based merge candidate. The motion vectors and center positions from the neighboring subblocks of the current CU, as illustrated in Fig. 17, are used as the input to the linear regression process to derive a set of linear model parameters.

[0178] The subblock motion field from a previous coded affine CU and the motion vectors from the adjacent subblocks of current CU are used as the input for the regression process. The predicted CPMVs for current block are derived as output.

[0179] The regression based affine merge candidates are derived and added to the affine merge list. Subblock motion field from a previously coded affine CU and motion information from adjacent subblocks of a current CU are used as the input to the regression process to derive proposed affine candidates.

[0180] The previously coded affine CU can be identified from scanning through non-adjacent positions and the affine HMVP table.

[0181] Adjacent subblock information of current CU is fetched from 4x4 sub-blocks represented by the grey zone as depicted in Fig. 17. For each sub-block, given a reference list, the corresponding motion vector and center coordinate of the sub-block may be used.

[0182] For each affine CU, up to 2 affine candidates can be derived. One with adjacent subblock information and one without. All the linear-regression-generated candidates are pruned and collected into one candidate sub-group, TM cost based ARMC process is applied when ARMC is enabled. Afterwards, up to N linear-regression-generated candidates are added to the affine merge list when N affine CUs are found. The number of affine candidates for ARMC is 30, the output list size is 15. 2.1.18 Geometric partitioning mode (GPM) with merge motion vector differences (MMVD)

[0183] GPM in VVC is extended by applying motion vector refinement on top of the existing GPM uni-directional MVs. A flag is first signalled for a GPM CU, to specify whether this mode is used. If the mode is used, each geometric partition of a GPM CU can further decide whether to signal MVD or not. If MVD is signalled for a geometric partition, after a GPM merge candidate is selected, the motion of the partition is further refined by the signalled MVDs information. All other procedures are kept the same as in GPM.

[0184] The MVD is signaled as a pair of distance and direction, similar as in MMVD. There are nine candidate distances (1 / 4-pel, 1 / 2-pel, 1-pel, 2-pel, 3-pel, 4-pel, 6-pel, 8-pel, 16-pel) , and eight candidate directions (four horizontal / vertical directions and four diagonal directions) involved in GPM with MMVD (GPM-MMVD) . In addition, when pic_fpel_mmvd_enabled_flag is equal to 1, the MVD is left shifted by 2 as in MMVD. 2.1.19 Geometric partitioning mode (GPM) with adaptive blending

[0185] In VVC, the final prediction samples are generated with by blending the prediction of the two prediction signals using weighted average. Two integer blending matrices (W0 and W1) are used. The weights in the GPM blending matrices are derived from the ramp function based on the displacement from a predicted sample position to the GPM partitioning boundary. The blending area size is fixed to two (2 samples on each side of the GPM partition split boundary) .

[0186] The blending process in ECM is improved by adding four extra blending area sizes (quarter, half, double, and quadrupole of the existing area size) as shown in Fig. 18. A CU level flag is coded to signal the selected blending area size is signalled. Furthermore, the extended weighting precision is utilized, in which the maximum value of the weighs is changed from 8 (in VVC) to 32 to accommodate the extended blending area sizes. 2.1.20 Geometric partitioning mode (GPM) with template matching (TM)

[0187] Template matching is applied to GPM. When GPM mode is enabled for a CU, a CU-level flag is signaled to indicate whether TM is applied to both geometric partitions. Motion information for each geometric partition is refined using TM. When TM is chosen, a template is constructed using left, above or left and above neighboring samples according to partition angle, as shown in Table 4. The motion is then refined by minimizing the difference between the current template and the template in the reference picture using the same search pattern of merge mode with half-pel interpolation filter disabled. Table 4. Template for the 1st and 2nd geometric partitions, where A represents using above samples, L  represents using left samples, and L+A represents using both left and above samples.

[0188] A GPM candidate list is constructed as follows: 1. Interleaved List-0 MV candidates and List-1 MV candidates are derived directly from the regular merge  candidate list, where List-0 MV candidates are higher priority than List-1 MV candidates. A pruning method with an adaptive threshold based on the current CU size is applied to remove redundant MV candidates. 2. Interleaved List-1 MV candidates and List-0 MV candidates are further derived directly from the regular  merge candidate list, where List-1 MV candidates are higher priority than List-0 MV candidates. The same pruning method with the adaptive threshold is also applied to remove redundant MV candidates. 3. Zero MV candidates are padded until the GPM candidate list is full.

[0189] The GPM-MMVD and GPM-TM are exclusively enabled to one GPM CU. This is done by firstly signaling the GPM-MMVD syntax. When both two GPM-MMVD control flags are equal to false (i.e., the GPM-MMVD are disabled for two GPM partitions) , the GPM-TM flag is signaled to indicate whether the template matching is applied to the two GPM partitions. Otherwise (at least one GPM-MMVD flag is equal to true) , the value of the GPM-TM flag is inferred to be false. 2.1.21 GPM with inter and intra prediction

[0190] In GPM with inter and intra prediction, the final prediction samples are generated by weighting inter predicted samples and intra predicted samples for each GPM-separated region. The inter predicted samples are derived by inter GPM whereas the intra predicted samples are derived by an intra prediction mode (IPM) candidate list and an index signaled from the encoder. The IPM candidate list size is pre-defined as 3. The available IPM candidates are the parallel angular mode against the GPM block boundary (Parallel mode) , the perpendicular angular mode against the GPM block boundary (Perpendicular mode) , and the Planar mode as shown in (a) - (c) of Fig. 19, respectively. Furthermore, GPM with intra and intra prediction as shown in (d) of Fig. 19 is restricted to reduce the signalling overhead for IPMs and avoid an increase in the size of the intra prediction circuit on the hardware decoder. In addition, a direct motion vector and IPM storage on the GPM-blending area is introduced to further improve the coding performance.

[0191] In DIMD and neighboring mode based IPM derivation Parallel mode is registered first. Therefore, max two IPM candidates derived from the decoder-side intra mode derivation (DIMD) method and / or the neighboring blocks can be registered if there is not the same IPM candidate in the list. As for the neighboring mode derivation, there are five positions for available neighboring blocks at most, but they are restricted by the angle of GPM block boundary as shown in Table 5, which are already used for GPM with template matching (GPM-TM) . Table 5. The position of available neighboring blocks for IPM candidate derivation based on the angle of GPM  block boundary. A and L denotes the above and left side of the prediction block.

[0192] GPM-intra can be combined with GPM with merge with motion vector difference (GPM-MMVD) . TIMD is used for on IPM candidates of GPM-intra to further improve the coding performance. The Parallel mode can be registered first, then IPM candidates of TIMD, DIMD, and neighboring blocks. 2.1.22 Template matching based reordering for GPM split modes

[0193] In template matching based reordering for GPM split modes, given the motion information of the current GPM block, the respective TM cost values of GPM split modes are computed. Then, all GPM split modes are reordered in ascending ordering based on the TM cost values. Instead of sending GPM split mode, an index using Golomb-Rice code to indicate where the exact GPM split mode located in the reordering list is signaled.

[0194] The reordering method for GPM split modes is a two-step process performed after the respective reference templates of the two GPM partitions in a coding unit are generated, as follows: ● extending GPM partition edge into the reference templates of the two GPM partitions, resulting in 64  reference templates and computing the respective TM cost for each of the 64 reference templates; ● reordering GPM split modes based on their TM cost values in ascending order and marking the best 32 split  modes as available split modes.

[0195] The edge on the template is extended from that of the current CU, as shown in Fig. 20 illustrates, but GPM blending process is not used in the template area across the edge.

[0196] After ascending reordering using TM cost, an index is signaled. 2.1.23 Bi-predictive GPM

[0197] The GPM design in VVC relies on uni-predictive motion vectors to generate motion compensated prediction samples for each inter GPM partition. In ECM, such a design has been extended to allow usage of bi-predictive motion vectors.

[0198] When constructing a GPM candidate list, the extraction process that extracts uni-predictive motion vectors from the initial merge list is invoked only for small blocks 8x8, 16x8 and 8x16. For larger blocks, the extraction process is bypassed, so the initial merge list (which may contain merged Bi-MVs) is directly used as the final GPM merge list. The generation of the initial merge list is the same as before (i.e., the normal merge list generation without any candidate reordering) except that when generating the initial merge list for larger blocks (i.e., blocks with the extraction process bypassed) , the motion vector difference threshold for controlling whether a candidate can be added into the list is increased to be one full sample distance.

[0199] BDOF based motion vector refinement as in the multi-pass DMVR is used when generating motion compensated prediction samples.

[0200] When GPM-MMVD is used for a GPM partition and its base motion vector is bi-predictive, for low-delay pictures, the signalled MVD is applied on top of the L0 and L1 motion vector as in the existing merge MMVD design. For non-low-delay pictures, the bi-predictive motion vector is converted into a uni-predictive motion vector first and then the MVD is applied on top. 2.1.24 Bilateral matching AMVP-merge mode

[0201] The bi-directional predictor is composed of an AMVP predictor in one direction and a merge predictor in the other direction. The mode can be enabled to a coding block when the selected merge predictor and the AMVP predictor satisfy DMVR condition, where there is at least one reference picture from the past and one reference picture from the future relatively to the current picture and the distances from two reference pictures to the current picture are the same, the bilateral matching MV refinement is applied for the merge MV candidate and AMVP MVP as a starting point. Otherwise, if template matching functionality is enabled, template matching MV refinement is applied to the merge predictor or the AMVP predictor which has a higher template matching cost.

[0202] AMVP part of the mode is signaled as a regular uni-directional AMVP, i.e. reference index and MVD are signaled, and it has a derived MVP index if template matching is used or MVP index is signaled when template matching is disabled.

[0203] For AMVP direction LX, X can be 0 or 1, the merge part in the other direction (1 –LX) is implicitly derived by minimizing the bilateral matching cost between the AMVP predictor and a merge predictor, i.e., for a pair of the AMVP and a merge motion vectors. For every merge candidate in the merge candidate list which has that other direction (1 –LX) motion vector, the bilateral matching cost is calculated using the merge candidate MV and the AMVP MV. The merge candidate with the smallest cost is selected. The bilateral matching refinement is applied to the coding block with the selected merge candidate MV and the AMVP MV as a starting point.

[0204] The third pass of multi pass DMVR which is sub-PU BDOF refinement of the multi-pass DMVR is enabled to AMVP-merge mode coded block. Sub-PU size of BDOF is adaptively selected depending on the width×height. For blocks smaller than 256, subblock size of 4×4, and otherwise 8×8 is used. In addition, the following high-precision equations to derive the BDOF MV refinement parameters are utilized: ∑Gx. Gx *vx + ∑Gx. Gy *vy = ∑dI . Gx → s1 *vx + s2 *vy = s3, ∑Gx. Gy *vx + ∑Gy. Gy *vy = ∑dI . Gy → s2 *vx + s5 *vy = s6. where Gx / Gy are the summation of the 2 horizontal / vertical gradients derived for each reference block.

[0205] Summations (Σ) are weighted sums, where weights depend on the position in the target region Ω. The weights can also be applied to derive vx / vy in other cases.

[0206] The mode is indicated by a flag, if the mode is enabled AMVP direction LX is further indicated by a flag.

[0207] When bilateral matching (BM) AMVP-merge mode is used for the current block and template matching is enabled, MVD is not signalled. An additional pair of AMVP-merge MVPs is introduced. The merge candidate list is sorted based on the BM cost in increase order. An index (0 or 1) is signaled to indicate which merge candidate in the sorted merge candidate list to use. When there is only one candidate in merge candidate list, the pair of AMVP MVP and merge MVP without bilateral matching MV refinement is padded. 2.1.25 IBC merge / AMVP list construction

[0208] The IBC merge / AMVP list construction compared to VVC is modified as follows: ● Only if an IBC merge / AMVP candidate is valid, it can be inserted into the IBC merge / AMVP candidate  list. ● Above-right, bottom-left, and above-left spatial candidates (belonging to the adjacent spatial candidate  category) and one pairwise average candidate can be added into the IBC merge / AMVP candidate list. ● Template based adaptive reordering (ARMC-TM) is applied to IBC merge list. ● Candidates from non-adjacent spatial neighboring blocks (a. k. a., non-adjacent candidates) can be added  to the candidate lists of IBC merge modes and IBC AMVP. These non-adjacent candidates are inserted between the adjacent spatial candidates and the HBVP candidates for both IBC merge and IBC AMVP. The same reference area of non-adjacent merge in regular inter mode is reused for the IBC. ● Restriction that adjacent spatial candidates cannot be used for IBC merge of a 4x4 CU is removed.

[0209] The HMVP table size for IBC is increased to 25. After up to 20 IBC merge candidates are derived with full pruning, they are reordered together. After reordering, the first 6 candidates with the lowest template matching costs are selected as the final candidates in the IBC merge list.

[0210] The zero vectors’ candidates to pad the IBC Merge / AMVP list are replaced with a set of BVP candidates located in the IBC reference region. A zero vector is invalid as a block vector in IBC merge mode, and consequently, it is discarded as BVP in the IBC candidate list.

[0211] Three candidates are located on the nearest corners of the reference region, and three additional candidates are determined in the middle of the three sub-regions (A, B, and C) , whose coordinates are determined by the width, and height of the current block and the ΔX and ΔY parameters, as is depicted in Fig. 21.

[0212] During the IBC AMVP list construction, a clustering of the BVP candidates may be applied when both BV candidate components are non-zero. The clustering as shown in Fig. 22 with L2 distance is applied if there are more than 2 valid BV candidates and up to 6 candidates are clustered, the clustering radius is defined as Radius=log2 ( (cbWidth·cbHeight) >>MIN_PU_SIZE) .

[0213] The clustering method is applied in the candidate list order, and the candidates assigned to a group are removed from the list for the subsequent clusters. In each group, the BVP with a lowest TM cost is selected as the representative candidate of that group. Finally, the representative candidates of the two first groups are chosen as the candidates for the IBC AMVP list.

[0214] Furthermore, if one of BV candidate components is zero or block is coded in RRIBC, a flag is signalled to indicate this case with a directional flag indicating horizontal or vertical component is non-zero. Instead of usual IBC AMVP list, two new BVP candidates are derived, and the sign of the non-zero BV component is derived at decoder side. The AMVP BVP0 is set to the nearest valid location to the current block (-cbWidth or -cbHeight) , so the non-zero BVD is always negative, pointing to the left for a BV with a zero vertical component or to the above for a BV with a zero horizontal component. Likewise, the AMVP BVP1 is set to the farthest position from the current block in the valid reference region, that is the left boundary or the top boundary of the IBC search region. Consequently, if the BVP1 is selected, the BVD is always positive, pointing to the right for BV with a zero vertical component or to the bottom for BV with a zero horizontal component.

[0215] The optimal IBC AMVP index is signalled, which allows deriving the sign of the non-zero BVD component at the decoder side. The absolute magnitude of non-zero BVD component is further signalled. In RRIBC, the direction of the flipping mode is derived from the signalled directional flag. 2.1.26 IBC with Template Matching

[0216] Template Matching is used in IBC for both IBC merge mode and IBC AMVP mode.

[0217] The IBC-TM merge list is modified compared to the one used by regular IBC merge mode such that the candidates are selected according to a pruning method with a motion distance between the candidates as in the regular TM merge mode. The ending zero motion fulfillment is replaced by motion vectors to the left (-W, 0) , top (0, -H) and top-left (-W, -H) , where W is the width and H the height of the current CU.

[0218] In the IBC-TM merge mode, the selected candidates are refined with the Template Matching method prior to the RDO or decoding process. The IBC-TM merge mode has been put in competition with the regular IBC merge mode and a TM-merge flag is signaled.

[0219] In the IBC-TM AMVP mode, up to 3 candidates are selected from the IBC-TM merge list. Each of those 3 selected candidates are refined using the Template Matching method and sorted according to their resulting Template Matching cost. Only the 2 first ones are then considered in the motion estimation process as usual.

[0220] The Template Matching refinement for both IBC-TM merge and AMVP modes is quite simple since IBC motion vectors are constrained (i) to be integer and (ii) within a reference region as shown in Fig. 23. So, in IBC-TM merge mode, all refinements are performed at integer precision, and in IBC-TM AMVP mode, they are performed either at integer or 4-pel precision depending on the AMVR value. Such a refinement accesses only to samples without interpolation. In both cases, the refined motion vectors and the used template in each refinement step must respect the constraint of the reference region. 2.1.27 IBC reference area

[0221] The reference area for IBC is extended to two CTU rows above. Fig. 24 illustrates the reference area for coding CTU (m, n) . Specifically, for CTU (m, n) to be coded, the reference area includes CTUs with index (m–2, n–2) … (W, n–2) , (0, n–1) … (W, n–1) , (0, n) … (m, n) , where W denotes the maximum horizontal index within the current tile, slice or picture. When CTU size is 256, the reference area is limited to one CTU row above. This setting ensures that for CTU size being 128 or 256, IBC does not require extra memory in the current ETM platform. The per-sample block vector search (or called local search) range is limited to [– (C << 1) , C >> 2] horizontally and [–C, C >> 2] vertically to adapt to the reference area extension, where C denotes the CTU size. 2.1.28 Fractional pel IBC

[0222] The option of block vector resolutions is extended to include quarter-pel resolution in additional to full-pel and 4-pel. Like inter AMVR syntax, the first bin is signalled to indicate whether BV is in quarter-pel resolution, and the second bin is signalled to switch between full-pel and 4-pel resolutions. The interpolation filters applied to the luma (8-tap) and chroma (6-tap existed inter interpolation) components of an IBC block. For template-based IBC tools, a 2-tap bilinear interpolation filter is applied to generate template prediction blocks. Reference sample padding is performed when some of them are located outside IBC reference area. When needed, it performs in horizontal direction first and then vertical direction. 2.1.29 Filtered IBC prediction

[0223] Additional filtered IBC mode is introduced, where a filter is applied to IBC predictor, which is derived by minimizing MSE between current and reference template.

[0224] Output of the filter is calculated as follows: predLumaVal = c0C + c1N + c2S + c3E + c4W + c5P + c6B.

[0225] The nonlinear term P is represented as power of two of the center sample C and scaled to the sample value range of the content: P = (C*C + midVal) >> bitDepth.

[0226] The bias term B represents a scalar offset between the input and output and is set to middle luma value (512 for 10-bit content) .

[0227] This filtered mode is used as an additional mode for non-merge IBC blocks, and it is not used together with IBC-LIC, IBC-CIIP or RR-IBC. For IBC merge modes, this filtering mode is inherited when merge mode list is constructed. The mode flag is signalled before the IBC-LIC flag. 2.1.30 MVD prediction

[0228] In this method, possible MVD sign combinations and possible combinations of the first 6 most signification suffix bins of MVD magnitudes are sorted according to the template matching cost and index corresponding to the true MVD sign and MVD magnitudes is derived and context coded. At decoder side, the MVD are derived as following: 1. Parse the magnitude of MVD components. 2. Parse context coded MVD prediction index. 3. Build MV candidates by creating combination between possible signs and possible MVD magnitudes  and add it to the MV predictor. 4. Derive MVD prediction cost for each derived MV based on template matching cost and sort. 5. Use the signaled index to pick the true MVD.

[0229] MVD prediction is applied to inter AMVP, affine AMVP, MMVD and affine MMVD modes. Note, when wrap around motion compensation is enabled, the MV candidate shall be clipped with wrap around offset taken into consideration. 2.1.31 BVD prediction

[0230] Similar to MVD prediction, possible BVD sign combinations of IBC mode are sorted according to the template matching cost. Moreover, the first 4 most signification suffix bins of exponential Golomb code used to represent BVD magnitudes is also sorted according to the TM cost. An example is shown in Fig. 25. Template matching operation is used to determine a BVD candidate with the best cost, and indicate in the bitstream whether the best candidate is predicted correctly or not. 2.1.32 Enhanced bi-directional motion compensation

[0231] In bi-directional motion compensation the out of boundary (OOB) prediction samples are discarded and only the non-OOB predictors, when available, are used to generate the final predictor. Specifically, let Pos_xi, j and Pos_yi, j denote the position of one prediction sample in one current block,  and  (x = 0, 1) denote the MV of the current block; PosLeftBdry, PosRightBdry, PosTopBdry and PosBottomBdry are the positions of four boundaries of the picture. One prediction sample is regarded as OOB when at least one of the following conditions is satisfied: where half_pixel is equal to 8 that represents the half-pel sample distance in the 1 / 16-pel sample precision.

[0232] After examining the OOB condition for each sample, the final prediction samples of one bi-directional block are generated as follows: If is OOB and is non-OOB else if is non-OOB and is OOB else OOB checking process is also applicable when BCW is enabled.

[0233] Finally, note this sample-adaptive bi-prediction process only applies to prediction units for which at least a reference bock is first detected as partially or entirely out-of-bounds. Thus, a block-level OOB criteria is first checked. If both prediction blocks are non-OOB, then the usual bi-prediction takes place. 2.1.33 Motion compensated picture boundary padding

[0234] The samples outside of the picture boundary are derived by motion compensation instead of using only repetitive padding. In the implementation, the total padded area size is increased by 16 compared to repetitive padding. This is to keep MV clipping, which implements repetitive padding as shown in Fig. 26.

[0235] For motion compensation padding, MV of a 4×4 boundary block is utilized to derive a M×4 or 4×M padding block. The value M is derived as the distance of the reference block to the picture boundary as shown in Fig. 27. Moreover, M is set at least equal to 4 as soon as the motion vector points to a position internal to the reference picture bounds. If boundary block is intra coded, then MV is not available, and M is set equal to 0. If M is less than 16, the rest of the padded area is filled with the repetitive padded samples.

[0236] In case of bi-directional inter prediction, only one prediction direction, which has a motion vector pointing to the pixel position farther away from the picture boundary in the reference picture in terms of the padding direction, is used in MC boundary padding.

[0237] The pixels in MC padding block are corrected with an offset, which is equal to the difference between the DC values of the reconstructed boundary block and its corresponding reference block. 2.1.34 Block level reference picture list reordering

[0238] A block level reference picture reordering method based on template matching is used. For the uni-prediction AMVP mode, the reference pictures in List 0 and List 1 are interweaved to generate a joint list. For each hypothesis of the reference picture in the joint list template matching is performed to calculate the cost. The joint list is reordered based on ascending order of the template matching cost. The index of the selected reference picture in the reordered joint list is signaled in the bitstream. For the bi-prediction AMVP mode, a list of pairs of reference pictures from List 0 and List 1 is generated and similarly reordered based on the template matching cost. The index of the selected pair is signaled. 2.1.35 Reference picture resampling (RPR)

[0239] Reference picture resampling is inherited from VVC. Compared to the filter lengths in VVC, e.g., 8, 6 and 4 taps for luma affine coded blocks, luma non-affine coded blocks and chroma respectively, the corresponding RPR filters in ECM are increased to 12, 10 and 6 taps. 2.1.36 Reconstruction-Reordered IBC (RR-IBC)

[0240] A Reconstruction-Reordered IBC (RR-IBC) mode is allowed for IBC coded blocks. When RR-IBC is applied, the samples in a reconstruction block are flipped according to a flip type of the current block. At the encoder side, the original block is flipped before motion search and residual calculation, while the prediction block is derived without flipping. At the decoder side, the reconstruction block is flipped back to restore the original block.

[0241] Two flip methods, horizontal flip and vertical flip, are supported for RR-IBC coded blocks. A syntax flag is firstly signalled for an IBC AMVP coded block, indicating whether the reconstruction is flipped, and if it is flipped, another flag is further signaled specifying the flip type. For IBC merge, the flip type is inherited from neighbouring blocks, without syntax signalling. Considering the horizontal or vertical symmetry, the current block and the reference block are normally aligned horizontally or vertically. Therefore, when a horizontal flip is applied, the vertical component of the BV is not signaled and inferred to be equal to 0. Similarly, the horizontal component of the BV is not signaled and inferred to be equal to 0 when a vertical flip is applied.

[0242] To better utilize the symmetry property, a flip-aware BV adjustment approach is applied to refine the block vector candidate. For example, as shown in Fig. 28A (for horizontal flip) and Fig. 28B (for vertical flip) , (xnbr, ynbr) and (xcur, ycur) represent the coordinates of the center sample of the neighbouring block and the current block, respectively, BVnbr and BVcur denotes the BV of the neighbouring block and the current block, respectively. Instead of directly inheriting the BV from a neighbouring block, the horizontal component of BVcur is calculated by adding a motion shift to the horizontal component of BVnbr (denoted as BVnbrh) in case that the neighbouring block is coded with a horizontal flip, i.e., BVcurh =2 (xnbr -xcur) + BVnbrh . Similarly, the vertical component of BVcur is calculated by adding a motion shift to the vertical component of BVnbr (denoted as BVnbrv) in case that the neighbouring block is coded with a vertical flip, i.e., BVcurv =2 (ynbr -ycur) + BVnbrv. 2.1.37 Combination of IBC with other coding tools 2.1.37.1 IBC merge mode with block vector differences (IBC-MBVD)

[0243] Affine-MMVD and GPM-MMVD have been adopted to ECM as an extension of regular MMVD mode. It is natural to extend the MMVD mode to the IBC merge mode.

[0244] In IBC-MBVD, the distance set is {1-pel, 2-pel, 4-pel, 8-pel, 12-pel, 16-pel, 24-pel, 32-pel, 40-pel, 48-pel, 56-pel, 64-pel, 72-pel, 80-pel, 88-pel, 96-pel, 104-pel, 112-pel, 120-pel, 128-pel} , and the BVD directions are two horizontal and two vertical directions.

[0245] The base candidates are selected from the first five candidates in the reordered IBC merge list. And based on the SAD cost between the template (one row above and one column left to the current block) and its reference for each refinement position, all the possible MBVD refinement positions (20×4) for each base candidate are reordered. Finally, the top 8 refinement positions with the lowest template SAD costs are kept as available positions, consequently for MBVD index coding. The MBVD index is binarized by the rice code with the parameter equal to 1.

[0246] In IBC-MBVD list derivation, adaptive BVD offsets along MVBD directions are enabled for IBC MBVD mode. The MBVD candidates search is a two-step process, which starts with checking template SAD costs of offsets added to BVP along each direction with the interval of 1-pel. The second step of the search checks template SAD costs with 1 / 4-pel interval for the candidates around the selected candidates from the first step. For the integer MBVD (when existed in ECM ph_fpel_mbvd_enabled_flag is 0) , those intervals are multiplied by 4. The candidates with the lowest TM cost are included into the final MBVD list.

[0247] An IBC-MBVD coded block does not inherit flip type from a RR-IBC coded neighbor block. 2.1.37.2 Combined intra block copy and intra prediction

[0248] Combined intra block copy and intra prediction (IBC-CIIP) is a coding tool for a CU which uses IBC and intra prediction to obtain two prediction signals, and the two prediction signals are weighted summed to generate the final prediction as follows: P=(wibc*Pibc+ ( (1<<shift) -wibc) *Pintra+ (1<< (shift-1) ) ) >>shift where Pibc and Pintra denote the IBC prediction signal and intra prediction signal. (wibc, shift) are set equal  to (13, 4) and (1, 1) for IBC merge mode and IBC AMVP mode.

[0249] An intra prediction mode (IPM) candidate list is used to generate the intra prediction signal, and the IPM candidate list size is pre-defined as 2. An IPM index is signalled to indicate which IPM is used. 2.1.37.3 IBC with Geometry Partitioning

[0250] Intra block copy with geometry partitioning mode (IBC-GPM) is a coding tool which divides a CU into two sub-partitions geometrically. The prediction signals of the two sub-partitions are generated using IBC and intra prediction. IBC-GPM can be applied to regular IBC merge mode or IBC TM merge mode. An intra prediction mode (IPM) candidate list is constructed using the same method as GPM with inter and intra prediction for intra prediction, and the IPM candidate list size is pre-defined as 3. There are 48 geometry partitioning modes in total, which are divided into two geometry partitioning mode sets as follows: Table 6: Geometry partitioning modes in the first geometry partitioning mode set Table 7: Geometry partitioning modes in the second geometry partitioning mode set

[0251] When IBC-GPM is used, an IBC-GPM geometry partitioning mode set flag is signalled to indicate whether the first or the second geometry partitioning mode set is selected, followed by the geometry partitioning mode index. An IBC-GPM intra flag is signalled to indicate whether intra prediction is used for the first sub-partition. When intra prediction is used for a sub-partition, an intra prediction mode index is signalled. When IBC is used for a sub-partition, a merge index is signalled.

[0252] In bi-predictive IBC GPM, two flags are signalled to indicate the prediction modes of two partitions, the first flag indicates whether the first partition is intra predicted, and if not then the second flag is signalled to indicate whether intra prediction is used for the second partition. This method is applied to SCC only. 2.1.37.4 IBC BVP-merge and bi-predictive IBC merge

[0253] IBC-BVP-merge is similar to AMVP-merge, derives one BV from IBC block vector prediction (BVP) and the second BV from IBC merge to form bi-prediction for IBC. Two different indices for the IBC BVP and the IBC merge candidates are signalled.

[0254] Bi-predictive IBC merge is enabled together with MBVD and uni-merge. In bi-predictive IBC merge, two BVs from the existing IBC merge candidate list are derived, utilizing two different indices, which are signalled. Bi-predictive IBC merge is applied to IBC regular merge and IBC MBVD. Bi-predictive IBC merge, IBC MBVD, and IBC uni-merge are enabled for non-SCC classes. 2.1.37.5 IBC MBVD list derivation

[0255] In the test 2.4a, adaptive BVD offsets along MVBD directions and enabled for IBC MBVD mode. The MBVD candidates search is a two-step process, which starts with checking template SAD costs of offsets added to BVP along each direction with the interval of 1-pel. The second step of the search checks template SAD costs with 1 / 4-pel interval for the candidates around the selected candidates from the first step. For the integer MBVD (when existed in ECM ph_fpel_mbvd_enabled_flag is 0) , those intervals are multiplied by 4. The candidates with the lowest TM cost are included into the final MBVD list. 2.1.37.6 IBC with Local Illumination Compensation

[0256] Intra block copy with local illumination compensation (IBC-LIC) is a coding tool which compensates the local illumination variation within a picture between the CU coded with IBC and its prediction block with a linear equation. The parameters of the linear equation are derived same as LIC for inter prediction except that the reference template is generated using block vector in IBC-LIC. IBC-LIC can be applied to IBC AMVP mode and IBC merge mode. For IBC AMVP mode, an IBC-LIC flag is signalled to indicate the use of IBC-LIC. Top-only, left-only, or L-shape templates are allowed for deriving the single model parameters. MMLM is extended to IBC-LIC, which allows IBC-LIC to have two linear models in one CU. And only L-shape template is used in IBC-LIC MMLM. A mode index is signalled. For IBC merge mode, the IBC-LIC flag is inferred from the merge candidate. The IBC-LIC flag is inherited from an IBC HMVP candidate to harmonize IBC HMVP and IBC-LIC similar to the inter LIC case. 2.1.38 Template matching based BCW index derivation for merge mode

[0257] The BCW index for merge coded CUs is derived based on template matching cost instead of being derived from neighboring blocks. Given a selected merge candidate, the TM cost values are calculated with different bi-prediction weights, and then, the bi-prediction weight with minimum TM cost value is used to predict the merge CU.

[0258] When calculating TM cost for bi-predicted weights, the following rules are applied: - Since the inherited bi-predicted weight is likely to have higher accuracy than others, only the inherited bi- prediction weight and its two neighboring weights (i.e. ±1) are considered. For example, if the inherited bi-predicted weight is 4, then only three weights {3, 4, 5} are involved in TM cost calculation. - The TM cost of the inherited BCW index is multiplied with 0.90625, that is, the cost is reduced by 3 / 32. - The TM cost of the equal weight is multiplied with 0.90625 since bi-predicted samples are beneficial for  BDOF and BDOF is only applied to CU with equal weights.

[0259] The template matching based BCW index derivation is applied to CUs coded in regular merge, template matching, adaptive decoder-side motion vector refinement and MMVD modes.

[0260] In addition, the bi-prediction weights for merge mode are extended from {-2, 3, 4, 5, 10} to {1, 2, 3, 4, 5, 6, 7} . Furthermore, the negative bi-predicted weights for non-merge mode {-2, 10} are replaced with positive weights {1, 7} . 2.1.39 DMVR for affine merge coded blocks

[0261] DMVR is applied to affine merge coded blocks and affine MMVD coded blocks when DMVR condition is satisfied. It is also extended to adaptive BM merge mode.

[0262] An affine motion field is modelized as follows (6-parameters affine case) : where (mvx, mvy) is the motion vector at location (x, y) and (mv0x, mv0y) is the base MV representing the  translation motion of the affine model. Parameters and represent the non-translation parameters (rotation, scaling) .

[0263] Motion vectors (mv0x, mv0y) , (mv1x, mv1y) and (mv2x, mv2y) are called the control point motion vectors (CPMVs) of the considered affine coding unit. In the DMVR process applied to affine, the bilateral matching cost is calculated per subblock. Then, the subblock bilateral matching costs and refined subblock MVs are used to determine the overall best refined CPMVs for the affine block. More specific, the CPMVs are refined according to the following steps: 1) Perform integer-pel bilateral matching for subblocks. Accumulate the subblock bilateral matching cost  to determine the best integer-pel MV offset. 2) Perform half-pel bilateral matching search using the best integer MV offset as initial offset and output  the best MV offset that minimizes the bilateral matching cost for the same set of the subblocks of step 1. 3) Perform linear regression using the refined subblock MVs from step 1 as input and output a set of  control-point motion vectors. 4) Compare the bilateral matching cost of the output of the steps 2 and 3 to select the one with the smallest  cost.

[0264] In addition, the non-translation parameters of affine model are refined after the base MV are determined. Each of CPMVs is fixed as base MV in turn, and an offset is added to the non-translation parameter of affine model by minimizing the bilateral matching cost, and then the other two CPMVs are calculated according to based MV and refined non-translation parameters.

[0265] For affine merge and affine MMVD modes, both CPMVs and non-translation parameters refinements are applied. When applying to affine MMVD mode, the MMVD offset is added to the affine DMVR refined affine merge base candidate if the base candidate meets the affine DMVR refinement condition. For adaptive BM merge mode, an affine merge list that only contains affine merge candidates that meet the affine DMVR conditions are constructed and then CPMVs refinement and non-translation parameters refinement are applied. 2.1.40 InterCCCM

[0266] InterCCCM applies the CCCM method for predicting chroma samples from reconstructed luma samples when the CU uses inter prediction or intra block copy (IBC) . Fig. 29 illustrates the decoder side of the method. The cross-component filters are derived using the prediction blocks of luma and chroma. The derived filters are applied to the reconstructed luma block and blended with the prediction blocks of chroma to produce the final chroma prediction blocks. In the blending process the filtered reconstructed luma blocks use blending weight of 0.75 and chroma prediction blocks use blending weight of 0.25.

[0267] The 8-tap filter consist of 6 spatial luma samples, a nonlinear term, and a bias term. The spatial luma samples (L0, …, L5) are obtained from the luma grid selecting the 6 luma samples closest to the chroma position C without down sampling as shown in Fig. 30. The predicted chroma value is obtained as, predChromaVal = c0 L0+ c1L1 + c2L2 + c3L3 + c4L4 + c5L5 + c6 nonlinear ( (L0+L3+1) >> 1) + c7 B,  where nonlinear is CCCM’s nonlinear operator and B is bias. The filter coefficients are derived using ECM’s division-free Gaussian elimination method and the necessary offsets are applied to samples prior to filter derivation. The offsets for division-free Gaussian elimination method are obtained using a four-point average of the luma and chroma prediction blocks, where the four points correspond to the top-left, top-right, bottom-left and bottom-right corners of the blocks. For filter coefficient derivation at most 256 chroma samples are used.

[0268] Usage of the mode is signalled with a CABAC coded TU level flag. One new CABAC context was included to support this. The InterCCCM flag is only signalled if the TU’s luma Cbf is non-zero and the CU’s predMode is either MODE_INTER or MODE_IBC.

[0269] The encoder performs an RD decision in the transform selection loop for the chroma components when luma Cbf is non-zero and the CU’s predMode is either MODE_INTER or MODE_IBC. 2.1.41 Chained motion vector prediction

[0270] A chained MV prediction (CMVP) is introduced into inter merge candidate list construction.

[0271] As shown in Fig. 31, CMVP candidates can be derived as the accumulation of the recursively traced MVs and BVs based on the pre-derived MVs for the inter merge candidate list. For instance, a CMVP candidate, a set of motion vector MVk / m and reference picture RefPick / m can be derived by MVk / m = MVk (0) + BVk (0) + MVk (1) +MVk (2) + …+ MVk (m) , RefPick / m = RefPick (m) , where k and m indicate the number of merge index and trace depths of the CMVP.

[0272] When deriving MVk / m, MVk (m) is found by checking the existence of MVs or BVs in MV / BV storage corresponding to all five position of the current block as shown in Fig. 32 (i.e., the center, top-left, top-right, bottom-left, and bottom-right of the current block) . The MVs or BVs of the five positions of the current block are also called as guided motion vectors.

[0273] When pre-derived merge candidates targeting CMVP candidates has two MVs, a MVk / m is derived for each merge index, each list (i.e., L0 and L1) , and each trace depth. Up to two MVs can be derived for each list and each trace depth, and the MV set is sequentially inserted into inter merge candidate list.

[0274] The traceable reference pictures are only within the reference picture list.

[0275] CMVP candidates are inserted after HMVP candidates for the regular merge and TM merge.

[0276] When deriving CMVP candidates, hpelIfIdx, bcwIdx, licFlag, and mhpFlag are not inherited.

[0277] CMVP candidates are not derived when the TMVP is disabled. 3 Problems

[0278] Currently, chained motion vector prediction is studied to improve the regular inter merge prediction and IBC merge prediction. The chained motion vector can be extended to the subblock motion vector prediction, AMVP prediction, and DBV mode for higher coding efficiency. 4 Detailed solutions

[0279] The detailed embodiments below should be considered as examples to explain general concepts. These embodiments should not be interpreted in a narrow way. Furthermore, these embodiments can be combined in any manner.

[0280] The terms “video unit” or “coding unit” or “block” may represent a picture, a slice, a tile, a coding tree block (CTB) , a coding tree unit (CTU) , a coding block (CB) , a CU, a PU, a TU, a PB, or a TB.

[0281] The term “prediction unit” may represent a prediction block, or a prediction sample.

[0282] The term “chained motion vector” may refer to a motion vector (or block vector) derived by at least one guided motion vector (or block vector) . It may also refer to an accumulated motion vector derived by adding up at least one motion vector (or block vector) and at least one guided motion vector (or block vector) .

[0283] It is noted that the terminologies mentioned below are not limited to the specific ones defined in existing standards. Any variance of the coding tool is also applicable. 1) For example, subblock based temporal motion vector (e.g., merge sbTMVP, amvp sbTMVP, affine merge,  affne amvp etc. ) may be derived based on chained motion vector. a) For example, the motion shift / predictor of sbTMVP (e.g., merge sbTMVP, amvp sbTMVP, etc. ) may  be derived based on a chained motion vector. i) For example, a candidate motion shift / predictor may be derived by accumulating a guided motion  vector and a cascaded motion vector of such guided motion vector. (1) For example, the guided motion vector may be the motion vector of a spatial neighbor block  adjacent or non-adjacent to the current block. (a) For example, the guided motion vector may be an inter motion vector pointing to a  reference block in a reference picture (e.g., as denoted by lighter arrow in Fig. 33) . (b) Alternatively, for example, the guided motion vector may be an IBC / intraTMP block  vector pointing to a reference block within the current picture (e.g., as denoted by bold arrow in Fig. 33) . (2) For example, the cascaded motion vector may refer to the motion vector of the reference block  retrieved by the guided motion vector. (3) For example, the cascaded motion vector may be stored in a temporal buffer (associated with  the reference block that the guided motion vector points to) . (a) Alternative, for example, the cascaded motion vector may be stored in a local buffer (e.g.,  the guided motion vector is a IBC / intraTMP block vector so that the reference block retrieved by the guided motion vector is located within the current picture) . b) For example, more than one candidate motion shifts / predictors may be derived based on chained motion  vectors. i) For example, the candidate motion shifts / predictors may point to reference blocks in different  reference pictures. (1) For example, furthermore, the reference picture may not be a collocated picture of the current  picture. (a) Alternative, for example, the chained motion vector based candidate motion  shifts / predictors may be required to be scaled or pointed to a reference block within a certain collocated picture. (2) For example, furthermore, the reference picture may not be the nearest reference picture (e.g.,  refIdx=0) of the current picture. (a) Alternative, for example, the chained motion vector based candidate motion  shifts / predictors may be required to be scaled or pointed to the nearest reference picture (e.g., refIdx=0) of the current picture. ii) For example, a final motion shift / predictor may be selected for the subblock based temporal motion  vector prediction. (1) For example, more than one candidate motion shifts / predictors may be sorted based on template  cost, and the one with minimum template cost may be selected. (2) For example, more than one candidate motion shifts / predictors may be checked at the encoder,  and the final one may be signalled in the bitstream (e.g., a candidate index) and transmitted to the decoder. (3) For example, the subblock motion vectors of the current block may be derived based on the  corresponding subblocks retrieved by the motion shift / predictor. c) For example, the amvp with sbTMVP mode may be employed based on a motion vector predictor  (candidate) derived by a chained motion vector. i) For example, the motion vector predictor may be from a motion vector candidate list. (1) Furthermore, for example, the motion vector candidate list may be constructed in the same way  as the regular inter amvp motion list. ii) For example, the motion vector predictor may be used as a base vector for the amvp with sbTMVP  mode. (1) For example, the final motion vector of the amvp with sbTMVP mode may be generated based  on the base vector and a motion vector difference. 2) For example, the motion shift / predictor and / or subblock motion vectors of subblock based temporal motion  vector prediction mode (e.g., merge sbTMVP, amvp sbTMVP, affine merge, affine amvp, etc. ) may point to reference picture (s) beyond collocated / nearest reference picture. Fig. 34 illustrates an example to derive the chained block vector based subblock prediction within the current picture. a) For example, the motion shift / predictor may point to a reference picture that is not a collocated picture  of the current picture. i) For example, additionally, the motion shift / predictor may point to a reference picture that is not the nearest reference picture (e.g., refIdx=0) of the current picture. b) For example, subblock motion vectors of subblock based temporal motion vector prediction mode may  be derived without motion vector scaling. i) For example, subblock motion vector may point to a reference picture that is not a collocated picture  of the current picture. ii) For example, additionally, subblock motion vector may point to a reference picture that is not the nearest reference picture (e.g., refIdx=0) of the current picture. 3) For example, subblock based motion vector prediction may be used for motion compensation within the  current picture. Fig. 34 illustrates an example to derive the chained block vector based subblock prediction within the current picture. a) For example, the block vectors of multiple subblocks in a corresponding coding region within the  current picture may be retrieved by a chained block vector. i) For example, the chained block vector may be derived based on accumulating a guided block vector  and a cascaded block vector of such guided block vector. ii) For example, the block vectors of multiple subblocks in a corresponding coding region may be used  to derive the block vectors of subblocks in the current coding region. b) For example, the granularity of the subblocks may be 4x4 or 8x8. 4) For example, affine prediction may be derived based on chained motion vector (s) . a) For example, affine merge prediction may be conducted based on chained motion vector. i) For example, a temporal block retrieved based on chained motion vectors may be used for affine  merge prediction. ii) For example, the chained motion vector used for affine prediction may be derived by accumulating  a guided motion vector and a cascaded motion vector of such guided motion vector. (1) For example, the guided motion vector may be one of the affine motion candidates in the affine  motion vector list. (2) For example, the chained motion vector may be inserted to the affine motion vector list. (a) For example, furthermore, the chained motion vector may be sorted together with regular  affine motion candidates and a final candidate may be selected based on template cost. iii) For example, the CPMVs of the affine coded temporal block may be inherited for current block’s  affine merge prediction. iv) For example, the affine parameters (e.g., a / b / c / d of affine matrix parameters, refIdx etc. ) of the  affine coded temporal block may be inherited for the current block’s affine merge prediction. b) For example, affine amvp prediction may be conducted based on chained motion vector. i) For example, given a reference index, a temporal block retrieved based on chained motion vectors  may be found and the coding information (e.g., motion vector) associated with such temporal block may be used as a motion candidate for affine amvp CPMV candidate. (1) For example, furthermore, the temporal block may be a block in a reference picture (e.g., in  case the chained motion vector is a motion vector pointing to a reference picture) . (2) For example, furthermore, alternatively, the temporal block may be a block in the current  picture (e.g., in case the chained motion vector is a block vector pointing to a already coded area within the current picture) . ii) For example, furthermore, the chained motion vector may be scaled to the given reference index of  the affine amvp prediction mode. c) For example, the affine motion list may be generated based on at least one chained motion vector. i) For example, a candidate CPMV may be derived by accumulating a guided motion vector and a  cascaded motion vector of such guided motion vector. (1) For example, the guided motion vector may be derived based on a motion vector (or block  vector) of a previous coded block (e.g., a spatial neighbor block, a temporal block, adjacent, or non-adjacent. ) . ii) For example, more than one candidate CPMV may be derived based on chained motion vectors. iii) For example, the CPMVs may be derived without motion vector scaling. (1) For example, the motion shift / predictor may point to a reference picture that is not a collocated  picture of the current picture. 5) For example, inter / IBC amvp prediction may be derived based on chained motion vector (s) . a) For example, a chained motion vector may be derived by accumulating a guided motion vector and a  cascaded motion vector of such guided motion vector. i) For example, the guided motion vector may be a regular motion vector candidate of the amvp mode. ii) For example, the guided motion vector may be derived based on a motion vector (or block vector)  of a previous coded block (e.g., a spatial neighbor block, a temporal block, adjacent, or non-adjacent. ) . b) For example, a chained motion vector may be scaled to the reference index that the inter amvp prediction  is targeting at. c) For example, a chained motion vector may be used as a candidate motion vector predictor for inter / IBC  amvp prediction. d) For example, a chained motion vector may be treated as a new candidate and inserted to inter / IBC amvp  candidate list. i) For example, the chained motion vector may be sorted together with regular inter / IBC amvp  candidates and a final motion vector predictor may be selected based on template cost. ii) For example, alternatively, the final motion vector predictor may be selected at the encoder side  and signalled in the bitstream (e.g., candidate index) . 6) For example, IBV / intraTMP / DBV mode may be derived based on chained motion vector (s) . a) For example, a chained motion vector may be derived by accumulating a guided motion vector and a  cascaded motion vector of such guided motion vector. i) For example, the guided motion vector may be a block / motion vector derived based on a luma  sample located at the top-left / top-right / bottom-left / bottom-right / center of the collocated luma block of the current chroma block. (1) For example, moreover, the guided motion vector may be an inter motion vector pointing to a  reference picture. (2) For example, moreover, the guided motion vector may be a block vector pointing to a already  coded region within the current picture. ii) For example, the guided motion vector may be a block / motion vector derived based on a spatial  block adjacent / non-adjacent to the current block. (1) For example, moreover, the guided motion vector may be an inter motion vector pointing to a  reference picture. (2) For example, moreover, the guided motion vector may be a block vector pointing to a already  coded region within the current picture. iii) For example, the reference block retrieved by the guided motion / block vector may be coded in IBC  or intraTMP mode. (1) For example, the cascaded motion vector may be an IBC / intraTMP block vector. iv) For example, the reference block retrieved by the guided motion / block vector may be coded in inter  mode. (1) For example, the cascaded motion vector may be an inter motion vector. v) For example, the reference block retrieved by the chained motion vector may be required to be  coded as IBC or intraTMP mode. (1) For example, the reference block may be located at the current picture. (2) For example, alternatively, the reference block may be located at an inter reference picture. (3) For example, furthermore, the block vector of such luma reference block may be inherited and  scaled as the block vector of the current chroma block. b) For example, given a DBV / IBC / intraTMP prediction / block in an inter slice, its block vector may be  derived based on a block vector calculated from a reference picture. i) For example, the reference picture may be any available reference picture in the reference picture  list (e.g., not necessarily be the collocated picture) . ii) For example, suppose there is an inter mode coded neighbor block and an IBC / intraTMP coded  temporal reference block retrieved by the motion vector associated with the inter coded neighbor block, the block vector of the temporal reference block may be used as a candidate for the DBV / IBC / intraTMP mode. (1) For example, alternatively, the temporal reference block may be founded based on pre-defined  positions in at least one reference picture. iii) For example, it may be applied for a DBV / intraTMP / IBC prediction / block in an inter slice. c) For example, given a DBV / IBC / intraTMP prediction / block in an inter slice, its block vector may be  derived based on a chained block vector calculated from a reference picture. i) For example, the reference picture may be any available reference picture in the reference picture  list (e.g., not necessarily be the collocated picture) . ii) For example, suppose the IBC / intraTMP coded temporal reference block retrieved by the motion  vector associated with the inter coded neighbor block is denoted as refBlockA, if there is a block vector associated with the reference block of refBlockA (e.g., the reference block of refBlockA is also IBC / intraTMP coded) , a chained block vector may be calculated by adding up the block vector of the reference block of refBlockA and the block vector of the refBlockA. (1) For example, alternatively, the temporal reference block (e.g., refBlockA) may be founded  based on pre-defined positions in at least one reference picture. iii) For example, the chained block vector may be used as a candidate for the DBV / IBC / intraTMP  mode. iv) For example, it may be applied for a DBV / intraTMP / IBC prediction / block in an inter slice. 7) For example, GPM / MMVD / TM / BM merge prediction and / or amvp-merge mode may be derived based on  chained motion vector (s) . a) For example, a chained motion vector may be derived by accumulating a guided motion vector and a  cascaded motion vector of such guided motion vector. i) For example, the guided motion vector may be a regular GPM motion vector candidate of the GPM  (e.g., GPM, GPM MMVD, GPM TM, GPM inter-intra, GPM with affine, etc. ) mode. (1) For example, the chained motion vector (s) may be treated as new candidate (s) and inserted to  the regular GPM motion list. ii) For example, the guided motion vector may be a regular merge motion vector candidate plus an  MMVD vector. (1) For example, the chained motion vector (s) may be treated as new candidate (s) and compared  with the regular MMVD candidates. iii) For example, the guided motion vector may be a TM merge motion vector candidate after template  matching refinement. (1) For example, the chained motion vector (s) may be treated as new candidate (s) and compared  with the regular TM merge candidates. (2) For example, furthermore, the chained motion vector (s) may be further refined by template  matching. iv) For example, the guided motion vector may be a BM merge motion vector candidate after bilateral  matching refinement. (1) For example, the chained motion vector (s) may be treated as new candidate (s) and compared  with the regular BM merge candidates. (2) For example, furthermore, the chained motion vector (s) may be further refined by bilateral  matching. v) For example, the merge part of amvp-merge mode may be derived by a chained motion vector. (1) For example, furthermore, the amvp part of amvp-merge mode may be derived by a chained  motion vector. 8) For example, a chained motion vector may be further refined by decoder derived motion refinement (e.g.,  template matching, and / or bilateral matching, and / or DMVR, and / or BDOF based DMVR, etc) . i) For example, furthermore, the refined chained motion vector may be treated as a motion candidate  and inserted to a motion list. ii) For example, furthermore, the refined chained motion vector may be used for current block’s  motion compensation. iii) For example, furthermore, the refined chained motion vector may be used for current block’s  deblocking. iv) For example, furthermore, the refined chained motion vector may NOT be used for future block’s  coding. (1) For example, alternatively, the refined chained motion vector may be used for future block’s  coding. 9) For example, a history based motion vector may be derived based on chained motion vector. i) For example, a chained motion vector may be inserted to a history based look-up-table. ii) For example, the filling process of the history based look-up-table may follow a rule based on the  occurrence of similar motion vector candidates. (1) For example, if a motion vector candidate has larger occurrence, it may have longer life cycle  in the history table. (2) For example, if a motion vector candidate has less occurrence than other candidates in the  history table, it may be removed and replaced by a candidate with higher occurrence. (3) For example, the occurrence may be calculated based on how many similar motion vectors  founded and the size (sample numbers) of the block for which the motion vector derived.General aspects: 10) The disclosed method may be used for single tree coding. 11) The disclosed method may be used for dual tree coding. 12) The disclosed method may be used for chroma coding. 13) The disclosed method may be used for luma coding. 14) The disclosed method may be used for inter block coding. 15) The disclosed method may be used for IBC / intraTMP / DBV block coding. 16) The disclosed method may be used in an intra (such as I) slice. 17) The disclosed method may be used in an inter (such as B or P or low-delay B) slice. 18) Whether to and / or how to apply the disclosed methods above may be signalled at sequence level / group of  pictures level / picture level / slice level / tile group level, such as in sequence header / picture header / SPS / VPS / DPS / DCI / PPS / APS / slice header / tile group header. 19) Whether to and / or how to apply the disclosed methods above may be signalled at  PB / TB / CB / PU / TU / CU / VPDU / CTU / CTU row / slice / tile / sub-picture / other kinds of region contain more than one sample or pixel. 20) Whether to and / or how to apply the disclosed methods above may be dependent on coded information, such  as block size, colour format, single / dual tree partitioning, colour component, slice / picture type.

[0284] Fig. 35 illustrates a flowchart of a method 3500 for video processing in accordance with embodiments of the present disclosure. The method 3500 is implemented during a conversion between a video unit or a video block of a video and a bitstream of the video.

[0285] At block 3510, for a conversion between a current video block of a video and a bitstream of the video, a chained motion vector of the current video block is determined. The chained motion vector may refer to a motion vector or block vector determined based on at least one of: a guided motion vector, or a guided block vector.

[0286] At block 3520, a subblock based temporal motion vector is determined based on the chained motion vector.

[0287] At block 3530, the conversion is perfromed based on the subblock based temporal motion vector.

[0288] The method 3500 enables using the chained motion vector for obtaining the subblock based temporal motion vector for the conversion. In this way, the coding effectiveness and coding efficiency can be improved.

[0289] In some embodiments, the subblock based temporal motion vector may be determined based on at least one of: a merge subblock-based temporal motion vector prediction (SbTMVP) coding tool, an advanced motion vector prediction subblock-based temporal motion vector prediction (AMVP sbTMVP) coding tool, an affine merge mode, or an affine advanced motion vector prediction (AMVP) coding tool.

[0290] In some embodiments, based on the chained motion vector, at least one of a motion shift or a predictor of a subblock-based temporal motion vector prediction (SbTMVP) may be determined.

[0291] In some embodiments, the subblock-based temporal motion vector prediction may include a merge subblock-based temporal motion vector prediction (SbTMVP) and / or an advanced motion vector prediction subblock-based temporal motion vector prediction (AMVP sbTMVP) .

[0292] In some embodiments, a candidate motion shift and / or a candidate motion predictor may be determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.

[0293] In some embodiments, the guided motion vector may include a motion vector of a spatial neighbor block of the current video block.

[0294] In some embodiments, the guided motion vector may include an inter motion vector pointing to a reference block in a reference picture.

[0295] In some embodiments, the guided motion vector comprises at least one of an intra block copy (IBC) block vector or an intra template matching prediction (TMP) block vector pointing to a reference block within a current picture containing the current video block.

[0296] In some embodiments, the cascaded motion vector comprises a motion vector of a reference block pointed to by the guided motion vector.

[0297] In some embodiments, the cascaded motion vector is stored in a temporal buffer associated with a reference block pointed to by the guided motion vector.

[0298] In some embodiments, the cascaded motion vector is stored in a local buffer.

[0299] In some embodiments, at least one of a plurality of candidate motion shifts or a plurality of candidate motion predictors may be determined based on the chained motion vector.

[0300] In some embodiments, the plurality of candidate motion shifts points to reference blocks in different reference pictures. The plurality of candidate motion predictors may point to reference blocks in different reference pictures.

[0301] In some embodiments, the reference picture excludes a collocated picture of a current picture containing the current video block.

[0302] In some embodiments, the plurality of candidate motion shifts are required to be scaled or pointed to a reference block within a collocated picture. The plurality of candidate motion predictors may be required to be scaled or pointed to a reference block within a collocated picture.

[0303] In some embodiments, the reference picture excludes a nearest reference picture of a current picture containing the current video block.

[0304] In some embodiments, the plurality of candidate motion shifts are required to be scaled or pointed to a nearest reference picture of a current picture. The plurality of candidate motion predictors may be required to be scaled or pointed to a nearest reference picture of a current picture containing the current video block.

[0305] In some embodiments, at least one of a final motion shift or a final motion predictor for the subblock may be determined based temporal motion vector prediction based on the plurality of candidate motion shifts or the plurality of candidate motion predictors.

[0306] In some embodiments, determining the final motion shift or the final motion predictor comprises: sorting at least one of the plurality of candidate motion shifts or the plurality of candidate motion predictors based on template cost; and determining a candidate motion shift with minimum template cost among the plurality of candidate motion shifts as the final motion shift; or determining a candidate motion predictor with minimum template cost among the plurality of candidate motion predictors as the final motion predictor.

[0307] In some embodiments, at least one of the plurality of candidate motion shifts or the plurality of candidate motion predictors may be checked at an encoder; indicating at least one of the final motion shift or the final motion predictor in the bitstream.

[0308] In some embodiments, at least one subblock based on at least one of the final motion shift or the final motion predictor may be determined. A subblock motion vectors of the current video block may be determined based on the at least one subblock.

[0309] In some embodiments, a motion vector predictor based on the chained motion vector may be determined. An advanced motion vector prediction (AMVP) coding tool with a subblock-based temporal motion vector prediction (sbTMVP) mode may be applied.

[0310] In some embodiments, the motion vector predictor is comprised in a motion vector candidate list.

[0311] In some embodiments, the motion vector candidate list is constructed as an inter AMVP motion list.

[0312] In some embodiments, the motion vector predictor is used as a base vector for the AMVP coding tool with the sbTMVP mode.

[0313] In some embodiments, a final motion vector of the AMVP coding tool with the sbTMVP mode is determined based on the base vector and a motion vector difference.

[0314] In some embodiments, at least one of a motion shift, a motion predictor, or a subblock motion vector of a subblock based temporal motion vector prediction mode points to a reference picture, the reference picture being different from at least one of a collocated picture or a nearest reference picture of a current picture containing the current video block.

[0315] In some embodiments, the subblock based temporal motion vector prediction mode comprises at least one of: a merge subblock-based temporal motion vector prediction (SbTMVP) coding tool, an advanced motion vector prediction subblock-based temporal motion vector prediction (AMVP sbTMVP) coding tool, an affine merge mode, or an affine advanced motion vector prediction (AMVP) coding tool.

[0316] In some embodiments, the subblock motion vector of the subblock based temporal motion vector prediction mode is determined without motion vector scaling.

[0317] In some embodiments, a subblock based motion vector prediction is used for motion compensation within a current picture containing the current video block.

[0318] In some embodiments, a first block vector of a first subblock in a first coding region within the current picture is determined based on the chained block vector.

[0319] In some embodiments, the chained block vector is determined based on accumulating the guided block vector and a cascaded block vector of the guided block vector.

[0320] In some embodiments, a first block vector of a first subblock in a first coding region is used to determine a second block vector of a second subblock in a current coding region.

[0321] In some embodiments, a granularity of at least one of the first subblock or the second subblock comprises at least one of 4x4 or 8x8.

[0322] In some embodiments, an affine prediction of the current video block is determined based on the chained motion vector.

[0323] In some embodiments, an affine merge prediction mode is used based on the chained motion vector.

[0324] In some embodiments, a temporal block determined based on the chained motion vector is used for the affine merge prediction.

[0325] In some embodiments, the chained motion vector used for the affine prediction is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.

[0326] In some embodiments, the guided motion vector comprises an affine motion candidate in an affine motion vector list.

[0327] In some embodiments, the chained motion vector is inserted to the affine motion vector list.

[0328] In some embodiments, the chained motion vector and affine motion candidates in the affine motion vector list may be sorted based on template cost. A final candidate may be determined among the chained motion vector and affine motion candidates in the affine motion vector list based on the template cost.

[0329] In some embodiments, a control point motion vector (CPMV) of an affine coded temporal block is inherited for the affine merge prediction of a current block.

[0330] In some embodiments, at least one affine parameter of an affine coded temporal block is inherited for the affine merge prediction of a current block.

[0331] In some embodiments, an affine advanced motion vector prediction (AMVP) mode is used based on the chained motion vector.

[0332] In some embodiments, a temporal block based on the chained motion vector and a reference index may be determined. A motion candidate for an affine AMVP control point motion vector (CPMV) candidate may be determined as coding information associated with the temporal block.

[0333] In some embodiments, the temporal block comprises a block in a reference picture.

[0334] In some embodiments, the chained motion vector comprises a motion vector pointing to the reference picture.

[0335] In some embodiments, the temporal block comprises a block in a current picture containing the current video block.

[0336] In some embodiments, the chained motion vector comprises a block vector pointing to a coded area in the current picture.

[0337] In some embodiments, the chained motion vector is scaled to pointing to a reference picture associated with the reference index of the affine AMVP mode.

[0338] In some embodiments, an affine motion list is determined based on at least one chained motion vector.

[0339] In some embodiments, a candidate control point motion vector (CPMV) is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.

[0340] In some embodiments, the guided motion vector is determined based on at least one of a motion vector or a block vector of a coded block.

[0341] In some embodiments, the coded block comprises at least one of a spatial neighbor block, a temporal block, an adjacent block, or a non-adjacent block.

[0342] In some embodiments, a plurality of candidate control point motion vectors (CPMV) are determined based on the at least one chained motion vector.

[0343] In some embodiments, the plurality of CPMV are determined without motion vector scaling.

[0344] In some embodiments, at least one of a motion shift or a motion predictor points to a reference picture being different from a collocated picture of a current picture containing the current video block.

[0345] In some embodiments, at least one of an inter advanced motion vector prediction (AMVP) prediction or an intra block copy (IBC) AMVP prediction is determined based on at least one chained motion vector.

[0346] In some embodiments, the at least one chained motion vector is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.

[0347] In some embodiments, the guided motion vector comprises a motion vector candidate of an AMVP mode.

[0348] In some embodiments, the guided motion vector is determined based on at least one of a motion vector or a block vector of a coded block.

[0349] In some embodiments, the coded block comprises at least one of: a spatial neighbor block, a temporal block, an adjacent block, or a non-adjacent block.

[0350] In some embodiments, the at least one chained motion vector is scaled to pointing to a reference picture associated with a reference index associated with the inter AMVP prediction.

[0351] In some embodiments, the at least one chained motion vector is used as a candidate motion vector predictor for at least one of the inter AMVP prediction or the IBC AMVP prediction.

[0352] In some embodiments, the at least one chained motion vector is inserted to at least one of an inter AMVP prediction list or an IBC AMVP prediction list.

[0353] In some embodiments, the at least one chained motion vector and at least one of inter AMVP prediction candidates or IBC AMVP prediction candidates may be sorted based on template cost. A final motion vector predictor may be determined based on the template cost.

[0354] In some embodiments, a final motion vector predictor may be determined at an encoder. The final motion vector predictor may be indicated in the bitstream.

[0355] In some embodiments, at least one of an indirect block vector (IBV) mode, an intra template matching prediction (intraTMP) mode, or a direct block vector (DBV) mode is determined based on at least one chained motion vector.

[0356] In some embodiments, the at least one chained motion vector is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.

[0357] In some embodiments, the guided motion vector comprises at least one of a block vector or a motion vector determined based on a luma sample positioning in at least one of top-left, top-right, bottom-left, bottom-right, or center of a collocated luma block of a current chroma block.

[0358] In some embodiments, the guided motion vector comprises an inter motion vector pointing to a reference picture.

[0359] In some embodiments, the guided motion vector comprises a block vector pointing to a coded region in a current picture containing the current video block.

[0360] In some embodiments, the guided motion vector comprises at least one of a block vector or a motion vector determined based on a spatial block adjacent or non-adjacent to the current block.

[0361] In some embodiments, the guided motion vector comprises an inter motion vector pointing to a reference picture.

[0362] In some embodiments, the guided motion vector comprises a block vector pointing to a coded region in a current picture containing the current video block.

[0363] In some embodiments, a reference block determined based on at least one of the guided motion or a block vector is coded in an intra block copy (IBC) mode or an intraTMP mode.

[0364] In some embodiments, the cascaded motion vector comprises at least one of an IBC block vector or an intraTMP block vector.

[0365] In some embodiments, a reference block determined based on at least one of the guided motion or a block vector is coded in an inter mode.

[0366] In some embodiments, the cascaded motion vector comprises an inter motion vector.

[0367] In some embodiments, a reference block determined based on the at least one chained motion vector is required to be coded in an intra block copy (IBC) mode or an intraTMP mode.

[0368] In some embodiments, the reference block is located at a current picture containing the current video block.

[0369] In some embodiments, the reference block is located at an inter reference picture.

[0370] In some embodiments, a block vector of a luma reference block is inherited and scaled as a block vector of a current chroma block.

[0371] In some embodiments, a block vector is determined based on a further block vector determined from a reference picture, the block vector being associated with at least one of a DBV prediction, an intra block copy (IBC) prediction, an intraTMP prediction, or a block in an inter slice.

[0372] In some embodiments, the reference picture comprises an available reference picture in a reference picture list.

[0373] In some embodiments, a block vector of a temporal reference block is used as a candidate for a DBV mode, an IBC mode, or an intraTMP mode, wherein the temporal reference block is determined by a motion vector associated with an inter coded neighbor block, and the temporal reference block is coded based on at least one of an IBC mode or an intraTMP mode.

[0374] In some embodiments, the temporal reference block is determined based on at least one pre-defined position in at least one reference picture.

[0375] In some embodiments, the block vector is applied for at least one of the DBV prediction, the intra block copy (IBC) prediction, the intraTMP prediction, or the block in the inter slice.

[0376] In some embodiments, a block vector is determined based on a chained block vector determined based on a reference picture, the block vector being associated with at least one of a DBV prediction, an intra block copy (IBC) prediction, an intraTMP prediction, or a block in an inter slice.

[0377] In some embodiments, the reference picture comprises an available reference picture in a reference picture list.

[0378] In some embodiments, in accordance with a determination that a block vector is associated with a reference block of a temporal reference block determined based on a motion vector associated with an inter coded neighbor block, the chained block vector is determined by adding up the block vector associated with the reference block of the temporal reference block and a further block vector of the temporal reference block.

[0379] In some embodiments, the temporal reference block is coded in an IBC mode or an intraTMP mode.

[0380] In some embodiments, a temporal reference block is determined based on at least one pre-defined position in at least one reference picture.

[0381] In some embodiments, the chained block vector is used as a candidate for at least one of a DBV mode, an IBC mode, or an intraTMP mode.

[0382] In some embodiments, the block vector is applied for at least one of the DBV prediction, the IBC prediction, the intraTMP prediction, or the block in an inter slice.

[0383] In some embodiments, at least one of a geometric partitioning mode (GPM) merge prediction mode, a merge motion vector differences (MMVD) merge prediction mode, a template matching (TM) merge prediction mode, a bilateral matching (BM) merge prediction mode, or an advanced motion vector prediction (AMVP) -merge mode is determined based on at least one chained motion vector.

[0384] In some embodiments, the at least one chained motion vector is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.

[0385] In some embodiments, the at least one chained motion vector comprises a regular GPM motion vector candidate of a GPM mode.

[0386] In some embodiments, the GPM mode comprises at least one of: a GPM mode, a GPM MMVD mode, a GPM TM mode, a GPM inter-intra mode, or a GPM mode with affine.

[0387] In some embodiments, 100. The method of claim 98 or claim 99, the at least one chained motion vector is used as a candidate and inserted to a regular GPM motion list.

[0388] In some embodiments, the guided motion vector is determined based on at least one of a regular merge motion vector candidate or an MMVD vector.

[0389] In some embodiments, the guided motion vector is determined as the regular merge motion vector candidate plus the MMVD vector.

[0390] In some embodiments, the at least one chained motion vector is used as a candidate and compared with at least one regular MMVD candidate.

[0391] In some embodiments, the guided motion vector comprises a TM merge motion vector candidate after a template matching refinement.

[0392] In some embodiments, the at least one chained motion vector is used as a candidate and compared with at least one regular TM merge candidate.

[0393] In some embodiments, the at least one chained motion vector is refined by template matching.

[0394] In some embodiments, the guided motion vector comprises a BM merge motion vector candidate after a bilateral matching refinement.

[0395] In some embodiments, the at least one chained motion vector is used as a candidate and compared with at least one regular BM merge candidate.

[0396] In some embodiments, the at least one chained motion vector is refined by bilateral matching.

[0397] In some embodiments, a merge part of the AMVP-merge mode is determined based on the at least one chain motion vector.

[0398] In some embodiments, an AMVP part of the AMVP-merge mode is determined based on the at least one chain motion vector.

[0399] In some embodiments, the chained motion vector is refined by a decoder derived motion refinement.

[0400] In some embodiments, the decoder derived motion refinement comprises at least one of: template matching, bilateral matching, decoder-side motion vector refinement (DMVR) , or bi-directional optical flow (BDOF) based DMVR.

[0401] In some embodiments, the refined chained motion vector is used as a motion candidate and inserted to a motion list.

[0402] In some embodiments, the refined chained motion vector is used for motion compensation of the current video block.

[0403] In some embodiments, the refined chained motion vector is used for deblocking the current video block.

[0404] In some embodiments, the refined chained motion vector is not used for coding a future block.

[0405] In some embodiments, the refined chained motion vector is used for coding a future block.

[0406] In some embodiments, a history based motion vector is determined based on the chained motion vector.

[0407] In some embodiments, the chained motion vector is inserted to a history based look-up-table.

[0408] In some embodiments, the history based look-up-table is constructed based on a rule associated with an occurrence of redundant motion vector candidates, differences between the redundant motion vector candidates and a motion vector candidate in the history based look-up-table being less than a threshold.

[0409] In some embodiments, a life cycle of a motion vector candidate in the history based look-up-table is positively correlated with an occurrence of the motion vector candidate.

[0410] In some embodiments, in accordance with a determination that a motion vector candidate has an occurrence less than other motion vector candidates in the history based look-up-table, the motion vector candidate is removed and replaced by a motion vector candidate with a higher occurrence.

[0411] In some embodiments, the occurrence of a motion vector candidate is determined based on a number of redundant motion vectors and a size of a block associated with the motion vector candidate.

[0412] In some embodiments, the method 3500 is used for single tree coding, and / or dual tree coding. The method 3500 may be used for chroma coding, and / or luma coding.

[0413] In some embodiments, the method is used for inter block coding.

[0414] In some embodiments, the method is used for intra block copy (IBC) block coding, intra template matching prediction (intraTMP) block coding, direct block vector (DBV) block coding, and / or the like.

[0415] In some embodiments, the method is used in an intra slice and / or inter slice.

[0416] an interIn some embodiments, whether to and / or how to apply the method 3500 is indicated at one of the following: a sequence level, a group of pictures level, a picture level, a slice level, or a tile group level.

[0417] In some embodiments, whether to and / or how to apply the method 3500 is indicated at one of the following: a sequence header, a picture header, a sequence parameter set (SPS) , a video parameter set (VPS) , a dependency parameter set (DPS) , a decoding capability information (DCI) , a picture parameter set (PPS) , an adaptation parameter sets (APS) , a slice header, or a tile group header.

[0418] In some embodiments, whether to and / or how to apply the method is indicated at one of the following: a prediction block (PB) , a transform block (TB) , a coding block (CB) , a prediction unit (PU) , a transform unit (TU) , a coding unit (CU) , a coding tree block (CTB) , a coding tree unit (CTU) , a CTU row, a slice, a tile, a sub-picture, or a region including more than one sample or pixel.

[0419] In some embodiments, based on coded information of the current video block, whether to and / or how to apply the method may be determined, the coded information including at least one of: a block size, a colour format, a single and / or dual tree partitioning, a colour component, a slice type, or a picture type.

[0420] In some embodiments, the conversion includes encoding the current video block into the bitstream.

[0421] In some embodiments, the conversion includes decoding the current video block from the bitstream.

[0422] According to further embodiments of the present disclosure, a non-transitory computer-readable recording medium is provided. The non-transitory computer-readable recording medium stores a bitstream of a video which is generated by a method performed by an apparatus for video processing. In the method, a chained motion vector of a current video block of the video is determined. The chained motion vector comprises a motion vector or block vector determined based on at least one of: a guided motion vector, or a guided block vector. A subblock based temporal motion vector is determined based on the chained motion vector. The bitstream is generated based on the subblock based temporal motion vector.

[0423] According to still further embodiments of the present disclosure, a method for storing bitstream of a video is provided. In the method, a chained motion vector of a current video block of the video is determined. The chained motion vector comprises a motion vector or block vector determined based on at least one of: a guided motion vector, or a guided block vector. A subblock based temporal motion vector is determined based on the chained motion vector. The bitstream is generated based on the subblock based temporal motion vector. The bitstream is stored in a non-transitory computer-readable recording medium.

[0424] Implementations of the present disclosure can be described in view of the following clauses, the features of which can be combined in any reasonable manner.

[0425] Clause 1. A method for video processing, comprising: determining, for a conversion between a current video block of a video and a bitstream of the video, a chained motion vector of the current video block, the chained motion vector comprising a motion vector or block vector determined based on at least one of: a guided motion vector, or a guided block vector; determining a subblock based temporal motion vector based on the chained motion vector; and performing the conversion based on the subblock based temporal motion vector.

[0426] Clause 2. The method of clause 1, wherein the subblock based temporal motion vector is determined based on at least one of: a merge subblock-based temporal motion vector prediction (SbTMVP) coding tool, an advanced motion vector prediction subblock-based temporal motion vector prediction (AMVP sbTMVP) coding tool, an affine merge mode, or an affine advanced motion vector prediction (AMVP) coding tool.

[0427] Clause 3. The method of clause 1 or claim 2, further comprising: determining, based on the chained motion vector, at least one of a motion shift or a predictor of a subblock-based temporal motion vector prediction (SbTMVP) .

[0428] Clause 4. The method of clause 3, wherein the subblock-based temporal motion vector prediction comprises at least one of a merge subblock-based temporal motion vector prediction (SbTMVP) or an advanced motion vector prediction subblock-based temporal motion vector prediction (AMVP sbTMVP) .

[0429] Clause 5. The method of any of clauses 1 to 4, further comprising: determining at least one of a candidate motion shift or a candidate motion predictor by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.

[0430] Clause 6. The method of clause 5, wherein the guided motion vector comprises a motion vector of a spatial neighbor block of the current video block.

[0431] Clause 7. The method of clause 5 or claim 6, wherein the guided motion vector comprises an inter motion vector pointing to a reference block in a reference picture.

[0432] Clause 8. The method of clause 5 or claim 6, wherein the guided motion vector comprises at least one of an intra block copy (IBC) block vector or an intra template matching prediction (TMP) block vector pointing to a reference block within a current picture containing the current video block.

[0433] Clause 9. The method of any of clauses 5 to 8, wherein the cascaded motion vector comprises a motion vector of a reference block pointed to by the guided motion vector.

[0434] Clause 10. The method of any of clauses 5 to 9, wherein the cascaded motion vector is stored in a temporal buffer associated with a reference block pointed to by the guided motion vector.

[0435] Clause 11. The method of any of clauses 5 to 9, wherein the cascaded motion vector is stored in a local buffer.

[0436] Clause 12. The method of any of clauses 1 to 11, further comprising: determining at least one of a plurality of candidate motion shifts or a plurality of candidate motion predictors based on the chained motion vector.

[0437] Clause 13. The method of clause 12, wherein the plurality of candidate motion shifts points to reference blocks in different reference pictures, and / or the plurality of candidate motion predictors points to reference blocks in different reference pictures.

[0438] Clause 14. The method of clause 13, wherein the reference picture excludes a collocated picture of a current picture containing the current video block.

[0439] Clause 15. The method of clause 13, wherein the plurality of candidate motion shifts are required to be scaled or pointed to a reference block within a collocated picture, and / or the plurality of candidate motion predictors are required to be scaled or pointed to a reference block within a collocated picture.

[0440] Clause 16. The method of any of clauses 13 to 15, wherein the reference picture excludes a nearest reference picture of a current picture containing the current video block.

[0441] Clause 17. The method of any of clauses 13 to 15, wherein the plurality of candidate motion shifts are required to be scaled or pointed to a nearest reference picture of a current picture, and / or the plurality of candidate motion predictors are required to be scaled or pointed to a nearest reference picture of a current picture containing the current video block.

[0442] Clause 18. The method of any of clauses 12 to 17, further comprising: determining at least one of a final motion shift or a final motion predictor for the subblock based temporal motion vector prediction based on the plurality of candidate motion shifts or the plurality of candidate motion predictors.

[0443] Clause 19. The method of clause 18, wherein determining the final motion shift or the final motion predictor comprises: sorting at least one of the plurality of candidate motion shifts or the plurality of candidate motion predictors based on template cost; and determining a candidate motion shift with minimum template cost among the plurality of candidate motion shifts as the final motion shift; or determining a candidate motion predictor with minimum template cost among the plurality of candidate motion predictors as the final motion predictor.

[0444] Clause 20. The method of clause 18, further comprising: checking at least one of the plurality of candidate motion shifts or the plurality of candidate motion predictors at an encoder; indicating at least one of the final motion shift or the final motion predictor in the bitstream.

[0445] Clause 21. The method of clause 18, further comprising: determining at least one subblock based on at least one of the final motion shift or the final motion predictor; and determining a subblock motion vectors of the current video block based on the at least one subblock.

[0446] Clause 22. The method of any of clauses 1 to 21, further comprising: determining a motion vector predictor based on the chained motion vector; and applying an advanced motion vector prediction (AMVP) coding tool with a subblock-based temporal motion vector prediction (sbTMVP) mode.

[0447] Clause 23. The method of clause 22, wherein the motion vector predictor is comprised in a motion vector candidate list.

[0448] Clause 24. The method of clause 23, wherein the motion vector candidate list is constructed as an inter AMVP motion list.

[0449] Clause 25. The method of clause 22, wherein the motion vector predictor is used as a base vector for the AMVP coding tool with the sbTMVP mode.

[0450] Clause 26. The method of clause 25, wherein a final motion vector of the AMVP coding tool with the sbTMVP mode is determined based on the base vector and a motion vector difference.

[0451] Clause 27. The method of any of clauses 1 to 26, wherein at least one of a motion shift, a motion predictor, or a subblock motion vector of a subblock based temporal motion vector prediction mode points to a reference picture, the reference picture being different from at least one of a collocated picture or a nearest reference picture of a current picture containing the current video block.

[0452] Clause 28. The method of clause 27, wherein the subblock based temporal motion vector prediction mode comprises at least one of: a merge subblock-based temporal motion vector prediction (SbTMVP) coding tool, an advanced motion vector prediction subblock-based temporal motion vector prediction (AMVP sbTMVP) coding tool, an affine merge mode, or an affine advanced motion vector prediction (AMVP) coding tool.

[0453] Clause 29. The method of any of clauses 27 to 28, wherein the subblock motion vector of the subblock based temporal motion vector prediction mode is determined without motion vector scaling.

[0454] Clause 30. The method of any of clauses 1 to 29, wherein a subblock based motion vector prediction is used for motion compensation within a current picture containing the current video block.

[0455] Clause 31. The method of clause 30, wherein a first block vector of a first subblock in a first coding region within the current picture is determined based on the chained block vector.

[0456] Clause 32. The method of clause 30 or claim 31, wherein the chained block vector is determined based on accumulating the guided block vector and a cascaded block vector of the guided block vector.

[0457] Clause 33. The method of any of clauses 30 to 32, wherein a first block vector of a first subblock in a first coding region is used to determine a second block vector of a second subblock in a current coding region.

[0458] Clause 34. The method of clause 33, wherein a granularity of at least one of the first subblock or the second subblock comprises at least one of 4x4 or 8x8.

[0459] Clause 35. The method of any of clauses 1 to 34, wherein an affine prediction of the current video block is determined based on the chained motion vector.

[0460] Clause 36. The method of clause 35, wherein an affine merge prediction mode is used based on the chained motion vector.

[0461] Clause 37. The method of clause 36, wherein a temporal block determined based on the chained motion vector is used for the affine merge prediction.

[0462] Clause 38. The method of any of clauses 35 to 37, wherein the chained motion vector used for the affine prediction is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.

[0463] Clause 39. The method of clause 38, wherein the guided motion vector comprises an affine motion candidate in an affine motion vector list.

[0464] Clause 40. The method of clause 39, wherein the chained motion vector is inserted to the affine motion vector list.

[0465] Clause 41. The method of clause 40, further comprising: sorting the chained motion vector and affine motion candidates in the affine motion vector list based on template cost; and determining a final candidate among the chained motion vector and affine motion candidates in the affine motion vector list based on the template cost.

[0466] Clause 42. The method of any of clauses 36 to 41, wherein a control point motion vector (CPMV) of an affine coded temporal block is inherited for the affine merge prediction of a current block.

[0467] Clause 43. The method of any of clauses 36 to 42, wherein at least one affine parameter of an affine coded temporal block is inherited for the affine merge prediction of a current block.

[0468] Clause 44. The method of any of clauses 35 to 43, wherein an affine advanced motion vector prediction (AMVP) mode is used based on the chained motion vector.

[0469] Clause 45. The method of clause 44, further comprising: determining a temporal block based on the chained motion vector and a reference index; and determining a motion candidate for an affine AMVP control point motion vector (CPMV) candidate as coding information associated with the temporal block.

[0470] Clause 46. The method of clause 45, wherein the temporal block comprises a block in a reference picture.

[0471] Clause 47. The method of clause 46, wherein the chained motion vector comprises a motion vector pointing to the reference picture.

[0472] Clause 48. The method of clause 45, wherein the temporal block comprises a block in a current picture containing the current video block.

[0473] Clause 49. The method of clause 48, wherein the chained motion vector comprises a block vector pointing to a coded area in the current picture.

[0474] Clause 50. The method of any of clauses 45 to 49, wherein the chained motion vector is scaled to pointing to a reference picture associated with the reference index of the affine AMVP mode.

[0475] Clause 51. The method of any of clauses 35 to 50, wherein an affine motion list is determined based on at least one chained motion vector.

[0476] Clause 52. The method of clause 51, wherein a candidate control point motion vector (CPMV) is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.

[0477] Clause 53. The method of clause 52, wherein the guided motion vector is determined based on at least one of a motion vector or a block vector of a coded block.

[0478] Clause 54. The method of clause 53, wherein the coded block comprises at least one of a spatial neighbor block, a temporal block, an adjacent block, or a non-adjacent block.

[0479] Clause 55. The method of any of clauses 51 to 54, wherein a plurality of candidate control point motion vectors (CPMV) are determined based on the at least one chained motion vector.

[0480] Clause 56. The method of clause 55, wherein the plurality of CPMV are determined without motion vector scaling.

[0481] Clause 57. The method of clause 56, wherein at least one of a motion shift or a motion predictor points to a reference picture being different from a collocated picture of a current picture containing the current video block.

[0482] Clause 58. The method of any of clauses 1 to 57, wherein at least one of an inter advanced motion vector prediction (AMVP) prediction or an intra block copy (IBC) AMVP prediction is determined based on at least one chained motion vector.

[0483] Clause 59. The method of clause 58, wherein the at least one chained motion vector is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.

[0484] Clause 60. The method of clause 59, wherein the guided motion vector comprises a motion vector candidate of an AMVP mode.

[0485] Clause 61. The method of clause 59 or claim 60, wherein the guided motion vector is determined based on at least one of a motion vector or a block vector of a coded block.

[0486] Clause 62. The method of clause 61, wherein the coded block comprises at least one of: a spatial neighbor block, a temporal block, an adjacent block, or a non-adjacent block.

[0487] Clause 63. The method of any of clauses 58 to 62, wherein the at least one chained motion vector is scaled to pointing to a reference picture associated with a reference index associated with the inter AMVP prediction.

[0488] Clause 64. The method of any of clauses 58 to 63, wherein the at least one chained motion vector is used as a candidate motion vector predictor for at least one of the inter AMVP prediction or the IBC AMVP prediction.

[0489] Clause 65. The method of any of clauses 58 to 64, wherein the at least one chained motion vector is inserted to at least one of an inter AMVP prediction list or an IBC AMVP prediction list.

[0490] Clause 66. The method of clause 65, further comprising: sorting the at least one chained motion vector and at least one of inter AMVP prediction candidates or IBC AMVP prediction candidates based on template cost; and determining a final motion vector predictor based on the template cost.

[0491] Clause 67. The method of clause 65, further comprising: determining a final motion vector predictor at an encoder; and indicating the final motion vector predictor in the bitstream.

[0492] Clause 68. The method of any of clauses 1 to 67, wherein at least one of an indirect block vector (IBV) mode, an intra template matching prediction (intraTMP) mode, or a direct block vector (DBV) mode is determined based on at least one chained motion vector.

[0493] Clause 69. The method of clause 68, wherein the at least one chained motion vector is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.

[0494] Clause 70. The method of clause 69, wherein the guided motion vector comprises at least one of a block vector or a motion vector determined based on a luma sample positioning in at least one of top-left, top-right, bottom-left, bottom-right, or center of a collocated luma block of a current chroma block.

[0495] Clause 71. The method of clause 69 or claim 70, wherein the guided motion vector comprises an inter motion vector pointing to a reference picture.

[0496] Clause 72. The method of clause 69 or claim 70, wherein the guided motion vector comprises a block vector pointing to a coded region in a current picture containing the current video block.

[0497] Clause 73. The method of clause 69, wherein the guided motion vector comprises at least one of a block vector or a motion vector determined based on a spatial block adjacent or non-adjacent to the current block.

[0498] Clause 74. The method of clause 73, wherein the guided motion vector comprises an inter motion vector pointing to a reference picture.

[0499] Clause 75. The method of clause 73, wherein the guided motion vector comprises a block vector pointing to a coded region in a current picture containing the current video block.

[0500] Clause 76. The method of any of claim 69 to 75, wherein a reference block determined based on at least one of the guided motion or a block vector is coded in an intra block copy (IBC) mode or an intraTMP mode.

[0501] Clause 77. The method of clause 76, wherein the cascaded motion vector comprises at least one of an IBC block vector or an intraTMP block vector.

[0502] Clause 78. The method of any of claim 69 to 75, wherein a reference block determined based on at least one of the guided motion or a block vector is coded in an inter mode.

[0503] Clause 79. The method of clause 78, wherein the cascaded motion vector comprises an inter motion vector.

[0504] Clause 80. The method of any of claim 69 to 79, wherein a reference block determined based on the at least one chained motion vector is required to be coded in an intra block copy (IBC) mode or an intraTMP mode.

[0505] Clause 81. The method of clause 80, wherein the reference block is located at a current picture containing the current video block.

[0506] Clause 82. The method of clause 80, wherein the reference block is located at an inter reference picture.

[0507] Clause 83. The method of clause 80, wherein a block vector of a luma reference block is inherited and scaled as a block vector of a current chroma block.

[0508] Clause 84. The method of any of clauses 78 to 83, wherein a block vector is determined based on a further block vector determined from a reference picture, the block vector being associated with at least one of a DBV prediction, an intra block copy (IBC) prediction, an intraTMP prediction, or a block in an inter slice.

[0509] Clause 85. The method of clause 84, wherein the reference picture comprises an available reference picture in a reference picture list.

[0510] Clause 86. The method of clause 84 or claim 85, wherein a block vector of a temporal reference block is used as a candidate for a DBV mode, an IBC mode, or an intraTMP mode, wherein the temporal reference block is determined by a motion vector associated with an inter coded neighbor block, and the temporal reference block is coded based on at least one of an IBC mode or an intraTMP mode.

[0511] Clause 87. The method of clause 86, wherein the temporal reference block is determined based on at least one pre-defined position in at least one reference picture.

[0512] Clause 88. The method of any of clauses 84 to 87, wherein the block vector is applied for at least one of the DBV prediction, the intra block copy (IBC) prediction, the intraTMP prediction, or the block in the inter slice.

[0513] Clause 89. The method of any of clauses 68 to 83, wherein a block vector is determined based on a chained block vector determined based on a reference picture, the block vector being associated with at least one of a DBV prediction, an intra block copy (IBC) prediction, an intraTMP prediction, or a block in an inter slice.

[0514] Clause 90. The method of clause 89, wherein the reference picture comprises an available reference picture in a reference picture list.

[0515] Clause 91. The method of clause 89 or claim 90, wherein in accordance with a determination that a block vector is associated with a reference block of a temporal reference block determined based on a motion vector associated with an inter coded neighbor block, the chained block vector is determined by adding up the block vector associated with the reference block of the temporal reference block and a further block vector of the temporal reference block.

[0516] Clause 92. The method of clause 91, wherein the temporal reference block is coded in an IBC mode or an intraTMP mode.

[0517] Clause 93. The method of clause 89 or claim 90, wherein a temporal reference block is determined based on at least one pre-defined position in at least one reference picture.

[0518] Clause 94. The method of any of claim 89 to 93, wherein the chained block vector is used as a candidate for at least one of a DBV mode, an IBC mode, or an intraTMP mode.

[0519] Clause 95. The method of any of claim 89 to 94, wherein the block vector is applied for at least one of the DBV prediction, the IBC prediction, the intraTMP prediction, or the block in an inter slice.

[0520] Clause 96. The method of any of claim 1 to 95, wherein at least one of a geometric partitioning mode (GPM) merge prediction mode, a merge motion vector differences (MMVD) merge prediction mode, a template matching (TM) merge prediction mode, a bilateral matching (BM) merge prediction mode, or an advanced motion vector prediction (AMVP) -merge mode is determined based on at least one chained motion vector.

[0521] Clause 97. The method of clause 96, wherein the at least one chained motion vector is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.

[0522] Clause 98. The method of clause 97, wherein the at least one chained motion vector comprises a regular GPM motion vector candidate of a GPM mode.

[0523] Clause 99. The method of clause 98, wherein the GPM mode comprises at least one of: a GPM mode, a GPM MMVD mode, a GPM TM mode, a GPM inter-intra mode, or a GPM mode with affine.

[0524] Clause 100. The method of clause 98 or claim 99, the at least one chained motion vector is used as a candidate and inserted to a regular GPM motion list.

[0525] Clause 101. The method of clause 97, wherein the guided motion vector is determined based on at least one of a regular merge motion vector candidate or an MMVD vector.

[0526] Clause 102. The method of clause 101, wherein the guided motion vector is determined as the regular merge motion vector candidate plus the MMVD vector.

[0527] Clause 103. The method of clause 101 or claim 102, wherein the at least one chained motion vector is used as a candidate and compared with at least one regular MMVD candidate.

[0528] Clause 104. The method of clause 97, wherein the guided motion vector comprises a TM merge motion vector candidate after a template matching refinement.

[0529] Clause 105. The method of clause 104, wherein the at least one chained motion vector is used as a candidate and compared with at least one regular TM merge candidate.

[0530] Clause 106. The method of clause 104 or claim 105, wherein the at least one chained motion vector is refined by template matching.

[0531] Clause 107. The method of clause 97, wherein the guided motion vector comprises a BM merge motion vector candidate after a bilateral matching refinement.

[0532] Clause 108. The method of clause 107, wherein the at least one chained motion vector is used as a candidate and compared with at least one regular BM merge candidate.

[0533] Clause 109. The method of clause 107 or claim 108, wherein the at least one chained motion vector is refined by bilateral matching.

[0534] Clause 110. The method of clause 97, wherein a merge part of the AMVP-merge mode is determined based on the at least one chain motion vector.

[0535] Clause 111. The method of clause 110, wherein an AMVP part of the AMVP-merge mode is determined based on the at least one chain motion vector.

[0536] Clause 112. The method of any of clauses 1 to 111, wherein the chained motion vector is refined by a decoder derived motion refinement.

[0537] Clause 113. The method of clause 112, wherein the decoder derived motion refinement comprises at least one of: template matching, bilateral matching, decoder-side motion vector refinement (DMVR) , or bi-directional optical flow (BDOF) based DMVR.

[0538] Clause 114. The method of clause 112 or claim 113, wherein the refined chained motion vector is used as a motion candidate and inserted to a motion list.

[0539] Clause 115. The method of any of clauses 112 to 114, wherein the refined chained motion vector is used for motion compensation of the current video block.

[0540] Clause 116. The method of any of clauses 112 to 115, wherein the refined chained motion vector is used for deblocking the current video block.

[0541] Clause 117. The method of any of clauses 112 to 116, wherein the refined chained motion vector is not used for coding a future block.

[0542] Clause 118. The method of any of clauses 112 to 116, wherein the refined chained motion vector is used for coding a future block.

[0543] Clause 119. The method of any of clauses 1 to 118, wherein a history based motion vector is determined based on the chained motion vector.

[0544] Clause 120. The method of clause 119, wherein the chained motion vector is inserted to a history based look-up-table.

[0545] Clause 121. The method of clause 120, wherein the history based look-up-table is constructed based on a rule associated with an occurrence of redundant motion vector candidates, differences between the redundant motion vector candidates and a motion vector candidate in the history based look-up-table being less than a threshold.

[0546] Clause 122. The method of clause 121, wherein a life cycle of a motion vector candidate in the history based look-up-table is positively correlated with an occurrence of the motion vector candidate.

[0547] Clause 123. The method of clause 121 or claim 122, wherein in accordance with a determination that a motion vector candidate has an occurrence less than other motion vector candidates in the history based look-up-table, the motion vector candidate is removed and replaced by a motion vector candidate with a higher occurrence.

[0548] Clause 124. The method of any of clauses 121 to 123, wherein the occurrence of a motion vector candidate is determined based on a number of redundant motion vectors and a size of a block associated with the motion vector candidate.

[0549] Clause 125. The method of any of clauses 1 to 124, wherein the method is used for single tree coding.

[0550] Clause 126. The method of any of clauses 1 to 124, wherein the method is used for dual tree coding.

[0551] Clause 127. The method of any of clauses 1 to 124, wherein the method is used for chroma coding.

[0552] Clause 128. The method of any of clauses 1 to 124, wherein the method is used for luma coding.

[0553] Clause 129. The method of any of clauses 1 to 124, wherein the method is used for inter block coding.

[0554] Clause 130. The method of any of clauses 1 to 124, wherein the method is used for at least one of: intra block copy (IBC) block coding, intra template matching prediction (intraTMP) block coding, or direct block vector (DBV) block coding.

[0555] Clause 131. The method of any of clauses 1 to 130, wherein the method is used in an intra slice.

[0556] Clause 132. The method of any of clauses 1 to 130, wherein the method is used in an inter slice.

[0557] Clause 133. The method of any of clauses 1 to 132, wherein whether to and / or how to apply the method is indicated at one of the following: a sequence level, a group of pictures level, a picture level, a slice level, or a tile group level.

[0558] Clause 134. The method of any of clauses 1 to 132, wherein whether to and / or how to apply the method is indicated at one of the following: a sequence header, a picture header, a sequence parameter set (SPS) , a video parameter set (VPS) , a dependency parameter set (DPS) , a decoding capability information (DCI) , a picture parameter set (PPS) , an adaptation parameter sets (APS) , a slice header, or a tile group header.

[0559] Clause 135. The method of any of clauses 1 to 132, wherein whether to and / or how to apply the method is indicated at one of the following: a prediction block (PB) , a transform block (TB) , a coding block (CB) , a prediction unit (PU) , a transform unit (TU) , a coding unit (CU) , a coding tree block (CTB) , a coding tree unit (CTU) , a CTU row, a slice, a tile, a sub-picture, or a region including more than one sample or pixel.

[0560] Clause 136. The method of any of clauses 1 to 132, further comprising: determining, based on coded information of the current video block, whether to and / or how to apply the method, the coded information including at least one of: a block size, a colour format, a single and / or dual tree partitioning, a colour component, a slice type, or a picture type.

[0561] Clause 137. The method of any of clauses 1-136, wherein the conversion includes encoding the current video block into the bitstream.

[0562] Clause 138. The method of any of clauses 1-136, wherein the conversion includes decoding the current video block from the bitstream.

[0563] Clause 139. An apparatus for video processing comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform a method in accordance with any of clauses 1-138.

[0564] Clause 140. A non-transitory computer-readable storage medium storing instructions that cause a processor to perform a method in accordance with any of clauses 1-138.

[0565] Clause 141. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by an apparatus for video processing, wherein the method comprises: determining a chained motion vector of a current video block of the video, the chained motion vector comprising a motion vector or block vector determined based on at least one of: a guided motion vector, or a guided block vector; determining a subblock based temporal motion vector based on the chained motion vector; and generating the bitstream based on the subblock based temporal motion vector.

[0566] Clause 142. A method for storing a bitstream of a video, comprising: determining a chained motion vector of a current video block of the video, a chained motion vector of the current video block, the chained motion vector comprising a motion vector or block vector determined based on at least one of: a guided motion vector, or a guided block vector; determining a subblock based temporal motion vector based on the chained motion vector; generating the bitstream based on the subblock based temporal motion vector; and storing the bitstream in a non-transitory computer-readable recording medium.

[0567] Fig. 36 illustrates a block diagram of a computing device 3600 in which various embodiments of the present disclosure can be implemented. The computing device 3600 may be implemented as or included in the source device 110 (or the video encoder 114 or 200) or the destination device 120 (or the video decoder 124 or 300) .

[0568] It would be appreciated that the computing device 3600 shown in Fig. 36 is merely for purpose of illustration, without suggesting any limitation to the functions and scopes of the embodiments of the present disclosure in any manner.

[0569] As shown in Fig. 36, the computing device 3600 includes a general-purpose computing device 3600. The computing device 3600 may at least comprise one or more processors or processing units 3610, a memory 3620, a storage unit 3630, one or more communication units 3640, one or more input devices 3650, and one or more output devices 3660.

[0570] In some embodiments, the computing device 3600 may be implemented as any user terminal or server terminal having the computing capability. The server terminal may be a server, a large-scale computing device or the like that is provided by a service provider. The user terminal may for example be any type of mobile terminal, fixed terminal, or portable terminal, including a mobile phone, station, unit, device, multimedia computer, multimedia tablet, Internet node, communicator, desktop computer, laptop computer, notebook computer, netbook computer, tablet computer, personal communication system (PCS) device, personal navigation device, personal digital assistant (PDA) , audio / video player, digital camera / video camera, positioning device, television receiver, radio broadcast receiver, E-book device, gaming device, or any combination thereof, including the accessories and peripherals of these devices, or any combination thereof. It would be contemplated that the computing device 3600 can support any type of interface to a user (such as “wearable” circuitry and the like) .

[0571] The processing unit 3610 may be a physical or virtual processor and can implement various processes based on programs stored in the memory 3620. In a multi-processor system, multiple processing units execute computer executable instructions in parallel so as to improve the parallel processing capability of the computing device 3600. The processing unit 3610 may also be referred to as a central processing unit (CPU) , a microprocessor, a controller or a microcontroller.

[0572] The computing device 3600 typically includes various computer storage medium. Such medium can be any medium accessible by the computing device 3600, including, but not limited to, volatile and non-volatile medium, or detachable and non-detachable medium. The memory 3620 can be a volatile memory (for example, a register, cache, Random Access Memory (RAM) ) , a non-volatile memory (such as a Read-Only Memory (ROM) , Electrically Erasable Programmable Read-Only Memory (EEPROM) , or a flash memory) , or any combination thereof. The storage unit 3630 may be any detachable or non-detachable medium and may include a machine-readable medium such as a memory, flash memory drive, magnetic disk or another other media, which can be used for storing information and / or data and can be accessed in the computing device 3600.

[0573] The computing device 3600 may further include additional detachable / non-detachable, volatile / non-volatile memory medium. Although not shown in Fig. 36, it is possible to provide a magnetic disk drive for reading from and / or writing into a detachable and non-volatile magnetic disk and an optical disk drive for reading from and / or writing into a detachable non-volatile optical disk. In such cases, each drive may be connected to a bus (not shown) via one or more data medium interfaces.

[0574] The communication unit 3640 communicates with a further computing device via the communication medium. In addition, the functions of the components in the computing device 3600 can be implemented by a single computing cluster or multiple computing machines that can communicate via communication connections. Therefore, the computing device 3600 can operate in a networked environment using a logical connection with one or more other servers, networked personal computers (PCs) or further general network nodes.

[0575] The input device 3650 may be one or more of a variety of input devices, such as a mouse, keyboard, tracking ball, voice-input device, and the like. The output device 3660 may be one or more of a variety of output devices, such as a display, loudspeaker, printer, and the like. By means of the communication unit 3640, the computing device 3600 can further communicate with one or more external devices (not shown) such as the storage devices and display device, with one or more devices enabling the user to interact with the computing device 3600, or any devices (such as a network card, a modem and the like) enabling the computing device 3600 to communicate with one or more other computing devices, if required. Such communication can be performed via input / output (I / O) interfaces (not shown) .

[0576] In some embodiments, instead of being integrated in a single device, some or all components of the computing device 3600 may also be arranged in cloud computing architecture. In the cloud computing architecture, the components may be provided remotely and work together to implement the functionalities described in the present disclosure. In some embodiments, cloud computing provides computing, software, data access and storage service, which will not require end users to be aware of the physical locations or configurations of the systems or hardware providing these services. In various embodiments, the cloud computing provides the services via a wide area network (such as Internet) using suitable protocols. For example, a cloud computing provider provides applications over the wide area network, which can be accessed through a web browser or any other computing components. The software or components of the cloud computing architecture and corresponding data may be stored on a server at a remote position. The computing resources in the cloud computing environment may be merged or distributed at locations in a remote data center. Cloud computing infrastructures may provide the services through a shared data center, though they behave as a single access point for the users. Therefore, the cloud computing architectures may be used to provide the components and functionalities described herein from a service provider at a remote location. Alternatively, they may be provided from a conventional server or installed directly or otherwise on a client device.

[0577] The computing device 3600 may be used to implement video encoding / decoding in embodiments of the present disclosure. The memory 3620 may include one or more video coding modules 3625 having one or more program instructions. These modules are accessible and executable by the processing unit 3610 to perform the functionalities of the various embodiments described herein.

[0578] In the example embodiments of performing video encoding, the input device 3650 may receive video data as an input 3670 to be encoded. The video data may be processed, for example, by the video coding module 3625, to generate an encoded bitstream. The encoded bitstream may be provided via the output device 3660 as an output 3680.

[0579] In the example embodiments of performing video decoding, the input device 3650 may receive an encoded bitstream as the input 3670. The encoded bitstream may be processed, for example, by the video coding module 3625, to generate decoded video data. The decoded video data may be provided via the output device 3660 as the output 3680.

[0580] While this disclosure has been particularly shown and described with references to example embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application as defined by the appended claims. Such variations are intended to be covered by the scope of this present application. As such, the foregoing description of embodiments of the present application is not intended to be limiting.

Claims

1.A method for video processing, comprising:determining, for a conversion between a current video block of a video and a bitstream of the video, a chained motion vector of the current video block, the chained motion vector comprising a motion vector or block vector determined based on at least one of: a guided motion vector, or a guided block vector;determining a subblock based temporal motion vector based on the chained motion vector; andperforming the conversion based on the subblock based temporal motion vector.2.The method of claim 1, wherein the subblock based temporal motion vector is determined based on at least one of:a merge subblock-based temporal motion vector prediction (SbTMVP) coding tool,an advanced motion vector prediction subblock-based temporal motion vector prediction (AMVP sbTMVP) coding tool,an affine merge mode, oran affine advanced motion vector prediction (AMVP) coding tool.3.The method of claim 1 or claim 2, further comprising:determining, based on the chained motion vector, at least one of a motion shift or a predictor of a subblock-based temporal motion vector prediction (SbTMVP) .4.The method of claim 3, wherein the subblock-based temporal motion vector prediction comprises at least one of a merge subblock-based temporal motion vector prediction (SbTMVP) or an advanced motion vector prediction subblock-based temporal motion vector prediction (AMVP sbTMVP) .5.The method of any of claims 1 to 4, further comprising:determining at least one of a candidate motion shift or a candidate motion predictor by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.6.The method of claim 5, wherein the guided motion vector comprises a motion vector of a spatial neighbor block of the current video block.7.The method of claim 5 or claim 6, wherein the guided motion vector comprises an inter motion vector pointing to a reference block in a reference picture.8.The method of claim 5 or claim 6, wherein the guided motion vector comprises at least one of an intra block copy (IBC) block vector or an intra template matching prediction (TMP) block vector pointing to a reference block within a current picture containing the current video block.9.The method of any of claims 5 to 8, wherein the cascaded motion vector comprises a motion vector of a reference block pointed to by the guided motion vector.10.The method of any of claims 5 to 9, wherein the cascaded motion vector is stored in a temporal buffer associated with a reference block pointed to by the guided motion vector.11.The method of any of claims 5 to 9, wherein the cascaded motion vector is stored in a local buffer.12.The method of any of claims 1 to 11, further comprising:determining at least one of a plurality of candidate motion shifts or a plurality of candidate motion predictors based on the chained motion vector.13.The method of claim 12, wherein the plurality of candidate motion shifts points to reference blocks in different reference pictures, and / orthe plurality of candidate motion predictors points to reference blocks in different reference pictures.14.The method of claim 13, wherein the reference picture excludes a collocated picture of a current picture containing the current video block.15.The method of claim 13, wherein the plurality of candidate motion shifts are required to be scaled or pointed to a reference block within a collocated picture, and / orthe plurality of candidate motion predictors are required to be scaled or pointed to a reference block within a collocated picture.16.The method of any of claims 13 to 15, wherein the reference picture excludes a nearest reference picture of a current picture containing the current video block.17.The method of any of claims 13 to 15, wherein the plurality of candidate motion shifts are required to be scaled or pointed to a nearest reference picture of a current picture, and / orthe plurality of candidate motion predictors are required to be scaled or pointed to a nearest reference picture of a current picture containing the current video block.18.The method of any of claims 12 to 17, further comprising:determining at least one of a final motion shift or a final motion predictor for the subblock based temporal motion vector prediction based on the plurality of candidate motion shifts or the plurality of candidate motion predictors.19.The method of claim 18, wherein determining the final motion shift or the final motion predictor comprises:sorting at least one of the plurality of candidate motion shifts or the plurality of candidate motion predictors based on template cost; anddetermining a candidate motion shift with minimum template cost among the plurality of candidate motion shifts as the final motion shift; ordetermining a candidate motion predictor with minimum template cost among the plurality of candidate motion predictors as the final motion predictor.20.The method of claim 18, further comprising:checking at least one of the plurality of candidate motion shifts or the plurality of candidate motion predictors at an encoder;indicating at least one of the final motion shift or the final motion predictor in the bitstream.21.The method of claim 18, further comprising:determining at least one subblock based on at least one of the final motion shift or the final motion predictor; anddetermining a subblock motion vectors of the current video block based on the at least one subblock.22.The method of any of claims 1 to 21, further comprising:determining a motion vector predictor based on the chained motion vector; andapplying an advanced motion vector prediction (AMVP) coding tool with a subblock-based temporal motion vector prediction (sbTMVP) mode.23.The method of claim 22, wherein the motion vector predictor is comprised in a motion vector candidate list.24.The method of claim 23, wherein the motion vector candidate list is constructed as an inter AMVP motion list.25.The method of claim 22, wherein the motion vector predictor is used as a base vector for the AMVP coding tool with the sbTMVP mode.26.The method of claim 25, wherein a final motion vector of the AMVP coding tool with the sbTMVP mode is determined based on the base vector and a motion vector difference.27.The method of any of claims 1 to 26, wherein at least one of a motion shift, a motion predictor, or a subblock motion vector of a subblock based temporal motion vector prediction mode points to a reference picture, the reference picture being different from at least one of a collocated picture or a nearest reference picture of a current picture containing the current video block.28.The method of claim 27, wherein the subblock based temporal motion vector prediction mode comprises at least one of:a merge subblock-based temporal motion vector prediction (SbTMVP) coding tool,an advanced motion vector prediction subblock-based temporal motion vector prediction (AMVP sbTMVP) coding tool,an affine merge mode, oran affine advanced motion vector prediction (AMVP) coding tool.29.The method of any of claims 27 to 28, wherein the subblock motion vector of the subblock based temporal motion vector prediction mode is determined without motion vector scaling.30.The method of any of claims 1 to 29, wherein a subblock based motion vector prediction is used for motion compensation within a current picture containing the current video block.31.The method of claim 30, wherein a first block vector of a first subblock in a first coding region within the current picture is determined based on the chained block vector.32.The method of claim 30 or claim 31, wherein the chained block vector is determined based on accumulating the guided block vector and a cascaded block vector of the guided block vector.33.The method of any of claims 30 to 32, wherein a first block vector of a first subblock in a first coding region is used to determine a second block vector of a second subblock in a current coding region.34.The method of claim 33, wherein a granularity of at least one of the first subblock or the second subblock comprises at least one of 4x4 or 8x8.35.The method of any of claims 1 to 34, wherein an affine prediction of the current video block is determined based on the chained motion vector.36.The method of claim 35, wherein an affine merge prediction mode is used based on the chained motion vector.37.The method of claim 36, wherein a temporal block determined based on the chained motion vector is used for the affine merge prediction.38.The method of any of claims 35 to 37, wherein the chained motion vector used for the affine prediction is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.39.The method of claim 38, wherein the guided motion vector comprises an affine motion candidate in an affine motion vector list.40.The method of claim 39, wherein the chained motion vector is inserted to the affine motion vector list.41.The method of claim 40, further comprising:sorting the chained motion vector and affine motion candidates in the affine motion vector list based on template cost; anddetermining a final candidate among the chained motion vector and affine motion candidates in the affine motion vector list based on the template cost.42.The method of any of claims 36 to 41, wherein a control point motion vector (CPMV) of an affine coded temporal block is inherited for the affine merge prediction of a current block.43.The method of any of claims 36 to 42, wherein at least one affine parameter of an affine coded temporal block is inherited for the affine merge prediction of a current block.44.The method of any of claims 35 to 43, wherein an affine advanced motion vector prediction (AMVP) mode is used based on the chained motion vector.45.The method of claim 44, further comprising:determining a temporal block based on the chained motion vector and a reference index; anddetermining a motion candidate for an affine AMVP control point motion vector (CPMV) candidate as coding information associated with the temporal block.46.The method of claim 45, wherein the temporal block comprises a block in a reference picture.47.The method of claim 46, wherein the chained motion vector comprises a motion vector pointing to the reference picture.48.The method of claim 45, wherein the temporal block comprises a block in a current picture containing the current video block.49.The method of claim 48, wherein the chained motion vector comprises a block vector pointing to a coded area in the current picture.50.The method of any of claims 45 to 49, wherein the chained motion vector is scaled to pointing to a reference picture associated with the reference index of the affine AMVP mode.51.The method of any of claims 35 to 50, wherein an affine motion list is determined based on at least one chained motion vector.52.The method of claim 51, wherein a candidate control point motion vector (CPMV) is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.53.The method of claim 52, wherein the guided motion vector is determined based on at least one of a motion vector or a block vector of a coded block.54.The method of claim 53, wherein the coded block comprises at least one ofa spatial neighbor block,a temporal block,an adjacent block, ora non-adjacent block.55.The method of any of claims 51 to 54, wherein a plurality of candidate control point motion vectors (CPMV) are determined based on the at least one chained motion vector.56.The method of claim 55, wherein the plurality of CPMV are determined without motion vector scaling.57.The method of claim 56, wherein at least one of a motion shift or a motion predictor points to a reference picture being different from a collocated picture of a current picture containing the current video block.58.The method of any of claims 1 to 57, wherein at least one of an inter advanced motion vector prediction (AMVP) prediction or an intra block copy (IBC) AMVP prediction is determined based on at least one chained motion vector.59.The method of claim 58, wherein the at least one chained motion vector is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.60.The method of claim 59, wherein the guided motion vector comprises a motion vector candidate of an AMVP mode.61.The method of claim 59 or claim 60, wherein the guided motion vector is determined based on at least one of a motion vector or a block vector of a coded block.62.The method of claim 61, wherein the coded block comprises at least one of:a spatial neighbor block,a temporal block,an adjacent block, ora non-adjacent block.63.The method of any of claims 58 to 62, wherein the at least one chained motion vector is scaled to pointing to a reference picture associated with a reference index associated with the inter AMVP prediction.64.The method of any of claims 58 to 63, wherein the at least one chained motion vector is used as a candidate motion vector predictor for at least one of the inter AMVP prediction or the IBC AMVP prediction.65.The method of any of claims 58 to 64, wherein the at least one chained motion vector is inserted to at least one of an inter AMVP prediction list or an IBC AMVP prediction list.66.The method of claim 65, further comprising:sorting the at least one chained motion vector and at least one of inter AMVP prediction candidates or IBC AMVP prediction candidates based on template cost; anddetermining a final motion vector predictor based on the template cost.67.The method of claim 65, further comprising:determining a final motion vector predictor at an encoder; andindicating the final motion vector predictor in the bitstream.68.The method of any of claims 1 to 67, wherein at least one of an indirect block vector (IBV) mode, an intra template matching prediction (intraTMP) mode, or a direct block vector (DBV) mode is determined based on at least one chained motion vector.69.The method of claim 68, wherein the at least one chained motion vector is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.70.The method of claim 69, wherein the guided motion vector comprises at least one of a block vector or a motion vector determined based on a luma sample positioning in at least one of top-left, top-right, bottom-left, bottom-right, or center of a collocated luma block of a current chroma block.71.The method of claim 69 or claim 70, wherein the guided motion vector comprises an inter motion vector pointing to a reference picture.72.The method of claim 69 or claim 70, wherein the guided motion vector comprises a block vector pointing to a coded region in a current picture containing the current video block.73.The method of claim 69, wherein the guided motion vector comprises at least one of a block vector or a motion vector determined based on a spatial block adjacent or non-adjacent to the current block.74.The method of claim 73, wherein the guided motion vector comprises an inter motion vector pointing to a reference picture.75.The method of claim 73, wherein the guided motion vector comprises a block vector pointing to a coded region in a current picture containing the current video block.76.The method of any of claim 69 to 75, wherein a reference block determined based on at least one of the guided motion or a block vector is coded in an intra block copy (IBC) mode or an intraTMP mode.77.The method of claim 76, wherein the cascaded motion vector comprises at least one of an IBC block vector or an intraTMP block vector.78.The method of any of claim 69 to 75, wherein a reference block determined based on at least one of the guided motion or a block vector is coded in an inter mode.79.The method of claim 78, wherein the cascaded motion vector comprises an inter motion vector.80.The method of any of claim 69 to 79, wherein a reference block determined based on the at least one chained motion vector is required to be coded in an intra block copy (IBC) mode or an intraTMP mode.81.The method of claim 80, wherein the reference block is located at a current picture containing the current video block.82.The method of claim 80, wherein the reference block is located at an inter reference picture.83.The method of claim 80, wherein a block vector of a luma reference block is inherited and scaled as a block vector of a current chroma block.84.The method of any of claims 78 to 83, wherein a block vector is determined based on a further block vector determined from a reference picture, the block vector being associated with at least one of a DBV prediction, an intra block copy (IBC) prediction, an intraTMP prediction, or a block in an inter slice.85.The method of claim 84, wherein the reference picture comprises an available reference picture in a reference picture list.86.The method of claim 84 or claim 85, wherein a block vector of a temporal reference block is used as a candidate for a DBV mode, an IBC mode, or an intraTMP mode, wherein the temporal reference block is determined by a motion vector associated with an inter coded neighbor block, and the temporal reference block is coded based on at least one of an IBC mode or an intraTMP mode.87.The method of claim 86, wherein the temporal reference block is determined based on at least one pre-defined position in at least one reference picture.88.The method of any of claims 84 to 87, wherein the block vector is applied for at least one of the DBV prediction, the intra block copy (IBC) prediction, the intraTMP prediction, or the block in the inter slice.89.The method of any of claims 68 to 83, wherein a block vector is determined based on a chained block vector determined based on a reference picture, the block vector being associated with at least one of a DBV prediction, an intra block copy (IBC) prediction, an intraTMP prediction, or a block in an inter slice.90.The method of claim 89, wherein the reference picture comprises an available reference picture in a reference picture list.91.The method of claim 89 or claim 90, wherein in accordance with a determination that a block vector is associated with a reference block of a temporal reference block determined based on a motion vector associated with an inter coded neighbor block, the chained block vector is determined by adding up the block vector associated with the reference block of the temporal reference block and a further block vector of the temporal reference block.92.The method of claim 91, wherein the temporal reference block is coded in an IBC mode or an intraTMP mode.93.The method of claim 89 or claim 90, wherein a temporal reference block is determined based on at least one pre-defined position in at least one reference picture.94.The method of any of claim 89 to 93, wherein the chained block vector is used as a candidate for at least one of a DBV mode, an IBC mode, or an intraTMP mode.95.The method of any of claim 89 to 94, wherein the block vector is applied for at least one of the DBV prediction, the IBC prediction, the intraTMP prediction, or the block in an inter slice.96.The method of any of claim 1 to 95, wherein at least one of a geometric partitioning mode (GPM) merge prediction mode, a merge motion vector differences (MMVD) merge prediction mode, a template matching (TM) merge prediction mode, a bilateral matching (BM) merge prediction mode, or an advanced motion vector prediction (AMVP) -merge mode is determined based on at least one chained motion vector.97.The method of claim 96, wherein the at least one chained motion vector is determined by accumulating the guided motion vector and a cascaded motion vector of the guided motion vector.98.The method of claim 97, wherein the at least one chained motion vector comprises a regular GPM motion vector candidate of a GPM mode.99.The method of claim 98, wherein the GPM mode comprises at least one of:a GPM mode,a GPM MMVD mode,a GPM TM mode,a GPM inter-intra mode, ora GPM mode with affine.100.The method of claim 98 or claim 99, the at least one chained motion vector is used as a candidate and inserted to a regular GPM motion list.101.The method of claim 97, wherein the guided motion vector is determined based on at least one of a regular merge motion vector candidate or an MMVD vector.102.The method of claim 101, wherein the guided motion vector is determined as the regular merge motion vector candidate plus the MMVD vector.103.The method of claim 101 or claim 102, wherein the at least one chained motion vector is used as a candidate and compared with at least one regular MMVD candidate.104.The method of claim 97, wherein the guided motion vector comprises a TM merge motion vector candidate after a template matching refinement.105.The method of claim 104, wherein the at least one chained motion vector is used as a candidate and compared with at least one regular TM merge candidate.106.The method of claim 104 or claim 105, wherein the at least one chained motion vector is refined by template matching.107.The method of claim 97, wherein the guided motion vector comprises a BM merge motion vector candidate after a bilateral matching refinement.108.The method of claim 107, wherein the at least one chained motion vector is used as a candidate and compared with at least one regular BM merge candidate.109.The method of claim 107 or claim 108, wherein the at least one chained motion vector is refined by bilateral matching.110.The method of claim 97, wherein a merge part of the AMVP-merge mode is determined based on the at least one chain motion vector.111.The method of claim 110, wherein an AMVP part of the AMVP-merge mode is determined based on the at least one chain motion vector.112.The method of any of claims 1 to 111, wherein the chained motion vector is refined by a decoder derived motion refinement.113.The method of claim 112, wherein the decoder derived motion refinement comprises at least one of:template matching,bilateral matching,decoder-side motion vector refinement (DMVR) , orbi-directional optical flow (BDOF) based DMVR.114.The method of claim 112 or claim 113, wherein the refined chained motion vector is used as a motion candidate and inserted to a motion list.115.The method of any of claims 112 to 114, wherein the refined chained motion vector is used for motion compensation of the current video block.116.The method of any of claims 112 to 115, wherein the refined chained motion vector is used for deblocking the current video block.117.The method of any of claims 112 to 116, wherein the refined chained motion vector is not used for coding a future block.118.The method of any of claims 112 to 116, wherein the refined chained motion vector is used for coding a future block.119.The method of any of claims 1 to 118, wherein a history based motion vector is determined based on the chained motion vector.120.The method of claim 119, wherein the chained motion vector is inserted to a history based look-up-table.121.The method of claim 120, wherein the history based look-up-table is constructed based on a rule associated with an occurrence of redundant motion vector candidates, differences between the redundant motion vector candidates and a motion vector candidate in the history based look-up-table being less than a threshold.122.The method of claim 121, wherein a life cycle of a motion vector candidate in the history based look-up-table is positively correlated with an occurrence of the motion vector candidate.123.The method of claim 121 or claim 122, wherein in accordance with a determination that a motion vector candidate has an occurrence less than other motion vector candidates in the history based look-up-table, the motion vector candidate is removed and replaced by a motion vector candidate with a higher occurrence.124.The method of any of claims 121 to 123, wherein the occurrence of a motion vector candidate is determined based on a number of redundant motion vectors and a size of a block associated with the motion vector candidate.125.The method of any of claims 1 to 124, wherein the method is used for single tree coding.126.The method of any of claims 1 to 124, wherein the method is used for dual tree coding.127.The method of any of claims 1 to 124, wherein the method is used for chroma coding.128.The method of any of claims 1 to 124, wherein the method is used for luma coding.129.The method of any of claims 1 to 124, wherein the method is used for inter block coding.130.The method of any of claims 1 to 124, wherein the method is used for at least one of:intra block copy (IBC) block coding,intra template matching prediction (intraTMP) block coding, ordirect block vector (DBV) block coding.131.The method of any of claims 1 to 130, wherein the method is used in an intra slice.132.The method of any of claims 1 to 130, wherein the method is used in an inter slice.133.The method of any of claims 1 to 132, wherein whether to and / or how to apply the method is indicated at one of the following:a sequence level,a group of pictures level,a picture level,a slice level, ora tile group level.134.The method of any of claims 1 to 132, wherein whether to and / or how to apply the method is indicated at one of the following:a sequence header,a picture header,a sequence parameter set (SPS) ,a video parameter set (VPS) ,a dependency parameter set (DPS) ,a decoding capability information (DCI) ,a picture parameter set (PPS) ,an adaptation parameter sets (APS) ,a slice header, ora tile group header.135.The method of any of claims 1 to 132, wherein whether to and / or how to apply the method is indicated at one of the following:a prediction block (PB) ,a transform block (TB) ,a coding block (CB) ,a prediction unit (PU) ,a transform unit (TU) ,a coding unit (CU) ,a coding tree block (CTB) ,a coding tree unit (CTU) ,a CTU row,a slice,a tile,a sub-picture, ora region including more than one sample or pixel.136.The method of any of claims 1 to 132, further comprising:determining, based on coded information of the current video block, whether to and / or how to apply the method, the coded information including at least one of:a block size,a colour format,a single and / or dual tree partitioning,a colour component,a slice type, ora picture type.137.The method of any of claims 1-136, wherein the conversion includes encoding the current video block into the bitstream.138.The method of any of claims 1-136, wherein the conversion includes decoding the current video block from the bitstream.139.An apparatus for video processing comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform a method in accordance with any of claims 1-138.140.A non-transitory computer-readable storage medium storing instructions that cause a processor to perform a method in accordance with any of claims 1-138.141.A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by an apparatus for video processing, wherein the method comprises:determining a chained motion vector of a current video block of the video, a chained motion vector of the current video block, the chained motion vector comprising a motion vector or block vector determined based on at least one of: a guided motion vector, or a guided block vector;determining a subblock based temporal motion vector based on the chained motion vector; andgenerating the bitstream based on the subblock based temporal motion vector.142.A method for storing a bitstream of a video, comprising:determining a chained motion vector of a current video block of the video, a chained motion vector of the current video block, the chained motion vector comprising a motion vector or block vector determined based on at least one of: a guided motion vector, or a guided block vector;determining a subblock based temporal motion vector based on the chained motion vector;generating the bitstream based on the subblock based temporal motion vector; andstoring the bitstream in a non-transitory computer-readable recording medium.

Citation Information

Patent Citations

  • Design for distributed decoding refresh in video coding

    US20210409698A1

  • Method, apparatus, and medium for video processing

    WO2023025114A1

  • Method and apparatus for modifying motion vector list at decoder side in inter prediction

    WO2023132564A1