Method, apparatus, and medium for video processing

The enhanced MHP method addresses inefficiencies in existing video coding techniques by incorporating additional prediction based on traced motion information, resulting in improved coding efficiency.

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

Patent Information

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

AI Technical Summary

Technical Problem

Existing video coding techniques, such as HEVC and VVC, face challenges in improving coding efficiency due to limitations in multi-hypothesis prediction methods, leading to suboptimal performance in video compression.

Method used

Implementing an enhanced multi-hypothesis prediction (MHP) method that includes additional prediction based on tracing the first motion of a current block, determining a second set of motion information, and using this information to improve coding efficiency.

Benefits of technology

The proposed MHP method allows for more efficient determination of additional predictions, thereby enhancing coding efficiency in video processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025087900_16102025_PF_FP_ABST
    Figure CN2025087900_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. The method comprises: obtaining, for a conversion between a current block of a video and a bitstream of the video, a first set of motion information of the current block as a first motion; determining, based on a set of motion information of a first block located by the first motion, a second set of motion information of the current block as a second motion; determining a first prediction of the current block based on the first motion; determining an additional prediction of the current block based on the second motion; and performing the conversion based on the first prediction and the additional prediction.
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 multi-hypothesis prediction (MHP) .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, 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: obtaining, for a conversion between a current block of a video and a bitstream of the video, a first set of motion information of the current block as a first motion; determining, based on a set of motion information of a first block located by the first motion, a second set of motion information of the current block as a second motion; determining a first prediction of the current block based on the first motion; determining an additional prediction of the current block based on the second motion; and performing the conversion based on the first prediction and the additional prediction.

[0005] Based on the method in accordance with the first aspect of the present disclosure, an additional prediction used for MHP of the current block is determined based on the second motion that is obtained by tracing the first motion of the current block. Compared with the conventional solution, the additional prediction can be determined more efficiently, and thus the coding efficiency can be improved.

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

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

[0008] 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: obtaining a first set of motion information of a current block of the video as a first motion; determining, based on a set of motion information of a first block located by the first motion, a second set of motion information of the current block as a second motion; determining a first prediction of the current block based on the first motion; determining an additional prediction of the current block based on the second motion; and generating the bitstream based on the first prediction and the additional prediction.

[0009] In a fifth aspect, a method for storing a bitstream of a video is proposed. The method comprises: obtaining a first set of motion information of a current block of the video as a first motion; determining, based on a set of motion information of a first block located by the first motion, a second set of motion information of the current block as a second motion; determining a first prediction of the current block based on the first motion; determining an additional prediction of the current block based on the second motion; generating the bitstream based on the first prediction and the additional prediction; and storing the bitstream in a non-transitory computer-readable recording medium.

[0010] 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

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

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

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

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

[0015] Fig. 4 illustrates positions of spatial merge candidate;

[0016] Fig. 5 illustrates candidate pairs considered for redundancy check of spatial merge candidates;

[0017] Fig. 6 illustrates an illustration of motion vector scaling for temporal merge candidate;

[0018] Fig. 7 illustrates candidate positions for temporal merge candidate, C0 and C1;

[0019] Fig. 8 illustrates spatial neighboring blocks used to derive the spatial merge candidates;

[0020] Fig. 9 illustrates an example of derivation of chained motion vector prediction (CMVP) candidate;

[0021] Fig. 10 illustrates an operation of referencing source and destination of tracing motion vectors (MVs) in CMVP;

[0022] Fig. 11 illustrates template and reference samples of the template in reference pictures;

[0023] Fig. 12 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;

[0024] Fig. 13A illustrates spatial neighboring blocks used by ATVMP;

[0025] Fig. 13B illustrates deriving sub-CU motion field by applying a motion shift from spatial neighbor and scaling the motion information from the corresponding collocated sub-CUs;

[0026] Fig. 14 illustrates subblock templates generation of subblock-based temporal motion vector prediction (SbTMVP) ;

[0027] Fig. 15 illustrates extended coding unit (CU) region used in a bi-directional optical flow (BDOF) ;

[0028] Fig. 16 illustrates spatial neighboring positions used in intra block copy (IBC) vector prediction;

[0029] Fig. 17 illustrates current coding tree unit (CTU) processing order and its available reference samples in current and left CTU;

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

[0031] Fig. 19 illustrates IBC candidate clustering based on the L2 distance and the template matching (TM) cost;

[0032] Fig. 20 illustrates an example of how to derive auto-relocated block vector prediction (AR-BVP) ;

[0033] Fig. 21 illustrates the five positions in a block Bn;

[0034] Fig. 22 illustrates IBC reference region depending on current CU position;

[0035] Fig. 23 illustrates reference area for IBC when CTU (m, n) is coded;

[0036] Fig. 24A illustrates block vector (BV) adjustment for horizontal flip;

[0037] Fig. 24B illustrates BV adjustment for vertical flip;

[0038] Fig. 25 illustrates intra template matching search area used;

[0039] Fig. 26 illustrates use of intra template matching prediction (IntraTMP) block vector for IBC block;

[0040] Fig. 27 illustrates a spatial part of the convolutional filter;

[0041] Fig. 28 illustrates reference area (with its paddings) used to derive the filter coefficients;

[0042] Fig. 29 illustrates block vector guided BV prediction;

[0043] Fig. 30 illustrates adjacent spatial neighboring positions;

[0044] Fig. 31 illustrates five positions in Bn;

[0045] Fig. 32 illustrates deriving subblock BV motion field from the corresponding subblocks by applying a BV shift derived from a spatial neighbor;

[0046] Fig. 33 illustrates a modified SGPM process;

[0047] Fig. 34A illustrates a uni-prediction traced direct vector in a case where both guided vector and traced direct vector are block vector;

[0048] Fig. 34B illustrates a uni-prediction traced direct vector in a case where the guided vector is motion vector and the traced direct vector is block vector;

[0049] Fig. 34C illustrates a uni-prediction traced direct vector in a case where the guided vector is block vector and the traced direct vector is motion vector;

[0050] Fig. 34D illustrates a uni-prediction traced direct vector in a case where the guided vector is motion vector and the traced direct vector is motion vector;

[0051] Fig. 35A illustrates a bi-prediction traced direct vector in a case where both guided vector and traced direct vector are block vector;

[0052] Fig. 35B illustrates a bi-prediction traced direct vector in a case where the guided vector is motion vector and the traced direct vector is block vector;

[0053] Fig. 35C illustrates a bi-prediction traced direct vector in a case where the guided vector is block vector and the traced direct vector is motion vector;

[0054] Fig. 35D illustrates a bi-prediction traced direct vector in a case where the guided vector is motion vector and the traced direct vector is motion vector;

[0055] Fig. 36A illustrates five positions in a block B1 in a case where the guided vector is motion vector;

[0056] Fig. 36B illustrates five positions in a block B1 in a case where the guided vector is block vector;

[0057] Fig. 37A illustrates six positions in a block B 1 in a case that the guided vector is motion vector;

[0058] Fig. 37B illustrates six positions in a block B 1 in a case that the guided vector is block vector;

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

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

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

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

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

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

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

[0066] 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. Example Environment

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0104] 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 The present disclosure is related to image / video coding, especially on auto-relocated multi-hypothesis prediction  and auto-relocated motion information prediction. It may be applied to the existing video coding standard like HEVC, or the standard VVC (Versatile Video Coding) . It may be also applicable to future video coding standards or video codec. 2. Introduction 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. In January 2021, JVET established an Exploration Experiment (EE) , targeting at enhanced compression  efficiency beyond VVC capability with novel traditional algorithms. Soon later, ECM was built as the common software base for longer-term exploration work towards the next generation video coding standard. 2.1. Extended merge prediction In VVC, the merge candidate list is constructed by including the following five types of candidates in order: 1) Spatial MVP from spatial neighbour CUs, 2) Temporal MVP from collocated CUs, 3) History-based MVP from an FIFO table, 4) Pairwise average MVP, 5) Zero MVs. The size of merge list is signalled in sequence parameter set header and the maximum allowed size of merge list  is 6. For each CU code in merge mode, an index of best merge candidate is encoded using truncated unary binarization (TU) . The first bin of the merge index is coded with context and bypass coding is used for other bins. The derivation process of each category of merge candidates is provided in this session. As done in HEVC, VVC  also supports parallel derivation of the merging candidate lists for all CUs within a certain size of area. 2.1.1. Spatial candidates derivation The derivation of spatial merge candidates in VVC is same to that in HEVC except the positions of first two  merge candidates are swapped. A maximum of four merge candidates are selected among candidates located in the positions depicted in Fig. 4. The order of derivation is B1, A1, B0, A0 and B2. Position B2 is considered only when one or more than one CUs of position B0, A0, B1, A1 are not available (e.g. because it belongs to another slice or tile) or is intra coded. After candidate at position B1 is added, the addition of the remaining candidates is subject to a redundancy check which ensures that candidates with same motion information are excluded from the list so that coding efficiency is improved. To reduce computational complexity, not all possible candidate pairs are considered in the mentioned redundancy check. Instead only the pairs linked with an arrow in Fig. 5 are considered and a candidate is only added to the list if the corresponding candidate used for redundancy check has not the same motion information. Fig. 4 illustrates positions of spatial merge candidate, and Fig. 5 illustrates candidate pairs considered for  redundancy check of spatial merge candidates. 2.1.2. Temporal candidates derivation In this step, only one candidate is added to the list. Particularly, in the derivation of this temporal merge  candidate, a scaled motion vector is derived based on co-located CU belonging to the collocated reference picture. The reference picture list and the reference index to be used for derivation of the co-located CU is explicitly signalled in the slice header. The scaled motion vector for temporal merge candidate is obtained as illustrated by the dotted line in Fig. 6, which is scaled from the motion vector of the co-located CU using the POC distances, tb and td, where tb is defined to be the POC difference between the reference picture of the current picture and the current picture and td is defined to be the POC difference between the reference picture of the co-located picture and the co-located picture. The reference picture index of temporal merge candidate is set equal to zero. Fig. 6 illustrates an illustration of motion vector scaling for temporal merge candidate. The position for the temporal candidate is selected between candidates C0 and C1, as depicted in Fig. 7. If CU at  position C0 is not available, is intra coded, or is outside of the current row of CTUs, position C1 is used. Otherwise, position C0 is used in the derivation of the temporal merge candidate. Fig. 7 illustrates candidate positions for temporal merge candidate, C0 and C1. 2.1.3. History-based merge candidates derivation The history-based MVP (HMVP) merge candidates are added to merge list after the spatial MVP and TMVP. In  this method, the motion information of a previously coded block is stored in a table and used as MVP for the current CU. The table with multiple HMVP candidates is maintained during the encoding / decoding process. The table is reset (emptied) when a new CTU row is encountered. Whenever there is a non-subblock inter-coded CU, the associated motion information is added to the last entry of the table as a new HMVP candidate. The HMVP table size S is set to be 6, which indicates up to 5 History-based MVP (HMVP) candidates may be  added to the table. When inserting a new motion candidate to the table, a constrained first-in-first-out (FIFO) rule is utilized wherein redundancy check is firstly applied to find whether there is an identical HMVP in the table. If found, the identical HMVP is removed from the table and all the HMVP candidates afterwards are moved forward, and the identical HMVP is inserted to the last entry of the table. HMVP candidates could be used in the merge candidate list construction process. The latest several HMVP  candidates in the table are checked in order and inserted to the candidate list after the TMVP candidate. Redundancy check is applied on the HMVP candidates to the spatial or temporal merge candidate. To reduce the number of redundancy check operations, the following simplifications are introduced: 1. The last two entries in the table are redundancy checked to A1 and B1 spatial candidates, respectively. 2. Once the total number of available merge candidates reaches the maximally allowed merge candidates  minus 1, the merge candidate list construction process from HMVP is terminated. 2.1.4. Pair-wise average merge candidate derivation Pairwise average candidates are generated by averaging predefined pairs of candidates in the existing merge  candidate list, using the first two merge candidates. The first merge candidate is defined as p0Cand and the second merge candidate can be defined as p1Cand, respectively. The averaged motion vectors are calculated according to the availability of the motion vector of p0Cand and p1Cand separately for each reference list. If both motion vectors are available in one list, these two motion vectors are averaged even when they point to different reference pictures, and its reference picture is set to the one of p0Cand; if only one motion vector is available, use the one directly; if no motion vector is available, keep this list invalid. Also, if the half-pel interpolation filter indices of p0Cand and p1Cand are different, it is set to 0. When the merge list is not full after pair-wise average merge candidates are added, the zero MVPs are inserted  in the end until the maximum merge candidate number is encountered. 2.1.5. Merge estimation region Merge estimation region (MER) allows independent derivation of merge candidate list for the CUs in the same  merge estimation region (MER) . A candidate block that is within the same MER to the current CU is not included for the generation of the merge candidate list of the current CU. In addition, the updating process for the history-based motion vector predictor candidate list is updated only if (xCb + cbWidth) >> Log2ParMrgLevel is greater than xCb >> Log2ParMrgLevel and (yCb + cbHeight) >> Log2ParMrgLevel is great than (yCb >> Log2ParMrgLevel) and where (xCb, yCb) is the top-left luma sample position of the current CU in the picture and (cbWidth, cbHeight) is the CU size. The MER size is selected at encoder side and signalled as log2_parallel_merge_level_minus2 in the sequence parameter set. 2.1.6. Non-adjacent spatial candidate 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. 8. 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. Fig. 8 illustrates spatial neighboring blocks used to derive the spatial merge candidates. 2.2. Chained motion vector prediction This method introduces a chained MV prediction (CMVP) into inter merge candidate list construction. As shown in Fig. 9, 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. Fig. 9 illustrates an example of derivation of CMVP candidate. 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. 10 (i.e., the center, top-left, top-right, bottom-left, and bottom-right of the current block) . Fig. 10 illustrates an operation of referencing source and destination of tracing MVs in CMVP. 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. The traceable reference pictures are only within the reference picture list. CMVP candidates are inserted after HMVP candidates for the regular merge and TM merge. When deriving CMVP candidates, hpelIfIdx, bcwIdx, licFlag, and mhpFlag are not inherited. CMVP candidates are not derived when the TMVP is disabled. 2.3. Adaptive reordering of merge candidates with template matching (ARMC- TM) 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. 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 and the following virtual merge candidates are excluded from the ARMC reordering process 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 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. 11. Fig. 11 illustrates template and reference samples of the template in reference pictures. ● Refinement of the initial merge candidate list 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. 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. 12, 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. Fig. 12 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. ● Reordering criteria 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. The proposed diversity reordering 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 λ) .  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. 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. ● Merge Mode modifications The following modifications have been applied to regular Merge list: -The same Motion vector threshold is used for Temporal, non-adjacent and other candidates. -No ARMC reordering for sub-groups is performed. -Up to 4 pairwise candidates are added after the first ARMC reordering in a pairwise merge list for regular, TM  and BM Merge modes. Only the candidates before the zero padding candidates after the first ARMC reordering can be used to derive the pairwise candidates. The pairwise candidate is also restricted to use only the average candidate when the reference frames of the first and second candidate to derive the pairwise candidate are the same. The first candidate to derive the pairwise candidate is set to be the first reordered candidate. After deriving the pairwise candidates, they will be reordered together with the candidates in the initial merge candidate list after the first ARMC reordering using a second ARMC reordering. Then diversity reordering is performed for the reordered candidates of the initial merge candidate list and pairwise merge list after all the first and second ARMC reordering. At last, the first N (e.g., N is 10 for regular merge mode, N is 4 for TM and BM merge mode) merge candidates of the initial merge candidate list and pairwise merge list after all the reordering are selected to generate the final merge candidate list. ● Extension to AMVP modes 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. Note, when wrap around motion compensation is enabled, the MV candidate shall be clipped with wrap around  offset taken into consideration. 2.4. MV candidate type based ARMC 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.5. Subblock-based temporal motion vector prediction (SbTMVP) VVC supports the subblock-based temporal motion vector prediction (SbTMVP) method. Similar to the  temporal motion vector prediction (TMVP) in HEVC, SbTMVP uses the motion field in the collocated picture to improve motion vector prediction and merge mode for CUs in the current picture. The same collocated picture used by TMVP is used for SbTVMP. SbTMVP differs from TMVP in the following two main aspects: –TMVP predicts motion at CU level but SbTMVP predicts motion at sub-CU level; –Whereas TMVP fetches the temporal motion vectors from the collocated block in the collocated picture  (the collocated block is the bottom-right or center block relative to the current CU) , SbTMVP applies a motion shift before fetching the temporal motion information from the collocated picture, where the motion shift is obtained from the motion vector from one of the spatial neighboring blocks of the current CU. The SbTVMP process is illustrated in Fig. 13A and Fig. 13B. Fig. 13A and Fig. 13B illustrates the SbTMVP  process in VVC. Fig. 13A illustrates spatial neighboring blocks used by ATVMP. Fig. 13B illustrates deriving sub-CU motion field by applying a motion shift from spatial neighbor and scaling the motion information from the corresponding collocated sub-CUs. SbTMVP predicts the motion vectors of the sub-CUs within the current CU in two steps. In the first step, the spatial neighbor A1 in Fig. 13A is examined. If A1 has a motion vector that uses the collocated picture as its reference picture, this motion vector is selected to be the motion shift to be applied. If no such motion is identified, then the motion shift is set to (0, 0) . In the second step, the motion shift identified in Step 1 is applied (i.e. added to the current block’s coordinates)  to obtain sub-CU-level motion information (motion vectors and reference indices) from the collocated picture as shown in Fig. 13B. The example in Fig. 13B assumes the motion shift is set to block A1’s motion. Then, for each sub-CU, the motion information of its corresponding block (the smallest motion grid that covers the center sample) in the collocated picture is used to derive the motion information for the sub-CU. After the motion information of the collocated sub-CU is identified, it is converted to the motion vectors and reference indices of the current sub-CU in a similar way as the TMVP process of HEVC, where temporal motion scaling is applied to align the reference pictures of the temporal motion vectors to those of the current CU. In VVC, a combined subblock based merge list which contains both SbTVMP candidate and affine merge  candidates is used for the signalling of subblock based merge mode. The SbTVMP mode is enabled / disabled by a sequence parameter set (SPS) flag. If the SbTMVP mode is enabled, the SbTMVP predictor is added as the first entry of the list of subblock based merge candidates, and followed by the affine merge candidates. The size of subblock based merge list is signalled in SPS and the maximum allowed size of the subblock based merge list is 5 in VVC. The sub-CU size used in SbTMVP is fixed to be 8x8, and as done for affine merge mode, SbTMVP mode is  only applicable to the CU with both width and height are larger than or equal to 8. The encoding logic of the additional SbTMVP merge candidate is the same as for the other merge candidates,  that is, for each CU in P or B slice, an additional RD check is performed to decide whether to use the SbTMVP candidate. 2.6. Temporal motion information derivation 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. 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. 14, 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. Fig. 14 illustrates subblock templates generation of SbTMVP. 2.7. Bi-prediction with CU-level weight (BCW) In HEVC, the bi-prediction signal is generated by averaging two prediction signals obtained from two different  reference pictures and / or using two different motion vectors. In VVC, the bi-prediction mode is extended beyond simple averaging to allow weighted averaging of the two prediction signals. Pbi-pred=( (8-w) *P0+w*P1+4) >>3 Five weights are allowed in the weighted averaging bi-prediction, w∈ {-2, 3, 4, 5, 10} . For each bi-predicted  CU, the weight w is determined in one of two ways: 1) for a non-merge CU, the weight index is signalled after the motion vector difference; 2) for a merge CU, the weight index is inferred from neighbouring blocks based on the merge candidate index. BCW is only applied to CUs with 256 or more luma samples (i.e., CU width times CU height is greater than or equal to 256) . For low-delay pictures, all 5 weights are used. For non-low-delay pictures, only 3 weights (w∈ {3, 4, 5} ) are used. –At the encoder, fast search algorithms are applied to find the weight index without significantly increasing  the encoder complexity. These algorithms are summarized as follows. When combined with AMVR, unequal weights are only conditionally checked for 1-pel and 4-pel motion vector precisions if the current picture is a low-delay picture. –When combined with affine, affine ME will be performed for unequal weights if and only if the affine mode  is selected as the current best mode. –When the two reference pictures in bi-prediction are the same, unequal weights are only conditionally  checked. –Unequal weights are not searched when certain conditions are met, depending on the POC distance between  current picture and its reference pictures, the coding QP, and the temporal level. The BCW weight index is coded using one context coded bin followed by bypass coded bins. The first context  coded bin indicates if equal weight is used; and if unequal weight is used, additional bins are signalled using bypass coding to indicate which unequal weight is used. Weighted prediction (WP) is a coding tool supported by the H. 264 / AVC and HEVC standards to efficiently code  video content with fading. Support for WP was also added into the VVC standard. WP allows weighting parameters (weight and offset) to be signalled for each reference picture in each of the reference picture lists L0 and L1. Then, during motion compensation, the weight (s) and offset (s) of the corresponding reference picture (s) are applied. WP and BCW are designed for different types of video content. In order to avoid interactions between WP and BCW, which will complicate VVC decoder design, if a CU uses WP, then the BCW weight index is not signalled, and w is inferred to be 4 (i.e. equal weight is applied) . For a merge CU, the weight index is inferred from neighbouring blocks based on the merge candidate index. This can be applied to both normal merge mode and inherited affine merge mode. For constructed affine merge mode, the affine motion information is constructed based on the motion information of up to 3 blocks. The BCW index for a CU using the constructed affine merge mode is simply set equal to the BCW index of the first control point MV. In VVC, CIIP and BCW cannot be jointly applied for a CU. When a CU is coded with CIIP mode, the BCW  index of the current CU is set to 2, e.g. equal weight. 2.8. Bi-directional optical flow (BDOF) The bi-directional optical flow (BDOF) tool is included in VVC. BDOF, previously referred to as BIO, was  included in the JEM. Compared to the JEM version, the BDOF in VVC is a simpler version that requires much less computation, especially in terms of number of multiplications and the size of the multiplier. BDOF is used to refine the bi-prediction signal of a CU at the 4×4 subblock level. BDOF is applied to a CU if  it satisfies all the following conditions: –The CU is coded using “true” bi-prediction mode, i.e., one of the two reference pictures is prior to the  current picture in display order and the other is after the current picture in display order. –The distances (i.e. POC difference) from two reference pictures to the current picture are same. –Both reference pictures are short-term reference pictures. –The CU is not coded using affine mode or the SbTMVP merge mode. –CU has more than 64 luma samples. –Both CU height and CU width are larger than or equal to 8 luma samples. –BCW weight index indicates equal weight. –WP is not enabled for the current CU. –CIIP mode is not used for the current CU. BDOF is only applied to the luma component. As its name indicates, the BDOF mode is based on the optical  flow concept, which assumes that the motion of an object is smooth. For each 4×4 subblock, a motion refinement (vx, vy) is calculated by minimizing the difference between the L0 and L1 prediction samples. The motion refinement is then used to adjust the bi-predicted sample values in the 4x4 subblock. The following steps are applied in the BDOF process. First, the horizontal and vertical gradients,  and of the two prediction signals are  computed by directly calculating the difference between two neighboring samples, i.e., where I (k) (i, j) are the sample value at coordinate (i, j) of the prediction signal in list k, k=0, 1, and shift1 is  calculated based on the luma bit depth, bitDepth, as shift1 = max (6, bitDepth-6) . Then, the auto-and cross-correlation of the gradients, S1, S2, S3, S5 and S6, are calculated as where where Ω is a 6×6 window around the 4×4 subblock, and the values of na and nb are set equal to  min (1, bitDepth -11) and min (4, bitDepth -8) , respectively. The motion refinement (vx, vy) is then derived using the cross-and auto-correlation terms using the following: where th′BIO=2max (5, BD-7) .  is the floor function, and Based on the motion refinement and the gradients, the following adjustment is calculated for each sample in the 4×4 subblock: Finally, the BDOF samples of the CU are calculated by adjusting the bi-prediction samples as follows: predBDOF (x, y) =(I (0) (x, y) +I (1) (x, y) +b (x, y) +οoffset) >>shift These values are selected such that the multipliers in the BDOF process do not exceed 15-bit, and the maximum  bit-width of the intermediate parameters in the BDOF process is kept within 32-bit. In order to derive the gradient values, some prediction samples I (k) (i, j) in list k (k=0, 1) outside of the current  CU boundaries need to be generated. As depicted in Fig. 15, the BDOF in VVC uses one extended row / column around the CU’s boundaries. In order to control the computational complexity of generating the out-of-boundary prediction samples, prediction samples in the extended area (white positions) are generated by taking the reference samples at the nearby integer positions (using floor () operation on the coordinates) directly without interpolation, and the normal 8-tap motion compensation interpolation filter is used to generate prediction samples within the CU (gray positions) . These extended sample values are used in gradient calculation only. For the remaining steps in the BDOF process, if any sample and gradient values outside of the CU boundaries are needed, they are padded (i.e. repeated) from their nearest neighbors. Fig. 15 illustrates extended CU region used in BDOF. When the width and / or height of a CU are larger than 16 luma samples, it will be split into subblocks with width  and / or height equal to 16 luma samples, and the subblock boundaries are treated as the CU boundaries in the BDOF process. The maximum unit size for BDOF process is limited to 16x16. For each subblock, the BDOF process could skipped. When the SAD of between the initial L0 and L1 prediction samples is smaller than a threshold, the BDOF process is not applied to the subblock. The threshold is set equal to (8 *W* (H >> 1) , where W indicates the subblock width, and H indicates subblock height. To avoid the additional complexity of SAD calculation, the SAD between the initial L0 and L1 prediction samples calculated in DVMR process is re-used here. If BCW is enabled for the current block, i.e., the BCW weight index indicates unequal weight, then bi-directional  optical flow is disabled. Similarly, if WP is enabled for the current block, i.e., the luma_weight_lx_flag is 1 for either of the two reference pictures, then BDOF is also disabled. When a CU is coded with symmetric MVD mode or CIIP mode, BDOF is also disabled. 2.8.1. Sample-based BDOF In the sample-based BDOF, instead of deriving motion refinement (Vx, Vy) on a block basis, it is performed per  sample. 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.9. Multi-hypothesis prediction (MHP) 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. The weighting factor α is specified by the new syntax element add_hyp_weight_idx, according to the following  mapping. 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. 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) . 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. For inter AMVP mode, MHP is only applied if non-equal weight in BCW is selected in bi-prediction mode.  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.10. Intra block copy (IBC) Intra block copy (IBC) is a tool adopted in HEVC extensions on SCC. It is well known that it significantly  improves the coding efficiency of screen content materials. Since IBC mode is implemented as a block level coding mode, block matching (BM) is performed at the encoder to find the optimal block vector (or motion vector) for each CU. Here, a block vector is used to indicate the displacement from the current block to a reference block, which is already reconstructed inside the current picture. The luma block vector of an IBC-coded CU is in integer precision. The chroma block vector rounds to integer precision as well. When combined with AMVR, the IBC mode can switch between 1-pel and 4-pel motion vector precisions. An IBC-coded CU is treated as the third prediction mode other than intra or inter prediction modes. The IBC mode is applicable to the CUs with both width and height smaller than or equal to 64 luma samples. At the encoder side, hash-based motion estimation is performed for IBC. The encoder performs RD check for  blocks with either width or height no larger than 16 luma samples. For non-merge mode, the block vector search is performed using hash-based search first. If hash search does not return valid candidate, block matching based local search will be performed. In the hash-based search, hash key matching (32-bit CRC) between the current block and a reference block is  extended to all allowed block sizes. The hash key calculation for every position in the current picture is based on 4x4 subblocks. For the current block of a larger size, a hash key is determined to match that of the reference block when all the hash keys of all 4×4 subblocks match the hash keys in the corresponding reference locations. If hash keys of multiple reference blocks are found to match that of the current block, the block vector costs of each matched reference are calculated and the one with the minimum cost is selected. In block matching search, the search range is set to cover both the previous and current CTUs. At CU level, IBC mode is signalled with a flag and it can be signaled as IBC AMVP mode or IBC skip / merge  mode as follows: –IBC skip / merge mode: a merge candidate index is used to indicate which of the block vectors in the list  from neighboring candidate IBC coded blocks is used to predict the current block. The merge list consists of spatial, HMVP, and pairwise candidates. –IBC AMVP mode: block vector difference is coded in the same way as a motion vector difference. The  block vector prediction method uses two candidates as predictors, one from left neighbor and one from above neighbor (if IBC coded) . When either neighbor is not available, a default block vector will be used as a predictor. A flag is signaled to indicate the block vector predictor index. 2.10.1. Simplification of IBC vector prediction The BV predictors for merge mode and AMVP mode in IBC will share a common predictor list, which consist  of the following elements: ● 2 spatial neighboring positions (A1, B1 as in Fig. 16) . ● 5 HMVP entries. ● Zero vectors by default. For merge mode, up to first 6 entries of this list will be used; for AMVP mode, the first 2 entries of this list  will be used. And the list conforms with the shared merge list region requirement (shared the same list within the SMR) . Fig. 16 illustrates spatial neighboring positions used in IBC vector prediction. 2.10.2. IBC reference region To reduce memory consumption and decoder complexity, the IBC in VVC allows only the reconstructed portion  of the predefined area including the region of current CTU and some region of the left CTU. Fig. 17 illustrates the reference region of IBC Mode, where each block represents 64x64 luma sample unit. Fig. 17 illustrates current CTU processing order and its available reference samples in current and left CTU.  Depending on the location of the current coding CU location within the current CTU, the following applies: –If current block falls into the top-left 64x64 block of the current CTU, then in addition to the already  reconstructed samples in the current CTU, it can also refer to the reference samples in the bottom-right 64x64 blocks of the left CTU, using CPR mode. The current block can also refer to the reference samples in the bottom-left 64x64 block of the left CTU and the reference samples in the top-right 64x64 block of the left CTU, using CPR mode. –If current block falls into the top-right 64x64 block of the current CTU, then in addition to the already  reconstructed samples in the current CTU, if luma location (0, 64) relative to the current CTU has not yet been reconstructed, the current block can also refer to the reference samples in the bottom-left 64x64 block and bottom-right 64x64 block of the left CTU, using CPR mode; otherwise, the current block can also refer to reference samples in bottom-right 64x64 block of the left CTU. –If current block falls into the bottom-left 64x64 block of the current CTU, then in addition to the already  reconstructed samples in the current CTU, if luma location (64, 0) relative to the current CTU has not yet been reconstructed, the current block can also refer to the reference samples in the top-right 64x64 block and bottom-right 64x64 block of the left CTU, using CPR mode. Otherwise, the current block can also refer to the reference samples in the bottom-right 64x64 block of the left CTU, using CPR mode. –If current block falls into the bottom-right 64x64 block of the current CTU, it can only refer to the  already reconstructed samples in the current CTU, using CPR mode. This restriction allows the IBC mode to be implemented using local on-chip memory for hardware  implementations. 2.10.3. IBC interaction with other coding tools The interaction between IBC mode and other inter coding tools in VVC, such as pairwise merge candidate,  history-based motion vector predictor (HMVP) , combined intra / inter prediction mode (CIIP) , merge mode with motion vector difference (MMVD) , and geometric partitioning mode (GPM) are as follows: –IBC can be used with pairwise merge candidate and HMVP. A new pairwise IBC merge candidate can  be generated by averaging two IBC merge candidates. For HMVP, IBC motion is inserted into history buffer for future referencing. –IBC cannot be used in combination with the following inter tools: affine motion, CIIP, MMVD, and  GPM. –IBC is not allowed for the chroma coding blocks when DUAL_TREE partition is used. Unlike in the HEVC screen content coding extension, the current picture is no longer included as one of the  reference pictures in the reference picture list 0 for IBC prediction. The derivation process of motion vectors for IBC mode excludes all neighboring blocks in inter mode and vice versa. The following IBC design aspects are applied: –IBC shares the same process as in regular MV merge including with pairwise merge candidate and  history-based motion predictor, but disallows TMVP and zero vector because they are invalid for IBC mode. –Separate HMVP buffer (5 candidates each) is used for conventional MV and IBC. –Block vector constraints are implemented in the form of bitstream conformance constraint, the encoder  needs to ensure that no invalid vectors are present in the bitstream, and merge shall not be used if the merge candidate is invalid (out of range or 0) . Such bitstream conformance constraint is expressed in terms of a virtual buffer as described below. –For deblocking, IBC is handled as inter mode. –If the current block is coded using IBC prediction mode, AMVR does not use quarter-pel; instead,  AMVR is signaled to only indicate whether MV is inter-pel or 4 integer-pel. –The number of IBC merge candidates can be signalled in the slice header separately from the numbers  of regular, subblock, and geometric merge candidates. A virtual buffer concept is used to describe the allowable reference region for IBC prediction mode and valid  block vectors. Denote CTU size as ctbSize, the virtual buffer, ibcBuf, has width being wIbcBuf = 128x128 / ctbSize and height hIbcBuf = ctbSize. For example, for a CTU size of 128x128, the size of ibcBuf is also 128x128; for a CTU size of 64x64, the size of ibcBuf is 256x64; and a CTU size of 32x32, the size of ibcBuf is 512x32. The size of a VPDU is min (ctbSize, 64) in each dimension, Wv = min (ctbSize, 64) . The virtual IBC buffer, ibcBuf is maintained as follows. –At the beginning of decoding each CTU row, refresh the whole ibcBuf with an invalid value -1. –At the beginning of decoding a VPDU (xVPDU, yVPDU) relative to the top-left corner of the picture,  set the ibcBuf [x] [y] = -1, with x = xVPDU%wIbcBuf, …, xVPDU%wIbcBuf + Wv -1; y = yVPDU%ctbSize, …, yVPDU%ctbSize + Wv -1. –After decoding a CU contains (x, y) relative to the top-left corner of the picture, set  ibcBuf [x %wIbcBuf] [y %ctbSize] = recSample [x] [y] For a block covering the coordinates (x, y) , if the following is true for a block vector bv = (bv [0] , bv [1] ) , then  it is valid; otherwise, it is not valid: ibcBuf [ (x + bv [0] ) %wIbcBuf] [ (y + bv [1] ) %ctbSize] shall not be equal to -1. 2.10.4. IBC virtual buffer test A luma block vector bvL (the luma block vector in 1 / 16 fractional-sample accuracy) shall obey the following  constraints: –CtbSizeY is greater than or equal to ( (yCb + (bvL [1] >> 4) ) & (CtbSizeY -1) ) + cbHeight. –IbcVirBuf [0] [ (x + (bvL [0] >> 4) ) & (IbcBufWidthY -1)] [ (y + (bvL [1] >> 4) ) & (CtbSizeY  -1) ] shall not be equal to -1 for x = xCb.. xCb + cbWidth -1 and y = yCb.. yCb + cbHeight -1. Otherwise, bvL is considered as an invalid bv. The samples are processed in units of CTBs. The array size for each luma CTB in both width and height is  CtbSizeY in units of samples. – (xCb, yCb) is a luma location of the top-left sample of the current luma coding block relative to the top- left luma sample of the current picture, –cbWidth specifies the width of the current coding block in luma samples, –cbHeight specifies the height of the current coding block in luma samples. 2.11. IBC merge / AMVP list construction 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. 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. 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. 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. 18. Fig. 18 illustrates padding candidates for the replacement of the zero-vector in the IBC list. 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. 19 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) 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. Fig. 19 illustrates IBC candidate clustering based on the L2 distance and the TM cost. 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. 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.12. Auto-relocated block vector prediction Auto-relocated block vector prediction (AR-BVP) is introduced into IBC merge / AMVP candidate list  construction. As shown in Fig. 20, a guiding block vector BV0, 1 associated with the current block B0 points to a reference  block B1. If B1 has a BV denoted as BV1, 2 pointing to a reference block B2, then BV0, 2, given by BV0, 2 = BV0, 1 +BV1, 2, is defined as the AR-BVP, guided by BV0, 1. Similarly, BV0, n+1 can be derived by BV0, n+1 =BV0, n+BVn, n+1 = BV0, 1+BV1, 2 +…+BVn-1, n +BVn, n+1. Three tests are conducted in this EE. In test1, the length of the AR-BVP trace path is 1 (i.e., n=1) . In test2, the  length of the AR-BVP trace path is 2 (i.e., n=2) . In test3, there is no constraint for the length of the AR-BVP trace path. When deriving BVn, n+1 guided by BV0, n, all five positions including top-left (e.g., LT in Fig. 21) , top-right (e.g.,  RT in Fig. 21) , center (e.g., Ctr in Fig. 21) , bottom-left (e.g., LB in Fig. 21) , and bottom-right (e.g., RB in Fig. 21) positions of Bn are checked to find BVn, n+1. In our implementation, the initial guiding block vector BV0, 1 is set to be an existing BVP already in the IBC  merge / AMVP candidate list. The AR-BVP candidates are inserted after the HBVP candidates. The IBC merge / AMVP candidate list size are  kept unchanged. Fig. 20 illustrates an example of how to derive AR-BVP. Fig. 21 illustrates the five positions in Bn. 2.13. IBC with Template Matching Template Matching is used in IBC for both IBC merge mode and IBC AMVP mode. 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. 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. 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. 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. 22. 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. Fig. 22 illustrates IBC reference region depending on current CU position. 2.14. IBC reference area The reference area for IBC is extended to two CTU rows above. Fig. 23 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. Fig. 23 illustrates reference area for IBC when CTU (m, n) is coded. The dark grey block denotes the current CTU; light grey blocks denote the reference area; and the white blocks denote invalid reference area. 2.15. Fractional pel IBC 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.16. Filtered IBC prediction 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. Output of the filter is calculated as follows: predLumaVal = c0C + c1N + c2S + c3E + c4W + c5P + c6B. 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. 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) . 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.17. Reconstruction-Reordered IBC (RR-IBC) 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. 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. 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. 24A and Fig. 24B, (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 . Fig. 24A illustrates BV adjustment for horizontal flip. Fig. 24B illustrates BV adjustment for vertical flip. 2.18. Combination of IBC with other coding tools 2.18.1. IBC merge mode with block vector differences (IBC-MBVD) 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. 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. 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. 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. An IBC-MBVD coded block does not inherit flip type from a RR-IBC coded neighbor block. 2.18.2. Combined intra block copy and intra prediction 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 wherein 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. 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.18.3. IBC with Geometry Partitioning 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 1: Geometry partitioning modes in the first geometry partitioning mode set Table 2: Geometry partitioning modes in the second geometry partitioning mode set 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. Here, the uni-predictive IBC GPM generates the prediction samples for each GPM partition using the IBC and  intra mode, respectively. 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.18.4. IBC BVP-merge and bi-predictive IBC merge 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. 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.18.5. IBC MBVD list derivation 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.18.6. IBC with Local Illumination Compensation 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.19. Intra template matching Intra template matching prediction (IntraTMP) is a special intra prediction mode that copies the best prediction  block from the reconstructed part of the current frame, whose L-shaped template matches the current template. For a predefined search range, the encoder searches for the most similar template to the current template in a reconstructed part of the current frame and uses the corresponding block as a prediction block. The encoder then signals the usage of this mode, and the same prediction operation is performed at the decoder side. The prediction signal is generated by matching the L-shaped, Top-only or Left-Only causal neighbor of the  current block with another block in a predefined search area in Fig. 25. There are 6 predefined search areas, i.e., R1 to R6 in Fig. 25 which contain the reconstructed samples from the top and left CTUs as well as part of the reconstructed samples within the current CTU that are located above, left, bottom-left and top-right to the current block. Sum of absolute differences (SAD) is used as a cost function. A given search order of the 6 regions is utilized, i.e., R4, R5, R6, R1, R2, and R3. Within each region, the  decoder constructs a candidate list of up to “19” template matching block vectors that are ranked in ascending order according to the template cost (SAD) . The following modes are supported: 1- Single predictor: A single predictor is selected from the candidate list. 2- Fusion of multiple predictors: multiple predictors are blended multiple to derive the final prediction  block. The blending weights are either computed from the template matching cost of each predictor, or with Wiener-filter based weight derivation method. 3- Sub-pel precision: When signle predictor is used, sub-pel precion can be used with 1 / 2-pel precision,  1 / 4-pel precision and 3 / 4-pel precision, each with 8 possible directions. 4- linear filter model: A linear filter can be learned between the reference template and current template  and be applied the linear model to reference block. This mode can be used for signle predictor when sub-pel precision is not used. The dimensions of all regions (SearchRange_w, SearchRange_h) are set proportional to the block dimension  (BlkW, BlkH) to have a fixed number of SAD comparisons per pixel. That is: SearchRange_w = min (64, a*BlkW) SearchRange_h = min (64, a*BlkH) where ‘a’ is a constant that controls the gain / complexity trade-off. In practice, ‘a’ is equal to 5. Fig. 25 illustrates  intra template matching search area used. To speed-up the template matching process, the search range of all search regions is subsampled by a factor of  3. After finding the best match, a refinement process is performed. The refinement is done via a second template matching search around the best match with a reduced range. The Intra template matching tool is enabled for CUs with size less than or equal to 64 in width and height. This  maximum CU size for Intra template matching is configurable. The Intra template matching prediction mode is signaled at CU level through a dedicated flag when DIMD is  not used for current CU. 2.19.1. IntraTMP derived block vector candidates for IBC In this method block vector (BV) derived from the intra template matching prediction (IntraTMP) is used for  intra block copy (IBC) . The stored IntraTMP BV of the neighbouring blocks along with IBC BV are used as spatial BV candidates in IBC candidate list construction. IntraTMP block vector is stored in the IBC block vector buffer and, the current IBC block can use both IBC BV  and IntraTMP BV of neighbouring blocks as BV candidate for IBC BV candidate list as shown in Fig. 26. Fig. 26 illustrates use of IntraTMP block vector for IBC block. IntraTMP block vectors are added to IBC block vector candidate list as spatial candidates. IntraTMP block  vectors are stored in quarter-pel resolution for coding of IBC block vectors and HMVP. 2.19.2. IntraTMP with merge candidates In the test, new candidates, consisting of block vectors from neighbouring PUs coded in IBC or IntraTMP mode,  are added into IntraTMP search process. There are up to 25 local and non-local PUs that may be checked during the selection of the neighbouring candidates, those candidates are evaluated together with other candidates, and 30 best candidates (same as in ECM) are selected for further refinement. The neighbouring candidates may come from outside of IntraTMP search area and such outside candidates are  prioritized. 2.19.3. AR-BVP for IntraTMP merge candidates This method proposes to add AR-BVP into the construction of IntraTMP merge candidate list. The AR-BVP  candidates are inserted into the IntraTMP merge candidate list according to the following orders: 1. Inherited from adjacent neighbors; 2. Inherited from non-adjacent neighbors; 3. Constructed AR-BVP from existing candidates. The existing BVs in the list and the constructed AR-BVPs will be used as the guiding block vectors. For a  certain guiding BV, five positions including top-left, top-right, center, bottom-left and bottom-right of reference block are checked to get a BV of reference block and construct AR-BVP. The construction process will end when no new AR-BVP is constructed or the list reaches the maximum size of fifty. The IntraTMP merge candidate list is further sorted based on template matching cost and the best ten candidates  are kept. After this, the merge list will be used in the subsequent template matching process. 2.20. Convolutional cross-component intra prediction model In this method convolutional cross-component model (CCCM) is applied to predict chroma samples from  reconstructed luma samples in a similar spirit as done by the current CCLM modes. As with CCLM, the reconstructed luma samples are down-sampled to match the lower resolution chroma grid when chroma sub-sampling is used. Similar to CCLM top, left or top and left reference samples are used as templates for model derivation. Also, similarly to CCLM, there is an option of using a single model or multi-model variant of CCCM. The multi- model variant uses two models, one model derived for samples above the average luma reference value and another model for the rest of the samples (following the spirit of the CCLM design) . Multi-model CCCM mode can be selected for PUs which have at least 128 reference samples available. 2.20.1. Convolutional filter The convolutional 7-tap filter consist of a 5-tap plus sign shape spatial component, a nonlinear term and a bias  term. The input to the spatial 5-tap component of the filter consists of a center (C) luma sample which is collocated with the chroma sample to be predicted and its above / north (N) , below / south (S) , left / west (W) and right / east (E) neighbors as illustrated below. Fig. 27 illustrates spatial part of the convolutional filter. The nonlinear term P is represented as power of two of the center luma sample C and scaled to the sample value  range of the content: P = (C*C + midVal) >> bitDepth. That is, for 10-bit content it is calculated as: P = (C*C + 512) >> 10. The bias term B represents a scalar offset between the input and output (similarly to the offset term in CCLM)  and is set to middle chroma value (512 for 10-bit content) . Output of the filter is calculated as a convolution between the filter coefficients ci and the input values and  clipped to the range of valid chroma samples: predChromaVal = c0C + c1N + c2S + c3E + c4W + c5P + c6B. 2.20.2. Calculation of filter coefficients The filter coefficients ci are calculated by minimising MSE between predicted and reconstructed chroma samples  in the reference area. Fig. 28 illustrates the reference area which consists of 2 or 6 lines of chroma samples above and left of the PU. Whether to use 6 lines or 2 lines of neighbouring samples to derive the CCCM model parameters in the single model CCCM is determined by a template cost. Similarly, for the multi-model CCCM mode, the two candidates use 6 lines neighbouring luma samples or luma samples collocated to the current chroma block to derive mean values which separate samples into two groups. The cost is derived by applying the candidate CCP (either 2 or 6 lines) on a template, calculating the sum of absolute difference (SAD) between CCP predicted samples and reconstructed samples in the template. Reference area extends one PU width to the right and one PU height below the PU boundaries. Area is adjusted  to include only available samples. The extensions to the area shown in blue are needed to support the “side samples” of the plus shaped spatial filter and are padded when in unavailable areas. Fig. 28 shows reference area (with its paddings) used to derive the filter coefficients. The MSE minimization is performed by calculating autocorrelation matrix for the luma input and a cross- correlation vector between the luma input and chroma output. Autocorrelation matrix is LDL decomposed and the final filter coefficients are calculated using back-substitution. The process follows roughly the calculation of the ALF filter coefficients in ECM, however LDL decomposition was chosen instead of Cholesky decomposition to avoid using square root operations. The autocorrelation matrix is calculated using the reconstructed values of luma and chroma samples. These  samples are full range (e.g. between 0 and 1023 for 10-bit content) resulting in relatively large values in the autocorrelation matrix. This requires high bit depth operation during the model parameters calculation. It is proposed to remove fixed offsets from luma and chroma samples in each PU for each model. This is driving down the magnitudes of the values used in the model creation and allows reducing the precision needed for the fixed-point arithmetic. As a result, 16-bit decimal precision is proposed to be used instead of the 22-bit precision of the original CCCM implementation. Reference sample values just outside of the top-left corner of the PU are used as the offsets (offsetLuma, offsetCb  and offsetCr) for simplicity. The samples values used in both model creation and final prediction (i.e., luma and chroma in the reference area, and luma in the current PU) are reduced by these fixed values, as follows: C'= C –offsetLuma, N'= N –offsetLuma, S'= S –offsetLuma, E'= E –offsetLuma, W'= W –offsetLuma, P'= nonLinear (C') , B = midValue = 1 << (bitDepth -1) , and the chroma value is predicted using the following equation, where offsetChroma is equal to offsetCr and  offsetCb for Cr and Cb components, respectively: predChromaVal = c0C'+ c1N'+ c2S'+ c3E'+ c4W'+ c5P'+ c6B + offsetChroma. In order to avoid any additional sample level operations, the luma offset is removed during the luma reference  sample interpolation. This can be done, for example, by substituting the rounding term used in the luma reference sample interpolation with an updated offset including both the rounding term and the offsetLuma. The chroma offset can be removed by deducting the chroma offset directly from the reference chroma samples. As an alternative way, impact of the chroma offset can be removed from the cross-component vector giving identical result. In order to add the chroma offset back to the output of the convolutional prediction operation the chroma offset is added to the bias term of the convolutional model. The process of CCCM model parameter calculation requires division operations. Division operations are not  always considered implementation friendly. The division operation are replaced with multiplication (with a scale factor) and shift operation, where scale factor and number of shifts are calculated based on denominator similar to the method used in calculation of CCLM parameters. 2.21. Block Vector Guided Block Vector Prediction The term ‘block’ may represent a coding tree block (CTB) , a coding tree unit (CTU) , a coding block  (CB) , a CU, a PU, a TU, a PB, a TB or a video processing unit comprising multiple samples / pixels. A block may be rectangular or non-rectangular. W and H are the width and height of current block (e.g., luma block) . For an IBC and Intra TMP coded block, a block vector (BV) is used to indicate the displacement from  the current block to a reference block, which is already or partially reconstructed inside the current picture. In the following, a BV candidate is a BV predictor or a searching point. One block has BV information  if it is IBC coded or Intra TMP coded. It is noted that for other coding methods which may require to derive a MV / BV, the proposed methods  may also be applied. In one example, suppose a block vector BV0, 1 associated with the current block B0 points to a reference  block B1, which is already or partially reconstructed inside the current picture. If B1 has BV information with the corresponding BV of BV1, 2, then it can obtain a new reference block B2 for B0 with the BV of BV0, 2 given by BV0, 2 = BV0, 1 +BV1, 2 when BV0, 2 is valid for current block. And BV0, 2 is a block vector guided BV prediction or candidate, which is called the first-order block vector guided cascaded BVP. If B2 has BV information with the corresponding BV of BV2, 3, then it can obtain a new reference block B3 for B0 with the BV of BV0, 3 given by BV0, 3 = BV0, 2 +BV2, 3 when BV0, 3 is valid for current block. And BV0, 3 is a block vector guided BV prediction or candidate, which is called the second-order block vector guided cascaded BVP. If B3 has BV information with the corresponding BV of BV3, 4, then it can obtain a new reference block B4 for B0 with the BV of BV0, 4 given by BV0, 4 = BV0, 3 +BV3, 4 when BV0, 4 is valid for current block. And BV0, 4 is a block vector guided BV prediction or candidate, which is called the third-order block vector guided cascaded BVP. Similarly, if Bn has BV information with the corresponding BV of BVn, n+1, then it can obtain a new reference block Bn+1 for B0 with the BV of BV0, n+1 given by BV0, n+1 = BV0, n +BVn, n+1 when BV0, n+1 is valid for current block. And BV0, n+1 is a block vector guided BV prediction or candidate, which is called the nth-order block vector guided cascaded BVP. In one example, suppose a block vector BV0, 1 associated with the current block B0 points to a reference  block B1, which is already or partially reconstructed inside the current picture. If B1 has BV information with the corresponding BV of BV1, 2, then BV1, 2, which is called the first-order block vector guided direct BVP, is a block vector guided BV prediction or candidate when BV1, 2 is valid for current block. If B2 has BV information with the corresponding BV of BV2, 3, then BV2, 3, which is called the second-order block vector guided direct BVP, is a block vector guided BV prediction or candidate when BV2, 3 is valid for current block. If B3 has BV information with the corresponding BV of BV3, 4, then BV3, 4, which is called the third-order block vector guided direct BVP, is a block vector guided BV prediction or candidate when BV3, 4 is valid for current block. Similarly, if Bn has BV information with the corresponding BV of BVn, n+1, then BVn, n+1, which is called the nth-order block vector guided direct BVP, is a block vector guided BV prediction or candidate when BVn, n+1 is valid for current block. The sketch map of block vector guided BV prediction is shown in Fig. 29.Block vector guided BV / MV prediction 1. In one example, a block vector guided BV and / or MV prediction may be introduced in BV and / or MV  prediction. a. In one example, the BV and / or MV prediction may be at least one of the following. (a) In one example, the BV and / or MV prediction may be regular IBC and / or inter merge  prediction. (b) In one example, the BV and / or MV prediction may be regular IBC and / or inter  AMVP prediction. (c) In one example, the BV and / or MV prediction may be IBC and / or inter -TM merge  prediction. (d) In one example, the BV and / or MV prediction may be IBC and / or inter -TM AMVP  prediction. (e) In one example, the BV prediction may be RR-IBC merge prediction. (f) In one example, the BV prediction may be RR-IBC AMVP prediction. (g) In one example, the BV and / or MV prediction may be IBC-MBVD and / or inter  MMVD prediction. (h) In one example, the BV and / or MV prediction may be IBC-CIIP and / or CIIP. (i) In one example, the BV and / or MV prediction may be IBC-GPM and / or GPM  prediction. (j) In one example, the BV and / or MV prediction may be encoder only BV prediction. (k) In one example, the BV prediction may be string copy vector prediction. (l) In one example, the BV and / or MV prediction may be any other BV and / or MV  prediction. 2. In one example, a block vector guided BV and / or MV candidate may be introduced in BV and / or MV  candidate list. a. In one example, the BV and / or MV candidate list may be at least one of the following. (a) In one example, the BV and / or MV candidate list may be regular IBC and / or inter  merge list. (b) In one example, the BV and / or MV candidate list may be regular IBC and / or inter  AMVP list. (c) In one example, the BV and / or MV candidate list may be IBC and / or inter -TM  merge list. (d) In one example, the BV and / or MV candidate list may be IBC and / or inter -TM  AMVP list. (e) In one example, the BV candidate list may be RR-IBC merge list. (f) In one example, the BV candidate list may be RR-IBC AMVP list. (g) In one example, the BV and / or MV candidate list may be IBC-MBVD and / or inter  MMVD base candidate list. (h) In one example, the BV and / or MV candidate list may be IBC-CIIP and / or CIIP  merge list. (i) In one example, the BV and / or MV candidate list may be IBC-CIIP AMVP and / or  CIIP AMVP list. (j) In one example, the BV and / or MV candidate list may be IBC-GPM merge and / or  GPM merge list. (k) In one example, the BV and / or MV candidate list may be IBC-GPM AMVP and / or  GPM AMVP list. (l) In one example, the BV and / or MV candidate list may be encoder only BV candidate  list. (m) In one example, the BV and / or MV candidate list may be any other BV candidate  and / or MV candidate list. 3. In one example, a block vector guided BV prediction or candidate may be derived in at least one of the  following methods. a. In one example, a block vector guided BV prediction or candidate may be a block vector guided  cascaded BV prediction or candidate. b. In one example, a block vector BV0, 1 associated with the current block B0 points to a reference  block B1. If B1 has a BV denoted as BV1, 2 pointing to a reference block B2, then BV0, 2 given by BV0, 2 = BV0, 1 +BV1, 2. And BV0, 2 is a block vector guided BV prediction or candidate, which is called the first-order block vector guided cascaded BVP or candidate. (a) In one example, it may be required that B1 should be already or partially  reconstructed inside the current picture. (b) In one example, it may be required that BV0, 2 must be valid for current block. c. In one example, a block vector guided BV prediction or candidate may be the nth-order (e.g.,  n≥1) block vector guided cascaded BVP or candidate, denoted as BV0, n+1. (a) BV0, n+1 = BV0, 1 +BV1, 2+BV2, 3+…+BVn-1, n+BVn, n+1 d. In one example, a block vector guided BV prediction or candidate may be a block vector guided  direct BV prediction or candidate. e. In one example, a block vector BV0, 1 associated with the current block B0 points to a reference  block B1. If B1 has a BV denoted as BV1, 2, then BV1, 2, which is called the first-order block vector guided direct BVP or candidate, is a block vector guided BV prediction or candidate. (a) In one example, it may be required that B1 should be already or partially  reconstructed inside the current picture. (b) In one example, it may be required that BV1, 2 must be valid for current block. f. In one example, a block vector guided BV prediction or candidate may be the nth-order (e.g.,  n≥1) block vector guided direct BVP or candidate, denoted as BVn, n+1. g. In one example, the block vector BV0, 1 associated with the current block B0 may be derived  from at least one of the following candidates. (a) In one example, the block vector BV0, 1 associated with the current block B0 may be  derived from any existing BV candidate in the BV candidate list before deriving a block vector guided BVP. 1) In one example, the existing BV candidate may be a block vector guided BV  candidate. 2) In one example, if BV0, i+1 is the ith-order block vector guided cascaded BV  candidate, accordingly, BV0, i+2 is the (i+1) th-order block vector guided cascaded BV candidate. 3) In one example, if BV0, i+1 is the ith-order block vector guided cascaded BV  candidate, accordingly, BVi+1, i+2 is the (i+1) th-order block vector guided direct BV candidate. (b) In one example, the block vector BV0, 1 associated with the current block B0 may be  derived from some predefined BV candidates in the BV candidate list before deriving a block vector guided BVP. 1) In one example, the predefined BV candidates may be the first N BV  candidates. 2) In one example, the predefined BV candidates may be the selected N BV  candidates. 3) In one example, the predefined BV candidates may be BV candidates of  specified candidate types. i. In one example, the specified candidate types may involve adjacent  (e.g., Fig. 4 or Fig. 30) spatial BV candidates. Fig. 30 illustrates some example adjacent spatial neighbouring positions. ii. In one example, the specified candidate types may involve non- adjacent (e.g., Fig. 22) spatial BV candidates. iii. In one example, the specified candidate types may involve HMVP  BV candidates. iv. In one example, the specified candidate types may involve adjacent  temporal BV candidates. v. In one example, the specified candidate types may involve non- adjacent temporal BV candidates. vi. In one example, the specified candidate types may involve pairwise- average BV candidates. vii. In one example, the specified candidate types may involve block  vector guided BV candidates. h. In one example, only first-order block vector guided BV candidates may be used. i. In one example, only first-order and second-order block vector guided BV candidates may be  used. j. In one example, only first nth-order block vector guided BV candidates may be used. 4. In one example, when deriving BVn, n+1 from Bn, specific position (s) may be checked for deriving the  BV. a. In one example, only center (e.g., Ctr in Fig. 31) position of Bn may be checked for deriving  the BV. Suppose width and height of a block is denoted as W and H, respectively. Fig. 31 illustrates the five positions in Bn. (a) The center position of a block is defined as (W>>1, H>>1) assuming the top-left  position within a block is (0, 0) . (b) The center position of a block is defined as ( (W>>1) -1, H>>1) assuming the top-left  position within a block is (0, 0) . (c) The center position of a block is defined as (W>>1, (H>>1) -1) assuming the top-left  position within a block is (0, 0) . (d) The center position of a block is defined as ( (W>>1) -1, (H>>1) -1) assuming the top- left position within a block is (0, 0) . b. In one example, only top-left (e.g., LT in Fig. 31) position of Bn may be checked for deriving  the BV. c. In one example, at least one of top-left ( (e.g., LT in Fig. 31) , top-right (e.g., RT in Fig. 31) ,  center (e.g., Ctr in Fig. 31) , bottom-left (e.g., LB in Fig. 31) , and bottom-right (e.g., RB in Fig. 31) positions of Bn may be checked for deriving the BV. (a) In one example, all available BVs may be used for the block vector guided BV  candidate (e.g., BVn, n+1 or BV0, n+1) derivation. (b) In one example, only the first available BV may be used for the block vector guided  BV candidate (e.g., BVn, n+1 or BV0, n+1) derivation. d. In one example, all five positions of top-left ( (e.g., LT in Fig. 31) , top-right (e.g., RT in Fig.  31) , center (e.g., Ctr in Fig. 31) , bottom-left (e.g., LB in Fig. 31) , and bottom-right (e.g., RB in Fig. 31) positions of Bn may be checked for deriving the BV. (a) In one example, the checking order is center->top-left->top-right->bottom- left->bottom-right. (b) In one example, all available BVs may be used for the block vector guided BV  candidate (e.g., BVn, n+1 or BV0, n+1) derivation. (c) In one example, only the first available BV may be used for the block vector guided  BV candidate (e.g., BVn, n+1 or BV0, n+1) derivation. e. In one example, some predefined positions of Bn may be checked for deriving the BV. (a) In one example, all available BVs may be used for the block vector guided BV  candidate (e.g., BVn, n+1 or BV0, n+1) derivation. (b) In one example, only the first available BV may be used for the block vector guided  BV candidate (e.g., BVn, n+1 or BV0, n+1) derivation. f. In one example, if a motion grid (such as 4x4 grid) that covers a certain position of Bn is  available, has BV information, it may be used for the block vector guided BV candidate (e.g., BVn, n+1 or BV0, n+1) derivation. 5. In one example, there may be a constraint on the maximum number (e.g., N) of block vector guided BV  candidates. a. Alternatively, there may be no constraint on the maximum number (e.g., N) of block vector  guided BV candidates. b. In one example, the number of block vector guided BV candidates may be not larger than 5. c. In one example, the number of block vector guided BV candidates may be not larger than 4. d. Alternatively, there may be a constraint on the maximum number (e.g., M) of block vector  guided BV candidates which may be unique (e.g., after full pruning) to be derived. (a) In one example, M may be 5. (b) In one example, M may be 4. (c) In one example, M may be 3. e. In one example, a redundancy check or pruning may be performed when deriving the block  vector guided BV candidates. (a) In one example, a full pruning may be performed when deriving the block vector  guided BV candidates to ensure that candidates with the same or similar motion information are excluded from the BV candidate list. (b) In one example, a partial pruning may be performed when deriving the block vector  guided BV candidates. 6. In one example, the positions of block vector guided BV candidates in the BV candidate list may be one  of the following. a. In one example, all the block vector guided BV candidates may be inserted before the HMVP  BV candidates. b. In one example, partial of the block vector guided BV candidates may be inserted before the  HMVP BV candidates, and the remaining of the block vector guided BV candidates may be inserted after the HMVP BV candidates. c. In one example, all the block vector guided BV candidates may be inserted after the HMVP  BV candidates. d. In one example, all the block vector guided BV candidates may be inserted before the non- adjacent spatial BV candidates. e. In one example, partial of the block vector guided BV candidates may be inserted before the  non-adjacent spatial BV candidates, and the remaining of the block vector guided BV candidates may be inserted after the non-adjacent spatial BV candidates. f. In one example, all the block vector guided BV candidates may be inserted after the non- adjacent spatial BV candidates. 7. In one example, whether to use block vector guided BV prediction 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.BV candidate reordering 8. In one example, the reordering / refinement process may be performed when deriving the BV candidate  list. a. In one example, the reordering / refinement process may be based on template matching cost (s) . b. In one example, when constructing the BV candidate list, N1 adjacent spatial candidates and / or  N2 temporal candidates and / or N3 non-adjacent spatial candidates and / or N4 HMVP candidates and / or N5 block vector guided BV candidates and / or N6 pairwise average candidates and / or N7 predefined BV candidates may be partially or all derived with full pruning to make sure there are no duplicate or similar candidates in the list and then reordered together. After reordering, the first N candidates (such as with the lowest costs) may be selected as the final candidates in the BV candidate list. i. In one example, N may be 6 and / or N1 may be 5 and / or N2 may be 10 and / or N3 may  be 35 and / or N4 may be 25 and / or N5 may be 10 and / or N6 may be 1 and / or N7 may be 6. ii. In one example, there may be a constraint on the maximum number (e.g., M) of BV  candidates which may be unique (e.g., after full pruning) to be derived. (i) In one example, M may be 20. (ii) In one example, M may be 28. iii. In one example, the adjacent spatial BV candidates may consist of left and / or above  and / or above-right and / or bottom-left and / or above-left spatial candidates (an example is shown in Fig. 4) . iv. In one example, the temporal BV candidates may consist of those specified in bullet 3. v. In one example, the non-adjacent spatial BV candidates may consist of those specified  in Fig. 22. vi. In one example, the number of HMVP BV candidates and / or the HMVP table size may  be increased to N2 (e.g., 25) . vii. In one example, the block vector guided BV candidates may be block vector guided  cascaded BV candidates as shown in Fig. 29. viii. In one example, the block vector guided BV candidates may be block vector guided  direct BV candidates as shown in Fig. 29. ix. In one example, for a pairwise BV candidate, it may be generated by averaging  predefined pairs of existing candidates in the motion candidate list. (iii) In one example, a predefined pair may be defined as a pair in a set such as { (0,  1) , (0, 2) , (1, 2) , (0, 3) , (1, 3) , (2, 3) } , where the numbers denote the motion candidate indices in the motion candidate list. x. In one example, the predefined BV candidates may be located in the IBC reference  region. c. In one example, a BV candidate type based ARMC may be used to reorder the BV candidates  with one specific candidate type or multiple specific candidate types according to one or some criteria. i. In one example, M candidates (such as with the lowest costs) with a specific candidate  type may be selected out of the N reordered candidates with the candidate type when constructing the BV candidate list. (i) In one example, M may vary depending on candidate types and / or coding  mode of current block. (ii) In one example, the candidate type may be adjacent spatial BV candidates.  For an example, M is 4, N is 5. (iii) In one example, the candidate type may be non-adjacent spatial BV candidates.  For an example, M is 6, N is 35. (iv) In one example, the candidate type may be temporal BV candidates. For an  example, M is 4, N is 10. (v) In one example, the candidate type may be HMVP BV candidates. For an  example, M is 10, N is 25. (i) In one example, the candidate type may be block vector guided BV candidates.  For an example, M is 4, N is 10. (ii) In one example, the candidate type may be pairwise average BV candidates.  For an example, M is 1, N is 6. (iii) In one example, the candidate type may be predefined BV candidates. For an  example, M is 1, N is 6. ii. In one example, multiple BV candidate types (i.e., candidate type combination) may  be reordered together. (i) In one example, M candidates (such as with the lowest costs) with any of the  specific BV candidate types may be selected out of the N reordered candidates in the candidate type combination when constructing the BV candidate list, where M may vary depending on candidate type combinations and / or coding mode of current block. (ii) In one example, adjacent spatial candidates and / or temporal candidates and / or  non-adjacent spatial candidates and / or HMVP candidates and / or block vector guided candidates and / or pairwise average candidates and / or predefined BV candidates may be reordered together. For an example, M is 6, N is 20. (iii) In one example, at least one BV candidate types of BV candidates may be  firstly reordered using the BV candidate type based ARMC. (iv) In one example, N1 HMVP candidates (such as with the lowest costs) may be  selected out of the reordered candidates with the HMVP candidate type, and the selected N1 HMVP candidates may be reordered together with the adjacent spatial candidates and / or temporal candidates and / or non-adjacent spatial candidates and / or block vector guided candidates and / or pairwise average candidates and / or predefined BV candidates. M candidates (such as with the lowest costs) may be selected in the finally. (v) In one example, N2 temporal candidates (such as with the lowest costs) may  be selected out of the reordered candidates with the temporal candidate type, and the selected N2 temporal candidates may be reordered together with the adjacent spatial candidates and / or HMVP candidates and / or non-adjacent spatial candidates and / or block vector guided candidates and / or pairwise average candidates and / or predefined BV candidates. M candidates (such as with the lowest costs) may be selected in the finally. (vi) In one example, N3 block vector guided candidates (such as with the lowest  costs) may be selected out of the reordered candidates with the block vector guided candidate type, and the selected N3 block vector guided candidates may be reordered together with the adjacent spatial candidates and / or HMVP candidates and / or non-adjacent spatial candidates and / or temporal candidates and / or pairwise average candidates and / or predefined BV candidates. M candidates (such as with the lowest costs) may be selected in the finally. (vii) In one example, if one candidate is reordered more than one times, its  reordering criterion (e.g., template matching cost) may be reused.Bi-predictive / Multi-hypothesis IBC prediction 9. In one example, the block vector guided BVP may be used for the bi-predictive / multi-hypothesis IBC  prediction. a. In one example, at least one prediction (e.g., P0) may be derived from common IBC prediction  and at least one prediction (e.g., P1) may be derived from block vector guided BVP. (a) In one example, only one index may be signaled from the encoder to the decoder to  indicate IBC merge / AMVP BV information for common IBC prediction. (b) In one example, the block vector guided BVP may be derived from the indicated  IBC merge / AMVP BV information as shown in Fig. 29. (c) In one example, the common IBC prediction may be derived from at least one of the  following. 1) In one example, the common IBC prediction may be derived from regular  IBC merge prediction. 2) In one example, the common IBC prediction may be derived from regular  IBC AMVP prediction. 3) In one example, the common IBC prediction may be derived from IBC-TM  merge prediction. 4) In one example, the common IBC prediction may be derived from IBC-TM  AMVP prediction. 5) In one example, the common IBC prediction may be derived from RR-IBC  merge prediction. 6) In one example, the common IBC prediction may be derived from RR-IBC  AMVP prediction. 7) In one example, the common IBC prediction may be derived from IBC- MBVD prediction. 8) In one example, the common IBC prediction may be derived from IBC-CIIP  prediction. 9) In one example, the common IBC prediction may be derived from IBC-GPM  prediction. 10) In one example, the common IBC prediction may be derived from encoder  only BV prediction. 11) In one example, the common IBC prediction may be derived from string copy  vector prediction. 12) In one example, the common IBC prediction may be derived from any other  BV prediction. b. In one example, the block vector guided bi-predictive / multi-hypothesis IBC prediction maybe  a new prediction mode. (a) In one example, the block vector guided bi-predictive / multi-hypothesis IBC  prediction maybe a sub-mode of at least one of regular IBC merge mode, regular IBC AMVP mode, IBC-TM merge mode, IBC-TM AMVP mode, RR-IBC merge mode, RR-IBC AMVP mode, IBC-MBVD mode, IBC-CIIP mode, IBC-GPM mode, encoder only BV mode, string copy vector mode. (b) In one example, whether to use the block vector guided bi-predictive / multi- hypothesis IBC prediction may be signaled by an indication such as a flag. (c) In one example, whether to use the block vector guided bi-predictive / multi- hypothesis IBC prediction may be signaled at block level / sequence level / group of pictures level / picture level / slice level / tile group level, such as in coding structures of CTU / CU / TU / PU / CTB / CB / TB / PB, or sequence header / picture header / SPS / VPS / DPS / DCI / PPS / APS / slice header / tile group header. (d) In one example, the M block vector guided bi-predictive IBC merge candidates may  be derived from N regular IBC merge candidates. 1) In one example, M / N may be predefined. 2) In one example, N may be the final number (e.g., 6) of regular IBC merge  candidates. 3) In one example, N may be the intermediate number (e.g., 28) of regular IBC  merge candidates. 4) In one example, M≤N. 5) In one example, which block vector guided bi-predictive IBC merge  candidate is used may be signaled by an indication such as an index. 6) In one example, the regular IBC merge candidates may be reordered by a  criterion such as template matching. 7) In one example, the block vector guided bi-predictive IBC merge candidates  may be reordered by a criterion such as template matching. (e) In one example, the bi-prediction signal may be generated by weighted averaging of  the two prediction signals as Pbi-pred= (w0*P0+w1*P1+o) >>shift. 1) In one example, w0=1, w1=1, o=1, shift=1. 2) In one example, w0=5, w1=3, o=4, shift=3. 3) In one example, o=1<< (shift-1) . 4) In one example, w0≥w1. 10. In one example, whether to use bi-predictive / multi-hypothesis IBC prediction 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.Subblock-based block vector guided block vector prediction (SbBVGBVP) 11. In one example, subblock-based block vector guided block vector prediction (SbBVGBVP) may be  supported as a BV candidate or a BV prediction mode. a. Similar to the SbTMVP, SbBVGBVP uses the subblock-based BV motion field in a block  vector guided corresponding block to improve block vector prediction and IBC merge mode. b. In one example, the width and height of the corresponding block in current picture may be the  same as the width and height of current block in current picture. c. In one example, the position of the corresponding block in current picture may be determined  by one BV shift added to the position of current block in current picture. (a) In one example, the BV shift may be a block vector of one spatial neighbor. 1) In one example, the spatial neighbor may be left (A1) , above (B1) , above-  right (B0) , bottom-left (A0) , or above-left (B2) neighbor in Fig. 4. 2) In one example, if a spatial neighbor has a block vector which is valid for  current block, this block vector may be selected to be the BV shift; if no such BV is identified, the spatial neighbor may not provide the BV shift. 3) In one example, the BV shift may be derived in a predefined priority order,  the first N valid block vector (s) may be used as the BV shift (s) . i. In one example, N may be 1, 2, 3, 4, or 5. ii. In one example, the priority order may be A1->B1->B0->A0->B2. iii. In one example, the priority order may be B1->A1->B0->A0->B2. iv. In one example, the priority order may be A0->A1->B0->B1->B2. (b) In one example, the BV shift (s) with the first M minimum template matching cost (s)  may be used to derive the SbBVGBVP candidates. 1) In one example, M may be 1, 2, 3, 4, or 5. (c) In one example, the validation of a BV shift may be determined. 1) For example, a BV shift may be determined to be invalid if the corresponding  block referred by the BV shift is out of the picture. 2) For example, a BV shift may be determined to be invalid if the corresponding  block referred by the BV shift is overlapped with the current block. 3) For example, the BV shift may be modified if it is determined to be invalid. i. The modified BV shift should be valid. d. In one example, after deriving the BV shift, for each subblock, the BV information of its  corresponding block (the smallest motion grid that covers the corresponding center sample of the center sample in the subblock) in current picture may be used to derive the BV information for the subblock (One example shown in Fig. 32 assumes the BV shift set to block A1’s BV) . Fig. 32 illustrates deriving subblock BV motion field from the corresponding subblocks by applying a BV shift derived from a spatial neighbor. (a) In on example, the size of the subblock may be MxN. 1) In one example, M=N=4. 2) In one example, M=N=8. (b) In one example, if the center subblock cannot derive the valid BV information (such  as its corresponding subblock comprises no BV information or the BV of its corresponding subblock is invalid for the center subblock / current block) , SbBVGBVP may be not used. (c) In one example, if one subblock cannot derive the valid BV information (such as its  corresponding subblock comprises no BV information or the BV of its corresponding subblock is invalid for the subblock / current block) , it may reuse the BV information of the center subblock. 12. In one example, whether to use subblock-based block vector guided BV prediction (SbBVGBVP) 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.General aspects 13. In all the disclosed methods, the term “block vector (BV) ” may be replaced by “motion vector (MV) ” . e. The term BVP list may be replaced by MVP list. f. The term IBC prediction may be replaced by inter prediction. g. The term IBC merge list may be replaced by merge list. h. The term IBC AMVP list may be replaced by AMVP list. i. “block vector guided” may be replaced by “MV guided” . j. In one example, a MV guided MV prediction or candidate may be the nth-order (e.g., n≥1)  motion vector guided cascaded MVP or candidate, denoted as MV0, n+1. (a) MV0, n+1 = MV0, 1 +MV1, 2+MV2, 3+…+MVn-1, n+MVn, n+1. (b) For example, MV0, n+1 and MVn, n+1 may refer to the same reference picture. (c) For example, MVi, i+1 and MVj, j+1 may refer to different reference pictures. k. In one example, a MV guided MV prediction or candidate may be the nth-order (e.g., n≥1)  motion vector guided direct MVP or candidate, denoted as MVn, n+1. 14. A syntax element disclosed above may be binarized as a flag, a fixed length code, an EG (x) code, a  unary code, a truncated unary code, a truncated binary code, etc. It can be signed or unsigned. 15. A syntax element disclosed above may be coded with at least one context model. Or it may be bypass  coded. 16. A syntax element (SE) disclosed above may be signaled in a conditional way. a. The SE is signaled only if the corresponding function is applicable. 17. A syntax element disclosed above may be signaled at block level / sequence level / group of pictures  level / picture level / slice level / tile group level, such as in coding structures of CTU / CU / TU / PU / CTB / CB / TB / PB, or sequence header / picture header / SPS / VPS / DPS / DCI / PPS / APS / slice header / tile group header. 18. In above examples, the block may refer to the colour component / sub-picture / slice / tile / coding tree unit  (CTU)  / CTU row / groups of CTU / coding unit (CU)  / prediction unit (PU)  / transform unit (TU)  / coding tree block (CTB)  / coding block (CB)  / prediction block (PB)  / transform block (TB)  / ablock / sub-block of a block / sub-region within a block / any other region that contains more than one sample or pixel. 19. 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. 20. 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 contains more than one sample or pixel. 21. 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. 2.22. Bilateral matching AMVP-merge mode 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. 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. 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. 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. 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. The mode is indicated by a flag, if the mode is enabled AMVP direction LX is further indicated by a flag. 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.23. Adaptive decoder-side motion vector refinement (ADMVR) 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. 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 BM 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. ADMVR mode is also called the bilateral matching (i.e., BM) merge mode. The merge candidate list used in ADMVR mode is called the ADMVR candidate list or BM merge candidate  list. 2.24. Bi-predictive GPM The GPM design in VVC relies on uni-predictive motion vectors (i.e., uni-predictive GPM) 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. 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. BDOF based motion vector refinement as in the multi-pass DMVR is used when generating motion compensated  prediction samples. 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.25. Intra template matching extension 2.25.1. SGPM with IntraTMP and IBC It is proposed extending the idea of geometric prediction combing block-vector based prediction and regular  intra prediction from IBC-GPM to SGPM. That is, SGPM mode tests block vectors of neighboring CU’s in addition to regular prediction modes. Specifically, the following is proposed: 1- Obtain block vectors of all merge candidates; 2- Select the best block vector according to SATD template cost; 3- Test up to 6 best block vectors (if available) inside SGPM candidate list construction. The difference with ECM-11 SGPM design is depicted in the Fig. 33, which illustrates modified SGPM process.  It is about generalizing the two intra predictors from regular to regular or block-vector based. Identifiers intra_pred_0 and intra_pred_1 correspond to be regular prediction or block-vector based obtained  from neighboring IntraTMP / IBC information. 2.25.2. IntraTMP or IBC extension to DIMD In ECM-11.0, DIMD mode, up to five intra modes are derived from the reconstructed neighbor samples. The  final prediction is generated by blending up to five predictors and the planar mode predictor with the weights derived from the histogram of gradients. In ECM-11.0, it is observed that the block vector-based prediction, obtained from IBC and IntraTMP modes, is  highly used in intra-coded CU’s. This type of prediction is like planar mode, in the sense that it is non-directional one. The method consists in adaptively selecting between planar or block-vector based prediction obtained from  IntraTMP or IBC mode of neighboring blocks for the blending with an angular intra prediction. 2.25.3. IntraTMP or IBC extension to TIMD This method proposes IntraTMP or IBC extension to TIMD. The method consists in adaptively selecting  between planar or block-vector based prediction obtained from IntraTMP or IBC mode of neighboring blocks for the blending with an angular intra prediction. This method proposes adaptively choosing non-angular mode which TIMD included from extensive non-angular  mode set including Planar mode, DC mode, and block-vector prediction mode. Specifically: 1- The block vectors of all merge candidates are collected. 2- The template cost (SATD) is used to select between block-vector based prediction and Planar prediction  and DC prediction. 3- The non-angular mode in the set with the smallest template SATD will be chosen as TIMD non-angular  mode, the locdep and the SATD cost will be record for further TIMD weight calculations. 4- The same blending of TIMD is used. 2.25.4. IntraTMP extension to LIC (IntraTMP-LIC) It is proposed to allow the application of LIC to blocks in IntraTMP mode. Specifically: 1. The LIC usage for an IntraTMP mode is signaled through a CU-level flag. 2. Usages of LIC and FLM (CCCM-like filtering) are mutually exclusive for a given CU. 3. Usages of LIC together with fusion in intra TMP is allowed. 4. Top-only and Left-only template usage for LIC model determination is allowed for screen content coding.  For camera-captured coding, only the top-left template is employed. 5. Multi Mode Linear Model (MMLM) is suppored similarly to IBC-LIC, for screen content coding. 6. When LIC is used for a given CU, the Intra TMP search process employs MRSAD rather than SAD  distortion function to search for block vector. 3. Problems For current multi-hypothesis prediction (MHP) , 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. To further improve the efficiency of MHP, auto-relocated multi-hypothesis prediction (ARMHP) is introduced, wherein, the motion parameters of at least one additional prediction hypothesis can be derived. CMVP candidates are inserted after HMVP candidates for the regular merge and TM merge. The AR-BVP candidates are inserted after the HBVP candidates. The IBC merge / AMVP candidate list  size are kept unchanged. The AR-BVP candidates are inserted into the IntraTMP merge candidate list according to the following  orders: inherited from adjacent neighbors->inherited from non-adjacent neighbors->constructed AR-BVP from existing candidates. CMVP may not have enough positions in the inter merge candidate list or inter AMVP candidate list.  Similarly, AR-BVP may not have enough positions in the IBC / IntraTMP merge candidate list or IBC AMVP candidate list. Therefore, reserving some positions for CMVP / AR-BVP in the corresponding motion candidate list  and / or using more accurate guided vectors for CMVP / AR-BVP may be used to improve the effectiveness of motion prediction. Furthermore, coding efficiency can be improved. CMVP and AR-BVP are generally referred to as auto-relocated motion information prediction. 4. Detailed Solutions 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. The term ‘block’ may represent a coding tree block (CTB) , a coding tree unit (CTU) , a coding block  (CB) , a CU, a PU, a TU, a PB, a TB or a video processing unit comprising multiple samples / pixels. A block may be rectangular or non-rectangular. W and H are the width and height of current block (e.g., luma block) . For an IBC or IntraTMP coded block, a block vector (BV) is used to indicate the displacement from the  current block to a reference block, which is already or partially reconstructed inside the current picture. One block has BV information if it is IBC coded or IntraTMP coded. A block with a position in a frame possesses a set of motion parameters including the motion vectors, if  the set of motion parameters including the motion vectors is stored associated with the block with the position in the frame. In one example, if the guided vector of an ARMIP is a block vector, the ARMIP may be referred to as a  block vector guided ARMIP. In one example, if the guided vector of an ARMIP is a motion vector, the ARMIP may be referred to as  a motion vector guided ARMIP. In this section, Fig. 34A illustrates a uni-prediction traced direct vector in a case where both guided vector  and traced direct vector are block vector; Fig. 34B illustrates a uni-prediction traced direct vector in a case where the guided vector is motion vector and the traced direct vector is block vector; Fig. 34C illustrates a uni-prediction traced direct vector in a case where the guided vector is block vector and the traced direct vector is motion vector; Fig. 34D illustrates a uni-prediction traced direct vector in a case where the guided vector is motion vector and the traced direct vector is motion vector; Fig. 35A illustrates a bi-prediction traced direct vector in a case where both guided vector and traced direct vector are block vector; Fig. 35B illustrates a bi-prediction traced direct vector in a case where the guided vector is motion vector and the traced direct vector is block vector; Fig. 35C illustrates a bi-prediction traced direct vector in a case where the guided vector is block vector and the traced direct vector is motion vector; Fig. 35D illustrates a bi-prediction traced direct vector in a case where the guided vector is motion vector and the traced direct vector is motion vector; Fig. 36A illustrates five positions in a block B1 in a case where the guided vector is motion vector; Fig. 36B illustrates five positions in a block B1 in a case where the guided vector is block vector; Fig. 37A illustrates six positions in a block B1 in a case that the guided vector is motion vector; and Fig. 37B illustrates six positions in a block B1 in a case that the guided vector is block vector.Auto-relocated multi-hypothesis prediction 1. In one example, a prediction, called auto-relocated multi-hypothesis prediction (ARMHP) , may be  generated with at least one additional prediction hypothesis with a first set of motion parameters of a block derived by a second set of motion parameters of the block. a. In one example, the second set of motion parameters may be signaled / derived for the block  using any inter-prediction / IBC-prediction  / intraTMP-prediction mode, such as merge mode, AMVP mode, or IntraTMP mode. (a) In one example, the IBC / IntraTMP prediction may be regular IBC merge / AMVP  prediction, IBC-TM merge / AMVP prediction, RR-IBC merge / AMVP prediction, IBC-MBVD prediction, IBC-CIIP prediction, uni-predictive IBC-GPM prediction, bi-predictive IBC-GPM prediction, regular IntraTMP prediction, SGPM with IntraTMP and IBC, IntraTMP or IBC extension to DIMD, IntraTMP or IBC extension to TIMD, or any other IBC / IntraTMP prediction. (b) In one example, the IBC prediction may not be RR-IBC merge / AMVP prediction. (c) In one example, the inter prediction may be regular inter merge / AMVP prediction,  inter-TM merge / AMVP prediction, BM or ADMVR merge prediction, bilateral matching AMVP-merge prediction, MMVD prediction, CIIP prediction, uni-predictive GPM prediction, bi-predictive GPM prediction, or any other inter prediction. (d) In one example, the existing / signalled / derived motion parameters of current block  (e.g., B0) may involve MVB0LX (m) or BVB0LX (m) (e.g., as shown in Fig. 34A-Fig. 34D or Fig. 35A-Fig. 35D) called guided vector, where X is reference picture list index (X is 0 or 1) , m is the trace depth (m≥0) . 1) In one example, for the signalled motion parameters, m is 0. 2) In one example, for the derived motion parameters of IntraTMP mode, m is 0. 3) In one example, if m is 0, MVB0LX (m) or BVB0LX (m) may be the initial  guided vector. 4) In one example, if one motion candidate to derive the guided vector is bi- prediction, the motion vector or block vector of at least one of the reference picture lists may be used as the guided vector. i. In one example, if one motion candidate to derive the guided vector  is bi-prediction, the motion vector or block vector of only one reference picture list X (X is 0 or 1) may be used as the guided vector. ii. In one example, if one motion candidate to derive the guided vector  is bi-prediction, the motion vectors or block vectors of both reference picture lists may be used as the guided vectors. 5) In one example, if one motion candidate to derive the guided vector is uni- prediction, the motion vector or block vector of the corresponding reference picture list which has motion may be used as the guided vector. i. In one example, if one motion candidate to derive the guided vector  is uni-prediction, the motion vector or block vector of only one reference picture list X (X is 0 or 1) may be used as the guided vector. If the candidate has no motion corresponding to the reference picture list X, the candidate may not derive the guided vector. b. In one example, if MVB0LX (m) or BVB0LX (m) of the second set of motion parameters, called  guided vector, points to a reference block B1 possessing MVB1LY or BVB1LY which is called traced direct vector, the motion parameters of at least one additional prediction hypothesis of the block may be MVB0LM (m+1) or BVB0LM (m+1) (i.e., as shown in Fig. 34A-Fig. 34D) of the first set of motion parameters, called traced vector, where X, Y, M is reference picture list index (X, Y, M is 0 or 1) , m is the trace depth (m≥0) . (a) A block with a position in a frame possesses a set of motion parameters including  the motion vectors, if the set of motion parameters including the motion vectors is stored associated with the block with the position in the frame. (b) In one example, if both guided vector and traced direct vector are block vector, the  traced vector may be block vector, which can be formulated as BVB0LM (m+1) = BVB0LX (m) + BVB1LY (e.g., as shown in Fig. 34A) . Otherwise, the traced vector may be motion vector. (c) In one example, if the guided vector is motion vector and the traced direct vector is  block vector, the traced vector is motion vector, which can be formulated as MVB0LM (m+1) = MVB0LX (m) + BVB1LY (e.g., as shown in Fig. 34B) , pointing to the reference picture corresponding to the guided vector. (d) In one example, if the traced direct vector is motion vector, the traced vector is  motion vector pointing to the reference picture corresponding to the traced direct vector (i.e., reference picture of B1) . 1) In one example, if the guided vector is block vector and the traced direct  vector is motion vector, the traced vector is motion vector, which can be formulated as MVB0LM (m+1) = BVB0LX (m) + MVB1LY (e.g., as shown in Fig. 34C) . 2) In one example, if the guided vector is motion vector and the traced direct  vector is motion vector, the traced vector is motion vector, which can be formulated as MVB0LM (m+1) = MVB0LX (m) + MVB1LY (e.g., as shown in Fig. 34D) . 3) In one example, if the reference picture of B1 is in a reference picture list M  of current block, the reference picture index corresponding to MVB0LM (m+1) is the index of the reference picture of B1 in the reference picture list M of current block. 4) In one example, if the reference picture of B1 is not in any reference picture  list of current block, MVB0LM (m+1) may be not available. 5) In one example, if the reference picture of B1 is not in any reference picture  list of current block, MVB0LM (m+1) may be available. MVB1LY may be scaled to MVB1LY’ pointing to a predefined reference picture in a reference picture list M of current block according to the POC distances (e.g., as section 2.1.2) . The reference picture index corresponding to MVB0LM (m+1) is the index of the predefined reference picture in the reference picture list M of current block. MVB1LY’ may be used as the traced direct vector for deriving the traced vector MVB0LM (m+1) . (e) In one example, the MV and BV may be shifted right / left to achieve the same  precision before being summed. 1) In one example, the BV may be shifted to the same precision as the MV  before being summed. i. In one example, MVB0LM (m+1) = MVB0LX (m) + (BVB1LY<<K) ,  wherein K is the difference between the precision of BV and MV. c. In one example, if MVB0LX (m) or BVB0LX (m) of the second set of motion parameters, called  guided vector, points to a reference block B1, which is bi-prediction of (MVB1L0, MVB1L1) or (BVB1L0, BVB1L1) which is called traced direct vector, the motion parameters of at least one additional prediction hypothesis of the block may be (MVB0LM (m+1) , MVB0LN (m+1) ) or (BVB0LM (m+1) , BVB0LN (m+1) ) (i.e., as shown in Fig. 35A-Fig. 35D) of the first set of motion parameters, called traced vector, where X, M, N is reference picture list index (X, M, N is 0 or 1) , m is the trace depth (m≥0) . (a) In one example, M+N may be 1. (b) In one example, M may be equal to N. 1) Alternatively, M may be restricted to not equal N. (c) In one example, if both guided vector and traced direct vector are block vector, the  traced vector may be block vector, which can be formulated as BVB0LM (m+1) = BVB0LX (m) + BVB1L0 &BVB0LN (m+1) = BVB0LX (m) + BVB1L1 (e.g., as shown in Fig. 35A) . Otherwise, the traced vector may be motion vector. (d) In one example, if the guided vector is motion vector and the traced direct vector is  block vector, the traced vector is motion vector, which can be formulated as MVB0LM (m+1) = MVB0LX (m) + BVB1L0 &MVB0LN (m+1) = MVB0LX (m) + BVB1L1 (e.g., as shown in Fig. 35B) , pointing to the reference picture corresponding to the guided vector. (e) In one example, if the traced direct vector is motion vector, the traced vector is  motion vector pointing to the reference picture corresponding to the traced direct vector (i.e., reference picture of B1) . 1) In one example, if the guided vector is block vector and the traced direct  vector is motion vector, the traced vector is motion vector, which can be formulated as MVB0LM (m+1) = BVB0LX (m) + MVB1L0 &MVB0LN (m+1) = BVB0LX (m) + MVB1L1 (e.g., as shown in Fig. 35C) . 2) In one example, if the guided vector is motion vector and the traced direct  vector is motion vector, the traced vector is motion vector, which can be formulated as MVB0LM (m+1) = MVB0LX (m) + MVB1L0 &MVB0LN (m+1) = MVB0LX (m) + MVB1L1 (e.g., as shown in Fig. 35D) . 3) In one example, if the reference picture in the reference picture list 0 of B1  is in a reference picture list M of current block, the reference picture index corresponding to MVB0LM (m+1) is the index of the reference picture in the reference picture list 0 of B1 in the reference picture list M of current block. 4) In one example, if the reference picture in the reference picture list 1 of B1  is in a reference picture list N of current block, the reference picture index corresponding to MVB0LN (m+1) is the index of the reference picture in the reference picture list 1 of B1 in the reference picture list N of current block. 5) In one example, if the reference picture in the reference picture list 0 of B1  is not in any reference picture list of current block, MVB0LM (m+1) may be not available. 6) In one example, if the reference picture in the reference picture list 1 of B1  is not in any reference picture list of current block, MVB0LN (m+1) may be not available. 7) In one example, if the reference picture in the reference picture list 0 of B1  is not in any reference picture list of current block, MVB0LM (m+1) may be available. MVB1L0 may be scaled to MVB1L0’ pointing to a first predefined reference picture in a reference picture list M of current block according to the POC distances (e.g., as section 2.1.2) . The reference picture index corresponding to MVB0LM (m+1) is the index of the first predefined reference picture in the reference picture list M of current block. MVB1L0’ may be used as the traced direct vector for deriving the traced vector MVB0LM (m+1) . 8) In one example, if the reference picture in the reference picture list 1 of B1  is not in any reference picture list of current block, MVB0LN (m+1) may be available. MVB1L1 may be scaled to MVB1L1’ pointing to a second predefined reference picture in a reference picture list N of current block according to the POC distances (e.g., as section 2.1.2) . The reference picture index corresponding to MVB0LN (m+1) is the index of the second predefined reference picture in the reference picture list N of current block. MVB1L1’ may be used as the traced direct vector for deriving the traced vector MVB0LN (m+1) . 9) In one example, if M+N=1, the traced vector (MVB0LM (m+1) ,  MVB0LN (m+1) ) or (BVB0LM (m+1) , BVB0LN (m+1) ) may be one bi-prediction vector. 10) In one example, if M=N, the traced vector (MVB0LM (m+1) , MVB0LN (m+1) )  or (BVB0LM (m+1) , BVB0LN (m+1) ) may be two uni-prediction vectors. d. In one example, the maximum trace depth may be predefined as Max. (a) In one example, all the available traced vectors with the trace depth m, 1≤m≤Max,  may be used for deriving the additional prediction hypothesis. 1) In one example, the number of additional prediction hypothesis may be equal  to the number of available traced vectors. (b) In one example, the selected G available traced vectors with the trace depth m,  1≤m≤Max, may be used for deriving the additional prediction hypothesis. 1) In one example, the number of additional prediction hypothesis may be equal  to the number of selected available traced vectors. 2) In one example, the selected G available traced vectors may be the available  traced vectors with the first G minimum trace depths. 3) In one example, the selected G available traced vectors may be the available  traced vectors with the first G minimum template matching costs. (c) In one example, if the traced vector is block vector, it may need to be in the IBC  search range. (d) In one example, Max may be 1. 2. In one example, a first picture pointed by a traced vector or a traced direct vector may be checked. a. The current picture may be treated as a reference picture for the IBC / IntraTMP case. b. In one example, if the first picture is not a reference picture of the current picture, one or  multiple actions below may be taken. (a) In one example, the traced vector or the traced direct vector may not be used. 1) In one example, the first picture should be a reference picture of the current  picture. (b) In one example, the first picture may be treated as a reference picture of the current  picture. (c) In one example, the traced vector or the traced direct vector may be scaled to a  reference picture of the current picture. 3. In one example, when deriving motion information from B1, specific position (s) may be checked for  deriving the motion information. a. In one example, only center (e.g., Ctr in Fig. 36A-Fig. 36B) position of B1 may be checked for  deriving the motion information. Suppose width and height of a block is denoted as W and H, respectively. (a) The center position of a block is defined as (W>>1, H>>1) assuming the top-left  position within a block is (0, 0) . (b) The center position of a block is defined as ( (W>>1) -1, H>>1) assuming the top-left  position within a block is (0, 0) . (c) The center position of a block is defined as (W>>1, (H>>1) -1) assuming the top-left  position within a block is (0, 0) . (d) The center position of a block is defined as ( (W>>1) -1, (H>>1) -1) assuming the top- left position within a block is (0, 0) . b. In one example, only top-left (e.g., LT in Fig. 36A-Fig. 36B) position of B1 may be checked  for deriving the motion information. c. In one example, at least one of top-left ( (e.g., LT in Fig. 36A-Fig. 36B) , top-right (e.g., RT in  Fig. 36A-Fig. 36B) , center (e.g., Ctr in Fig. 36A-Fig. 36B) , bottom-left (e.g., LB in Fig. 36A-Fig. 36B) , and bottom-right (e.g., RB in Fig. 36A-Fig. 36B) positions of B1 may be checked for deriving the motion information. (a) In one example, all available motion information may be used for the traced vector  derivation. (b) In one example, only the first available motion information from one checked  position may be used for the traced vector derivation. d. In one example, all five positions of top-left ( (e.g., LT in Fig. 36A-Fig. 36B) , top-right (e.g.,  RT in Fig. 36A-Fig. 36B) , center (e.g., Ctr in Fig. 36A-Fig. 36B) , bottom-left (e.g., LB in Fig. 36A-Fig. 36B) , and bottom-right (e.g., RB in Fig. 36A-Fig. 36B) positions of B1 may be checked for deriving the motion information. (a) In one example, the checking order is center->top-left->top-right->bottom- left->bottom-right. (b) In one example, all available motion information may be used for the traced vector  derivation. (c) In one example, only the first available motion information from one checked  position may be used for the traced vector derivation. e. In one example, at least one of outer-bottom-right (e.g., RBO in Fig. 37A-Fig. 37B) and center  (e.g., Ctr in Fig. 37A-Fig. 37B) , positions of B1 may be checked for deriving the motion information. (a) In one example, the checking order is center->outer-bottom-right. (b) In one example, the checking order is outer-bottom-right->center. (c) In one example, all available motion information may be used for the traced vector  derivation. (d) In one example, only the first available motion information from one checked  position may be used for the traced vector derivation. f. In one example, all two positions of outer-bottom-right (e.g., RBO in Fig. 37A-Fig. 37B) and  center (e.g., Ctr in Fig. 37A-Fig. 37B) , positions of B1 may be checked for deriving the motion information. (a) In one example, the checking order is center->outer-bottom-right. (b) In one example, the checking order is outer-bottom-right->center. (c) In one example, all available motion information may be used for the traced vector  derivation. (d) In one example, only the first available motion information from one checked  position may be used for the traced vector derivation. g. In one example, at least one of top-left ( (e.g., LT in Fig. 37A-Fig. 37B) , top-right (e.g., RT in  Fig. 37A-Fig. 37B) , center (e.g., Ctr in Fig. 37A-Fig. 37B) , bottom-left (e.g., LB in Fig. 37A-Fig. 37B) , bottom-right (e.g., RB in Fig. 37A-Fig. 37B) , and outer-bottom-right (e.g., RBO in Fig. 37A-Fig. 37B) positions of B1 may be checked for deriving the motion information. (a) In one example, the checking order is outer-bottom-right->center->top-left->top- right->bottom-left->bottom-right. (b) In one example, the checking order is center->outer-bottom-right->top-left->top- right->bottom-left->bottom-right. (c) In one example, the checking order is center->top-left->top-right->bottom- left->bottom-right->outer-bottom-right. (d) In one example, all available motion information may be used for the traced vector  derivation. (e) In one example, only the first available motion information from one checked  position may be used for the traced vector derivation. h. In one example, all six positions of top-left ( (e.g., LT in Fig. 37A-Fig. 37B) , top-right (e.g., RT  in Fig. 37A-Fig. 37B) , center (e.g., Ctr in Fig. 37A-Fig. 37B) , bottom-left (e.g., LB in Fig. 37A-Fig. 37B) , bottom-right (e.g., RB in Fig. 37A-Fig. 37B) , and outer-bottom-right (e.g., RBO in Fig. 37A-Fig. 37B) positions of B1 may be checked for deriving the motion information. (a) In one example, the checking order is outer-bottom-right->center->top-left->top- right->bottom-left->bottom-right. (b) In one example, the checking order is center->outer-bottom-right->top-left->top- right->bottom-left->bottom-right. (c) In one example, the checking order is center->top-left->top-right->bottom- left->bottom-right->outer-bottom-right. (d) In one example, all available motion information may be used for the traced vector  derivation. (e) In one example, only the first available motion information from one checked  position may be used for the traced vector derivation. i. In one example, some predefined positions of B1 may be checked for deriving the motion  information. (a) In one example, all available motion information may be used for the traced vector  derivation. (b) In one example, only the first available motion information from one checked  position may be used for the traced vector derivation. j. In one example, if a motion grid (such as 4x4 grid) that covers a certain position of B1 is  available, has motion information, it may be used for the traced vector derivation. k. In one example, the traced vector derivation may also be replaced with the traced direct vector  derivation. 4. In one example, for IBC / inter AMVP / merge mode, ARMHP may be only applied if non-equal weight  in BCW is selected in bi-prediction mode. a. Alternatively, for IBC / inter AMVP / merge mode, ARMHP may be only applied in bi-prediction  mode. b. Alternatively, for IBC / inter AMVP / merge mode, ARMHP may be applied in both bi-prediction  and uni-prediction mode. 5. In one example, the resulting overall prediction signal may be derived in one of the following ways. a. In one example, the resulting overall prediction signal may be accumulated iteratively with  each additional prediction signal. The resulting overall prediction signal is obtained as the last pn+1 (i.e., the pn+1 having the largest index (n+1) ) . pn+1= (1-αn+1) pn+αn+1hn+1 Where P0 is the original prediction signal, hn+1 is the additional prediction signal located  by the (n+1) th traced vector, αn+1is the weighting factor. (a) In one example, the weighting factor may be predefined. (b) In one example, the weighting factor may be specified by a new syntax element, it  may be selected from a set of weights (e.g., {1 / 4, -1 / 8} ) . b. In one example, the resulting overall prediction signal may be derived as: where P0 is the original prediction signal, Pi (i=1, 2, …, N) is the additional prediction signal  located by the ith traced vector, wi is the weighting factor. (a) In one example, the weighting factor may be predefined. (b) In one example, all the weighting factors may be equal and equal to 1 /  (N+1) . (c) In one example, w0 may be the largest, the remaining weighting factors may be  equal. (d) In one example, if a first trace depth of a first traced vector for a first prediction  signal is larger than a second trace depth of a second traced vector for a second prediction signal, the weighting factor of the first prediction signal may be smaller than the weighting factor of the second prediction signal. The trace depth for P0 is 0. (e) In one example, if a first POC distance between current picture and the reference  picture of a first traced vector for a first prediction signal is larger than a second POC distance between current picture and the reference picture of a second traced vector for a second prediction signal, the weighting factor of the first prediction signal may be smaller than the weighting factor of the second prediction signal. (f) In one example, the weight wi may be derived from the reference templates located  by the traced vectors and current template using the decomposition method from CCCM. (g) In one example, the weight wi may be calculated by the template matching costs  (e.g., SAD) of the traced vectors. The weights may be calculated as follows: To reduce the implementation cost, the division operations may be replaced by an integer look- up table (LUT) . (h) In one example, the weighting factors may be modelled as a linear function of the  sample positions (x, y) in the current block: wi (x, y) = ai . x + bi . y + ci (i=0, 1, 2, .., N-1) and The parameters (ai , bi , ci) may be derived from the reference templates located by  the traced vectors and current template using the same solver (MSE minimization) as the one used for CCCM. 6. In one example, if the guided vector is motion vector and the reference picture pointed by the guided  vector is not a collocated picture of current block, the tracing process may be terminated, which ensure that only motion from collocated pictures is used. a. A collocated picture should store motion parameters to be fetched. b. Multiple collocated pictures may be applied. (a) The number of collocated pictures may be signaled. (b) Whether a reference picture is a collocated picture may be signaled. c. In one example, if the guided vector is motion vector and the reference picture pointed by the  guided vector is not a collocated picture of current block, the tracing process may be not terminated. d. Alternatively, if the guided vector is motion vector and the reference picture pointed by the  guided vector is not a collocated picture of current block, the tracing process may be not terminated. In this case, motion from non-collocated pictures can also be used. e. In one example, if the reference picture pointed by the guided vector is not a collocated picture  of current block, the guided vector may be scaled to one collocated picture of current block, which ensure that only motion from collocated pictures is used. 7. In one example, if the guided vector is motion vector and the motion of the reference picture of the  guided vector can be used, if the corresponding reference block belongs to a CTU beyond the current CTU row, the motion data of the corresponding reference block may be considered as not being available, which ensures the one-CTU-row constraint. a. In one example, if the guided vector is motion vector and the motion of the reference picture  of the guided vector can be used, if the corresponding reference block belongs to a CTU beyond the current CTU row, the corresponding reference block may be clipped to inside the current CTU row, the motion data of the corresponding clipped reference block may be considered as being available, which ensures the one-CTU-row constraint. b. Alternatively, if the guided vector is motion vector and the motion of the reference picture of  the guided vector can be used, if the corresponding reference block belongs to a CTU beyond the current CTU row, the motion data of the corresponding reference block may be considered as being available, which removes the one-CTU-row constraint. c. In one example, the one-CTU-row constraint may be changed to the N-CTU-row constraint. (a) In one example, N>1. 8. In one example, auto-relocated multi-hypothesis prediction (ARMHP) may be a new mode. a. In one example, auto-relocated multi-hypothesis prediction (ARMHP) may be a new prediction  candidate type. b. In one example, ARMHP may be a sub-mode of MHP.Auto-relocated motion information prediction 9. In one example, a motion information prediction, called auto-relocated motion information prediction  (ARMIP) , may derive a first set of motion parameters / information of a block from a second set of motion parameters / information of the block. a. In one example, one set of motion parameters / information may involve the reference direction,  the corresponding motion vector (s) and reference picture index / indices, etc. (a) In one example, one set of motion parameters / information is copied may indicate  that all the elements involved in the set are copied. b. In one example, the second set of motion parameters may be signaled / derived for the block  using any inter-prediction / IBC-prediction / IntraTMP-prediction mode, such as merge mode, AMVP mode, or IntraTMP mode. (a) In one example, the IBC / IntraTMP prediction may be regular IBC merge / AMVP  prediction, IBC-TM merge / AMVP prediction, RR-IBC merge / AMVP prediction, IBC-MBVD prediction, IBC-CIIP prediction, uni-predictive IBC-GPM prediction, bi-predictive IBC-GPM prediction, IBC-LIC prediction, regular IntraTMP prediction, SGPM with IntraTMP and IBC, IntraTMP or IBC extension to DIMD, IntraTMP or IBC extension to TIMD, IntraTMP-LIC prediction, or any other IBC / IntraTMP prediction. (b) In one example, the IBC prediction may not be RR-IBC merge / AMVP prediction. (c) In one example, the inter prediction may be regular inter merge / AMVP prediction,  inter-TM merge / AMVP prediction, BM or ADMVR merge prediction, bilateral matching AMVP-merge prediction, MMVD prediction, CIIP prediction, uni-predictive GPM prediction, bi-predictive GPM prediction, LIC prediction, or any other inter prediction. c. In one example, the first set and the second set of motion parameters may come from one inter- prediction / IBC-prediction / IntraTMP-prediction candidate list. (a) In one example, the BV candidate list of IBC-prediction or IntraTMP-prediction  may be at least one of the following. 1) In one example, the BV candidate list may be regular IBC merge / AMVP list. 2) In one example, the BV candidate list may be IBC-TM merge / AMVP list. 3) In one example, the BV candidate list may be RR-IBC merge / AMVP list. 4) In one example, the BV candidate list may be IBC-MBVD base candidate list. 5) In one example, the BV candidate list may be IBC merge / AMVP list of IBC- CIIP. 6) In one example, the BV candidate list may be IBC merge / AMVP list of uni- predictive IBC-GPM. 7) In one example, the BV candidate list may be IBC merge / AMVP list of bi- predictive IBC-GPM. 8) In one example, the BV candidate list may be IBC merge / AMVP list of IBC- LIC. 9) In one example, the BV candidate list may be regular IntraTMP merge / AMVP  list. 10) In one example, the BV candidate list may be BV candidate list of SGPM with  IntraTMP and IBC. 11) In one example, the BV candidate list may be BV candidate list of IntraTMP  or IBC extension to DIMD. 12) In one example, the BV candidate list may be BV candidate list of IntraTMP  or IBC extension to TIMD. 13) In one example, the BV candidate list may be IntraTMP merge / AMVP list of  IntraTMP-LIC. 14) In one example, the BV candidate list may be the pairwise BV candidate list  corresponding to at least one of the above BV candidate lists in bullet 9. b. (a) . 1)~13) . 15) In one example, the BV candidate list may be any other BV candidate list. (b) In one example, the MV candidate list of inter-prediction may be at least one of the  following. 1) In one example, the MV candidate list may be regular inter merge / AMVP list. 2) In one example, the MV candidate list may be inter-TM merge / AMVP list. 3) In one example, the MV candidate list may be BM or ADMVR merge list. 4) In one example, the MV candidate list may be merge / AMVP list of bilateral  matching AMVP-merge prediction. 5) In one example, the MV candidate list may be MMVD base candidate list. 6) In one example, the MV candidate list may be inter merge / AMVP list of CIIP  prediction. 7) In one example, the MV candidate list may be inter initial merge / AMVP list  of uni-predictive GPM prediction. 8) In one example, the MV candidate list may be inter initial merge / AMVP list  of bi-predictive GPM prediction. 9) In one example, the MV candidate list may be inter merge / AMVP list of LIC  prediction. 10) In one example, the MV candidate list may be the pairwise MV candidate list  corresponding to at least one of the above MV candidate lists in bullet 9. b. (b) . 1)~9) . 11) In one example, the MV candidate list may be any other inter prediction. (c) In one example, the first set and the second set of motion parameters may come from  two inter-prediction / IBC-prediction / IntraTMP-prediction candidate lists. 1) In one example, the second set of motion parameters may come from one  inter-prediction / IBC-prediction / IntraTMP-prediction candidate list and the first set of motion parameters may be in the pairwise MV / BV candidate list corresponding to the motion candidate list of the second set of motion parameters. d. In one example, the first set of motion parameters of the block may involve the traced vector  or the traced direct vector (i.e., derived vector) and its corresponding reference picture index as depicted in bullet 1, 2, 3, 6, or 7. e. In one example, the second set of motion parameters of the block may involve the guided vector  and its corresponding reference picture index as depicted in bullet 1, 2, 3, 6, or 7. f. The first set of motion information may be scaled to a reference picture. (a) For example, if the first set of motion information refers to a reference picture out  of the reference picture list of the current picture, the first set of motion information may be scaled to a reference picture in the reference picture list. g. In one example, when deriving the first set of motion information from the second set of motion  information, scaling may be not allowed. (a) In one example, if the first set of motion information is uni-prediction and has no  derived vector in one reference direction, but the second set of motion information has a guided vector in this reference direction, then a third set of motion information firstly copy the first set of motion information and the guided vector may be used as the derived vector of the third set of motion information in the reference direction. In this way, a third bi-prediction set of motion information may be derived. 1) In one example, the third bi-prediction set of motion information may replace  the first uni-prediction set of motion information. 2) In one example, the third bi-prediction set of motion information may be  added as a newly derived set of motion information after / before the first uni-prediction set of motion information. h. In one example, a guided motion may involve at least one of the following elements. (a) In one example, the guided motion may involve the motion vector, reference picture  list index, and reference picture index for inter mode. (b) In one example, the guided motion may involve the motion vector, POC of reference  picture for inter mode. (c) In one example, the guided motion may involve the block vector for IBC / IntraTMP  mode. i. In one example, if one guided motion has derived all its corresponding ARMIP candidates (e.g.,  specific position (s) depicted in bullet3 have been checked for deriving the ARMIP candidates) , it may be put into a guided motion buffer (e.g., table or list) , and if a second guided motion is the same as a first guided motion in the guided motion buffer, the second guided motion may not be used for deriving the ARMIP candidate. (a) In one example, a first guided motion is the same as a second guided motion may  indicate that all the elements involved in the guided motion are the same. j. In one example, the guided motion may be derived using one of the following methods. (a) In one example, the motion of at least one of the adjacent spatial candidates before  the ARMIP candidates may be used as the guided motion of ARMIP. (b) In one example, the motion of at least one of the adjacent spatial candidates and non- adjacent spatial candidates before the ARMIP candidates may be used as the guided motion of ARMIP. (c) In one example, the motion of at least one of the adjacent spatial candidates, non- adjacent spatial candidates, and HMVP candidates before the ARMIP candidates may be used as the guided motion of ARMIP. (d) In one example, the motion of at least one of the adjacent spatial candidates, non- adjacent spatial candidates, HMVP candidates, and adjacent temporal candidates before the ARMIP candidates may be used as the guided motion of ARMIP. (e) In one example, the motion of at least one of the adjacent spatial candidates, non- adjacent spatial candidates, HMVP candidates, adjacent temporal candidates, and non-adjacent temporal candidates before the ARMIP candidates may be used as the guided motion of ARMIP. (f) In one example, the motion of at least one of the candidates before the ARMIP  candidates in the initial merge candidate list may be used as the guided motion of ARMIP. (g) In one example, the motion of at least one of the candidates before the ARMIP  candidates in the initial merge candidate list and pairwise average candidates in the pairwise merge candidate list may be used as the guided motion of ARMIP. (h) In one example, the motion of at least one of the candidates before the zero padding  candidates in the initial merge candidate list may be used as the guided motion of ARMIP. (i) In one example, the motion of at least one of the candidates before the zero padding  candidates in the initial merge candidate list and pairwise average candidates in the pairwise merge candidate list may be used as the guided motion of ARMIP. (j) In one example, the motion of at least one of the candidates in the initial merge  candidate list may be used as the guided motion of ARMIP. (k) In one example, the motion of at least one of the candidates in the initial merge  candidate list and pairwise average candidates in the pairwise merge candidate list may be used as the guided motion of ARMIP. (l) In one example, the ‘at least one of the’ in bullet 9. h. (a) ~ (k) may be ‘the  first / predefined G (e.g., G≥1) ’ . (m) In one example, if the guided motion is derived from a temporal candidate, the  temporal candidate may be scaled to a predefined reference picture with reference picture index equal to K. The scaled temporal motion candidate may be stored in the candidate list of the temporal candidate or a new buffer and used to derive the guided motion of the ARMIP candidates. 1) In one example, K is 0. (n) In one example, if the number of the guided motions is larger than 1, the guided  motions may be reordered according to a criterion such as ARMC reordering. (o) In one example, the guided motions may be not reordered. 10. In one example, reserving some positions for ARMIP in the corresponding motion candidate list and / or  using more accurate guided vectors for ARMIP may be used to improve the effectiveness of motion prediction. a. In one example, ARMIP may be CMVP in the inter merge candidate list or inter AMVP  candidate list. b. In one example, ARMIP may be AR-BVP in the IBC / IntraTMP merge candidate list or IBC  AMVP candidate list. c. In one example, the ARMIP candidates already added in current design are called original  ARMIP candidates, and the ARMIP candidates newly introduced by the proposed scheme are called new ARMIP candidates. d. In one example, when deriving the ARMIP candidates, specific position (s) of a reference block  B1 located by the guided vector may be checked for deriving the motion information. (a) In one example, the checked position (s) may be different for the original ARMIP  candidates and the new ARMIP candidates. 1) In one example, all five positions of top-left ( (e.g., LT in Fig. 36A and Fig.  36B) , top-right (e.g., RT in Fig. 36A and Fig. 36B) , center (e.g., Ctr in Fig. 36A and Fig. 36B) , bottom-left (e.g., LB in Fig. 36A and Fig. 36B) , and bottom-right (e.g., RB in Fig. 36A and Fig. 36B) positions of B1 may be checked for deriving the original ARMIP candidates and only center (e.g., Ctr in Fig. 36A and Fig. 36B) position of B1 may be checked for deriving the new ARMIP candidates. (b) In one example, the checked position (s) may be the same for the original ARMIP  candidates and the new ARMIP candidates. (c) In one example, whether the checked position (s) for the original ARMIP candidates  and a new ARMIP candidate are the same may depend on whether the guided motion candidate for deriving the new ARMIP candidate is before the original ARMIP candidates. 1) In one example, if the guided motion candidate for deriving a new ARMIP  candidate is before the original ARMIP candidates, the checked position (s) for the original ARMIP candidate (s) and the new ARMIP candidate may be the same (e.g., using all five positions of top-left ( (e.g., LT in Fig. 36A and Fig. 36B) , top-right (e.g., RT in Fig. 36A and Fig. 36B) , center (e.g., Ctr in Fig. 36A and Fig. 36B) , bottom-left (e.g., LB in Fig. 36A and Fig. 36B) , and bottom-right (e.g., RB in Fig. 36A and Fig. 36B) positions of B1) . Otherwise, the checked position (s) for the original ARMIP candidate (s) and the new ARMIP candidate may be different (e.g., only center (e.g., Ctr in Fig. 36A and Fig. 36B) position of B1 may be checked for deriving the new ARMIP candidate) . (d) In one example, if the new ARMIP candidates are added in the pairwise merge  candidate list of at least one of regular inter, inter-TM, and BM merge modes, only center (e.g., Ctr in Fig. 36A and Fig. 36B) position of B1 may be checked for deriving the new ARMIP candidates. e. In one example, a redundancy check or pruning may be performed when deriving the ARMIP  candidates. (a) In one example, a full pruning may be performed when deriving the ARMIP  candidates to ensure that candidates with the same or similar motion information are excluded from the corresponding motion candidate list. (b) In one example, a partial pruning may be performed when deriving the ARMIP  candidates. f. In one example, reserving M (e.g., M≥0) positions for ARMIP in the corresponding motion  candidate list. (a) In one example, ARMIP may be CMVP, and the corresponding motion candidate  list may be at least one of regular inter merge / AMVP candidate list, inter-TM merge / AMVP candidate list, BM or ADMVR merge candidate list, bilateral matching AMVP-merge merge / AMVP candidate list, MMVD base candidate list, inter merge / AMVP list of CIIP prediction, inter initial merge / AMVP list of uni-predictive GPM prediction, inter initial merge / AMVP list of bi-predictive GPM prediction, inter merge / AMVP list of LIC prediction, pairwise merge candidate list, or any other inter candidate list. (b) In one example, ARMIP may be AR_BVP, and the corresponding motion candidate  list may be at least one of regular IBC merge / AMVP candidate list, IBC-TM merge / AMVP candidate list, RR-IBC merge / AMVP candidate list, IBC-MBVD base candidate list, IBC merge / AMVP list of IBC-CIIP, IBC merge / AMVP list of uni-predictive IBC-GPM, IBC merge / AMVP list of bi-predictive IBC-GPM, IBC merge / AMVP list of IBC-LIC, regular IntraTMP merge / AMVP list, BV candidate list of SGPM with IntraTMP and IBC, BV candidate list of IntraTMP or IBC extension to DIMD, BV candidate list of IntraTMP or IBC extension to TIMD, IntraTMP merge / AMVP list of IntraTMP-LIC, IBC pairwise merge candidate list, or any other IBC candidate list. (c) In one example, M may be different for different modes. 1) In one example, if the coding mode is inter-TM merge / AMVP mode, M may  be one. And for other coding mode, M may be another value. 2) In one example, if the coding mode is BM merge / AMVP mode, M may be 0  (i.e., keep the BM design of ECM unchanged) . And for other coding mode, M may be another value. (d) In one example, M may be different for different candidate lists. (e) In one example, M may be different for different picture types. 1) In one example, the picture types may be low delay and non-low delay  pictures. 2) In one example, the picture types may depend on whether backward inter- prediction is applied for a picture. i. In one example, the backward inter-prediction may refer to one  current picture has a reference picture whose POC is larger than POC of the current picture. ii. In one example, a picture with backward inter-prediction may be  defined as a non-low delay picture. iii. In one example, a picture without backward inter-prediction may be  defined as a low delay picture. 3) In one example, M for non-low delay pictures may be smaller than that for  low delay pictures. i. In one example, M may be 0 for non-low delay pictures (i.e., keep  the design of ECM unchanged) , M may be 12 for low delay pictures. ii. In one example, M may be 4 for non-low delay pictures, M may be  12 for low delay pictures. iii. In one example, M may be 2 for non-low delay pictures, M may be  8, 6, or 4 for low delay pictures. 4) Alternatively, M may be the same for different picture types. i. In one example, M may be 8, 6, 4, or 2 for both non-low delay  pictures and low delay pictures. 5) Alternatively, M for non-low delay pictures may be larger than that for low  delay pictures. (f) In one example, the M may depend on coding information, such as picture / slice type,  reference picture (s) , motion information, QP, coding mode, a coding tool is on or off, etc. 1) In one example, the M may be a first value if the current picture is a low-delay  picture and the POC distance between the current picture and its nearest reference picture is one. Otherwise, the M may be a second value. i. In one example, the first value may be larger than the second value. (i) In one example, the first value may be 8, 6, or 4, the  second value may be 2. ii. In one example, the first value may be equal to the second value. (i) In one example, the first and second value may be 8. (ii) In one example, the first and second value may be 6. (iii) In one example, the first and second value may be 4. (iv) In one example, the first and second value may be 2. iii. In one example, the first value may be smaller than the second value. (g) In one example, M may be different for different block sizes. 1) In one example, the block size may be block width plus block height. 2) In one example, M of a block size > Thres1 may be larger than that for a block  size ≤ Thres1. i. In one example, Thres1 may be 12. ii. In one example, M may be zero (i.e., keep the design of ECM  unchanged) for block size ≤Thres1. 3) In one example, M of a block size < Thres2 may be larger than that for a block  size ≥ Thres2. i. In one example, Thres2 may be 128. ii. In one example, M may be zero (i.e., keep the design of ECM  unchanged) for block size ≥ Thres2. 4) Alternatively, M may be the same for different block sizes. (h) In one example, M may be different for different sequence resolutions. 1) In one example, M of a sequence resolution > S may be smaller than that  for a sequence resolution ≤S. i. In one example, S may be 1920x1080. 2) Alternatively, M of a sequence resolution > S may be larger than that for a  sequence resolution ≤S. 3) Alternatively, M may be the same for different sequence resolutions. (i) In one example, M may be different for different block contents. 1) In one example, M may be different for SCC and non-SCC contents. 2) Alternatively, M may be the same for different block contents. (j) How to select the M and / or which M is selected may be signaled to the decoder. (k) In one example, the motion candidate list may be the initial merge candidate list of  at least one of regular inter, inter-TM, and BM merge modes. 1) In one example, the maximum size of the initial merge candidate list may be  increased by N. i. In one example, M may be larger than or equal to N. ii. In one example, M and N may be 12. iii. In one example, M may be 12, N may be 8. 2) In one example, the new ARMIP candidates may be inserted after the HMVP  candidates. 3) In one example, the new ARMIP candidates may be inserted before the  pairwise average candidates. 4) In one example, the new ARMIP candidates may be inserted after the original  ARMIP candidates. 5) In one example, the new ARMIP candidates may be inserted before the zero  padding candidates. 6) In one example, if at least one of motion candidates before the original  ARMIP candidates have not derived all corresponding ARMIP candidates (e.g., motion of both reference picture lists and specific position (s) depicted in bullet3 have not been fully checked for deriving the ARMIP candidates) , the at least one of motion candidates before the original ARMIP candidates may continue to derive the new ARMIP candidates directly after the original ARMIP candidates and the remaining new ARMIP candidates derived from the motion candidates before the new ARMIP candidates except for the motion candidates before the original ARMIP candidates may be inserted before the zero padding candidates. Otherwise, all the new ARMIP candidates may be inserted before the zero padding candidates. 7) In one example, the motion of at least one of the candidates before the new  ARMIP candidates may be used as the guided motion of new ARMIP. i. In one example, the candidates before the new ARMIP candidates  may only be the adjacent spatial candidates. ii. In one example, the candidates before the new ARMIP candidates  may be the adjacent spatial candidates or non-adjacent spatial candidates. iii. In one example, the candidates before the new ARMIP candidates  may be the adjacent spatial candidates, non-adjacent spatial candidates, or HMVP candidates. iv. In one example, the candidates before the new ARMIP candidates  may be the adjacent spatial candidates, non-adjacent spatial candidates, HMVP candidates, or adjacent temporal candidates. v. In one example, the candidates before the new ARMIP candidates  may be the adjacent spatial candidates, non-adjacent spatial candidates, HMVP candidates, adjacent temporal candidates, or non-adjacent temporal candidates. vi. In one example, the candidates before the new ARMIP candidates  may be the adjacent spatial candidates, non-adjacent spatial candidates, HMVP candidates, adjacent temporal candidates, non-adjacent temporal candidates, or the original ARMIP candidates. vii. In one example, the motion of all the candidates before the new  ARMIP candidates may be used as the guided motion of new ARMIP. viii. In one example, the motion of the first / predefined G (e.g., G≥1)  candidates before the new ARMIP candidates may be used as the guided motion of new ARMIP. ix. In one example, if the guided motion is derived from a temporal  candidate, the temporal candidate may be scaled to a predefined reference picture with reference picture index equal to K. The scaled temporal motion candidate may be stored in the candidate list of the temporal candidate or a new buffer and used to derive the guided motion of the new ARMIP candidates. (i) In one example, K is 0. x. In one example, if the number of the guided motions is larger than 1,  the guided motions may be reordered according to a criterion such as ARMC reordering. xi. In one example, the guided motions may be not reordered. 8) In one example, the new ARMIP candidates may be reordered together with  other candidates in the initial merge candidate list. i. In one example, the reordering may be the first ARMC reordering. (l) In one example, the motion candidate list may be the pairwise merge candidate list  of at least one of regular inter, inter-TM, and BM merge modes. 1) In one example, the maximum size of the pairwise merge candidate list may  be increased by P. i. In one example, M may be larger than or equal to P. ii. In one example, M and P may be 12. iii. In one example, M may be 12, P may be 10. 2) In one example, the new ARMIP candidates may be inserted after the pairwise  average candidates. i. In one example, the motion of at least one of the adjacent spatial  candidates before the original ARMIP candidates in the initial merge list may be used as the guided motion of new ARMIP. ii. In one example, the motion of at least one of the adjacent spatial  candidates and non-adjacent spatial candidates before the original ARMIP candidates in the initial merge list may be used as the guided motion of new ARMIP. iii. In one example, the motion of at least one of the adjacent spatial  candidates, non-adjacent spatial candidates, and HMVP candidates before the original ARMIP candidates in the initial merge list may be used as the guided motion of new ARMIP. iv. In one example, the motion of at least one of the adjacent spatial  candidates, non-adjacent spatial candidates, HMVP candidates, and adjacent temporal candidates before the original ARMIP candidates in the initial merge list may be used as the guided motion of new ARMIP. v. In one example, the motion of at least one of the adjacent spatial  candidates, non-adjacent spatial candidates, HMVP candidates, adjacent temporal candidates, and non-adjacent temporal candidates before the original ARMIP candidates in the initial merge list may be used as the guided motion of new ARMIP. vi. In one example, the motion of at least one of the candidates before  the original ARMIP candidates in the initial merge candidate list may be used as the guided motion of new ARMIP. vii. In one example, the motion of at least one of the candidates before  the original ARMIP candidates in the initial merge candidate list and pairwise average candidates in the pairwise merge candidate list may be used as the guided motion of new ARMIP. viii. In one example, the motion of at least one of the candidates before  the zero padding candidates in the initial merge candidate list may be used as the guided motion of new ARMIP. ix. In one example, the motion of at least one of the candidates before  the zero padding candidates in the initial merge candidate list and pairwise average candidates in the pairwise merge candidate list may be used as the guided motion of new ARMIP. x. In one example, the motion of at least one of the candidates in the  initial merge candidate list may be used as the guided motion of new ARMIP. xi. In one example, the motion of at least one of the candidates in the  initial merge candidate list and pairwise average candidates in the pairwise merge candidate list may be used as the guided motion of new ARMIP. xii. In one example, the ‘at least one of the’ in bullet 10. d. (g) . 2) . i~xi may  be ‘the first / predefined G (e.g., G≥1) ’ . xiii. In one example, if the guided motion is derived from a temporal  candidate, the temporal candidate may be scaled to a predefined reference picture with reference picture index equal to K. The scaled temporal motion candidate may be stored in the candidate list of the temporal candidate or a new buffer and used to derive the guided motion of the ARMIP candidates. (i) In one example, K is 0. xiv. In one example, if the number of the guided motions is larger than 1,  the guided motions may be reordered according to a criterion such as ARMC reordering. xv. In one example, the guided motions may be not reordered. xvi. In one example, the new ARMIP candidates may be reordered  together with the candidates in the initial merge candidate list and pairwise average candidates in the pairwise merge candidate list. (i) In one example, the reordering may be the second  ARMC reordering. 3) In one example, the new ARMIP candidates may be inserted before the  pairwise average candidates. i. In one example, the motion of at least one of the adjacent spatial  candidates before the original ARMIP candidates in the initial merge list may be used as the guided motion of new ARMIP. ii. In one example, the motion of at least one of the adjacent spatial  candidates and non-adjacent spatial candidates before the original ARMIP candidates in the initial merge list may be used as the guided motion of new ARMIP. iii. In one example, the motion of at least one of the adjacent spatial  candidates, non-adjacent spatial candidates, and HMVP candidates before the original ARMIP candidates in the initial merge list may be used as the guided motion of new ARMIP. iv. In one example, the motion of at least one of the adjacent spatial  candidates, non-adjacent spatial candidates, HMVP candidates, and adjacent temporal candidates before the original ARMIP candidates in the initial merge list may be used as the guided motion of new ARMIP. v. In one example, the motion of at least one of the adjacent spatial  candidates, non-adjacent spatial candidates, HMVP candidates, adjacent temporal candidates, and non-adjacent temporal candidates before the original ARMIP candidates in the initial merge list may be used as the guided motion of new ARMIP. vi. In one example, the motion of at least one of the candidates before  the original ARMIP candidates in the initial merge candidate list may be used as the guided motion of new ARMIP. vii. In one example, the motion of at least one of the candidates before  the zero padding candidates in the initial merge candidate list may be used as the guided motion of new ARMIP. viii. In one example, the motion of at least one of the candidates in the  initial merge candidate list may be used as the guided motion of new ARMIP. ix. In one example, the ‘at least one of the’ in bullet 10. d. (g) . 3) . i~viii  may be ‘the first / predefined G (e.g., G≥1) ’ . x. In one example, if the guided motion is derived from a temporal  candidate, the temporal candidate may be scaled to a predefined reference picture with reference picture index equal to K. The scaled temporal motion candidate may be stored in the candidate list of the temporal candidate or a new buffer and used to derive the guided motion of the new ARMIP candidates. (i) In one example, K is 0. xi. In one example, if the number of the guided motions is larger than 1,  the guided motions may be reordered according to a criterion such as ARMC reordering. xii. In one example, the guided motions may be not reordered. xiii. In one example, the new ARMIP candidates may be reordered  together with the candidates in the initial merge candidate list and pairwise average candidates in the pairwise merge candidate list. (i) In one example, the reordering may be the second  ARMC reordering. xiv. In one example, the new ARMIP candidates may be reordered  together with the candidates in the initial merge candidate list. (i) In one example, the reordering may be the second  ARMC reordering. (ii) In one example, only the candidates before the zero  padding candidates in the initial merge candidate list and the new ARMIP candidates after the second ARMC reordering can be used to derive the pairwise candidates. (iii) In one example, after deriving the pairwise candidates,  they may be reordered together with the candidates in the initial merge candidate list and the new ARMIP candidates after the second ARMC reordering using a third ARMC reordering. 4) In one example, if reserving M (e.g., M>0) positions for new ARMIP in the  pairwise merge candidate list, the original ARMIP (e.g., CMVP or AR-BVP) may be still in the initial merge candidate list (i.e., keep the construction of the initial merge candidate list unchanged) . i. In one example, if one motion candidate has derived all  corresponding ARMIP candidates (e.g., motion of both reference picture lists and specific position (s) depicted in bullet3 have been checked for deriving the ARMIP candidates) in the initial merge candidate list, it may not be used for deriving the new ARMIP candidate in the pairwise merge candidate list. ii. Alternatively, if reserving M (e.g., M>0) positions for new ARMIP  in the pairwise merge candidate list, the original ARMIP (e.g., CMVP or AR-BVP) may be removed from the initial merge candidate list. 5) In one example, a redundancy check or pruning may be performed when  deriving the ARMIP candidates. i. In one example, a full pruning may be performed by comparing the  new ARMIP candidate with all the candidates in the initial merge candidate list and all the candidates before the new ARMIP candidate in the pairwise merge candidate list when deriving the new ARMIP candidates to ensure that candidates with the same or similar motion information are excluded from the initial merge candidate list and pairwise merge candidate list. ii. In one example, a partial pruning may be performed by comparing  the new ARMIP candidate with partial of the candidates in the initial merge candidate list and partial of the candidates before the new ARMIP candidate in the pairwise merge candidate list when deriving the new ARMIP candidates. g. In one example, a guided vector for at least one of original and new ARMIP candidates may be  refined to be more accurate. (a) In one example, if the number of the guided vectors is larger than 1, the guided  vectors may be reordered according to a criterion. 1) In one example, the criterion may be the template matching cost. 2) In one example, the criterion may be the same as that of the ARMC reordering. (b) In one example, a guided vector for at least one of original and new ARMIP  candidates may be refined by template matching. (c) In one example, a guided vector for at least one of original and new ARMIP  candidates may be refined by an explicitly signalling offset. 11. In one example, CMVP candidates may be introduced in the inter AMVP candidate list. a. In one example, the inter AMVP candidate list may be regular inter AMVP candidate list. b. In one example, the inter AMVP candidate list may be inter-TM AMVP candidate list. c. In one example, CMVP candidates may be inserted after HMVP candidates. d. In one example, only the CMVP (e.g., the traced direct vector or the traced vector) pointing to  the reference picture of an AMVP list of the current block, it may be inserted into the AMVP candidate list. e. In one example, a redundancy check or pruning may be performed when deriving the CMVP  candidates. (a) In one example, a full pruning may be performed when deriving the CMVP  candidates to ensure that candidates with the same or similar motion information are excluded from the AMVP candidate list. (b) In one example, a partial pruning may be performed when deriving the CMVP  candidates. f. Alternatively, CMVP candidates may be not introduced in the inter AMVP candidate list. 12. In one example, CMVP candidates may be introduced in the BM merge candidate list. a. In one example, CMVP candidates may be introduced in the initial merge candidate list of BM  merge mode such as that depicted in bullet 10. b. In one example, CMVP candidates may be introduced in the pairwise merge candidate list of  BM merge mode such as that depicted in bullet 10. c. In one example, CMVP candidates may be introduced in both the initial and the pairwise merge  candidate list of BM merge mode such as that depicted in bullet 10. d. In one example, CMVP candidates may be inserted after HMVP candidates. e. In one example, only the CMVP (e.g., the traced direct vector or the traced vector) meets  DMVR conditions, it may be inserted into the BM merge candidate list. (a) In one example, the DMVR condition may involve at least one of the following  modes and features. 1) One reference picture is in the past (e.g., the POC of the reference picture is  smaller than the POC of the current picture) and another reference picture is in the future (e.g., the POC of the reference picture is larger than the POC of the current picture) with respect to the current picture. 2) The distances (i.e. POC difference) from two reference pictures to the current  picture are same. 3) Both reference pictures are short-term reference pictures. 4) Both reference pictures are unscaled reference pictures. f. In one example, a redundancy check or pruning may be performed when deriving the CMVP  candidates. (a) In one example, a full pruning may be performed when deriving the CMVP  candidates to ensure that candidates with the same or similar motion information are excluded from the BM merge candidate list. (b) In one example, a partial pruning may be performed when deriving the CMVP  candidates. g. Alternatively, CMVP candidates may be not introduced in the BM merge candidate list. (a) In one example, CMVP candidates may be not introduced in the initial merge  candidate list of BM merge mode. (b) In one example, CMVP candidates may be not introduced in the pairwise merge  candidate list of BM merge mode. (c) In one example, CMVP candidates may be not introduced in both the initial and the  pairwise merge candidate list of BM merge mode. 13. In one example, for inter mode, the initial guided vector of ARMIP may be a block vector. a. In one example, the block vector may be derived in a predefined priority order, the first N valid  block vector (s) may be used as the guided vector (s) . (a) In one example, N may be 1, 2, 3, 4, or 5. (b) In one example, N may be a predefined positive integer value. (c) In one example, the block vector may be derived from adjacent spatial neighbor  blocks and / or adjacent temporal neighbor blocks and / or non-adjacent spatial neighbor blocks and / or non-adjacent temporal neighbor blocks and / or HBVP candidates and / or pairwise average BV candidates. (d) In one example, the priority order may be adjacent spatial neighbor blocks-> non- adjacent spatial neighbor blocks. (e) In one example, the priority order may be adjacent spatial neighbor blocks-> non- adjacent spatial neighbor blocks->HBVP candidates. (f) In one example, the priority order may be adjacent spatial neighbor blocks->  adjacent temporal neighbor blocks->non-adjacent spatial neighbor blocks->HBVP candidates. (g) In one example, the priority order may be adjacent spatial neighbor blocks->  adjacent temporal neighbor blocks->non-adjacent spatial neighbor blocks-> non-adjacent temporal neighbor blocks->HBVP candidates. (h) In one example, the priority order may be adjacent spatial neighbor blocks->  adjacent temporal neighbor blocks->non-adjacent spatial neighbor blocks-> non-adjacent temporal neighbor blocks->HBVP candidates->pairwise average BV candidates. (i) In one example, the priority order may be the same checking order of adjacent spatial  neighbor blocks and / or adjacent temporal neighbor blocks and / or non-adjacent spatial neighbor blocks and / or non-adjacent temporal neighbor blocks for the corresponding inter motion candidate list construction. (j) In one example, the priority order may be a predefined checking order of adjacent  spatial neighbor blocks and / or adjacent temporal neighbor blocks and / or non-adjacent spatial neighbor blocks and / or non-adjacent temporal neighbor blocks and / or HBVP candidates and / or pairwise average BV candidates. b. In one example, the block vector guided ARMIP may be inserted after the motion vector guided  ARMIP. c. In one example, the ARMIP may be inserted dependent on the checked position of the guided  vector regardless of whether the ARMIP is block vector guided or motion vector guided. (a) In one example, if a first guided vector derived from a first position and a second  guided vector derived from a second position with the first position checked before the second position, then a first ARMIP corresponding to the first guided vector may be inserted before a second ARMIP corresponding to the second guided vector. d. In one example, the block vector guided ARMIP may involve the traced vector or the traced  direct vector and its corresponding reference picture index as shown in Fig. 34C or Fig. 35C as depicted in bullet 1, 2, 3, 6, or 7. 14. In one example, for IBC / IntraTMP mode, the initial guided vector of ARMIP may be a motion vector. a. In one example, the motion vector may be derived in a predefined priority order, the first N  valid motion vector (s) may be used as the guided vector (s) . (a) In one example, N may be 1, 2, 3, 4, or 5. (b) In one example, N may be a predefined positive integer value. (c) In one example, the motion vector may be derived from adjacent spatial neighbor  blocks and / or adjacent temporal neighbor blocks and / or non-adjacent spatial neighbor blocks and / or non-adjacent temporal neighbor blocks and / or HMVP candidates and / or pairwise average MV candidates. (d) In one example, the priority order may be adjacent spatial neighbor blocks-> non- adjacent spatial neighbor blocks. (e) In one example, the priority order may be adjacent spatial neighbor blocks-> non- adjacent spatial neighbor blocks->HMVP candidates. (f) In one example, the priority order may be adjacent spatial neighbor blocks->  adjacent temporal neighbor blocks->non-adjacent spatial neighbor blocks->HMVP candidates. (g) In one example, the priority order may be adjacent spatial neighbor blocks->  adjacent temporal neighbor blocks->non-adjacent spatial neighbor blocks-> non-adjacent temporal neighbor blocks->HMVP candidates. (h) In one example, the priority order may be adjacent spatial neighbor blocks->  adjacent temporal neighbor blocks->non-adjacent spatial neighbor blocks-> non-adjacent temporal neighbor blocks->HMVP candidates->pairwise average MV candidates. (i) In one example, the priority order may be the same checking order of adjacent spatial  neighbor blocks and / or non-adjacent spatial neighbor blocks for the corresponding IBC / IntraTMP motion candidate list construction. (j) In one example, the priority order may be the same checking order of adjacent spatial  neighbor blocks and / or adjacent temporal neighbor blocks and / or non-adjacent spatial neighbor blocks and / or non-adjacent temporal neighbor blocks for the corresponding IBC / IntraTMP motion candidate list construction. (k) In one example, the priority order may be a predefined checking order of adjacent  spatial neighbor blocks and / or adjacent temporal neighbor blocks and / or non-adjacent spatial neighbor blocks and / or non-adjacent temporal neighbor blocks and / or HMVP candidates and / or pairwise average MV candidates. b. In one example, the motion vector guided ARMIP may be inserted after the block vector guided  ARMIP. c. In one example, the ARMIP may be inserted dependent on the checked position of the guided  vector regardless of whether the ARMIP is block vector guided or motion vector guided. (a) In one example, if a first guided vector derived from a first position and a second  guided vector derived from a second position with the first position checked before the second position, then a first ARMIP corresponding to the first guided vector may be inserted before a second ARMIP corresponding to the second guided vector. d. In one example, the motion vector guided ARMIP may involve the traced direct vector and its  corresponding reference picture index as shown in Fig. 34B or Fig. 35B as depicted in bullet 1, 2, 3, 6, or 7. 15. In one example, if the guided vector is a MV or BV in fractional-pel precision, the fractional-pel MV / BV  may be rounded to the integer-pel accuracy, where the integer-pel MV / BV may be its nearest integer MV / BV. a. Alternatively, rounding up or rounding down may be used to get the integer-pel MV / BV from  the fractional-pel MV / BV. b. In one example, if the guided vector is in 1 / 2E-pel (e.g., E=4, 1 / 16-pel) precision with horizontal  component and vertical component as hor and ver, respectively, then the integer-pel MV / BV may be derived as the following. (a) rightShift =E (e.g., 4) ; (b) nOffset = 1 << (rightShift -1) ; (c) hor = hor >= 0 ? (hor + nOffset -1) >> rightShift : (hor + nOffset) >> rightShift; (d) ver = ver >= 0 ? (ver + nOffset -1) >> rightShift : (ver + nOffset) >> rightShift. 16. In one example, more than one ARMIP prediction may be derived. a. For example, a weighted sum of two or more ARMIP prediction may be generated as the final  prediction.General aspects 17. A syntax element disclosed above may be binarized as a flag, a fixed length code, an EG (x) code, a  unary code, a truncated unary code, a truncated binary code, etc. It can be signed or unsigned. 18. A syntax element disclosed above may be coded with at least one context model. Or it may be bypass  coded. 19. A syntax element (SE) disclosed above may be signaled in a conditional way. b. The SE is signaled only if the corresponding function is applicable. 20. A syntax element disclosed above may be signaled at block level / sequence level / group of pictures  level / picture level / slice level / tile group level, such as in coding structures of CTU / CU / TU / PU / CTB / CB / TB / PB, or sequence header / picture header / SPS / VPS / DPS / DCI / PPS / APS / slice header / tile group header. 21. In above examples, the block may refer to the colour component / sub-picture / slice / tile / coding tree unit  (CTU)  / CTU row / groups of CTU / coding unit (CU)  / prediction unit (PU)  / transform unit (TU)  / coding tree block (CTB)  / coding block (CB)  / prediction block (PB)  / transform block (TB)  / ablock / sub-block of a block / sub-region within a block / any other region that contains more than one sample or pixel. 22. 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. 23. 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 contains more than one sample or pixel. 24. 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.

[0105] More details of the embodiments of the present disclosure will be described below which are related to MHP. The embodiments of the present disclosure should be considered as examples to explain the general concepts and should not be interpreted in a narrow way. Furthermore, these embodiments can be applied individually or combined in any manner.

[0106] As used herein, the term “block” may represent a coding tree block (CTB) , a coding tree unit (CTU) , a coding block (CB) , a coding unit (CU) , a prediction unit (PU) , a transform unit (TU) , a prediction block (PB) , a transform block (TB) , a subblock, a tile, a slice, a subpicture, a video processing unit comprising multiple samples / pixels, and / or the like. A block may be rectangular or non-rectangular.

[0107] Fig. 38 illustrates a flowchart of a method 3800 for video processing in accordance with some embodiments of the present disclosure. The method 3800 may be implemented during a conversion between a current block of a video and a bitstream of the video. As shown in Fig. 38, the method 3800 starts at 3802 where a first set of motion information of the current block is obtained as a first motion. As used herein, a set of motion information may comprise a reference direction, at least one motion vector, at least one reference picture index, a block vector, and / or the like. In some embodiments, the first set of motion information may be signaled for the current block by using an inter prediction mode, an intra block copy based (IBC-based) prediction mode, or an intra template matching prediction based (IntraTMP-based) prediction mode. Alternatively, the first set of motion information may be determined for the current block by using the inter prediction mode, the IBC-based prediction mode, or the IntraTMP-based prediction mode.

[0108] In some embodiments, the IBC-based prediction mode may comprise at least one of the following: an IBC merge prediction mode, an IBC advanced motion vector prediction (AMVP) prediction mode, an IBC with template matching (IBC-TM) merge prediction mode, an IBC-TM AMVP prediction mode, a reconstruction-reordered IBC (RR-IBC) merge prediction mode, an RR-IBC AMVP prediction mode, an IBC merge mode with block vector differences (IBC-MBVD) prediction mode, a combined intra block copy and intra prediction (IBC-CIIP) prediction mode, a uni-predictive IBC with geometric partitioning mode (IBC-GPM) prediction mode, a bi-predictive IBC-GPM prediction mode, an IBC with local illumination compensation (IBC-LIC) prediction mode, a spatial GPM (SGPM) with IntraTMP and IBC prediction mode, an IBC extension to decoder side intra mode derivation (DIMD) prediction mode, or an IBC extension to template-based intra mode derivation (TIMD) prediction mode.

[0109] In some embodiments, the IntraTMP-based prediction mode may comprise at least one of the following: an IntraTMP prediction mode, a spatial GPM (SGPM) with IntraTMP and IBC prediction mode, an IntraTMP extension to DIMD prediction mode, an IntraTMP extension to TIMD prediction mode, or an IntraTMP extension to LIC (IntraTMP-LIC) prediction mode.

[0110] In some embodiments, the inter prediction mode may comprise at least one of the following: an inter merge prediction mode, an inter AMVP prediction mode, an inter-TM merge prediction mode, an inter-TM AMVP prediction mode, a bilateral matching (BM) merge prediction mode, an adaptive decoder-side motion vector refinement (ADMVR) merge prediction, a bilateral matching AMVP-merge prediction mode, a merge mode with motion vector difference (MMVD) prediction mode, a combined inter and intra prediction (CIIP) prediction mode, a uni-predictive GPM prediction mode, a bi-predictive GPM prediction mode, or an LIC prediction mode.

[0111] At 3804, a second set of motion information of the current block is determined as a second motion, based on a set of motion information of a first block located by the first motion. For example, the first motion may point to the first block. It should be noted that the first set of motion information here may correspond to the second set of motion parameters / information mentioned in the above bullets 1-24 of section 4, and the second set of motion information here may correspond to the first set of motion parameters / information mentioned in the above bullets 1-24 of section 4.

[0112] In some embodiments, the second set of motion information may be determined based on the set of motion information of the first block and the first set of motion information of the current block. By way of example rather than limitation, in a case where the first set of motion information comprises first block vector, and the set of motion information of the first block located by the first block comprises a first motion vector, the second set of motion information may comprise a motion vector which is a vector sum of the first block vector and the first motion vector, which is shown in Fig. 34C. Several further examples are shown in Figs. 34A-34B, 34D, and 35A-35D. In this case, the first motion may be referred to as a “guiding motion” or a “guided motion” , the set of motion information of the first block is also referred to as a “traced direct motion” , and the second motion is also referred to as a “traced motion” . Similarly, a motion vector or a block vector comprised in the guiding motion may be referred to as a “guiding vector” or a “guided vector” , a motion vector or a block vector comprised in the traced direct motion may be referred to as a “traced direct vector” , and a motion vector or a block vector comprised in the traced motion may be referred to as a “traced vector” .

[0113] Alternatively, the set of motion information of the first block may be directly determined as the second set of motion information. That is, the traced direct motion may be directly used as the second motion for the current block without determining the traced motion.

[0114] At 3806, a first prediction of the current block is determined based on the first motion. For example, a reference block located by the first motion may be used as the first prediction of the current block. In some alternative embodiments, the first prediction may be determined based on motion information signaled in the bitstream. In some further example embodiments, the first prediction may be determined by using an inter prediction mode, an intra block copy IBC prediction mode, an intra template matching prediction (IntraTMP) mode, and / or the like.

[0115] At 3808, an additional prediction of the current block is determined based on the second motion. As used herein, an additional prediction of the current block refers to a prediction of the current block in addition to the first prediction. Moreover, an additional prediction may also be referred to as an additional prediction hypothesis, an additional prediction signal or the like.

[0116] At 3810, the conversion is performed based on the first prediction and the additional prediction. For example, target prediction of the current block may be determined based on the first prediction and the additional prediction, and then the conversion is performed based on the target prediction. In some embodiments, the conversion may include encoding the current block into the bitstream. Alternatively or additionally, the conversion may include decoding the current block from the bitstream. It should be understood that the above illustrations and / or examples are described merely for purpose of description. The scope of the present disclosure is not limited in this respect.

[0117] In view of the above, an additional prediction used for MHP of the current block is determined based on the second motion that is obtained by tracing the first motion of the current block. Compared with the conventional solution, the additional prediction can be determined more efficiently, and thus the coding efficiency can be improved.

[0118] In some embodiments, at 3806, the first motion is set as a guiding motion, and the following tracing process is performed iteratively: determining a traced motion of the current block based on the guiding motion and motion information of a reference block located by the guiding motion; and setting the determined traced motion as the guiding motion. That is, in the initial iteration, the first motion of the current block is used as a guiding motion, and in the following iterations, the traced motion from the previous iteration is used as the guiding motion. In some example embodiments, the tracing process may be terminated when a terminating condition is met. By way of example rather than limitation, the terminating condition may be that a predetermined number of traced motions have been generated.

[0119] In some embodiments, the first motion of the current block comprises a motion vector MVB0LX (m) or a block vector BVB0LX (m) , where B0 represents the current block, X represents a reference picture list (RPL) index, and m represents a trace depth. For example, m may be 0 for derived motion information of an IntraTMP mode. The motion vector MVB0LX (m) or the block vector BVB0LX (m) with m being equal to 0 may represent an initial guiding vector.

[0120] In some embodiments, the guiding motion may comprise a guiding vector which may be a motion vector or a block vector. In accordance with a determination that one motion candidate used to derive the guiding motion is bi-predictive, a motion vector or a block vector of at least one of two reference picture lists may be used as the guiding vector. In one example embodiment, in accordance with a determination that one motion candidate used to derive the guiding motion is bi-predictive, a motion vector or a block vector of only one of two reference picture lists may be used as the guiding vector. In a further example embodiment, in accordance with a determination that one motion candidate used to derive the guiding motion is bi-predictive, motion vectors or block vectors of both two reference picture lists may be used as the guiding vector.

[0121] In some embodiments, in accordance with a determination that one motion candidate used to derive the guiding motion is uni-predictive, a motion vector or a block vector of a reference picture list having a motion corresponding to the motion candidate may be used as the guiding vector. Alternatively, in accordance with a determination that one motion candidate used to derive the guiding motion is uni-predictive, a motion vector or a block vector of a predetermined reference picture list may be used as the guiding vector, and in accordance with a determination that the predetermined reference picture list do not have a motion corresponding to the motion candidate, no guiding motion may be derived from the motion candidate.

[0122] In some embodiments, at least one position in the reference block may be checked to determine the motion information of the reference block. In one example embodiment, the at least one position may comprise at least one of: an outer-bottom-right position (denoted as RBO in Figs. 37A-37B) or a center position (denoted as Ctr in Figs. 36A-37B) . For example, the at least one position may comprise both the outer-bottom-right position and the center position. In one example embodiment, a checking order of the at least one position may be as follows: the center position is checked before the outer-bottom-right position. Alternatively, the checking order of the at least one position may be as follows: the outer-bottom-right position is checked before the center position.

[0123] In some embodiments, the at least one position may comprise at least one of: a top-left position (denoted as LT in Figs. 36A-37B) , a top-right position (denoted as RT in Figs. 36A-37B) , a center position (denoted as Ctr in Figs. 36A-37B) , a bottom-left position (denoted as LB in Figs. 36A-37B) , a bottom-right position (denoted as RB in Figs. 36A-37B) , or an outer-bottom-right position (denoted as RBO in Figs. 37A-37B) . For example, the at least one position may comprise all of the top-left position, the top-right position, the center position, the bottom-left position, the bottom-right position, and the outer-bottom-right position.

[0124] In one example embodiment, a checking order of the at least one position may be as follows: the outer-bottom-right position is to be check firstly, the center position is to be checked secondly, the top-left position is to be checked thirdly, the top-right position is to be check fourthly, the bottom-left position is to be checked fifthly, and the bottom-right position is to be checked at last. In another example embodiment, the checking order of the at least one position may be as follows: the center position is to be checked firstly, the outer-bottom-right position is to be check secondly, the top-left position is to be checked thirdly, the top-right position is to be check fourthly, the bottom-left position is to be checked fifthly, and the bottom-right position is to be checked at last. In a further example embodiment, the checking order of the at least one position may be as follows: the center position is to be checked firstly, the top-left position is to be checked secondly, the top-right position is to be check thirdly, the bottom-left position is to be checked fourthly, the bottom-right position is to be checked fifthly, and the outer-bottom-right position is to be check at last.

[0125] In some embodiments, all available motion information from the at least one position may be used for determining the motion information of the reference block. For example, if more than one position has the same motion information, the motion information of only one position is used as the motion information of the reference block. If all of the above-mentioned six positions have different motion information, all motion information of the six positions are used as the motion information of the reference block. In some alternative embodiments, the first available motion information from one checked position may be used for determining the motion information of the reference block. For example, in a case where the checking order of the at least one position is as follows: the outer-bottom-right position is to be check firstly, the center position is to be checked secondly, the top-left position is to be checked thirdly, the top-right position is to be check fourthly, the bottom-left position is to be checked fifthly, and the bottom-right position is to be checked at last, if the motion information of the outer-bottom-right position is available, the motion information of the outer-bottom-right position is used as the motion information of the reference block, and all of the rest positions will not be checked. It should be understood that the above examples are described merely for purpose of description. The scope of the present disclosure is not limited in this respect.

[0126] In some embodiments, the guiding motion comprises an MV, and in accordance with a determination that the motion information of a reference picture pointed by the MV is available and a reference block pointed by the MV belongs to a coding tree unit (CTU) beyond a current CTU row comprising the current block, motion information of a target block within the current CTU row may be used for determining the traced motion. For example, the target block may be a block within the current CTU row that is closest to the reference block. Thereby, the one-CTU-row constraint can be ensured, and the buffer management can be simplified.

[0127] In some alternative embodiment, the one-CTU-row constraint may be replaced with N-CTU-row constraint, where N is an integer larger than 1, such as 2, 3, or the like. In this case, in accordance with a determination that the motion information of a reference picture pointed by the MV is available and a reference block pointed by the MV belongs to a CTU beyond a plurality of CTU rows comprising the current block, motion information of the reference block may be disallowed to be used for determining the traced motion. Thereby, in aid of the N-CTU-row constraint, the coding flexibility can be improved.

[0128] In view of the above, the solutions in accordance with some embodiments of the present disclosure can advantageously improve coding efficiency and coding quality.

[0129] 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. The method comprises: obtaining a first set of motion information of a current block of the video as a first motion; determining, based on a set of motion information of a first block located by the first motion, a second set of motion information of the current block as a second motion; determining a first prediction of the current block based on the first motion; determining an additional prediction of the current block based on the second motion; and generating the bitstream based on the first prediction and the additional prediction.

[0130] According to still further embodiments of the present disclosure, a method for storing bitstream of a video is provided. The method comprises: obtaining a first set of motion information of a current block of the video as a first motion; determining, based on a set of motion information of a first block located by the first motion, a second set of motion information of the current block as a second motion; determining a first prediction of the current block based on the first motion; determining an additional prediction of the current block based on the second motion; generating the bitstream based on the first prediction and the additional prediction; and storing the bitstream in a non-transitory computer-readable recording medium.

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

[0132] Clause 1. A method for video processing, comprising: obtaining, for a conversion between a current block of a video and a bitstream of the video, a first set of motion information of the current block as a first motion; determining, based on a set of motion information of a first block located by the first motion, a second set of motion information of the current block as a second motion; determining a first prediction of the current block based on the first motion; determining an additional prediction of the current block based on the second motion; and performing the conversion based on the first prediction and the additional prediction.

[0133] Clause 2. The method of clause 1, wherein determining the second set of motion information comprises: determining the set of motion information of the first block as the second set of motion information.

[0134] Clause 3. The method of clause 1, wherein determining the second set of motion information comprises: determining the second set of motion information based on the set of motion information of the first block and the first set of motion information of the current block.

[0135] Clause 4. The method of any of clauses 1-3, wherein the first set of motion information is signaled or determined for the current block by using an inter prediction mode, an intra block copy based (IBC-based) prediction mode, or an intra template matching prediction based (IntraTMP-based) prediction mode.

[0136] Clause 5. The method of clause 4, wherein the IBC-based prediction mode comprises at least one of the following: an IBC merge prediction mode, an IBC advanced motion vector prediction (AMVP) prediction mode, an IBC with template matching (IBC-TM) merge prediction mode, an IBC-TM AMVP prediction mode, a reconstruction-reordered IBC (RR-IBC) merge prediction mode, an RR-IBC AMVP prediction mode, an IBC merge mode with block vector differences (IBC-MBVD) prediction mode, a combined intra block copy and intra prediction (IBC-CIIP) prediction mode, a uni-predictive IBC with geometric partitioning mode (IBC-GPM) prediction mode, a bi-predictive IBC-GPM prediction mode, an IBC with local illumination compensation (IBC-LIC) prediction mode, a spatial GPM (SGPM) with IntraTMP and IBC prediction mode, an IBC extension to decoder side intra mode derivation (DIMD) prediction mode, or an IBC extension to template-based intra mode derivation (TIMD) prediction mode.

[0137] Clause 6. The method of any of clauses 4-5, wherein the IntraTMP-based prediction mode comprises at least one of the following: an IntraTMP prediction mode, a spatial GPM (SGPM) with IntraTMP and IBC prediction mode, an IntraTMP extension to DIMD prediction mode, an IntraTMP extension to TIMD prediction mode, or an IntraTMP extension to LIC (IntraTMP-LIC) prediction mode.

[0138] Clause 7. The method of any of clauses 4-6, wherein the inter prediction mode comprises at least one of the following: an inter merge prediction mode, an inter AMVP prediction mode, an inter-TM merge prediction mode, an inter-TM AMVP prediction mode, a bilateral matching (BM) merge prediction mode, an adaptive decoder-side motion vector refinement (ADMVR) merge prediction, a bilateral matching AMVP-merge prediction mode, a merge mode with motion vector difference (MMVD) prediction mode, a combined inter and intra prediction (CIIP) prediction mode, a uni-predictive GPM prediction mode, a bi-predictive GPM prediction mode, or an LIC prediction mode.

[0139] Clause 8. The method of clause 1, wherein determining the second set of motion information comprises: setting the first motion as a guiding motion; and performing the following tracing process iteratively: determining a traced motion of the current block based on the guiding motion and motion information of a reference block located by the guiding motion; and setting the determined traced motion as the guiding motion.

[0140] Clause 9. The method of clause 8, wherein the first motion of the current block comprises a motion vector MVB0LX (m) or a block vector BVB0LX (m) , wherein B0 represents the current block, X represents a reference picture list (RPL) index, and m represents a trace depth.

[0141] Clause 10. The method of clause 9, wherein m is 0 for derived motion information of an IntraTMP mode.

[0142] Clause 11. The method of any of clauses 9-10, wherein the motion vector MVB0LX (m) or the block vector BVB0LX (m) with m being equal to 0 represents an initial guiding vector.

[0143] Clause 12. The method of any of clauses 8-11, wherein the guiding motion comprises a guiding vector, and in accordance with a determination that one motion candidate used to derive the guiding motion is bi-predictive, a motion vector or a block vector of at least one of two reference picture lists is used as the guiding vector.

[0144] Clause 13. The method of any of clauses 8-11, wherein the guiding motion comprises a guiding vector, and in accordance with a determination that one motion candidate used to derive the guiding motion is bi-predictive, a motion vector or a block vector of only one of two reference picture lists is used as the guiding vector.

[0145] Clause 14. The method of any of clauses 8-11, wherein the guiding motion comprises a guiding vector, and in accordance with a determination that one motion candidate used to derive the guiding motion is bi-predictive, motion vectors or block vectors of both two reference picture lists is used as the guiding vector.

[0146] Clause 15. The method of any of clauses 8-14, wherein the guiding motion comprises a guiding vector, and in accordance with a determination that one motion candidate used to derive the guiding motion is uni-predictive, a motion vector or a block vector of a reference picture list having a motion corresponding to the motion candidate is used as the guiding vector.

[0147] Clause 16. The method of any of clauses 8-14, wherein the guiding motion comprises a guiding vector, and in accordance with a determination that one motion candidate used to derive the guiding motion is uni-predictive, a motion vector or a block vector of a predetermined reference picture list is used as the guiding vector, and in accordance with a determination that the predetermined reference picture list do not have a motion corresponding to the motion candidate, no guiding motion is derived from the motion candidate.

[0148] Clause 17. The method of any of clauses 8-16, wherein at least one position in the reference block is checked to determine the motion information of the reference block.

[0149] Clause 18. The method of clause 17, wherein the at least one position comprises at least one of: an outer-bottom-right position or a center position.

[0150] Clause 19. The method of clause 17, wherein the at least one position comprises an outer-bottom-right position and a center position.

[0151] Clause 20. The method of any of clauses 18-19, wherein a checking order of the at least one position is as follows: the center position is checked before the outer-bottom-right position.

[0152] Clause 21. The method of any of clauses 18-19, wherein a checking order of the at least one position is as follows: the outer-bottom-right position is checked before the center position.

[0153] Clause 22. The method of clause 17, wherein the at least one position comprises at least one of: a top-left position, a top-right position, a center position, a bottom-left position, a bottom-right position, or an outer-bottom-right position.

[0154] Clause 23. The method of clause 17, wherein the at least one position comprises a top-left position, a top-right position, a center position, a bottom-left position, a bottom-right position, and an outer-bottom-right position.

[0155] Clause 24. The method of any of clauses 22-23, wherein a checking order of the at least one position is as follows: the outer-bottom-right position is to be check firstly, the center position is to be checked secondly, the top-left position is to be checked thirdly, the top-right position is to be check fourthly, the bottom-left position is to be checked fifthly, and the bottom-right position is to be checked at last.

[0156] Clause 25. The method of any of clauses 22-23, wherein a checking order of the at least one position is as follows: the center position is to be checked firstly, the outer-bottom-right position is to be check secondly, the top-left position is to be checked thirdly, the top-right position is to be check fourthly, the bottom-left position is to be checked fifthly, and the bottom-right position is to be checked at last.

[0157] Clause 26. The method of any of clauses 22-23, wherein a checking order of the at least one position is as follows: the center position is to be checked firstly, the top-left position is to be checked secondly, the top-right position is to be check thirdly, the bottom-left position is to be checked fourthly, the bottom-right position is to be checked fifthly, and the outer-bottom-right position is to be check at last.

[0158] Clause 27. The method of any of clauses 17-26, wherein all available motion information from the at least one position is used for determining the motion information of the reference block.

[0159] Clause 28. The method of any of clauses 17-26, wherein the first available motion information from one checked position is used for determining the motion information of the reference block.

[0160] Clause 29. The method of any of clauses 8-28, wherein the guiding motion comprises an MV, and in accordance with a determination that the motion information of a reference picture pointed by the MV is available and a reference block pointed by the MV belongs to a coding tree unit (CTU) beyond a current CTU row comprising the current block, motion information of a target block within the current CTU row is used for determining the traced motion.

[0161] Clause 30. The method of clause 29, wherein the target block is a block within the current CTU row that is closest to the reference block.

[0162] Clause 31. The method of any of clauses 8-28, wherein the guiding motion comprises an MV, and in accordance with a determination that the motion information of a reference picture pointed by the MV is available and a reference block pointed by the MV belongs to a CTU beyond a plurality of CTU rows comprising the current block, motion information of the reference block is disallowed to be used for determining the traced motion.

[0163] Clause 32. The method of any of clauses 1-31, wherein the conversion includes encoding the current block into the bitstream.

[0164] Clause 33. The method of any of clauses 1-31, wherein the conversion includes decoding the current block from the bitstream.

[0165] Clause 34. 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-33.

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

[0167] Clause 36. 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: obtaining a first set of motion information of a current block of the video as a first motion; determining, based on a set of motion information of a first block located by the first motion, a second set of motion information of the current block as a second motion; determining a first prediction of the current block based on the first motion; determining an additional prediction of the current block based on the second motion; and generating the bitstream based on the first prediction and the additional prediction.

[0168] Clause 37. A method for storing a bitstream of a video, comprising: obtaining a first set of motion information of a current block of the video as a first motion; determining, based on a set of motion information of a first block located by the first motion, a second set of motion information of the current block as a second motion; determining a first prediction of the current block based on the first motion; determining an additional prediction of the current block based on the second motion; generating the bitstream based on the first prediction and the additional prediction; and storing the bitstream in a non-transitory computer-readable recording medium. Example Device

[0169] Fig. 39 illustrates a block diagram of a computing device 3900 in which various embodiments of the present disclosure can be implemented. The computing device 3900 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) .

[0170] It would be appreciated that the computing device 3900 shown in Fig. 39 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.

[0171] As shown in Fig. 39, the computing device 3900 includes a general-purpose computing device 3900. The computing device 3900 may at least comprise one or more processors or processing units 3910, a memory 3920, a storage unit 3930, one or more communication units 3940, one or more input devices 3950, and one or more output devices 3960.

[0172] In some embodiments, the computing device 3900 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 3900 can support any type of interface to a user (such as “wearable” circuitry and the like) .

[0173] The processing unit 3910 may be a physical or virtual processor and can implement various processes based on programs stored in the memory 3920. 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 3900. The processing unit 3910 may also be referred to as a central processing unit (CPU) , a microprocessor, a controller or a microcontroller.

[0174] The computing device 3900 typically includes various computer storage medium. Such medium can be any medium accessible by the computing device 3900, including, but not limited to, volatile and non-volatile medium, or detachable and non-detachable medium. The memory 3920 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 3930 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 3900.

[0175] The computing device 3900 may further include additional detachable / non-detachable, volatile / non-volatile memory medium. Although not shown in Fig. 39, 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.

[0176] The communication unit 3940 communicates with a further computing device via the communication medium. In addition, the functions of the components in the computing device 3900 can be implemented by a single computing cluster or multiple computing machines that can communicate via communication connections. Therefore, the computing device 3900 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.

[0177] The input device 3950 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 3960 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 3940, the computing device 3900 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 3900, or any devices (such as a network card, a modem and the like) enabling the computing device 3900 to communicate with one or more other computing devices, if required. Such communication can be performed via input / output (I / O) interfaces (not shown) .

[0178] In some embodiments, instead of being integrated in a single device, some or all components of the computing device 3900 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.

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

[0180] In the example embodiments of performing video encoding, the input device 3950 may receive video data as an input 3970 to be encoded. The video data may be processed, for example, by the video coding module 3925, to generate an encoded bitstream. The encoded bitstream may be provided via the output device 3960 as an output 3980.

[0181] In the example embodiments of performing video decoding, the input device 3950 may receive an encoded bitstream as the input 3970. The encoded bitstream may be processed, for example, by the video coding module 3925, to generate decoded video data. The decoded video data may be provided via the output device 3960 as the output 3980.

[0182] 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:obtaining, for a conversion between a current block of a video and a bitstream of the video, a first set of motion information of the current block as a first motion;determining, based on a set of motion information of a first block located by the first motion, a second set of motion information of the current block as a second motion;determining a first prediction of the current block based on the first motion;determining an additional prediction of the current block based on the second motion; andperforming the conversion based on the first prediction and the additional prediction.2.The method of claim 1, wherein determining the second set of motion information comprises:determining the set of motion information of the first block as the second set of motion information.3.The method of claim 1, wherein determining the second set of motion information comprises:determining the second set of motion information based on the set of motion information of the first block and the first set of motion information of the current block.4.The method of any of claims 1-3, wherein the first set of motion information is signaled or determined for the current block by using an inter prediction mode, an intra block copy based (IBC-based) prediction mode, or an intra template matching prediction based (IntraTMP-based) prediction mode.5.The method of claim 4, wherein the IBC-based prediction mode comprises at least one of the following: an IBC merge prediction mode, an IBC advanced motion vector prediction (AMVP) prediction mode, an IBC with template matching (IBC-TM) merge prediction mode, an IBC-TM AMVP prediction mode, a reconstruction-reordered IBC (RR-IBC) merge prediction mode, an RR-IBC AMVP prediction mode, an IBC merge mode with block vector differences (IBC-MBVD) prediction mode, a combined intra block copy and intra prediction (IBC-CIIP) prediction mode, a uni-predictive IBC with geometric partitioning mode (IBC-GPM) prediction mode, a bi-predictive IBC-GPM prediction mode, an IBC with local illumination compensation (IBC-LIC) prediction mode, a spatial GPM (SGPM) with IntraTMP and IBC prediction mode, an IBC extension to decoder side intra mode derivation (DIMD) prediction mode, or an IBC extension to template-based intra mode derivation (TIMD) prediction mode.6.The method of any of claims 4-5, wherein the IntraTMP-based prediction mode comprises at least one of the following: an IntraTMP prediction mode, a spatial GPM (SGPM) with IntraTMP and IBC prediction mode, an IntraTMP extension to DIMD prediction mode, an IntraTMP extension to TIMD prediction mode, or an IntraTMP extension to LIC (IntraTMP-LIC) prediction mode.7.The method of any of claims 4-6, wherein the inter prediction mode comprises at least one of the following: an inter merge prediction mode, an inter AMVP prediction mode, an inter-TM merge prediction mode, an inter-TM AMVP prediction mode, a bilateral matching (BM) merge prediction mode, an adaptive decoder-side motion vector refinement (ADMVR) merge prediction, a bilateral matching AMVP-merge prediction mode, a merge mode with motion vector difference (MMVD) prediction mode, a combined inter and intra prediction (CIIP) prediction mode, a uni-predictive GPM prediction mode, a bi-predictive GPM prediction mode, or an LIC prediction mode.8.The method of claim 1, wherein determining the second set of motion information comprises:setting the first motion as a guiding motion; andperforming the following tracing process iteratively:determining a traced motion of the current block based on the guiding motion and motion information of a reference block located by the guiding motion; andsetting the determined traced motion as the guiding motion.9.The method of claim 8, wherein the first motion of the current block comprises a motion vector MVB0LX (m) or a block vector BVB0LX (m) ,wherein B0 represents the current block, X represents a reference picture list (RPL) index, and m represents a trace depth.10.The method of claim 9, wherein m is 0 for derived motion information of an IntraTMP mode.11.The method of any of claims 9-10, wherein the motion vector MVB0LX (m) or the block vector BVB0LX (m) with m being equal to 0 represents an initial guiding vector.12.The method of any of claims 8-11, wherein the guiding motion comprises a guiding vector, and in accordance with a determination that one motion candidate used to derive the guiding motion is bi-predictive, a motion vector or a block vector of at least one of two reference picture lists is used as the guiding vector.13.The method of any of claims 8-11, wherein the guiding motion comprises a guiding vector, and in accordance with a determination that one motion candidate used to derive the guiding motion is bi-predictive, a motion vector or a block vector of only one of two reference picture lists is used as the guiding vector.14.The method of any of claims 8-11, wherein the guiding motion comprises a guiding vector, and in accordance with a determination that one motion candidate used to derive the guiding motion is bi-predictive, motion vectors or block vectors of both two reference picture lists is used as the guiding vector.15.The method of any of claims 8-14, wherein the guiding motion comprises a guiding vector, and in accordance with a determination that one motion candidate used to derive the guiding motion is uni-predictive, a motion vector or a block vector of a reference picture list having a motion corresponding to the motion candidate is used as the guiding vector.16.The method of any of claims 8-14, wherein the guiding motion comprises a guiding vector, and in accordance with a determination that one motion candidate used to derive the guiding motion is uni-predictive, a motion vector or a block vector of a predetermined reference picture list is used as the guiding vector, and in accordance with a determination that the predetermined reference picture list do not have a motion corresponding to the motion candidate, no guiding motion is derived from the motion candidate.17.The method of any of claims 8-16, wherein at least one position in the reference block is checked to determine the motion information of the reference block.18.The method of claim 17, wherein the at least one position comprises at least one of: an outer-bottom-right position or a center position.19.The method of claim 17, wherein the at least one position comprises an outer-bottom-right position and a center position.20.The method of any of claims 18-19, wherein a checking order of the at least one position is as follows: the center position is checked before the outer-bottom-right position.21.The method of any of claims 18-19, wherein a checking order of the at least one position is as follows: the outer-bottom-right position is checked before the center position.22.The method of claim 17, wherein the at least one position comprises at least one of: a top-left position, a top-right position, a center position, a bottom-left position, a bottom-right position, or an outer-bottom-right position.23.The method of claim 17, wherein the at least one position comprises a top-left position, a top-right position, a center position, a bottom-left position, a bottom-right position, and an outer-bottom-right position.24.The method of any of claims 22-23, wherein a checking order of the at least one position is as follows: the outer-bottom-right position is to be check firstly, the center position is to be checked secondly, the top-left position is to be checked thirdly, the top-right position is to be check fourthly, the bottom-left position is to be checked fifthly, and the bottom-right position is to be checked at last.25.The method of any of claims 22-23, wherein a checking order of the at least one position is as follows: the center position is to be checked firstly, the outer-bottom-right position is to be check secondly, the top-left position is to be checked thirdly, the top-right position is to be check fourthly, the bottom-left position is to be checked fifthly, and the bottom-right position is to be checked at last.26.The method of any of claims 22-23, wherein a checking order of the at least one position is as follows: the center position is to be checked firstly, the top-left position is to be checked secondly, the top-right position is to be check thirdly, the bottom-left position is to be checked fourthly, the bottom-right position is to be checked fifthly, and the outer-bottom-right position is to be check at last.27.The method of any of claims 17-26, wherein all available motion information from the at least one position is used for determining the motion information of the reference block.28.The method of any of claims 17-26, wherein the first available motion information from one checked position is used for determining the motion information of the reference block.29.The method of any of claims 8-28, wherein the guiding motion comprises an MV, and in accordance with a determination that the motion information of a reference picture pointed by the MV is available and a reference block pointed by the MV belongs to a coding tree unit (CTU) beyond a current CTU row comprising the current block, motion information of a target block within the current CTU row is used for determining the traced motion.30.The method of claim 29, wherein the target block is a block within the current CTU row that is closest to the reference block.31.The method of any of claims 8-28, wherein the guiding motion comprises an MV, and in accordance with a determination that the motion information of a reference picture pointed by the MV is available and a reference block pointed by the MV belongs to a CTU beyond a plurality of CTU rows comprising the current block, motion information of the reference block is disallowed to be used for determining the traced motion.32.The method of any of claims 1-31, wherein the conversion includes encoding the current block into the bitstream.33.The method of any of claims 1-31, wherein the conversion includes decoding the current block from the bitstream.34.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-33.35.A non-transitory computer-readable storage medium storing instructions that cause a processor to perform a method in accordance with any of claims 1-33.36.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:obtaining a first set of motion information of a current block of the video as a first motion;determining, based on a set of motion information of a first block located by the first motion, a second set of motion information of the current block as a second motion;determining a first prediction of the current block based on the first motion;determining an additional prediction of the current block based on the second motion; andgenerating the bitstream based on the first prediction and the additional prediction.37.A method for storing a bitstream of a video, comprising:obtaining a first set of motion information of a current block of the video as a first motion;determining, based on a set of motion information of a first block located by the first motion, a second set of motion information of the current block as a second motion;determining a first prediction of the current block based on the first motion;determining an additional prediction of the current block based on the second motion;generating the bitstream based on the first prediction and the additional prediction; andstoring the bitstream in a non-transitory computer-readable recording medium.

Citation Information

Patent Citations

  • Method and apparatus for multiple hypothesis prediction in video coding system

    CN116366836A

  • Multiple hypothesis prediction coding

    WO2023236914A1