Method, apparatus, and medium for video processing

The method enhances coding efficiency in video processing by determining traced motion parameters and generating additional predictions for video blocks, addressing inefficiencies in existing video coding technologies.

WO2025176194A1PCT designated stage Publication Date: 2025-08-28DOUYIN VISION CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/078517
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-02-22
Filing Date
2025-02-21
Publication Date
2025-08-28

AI Technical Summary

Technical Problem

Existing video coding technologies, such as MPEG-2, MPEG-4, ITU-T H. 263, ITU-T H.264/MPEG-4 AVC, and ITU-T H. 265 HEVC, require improvements in coding efficiency for digital video processing.

Method used

A method for video processing that involves obtaining a first prediction of a current block, determining traced motion parameters, and generating additional predictions based on these parameters to enhance coding efficiency.

Benefits of technology

The proposed method improves coding efficiency by efficiently determining additional predictions for video blocks, leading to enhanced video processing performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025078517_28082025_PF_FP_ABST
    Figure CN2025078517_28082025_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 prediction of the current block; in accordance with a determination that a first prediction mode is applied to the current block, determining at least one traced motion parameter of the current block based on a motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block; determining one or more additional predictions of the current block based on the at least one traced motion parameter; and performing the conversion based on the first prediction and the one or more additional predictions.
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 MPEG-2, MPEG-4, ITU-TH. 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 prediction of the current block; in accordance with a determination that a first prediction mode is applied to the current block, determining at least one traced motion parameter of the current block based on a motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block; determining one or more additional predictions of the current block based on the at least one traced motion parameter; and performing the conversion based on the first prediction and the one or more additional predictions.

[0005] Based on the method in accordance with the first aspect of the present disclosure, the motion parameter (s) of one or more additional predictions used for MHP of the current block are determined based on the motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block. Compared with the conventional solution, the one or more additional predictions 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 prediction of a current block of the video; in accordance with a determination that a first prediction mode is applied to the current block, determining at least one traced motion parameter of the current block based on a motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block; determining one or more additional predictions of the current block based on the at least one traced motion parameter; and generating the bitstream based on the first prediction and the one or more additional predictions.

[0009] In a fifth aspect, a method for storing a bitstream of a video is proposed. The method comprises: obtaining a first prediction of a current block of the video; in accordance with a determination that a first prediction mode is applied to the current block, determining at least one traced motion parameter of the current block based on a motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block; determining one or more additional predictions of the current block based on the at least one traced motion parameter; generating the bitstream based on the first prediction and the one or more additional predictions; 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 that illustrates an example video coding system, in accordance with some embodiments of the present disclosure;

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

[0014] Fig. 3 illustrates a block diagram that illustrates 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. 29A illustrates a uni-prediction traced direct vector in a case where both guided vector and traced direct vector are block vector;

[0043] Fig. 29B 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;

[0044] Fig. 29C 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;

[0045] Fig. 29D 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;

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

[0047] Fig. 30B 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;

[0048] Fig. 30C 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;

[0049] Fig. 30D 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;

[0050] Fig. 31A illustrates the five positions in a block B1 for that the guided vector is motion vector;

[0051] Fig. 31B illustrates the five positions in a block B 1 for that the guided vector is block vector;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0071] 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 combination of intra and inter 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.

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

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

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

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

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

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

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

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

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

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

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

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

[0084] After the transform processing 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.

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

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

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

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

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

[0090] 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 transformation unit 305, and 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.

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

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

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

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

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

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

[0097] Some exemplary 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.  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 from the ARMC reordering process are excluded during the construction of Merge motion vector candidates list. The subgroup size is set to 5 for regular merge mode and TM merge mode. The subgroup size is set to 3 for affine merge mode. ● Cost calculation 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 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. ● 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 k=0, 1, 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 S1=∑ (i, j) ∈ΩAbs (ψx (i, j) ) , S3=∑ (i, j) ∈Ωθ (i, j) ·Sign (ψx (i, j) ) S5=∑ (i, j) ∈ΩAbs (ψy (i, j) ) , S6=∑ (i, j) ∈Ωθ (i, j) ·Sign (ψy (i, j) ) where θ (i, j) =(I (1) (i, j) >>nb) - (I (0) (i, j) >>nb) 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. 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. 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. 4. Detailed Solutions The detailed solutions 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. 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 mode, such as merge mode or AMVP mode. (a) In one example, the IBC prediction may be regular IBC merge / AMVP prediction,  IBC-TM merge / AMVP prediction, RR-IBC merge / AMVP prediction, IBC-MBVD prediction, IBC-CIIP prediction, IBC-GPM prediction, or any other IBC 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, MMVD prediction, CIIP prediction, GPM prediction, or any other inter prediction. (d) In one example, the existing / signalled motion parameters of current block (e.g., B0)  may be MVB0LX (m) or BVB0LX (m) (e.g., as shown in Fig. 29A-Fig. 29D or Fig. 30A-Fig. 30D) , 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. 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. 29A-Fig. 29D) 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. 29A, which illustrates a uni-prediction traced direct vector that both guided vector and traced direct vector are block vector. ) . 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. 29B, which a uni-prediction traced direct vector that the guided vector is motion vector and the traced direct vector is block vector) , 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. 29C, which illustrates a uni-prediction traced direct vector that the guided vector is block vector and the traced direct vector is motion vector. ) . 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. 29D, which illustrates a uni-prediction traced direct vector that the guided vector is motion vector and the traced direct vector is motion vector. ) . 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. (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. 30A-Fig. 30D) 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. 30A, which illustrates a bi-prediction traced direct vector that both guided vector and traced direct vector are block vector. ) . 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. 30B, which illustrates a bi-prediction traced direct vector that the guided vector is motion vector and the traced direct vector is block vector) , 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. 30C, which a bi-prediction traced direct vector that the guided vector is block vector and the traced direct vector is motion vector) . 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. 30D, which a bi-prediction traced direct vector that the guided vector is motion vector and the traced direct vector is motion vector) . 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. 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. 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. 31A-Fig. 31B) 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. 31A-Fig. 31B) 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. 31A-Fig. 31B) , top-right (e.g., RT in  Fig. 31A-Fig. 31B) , center (e.g., Ctr in Fig. 31A-Fig. 31B) , bottom-left (e.g., LB in Fig. 31A-Fig. 31B) , and bottom-right (e.g., RB in Fig. 31A-Fig. 31B) positions of B1 may be checked for deriving the motion information. Fig. 31A illustrates the five positions in B1 for that the guided vector is motion vector, and Fig. 31B illustrates the five positions in B1 for that the guided vector is block vector. (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. 31A-Fig. 31B) , top-right (e.g.,  RT in Fig. 31A-Fig. 31B) , center (e.g., Ctr in Fig. 31A-Fig. 31B) , bottom-left (e.g., LB in Fig. 31A-Fig. 31B) , and bottom-right (e.g., RB in Fig. 31A-Fig. 31B) 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, 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. f. 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. 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. 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. 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.General information 9. 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. 10. A syntax element disclosed above may be coded with at least one context model. Or it may be bypass  coded. 11. 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. 12. 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. 13. 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. 14. 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. 15. 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. 16. 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.

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

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

[0100] Fig. 32 illustrates a flowchart of a method 3200 for video processing in accordance with some embodiments of the present disclosure. The method 3200 may be implemented during a conversion between a current video block of a video and a bitstream of the video. As shown in Fig. 32, the method 3200 starts at 3202 where a first prediction of the current block is obtained. In some example 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.

[0101] At 3204, in accordance with a determination that a first prediction mode is applied to the current block, at least one traced motion parameter of the current block is determined based on a motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block. By way of example rather than limitation, the first prediction mode may be referred to as auto-relocated multi-hypothesis prediction (ARMHP) mode or the like. In one example embodiment, the first prediction mode may be a coding mode. Alternatively, the first prediction mode may be a prediction candidate type. In a further example embodiment, the first prediction mode may be a sub-mode of a multi-hypothesis prediction (MHP) mode. For example, if non-equal weights in bi-prediction with CU-level weight (BCW) are selected in a bi-prediction mode, the first prediction mode may be applied of the current block. Alternatively, the first prediction mode may be only applied in a bi-prediction mode. In a further example embodiment, the first prediction mode may be applied in both a bi-prediction mode and a uni-prediction mode.

[0102] As used herein, a motion parameter may comprise a motion vector (MV) , a block vector (BV) , and / or the like. For example, the motion parameter of the current block may comprise an MV or a BV, the at least one motion parameter of the block pointed by the motion parameter of the current block may comprise an MV or a BV. The at least one traced motion parameter of the current block may comprise at least one traced MV or at least one traced BV.

[0103] In some example embodiments, the motion parameter of the current block may be indicated in the bitstream using an inter prediction mode, an intra block copy based (IBC-based) prediction mode, or an intra template matching prediction (IntraTMP) mode. Alternatively, the motion parameter of the current block may be determined using the inter prediction mode, the IBC-based prediction mode, or the IntraTMP mode. In one example embodiment, the IBC-based prediction mode may comprise 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, or an IBC with geometric partitioning mode (IBC-GPM) prediction mode, and / or the like. Alternatively, the IBC-based prediction mode may be different from an RR-IBC merge mode and an RR-IBC AMVP mode.

[0104] For example, the inter prediction mode may comprise an inter merge prediction mode, an inter AMVP prediction mode, an inter-TM merge prediction mode, an inter-TM AMVP prediction mode, a merge mode with motion vector difference (MMVD) prediction mode, a combined inter and intra prediction (CIIP) prediction mode, a GPM prediction mode, and / or the like.

[0105] At 3206, the one or more additional predictions of the current block are determined based on the at least one traced motion parameter. 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. In some example embodiments, all of the at least one traced motion parameter may be used to generate additional predictions. Alternatively, only a part of the at least one traced motion parameter may be used to generate additional predictions. This will be described in detail below.

[0106] At 3208, the conversion is performed based on the first prediction and the one or more additional predictions. 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.

[0107] In view of the above, the motion parameter (s) of one or more additional predictions used for MHP of the current block are determined based on the motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block. Compared with the conventional solution, the one or more additional predictions can be determined more efficiently, and thus the coding efficiency can be improved.

[0108] In some embodiments, in accordance with a determination that a first prediction mode is not applied to the current block, the conversion may be performed based on the first prediction.

[0109] In some embodiments, at 3204, in order to determine the at least one traced motion parameter of the current block, the motion parameter of the current block may be set as a guiding motion parameter, and the following tracing process is performed iteratively: determining a traced motion parameter of the current block based on the guiding motion parameter and at least one motion parameter of a reference block pointed by the guiding motion parameter; and setting the determined traced motion parameter as the guiding motion parameter. That is, in the initial iteration, the initial motion parameter of the current block is used as a guiding motion parameter, and in the following iterations, the traced motion parameter from the previous iteration is used as the guiding motion parameter. 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 motion parameters have been generated.

[0110] In some embodiments, the motion parameter of the current block may comprise 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, the motion vector or the block vector of the current block may be indicated in the bitstream, and m may be equal to 0. In this case, MVB0LX (0) represents the initial MV of the current block, and BVB0LX (0) represents the initial BV of the current block.

[0111] In some embodiments, the reference block is uni-predicted. The at least one motion parameter of the reference block comprises a motion vector MVB1LY or a block vector BVB1LY, where B1 represents the reference block, Y represents an RPL index. The motion vector MVB1LY and / or the block vector BVB1LY may also be referred to as a traced direct vector or a tracing direct vector. The at least one traced motion parameter of the current block comprises a traced motion vector MVB0LM (m+1) or a traced block vector BVB0LM (m+1) , where M represents an RPL index. The traced motion vector MVB0LM (m+1) or the traced block vector BVB0LM (m+1) may also be referred to as a traced vector.

[0112] In some embodiments, if a set of motion parameters is stored associated with a block at a position in a frame of the video, the block possesses the set of motion parameters and the set of motion parameters may be available. In other words, this set of motion parameters may be used for determining the traced motion parameter.

[0113] In some embodiments, if the guiding motion parameter of the current block comprises a BV (a.k.a., a guiding BV or a guided BV) and the at least one motion parameter of the reference block may comprise a BV (a.k.a., a tracing direct BV or a traced direct BV) , the at least one traced motion parameter of the current block may comprise a traced BV, and the traced BV may be determined to be a vector sum of the BV of the current block and the BV of the reference block. For purposed of illustration rather than limitation, Fig. 29A illustrates a schematic diagram of this case. As shown in Fig. 29A, the traced BV BVB0LM (m+1) is equal to a vector sum of the guiding BV BVB0LX (m) and the tracing direct BV BVB1LY.

[0114] In some embodiments, if the guiding motion parameter of the current block comprises an MV (a.k.a., a guiding MV or a guided MV) and the at least one motion parameter of the reference block comprises a BV (a.k.a., a tracing direct BV or a traced direct BV) , the at least one traced motion parameter of the current block may comprise a traced MV. The traced MV may be determined to be a vector sum of the MV of the current block and the BV of the reference block, and the traced MV points to a picture pointed by the MV of the current block. For purposed of illustration rather than limitation, Fig. 29B illustrates a schematic diagram of this case. As shown in Fig. 29B, the traced MV MVB0LM (m+1) is equal to a vector sum of the guiding MV MVB0LX (m) and the tracing direct BV BVB1LY.

[0115] In some embodiments, if the at least one motion parameter of the reference block comprises an MV (a.k.a., a tracing direct MV or a traced direct MV) , the at least one traced motion parameter of the current block may comprise a traced MV determined based on the MV of the reference block.

[0116] In some embodiments, if the guiding motion parameter of the current block comprises a BV (a.k.a., a guiding BV or a guided BV) and the at least one motion parameter of the reference block comprises an MV (a.k.a., a tracing direct MV or a traced direct MV) , the at least one traced motion parameter of the current block may comprise a traced MV. The traced MV may be determined to be a vector sum of the BV of the current block and the MV of the reference block, and the traced MV points to a first picture pointed by the MV of the reference block. For purposed of illustration rather than limitation, Fig. 29C illustrates a schematic diagram of this case. As shown in Fig. 29C, the traced MV MVB0LM (m+1) is equal to a vector sum of the guiding BV BVB0LX (m) and the tracing direct MV MVB1LY.

[0117] In some embodiments, if the guiding motion parameter of the current block comprises an MV (a.k.a., a guiding MV or a guided MV) and the at least one motion parameter of the reference block comprises an MV (a.k.a., a tracing direct MV or a traced direct MV) , the at least one traced motion parameter of the current block may comprise a traced MV. The traced MV may be determined to be a vector sum of the MV of the current block and the MV of the reference block, and the traced MV points to a first picture pointed by the MV of the reference block. For purposed of illustration rather than limitation, Fig. 29D illustrates a schematic diagram of this case. As shown in Fig. 29D, the traced MV MVB0LM (m+1) is equal to a vector sum of the guiding MV MVB0LX (m) and the tracing direct MV MVB1LY.

[0118] In some embodiments, if the first picture is in an RPL of the current block, a reference picture index corresponding to the traced MV may be an index of the first picture in the RPL of the current block. In some embodiments, if the first picture is not in an RPL of the current block, the traced MV may be unavailable. For example, the traced MV may be discarded and not used in the subsequent process.

[0119] In some embodiments, if the first picture is not in an RPL of the current block, the traced MV may be scaled based on a picture order count (POC) distance between the first picture and a current picture comprising the current block and a POC distance between the current picture and a second picture in an RPL of the current block, to obtain a scaled traced MV pointing to the second picture. By way of example rather than limitation, the second picture may be predefined. The reference picture index corresponding to the scaled traced MV may be an index of the second picture in the RPL of the current block.

[0120] In some further embodiments, the guiding motion parameter of the current block may comprise a BV or an MV. If a first picture pointed by the MV of the reference block is not in an RPL of the current block, the MV of the reference block may be scaled based on a POC distance between the first picture and a picture comprising the reference block and a POC distance between a second picture in an RPL of the current block and the picture comprising the reference block, to obtain a scaled MV pointing to the second picture. By way of example rather than limitation, the second picture may be predefined. The traced MV may be determined to be a vector sum of the BV or the MV of the current block and the scaled MV, and a reference picture index corresponding to the traced MV may be an index of the second picture in the RPL of the current block.

[0121] In some embodiments, a precision of the guiding motion parameter of the current block and a precision of the at least one motion parameter of the reference block may be aligned with each other before summing the guiding motion parameter of the current block and the at least one motion parameter of the reference block. In a case where the guiding motion parameter of the current block comprises a BV and the at least one motion parameter of the reference block comprises an MV, the BV may be left shifted or right shifted to align with a precision of the MV. In a case where the guiding motion parameter of the current block comprises an MV and the at least one motion parameter of the reference block comprises a BV, the BV may be left shifted or right shifted to align with a precision of the MV. Moreover, the at least one traced motion parameter may be determined to be a vector sum of the MV and the shifted BV.

[0122] In some embodiments, the reference block may be bi-predicted, the at least one motion parameter of the reference block may comprise two motion vectors (MVB1L0, MVB1L1) or two block vectors (BVB1L0, BVB1L1) . The at least one traced motion parameter of the current block may comprise two traced motion vectors (MVB0LM (m+1) , MVB0LN (m+1) ) or two traced block vectors (BVB0LM (m+1) , BVB0LN (m+1) ) , where B 1 represents the reference block, M represents an RPL index, and N represents an RPL index. In one example embodiment, a sum of M and N may be equal to 1. In this case, the two traced motion vectors (MVB0LM (m+1) , MVB0LN (m+1) ) or the two traced block vectors (BVB0LM (m+1) , BVB0LN (m+1) ) may constitute one bi-direction vector of the current block. In another example embodiment, M may be equal to N. In this case, the two traced motion vectors (MVB0LM (m+1) , MVB0LN (m+1) ) or the two traced block vectors (BVB0LM (m+1) , BVB0LN (m+1) ) may constitute two uni-direction vectors. In a further example embodiment, M may be non-equal to N.

[0123] In some embodiments, if the guiding motion parameter of the current block comprises a BV (a. k. a., a guiding BV or a guided BV) and the at least one motion parameter of the reference block comprises a first BV (a.k.a., a first tracing direct BV or a first traced direct BV) and a second BV (a.k.a., a second tracing direct BV or a second traced direct BV) , the at least one traced motion parameter of the current block may comprise a first traced BV and a second traced BV. The first traced BV may be determined to be a vector sum of the BV of the current block and the first BV of the reference block, and the second traced BV may be determined to be a vector sum of the BV of the current block and the second BV of the reference block. For purposed of illustration rather than limitation, Fig. 30A illustrates a schematic diagram of this case. As shown in Fig. 30A, the first traced BV BVB0LM (m+1) is equal to a vector sum of the guiding BV BVB0LX (m) and the first tracing direct BV BVB1L0, and the second traced BV BVB0LN (m+1) is equal to a vector sum of the guiding BV BVB0LX (m) and the second tracing direct BV BVB1L1.

[0124] In some embodiments, if the guiding motion parameter of the current block comprises an MV (a.k. a., a guiding MV or a guided MV) and the at least one motion parameter of the reference block comprises a first BV (a. k. a., a first tracing direct BV or a first traced direct BV) and a second BV (a. k. a., a second tracing direct BV or a second traced direct BV) , the at least one traced motion parameter of the current block may comprise a first traced MV and a second traced MV. The first traced MV may be determined to be a vector sum of the MV of the current block and the first BV of the reference block, and the second traced MV may be determined to be a vector sum of the MV of the current block and the second BV of the reference block. In one example embodiment, the first traced MV and the second traced MV may point to a reference picture corresponding to the MV of the current block, e.g., a reference picture pointed by the guiding MV. For purposed of illustration rather than limitation, Fig. 30B illustrates a schematic diagram of this case. As shown in Fig. 30B, the first traced MV MVB0LM (m+1) is equal to a vector sum of the guiding MV MVB0LX (m) and the first tracing direct BV BVB1L0, and the second traced MV MVB0LN (m+1) is equal to a vector sum of the guiding MV MVB0LX (m) and the second tracing direct BV BVB1L1.

[0125] In some embodiments, if the at least one motion parameter of the reference block comprises a first MV (a.k.a., a first tracing direct MV or a first traced direct MV) and a second MV (a.k.a., a second tracing direct MV or a second traced direct MV) , the at least one traced motion parameter of the current block may comprise a first traced MV and a second traced MV. The first traced MV may be determined based on the first MV of the reference block, and the second traced MV may be determined based on the second MV of the reference block.

[0126] In some embodiments, if the guiding motion parameter of the current block comprises a BV (a.k.a., a guiding BV or a guided BV) and the at least one motion parameter of the reference block comprises a first MV (a.k.a., a first tracing direct MV or a first traced direct MV) and a second MV (a.k.a., a second tracing direct MV or a second traced direct MV) , the at least one traced motion parameter of the current block may comprise a first traced MV and a second traced MV. The first traced MV may be determined to be a vector sum of the BV of the current block and the first MV of the reference block, and the first traced MV points to a first picture pointed by the first MV of the reference block. In addition, the second traced MV may be determined to be a vector sum of the BV of the current block and the second MV of the reference block, and the second traced MV points to a second picture pointed by the second MV of the reference block. For purposed of illustration rather than limitation, Fig. 30C illustrates a schematic diagram of this case. As shown in Fig. 30C, the first traced MV MVB0LM (m+1) is equal to a vector sum of the guiding BV BVB0LX (m) and the first tracing direct MV MVB1L0, and the second traced MV MVB0LN (m+1) is equal to a vector sum of the guiding BV BVB0LX (m) and the second tracing direct MV MVB1L1.

[0127] In some embodiments, if the guiding motion parameter of the current block comprises an MV (a.k.a., a guiding MV or a guided MV) and the at least one motion parameter of the reference block comprises a first MV (a.k.a., a first tracing direct MV or a first traced direct MV) and a second MV (a.k.a., a second tracing direct MV or a second traced direct MV) , the at least one traced motion parameter of the current block may comprise a first traced MV and a second traced MV. The first traced MV may be determined to be a vector sum of the MV of the current block and the first MV of the reference block, and the first traced MV points to a first picture pointed by the first MV of the reference block. In addition, the second traced MV may be determined to be a vector sum of the MV of the current block and the second MV of the reference block, and the second traced MV points to a second picture pointed by the second MV of the reference block. For purposed of illustration rather than limitation, Fig. 30D illustrates a schematic diagram of this case. As shown in Fig. 30D, the first traced MV MVB0LM (m+1) is equal to a vector sum of the guiding MV MVB0LX (m) and the first tracing direct MV MVB1L0, and the second traced MV MVB0LN (m+1) is equal to a vector sum of the guiding MV MVB0LX (m) and the second tracing direct MV MVB1L1.

[0128] In some embodiments, if the first picture is in an RPL of the current block, a reference picture index corresponding to the first traced MV may be an index of the first picture in the RPL of the current block. If the first picture is not in an RPL of the current block, the first traced MV may be unavailable.

[0129] In some alternative embodiments, if the first picture is not in an RPL of the current block, the first traced MV may be scaled based on a POC distance between the first picture and a current picture comprising the current block and a POC distance between the current picture and a third picture in an RPL of the current block, to obtain a scaled first traced MV pointing to the third picture. By way of example rather than limitation, the third picture may be predefined. A reference picture index corresponding to the scaled first traced MV may be an index of the third picture in the RPL of the current block.

[0130] In some further embodiments, the guiding motion parameter of the current block may comprise a BV or an MV. If a first picture pointed by the first MV of the reference block is not in an RPL of the current block, the first MV may be scaled based on a POC distance between the first picture and a picture comprising the reference block and a POC distance between a third picture in an RPL of the current block and the picture comprising the reference block, to obtain a scaled first MV pointing to the third picture. By way of example rather than limitation, the third picture may be predefined. The first traced MV may be determined to be a vector sum of the BV or the MV of the current block and the scaled first MV, and a reference picture index corresponding to the first traced MV may be an index of the third picture in the RPL of the current block.

[0131] In some embodiments, if the second picture is in an RPL of the current block, a reference picture index corresponding to the second traced MV may be an index of the second picture in the RPL of the current block. If the second picture is not in an RPL of the current block, the second traced MV may be unavailable.

[0132] In some alternative embodiments, if the second picture is not in an RPL of the current block, the second traced MV may be scaled based on a POC distance between the second picture and a current picture comprising the current block and a POC distance between the current picture and a fourth picture in an RPL of the current block, to obtain a scaled second traced MV pointing to the fourth picture. By way of example rather than limitation, the fourth picture may be predefined. A reference picture index corresponding to the scaled second traced MV may be an index of the fourth picture in the RPL of the current block.

[0133] In some further embodiments, the guiding motion parameter of the current block may comprise a BV or an MV. If a second picture pointed by the second MV of the reference block is not in an RPL of the current block, the second MV may be scaled based on a POC distance between the second picture and a picture comprising the reference block and a POC distance between a fourth picture in an RPL of the current block and the picture comprising the reference block, to obtain a scaled second MV pointing to the fourth picture. By way of example rather than limitation, the fourth picture may be predefined. The second traced MV may be determined to be a vector sum of the BV or the MV of the current block and the scaled second MV, and a reference picture index corresponding to the second traced MV may be an index of the fourth picture in the RPL of the current block.

[0134] In some embodiments, a maximum trace depth (e.g., denoted as Max) for the at least one traced motion parameter may be predetermined. By way of example rather than limitation, the maximum trace depth may be equal to a predetermined value, such as 1, 5, or the like.

[0135] In some embodiments, all available traced motion parameters among the at least one traced motion parameter may be used for determining the one or more additional predictions of the current block. For example, the number of the one or more additional predictions may be equal to the number of the available traced motion parameters.

[0136] Alternatively, a set of available traced motion parameters may be selected from the at least one traced motion parameter, and the set of available traced motion parameters may be used for determining the one or more additional predictions of the current block. For example, the number of the one or more additional predictions may be equal to the number of available traced motion parameters of the set of available traced motion parameters. In one example embodiment, the set of available traced motion parameters may comprise available traced motion parameters with top G minimum trace depth, and G represents the number of available traced motion parameters of the set of available traced motion parameters. In another example embodiment, the set of available traced motion parameters may comprise available traced motion parameters with top G minimum template matching costs, and G represents the number of available traced motion parameters of the set of available traced motion parameters. It should be noted that the set of available traced motion parameters may be selected in any other suitable manner. The scope of the present disclosure is not limited in this respect.

[0137] In some embodiments, if the at least one traced motion parameter comprises a traced block vector, the traced block vector shall be in an IBC search range or an IBC reference range.

[0138] In some embodiments, a first traced motion parameter among the at least one traced motion parameter of the current block or a first motion parameter among the at least one motion parameter of the reference block points to a first picture, and the first picture may be checked to determine whether the first picture is a reference picture of the current block. It should be noted that in a case where the current block is coded with an IBC prediction mode or an IntraTMP mode, a current picture comprising the current block may be treated as a reference picture of the current block.

[0139] In some embodiments, in accordance with a determination that the first picture is not a reference picture of the current block, one or more of the following operations may be performed: refraining from using the first traced motion parameter or the first motion parameter, adding the first picture into an RPL of the current block, or scaling the first traced motion parameter or the first motion parameter, so as to point to a reference picture of the current block.

[0140] In some embodiments, at least one position in the reference block may be checked to determine the at least one motion parameter of the reference block. In one example embodiment, the at least one position may comprise only a center position. For example, assuming a top-left position within a block is (0, 0) , the center position of the block may be one of the following: (W>>1, H>>1) , ( (W>>1) -1, H>>1) , (W>>1, (H>>1) -1) , or ( (W>>1) -1, (H>>1) -1) , where W represents a width of the block, H represents a heigh of the block, and >> represents right shift operation. In this case, the motion parameter for the center position may be determined as the motion parameter of the reference block. In another example embodiment, the at least one position may comprise only a top-left position. In this case, the motion parameter for the top-left position may be determined as the motion parameter of the reference block.

[0141] In a further example embodiment, the at least one position may comprise a top-left position, a top-right position, a center position, a bottom-left position, a bottom-right position, and / or one or more predetermined other positions. For example, the at least one position may comprise a top-left position, a top-right position, a center position, a bottom-left position, and a bottom-right position. In this case, a checking order of these positions 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, and the bottom-right position is to be checked at last.

[0142] In some embodiments, all available motion information from the at least one position may be used for determining the at least one traced motion parameter of the current block. For example, if more than one position has the same motion parameter, the motion parameter of only one position is used as the motion parameter of the reference block. If all of the above-mentioned five positions have different motion parameters, all motion parameters of the five positions are used as the motion parameters of the reference block. In some alternative embodiments, the first available motion information from one checked position may be used for determining the at least one traced motion parameter of the current block.

[0143] In some embodiments, if a motion grid covering a first position of the at least one position is available and the motion grid has motion information, motion information from the first position may be used for determining the at least one traced motion parameter of the current block.

[0144] In some embodiments, at 3208, a target prediction of the current block is determined based on the first prediction and the one or more additional predictions. Moreover, the conversion is performed based on the target prediction. In some embodiments, the target prediction may be determined by iteratively accumulating the first prediction and the one or more additional predictions. By way of example rather than limitation, an accumulating result for the n-th accumulating iteration may be determined as follows: pn= (1-αn) pn-1+αnhn where pn represents an accumulating result for the n-th accumulating iteration, αn represents a weighting  factor, hn represents an addition prediction of the current block determined based on the n-th traced motion parameter of the current block, pn-1 represents the accumulating result for the (n-1) -th accumulating iteration, and p0 represents the first prediction. n is in a range from 1 to num_it, inclusive, where num_it represents the total number of iterations.

[0145] In some embodiments, a weighting factor used in the accumulation may be predetermined. Alternatively, the weighting factor may be indicated in the bitstream. For example, the weighting factor may be selected from a set of weights, e.g., {1 / 4, -1 / 8} . It should be understood that the specific values recited herein are intended to be examples rather than limiting the scope of the present disclosure.

[0146] In some embodiments, the target prediction may be determined based on a weighted sum of the first prediction and the one or more additional predictions. By way of example rather than limitation, the target prediction may be determined as follows: where PN+1 represents the target prediction, N represents the number of the one or more additional  predictions, P0 represents the first prediction, Pi with i may be equal to 1, 2, …, N represents an addition prediction of the current block determined based on the i-th traced motion parameter of the current block, and wi represents a weighting factor for the prediction Pi.

[0147] In some embodiments, at least one weighting factor used for determining the weighted sum may be predetermined. For example, all weighting factors used for determining the weighted sum may be the same and equal to 1 /  (N+1) , and N represents the number of the one or more additional predictions. In some alternative embodiments, all weighting factors for the one or more additional predictions may be the same and smaller than a weighting factor for the first prediction.

[0148] In some further embodiments, the one or more additional predictions may comprise a first additional prediction determined based on a first traced motion parameter and a second additional prediction determined based on a second traced motion parameter. If a trace depth of the first traced motion parameter is larger than a trace depth of the second traced motion parameter, a weighting factor for the first additional prediction may be smaller than a weighting factor for the second additional prediction.

[0149] In some further embodiments, the one or more additional predictions may comprise a first additional prediction determined based on a first traced motion parameter pointing to a fifth picture and a second additional prediction determined based on a second traced motion parameter pointing to a sixth picture. If a POC distance between the fifth picture and a current picture comprising the current block is larger than a POC distance between the sixth picture and the current picture, a weighting factor for the first additional prediction may be smaller than a weighting factor for the second additional prediction.

[0150] In some embodiments, at least one weighing factor for determining the weighted sum is determined based on the following using a decomposition scheme: reference templates corresponding to the first prediction and the one or more additional predictions, and a current template for the current block. For example, this decomposition scheme may be the same as the one used in CCCM. A reference template corresponding to the first prediction may be located by an MV or a BV used to generate the first prediction. Similarly, a reference template corresponding to an additional prediction may be located by a traced MV or a traced BV used to generate the additional prediction. By way of example rather than limitation, the first prediction mode comprise M1 additional predictions of the current block determined based on M1 traced motion parameters and M2 original predictions of the current block determined based on M2 guiding motion parameters, where each of M1 and M2 is an integer. The weighting factor for each prediction may be determined based on reference templates located by the M1 traced motion parameters and the M2 guiding motion parameters and a current template for the current block using the decomposition scheme. For example, a set of weighting factors may be derived with a purpose of minimizing a difference between the current template and a weighted sum of all the reference templates determined with the set of weighting factors.

[0151] In some embodiments, the weighting factor wi may be determined based on a template matching cost of the at least one traced motion parameter. By way of example rather than limitation, the weighting factor wi may be determined as follows: where TMCi represents the template matching cost for the i-th prediction. In some embodiments, a  division operation may be implemented with an integer look-up table (LUT) , thereby the implementation cost can be reduced. For example, the template matching cost may be measured with sum of absolute differences (SAD) , sum of squared differences (SSD) , or the like.

[0152] In some embodiments, the weighting factor wi may be determined based on a linear function of a sample position (x, y) in the current block. By way of example rather than limitation, the weighting factor wi may be determined as follows: where parameters ai, bi, and ci may be determined based on reference templates corresponding to the  first prediction and the one or more additional predictions and a current template for the current block by using a mean-square error (MSE) minimization solver. By way of example rather than limitation, the first prediction mode comprise M1 additional predictions of the current block determined based on M1 traced motion parameters and M2 original predictions of the current block determined based on M2 guiding motion parameters, where each of M1 and M2 is an integer. The parameters ai, bi, and ci may be determined based on reference templates located by the M1 traced motion parameters and the M2 guiding motion parameters and a current template for the current block using the MSE minimization solver.

[0153] In some embodiments, if the guiding motion parameter of the current block comprises an MV and a reference picture pointed by the MV is not a collocated picture of the current block, the tracing process may be terminated. Alternatively, if the guiding motion parameter of the current block comprises an MV and a reference picture pointed by the MV is not a collocated picture of the current block, the tracing process may be not terminated. In this case, motion information from the reference picture may be allowed to be used in the tracing process. Alternatively, the MV may be scaled to obtain a scaled MV pointing to a collocated picture of the current block.

[0154] In some embodiments, motion information of a collocated picture of the current block may be stored to be fetched. In some embodiments, the current block may be allowed to have a plurality of collocated pictures. For example, the number of the plurality of collocated pictures may be indicated in the bitstream. In some embodiments, information regarding whether the reference picture is a collocated picture of the current block may be indicated in the bitstream.

[0155] In some embodiments, the guiding motion parameter of the current block may comprise an MV. If 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 the reference block may be disallowed to be used for determining the traced motion parameter. Thereby, the one-CTU-row constraint can be ensured, and the buffer management can be simplified. Alternatively, if 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 the current CTU row, motion information of the reference block may be allowed to be used for determining the traced motion parameter. Thereby, the one-CTU-row constraint can be removed, and the coding flexibility can be improved.

[0156] In some embodiments, a syntax element in the bitstream may be binarized as one of the following: a flag, a fixed length code, an exponential Golomb (EG) code, a unary code, a truncated unary code, or a truncated binary code. Additionally or alternatively, the syntax element may be signed or unsigned. In some embodiments, a syntax element in the bitstream may be coded with at least one context model or bypass coded.

[0157] In some embodiments, a syntax element may be included in the bitstream based on at least one condition, and the at least one condition may comprise a condition that a function associated with the syntax element is applicable for the conversion.

[0158] In some embodiments, a syntax element may be included at one of the following: a block level, a sequence level, a group of pictures level, a picture level, a slice level, a tile group level. In addition, or alternatively, a syntax element may be included in one of the following: a coding structure of a coding tree unit (CTU) , a coding structure of a coding unit (CU) , a coding structure of a prediction unit (PU) , a coding structure of a transform unit (TU) , a coding structure of a coding tree block (CTB) , a coding structure of a coding block (CB) , a coding structure of a transform block (TB) , a coding structure of a prediction block (PB) , a sequence header, a picture header, a sequence parameter set (SPS) , a video parameter set (VPS) , a decoded parameter set (DPS) , decoding capability information (DCI) , a picture parameter set (PPS) , an adaptation parameter set (APS) , a slice header or a tile group header.

[0159] In some embodiments, a block may be one of the following: a color component, a sub-picture, a slice, a tile, a coding tree unit (CTU) , a CTU row, groups of CTU, a coding unit (CU) , a prediction unit (PU) , a transform unit (TU) , a coding tree block (CTB) , a coding block (CB) , a transform block (TB) , a prediction block (PB) , a block, a sub-block of a block, a sub-region within a block, or a region containing more than one sample or pixel.

[0160] In some embodiments, whether to and / or how to apply the method may be indicated in the bitstream at one of the following: a sequence level, a group of pictures level, a picture level, a slice level, a tile group level, a sequence header, a picture header, an SPS, a VPS, a DPS, DCI, a PPS, an APS, a slice header or a tile group header.

[0161] In some embodiments, whether to and / or how to apply the method may be indicated in the bitstream at one of the following: a prediction block (PB) , a transform block (TB) , a coding block (CB) , a prediction unit (PU) , a transform unit (TU) , a coding unit (CU) , a virtual pipeline data unit (VPDU) , a coding tree unit (CTU) , a CTU row, a slice, a tile, a subpicture, or a region containing more than one sample or pixel.

[0162] In some embodiments, whether to and / or how to apply the method may be based on coded information associated with the current block. By way of example rather than limitation, the coded information may comprise a block size, a color format, a single tree partitioning, a dual tree partitioning, a color component, a slice type, a picture type, and / or the like.

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

[0164] 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 prediction of a current block of the video; in accordance with a determination that a first prediction mode is applied to the current block, determining at least one traced motion parameter of the current block based on a motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block; determining one or more additional predictions of the current block based on the at least one traced motion parameter; and generating the bitstream based on the first prediction and the one or more additional predictions.

[0165] 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 prediction of a current block of the video; in accordance with a determination that a first prediction mode is applied to the current block, determining at least one traced motion parameter of the current block based on a motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block; determining one or more additional predictions of the current block based on the at least one traced motion parameter; generating the bitstream based on the first prediction and the one or more additional predictions; and storing the bitstream in a non-transitory computer-readable recording medium.

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

[0167] 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 prediction of the current block; in accordance with a determination that a first prediction mode is applied to the current block, determining at least one traced motion parameter of the current block based on a motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block; determining one or more additional predictions of the current block based on the at least one traced motion parameter; and performing the conversion based on the first prediction and the one or more additional predictions.

[0168] Clause 2. The method of clause 1, wherein a motion parameter comprises a motion vector (MV) or a block vector (BV) , and / or the first prediction mode is an auto-relocated multi-hypothesis prediction (ARMHP) mode.

[0169] Clause 3. The method of any of clauses 1-2, wherein the motion parameter of the current block is indicated in the bitstream using an inter prediction mode, an intra block copy based (IBC-based) prediction mode, or an intra template matching prediction (IntraTMP) mode, or wherein the motion parameter of the current block is determined using the inter prediction mode, the IBC-based prediction mode, or the IntraTMP mode.

[0170] Clause 4. The method of clause 3, 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, or an IBC with geometric partitioning mode (IBC-GPM) prediction mode, or wherein the IBC-based prediction mode is different from an RR-IBC merge mode and an RR-IBC AMVP mode.

[0171] Clause 5. The method of any of clauses 3-4, 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 merge mode with motion vector difference (MMVD) prediction mode, a combined inter and intra prediction (CIIP) prediction mode, or a GPM prediction mode.

[0172] Clause 6. The method of any of clauses 1-5, wherein determining the at least one traced motion parameter of the current block comprises: setting the motion parameter of the current block as a guiding motion parameter; and performing the following tracing process iteratively: determining a traced motion parameter of the current block based on the guiding motion parameter and at least one motion parameter of a reference block pointed by the guiding motion parameter; and setting the determined traced motion parameter as the guiding motion parameter.

[0173] Clause 7. The method of clause 6, wherein the motion parameter 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.

[0174] Clause 8. The method of clause 7, wherein the motion vector or the block vector of the current block is indicated in the bitstream, and m is equal to 0.

[0175] Clause 9. The method of any of clauses 7-8, wherein the reference block is uni-predicted, the at least one motion parameter of the reference block comprises a motion vector MVB1LY or a block vector BVB1LY, and the at least one traced motion parameter of the current block comprises a traced motion vector MVB0LM (m+1) or a traced block vector BVB0LM (m+1) , wherein B1 represents the reference block, Y represents an RPL index, and M represents an RPL index.

[0176] Clause 10. The method of any of clauses 7-9, wherein if a set of motion parameters is stored associated with a block at a position in a frame of the video, the block possesses the set of motion parameters and the set of motion parameters is available.

[0177] Clause 11. The method of any of clauses 6-10, wherein if the guiding motion parameter of the current block comprises a BV and the at least one motion parameter of the reference block comprises a BV, the at least one traced motion parameter of the current block comprises a traced BV, and the traced BV is determined to be a vector sum of the BV of the current block and the BV of the reference block.

[0178] Clause 12. The method of any of clauses 6-11, wherein if the guiding motion parameter of the current block comprises an MV and the at least one motion parameter of the reference block comprises a BV, the at least one traced motion parameter of the current block comprises a traced MV, the traced MV is determined to be a vector sum of the MV of the current block and the BV of the reference block, and the traced MV points to a picture pointed by the MV of the current block.

[0179] Clause 13. The method of any of clauses 6-12, wherein if the at least one motion parameter of the reference block comprises an MV, the at least one traced motion parameter of the current block comprises a traced MV determined based on the MV of the reference block.

[0180] Clause 14. The method of any of clauses 6-13, wherein if the guiding motion parameter of the current block comprises a BV and the at least one motion parameter of the reference block comprises an MV, the at least one traced motion parameter of the current block comprises a traced MV, the traced MV is determined to be a vector sum of the BV of the current block and the MV of the reference block, and the traced MV points to a first picture pointed by the MV of the reference block.

[0181] Clause 15. The method of any of clauses 6-14, wherein if the guiding motion parameter of the current block comprises an MV and the at least one motion parameter of the reference block comprises an MV, the at least one traced motion parameter of the current block comprises a traced MV, the traced MV is determined to be a vector sum of the MV of the current block and the MV of the reference block, and the traced MV points to a first picture pointed by the MV of the reference block.

[0182] Clause 16. The method of any of clauses 14-15, wherein if the first picture is in an RPL of the current block, a reference picture index corresponding to the traced MV is an index of the first picture in the RPL of the current block.

[0183] Clause 17. The method of any of clauses 14-16, wherein if the first picture is not in an RPL of the current block, the traced MV is unavailable.

[0184] Clause 18. The method of any of clauses 14-16, wherein if the first picture is not in an RPL of the current block, the traced MV is scaled based on a picture order count (POC) distance between the first picture and a current picture comprising the current block and a POC distance between the current picture and a second picture in an RPL of the current block to obtain a scaled traced MV pointing to the second picture, and a reference picture index corresponding to the scaled traced MV is an index of the second picture in the RPL of the current block.

[0185] Clause 19. The method of clause 13, wherein the guiding motion parameter of the current block comprises a BV or an MV, if a first picture pointed by the MV of the reference block is not in an RPL of the current block, the MV of the reference block is scaled based on a POC distance between the first picture and a picture comprising the reference block and a POC distance between a second picture in an RPL of the current block and the picture comprising the reference block to obtain a scaled MV pointing to the second picture, the traced MV is determined to be a vector sum of the BV or the MV of the current block and the scaled MV, and a reference picture index corresponding to the traced MV is an index of the second picture in the RPL of the current block.

[0186] Clause 20. The method of any of clauses 18-19, wherein the second picture is predefined.

[0187] Clause 21. The method of any of clauses 6-20, wherein a precision of the guiding motion parameter of the current block and a precision of the at least one motion parameter of the reference block are aligned with each other before summing the guiding motion parameter of the current block and the at least one motion parameter of the reference block.

[0188] Clause 22. The method of clause 21, wherein if the guiding motion parameter of the current block comprises a BV and the at least one motion parameter of the reference block comprises an MV, the BV is left shifted or right shifted to align with a precision of the MV, or if the guiding motion parameter of the current block comprises an MV and the at least one motion parameter of the reference block comprises a BV, the BV is left shifted or right shifted to align with a precision of the MV.

[0189] Clause 23. The method of clause 22, wherein the at least one traced motion parameter is determined to be a vector sum of the MV and the shifted BV.

[0190] Clause 24. The method of any of clauses 7-8, wherein the reference block is bi-predicted, the at least one motion parameter of the reference block comprises two motion vectors (MVB1L0, MVB1L1) or two block vectors (BVB1L0, BVB1L1) , and the at least one traced motion parameter of the current block comprises two traced motion vectors (MVB0LM (m+1) , MVB0LN (m+1) ) or two traced block vectors (BVB0LM (m+1) , BVB0LN (m+1) ) , wherein B1 represents the reference block, M represents an RPL index, and N represents an RPL index.

[0191] Clause 25. The method of clause 24, wherein a sum of M and N is equal to 1, or wherein M is equal to N, or wherein M is non-equal to N.

[0192] Clause 26. The method of any of clauses 6-25, wherein if the guiding motion parameter of the current block comprises a BV and the at least one motion parameter of the reference block comprises a first BV and a second BV, the at least one traced motion parameter of the current block comprises a first traced BV and a second traced BV, the first traced BV is determined to be a vector sum of the BV of the current block and the first BV of the reference block, and the second traced BV is determined to be a vector sum of the BV of the current block and the second BV of the reference block.

[0193] Clause 27. The method of any of clauses 6-26, wherein if the guiding motion parameter of the current block comprises an MV and the at least one motion parameter of the reference block comprises a first BV and a second BV, the at least one traced motion parameter of the current block comprises a first traced MV and a second traced MV, the first traced MV is determined to be a vector sum of the MV of the current block and the first BV of the reference block, and the second traced MV is determined to be a vector sum of the MV of the current block and the second BV of the reference block, the first traced MV and the second traced MV point to a reference picture corresponding to the MV of the current block.

[0194] Clause 28. The method of any of clauses 6-27, wherein if the at least one motion parameter of the reference block comprises a first MV and a second MV, the at least one traced motion parameter of the current block comprises a first traced MV and a second traced MV, the first traced MV is determined based on the first MV of the reference block, and the second traced MV is determined based on the second MV of the reference block.

[0195] Clause 29. The method of any of clauses 6-28, wherein if the guiding motion parameter of the current block comprises a BV and the at least one motion parameter of the reference block comprises a first MV and a second MV, the at least one traced motion parameter of the current block comprises a first traced MV and a second traced MV, the first traced MV is determined to be a vector sum of the BV of the current block and the first MV of the reference block, and the first traced MV points to a first picture pointed by the first MV of the reference block, the second traced MV is determined to be a vector sum of the BV of the current block and the second MV of the reference block, and the second traced MV points to a second picture pointed by the second MV of the reference block.

[0196] Clause 30. The method of any of clauses 6-29, wherein if the guiding motion parameter of the current block comprises an MV and the at least one motion parameter of the reference block comprises a first MV and a second MV, the at least one traced motion parameter of the current block comprises a first traced MV and a second traced MV, the first traced MV is determined to be a vector sum of the MV of the current block and the first MV of the reference block, and the first traced MV points to a first picture pointed by the first MV of the reference block, the second traced MV is determined to be a vector sum of the MV of the current block and the second MV of the reference block, and the second traced MV points to a second picture pointed by the second MV of the reference block.

[0197] Clause 31. The method of any of clauses 29-30, wherein if the first picture is in an RPL of the current block, a reference picture index corresponding to the first traced MV is an index of the first picture in the RPL of the current block, and / or wherein if the second picture is in an RPL of the current block, a reference picture index corresponding to the second traced MV is an index of the second picture in the RPL of the current block.

[0198] Clause 32. The method of any of clauses 29-31, wherein if the first picture is not in an RPL of the current block, the first traced MV is unavailable, and / or wherein if the second picture is not in an RPL of the current block, the second traced MV is unavailable.

[0199] Clause 33. The method of any of clauses 29-32, wherein if the first picture is not in an RPL of the current block, the first traced MV is scaled based on a POC distance between the first picture and a current picture comprising the current block and a POC distance between the current picture and a third picture in an RPL of the current block to obtain a scaled first traced MV pointing to the third picture, and a reference picture index corresponding to the scaled first traced MV is an index of the third picture in the RPL of the current block.

[0200] Clause 34. The method of clause 28, wherein the guiding motion parameter of the current block comprises a BV or an MV, if a first picture pointed by the first MV of the reference block is not in an RPL of the current block, the first MV is scaled based on a POC distance between the first picture and a picture comprising the reference block and a POC distance between a third picture in an RPL of the current block and the picture comprising the reference block to obtain a scaled first MV pointing to the third picture, the first traced MV is determined to be a vector sum of the BV or the MV of the current block and the scaled first MV, and a reference picture index corresponding to the first traced MV is an index of the third picture in the RPL of the current block.

[0201] Clause 35. The method of any of clauses 33-34, wherein the third picture is predefined.

[0202] Clause 36. The method of any of clauses 29-35, wherein if the second picture is not in an RPL of the current block, the second traced MV is scaled based on a POC distance between the second picture and a current picture comprising the current block and a POC distance between the current picture and a fourth picture in an RPL of the current block to obtain a scaled second traced MV pointing to the fourth picture, and a reference picture index corresponding to the scaled second traced MV is an index of the fourth picture in the RPL of the current block.

[0203] Clause 37. The method of clause 28, wherein the guiding motion parameter of the current block comprises a BV or an MV, if a second picture pointed by the second MV of the reference block is not in an RPL of the current block, the second MV is scaled based on a POC distance between the second picture and a picture comprising the reference block and a POC distance between a fourth picture in an RPL of the current block and the picture comprising the reference block to obtain a scaled second MV pointing to the fourth picture, the second traced MV is determined to be a vector sum of the BV or the MV of the current block and the scaled second MV, and a reference picture index corresponding to the second traced MV is an index of the fourth picture in the RPL of the current block.

[0204] Clause 38. The method of any of clauses 36-37, wherein the fourth picture is predefined.

[0205] Clause 39. The method of clause 24, wherein if the sum of M and N is equal to 1, the two traced motion vectors (MVB0LM (m+1) , MVB0LN (m+1) ) or the two traced block vectors (BVB0LM (m+1) , BVB0LN (m+1) ) constitutes one bi-direction vector of the current block.

[0206] Clause 40. The method of clause 24, wherein if M is equal to N, the two traced motion vectors (MVB0LM (m+1) , MVB0LN (m+1) ) or the two traced block vectors (BVB0LM (m+1) , BVB0LN (m+1) ) constitutes two uni-direction vectors of the current block.

[0207] Clause 41. The method of any of clauses 6-40, wherein a maximum trace depth for the at least one traced motion parameter is predetermined.

[0208] Clause 42. The method of clause 41, wherein the maximum trace depth is equal to 1.

[0209] Clause 43. The method of any of clauses 1-42, wherein all available traced motion parameters among the at least one traced motion parameter are used for determining the one or more additional predictions of the current block.

[0210] Clause 44. The method of clause 43, wherein the number of the one or more additional predictions is equal to the number of the available traced motion parameters.

[0211] Clause 45. The method of any of clauses 1-42, wherein a set of available traced motion parameters is selected from the at least one traced motion parameter, and the set of available traced motion parameters is used for determining the one or more additional predictions of the current block.

[0212] Clause 46. The method of clause 45, wherein the number of the one or more additional predictions is equal to the number of available traced motion parameters of the set of available traced motion parameters.

[0213] Clause 47. The method of any of clauses 45-46, wherein the set of available traced motion parameters comprises available traced motion parameters with top G minimum trace depth, and G represents the number of available traced motion parameters of the set of available traced motion parameters.

[0214] Clause 48. The method of any of clauses 45-46, wherein the set of available traced motion parameters comprises available traced motion parameters with top G minimum template matching costs, and G represents the number of available traced motion parameters of the set of available traced motion parameters.

[0215] Clause 49. The method of any of clauses 1-48, wherein if the at least one traced motion parameter comprises a traced block vector, the traced block vector is in an IBC search range or an IBC reference range.

[0216] Clause 50. The method of any of clauses 6-49, wherein a first traced motion parameter among the at least one traced motion parameter of the current block or a first motion parameter among the at least one motion parameter of the reference block points to a first picture, and the first picture is checked to determine whether the first picture is a reference picture of the current block.

[0217] Clause 51. The method of clause 50, wherein if the current block is coded with an IBC prediction mode or an IntraTMP mode, a current picture comprising the current block is treated as a reference picture of the current block.

[0218] Clause 52. The method of any of clauses 50-51, wherein in accordance with a determination that the first picture is not a reference picture of the current block, one or more of the following is performed: refraining from using the first traced motion parameter or the first motion parameter, adding the first picture into an RPL of the current block, or scaling the first traced motion parameter or the first motion parameter, so as to point to a reference picture of the current block.

[0219] Clause 53. The method of any of clauses 6-52, wherein at least one position in the reference block is checked to determine the at least one motion parameter of the reference block.

[0220] Clause 54. The method of clause 53, wherein the at least one position comprises only a center position.

[0221] Clause 55. The method of clause 54, wherein if a top-left position within a block is (0, 0) , the center position of the block is one of the following: (W>>1, H>>1) , ( (W>>1) -1, H>>1) , (W>>1, (H>>1) -1) , or ( (W>>1) -1, (H>>1) -1) , wherein W represents a width of the block, H represents a heigh of the block, and >> represents right shift operation.

[0222] Clause 56. The method of clause 53, wherein the at least one position comprises only a top-left position.

[0223] Clause 57. The method of clause 53, wherein the at least one position comprises at least one of the following: a top-left position, a top-right position, a center position, a bottom-left position, or a bottom-right position.

[0224] Clause 58. The method of clause 53, wherein the at least one position comprises a top-left position, a top-right position, a center position, a bottom-left position, and a bottom-right position.

[0225] Clause 59. The method of clause 58, 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, and the bottom-right position is to be checked at last.

[0226] Clause 60. The method of clause 53, wherein the at least one position comprises one or more predetermined positions.

[0227] Clause 61. The method of any of clauses 57-60, wherein all available motion information from the at least one position is used for determining the at least one traced motion parameter of the current block.

[0228] Clause 62. The method of any of clauses 57-60, wherein the first available motion information from one checked position is used for determining the at least one traced motion parameter of the current block.

[0229] Clause 63. The method of clause 53, wherein if a motion grid covering a first position of the at least one position is available and the motion grid has motion information, motion information from the first position is used for determining the at least one traced motion parameter of the current block.

[0230] Clause 64. The method of any of clauses 1-63, wherein if non-equal weights in bi-prediction with CU-level weight (BCW) are selected in a bi-prediction mode, the first prediction mode is applied of the current block.

[0231] Clause 65. The method of any of clauses 1-63, wherein the first prediction mode is only applied in a bi-prediction mode, or the first prediction mode is applied in both a bi-prediction mode and a uni-prediction mode.

[0232] Clause 66. The method of any of clauses 1-65, wherein performing the conversion comprises: determining a target prediction of the current block based on the first prediction and the one or more additional predictions; and performing the conversion based on the target prediction.

[0233] Clause 67. The method of clause 66, wherein the target prediction is determined by iteratively accumulating the first prediction and the one or more additional predictions.

[0234] Clause 68. The method of clause 67, wherein an accumulating result for the n-th accumulating iteration is determined as follows: pn= (1-αn) pn-1+αnhn wherein pn represents an accumulating result for the n-th accumulating iteration, αn represents a  weighting factor, hn represents an addition prediction of the current block determined based on the n-th traced motion parameter of the current block, pn-1 represents the accumulating result for the (n-1) -th accumulating iteration, and p0 represents the first prediction.

[0235] Clause 69. The method of any of clauses 67-68, wherein a weighting factor used in the accumulation is predetermined, or the weighting factor is indicated in the bitstream.

[0236] Clause 70. The method of clause 69, wherein the weighting factor is selected from a set of weights.

[0237] Clause 71. The method of clause 66, wherein the target prediction is determined based on a weighted sum of the first prediction and the one or more additional predictions.

[0238] Clause 72. The method of clause 71, wherein the target prediction is determined as follows: wherein PN+1 represents the target prediction, N represents the number of the one or more additional  predictions, P0 represents the first prediction, Pi with i being equal to 1, 2, …, N represents an addition prediction of the current block determined based on the i-th traced motion parameter of the current block, and wi represents a weighting factor for the prediction Pi.

[0239] Clause 73. The method of any of clauses 71-72, wherein at least one weighting factor used for determining the weighted sum is predetermined.

[0240] Clause 74. The method of any of clauses 71-72, wherein all weighting factors used for determining the weighted sum are the same and equal to 1 /  (N+1) , and N represents the number of the one or more additional predictions.

[0241] Clause 75. The method of any of clauses 71-72, wherein all weighting factors for the one or more additional predictions are the same and smaller than a weighting factor for the first prediction.

[0242] Clause 76. The method of any of clauses 71-72, wherein the one or more additional predictions comprise a first additional prediction determined based on a first traced motion parameter and a second additional prediction determined based on a second traced motion parameter, if a trace depth of the first traced motion parameter is larger than a trace depth of the second traced motion parameter, a weighting factor for the first additional prediction is smaller than a weighting factor for the second additional prediction.

[0243] Clause 77. The method of any of clauses 71-72, wherein the one or more additional predictions comprise a first additional prediction determined based on a first traced motion parameter pointing to a fifth picture and a second additional prediction determined based on a second traced motion parameter pointing to a sixth picture, if a POC distance between the fifth picture and a current picture comprising the current block is larger than a POC distance between the sixth picture and the current picture, a weighting factor for the first additional prediction is smaller than a weighting factor for the second additional prediction.

[0244] Clause 78. The method of any of clauses 71-72, wherein at least one weighing factor for determining the weighted sum is determined based on the following using a decomposition scheme: reference templates corresponding to the first prediction and the one or more additional predictions, and a current template for the current block.

[0245] Clause 79. The method of clause 72, wherein the weighting factor wi is determined based on a template matching cost of the at least one traced motion parameter.

[0246] Clause 80. The method of clause 79, wherein the weighting factor wi is determined as follows: wherein TMCi represents the template matching cost for the i-th prediction.

[0247] Clause 81. The method of clause 80, wherein a division operation is implemented with an integer look-up table (LUT) .

[0248] Clause 82. The method of any of clauses 79-81, wherein the template matching cost is measured with sum of absolute differences (SAD) .

[0249] Clause 83. The method of clause 72, wherein the weighting factor wi is determined based on a linear function of a sample position (x, y) in the current block.

[0250] Clause 84. The method of clause 83, wherein the weighting factor wi is determined as follows: wherein parameters ai, bi, and ci are determined based on reference templates corresponding to the first  prediction and the one or more additional predictions and a current template for the current block by using a mean-square error (MSE) minimization solver.

[0251] Clause 85. The method of any of clauses 6-84, wherein if the guiding motion parameter of the current block comprises an MV and a reference picture pointed by the MV is not a collocated picture of the current block, the tracing process is terminated.

[0252] Clause 86. The method of any of clauses 6-85, wherein if the guiding motion parameter of the current block comprises an MV and a reference picture pointed by the MV is not a collocated picture of the current block, the tracing process is not terminated.

[0253] Clause 87. The method of clause 86, wherein motion information from the reference picture is allowed to be used in the tracing process.

[0254] Clause 88. The method of clause 86, wherein the MV is scaled to obtain a scaled MV pointing to a collocated picture of the current block.

[0255] Clause 89. The method of any of clauses 85-88, wherein motion information of a collocated picture of the current block is stored to be fetched.

[0256] Clause 90. The method of any of clauses 85-89, wherein the current block is allowed to have a plurality of collocated pictures.

[0257] Clause 91. The method of clause 90, wherein the number of the plurality of collocated pictures is indicated in the bitstream.

[0258] Clause 92. The method of any of clauses 85-91, wherein information regarding whether the reference picture is a collocated picture of the current block is indicated in the bitstream.

[0259] Clause 93. The method of any of clauses 6-92, wherein the guiding motion parameter of the current block comprises an MV, and if 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 the reference block is disallowed to be used for determining the traced motion parameter.

[0260] Clause 94. The method of any of clauses 6-92, wherein the guiding motion parameter of the current block comprises an MV, and if 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 current CTU row comprising the current block, motion information of the reference block is allowed to be used for determining the traced motion parameter.

[0261] Clause 95. The method of any of clauses 1-94, wherein the first prediction mode is a coding mode, or wherein the first prediction mode is a prediction candidate type, or wherein the first prediction mode is a sub-mode of a multi-hypothesis prediction (MHP) mode.

[0262] Clause 96. The method of any of clauses 1-95, wherein a syntax element in the bitstream is binarized as one of the following: a flag, a fixed length code, an exponential Golomb (EG) code, a unary code, a truncated unary code, or a truncated binary code, and the syntax element is signed or unsigned.

[0263] Clause 97. The method of any of clauses 1-96, wherein a syntax element in the bitstream is coded with at least one context model or bypass coded.

[0264] Clause 98. The method of any of clauses 1-97, wherein a syntax element is included in the bitstream based on at least one condition, the at least one condition comprising a condition that a function associated with the syntax element is applicable for the conversion.

[0265] Clause 99. The method of any of clauses 1-97, wherein a syntax element is included at one of the following: a block level, a sequence level, a group of pictures level, a picture level, a slice level, a tile group level.

[0266] Clause 100. The method of any of clauses 1-99, wherein a syntax element is included in one of the following: a coding structure of a coding tree unit (CTU) , a coding structure of a coding unit (CU) , a coding structure of a prediction unit (PU) , a coding structure of a transform unit (TU) , a coding structure of a coding tree block (CTB) , a coding structure of a coding block (CB) , a coding structure of a transform block (TB) , a coding structure of a prediction block (PB) , a sequence header, a picture header, a sequence parameter set (SPS) , a video parameter set (VPS) , a decoded parameter set (DPS) , decoding capability information (DCI) , a picture parameter set (PPS) , an adaptation parameter set (APS) , a slice header or a tile group header.

[0267] Clause 101. The method of any of clauses 1-100, wherein a block is one of the following: a color component, a sub-picture, a slice, a tile, a coding tree unit (CTU) , a CTU row, groups of CTU, a coding unit (CU) , a prediction unit (PU) , a transform unit (TU) , a coding tree block (CTB) , a coding block (CB) , a transform block (TB) , a prediction block (PB) , a block, a sub-block of a block, a sub-region within a block, or a region containing more than one sample or pixel.

[0268] Clause 102. The method of any of clauses 1-101, wherein whether to and / or how to apply the method is indicated in the bitstream at one of the following: a sequence level, a group of pictures level, a picture level, a slice level, a tile group level, a sequence header, a picture header, an SPS, a VPS, a DPS, DCI, a PPS, an APS, a slice header or a tile group header.

[0269] Clause 103. The method of any of clauses 1-102, wherein whether to and / or how to apply the method is indicated in the bitstream at one of the following: a prediction block (PB) , a transform block (TB) , a coding block (CB) , a prediction unit (PU) , a transform unit (TU) , a coding unit (CU) , a virtual pipeline data unit (VPDU) , a coding tree unit (CTU) , a CTU row, a slice, a tile, a subpicture, or a region containing more than one sample or pixel.

[0270] Clause 104. The method of any of clauses 1-103, wherein whether to and / or how to apply the method is based on coded information associated with the current block.

[0271] Clause 105. The method of clause 104, wherein the coded information comprises at least one of the following: a block size, a color format, a single tree partitioning, a dual tree partitioning, a color component, a slice type, or a picture type.

[0272] Clause 106. The method of any of clauses 1-105, wherein the conversion includes encoding the current block into the bitstream.

[0273] Clause 107. The method of any of clauses 1-105, wherein the conversion includes decoding the current block from the bitstream.

[0274] Clause 108. 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-107.

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

[0276] Clause 110. 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 prediction of a current block of the video; in accordance with a determination that a first prediction mode is applied to the current block, determining at least one traced motion parameter of the current block based on a motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block; determining one or more additional predictions of the current block based on the at least one traced motion parameter; and generating the bitstream based on the first prediction and the one or more additional predictions.

[0277] Clause 111. A method for storing a bitstream of a video, comprising: obtaining a first prediction of a current block of the video; in accordance with a determination that a first prediction mode is applied to the current block, determining at least one traced motion parameter of the current block based on a motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block; determining one or more additional predictions of the current block based on the at least one traced motion parameter; generating the bitstream based on the first prediction and the one or more additional predictions; and storing the bitstream in a non-transitory computer-readable recording medium. Example Device

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

[0279] It would be appreciated that the computing device 3300 shown in Fig. 33 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.

[0280] As shown in Fig. 33, the computing device 3300 includes a general-purpose computing device 3300. The computing device 3300 may at least comprise one or more processors or processing units 3310, a memory 3320, a storage unit 3330, one or more communication units 3340, one or more input devices 3350, and one or more output devices 3360.

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

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

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

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

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

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

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

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

[0289] In the example embodiments of performing video encoding, the input device 3350 may receive video data as an input 3370 to be encoded. The video data may be processed, for example, by the video coding module 3325, to generate an encoded bitstream. The encoded bitstream may be provided via the output device 3360 as an output 3380.

[0290] In the example embodiments of performing video decoding, the input device 3350 may receive an encoded bitstream as the input 3370. The encoded bitstream may be processed, for example, by the video coding module 3325, to generate decoded video data. The decoded video data may be provided via the output device 3360 as the output 3380.

[0291] While this disclosure has been particularly shown and described with references to preferred 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 prediction of the current block;in accordance with a determination that a first prediction mode is applied to the current block, determining at least one traced motion parameter of the current block based on a motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block;determining one or more additional predictions of the current block based on the at least one traced motion parameter; andperforming the conversion based on the first prediction and the one or more additional predictions.2.The method of claim 1, wherein a motion parameter comprises a motion vector (MV) or a block vector (BV) , and / orthe first prediction mode is an auto-relocated multi-hypothesis prediction (ARMHP) mode.3.The method of any of claims 1-2, wherein the motion parameter of the current block is indicated in the bitstream using an inter prediction mode, an intra block copy based (IBC-based) prediction mode, or an intra template matching prediction (IntraTMP) mode, orwherein the motion parameter of the current block is determined using the inter prediction mode, the IBC-based prediction mode, or the IntraTMP mode.4.The method of claim 3, 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, or an IBC with geometric partitioning mode (IBC-GPM) prediction mode, orwherein the IBC-based prediction mode is different from an RR-IBC merge mode and an RR-IBC AMVP mode.5.The method of any of claims 3-4, 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 merge mode with motion vector difference (MMVD) prediction mode, a combined inter and intra prediction (CIIP) prediction mode, or a GPM prediction mode.6.The method of any of claims 1-5, wherein determining the at least one traced motion parameter of the current block comprises:setting the motion parameter of the current block as a guiding motion parameter; andperforming the following tracing process iteratively:determining a traced motion parameter of the current block based on the guiding motion parameter and at least one motion parameter of a reference block pointed by the guiding motion parameter; andsetting the determined traced motion parameter as the guiding motion parameter.7.The method of claim 6, wherein the motion parameter 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.8.The method of claim 7, wherein the motion vector or the block vector of the current block is indicated in the bitstream, and m is equal to 0.9.The method of any of claims 7-8, wherein the reference block is uni-predicted, the at least one motion parameter of the reference block comprises a motion vector MVB1LY or a block vector BVB1LY, and the at least one traced motion parameter of the current block comprises a traced motion vector MVB0LM (m+1) or a traced block vector BVB0LM (m+1) ,wherein B1 represents the reference block, Y represents an RPL index, and M represents an RPL index.10.The method of any of claims 7-9, wherein if a set of motion parameters is stored associated with a block at a position in a frame of the video, the block possesses the set of motion parameters and the set of motion parameters is available.11.The method of any of claims 6-10, wherein if the guiding motion parameter of the current block comprises a BV and the at least one motion parameter of the reference block comprises a BV, the at least one traced motion parameter of the current block comprises a traced BV, and the traced BV is determined to be a vector sum of the BV of the current block and the BV of the reference block.12.The method of any of claims 6-11, wherein if the guiding motion parameter of the current block comprises an MV and the at least one motion parameter of the reference block comprises a BV, the at least one traced motion parameter of the current block comprises a traced MV, the traced MV is determined to be a vector sum of the MV of the current block and the BV of the reference block, and the traced MV points to a picture pointed by the MV of the current block.13.The method of any of claims 6-12, wherein if the at least one motion parameter of the reference block comprises an MV, the at least one traced motion parameter of the current block comprises a traced MV determined based on the MV of the reference block.14.The method of any of claims 6-13, wherein if the guiding motion parameter of the current block comprises a BV and the at least one motion parameter of the reference block comprises an MV, the at least one traced motion parameter of the current block comprises a traced MV, the traced MV is determined to be a vector sum of the BV of the current block and the MV of the reference block, and the traced MV points to a first picture pointed by the MV of the reference block.15.The method of any of claims 6-14, wherein if the guiding motion parameter of the current block comprises an MV and the at least one motion parameter of the reference block comprises an MV, the at least one traced motion parameter of the current block comprises a traced MV, the traced MV is determined to be a vector sum of the MV of the current block and the MV of the reference block, and the traced MV points to a first picture pointed by the MV of the reference block.16.The method of any of claims 14-15, wherein if the first picture is in an RPL of the current block, a reference picture index corresponding to the traced MV is an index of the first picture in the RPL of the current block.17.The method of any of claims 14-16, wherein if the first picture is not in an RPL of the current block, the traced MV is unavailable.18.The method of any of claims 14-16, wherein if the first picture is not in an RPL of the current block, the traced MV is scaled based on a picture order count (POC) distance between the first picture and a current picture comprising the current block and a POC distance between the current picture and a second picture in an RPL of the current block to obtain a scaled traced MV pointing to the second picture, and a reference picture index corresponding to the scaled traced MV is an index of the second picture in the RPL of the current block.19.The method of claim 13, wherein the guiding motion parameter of the current block comprises a BV or an MV, if a first picture pointed by the MV of the reference block is not in an RPL of the current block, the MV of the reference block is scaled based on a POC distance between the first picture and a picture comprising the reference block and a POC distance between a second picture in an RPL of the current block and the picture comprising the reference block to obtain a scaled MV pointing to the second picture, the traced MV is determined to be a vector sum of the BV or the MV of the current block and the scaled MV, and a reference picture index corresponding to the traced MV is an index of the second picture in the RPL of the current block.20.The method of any of claims 18-19, wherein the second picture is predefined.21.The method of any of claims 6-20, wherein a precision of the guiding motion parameter of the current block and a precision of the at least one motion parameter of the reference block are aligned with each other before summing the guiding motion parameter of the current block and the at least one motion parameter of the reference block.22.The method of claim 21, wherein if the guiding motion parameter of the current block comprises a BV and the at least one motion parameter of the reference block comprises an MV, the BV is left shifted or right shifted to align with a precision of the MV, orif the guiding motion parameter of the current block comprises an MV and the at least one motion parameter of the reference block comprises a BV, the BV is left shifted or right shifted to align with a precision of the MV.23.The method of claim 22, wherein the at least one traced motion parameter is determined to be a vector sum of the MV and the shifted BV.24.The method of any of claims 7-8, wherein the reference block is bi-predicted, the at least one motion parameter of the reference block comprises two motion vectors (MVB1L0, MVB1L1) or two block vectors (BVB1L0, BVB1L1) , and the at least one traced motion parameter of the current block comprises two traced motion vectors (MVB0LM (m+1) , MVB0LN (m+1) ) or two traced block vectors (BVB0LM (m+1) , BVB0LN (m+1) ) ,wherein B1 represents the reference block, M represents an RPL index, and N represents an RPL index.25.The method of claim 24, wherein a sum of M and N is equal to 1, orwherein M is equal to N, orwherein M is non-equal to N.26.The method of any of claims 6-25, wherein if the guiding motion parameter of the current block comprises a BV and the at least one motion parameter of the reference block comprises a first BV and a second BV, the at least one traced motion parameter of the current block comprises a first traced BV and a second traced BV, the first traced BV is determined to be a vector sum of the BV of the current block and the first BV of the reference block, and the second traced BV is determined to be a vector sum of the BV of the current block and the second BV of the reference block.27.The method of any of claims 6-26, wherein if the guiding motion parameter of the current block comprises an MV and the at least one motion parameter of the reference block comprises a first BV and a second BV, the at least one traced motion parameter of the current block comprises a first traced MV and a second traced MV, the first traced MV is determined to be a vector sum of the MV of the current block and the first BV of the reference block, and the second traced MV is determined to be a vector sum of the MV of the current block and the second BV of the reference block, the first traced MV and the second traced MV point to a reference picture corresponding to the MV of the current block.28.The method of any of claims 6-27, wherein if the at least one motion parameter of the reference block comprises a first MV and a second MV, the at least one traced motion parameter of the current block comprises a first traced MV and a second traced MV, the first traced MV is determined based on the first MV of the reference block, and the second traced MV is determined based on the second MV of the reference block.29.The method of any of claims 6-28, wherein if the guiding motion parameter of the current block comprises a BV and the at least one motion parameter of the reference block comprises a first MV and a second MV, the at least one traced motion parameter of the current block comprises a first traced MV and a second traced MV, the first traced MV is determined to be a vector sum of the BV of the current block and the first MV of the reference block, and the first traced MV points to a first picture pointed by the first MV of the reference block, the second traced MV is determined to be a vector sum of the BV of the current block and the second MV of the reference block, and the second traced MV points to a second picture pointed by the second MV of the reference block.30.The method of any of claims 6-29, wherein if the guiding motion parameter of the current block comprises an MV and the at least one motion parameter of the reference block comprises a first MV and a second MV, the at least one traced motion parameter of the current block comprises a first traced MV and a second traced MV, the first traced MV is determined to be a vector sum of the MV of the current block and the first MV of the reference block, and the first traced MV points to a first picture pointed by the first MV of the reference block, the second traced MV is determined to be a vector sum of the MV of the current block and the second MV of the reference block, and the second traced MV points to a second picture pointed by the second MV of the reference block.31.The method of any of claims 29-30, wherein if the first picture is in an RPL of the current block, a reference picture index corresponding to the first traced MV is an index of the first picture in the RPL of the current block, and / orwherein if the second picture is in an RPL of the current block, a reference picture index corresponding to the second traced MV is an index of the second picture in the RPL of the current block.32.The method of any of claims 29-31, wherein if the first picture is not in an RPL of the current block, the first traced MV is unavailable, and / orwherein if the second picture is not in an RPL of the current block, the second traced MV is unavailable.33.The method of any of claims 29-32, wherein if the first picture is not in an RPL of the current block, the first traced MV is scaled based on a POC distance between the first picture and a current picture comprising the current block and a POC distance between the current picture and a third picture in an RPL of the current block to obtain a scaled first traced MV pointing to the third picture, and a reference picture index corresponding to the scaled first traced MV is an index of the third picture in the RPL of the current block.34.The method of claim 28, wherein the guiding motion parameter of the current block comprises a BV or an MV, if a first picture pointed by the first MV of the reference block is not in an RPL of the current block, the first MV is scaled based on a POC distance between the first picture and a picture comprising the reference block and a POC distance between a third picture in an RPL of the current block and the picture comprising the reference block to obtain a scaled first MV pointing to the third picture, the first traced MV is determined to be a vector sum of the BV or the MV of the current block and the scaled first MV, and a reference picture index corresponding to the first traced MV is an index of the third picture in the RPL of the current block.35.The method of any of claims 33-34, wherein the third picture is predefined.36.The method of any of claims 29-35, wherein if the second picture is not in an RPL of the current block, the second traced MV is scaled based on a POC distance between the second picture and a current picture comprising the current block and a POC distance between the current picture and a fourth picture in an RPL of the current block to obtain a scaled second traced MV pointing to the fourth picture, and a reference picture index corresponding to the scaled second traced MV is an index of the fourth picture in the RPL of the current block.37.The method of claim 28, wherein the guiding motion parameter of the current block comprises a BV or an MV, if a second picture pointed by the second MV of the reference block is not in an RPL of the current block, the second MV is scaled based on a POC distance between the second picture and a picture comprising the reference block and a POC distance between a fourth picture in an RPL of the current block and the picture comprising the reference block to obtain a scaled second MV pointing to the fourth picture, the second traced MV is determined to be a vector sum of the BV or the MV of the current block and the scaled second MV, and a reference picture index corresponding to the second traced MV is an index of the fourth picture in the RPL of the current block.38.The method of any of claims 36-37, wherein the fourth picture is predefined.39.The method of claim 24, wherein if the sum of M and N is equal to 1, the two traced motion vectors (MVB0LM (m+1) , MVB0LN (m+1) ) or the two traced block vectors (BVB0LM (m+1) , BVB0LN (m+1) ) constitutes one bi-direction vector of the current block.40.The method of claim 24, wherein if M is equal to N, the two traced motion vectors (MVB0LM (m+1) , MVB0LN (m+1) ) or the two traced block vectors (BVB0LM (m+1) , BVB0LN (m+1) ) constitutes two uni-direction vectors of the current block.41.The method of any of claims 6-40, wherein a maximum trace depth for the at least one traced motion parameter is predetermined.42.The method of claim 41, wherein the maximum trace depth is equal to 1.43.The method of any of claims 1-42, wherein all available traced motion parameters among the at least one traced motion parameter are used for determining the one or more additional predictions of the current block.44.The method of claim 43, wherein the number of the one or more additional predictions is equal to the number of the available traced motion parameters.45.The method of any of claims 1-42, wherein a set of available traced motion parameters is selected from the at least one traced motion parameter, and the set of available traced motion parameters is used for determining the one or more additional predictions of the current block.46.The method of claim 45, wherein the number of the one or more additional predictions is equal to the number of available traced motion parameters of the set of available traced motion parameters.47.The method of any of claims 45-46, wherein the set of available traced motion parameters comprises available traced motion parameters with top G minimum trace depth, and G represents the number of available traced motion parameters of the set of available traced motion parameters.48.The method of any of claims 45-46, wherein the set of available traced motion parameters comprises available traced motion parameters with top G minimum template matching costs, and G represents the number of available traced motion parameters of the set of available traced motion parameters.49.The method of any of claims 1-48, wherein if the at least one traced motion parameter comprises a traced block vector, the traced block vector is in an IBC search range or an IBC reference range.50.The method of any of claims 6-49, wherein a first traced motion parameter among the at least one traced motion parameter of the current block or a first motion parameter among the at least one motion parameter of the reference block points to a first picture, and the first picture is checked to determine whether the first picture is a reference picture of the current block.51.The method of claim 50, wherein if the current block is coded with an IBC prediction mode or an IntraTMP mode, a current picture comprising the current block is treated as a reference picture of the current block.52.The method of any of claims 50-51, wherein in accordance with a determination that the first picture is not a reference picture of the current block, one or more of the following is performed:refraining from using the first traced motion parameter or the first motion parameter,adding the first picture into an RPL of the current block, orscaling the first traced motion parameter or the first motion parameter, so as to point to a reference picture of the current block.53.The method of any of claims 6-52, wherein at least one position in the reference block is checked to determine the at least one motion parameter of the reference block.54.The method of claim 53, wherein the at least one position comprises only a center position.55.The method of claim 54, wherein if a top-left position within a block is (0, 0) , the center position of the block is one of the following: (W>>1, H>>1) , ( (W>>1) -1, H>>1) , (W>>1, (H>>1) -1) , or ( (W>>1) -1, (H>>1) -1) ,wherein W represents a width of the block, H represents a heigh of the block, and >> represents right shift operation.56.The method of claim 53, wherein the at least one position comprises only a top-left position.57.The method of claim 53, wherein the at least one position comprises at least one of the following:a top-left position,a top-right position,a center position,a bottom-left position, ora bottom-right position.58.The method of claim 53, wherein the at least one position comprises a top-left position, a top-right position, a center position, a bottom-left position, and a bottom-right position.59.The method of claim 58, 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, and the bottom-right position is to be checked at last.60.The method of claim 53, wherein the at least one position comprises one or more predetermined positions.61.The method of any of claims 57-60, wherein all available motion information from the at least one position is used for determining the at least one traced motion parameter of the current block.62.The method of any of claims 57-60, wherein the first available motion information from one checked position is used for determining the at least one traced motion parameter of the current block.63.The method of claim 53, wherein if a motion grid covering a first position of the at least one position is available and the motion grid has motion information, motion information from the first position is used for determining the at least one traced motion parameter of the current block.64.The method of any of claims 1-63, wherein if non-equal weights in bi-prediction with CU-level weight (BCW) are selected in a bi-prediction mode, the first prediction mode is applied of the current block.65.The method of any of claims 1-63, wherein the first prediction mode is only applied in a bi-prediction mode, orthe first prediction mode is applied in both a bi-prediction mode and a uni-prediction mode.66.The method of any of claims 1-65, wherein performing the conversion comprises:determining a target prediction of the current block based on the first prediction and the one or more additional predictions; andperforming the conversion based on the target prediction.67.The method of claim 66, wherein the target prediction is determined by iteratively accumulating the first prediction and the one or more additional predictions.68.The method of claim 67, wherein an accumulating result for the n-th accumulating iteration is determined as follows: pn= (1-αn) pn-1+αnhnwherein pn represents an accumulating result for the n-th accumulating iteration, αn represents a weighting factor, hn represents an addition prediction of the current block determined based on the n-th traced motion parameter of the current block, pn-1 represents the accumulating result for the (n-1) -th accumulating iteration, and p0 represents the first prediction.69.The method of any of claims 67-68, wherein a weighting factor used in the accumulation is predetermined, orthe weighting factor is indicated in the bitstream.70.The method of claim 69, wherein the weighting factor is selected from a set of weights.71.The method of claim 66, wherein the target prediction is determined based on a weighted sum of the first prediction and the one or more additional predictions.72.The method of claim 71, wherein the target prediction is determined as follows: wherein PN+1 represents the target prediction, N represents the number of the one or more additional predictions, P0 represents the first prediction, Pi with i being equal to 1, 2, …, N represents an addition prediction of the current block determined based on the i-th traced motion parameter of the current block, and wi represents a weighting factor for the prediction Pi.73.The method of any of claims 71-72, wherein at least one weighting factor used for determining the weighted sum is predetermined.74.The method of any of claims 71-72, wherein all weighting factors used for determining the weighted sum are the same and equal to 1 /  (N+1) , and N represents the number of the one or more additional predictions.75.The method of any of claims 71-72, wherein all weighting factors for the one or more additional predictions are the same and smaller than a weighting factor for the first prediction.76.The method of any of claims 71-72, wherein the one or more additional predictions comprise a first additional prediction determined based on a first traced motion parameter and a second additional prediction determined based on a second traced motion parameter, if a trace depth of the first traced motion parameter is larger than a trace depth of the second traced motion parameter, a weighting factor for the first additional prediction is smaller than a weighting factor for the second additional prediction.77.The method of any of claims 71-72, wherein the one or more additional predictions comprise a first additional prediction determined based on a first traced motion parameter pointing to a fifth picture and a second additional prediction determined based on a second traced motion parameter pointing to a sixth picture, if a POC distance between the fifth picture and a current picture comprising the current block is larger than a POC distance between the sixth picture and the current picture, a weighting factor for the first additional prediction is smaller than a weighting factor for the second additional prediction.78.The method of any of claims 71-72, wherein at least one weighing factor for determining the weighted sum is determined based on the following using a decomposition scheme:reference templates corresponding to the first prediction and the one or more additional predictions, anda current template for the current block.79.The method of claim 72, wherein the weighting factor wi is determined based on a template matching cost of the at least one traced motion parameter.80.The method of claim 79, wherein the weighting factor wi is determined as follows: wherein TMCi represents the template matching cost for the i-th prediction.81.The method of claim 80, wherein a division operation is implemented with an integer look-up table (LUT) .82.The method of any of claims 79-81, wherein the template matching cost is measured with sum of absolute differences (SAD) .83.The method of claim 72, wherein the weighting factor wi is determined based on a linear function of a sample position (x, y) in the current block.84.The method of claim 83, wherein the weighting factor wi is determined as follows: wherein parameters ai, bi, and ci are determined based on reference templates corresponding to the first prediction and the one or more additional predictions and a current template for the current block by using a mean-square error (MSE) minimization solver.85.The method of any of claims 6-84, wherein if the guiding motion parameter of the current block comprises an MV and a reference picture pointed by the MV is not a collocated picture of the current block, the tracing process is terminated.86.The method of any of claims 6-85, wherein if the guiding motion parameter of the current block comprises an MV and a reference picture pointed by the MV is not a collocated picture of the current block, the tracing process is not terminated.87.The method of claim 86, wherein motion information from the reference picture is allowed to be used in the tracing process.88.The method of claim 86, wherein the MV is scaled to obtain a scaled MV pointing to a collocated picture of the current block.89.The method of any of claims 85-88, wherein motion information of a collocated picture of the current block is stored to be fetched.90.The method of any of claims 85-89, wherein the current block is allowed to have a plurality of collocated pictures.91.The method of claim 90, wherein the number of the plurality of collocated pictures is indicated in the bitstream.92.The method of any of claims 85-91, wherein information regarding whether the reference picture is a collocated picture of the current block is indicated in the bitstream.93.The method of any of claims 6-92, wherein the guiding motion parameter of the current block comprises an MV, and if 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 the reference block is disallowed to be used for determining the traced motion parameter.94.The method of any of claims 6-92, wherein the guiding motion parameter of the current block comprises an MV, and if 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 current CTU row comprising the current block, motion information of the reference block is allowed to be used for determining the traced motion parameter.95.The method of any of claims 1-94, wherein the first prediction mode is a coding mode, orwherein the first prediction mode is a prediction candidate type, orwherein the first prediction mode is a sub-mode of a multi-hypothesis prediction (MHP) mode.96.The method of any of claims 1-95, wherein a syntax element in the bitstream is binarized as one of the following: a flag, a fixed length code, an exponential Golomb (EG) code, a unary code, a truncated unary code, or a truncated binary code, and the syntax element is signed or unsigned.97.The method of any of claims 1-96, wherein a syntax element in the bitstream is coded with at least one context model or bypass coded.98.The method of any of claims 1-97, wherein a syntax element is included in the bitstream based on at least one condition, the at least one condition comprising a condition that a function associated with the syntax element is applicable for the conversion.99.The method of any of claims 1-97, wherein a syntax element is included at one of the following: a block level, a sequence level, a group of pictures level, a picture level, a slice level, a tile group level.100.The method of any of claims 1-99, wherein a syntax element is included in one of the following: a coding structure of a coding tree unit (CTU) , a coding structure of a coding unit (CU) , a coding structure of a prediction unit (PU) , a coding structure of a transform unit (TU) , a coding structure of a coding tree block (CTB) , a coding structure of a coding block (CB) , a coding structure of a transform block (TB) , a coding structure of a prediction block (PB) , a sequence header, a picture header, a sequence parameter set (SPS) , a video parameter set (VPS) , a decoded parameter set (DPS) , decoding capability information (DCI) , a picture parameter set (PPS) , an adaptation parameter set (APS) , a slice header or a tile group header.101.The method of any of claims 1-100, wherein a block is one of the following: a color component, a sub-picture, a slice, a tile, a coding tree unit (CTU) , a CTU row, groups of CTU, a coding unit (CU) , a prediction unit (PU) , a transform unit (TU) , a coding tree block (CTB) , a coding block (CB) , a transform block (TB) , a prediction block (PB) , a block, a sub-block of a block, a sub-region within a block, or a region containing more than one sample or pixel.102.The method of any of claims 1-101, wherein whether to and / or how to apply the method is indicated in the bitstream at one of the following: a sequence level, a group of pictures level, a picture level, a slice level, a tile group level, a sequence header, a picture header, an SPS, a VPS, a DPS, DCI, a PPS, an APS, a slice header or a tile group header.103.The method of any of claims 1-102, wherein whether to and / or how to apply the method is indicated in the bitstream at one of the following: a prediction block (PB) , a transform block (TB) , a coding block (CB) , a prediction unit (PU) , a transform unit (TU) , a coding unit (CU) , a virtual pipeline data unit (VPDU) , a coding tree unit (CTU) , a CTU row, a slice, a tile, a subpicture, or a region containing more than one sample or pixel.104.The method of any of claims 1-103, wherein whether to and / or how to apply the method is based on coded information associated with the current block.105.The method of claim 104, wherein the coded information comprises at least one of the following: a block size, a color format, a single tree partitioning, a dual tree partitioning, a color component, a slice type, or a picture type.106.The method of any of claims 1-105, wherein the conversion includes encoding the current block into the bitstream.107.The method of any of claims 1-105, wherein the conversion includes decoding the current block from the bitstream.108.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-107.109.A non-transitory computer-readable storage medium storing instructions that cause a processor to perform a method in accordance with any of claims 1-107.110.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 prediction of a current block of the video;in accordance with a determination that a first prediction mode is applied to the current block, determining at least one traced motion parameter of the current block based on a motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block;determining one or more additional predictions of the current block based on the at least one traced motion parameter; andgenerating the bitstream based on the first prediction and the one or more additional predictions.111.A method for storing a bitstream of a video, comprising:obtaining a first prediction of a current block of the video;in accordance with a determination that a first prediction mode is applied to the current block, determining at least one traced motion parameter of the current block based on a motion parameter of the current block and at least one motion parameter of a block pointed by the motion parameter of the current block;determining one or more additional predictions of the current block based on the at least one traced motion parameter;generating the bitstream based on the first prediction and the one or more additional predictions; andstoring the bitstream in a non-transitory computer-readable recording medium.

Citation Information

Patent Citations

  • Video decoding method, video encoding method and video encoding device

    CN111343461A

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

    CN112514395A

  • Video coding apparatus

    EP3148191A1