Method, apparatus, and medium for video processing

By employing geometric partitioning mode-based blending approaches for video predictions, the method addresses inefficiencies in existing video coding technologies, enhancing coding efficiency and reducing bitrate.

WO2025146177A9PCT designated stage Publication Date: 2026-07-23DOUYIN VISION CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
DOUYIN VISION CO LTD
Filing Date
2025-01-03
Publication Date
2026-07-23

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 further improvements in coding efficiency for digital video processing.

Method used

Implementing a method for video processing that involves determining blending approaches for first and second predictions based on a coding tool associated with geometric partitioning mode (GPM) to enhance video encoding and decoding efficiency.

Benefits of technology

Enhances video coding efficiency by optimizing prediction methods, thereby improving the quality and reducing the bitrate of video data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025070580_23072026_PF_FP_ABST
    Figure CN2025070580_23072026_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a solution for video processing. A method for video processing is proposed. In the method, for a conversion between a current video block of a video and a bitstream of the video, at least one blending approach for a first prediction and a second prediction of the current video block is determined, the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM). The conversion is performed based on the at least one blending approach.
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 subblock-based combined inter and intra prediction and geometric partitioning mode blending.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-TH. 264 / MPEG-4 Part 10 Advanced Video Coding (AVC) , ITU-TH. 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: determining, for a conversion between a current video block of a video and a bitstream of the video, at least one blending approach for a first prediction and a second prediction of the current video block, the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM) ; and performing the conversion based on the at least one blending approach. The method in accordance with the first aspect of the present disclosure enables determining at least one blending approach for the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM) .

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

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

[0007] In a fourth aspect, another non-transitory computer-readable recording medium is proposed. The non-transitory computer-readable recording medium stores a bitstream of a video which is generated by a method performed by an apparatus for video processing. The method comprises: determining at least one blending approach for a first prediction and a second prediction of a current video block of the video, the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM) ; and generating the bitstream based on the at least one blending approach.

[0008] In a fifth aspect, a method for storing a bitstream of a video is proposed. The method comprises: determining at least one blending approach for a first prediction and a second prediction of a current video block of the video, the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM) ; generating the bitstream based on the at least one blending approach; and storing the bitstream in a non-transitory computer-readable recording medium.

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

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

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

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

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

[0014] Fig. 4 illustrates positions of spatial and temporal neighboring blocks used in AMVP / merge candidate list construction;

[0015] Fig. 5 illustrates positions of non-adjacent candidate in ECM;

[0016] Fig. 6 illustrates control point based affine motion model;

[0017] Fig. 7 illustrates an example affine MVF per subblock;

[0018] Fig. 8 illustrates locations of inherited affine motion predictors;

[0019] Fig. 9 illustrates control point motion vector inheritance;

[0020] Fig. 10 illustrates locations of Candidates position for constructed affine merge mode;

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

[0022] Fig. 12 illustrates from non-adjacent neighbors to constructed affine merge candidates;

[0023] Fig. 13 illustrates an example of generating an HAPC;

[0024] Fig. 14 illustrates an illustration of regression based affine merge candidate derivation;

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

[0026] Fig. 16 illustrates template and the corresponding reference template;

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

[0028] Fig. 18 illustrates deriving sub-CU motion field obtained by applying a motion shift based on the neighboring motion information;

[0029] Fig. 19 illustrates top and left neighboring blocks used in CIIP weight derivation;

[0030] Fig. 20 illustrates CIIP_PDPC flowchart of the extended CIIP mode using PDPC;

[0031] Fig. 21 illustrates the division method for angular modes;

[0032] Fig. 22 illustrates subblock templates generation of SbTMVP;

[0033] Fig. 23 illustrates a diamond regions in the search area;

[0034] Fig. 24 illustrates an example of interweaved prediction;

[0035] Fig. 25A to Fig. 25G illustrate exemplary dividing patterns for a 16×16 block, respectively;

[0036] Fig. 26A to Fig. 26D illustrate examples of partial interweaved prediction. Interweaved prediction is not applied on shaded areas, respectively;

[0037] Fig. 27A to Fig. 27C illustrate examples of deriving MVs for one dividing pattern from another dividing pattern, respectively;

[0038] Fig. 28A to Fig. 28C illustrate examples of choosing dividing patterns depending on block dimensions, respectively;

[0039] Fig. 29A and Fig. 29B illustrate examples of deriving MVs of sub-blocks in one component within a dividing pattern from MVs of sub-block in another component within another dividing pattern, respectively;

[0040] Fig. 30 illustrates examples of the GPM splits grouped by identical angles;

[0041] Fig. 31 illustrates Uni-prediction MV selection for geometric partitioning mode;

[0042] Fig. 32 illustrates exemplified generation of a bending weight w0 using geometric partitioning mode;

[0043] Fig. 33 illustrates spatial GPM candidates;

[0044] Fig. 34 illustrates a GPM template;

[0045] Fig. 35 illustrates the ramp function for the weights for GPM blending based on the displacement (d) from a predicted sample position to the GPM partitioning boundary and the blending area size (τ) ;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0091] [Rectified under Rule 91, 14.02.2025]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 SummaryThis disclosure is related to video coding technologies. Specifically, it is about combined prediction method in video coding. The ideas may be applied individually or in various combination, to any video coding standard or non-standard video codec.2. IntroductionThe exponential increasing of multimedia data poses a critical challenge for video coding. To satisfy the in-creasing demands for more efficient compression technology, ITU-T and ISO / IEC have developed a series of video coding standards in the past decades. In particular, the ITU-T produced H. 261 and H. 263, ISO / IEC pro-duced MPEG-1 and MPEG-4 visual, and the two organizations jointly developed the H. 262 / MPEG-2 Video, H. 264 / MPEG-4 Advanced Video Coding (AVC) , H. 265 / HEVC and the latest VVC standards. Since H. 262 / MPEG-2, hybrid video coding framework is employed wherein in intra / inter prediction plus transform coding are utilized.Fig. 4 illustrates positions of spatial and temporal neighboring blocks used in AMVP / merge candidate list con-struction.2.1. MVP in video codingInter prediction aims to remove the temporal redundancy between adjacent frames, which serves as an indis-pensable component in the hybrid video coding framework. Specifically, inter prediction makes use of the con-tents specified by motion vector (MV) as the predicted version of the current to-be-coded block, thus only re-sidual signals and motion information are transmitted in the bitstream. To reduce the cost for MV signaling, motion vector prediction (MVP) came into being as an effective mechanism to convey motion information. Early strategies simply use the MV of a specified neighboring block or the median MV of neighboring blocks as MVP. In H. 265 / HEVC, competing mechanism was involved where the optimal MVP is selected from mul-tiple candidates through rate distortion optimization (RDO) . In particular, advanced MVP (AMVP) mode and merge mode are devised with different motion information signaling strategy. With the AMVP mode, a refer-ence index, a MVP candidate index referring to an AMVP candidate list and motion vector difference (MVD) is signaled. Regarding the merge mode, only a merge index referring to a merge candidate list is signaled, and all the motion information associated with the merge candidate is inherited. Both AMVP mode and merge mode need to construct MVP candidate list, and the details of the construction process for these two modes are described as follows.AMVP mode: AMVP exploits spatial-temporal correlation of motion vector with neighboring blocks, which is used for explicit transmission of motion parameters. For each reference picture list, a motion vector candidate list is constructed by firstly checking availability of left, above temporally neighboring positions, removing redundant candidates and adding zero vector to make the candidate list to be constant length. For spatial mo-tion vector candidate derivation, two motion vector candidates are eventually derived based on motion vectors of blocks located in five different positions as depicted in Fig. 1. The five neighboring blocks located at B0, B1, B2, and A0, A1 are classified into two groups, where Group A includes the three above spatial neighbor-ing blocks and Group B includes the two left spatial neighboring blocks. The two MV candidates are respec-tively derived with the first available candidate from Group A and Group B in a predefined order. For temporal motion vector candidate derivation, one motion vector candidate is derived based on two different collocated positions (bottom-right (C0) and central (C1) ) checked in order, as depicted in Fig. 1. To avoid redundant MV candidates, duplicated motion vector candidates in the list are abandoned. If the number of potential candidates is smaller than two, additional zero motion vector candidates are added to the list.Fig. 5 illustrates positions of non-adjacent candidate in ECM.Merge mode: Similar to AMVP mode, MVP candidate list for merge mode comprises of spatial and tem-poral candidates as well. For spatial motion vector candidate derivation, at most four candidates are selected with order A1, B1, B0, A0 and B2 after performing availability and redundant checking. For temporal merge candidate (TMVP) derivation, at most one candidate is selected from two temporal neighboring blocks (C0 and C1) . When there are not enough merge candidates with spatial and temporal candidates, combined bi-predictive merge candidates and zero MV candidates are added to MVP candidate list. Once the number of available merge candidates reaches the signaled maximally allowed number, the merge candidate list construc-tion process is terminated.In VVC, the construction process for merge mode is further improved by introducing the history-based MVP (HMVP) , which incorporates the motion information of previously coded blocks which may be far away from current block. In VVC, HMVP merge candidates are appended 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 with first-in-first-out strategy during the encoding / decoding process. Whenever there is a non-subblock inter-coded CU, the associated motion in-formation is added to the last entry of the table as a new HMVP candidate.During the standardization of VVC, Non-adjacent MVP was proposed to facilitate better motion information derivation by exploiting the non-adjacent area. In ECM software, Non-adjacent MVP are inserted between TMVP and HMVP, where the distances between non-adjacent spatial candidates and current coding block are based on the width and height of current coding block as depicted in Fig. 2.2.2. Affine motion compensated predictionIn HEVC, only translation motion model is applied for motion compensation prediction (MCP) . While in the real world, there are many kinds of motion, e.g., zoom in / out, rotation, perspective motions and the other irre-gular motions. In VVC, a block-based affine transform motion compensation prediction is applied. As shown Fig. 3, the affine motion field of the block is described by motion information of two control point (4-parameter) or three control point motion vectors (6-parameter) .Fig. 6 illustrates control point based affine motion model, including (a) 4 parameter affine model, and (b) 6 parameter affine model.For 4-parameter affine motion model, motion vector at sample location (x, y) in a block is derived as: For 6-parameter affine motion model, motion vector at sample location (x, y) in a block is derived as: Where (mv0x, mv0y) is motion vector of the top-left corner control point, (mv1x, mv1y) is motion vector of the top-right corner control point, and (mv2x, mv2y) is motion vector of the bottom-left corner control point. To simplify the motion compensation prediction, block based affine transform prediction is applied. To derive motion vector of each 4×4 luma subblock, the motion vector of the center sample of each subblock, as shown in Fig. 7, is calculated according to above equations, and rounded to 1 / 16 fraction accuracy. Then the motion compensation interpolation filters are applied to generate the prediction of each subblock with derived motion vector. The subblock size of chroma-components is also set to be 4×4. The MV of a 4×4 chroma subblock is calculated as the average of the MVs of the top-left and bottom-right luma subblocks in the collocated 8x8 luma region.Fig. 7 illustrates affine MVF per subblock.As done for translational motion inter prediction, there are also two affine motions inter prediction modes: af-fine merge mode and affine AMVP mode.2.2.1. Affine merge predictionAffine merge mode can be applied for CUs with both width and height larger than or equal to 8. In this mode the CPMVs of the current CU is generated based on the motion information of the spatial neighboring CUs. There can be up to five CPMVP candidates and an index is signalled to indicate the one to be used for the cur-rent CU. In VVC, the following three types of CPVM candidate are used to form the affine merge candidate list:- Inherited affine merge candidates that extrapolated from the CPMVs of the neighbor CUs.- Constructed affine merge candidates CPMVPs that are derived using the translational MVs of the neighbor CUs.- Zero MVs.In VVC, there are maximum two inherited affine candidates, which are derived from affine motion model of the neighboring blocks, one from left neighboring CUs and one from above neighboring CUs. The candidate blocks are shown in Fig. 8. For the left predictor, the scan order is A0->A1, and for the above predictor, the scan order is B0->B1->B2. Only the first inherited candidate from each side is selected. No pruning check is performed between two inherited candidates. When a neighboring affine CU is identified, its control point mo-tion vectors are used to derive the CPMVP candidate in the affine merge list of the current CU. As shown in Fig. 9, if the neighbor left bottom block A is coded in affine mode, the motion vectors v2 , v3 and v4 of the top left corner, above right corner and left bottom corner of the CU which contains the block A are attained. When block A is coded with 4-parameter affine model, the two CPMVs of the current CU are calculated according to v2, and v3. In case that block A is coded with 6-parameter affine model, the three CPMVs of the current CU are calculated according to v2 , v3 and v4.Fig. 8 illustrates locations of inherited affine motion predictors.Fig. 9 illustrates control point motion vector inheritance.Constructed affine candidate means the candidate is constructed by combining the neighbor translational mo-tion information of each control point. The motion information for the control points is derived from the speci-fied spatial neighbors and temporal neighbor shown in Fig. 10. CPMVk (k=1, 2, 3, 4) represents the k-th con-trol point. For CPMV1, the B2->B3->A2 blocks are checked and the MV of the first available block is used. For CPMV2, the B1->B0 blocks are checked and for CPMV3, the A1->A0 blocks are checked. For TMVP is used as CPMV4 if it’s available.After MVs of four control points are attained, affine merge candidates are constructed based on those motion information. The following combinations of control point MVs are used to construct in order:{CPMV1, CPMV2, CPMV3} , {CPMV1, CPMV2, CPMV4} , {CPMV1, CPMV3, CPMV4} , {CPMV2, CPMV3, CPMV4} , {CPMV1, CPMV2} , {CPMV1, CPMV3} .The combination of 3 CPMVs constructs a 6-parameter affine merge candidate and the combination of 2 CPMVs constructs a 4-parameter affine merge candidate. To avoid motion scaling process, if the reference indices of control points are different, the related combination of control point MVs is discarded.Fig. 10 illustrates locations of Candidates position for constructed affine merge mode.After inherited affine merge candidates and constructed affine merge candidate are checked, if the list is still not full, zero MVs are inserted to the end of the list.2.2.2. Affine AMVP predictionAffine AMVP mode can be applied for CUs with both width and height larger than or equal to 16. An affine flag in CU level is signalled in the bitstream to indicate whether affine AMVP mode is used and then another flag is signalled to indicate whether 4-parameter affine or 6-parameter affine. In this mode, the difference of the CPMVs of current CU and their predictors CPMVPs is signalled in the bitstream. The affine AMVP candi-date list size is 2 and it is generated by using the following four types of CPVM candidate in order:- Inherited affine AMVP candidates that extrapolated from the CPMVs of the neighbor CUs.- Constructed affine AMVP candidates CPMVPs that are derived using the translational MVs of the neighbor CUs.- Translational MVs from neighboring CUs.- Zero MVs.The checking order of inherited affine AMVP candidates is same to the checking order of inherited affine merge candidates. The only difference is that, for AMVP candidate, only the affine CU that has the same ref-erence picture as in current block is considered. No pruning process is applied when inserting an inherited af-fine motion predictor into the candidate list.Constructed AMVP candidate is derived from the specified spatial neighbors shown in The same checking order is used as done in affine merge candidate construction. In addition, reference picture index of the neigh-boring block is also checked. The first block in the checking order that is inter coded and has the same refer-ence picture as in current CUs is used. There is only one When the current CU is coded with 4-parameter af-fine mode, and mv0 and mv1 are both available, they are added as one candidate in the affine AMVP list. When the current CU is coded with 6-parameter affine mode, and all three CPMVs are available, they are add-ed as one candidate in the affine AMVP list. Otherwise, constructed AMVP candidate is set as unavailable. Fig. 11 illustrates spatial neighbors for deriving affine merge candidates: (a) for deriving inherited affine merge candidates (b) for deriving constructed affine merge candidates.If affine AMVP list candidates are still less than 2 after valid inherited affine AMVP candidates and con-structed AMVP candidate are inserted, mv0, mv1 and mv2 will be added, in order, as the translational MVs to predict all control point MVs of the current CU, when available. Finally, zero MVs are used to fill the affine AMVP list if it is still not full.2.2.3. New Affine candidates derivation methods in ECM-8.0In ECM-6.0, 3 additional Affine merge and AMVP candidate derivation methods are integrated, which are non-adjacent spatial candidates, History-parameter-based candidates, Regression based affine candidates and Pixel based affine motion compensation.2.2.3.1. Non-adjacent spatial candidatesIn ECM-6.0, non-adjacent spatial neighbors are investigated to provided candidates for both Affine merge and Affine AMVP. The pattern of obtaining non-adjacent spatial candidates is shown in Fig. 11. Same as the non-adjacent regular merge candidates, the distances between non-adjacent spatial candidates and current coding block are also defined based on the width and height of current CU.The motion information of the non-adjacent spatial neighbors in Fig. 11 is utilized to generate additional inhe-rited and constructed affine merge candidates. Specifically, to generate inherited candidates, the non-adjacent spatial neighbors are checked based on their distances to the current block, i.e., from near to far. At a specific distance, only the first available neighbor which is coded with Affine mode from each side (e.g., the left and above) of the current block is included. As indicated in (a) of Fig. 11, the checking of the neighbors on the left and above sides are performed from bottom-to-up and right-to-left, respectively. For constructed candidates, as shown in (b) of Fig. 11, the positions of one left and above non-adjacent spatial neighbors are firstly deter-mined independently; After that, the location of the top-left neighbor can be determined accordingly to form a rectangular virtual block together with the left and above non-adjacent neighbors. The motion information of the three non-adjacent neighbors is used to form the CPMVs at the top-left (A) , top-right (B) and bottom-left (C) of the virtual block, which is projected to the current CU to generate the corresponding constructed candi-dates, as shown in Fig. 12. Fig. 12 illustrates from non-adjacent neighbors to constructed affine merge candi-dates.2.2.3.2. History-parameter-based affine candidatesHistory-parameter-based affine model inheritance (HAMI) allows the affine model to be inherited from a pre-viously affine-coded block which may not be neighboring to the current block. A history-parameter table (HPT) is established. An entry of HPT stores a set of affine parameters: a, b, c and d, each of which is represented by a 16-bit signed integer. Entries in HPT is categorized by reference list and reference index. Five reference in-dices are supported for each reference list in HPT. In a formular way, the category of HPT (denoted as HPTCat) is calculated asHPTCat (RefList, RefIdx) = 5×RefList + min (RefIdx, 4)      (3)wherein RefList and RefIdx represents a reference picture list (0 or 1) and a reference index, respectively. For each category, at most seven entries can be stored, resulting in 70 entries totally in HPT. At the beginning of each CTU row, the number of entries for each category is initialized as zero. After decoding an affine-coded CU with reference list RefListcur and RefIdxcur, the affine parameters are utilized to update entries in the cat-egory HPTCat (RefListcur, RefIdxcur) in a way similar to HMVP table updating.A history-affine-parameter-based candidate (HAPC) is derived from a neighbouring 4×4 block denoted as A0, A1, B0, B1 or B2 in Fig. 13 and a set of affine parameters stored in a corresponding entry in HPT. The MV of a neighbouring 4×4 block served as the base MV. In a formulating way, the MV of the current block at posi-tion (x, y) is calculated as: where (mvhbase, mvvbase) represents the MV of the neighbouring 4×4 block, (xbase, ybase) represents the center position of the neighbouring 4×4 block. (x, y) can be the top-left, top-right and bottom-left corner of the current block to obtain the corner-position MVs (CPMVs) for the current block, or it can be the center of the current block to obtain a regular MV for the current block.Fig. 13 shows an example of how to derive an HAPC from block A0. The affine parameters {a0, b0, c0, d0} are directly fetched from one entry of category HPTIdx (RefListA0, refIdx0A0) in HPT. The affine parameters from HPT, with the center position of A0 as the base position, and the MV of block A0 as the base MV, are used together to derive the CPMVs for an affine merge HAPC, or an affine AMVP HAPC. They can also be used to derive MVs located at the center of the current block, as regular merge candidates. A HAPC can be put into the sub-block-based merge candidate list, the affine AMVP candidate list or the regular merge candidate list. As a response to new HAPCs being introduced, the size of sub-block-based merge candidate list is in-creased from five to ten and twelve for random access and low-delay B configurations, respectively. Besides, the size of regular merge candidate list is increased from ten to eleven for random access configurations to ac-commodate the newly added regular merge candidates.Fig. 13 illustrates an example of generating an HAPC.2.2.3.3. Regression based affine candidateIn ECM-6.0, the regression based affine merge candidates are derived and added to the affine merge list. Sub-block motion field from a previously coded affine CU and motion information from adjacent subblocks of a current CU are used as the input to the regression process to derive proposed affine candidates.The previously coded affine CU can be identified from scanning through non-adjacent positions and the affine HMVP table. Adjacent subblock information of current CU is fetched from 4x4 sub-blocks represented by the grey zone as depicted in Fig. 14. For each sub-block, given a reference list, the corresponding motion vector and center coordinate of the sub-block may be used.For each affine CU, up to 2 affine candidates can be derived. One with adjacent subblock information and one without. All the linear-regression-generated candidates are pruned and collected into one candidate sub-group, TM cost based ARMC process is applied when ARMC is enabled. Afterwards, up to N linear-regression-generated candidates are added to the affine merge list when N affine CUs are found.Fig. 14 illustrates an illustration of regression based affine merge candidate derivation.2.2.3.4. Pixel based affine motion compensationWith pixel based affine motion compensation, minimum affine subblock size is set to 1x1 for luma component when OBMC is not applied, minimum subblock size is always set to 1x1 for chroma components.2.3. Template matching merge / AMVP mode in ECMTemplate matching (TM) merge / AMVP mode is a decoder-side MV derivation method to refine the motion information of the current CU by finding the closest match between a template (i.e., top and / or left neighboring blocks of the current CU) in the current picture and a block (i.e., same size to the template) in a reference picture. As illustrated in Fig. 15, a better MV is to be searched around the initial motion of the current CU within a [- 8, +8] -pel search range.Fig. 15 illustrates template matching performs on a search area around initial MV.In AMVP mode, an MVP candidate is determined based on the template matching error to pick up the one which reaches the minimum difference between the current block and the reference block templates, and then TM performs only for this particular MVP candidate for MV refinement. TM refines this MVP candidate, starting from full-pel MVD precision (or 4-pel for 4-pel AMVR mode) within a [-8, +8] -pel search range by using iterative diamond search. The AMVP candidate may be further refined by using cross search with full-pel MVD precision (or 4-pel for 4-pel AMVR mode) , followed sequentially by half-pel and quarter-pel ones depending on AMVR mode. This search process ensures that the MVP candidate still keeps the same MV precision as indicated by adaptive motion vector resolution (AMVR) mode after TM process.In the merge mode, similar search method is applied to the merge candidate indicated by the merge index. TM merge may perform all the way down to 1 / 8-pel MVD precision or skipping those beyond half-pel MVD precision, depending on whether the alternative interpolation filter (that is used when AMVR is of half-pel mode) is used according to merged motion information. Besides, when TM mode is enabled, template matching may work as an independent process or an extra MV refinement process between block-based and subblock-based bilateral matching (BM) methods, depending on whether BM can be enabled or not according to its enabling condition check. When BM and TM are both enabled for a CU, the search process of TM stops at half-pel MVD precision and the resulted MVs are further refined by using the same model-based MVD derivation method as in DMVR.2.4. Adaptive reorder of merge candidates (ARMC)Inspired by the spatial correlation between reconstructed neighboring pixels and the current coding block, adaptive reorder of merge candidates (ARMC) was proposed to refine the candidates order in a given candi-date list. The underlying assumption is that the candidates with less template matching cost have higher proba-bility to be chosen through RDO process, hence should be placed in front positions within the list to reduce the signaling cost.The reordering method is applied to regular merge mode, template matching (TM) merge mode, and affine merge mode (excluding the SbTMVP candidate) . For the TM merge mode, merge candidates are reordered before the refinement process.After a merge candidate list is constructed, merge candidates are divided into several subgroups. The subgroup size is set to 5. Merge candidates in each subgroup are reordered ascendingly according to cost values based on template matching. For simplification, merge candidates in the last but not the first subgroup are not reordered. The template matching cost is measured by the sum of absolute differences (SAD) between samples of a tem-plate of the current block and their corresponding reference template. The template comprises a set of recon-structed samples neighboring to the current block, while reference template is located by the same motion in-formation of the current block, as illustrated in Fig. 16. When a merge candidate utilizes bi-directional predic-tion, the reference samples of the template of the merge candidate are also generated by bi-prediction. Fig. 16 illustrates template and the corresponding reference template.For subblock-based merge candidates with subblock size equal to Wsub *Hsub, the above template comprises several sub-templates with the size of Wsub × K, and the left template comprises several sub-templates with the size of K × Hsub. As shown in Fig. 17. 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.2.5. Subblock-based temporal motion vector prediction (SbTMVP)VVC supports the subblock-based temporal motion vector prediction (SbTMVP) method. Similar to the TMVP, SbTMVP takes advantage of the motion field in the collocated picture to facilitate more precise MVP derivation. The same collocated picture used by TMVP is used for SbTMVP. SbTMVP differs from TMVP mainly in two aspects. Firstly, SbTMVP enables sub-CU level motion prediction whereas TMVP predicts mo-tion at CU level; Secondly, compared with TMVP that fetches the temporal MV 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 by re-using the MV from one of the spatial neighboring blocks of the cur-rent CU.Fig. 18 illustrates the derivation process of the sub-block level motion field for SbTMVP. In particular, the motion information of left-bottom sub-block A1 is firstly fetched, if either of the MVs in reference list0 and list1 points to the collocated frame, then the corresponding MV will be identified as motion shift. Otherwise, zero mv will be used as motion shift.Once the motion shift is determined, the specified region in the collocated frame is employed to derive sub-block level motion field. Assuming A1’ motion is used as motion shift as depicted in Fig. 18. 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 fetched to provide motion information, where MV scale operation is firstly performed to align the reference frames of the temporal motion vectors to those of the current CU.Fig. 17 illustrates template and reference template for block with sub-block motion using the motion information of the subblocks of current block.Fig. 18 illustrates deriving sub-CU motion field obtained by applying a motion shift based on the neighboring motion information.In VVC and ECM, in addition to CU level MVP candidate list, a sub-CU level MVP candidate list is also con-structed to provide more precise motion prediction for the current CU, which comprises the motion fields pro-duced by both SbTMVP and AFFINE methods. In particular, only one SbTMVP candidate is included and is always placed in the first entry of the constructed sub-CU level MVP candidate list, whereas multiple AFFINE candidates are included in the list after performing template matching-based reordering, where those with smaller costs are placed in fronter positions.2.6. Combined inter and intra prediction (CIIP)In VVC, when a CU is coded in merge mode, if the CU contains at least 64 luma samples (that is, CU width times CU height is equal to or larger than 64) , and if both CU width and CU height are less than 128 luma samples, an additional flag is signalled to indicate if the combined inter / intra prediction (CIIP) mode is applied to the current CU. As its name indicates, the CIIP prediction combines an inter prediction signal with an intra prediction signal. The inter prediction signal in the CIIP mode Pinter is derived using the same inter prediction process applied to regular merge mode; and the intra prediction signal Pintra is derived following the regular intra prediction process with the planar mode. Then, the intra and inter prediction signals are combined using weighted averaging, where the weight value is calculated depending on the coding modes of the top and left neighbouring blocks (depicted in Fig. 19) as follows:- If the top neighbor is available and intra coded, then set isIntraTop to 1, otherwise set isIntraTop to 0;- If the left neighbor is available and intra coded, then set isIntraLeft to 1, otherwise set isIntraLeft to 0;- If (isIntraLeft + isIntraTop) is equal to 2, then wt is set to 3;- Otherwise, if (isIntraLeft + isIntraTop) is equal to 1, then wt is set to 2;- Otherwise, set wt to 1.The CIIP prediction is formed as follows:PCIIP= ( (4-wt) *Pinter+wt*Pintra+2) >>2.Fig. 19 illustrates top and left neighboring blocks used in CIIP weight derivation.2.7. CIIP with PDPC blendingIn ECM, the CIIP mode is extended. In this extended mode (CIIP_PDPC) , the prediction of the regular merge mode is refined using the above (Rx, -1) and left (R-1, y) reconstructed samples. This refinement inherits the position dependent prediction combination (PDPC) scheme. The flowchart of the prediction of the CIIP_PDPC mode can be depicted as in Fig. 20, where WT and WL are the weighted values which depend on the sample position in the block as defined in PDPC.The CIIP_PDPC mode is signaled together with CIIP mode. When CIIP flag is true, another flag, namely CIIP_PDPC flag, is further signaled to indicate whether to use CIIP_PDPC.Fig. 20 illustrates CIIP_PDPC flowchart of the extended CIIP mode using PDPC.2.8. Combination of CIIP with TIMD and TM mergeIn ECM CIIP mode, the prediction samples may be generated by weighting an inter prediction signal predicted using CIIP-TM merge candidate and an intra prediction signal predicted using TIMD derived intra prediction mode. The method is only applied to coding blocks with an area less than or equal to 1024.The TIMD derivation method is used to derive the intra prediction mode in CIIP. Specifically, the intra predic-tion mode with the smallest SATD values in the TIMD mode list is selected and mapped to one of the 67 regu-lar intra prediction modes.In addition, it is also proposed to modify the weights (wIntra, wInter) for the two tests if the derived intra pre-diction mode is an angular mode. For near-horizontal modes (2 <= angular mode index < 34) , the current block is vertically divided as shown in (a) of Fig. 21; for near-vertical modes (34 <= angular mode index <= 66) , the current block is horizontally divided as shown in (b) of Fig. 21.The (wIntra, wInter) for different sub-blocks are shown in Table 1.Fig. 21 illustrates the division method for angular modes.Table 1. The modified weights used for angular modes. With CIIP-TM, a CIIP-TM merge candidate list is built for the CIIP-TM mode. The merge candidates are re-fined by template matching. The CIIP-TM merge candidates are also reordered by the ARMC method as regu-lar merge candidates. The maximum number of CIIP-TM merge candidates is equal to two.2.9. Combined intra block copy and intra predictionCombined 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) ) ) >>shiftwherein 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 can-didate list size is pre-defined as 2. An IPM index is signalled to indicate which IPM is used.Fig. 22 illustrates Subblock templates generation of SbTMVP.2.10. Temporal motion derivation in ECMIn VVC, the Temporal Motion Vector Prediction (TMVP) for the AMVP and merge mode is derived by fetch-ing 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. 22, if the center subblock is uni-predicted, then all the subblock templates are uni-predicted, and vice versa. If the motion vector of corresponding adjacent subblock at the determined reference list is not available for a subblock template, zero MV is used for that subblock template.2.11. Multi-pass decoder-side motion vector refinement (DMVR)A multi-pass decoder-side motion vector refinement is integrated in ECM. In the first pass, bilateral matching (BM) is applied to the coding block. In the second pass, BM is applied to each 16x16 subblock within the cod-ing block. In the third pass, MV in each 8x8 subblock is refined by applying bi-directional optical flow (BDOF) . The refined MVs are stored for both spatial and temporal motion vector prediction.2.11.1 First pass - Block based bilateral matching MV refinementIn the first pass, a refined MV is derived by applying BM to a coding block. Similar to decoder-side motion vector refinement (DMVR) , in bi-prediction operation, a refined MV is searched around the two initial MVs (MV0 and MV1) in the reference picture lists L0 and L1. The refined MVs (MV0_pass1 and MV1_pass1) are derived around the initiate MVs based on the minimum bilateral matching cost between the two reference blocks in L0 and L1.BM performs local search to derive integer sample precision intDeltaMV. The local search applies a 3×3 square search pattern to loop through the search range [-sHor, sHor] in horizontal direction and [-sVer, sVer] in vertical direction, wherein, the values of sHor and sVer are determined by the block dimension, and the maximum value of sHor and sVer is 8.The bilateral matching cost is calculated as: bilCost = mvDistanceCost + sadCost. When the block size cbW *cbH is greater than 64, mean-removal SAD (MRSAD) cost function is applied to remove the DC effect of dis-tortion between reference blocks. When the bilCost at the center point of the 3×3 search pattern has the mini-mum cost, the intDeltaMV local search is terminated. Otherwise, the current minimum cost search point be-comes the new center point of the 3×3 search pattern and continue to search for the minimum cost, until it reaches the end of the search range.The existing fractional sample refinement is further applied to derive the final deltaMV. The refined MVs after the first pass is then derived as:·MV0_pass1 = MV0 + deltaMV,·MV1_pass1 = MV1 - deltaMV.2.11.2 Second pass - Subblock based bilateral matching MV refinementIn the second pass, a refined MV is derived by applying BM to a 16×16 grid subblock. For each subblock, a refined MV is searched around the two MVs (MV0_pass1 and MV1_pass1) , obtained on the first pass, in the reference picture list L0 and L1. The refined MVs (MV0_pass2 (sbIdx2) and MV1_pass2 (sbIdx2) ) are derived based on the minimum bilateral matching cost between the two reference subblocks in L0 and L1.For each subblock, BM performs full search to derive integer sample precision intDeltaMV. The full search has a search range [-sHor, sHor] in horizontal direction and [- sVer, sVer] in vertical direction, wherein, the values of sHor and sVer are determined by the block dimension, and the maximum value of sHor and sVer is 8. The bilateral matching cost is calculated by applying a cost factor to the SATD cost between two reference subblocks, as: bilCost = satdCost *costFactor. The search area (2*sHor + 1) * (2*sVer + 1) is divided up to 5 diamond shape search regions shown on Fig. 23. Each search region is assigned a costFactor, which is deter-mined by the distance (intDeltaMV) between each search point and the starting MV, and each diamond region is processed in the order starting from the center of the search area. In each region, the search points are processed in the raster scan order starting from the top left going to the bottom right corner of the region. When the minimum bilCost within the current search region is less than a threshold equal to sbW *sbH, the int-pel full search is terminated, otherwise, the int-pel full search continues to the next search region until all search points are examined. Additionally, if the difference between the previous minimum cost and the current minimum cost in the iteration is less than a threshold that is equal to the area of the block, the search process terminates.Fig. 23 illustrates diamond regions in the search area.The existing VVC DMVR fractional sample refinement is further applied to derive the final deltaMV (sbIdx2) . The refined MVs at second pass is then derived as:·MV0_pass2 (sbIdx2) = MV0_pass1 + deltaMV (sbIdx2) ,·MV1_pass2 (sbIdx2) = MV1_pass1 - deltaMV (sbIdx2) .2.11.3 Third pass - Subblock based bi-directional optical flow MV refinementIn the third pass, a refined MV is derived by applying BDOF to an 8×8 grid subblock. For each 8×8 subblock, BDOF refinement is applied to derive scaled Vx and Vy without clipping starting from the refined MV of the parent subblock of the second pass. The derived bioMv (Vx, Vy) is rounded to 1 / 16 sample precision and clipped between -32 and 32.The refined MVs (MV0_pass3 (sbIdx3) and MV1_pass3 (sbIdx3) ) at third pass are derived as:·MV0_pass3 (sbIdx3) = MV0_pass2 (sbIdx2) + bioMv,·MV1_pass3 (sbIdx3) = MV0_pass2 (sbIdx2) - bioMv.In all aforementioned sub-clauses, when wrap around motion compensation is enabled, the motion vectors shall be clipped with wrap around offset taken into consideration.2.12. Interweaved predictionTo overcome the problems in sub-block based prediction, an interweaved prediction in video coding is pro-posed.With interweaved prediction, a block is divided into sub-blocks with more than one dividing patterns. A di-viding pattern is defined as the way to divide a block into sub-blocks, including the size of sub-blocks and the position of sub-blocks. For each dividing pattern, a corresponding prediction block may be generated by deriv-ing motion information of each sub-block based on the dividing pattern. Therefore, even for one prediction direction, multiple prediction blocks may be generated by multiple dividing patterns. Alternatively, for each prediction direction, only a dividing pattern may be applied.Suppose there are X dividing patterns, and X prediction blocks of the current block, denoted as P0, P1, …, PX-1 are generated by sub-block based prediction with the X dividing patterns. The final prediction of the cur-rent block, denoted as P, can be generated as where (x, y) is the coordinate of a pixel in the block and wi (x, y) is the weighting value of Pi. Without losing generalization, it is supposed that wherein N is a non-negative value. Fig. 24 shows an example of interweaved prediction with two dividing patterns.The detailed embodiments below should be considered as examples to explain general concepts. These em-bodiments should not be interpreted in a narrow way. Furthermore, these embodiments can be combined in any manner.Usage of interweaved prediction for different coding tools1. Interweaved prediction can be applied in one, some or all coding tools with sub-block based prediction. In one example, affine prediction applies interweaved prediction while other coding tools with sub-block based prediction such as ATMVP, STMVP, FRUC and BIO do not apply interweaved prediction. In another example, affine, ATMVP and STMVP apply interweaved prediction.Definitions of dividing patterns2. Dividing patterns can have different shapes, or sizes, or positions of sub-blocks. In one example, a di-viding pattern may result in irregular sub-block sizes. Fig. 25A to Fig. 25G show several exemplary dividing patterns for a 16×16 block. In Fig. 25A, the block is divided into 4×4 sub-blocks as in JEM; In Fig. 25B, the block is divided into 8×8 sub-blocks; In Fig. 25C and Fig. 25D, the block is divided into 8x4 sub-blocks and 4×8 sub-blocks, respectively; In Fig. 25E and Fig. 25F, the block is also divided into 4×4 sub-blocks but with different positions. The pixels at block boundaries which cannot be di-vided into an integral 4×4 sub-block can be divided in smaller sub-blocks with sizes like 2×4, 4×2 or 2×2 as shown in Fig. 25E, or they can be merged into adjacent 4×4 sub-blocks to form larger sub-blocks with sizes like 6×4, 4×6 or 6×6 as shown in Fig. 25F; In Fig. 25G the block is also divided into 8×8 sub-blocks but with different positions. The pixels at block boundaries which cannot be divided in-to an integral 8×8 sub-block can be divided in smaller sub-blocks with sizes like 8×4, 4×8 or 4×4.3. The shapes and sizes of sub-blocks in sub-block based prediction can depend on the shape and / or size of the coding block and / or coded block information (e.g., it is affine or ATMVP mode) .a. In one example, the sub-blocks are with the size 4×N (or 8×N and so on) when the current block is with the size M×N.b. In one example, the sub-blocks are with the size M×4 (or M×8 and so on) when the current block is with the size M×N.c. In one example, the sub-blocks are with the size A×B with A > B such as 8×4, when the cur-rent block is with the size M×N and M > N; otherwise, the sub-blocks are with the size B×A such as 4×8.d. In one example, suppose the current block is with the size M×N, then sub-blocks are with the size A×B when M×N <= T (or Min (M, N) <= T, or Max (M, N) <= T and so on) and sub-blocks are with the size C×D when M×N>T (or Min (M, N) > T, or Max (M, N) > T, and so on) , where A <=C and B<=D. For example, if M×N<=256 sub-blocks are with the size 4×4; oth-erwise, sub-blocks are with the size 8×8.Enabling / disabling interweaved prediction and coding process of interweaved prediction4. Whether to apply interweaved prediction depends on the inter-prediction direction.a. In one example, the interweaved prediction may be applied for bi-prediction but not for uni-prediction.b. In one example, when multiple-hypothesis is applied, the interweaved prediction may be ap-plied for one prediction direction when there are more than one reference blocks.5. How to apply interweaved prediction depends on the inter-prediction direction.a. In one example, a bi-predicted block with sub-block based prediction is divided into sub-blocks with two different dividing patterns for two different reference lists. In one example, the block is divided into 4×8 sub-blocks as shown in Fig. 25D when predicted from reference list 0 (L0) , but divided into 8×4 sub-blocks as shown in Fig. 25C when predicted from refer-ence list 1 (L1) . And the final prediction P is calculated as where P0 and P1 are predictions from L0 and L1, respectively. w0 and w1 are weighting values for L0 and L1, respectively. Without losing generalization, it is supposed that w0 (x, y) + w1 (x, y) = 1<<N (wherein N is non-negative integer value) .b. In one example, a uni-predicted block with sub-block based prediction is divided into sub-blocks with two or more different dividing patterns. For example, the prediction for list L (L= 0 or 1) PL is calculated as where XL is the number of dividing patterns for list L;  is the prediction gener-ated with the ith dividing pattern and is the weighting value of For exam-ple, XL is 2. With the 0th dividing pattern, the block is divided into 4×8 sub-blocks as shown in Fig. 25D. With the 1th dividing pattern, the block is divided into 8×4 sub-blocks as shown in Fig. 25C.c. In one example, a bi-predicted block with sub-block based prediction is considered as a com-bination of two uni-predicted block from L0 and L1 respectively. The prediction from each list can be derived as described in the above example. The final prediction P can be calculated as wherein parameters a and b are two additional weights applied to the two internal prediction blocks. In one example, a and b are both equal to 1.d. In one example, for a multiple hypothesis coded block, for each prediction direction (or refer-ence picture list) , there could be more than one prediction blocks generated by different divid-ing patterns. Multiple prediction blocks may be utilized to generate the final version with addi-tional weights applied. In one example, the additional weights may be set to 1 / M wherein M is the total number of generated prediction blocks.6. Whether and how to apply interweaved prediction can be transmitted from the encoder to the decoder at sequence level, picture level, view level, slice level, Coding Tree Unit (CTU) (a.k.a. Largest Cod-ing Unit (LCU) level, CU level, PU level or TU level or tile level or tile group level or region level which may contain multiple CUs / PUs / Tus / LCUs. The information can be signaled in Sequence Para-meter Set (SPS) , view parameter set (VPS) , Picture Parameter Set (PPS) , Slice Header (SH) , picture header, sequence header, or tile level or tile group level, CTU (a.k.a. LCU) , CU, PU, TU or the first block of a region.a. In one example, interweaved prediction applies to existing sub-block methods like ATMVP, STMVP, FRUC, BIO or affine implicitly. In this example, no additional signaling cost is needed at all.b. In another example, new sub-block merge candidates generated by interweaved prediction are inserted into merge list, e.g., interweaved prediction + ATMVP, interweaved prediction + STMVP, interweaved prediction + FRUC etc.c. In one example, a flag may be signaled to indicate whether interweaved prediction is used or not. In one example, a flag signaled to indicate whether interweaved prediction is used or not, if the current block is affine inter-coded.d. In one example, a flag may be signaled to indicate whether interweaved prediction is used or not, if the current block is affine merge-coded and applies uni-prediction.e. In one example, a flag may be signaled to indicate whether interweaved prediction is used or not, if the current block is affine merge-coded.f. In one example, interweaved prediction may be always used if the current block is affine merge-coded and applies uni-prediction.g. In one example, interweaved prediction may be always used if the current block is affine merge-coded.h. In one example, the flag to indicate whether interweaved prediction is used or not may be in-herited without being signaled.i. In one example, the inheritance may be used if the current block is affine merge-coded.ii. In one example, the flag may be inherited from the flag of the neighbouring block where the affine model is inherited from.iii. In one example, the flag is inherited from a predefined neighboring block such as the left or above neighbouring block.iv. In one example, the flag may be inherited from the first encountered affine-coded neighbouring block.v. In one example, the flag may be inferred to be zero if no neighbouring block is affine-coded.vi. In one example, the flag may be only inherited when the current block applies uni-prediction.vii. In one example, the flag may be only inherited when the current block and the neigh-bouring block to be inherited from are in the same CTU.viii. In one example, the flag may be only inherited when the current block and the neigh-bouring block to be inherited from are in the same CTU row.ix. In one example, the flag may not be inherited from the flag of the neighbouring block when the affine model is derived from a temporal neighboring block.x. In one example, the flag may not be inherited from the flag of a neighboring block which is not located in the same LCU or LCU row or video data processing unit (such as 64x64, or 128x128) .xi. In one example, how to signal and / or derive the flag may depend on the block dimen-sion of the current block and / or coded information.i. In one example, interweaved prediction is not applied if the reference picture is the current picture.i. In one example, the flag to indicate whether interweaved prediction is used or not is not signaled if the reference picture is the current picture.Weighting values7. The weighting values w are fixed. For example, wi (x, y) =1 in eq (15) and eq (16) .8. The weighting values may depend on position as well as the dividing pattern, i.e., wi (x, y) may be dif-ferent for different (x, y) . Alternatively, the weighting values may further depend on the sub-block prediction based coding tools (e.g., affine, or ATMVP) and / or other coded information (e.g., skip or non-skip modes, and / or MV information, et al. ) .9. Weighting values can be transmitted from the encoder to the decoder at sequence level, picture level, slice level, Coding Tree Unit (CTU) (a.k.a. Largest Coding Unit (LCU) level, CU level, or PU level or region level which may contain multiple CUs / PUs / Tus / LCUs. They can be signaled in Sequence Pa-rameter Set (SPS) , Picture Parameter Set (PPS) , Slice Header (SH) , CTU (a.k.a. LCU) , CU or PU or the first block of a region.a. In one alternative solution, furthermore, for some blocks, it may inherit the weighting values from a spatial and / or temporal neighboring block.Partial interweaved predictionFig. 26A to Fig. 26D illustrates examples of partial interweaved prediction. Interweaved prediction is not applied on shaded areas.10. In one embodiment, interweaved prediction is applied to a part of the current block. Prediction samples at some positions are calculated as the weighted sum of two or more sub-block based predictions. Pre-diction samples at other positions are not. For example, these prediction samples are copied from the sub-block based prediction with a certain dividing pattern.a. In one example, the current block is predicted by sub-block based prediction P1 and P2 with dividing pattern D0 and dividing pattern D1, respectively. The final prediction is calculated as P=w0×P0+w1×P1. At some positions, w0 ≠ 0 and w1 ≠ 0. But at some other positions, w0 = 1 and w1 = 0, that is, interweaved prediction is not applied at those positions.b. In one example, interweaved prediction is not applied on four corner sub-blocks as shown in Fig. 26A.c. In one example, interweaved prediction is not applied on the left-most column of sub-blocks and right-most column of sub-blocks as shown in Fig. 26B.d. In one example, interweaved prediction is not applied on the top-most row of sub-blocks and bottom-most row of sub-blocks as shown in Fig. 26C.e. In one example, interweaved prediction is not applied on the top-most row of row of sub-blocks, bottom-most row of sub-blocks the left-most column of sub-blocks and right-most col-umn of sub-blocks as shown in Fig. 26D.f. In one example, whether to and how to apply partial interweaved prediction may depend on the size / shape of the current block.i. For example, interweaved prediction is applied to the whole block if the size of the current block satisfies certain conditions; otherwise, interweaved prediction is applied to a part (or some parts) of the block. The conditions include but not limited to: (sup-pose the width and height of the current block is W and H respectively and T, T1, T2 are integer values) :1. W>=T1 and H >=T2;2. W<=T1 and H<=T2;3. W>=T1 or H >=T2;4. W<=T1 or H<=T2;5. W+H>=T;6. W+H<=T;7. W×H>=T;8. W×H<=T.ii. For example, interweaved prediction is not applied on the left-most column of sub-blocks and right-most column of sub-blocks as shown in Fig. 26B if W>=H; Other-wise, interweaved prediction is not applied on the top-most row of sub-blocks and bottom-most row of sub-blocks as shown in Fig. 26C.iii. For example, interweaved prediction is not applied on the left-most column of sub-blocks and right-most column of sub-blocks as shown in Fig. 26B if W>H; Otherwise, interweaved prediction is not applied on the top-most row of sub-blocks and bottom-most row of sub-blocks as shown in Fig. 26C.g. It is proposed that whether and how to apply interweaved prediction may be different for dif-ferent regions in a block.i. For example, suppose the current block is predicted by sub-block based prediction P1 and P2 with dividing pattern D0 and dividing pattern D1, respectively. The final pre-diction is calculated as P (x, y) =w0×P0 (x, y) +w1×P1 (x, y) . If the position (x, y) be-longs to a sub-block with dimensions S0×H0 with the dividing pattern D0; and be-longs to a sub-block S1×H1 with the dividing pattern D1. If one or several following conditions are satisfied, set w0 = 1 and w1 = 0. (i.e., interweaved prediction is not ap-plied at this position. )1. S1 < T1;2. H1 < T2;3. S1 < T1 and H1 < T2;4. S1 < T1 or H1 < T2;T1 and T2 are integers. For example, T1 = T2 = 4.Encoder issue11. In one embodiment, interweaved prediction is not applied in the motion estimation (ME) process.a. For example, interweaved prediction is not applied in the ME process for the 6-parameter af-fine prediction.b. For example, interweaved prediction is not applied in the ME process if the size of the current block satisfies certain conditions such as (suppose the width and height of the current block is W and H respectively and T, T1, T2 are integer values) :i. W>=T1 and H >=T2;ii. W<=T1 and H<=T2;iii. W>=T1 or H >=T2;iv. W<=T1 or H<=T2;v. W+H>=T;vi. W+H<=T;vii. W×H>=T;viii. W×H<=T.c. For example, interweaved prediction is not applied in the ME process if the current block is split from a parent block, and the parent block does not choose affine mode at encoder.i. Alternatively, affine mode is not checked at encoder if the current block is split from a parent block, and the parent block does not choose affine mode at encoder.MV DerivationIn the following discussion, SatShift (x, n) is defined as Shift (x, n) is defined as Shift (x, n) = (x+ offset0) >>n.In one example, offset0 and / or offset1 are set to (1<<n) >>1 or (1<< (n-1) ) . In another example, offset0 and / or offset1 are set to 0.12. The MV of each sub-block within one dividing pattern may be derived from the affine model (such as with Eq. (1) ) directly, or it may be derived from MVs of sub-blocks within another dividing pattern.a. In one example, the MV of a sub-block B with dividing pattern 0, may be derived from MVs of all or some of the sub-blocks within dividing pattern 1, that overlap with sub-block B.b. Fig. 27A to Fig. 27C show examples of deriving MVs for one dividing pattern from another dividing pattern. In Fig. 27A, MV1 (x, y) of a specific sub-block within dividing pattern 1 is to be derived. Fig. 27B shows dividing pattern 0 (solid) and dividing pattern 1 (dashed) in the block, indicating that there are four sub-blocks with in dividing pattern 0 overlapping with the specific sub-block within dividing pattern 1. Fig. 27C shows the four MVs: MV0 (x-2, y-2) , MV0 (x+2, y-2) , MV0 (x-2, y+2) and MV0 (x+2, y+2) of the four sub-blocks with in dividing pat-tern 0 overlapping with the specific sub-block within dividing pattern 1. Then MV1 (x, y) will be derived from MV0 (x-2, y-2) , MV0 (x+2, y-2) , MV0 (x-2, y+2) and MV0 (x+2, y+2) .c. Suppose MV’ of one sub-block within dividing pattern 1 is derived from MV0, MV1, MV2, …MVk of k-1 sub-blocks within dividing pattern 0. MV’ may be derived as:i. MV’ = MVn, n is any of 0…k.ii. MV’ = f (MV0, MV1, MV2, …, MVk) . f is a linear function.iii. MV’ = f (MV0, MV1, MV2, …, MVk) . f is a non-linear function.iv. MV’ = Average (MV0, MV1, MV2, …, MVk) . Average is an averaging operation.v. MV’ = Median (MV0, MV1, MV2, …, MVk) . Median is an operation to get the me-dian value.vi. MV’ = Max (MV0, MV1, MV2, …, MVk) . Max is an operation to get the maximum value.vii. MV’ = Min (MV0, MV1, MV2, …, MVk) . Min is an operation to get the minimum value.viii. MV’ = MaxAbs (MV0, MV1, MV2, …, MVk) . MaxAbs is an operation to get the val-ue with the maximum absolute value.ix. MV’ = MinAbs (MV0, MV1, MV2, …, MVk) . MinAbs is an operation to get the val-ue with the minimum absolute value.x. Take Fig. 27A to Fig. 27C as an example, MV1 (x, y) may be derived as:1. MV1 (x, y) = SatShift (MV0 (x-2, y-2) +MV0 (x+2, y-2) +MV0 (x-2, y+2) +MV0 (x+2, y+2) , 2) ;2. MV1 (x, y) = Shift (MV0 (x-2, y-2) +MV0 (x+2, y-2) +MV0 (x-2, y+2) +MV0 (x+2, y+2) , 2) ;3. MV1 (x, y) = SatShift (MV0 (x-2, y-2) +MV0 (x+2, y-2) , 1) ;4. MV1 (x, y) = Shift (MV0 (x-2, y-2) +MV0 (x+2, y-2) , 1) ;5. MV1 (x, y) = SatShift (MV0 (x-2, y+2) +MV0 (x+2, y+2) , 1) ;6. MV1 (x, y) = Shift (MV0 (x-2, y+2) +MV0 (x+2, y+2) , 1) ;7. MV1 (x, y) = SatShift (MV0 (x-2, y-2) +MV0 (x+2, y+2) , 1) ;8. MV1 (x, y) = Shift (MV0 (x-2, y-2) + MV0 (x+2, y+2) , 1) ;9. MV1 (x, y) = SatShift (MV0 (x-2, y-2) + MV0 (x-2, y+2) , 1) ;10. MV1 (x, y) = Shift (MV0 (x-2, y-2) + MV0 (x-2, y+2) , 1) ;11. MV1 (x, y) = SatShift (MV0 (x+2, y-2) +MV0 (x+2, y+2) , 1) ;12. MV1 (x, y) = Shift (MV0 (x+2, y-2) +MV0 (x+2, y+2) , 1) ;13. MV1 (x, y) = SatShift (MV0 (x+2, y-2) +MV0 (x-2, y+2) , 1) ;14. MV1 (x, y) = Shift (MV0 (x+2, y-2) +MV0 (x-2, y+2) , 1) ;15. MV1 (x, y) = MV0 (x-2, y-2) ;16. MV1 (x, y) = MV0 (x+2, y-2) ;17. MV1 (x, y) = MV0 (x-2, y+2) ;18. MV1 (x, y) = MV0 (x+2, y+2) .13. How to select the dividing pattern may depend on the width and height of the current block. Fig. 28A to Fig. 28C illustrate examples of choosing dividing patterns depending on block dimensions.a. For example, if width > T1 and height > T2 (e.g. T1=T2=4) , two dividing patterns are selected. Fig. 28A shows an example of two dividing patterns.b. For example, if height <= T2 (e.g. T2=4) , another two dividing patterns are selected. Fig. 28B show an example of two dividing patterns.c. For example, if width <= T1 (e.g. T1= 4) , yet another two dividing patterns are selected. Fig. 28C show an example of two dividing patterns.14. The MV of each sub-block within one dividing pattern of one color component C1 may be derived from MVs of sub-blocks within another dividing pattern of another color component C0.a. For example, C1 refers to color component coded / decoded after another color component, such as Cb or Cr or U or V or R or B.b. For example, C0 refers to color component coded / decoded before another color component, such as Y or G.c. In one example, how to derive MV of a sub-block within one dividing pattern of one color component from MVs of MVs of sub-blocks within another dividing pattern of another color component may depend on the color format, such as 4: 2: 0, or 4: 2: 2, or 4: 4: 4.d. In one example, the MV of a sub-block B in color component C1 with dividing pattern C1Pt (t=0 or 1) , may be derived from MVs of all or some of the sub-blocks in color component C0 within dividing pattern C0Pr (r=0 or 1) , that overlap with sub-block B, after down-scaling or up-scaling the coordinates according to the color format.i. In one example, C0Pr is always equal to C0P0.e. Fig. 29A and Fig. 29B show examples of deriving MVs of sub-blocks in one component with-in a dividing pattern from MVs of sub-block in another component within another dividing pattern. The color format is 4: 2: 0. MVs of sub-blocks in Cb component are derived from MVs of sub-blocks in Y component.i. In Fig. 29A left, MVCb0 (x’, y’) of a specific Cb sub-block B within dividing pattern 0 is to be derived. Fig. 29A right shows four Y sub-blocks with in dividing pattern 0, which are overlapped with Cb sub-block B when down-scaled by 2: 1. Suppose x = 2*x’ and y=2*y’, four MVs: MV0 (x-2, y-2) , MV0 (x+2, y-2) , MV0 (x-2, y+2) and MV0 (x+2, y+2) of the four Y sub-blocks with in dividing pattern 0 are used to derive the MVCb0 (x’, y’) .ii. In Fig. 29B left, MVCb0 (x’, y’) of a specific Cb sub-block B within dividing pattern 1 is to be derived. Fig. 29B right shows four Y sub-blocks with in dividing pattern 0, which are overlapped with Cb sub-block B when down-scaled by 2: 1. Suppose x = 2*x’ and y=2*y’, four MVs: MV0 (x-2, y-2) , MV0 (x+2, y-2) , MV0 (x-2, y+2) and MV0 (x+2, y+2) of the four Y sub-blocks with in dividing pattern 0 are used to derive the MVCb0 (x’, y’) .f. Suppose MV’ of one sub-block of color component C1 is derived from MV0, MV1, MV2, … MVk of k-1 sub-blocks of color component C0. MV’ may be derived as:i. MV’ = MVn, n is any of 0…k.ii. MV’ = f (MV0, MV1, MV2, …, MVk) . f is a linear function.iii. MV’ = f (MV0, MV1, MV2, …, MVk) . f is a non-linear function.iv. MV’ = Average (MV0, MV1, MV2, …, MVk) . Average is an averaging operation.v. MV’ = Median (MV0, MV1, MV2, …, MVk) . Median is an operation to get the me-dian value.vi. MV’ = Max (MV0, MV1, MV2, …, MVk) . Max is an operation to get the maximum value.vii. MV’ = Min (MV0, MV1, MV2, …, MVk) . Min is an operation to get the minimum value.viii. MV’ = MaxAbs (MV0, MV1, MV2, …, MVk) . MaxAbs is an operation to get the val-ue with the maximum absolute value.ix. MV’ = MinAbs (MV0, MV1, MV2, …, MVk) . MinAbs is an operation to get the val-ue with the minimum absolute value.x. Take Fig. 29A and Fig. 29B as an example, MVCbt (x’, y’) t= 0 or 1, may be derived as:1. MVCbt (x’, y’) = SatShift (MV0 (x-2, y-2) +MV0 (x+2, y-2) +MV0 (x-2, y+2) +MV0 (x+2, y+2) , 2) ;2. MVCbt (x’, y’) = Shift (MV0 (x-2, y-2) +MV0 (x+2, y-2) +MV0 (x-2, y+2) +MV0 (x+2, y+2) , 2) ;3. MVCbt (x’, y’) = SatShift (MV0 (x-2, y-2) +MV0 (x+2, y-2) , 1) ;4. MVCbt (x’, y’) = Shift (MV0 (x-2, y-2) +MV0 (x+2, y-2) , 1) ;5. MVCbt (x’, y’) = SatShift (MV0 (x-2, y+2) +MV0 (x+2, y+2) , 1) ;6. MVCbt (x’, y’) = Shift (MV0 (x-2, y+2) +MV0 (x+2, y+2) , 1) ;7. MVCbt (x’, y’) = SatShift (MV0 (x-2, y-2) +MV0 (x+2, y+2) , 1) ;8. MVCbt (x’, y’) = Shift (MV0 (x-2, y-2) + MV0 (x+2, y+2) , 1) ;9. MVCbt (x’, y’) = SatShift (MV0 (x-2, y-2) + MV0 (x-2, y+2) , 1) ;10. MVCbt (x’, y’) = Shift (MV0 (x-2, y-2) + MV0 (x-2, y+2) , 1) ;11. MVCbt (x’, y’) = SatShift (MV0 (x+2, y-2) +MV0 (x+2, y+2) , 1) ;12. MVCbt (x’, y’) = Shift (MV0 (x+2, y-2) +MV0 (x+2, y+2) , 1) ;13. MVCbt (x’, y’) = SatShift (MV0 (x+2, y-2) +MV0 (x-2, y+2) , 1) ;14. MV1 (x, y) = Shift (MV0 (x+2, y-2) +MV0 (x-2, y+2) , 1) ;15. MVCbt (x’, y’) = MV0 (x-2, y-2) ;16. MVCbt (x’, y’) = MV0 (x+2, y-2) ;17. MVCbt (x’, y’) = MV0 (x-2, y+2) ;18. MVCbt (x’, y’) = MV0 (x+2, y+2) .Interweaved Prediction for bi-prediction15. When interweaved prediction is applied on bi-prediction, the following methods may be applied to save the internal bitdepth increased due to different weights:a. For list X (X= 0 or 1) , PX (x, y) = Shift (W0 (x, y) *PX0 (x, y) + W1 (x, y) *PX1 (x, y) , SW) , where PX(x, y) is the prediction for list X, PX0 (x, y) and PX1 (x, y) are the prediction for list X with dividing pattern 0 and dividing pattern 1, respectively. W0 and W1 are integers representing the interweaved prediction weighting values and SW represents the precision of the weighting values.b. The final prediction value is derived as P (x, y) = Shift (Wb0 (x, y) *P0 (x, y) + Wb1 (x, y) *P1 (x, y) , SWB) , where Wb0 and Wb1 are integers used in weighted bi-prediction and SWB is the preci-sion. When there is no weighted bi-prediction, Wb0=Wb1=SWB=1.c. In some embodiments, PX0 (x, y) and PX1 (x, y) may be kept the precision of interpolation fil-tering. For example, they may be unsigned integers with 16 bits. The final prediction value is derived as P (x, y) = Shift (Wb0 (x, y) *P0 (x, y) + Wb1 (x, y) *P1 (x, y) , SWB+PB) , where PB is the additional precision from interpolation filtering, e.g., PB = 6. In this case, W0 (x, y) *PX0 (x, y) or W1 (x, y) *PX1 (x, y) may exceed 16 bits. It is proposed that PX0 (x, y) and PX1 (x, y) are right-shift to a lower precision first, to avoid exceeding 16 bits.i. For example, For list X (X= 0 or 1) , PX (x, y) = Shift (W0 (x, y) *PLX0 (x, y) + W1 (x, y) *PLX1 (x, y) , SW) , where PLX0 (x, y) = Shift (PX0 (x, y) , M) , PLX1 (x, y) = Shift (PX1 (x, y) , M) . And the final prediction is derived as P (x, y) = Shift (Wb0 (x, y) *P0 (x, y) + Wb1 (x, y) *P1 (x, y) , SWB+PB-M) . For example, M is set to be 2 or 3.d. The above mentioned methods may be also applicable to other bi-prediction methods with dif-ferent weighting factors for two reference prediction blocks, such as Generalized Bi-Prediction (GBi, wherein weights could be e.g., 3 / 8, 5 / 8) , weighted prediction (wherein weights could be a very large value) .e. The above mentioned methods may be also applicable to other multiple hypothesis uni-prediction or bi-prediction methods with different weighting factors for different reference prediction blocks.Block size dependents16. Whether and / or how to apply interweaved prediction may depend on block width W and height H.a. In one example, whether and / or how to apply interweaved prediction may depend on the size of VPDU (Video Processing Data Unit which typically represent the maximumly allowed block size for processing in hardware design) .b. In one example, when interweaved prediction is disabled for a certain block dimension (or a block with certain coded information) , the original prediction method may be utilized.i. Alternatively, affine mode may be directly disabled for such kind of blocks.c. In one example, interweaved prediction cannot be used when W>T1 and H> T2. For example, T1 = T2 = 64;d. In one example, interweaved prediction cannot be used when W>T1 or H> T2. For example, T1 = T2 = 64;e. In one example, interweaved prediction cannot be used when W*H>T. For example, T = 64 *64;f. In one example, interweaved prediction cannot be used when W<T1 and H< T2. For example, T1 = T2 = 16;g. In one example, interweaved prediction cannot be used when W<T1 or H> T2. For example, T1 = T2 = 16;h. In one example, interweaved prediction cannot be used when W*H<T. For example, T = 16 *16;i. In one example, for a sub-block which is not located at block boundary (e.g., coding unit) , in-terweaved affine may be disabled for this sub-block. Alternatively, furthermore, the prediction results with original affine prediction method may be directly used as the final prediction for this sub-block.j. In one example, interweaved prediction is used in a different way when W>T1 and H> T2. For example, T1 = T2 = 64;k. In one example, interweaved prediction is used in a different way when W>T1 or H> T2. For example, T1 = T2 = 64;l. In one example, interweaved prediction is used in a different way when W*H>T. For example, T = 64 *64;m. In one example, interweaved prediction is used in a different way when W<T1 and H< T2. For example, T1 = T2 = 16;n. In one example, interweaved prediction is used in a different way when W<T1 or H> T2. For example, T1 = T2 = 16;o. In one example, interweaved prediction is used in a different way when W*H<T. For example, T = 16 *16;p. In one example, when H > X (e.g. H is equal to 128, X = 64) , the interweaved prediction is not applied on samples belonging to a sub-blocks crossing the upper W* (H / 2) partition and the lower W* (H / 2) partition of the current block;q. In one example, when W > X (e.g. W is equal to 128, X = 64) , the interweaved prediction is not applied on samples belonging to a sub-blocks crossing the left (W / 2) *H partition and the right (W / 2) *H partition of the current block;r. In one example, when W > X and H > Y (e.g. W = H = 128, X=Y=64) ,i. the interweaved prediction is not applied on samples belonging to a sub-blocks cross-ing the left (W / 2) *H partition and the right (W / 2) *H partition of the current block;ii. the interweaved prediction is not applied on samples belonging to a sub-blocks cross-ing the upper W* (H / 2) partition and the lower W* (H / 2) partition of the current block;s. In one example, interweaved prediction is only enabled for blocks with specific sets of width and / or height.t. In one example, interweaved prediction is only disabled for blocks with specific sets of width and / or height.u. In one example, interweaved prediction is only used for specific types of picture / slice / tile group / tile / or other kinds of video data units.i. For example, interweaved prediction is only used for P picture or B picture;ii. For example, a flag is signaled to indicate whether interweaved prediction can be used or not in the header of picture / slice / tile group / tile.1. For example, this flag is signaled only if affine prediction is allowed.17. It is proposed that a message is signaled to indicate whether to apply the dependency between whether  / how to apply interweaved prediction and the width and height. The message may be signaled in SPS / VPS / PPS / Slice header / picture header / tile / tile group header / CTUs / CTU rows / multiple CTUs / or other kinds of video processing units.18. In one example, when interweaved prediction is used, bi-prediction is disallowed.a. For example, when interweaved prediction is used, the index to indicate whether bi-prediction is used is not signaled.b. Alternatively, indications of whether bi-prediction is disallowed may be signaled in SPS / VPS / PPS / Slice header / picture header / tile / tile group header / CTUs / CTU rows / multiple CTUs.19. It is proposed to further refine sub-blocks’ motion information based on motion information derived from two or multiple patterns.a. In one example, the refined motion information may be utilized for predicting following blocks to be coded.b. In one example, the refined motion information may be utilized in the filtering process, such as Deblock, SAO, ALF.c. Whether to store the refined information may be based on the position of sub-block relative to the whole block / CTU / CTU row / tile / slice / tile groups / picture.d. Whether to store the refined information may be based on the coded mode of current block and / or neighboring blocks.e. Whether to store the refined information may be based on the dimension of current block.f. Whether to store the refined information may be based on picture / slice types / reference picture lists etc. al.20. It is proposed that whether to and / or how to apply deblocking process or other kinds of filtering process (such as SAO, Adaptive loop filter) may depend on whether interweaved prediction is applied or not.a. In one example, deblocking is not conducted on an edge between two sub-blocks in one divi-sion pattern for a block if the edge is inside a sub-block in another division pattern for a block.b. In one example, deblocking is made weaker on an edge between two sub-blocks in one divi-sion pattern for a block if the edge is inside a sub-block in another division pattern for a block.i. In one example, bS [xDi] [yDj] described in the VVC deblocking process is de-creased for such a edge.ii. In one example, β described in the VVC deblocking process is decreased for such a edge.iii. In one example, Δ described in the VVC deblocking process is decreased for such a edge.iv. In one example, tC described in the VVC deblocking process is decreased for such a edge.c. In one example, deblocking is made stronger on an edge between two sub-blocks in one divi-sion pattern for a block if the edge is inside a sub-block in another division pattern for a block.i. In one example, bS [xDi] [yDj] described in the VVC deblocking process is in-creased for such a edge.ii. In one example, β described in the VVC deblocking process is increased for such a edge.iii. In one example, Δ described in the VVC deblocking process is increased for such a edge.iv. In one example, tC described in the VVC deblocking process is increased for such an edge.21. It is proposed that whether to and / or how to apply local illumination compensation or weighted predic-tion to a block / sub-block may depend on whether interweaved prediction is applied or not.a. In one example, when one block is coded with interweaved prediction mode, it is disallowed to apply local illumination compensation or weighted prediction.b. Alternatively, furthermore, there is no need to signal indications of enabling local illumination compensation if interweaved prediction is applied to a block / sub-block.22. It is proposed that when weighted prediction is applied to one block or sub-block, bi-directional optical flow (BIO) may be skipped.a. In one example, BIO may be applied to blocks with weighted prediction.b. In one example, BIO may be applied to blocks with weighted prediction, however, certain conditions shall be satisfied.i. In one example, it is required that at least one parameter shall be within one range, or equal to certain values.ii. In one example, certain reference pictures restrictions may be applied.2.13. Geometric partitioning mode (GPM)In VVC, a geometric partitioning mode is supported for inter prediction. The geometric partitioning mode is signalled using a CU-level flag as one kind of merge mode, with other merge modes including the regular merge mode, the MMVD mode, the CIIP mode and the subblock merge mode. In total 64 partitions are supported by geometric partitioning mode for each possible CU size w×h=2m×2n with m, n ∈ {3…6} excluding 8x64 and 64x8.When this mode is used, a CU is split into two parts by a geometrically located straight line (Fig. 30) . The lo-cation of the splitting line is mathematically derived from the angle and offset parameters of a specific parti-tion. Each part of a geometric partition in the CU is inter-predicted using its own motion; only uni-prediction is allowed for each partition, that is, each part has one motion vector and one reference index. The uni-prediction motion constraint is applied to ensure that same as the conventional bi-prediction, only two motion compen-sated prediction are needed for each CU.Fig. 30 illustrates examples of the GPM splits grouped by identical angles.If geometric partitioning mode is used for the current CU, then a geometric partition index indicating the parti-tion mode of the geometric partition (angle and offset) , and two merge indices (one for each partition) are fur-ther signalled. The number of maximum GPM candidate size is signalled explicitly in SPS and specifies syntax binarization for GPM merge indices. After predicting each of part of the geometric partition, the sample values along the geometric partition edge are adjusted using a blending processing with adaptive weights. This is the prediction signal for the whole CU, and transform and quantization process will be applied to the whole CU as in other prediction modes. Finally, the motion field of a CU predicted using the geometric partition modes is stored.2.13.1. Uni-prediction candidate list constructionThe uni-prediction candidate list is derived directly from the merge candidate list constructed according to the extended merge prediction process. Denote n as the index of the uni-prediction motion in the geometric uni-prediction candidate list. The LX motion vector of the n-th extended merge candidate, with X equal to the par-ity of n, is used as the n-th uni-prediction motion vector for geometric partitioning mode. These motion vectors are marked with “x” in Fig. 31. In case a corresponding LX motion vector of the n-the extended merge candi-date does not exist, the L (1 -X) motion vector of the same candidate is used instead as the uni-prediction mo-tion vector for geometric partitioning mode.Fig. 31 illustrates Uni-prediction MV selection for geometric partitioning mode.2.13.2. Blending along the geometric partitioning edgeAfter predicting each part of a geometric partition using its own motion, blending is applied to the two predic-tion signals to derive samples around geometric partition edge. The blending weight for each position of the CU are derived based on the distance between individual position and the partition edge.The distance for a position (x, y) to the partition edge are derived as: where i, j are the indices for angle and offset of a geometric partition, which depend on the signaled geometric partition index. The sign of ρx, j and ρy, j depend on angle index i.The weights for each part of a geometric partition are derived as following:wIdxL (x, y) =partIdx ? 32+d (x, y) : 32-d (x, y)    (2-25) w1 (x, y) =1-w0 (x, y)     (2-27) .The partIdx depends on the angle index i. One example of weigh w0 is illustrated below.Fig. 32 illustrates exemplified generation of a bending weight w0 using geometric partitioning mode.2.13.3. Motion field storage for geometric partitioning modeMv1 from the first part of the geometric partition, Mv2 from the second part of the geometric partition and a combined Mv of Mv1 and Mv2 are stored in the motion filed of a geometric partitioning mode coded CU.The stored motion vector type for each individual position in the motion filed are determined as:sType = abs (motionIdx) < 32 ? 2∶ (motionIdx≤0 ? (1 -partIdx ) : partIdx ) (2-28)where motionIdx is equal to d (4x+2, 4y+2) . The partIdx depends on the angle index i.If sType is equal to 0 or 1, Mv0 or Mv1 are stored in the corresponding motion field, otherwise if sType is equal to 2, a combined Mv from Mv0 and Mv2 are stored. The combined Mv are generated using the follow-ing process:1) If Mv1 and Mv2 are from different reference picture lists (one from L0 and the other from L1) , then Mv1 and Mv2 are simply combined to form the bi-prediction motion vectors.2) Otherwise, if Mv1 and Mv2 are from the same list, only uni-prediction motion Mv2 is stored.2.14. Spatial geometric partitioning mode (SGPM)SGPM is an intra mode that resembles the inter coding tool of GPM, where the two prediction parts are gener-ated from intra predicted process. In this mode, a candidate list is built with each entry containing one partition split and two intra prediction modes as shown in Fig. 33.26 partition modes and 3 intra prediction modes are used to form the combinations. the length of the candidate list is set equal to 16. The selected candidate index is signalled.Fig. 33 illustrates spatial GPM candidates.The list is reordered using template (Fig. 34) where SAD between the prediction and reconstruction of the template is used for ordering. The template size is fixed to 1.Fig. 34 illustrates a GPM template.For each partition mode, an IPM list is derived for each part using the same intra-inter GPM list derivation. The IPM list size is set to 3. In the list, TIMD derived mode is replaced by 2 derived modes with horizontal and vertical orientations.The SGPM mode is applied with a restricted blocks size: 4<=width<=64, 4<=height<=64, width<height*8, height<width*8, width*height>=32.A PPS flag is coded to indicate whether no blending of two intra predictions is allowed. When this PPS flag is set to false, the following adaptive blending is also used for spatial GPM, where blending depth τ shown in Fig. 17 is derived as follows:· If min (width, height) ==4, 1 / 2 τ is selected.· else if min (width, height) ==8, τ is selected.· else if min (width, height) ==16, 2 τ is selected.· else if min (width, height) ==32, 4 τ is selected.· else, 8 τ is selected.Otherwise (the PPS flag is set to true) , 1 / 4 τ is always used for spatial GPM coded blocks to make sure no blending is used when SGPM block has partition angle completely horizontal or vertical, and much narrower blending width is used when SGPM block has other partition angles. It is noted that the flag is set to true in current Common Test Conditions (CTC) for the screen content videos.2.15. Geometric partitioning mode (GPM) with adaptive blendingIn VVC, the final prediction samples are generated with by blending the prediction of the two prediction sig-nals using weighted average. Two integer blending matrices (W0 and W1) are used. The weights in the GPM blending matrices are derived from the ramp function based on the displacement from a predicted sample posi-tion to the GPM partitioning boundary. The blending area size is fixed to two (2 samples on each side of the GPM partition split boundary) .The blending process in ECM is improved by adding four extra blending area sizes (quarter, half, double, and quadrupole of the existing area size) as shown in Fig. 35. A CU level flag is coded to signal the selected blend-ing area size is signalled. Furthermore, the extended weighting precision is utilized, in which the maximum value of the weighs is changed from 8 (in VVC) to 32 to accommodate the extended blending area sizes. Fig. 35 illustrates the ramp function for the weights for GPM blending based on the displacement (d) from a predicted sample position to the GPM partitioning boundary and the blending area size (τ) .3. ProblemsExisting CIIP and GPM method have the following problems:1) In VVC and ECM, CIIP allows only regular merge candidates as inter component, while subblock-based motion candidate, i.e., affine and SbTMVP, may bring additional benefits for blocks with com-plex motion.2) How to blend subblock-based motion prediction with intra prediction and how the subblock-based CIIP interacts with other coding tools could be further specified.3) In ECM, an universal blending width candidate list is utilized by all the coding blocks. An adaptive blending width candidate list construction scheme which considers block dimension may bring addi-tional benefits.4. Detailed solutionsIn this disclosure it is proposed to further improve CIIP by allowing subblock-based prediction as inter com-ponent. In particular, intra prediction and subblock-based inter prediction can be blended to form the CIIP pre-diction.The detailed embodiments below should be considered as examples to explain general concepts. These em-bodiments should not be interpreted in a narrow way. Furthermore, these embodiments can be combined in any manner.The terms ‘video unit’ or ‘coding unit’ or ‘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. The term “subblock-based coding tools” may rep-resent affine, SbTMVP, and the corresponding variants, and etc.In this disclosure, regarding “a block coded with mode N” , here “mode N” may be a prediction mode (e.g., MODE_INTRA, MODE_INTER, MODE_PLT, MODE_IBC, and etc. ) , or a coding technique (e.g., DIMD, TIMD, PDPC, CCLM, CCCM, GLM, intraTMP, AMVP, SMVD, Merge, BDOF, PROF, DMVR, AMVR, TM, Affine, CIIP, GPM, spatial GPM, SGPM, GPM inter-inter, GPM intra-intra, GPM inter-intra, MHP, GEO, TPM, MMVD, BCW, HMVP, SbTMVP, LIC, OBMC, ALF, deblocking, SAO, bilateral filter, LMCS, and the corresponding variants, and etc. ) . In the following discussion, The SE may be binarized as a fixed length code, an EG (x) code, a unary code, a truncated unary code, a truncated binary code, etc. It may be signed or un-signed.It is noted that the terminologies mentioned below are not limited to the specific ones defined in existing stan-dards. Any variance of the coding tool is also applicable.1. The prediction that produced by a first coding tool may be blended with that of a second coding to form a third prediction.a) In one example, the first coding tool may be subblock-based method, e.g., affine, SbTMVP and so on.b) In one example, the second coding tool may be regular intra (Pla-nar / DC / angular)  / TIMD / DIMD / ISP / PDPC / MIP / IBC / regular inter, and so on.2. It is proposed to use subblock-based coding tools to generate the inter component of CIIP, i.e., subblock-based CIIP.a) In one example, a first prediction may be generated with affine motion or SbTMVP, and a second prediction may be generated by intra mode, then the two predictions are blended with weighted-average to produce the final prediction of subblock-based CIIP.b) In one example, the intra mode may be Planar / DC / angular / MIP / ISP / IBC / Intra TMP, etc.c) In one example, the intra mode may be derived based on TIMD / DIMD / Intra TMP, etc.d) In one example, the intra component of subblock-based CIIP may be processed by PDPC.3. A first subblock-based motion list may be constructed to provide motion information for subblock-based CIIP.a) In one example, the first subblock-based motion list may comprise at least one affine and / or at least one SbTMVP candidate (s) .i. In one example, specifically, the first subblock-based motion list may include at least one adja-cent / non-adjacent / history-based / regression-based / zero affine candidates.ii. In one example, specifically, the first subblock-based motion list may include at least one SbTMVP candidates.1) In one example, multiple SbTMVP candidates may appear in the list, which may be col-lected from at least one collocated frame.b) In one example, alternatively, the first subblock-based motion list may comprise only affine or SbTMVP candidates.c) In one example, the number of candidates in the list may not exceed a constant or an adaptively de-termined number.d) In one example, the first subblock-based motion list may be the same as a second subblock-based motion list that is used in subblock-based merge / AMVP mode.i. Alternatively, the first and second subblock-based motion lists may be different.1) In one example, the first and second subblock-based motion lists may be constructed with different maximum allowed candidate numbers.2) In one example, the first and second subblock-based motion lists may be constructed with different candidate types.3) In one example, the first subblock-based motion lists may be constructed by picking at least one candidate from the second subblock-based motion list.4. A first subblock-based motion list that built for subblock-based CIIP may be reordered based on certain metric after constructed.a) In one example, template matching or bilateral matching cost may be used to reorder the list.i. In one example, specifically, template matching cost may be used to reorder the list if recon-structed template region of the current block exists.1) In one example, alternatively, the list may not be reordered if reconstructed template re-gion of the current block doesn’t exist.b) In one example, a first subblock-based motion list for subblock-based CIIP may be reordered in a different way as that of a second subblock-based motion list that built for subblock-based merge / AMVP mode.i. In one example, the cost of at least one affine candidate is derived based on TM.ii. In one example, the cost of at least one SbTMVP candidate is derived based on TM.iii. In one example, for at least one SbTMVP candidate in the list, no TM cost is derived and / or a default cost value may be directly assigned to it / them.5. An index indicating specific candidate in the subblock-based motion list may be signalled in the bitstream.a) In one example, the candidate specified by an index may be used to provide subblock-based motion information and / or motion prediction.i. In one example, if the candidate specified by the index is an affine candidate, it may firstly be refined by TM or DMVR before used to generate inter prediction.1) In one example, if the specified candidate is a uni-predicted affine candidate, then TM may be used to refine the candidate, e.g., TM based CPMV refinement, and the refined candi-date is used to provide prediction.2) In one example, alternatively, if the specified candidate is a bi-predicted affine candidate, then DMVR may be used to refine the candidate, and the refined candidate is used to pro-vide prediction.ii. In one example, alternatively, no TM or DMVR processing is used to refine the specified affine candidate.b) In one example, no candidate index is signalled in the bitstream.i. In one example, encoder and decoder may generate a same subblock-based motion candidate based on a predefined rule, which is used to provide inter prediction.1) In one example, specifically, after subblock-based motion list is constructed, it may be re-ordered based on certain metrics, and the candidate that locates in a fixed position (e.g., the first / last / middle or any other position) may be used by default.6. At least one syntax (or flag) indicating the usage of subblock-based CIIP may be signalled in the bit-stream.a) In one example, at least one block level subblock-based CIIP flag may be signalled in the bitstream.b) In one example, at least one subblock-based CIIP flag in sequence level / group of pictures lev-el / picture level / slice level / tile group level, such as in sequence header / picture head-er / SPS / VPS / DPS / DCI / PPS / APS / slice header / tile group header may be signalled in the bitstream.c) In one example, whether subblock-based CIIP flag is signalled or not, or whether subblock-based CIIP is applied or not may depend on the value of at least one another syntax.i. In one example, whether a subblock-based CIIP flag is signalled or not, or whether subblock-based CIIP is applied or not may depend on the value of at least one another sequence lev-el / group of pictures level / picture level / slice level / tile group level syntax.1) In one example, whether a subblock-based CIIP flag is signalled or not may depend on the value of syntax that indicates whether CIIP and / or affine and / or SbTMVP is enabled or not.ii. In one example, whether a subblock-based CIIP flag is signalled or not, or whether subblock-based CIIP is applied or not may depend on the value of at least one another block level syntax.1) In one example, specifically, a subblock-based CIIP flag may be signalled only when CIIP / CIIP-PDPC / CIIP-TM / affine / SbTMVP flag is true or false.2) In one example, a first flag indicating the usage of CIIP (i.e., CIIP flag) may be signalled, if this flag is true, a second flag indicating the usage of subblock-based CIIP (i.e., sub-block-based CIIP flag) may be signalled. If subblock-based CIIP flag is true, an index in-dicating subblock-based motion candidate may be signalled. Otherwise, if subblock-based CIIP flag is true, a third flag (i.e., CIIP-TM) may be signalled.a) In one example, alternatively, a first flag indicating the usage of CIIP (i.e., CIIP flag) may be signalled, if this flag is true, a second flag indicating the usage of CIIP-TM (i.e., CIIP-TM flag) may be signalled. If CIIP-TM flag is false, a third flag indicating the usage of subblock-based CIIP (i.e., subblock-based CIIP flag) may be signalled. If subblock-based CIIP flag is true, an index indicating subblock-based motion candi-date may be signalled.iii. In one example, whether a subblock-based CIIP flag is signalled or not, or whether subblock-based CIIP is applied or not, may depend on the value of at least one syntax in sequence head-er / picture header / SPS / VPS / DPS / DCI / PPS / APS / slice header / tile group header is true or false.d) In one example, whether another flag is signalled or not may depend on the value of subblock-based CIIP flag.i. In one example, whether the flag indicating the usage of CIIP-TM / CIIP-PDPC and / or any other coding tool is signalled or not may depend on the value of subblock-based CIIP flag.1) In one example, when subblock-based CIIP flag is true, no CIIP-TM flag is signalled.a) In one example, alternatively, if subblock-based CIIP flag is false, a CIIP-TM flag is signalled.b) In one example, alternatively, a CIIP-TM flag is signalled no matter if subblock-based CIIP flag is true or false.2) In one example, when subblock-based CIIP flag is true, no CIIP-PDPC flag is signalled, and / or regular intra or PDPC intra is used by default.a) In one example, alternatively, if subblock-based CIIP flag is false, a CIIP-PDPC flag is signalled.b) In one example, alternatively, a CIIP-PDPC flag is signalled no matter if subblock-based CIIP flag is true or false.e) In one example, whether subblock-based CIIP flag is signalled may depend on the use condition of at least one another coding tool.i. In one example, a subblock-based CIIP flag may be signalled or subblock-based CIIP may be applied only when CIIP and / or affine, and / or SbTMVP is eligible to the current block.ii. In one example, a subblock-based CIIP flag is signalled or subblock-based CIIP is applied only when block dimension (e.g., width / height / ratio of width and height / block area) satisfies certain conditions.7. On the blending of subblock-based CIIP mode.a) In one example, a same blending method that used by regular CIIP / CIIP-TM / CIIP-PDPC may be used by subblock-based CIIP.i. In one example, alternatively, a different blending method may be used by subblock-based CIIP.1) In one example, a first blending method may be used by a first CIIP-related methed. While a second blending method may be used by a second CIIP-related method.a) In one example, position-depend weight factor may be used by a first blending method. While a constant weighting factor may be used by asecond blending method.b) In one example, both blending methods may utilize position-dependent (or constant) weighting factor, but the factors of at least one specific position in the respective weighting factor matrics may be different for the two blending methods.b) In one example, the blending weights may be position-dependent within a block.i. In one example, specifically, different locations may have different blending weights within the block.ii. In one example, a constant blending weight may be used for all the locations within the block.c) In one example, the blending weights matrix may be intra-mode-dependent.i. In one example, specifically, different blending weights matrix may be used depending on whether intra angular mode is near-vertical or near-horizontal.8. For example, how to apply the sub-block-based prediction may be conditioned depending on whether it is used in subblock-based CIIP.a) For example, the sub-block size may be conditioned.b) For example, whether to and / or how to applying an operation may be conditioned.i. The operation may be PROF.ii. The operation may be Interweaved affine.1) In one example, different affine prediction methods may be used to generate the subblock-based prediction for different affine-related modes.a) In one example, a first affine prediction method is used to generate the subblock-based prediction for a first affine-related mode. While a second affine prediction gen-eration method is used for a second affine-related mode.i. In one example, a first affine prediction method may be Interweaved affine, and / or a second affine prediction method may be subblock-based or pixel-based affine.b) In one example, whether Interweaved affine is used to generate subblock-based pre-diction may depend on whether subblock-based CIIP is used or not.i. In one example, Interweaved affine may be used to generate the subblock-based prediction for subblock-based CIIP mode, while an another method is used to generate the subblock-based prediction for other modes.ii. In one example, alternatively, Interweaved affine may be used to generate the subblock-based prediction when subblock-based CIIP mode is not used.iii. The operation may be OBMC.1) In one example, whether OBMC is applied to generate subblock-based prediction may be dependent on whether it is used in subblock-based CIIP.a) In one example, specifically, no OBMC processing is performed to generate the sub-block-based prediction for subblock-based CIIP.b) In one example, alternatively, OBMC processing is performed by default to generate the subblock-based prediction for subblock-based CIIP.c) In one example, alternatively, whether OBMC processing is performed to generate the subblock-based prediction for subblock-based CIIP may depend on the inherited information such as OBMC flag of the inherited merge candidate.iv. The operation may be template matching (TM)1) In one example, whether TM is applied to generate subblock-based prediction may depend on whether it is used in subblock-based CIIP.a) In one example, specifically, no TM operation is performed to refine the CPMV (for affine) or motion shift (for SbTMVP) before generating the subblock-based predic-tion for subblock-based CIIP.b) In one example, alternatively, TM processing is performed by default to refine the CPMV (for affine) or motion shift (for SbTMVP) before generating the subblock-based prediction for subblock-based CIIP.v. The operation may be DMVR.1) In one example, whether DMVR is applied to generate sub-block-based prediction may be dependent on whether it is used in subblock-based CIIP.a) In one example, specifically, no DMVR processing is performed to refine the CPMV (for affine) before generating the subblock-based prediction for subblock-based CIIP.b) In one example, alternatively, DMVR is performed by default to refine the CPMV (for affine) before generating the subblock-based prediction for subblock-based CIIP.9. Subblock-based DMVR or BDOF may be applied before generating the subblock-based prediction for subblock-based CIIP.a) In one example, for a bi-predicted subblock-based candidate, after initial subblock-based MV is de-rived, it may be further refined based on DMVR or BDOF, then the adjusted MV is used to generate the subblock-based prediction for subblock-based CIIP.b) In one example, alternatively, for subblock-based CIIP, no DMVR or BDOF is performed to adjust the initial MV for subblock-based prediction generation. Whereas for other affine-related modes, DMVR or BDOF may be applied by default.10. It is proposed that at least one affine information used in a first block, which is not an affine-merge coded or an affine-AMVP coded block, may be stored.a) In one example, the first block may be coded with GPM mode.i. In one example, affine motion compensation may be applied to generate the GPM prediction for the first block.b) In one example, the first block may be coded with CIIP or subblock-based CIIP mode.i. In one example, affine motion compensation may be applied to generate the CIIP prediction for the first block.c) In one example, the first block may be coded with MHP mode.i. In one example, affine motion compensation may be applied to generate the MHP prediction for the first block.d) In one example, the stored affine model may be utilized by at least one block coded / decoded after the first block.e) In one example, the affine information may comprise:i. Inter direction (uni from list 0, uni from list 1, or bi) ;ii. CPMVs (such as CPMVs at top-left, top-right and bottom-left corners) ;iii. Affine parameters (such as a, b, c, d, e, f in Eq. (1) and Eq. (2) . )iv. Reference index to list 0;v. Reference index to list 1;vi. Local Illumination Compensation (LIC) flag;vii. Overlapped Block Motion Compensation (OBMC) flag;viii. bi-prediction with coding unit level weights (BCW) index;ix. Affine type (4-parameter or 6-parameter affine) ;x. Merge type (affine or sbTMVP) ;xi. Collocated picture index.11. Affine information used in a first block coded with subblock-based CIIP may be used by blocks coded / decoded after the first block.a) In one example, the affine information of a subblock-based CIIP coded block may be put into the history-parameter table (HPT) .i. In one example, HPT may be updated after encoding / decoder a subblock-based CIIP coded block.b) In one example, the affine information of a subblock-based CIIP coded block may be fetched and put into the affine merge / AMVP candidate list of a block coded / decoded after the first block.c) In one example, the affine information of a subblock-based CIIP coded block may be fetched and put into the affine candidate list of a second block coded with subblock-based CIIP mode or affine-GPM mode.12. In one example, when trying to put one subblock-based CIIP inherited candidate into the new candidate list, it may be compared with at least one candidate already in the new candidate list.a) For example, the subblock-based CIIP inherited candidate may not be put into the new candidate list if it is the same to at least one candidate already in the new candidate list.b) For example, the subblock-based CIIP inherited candidate may not be put into the new candidate list if it is similar to at least one candidate already in the new candidate list.13. When constructing an affine list including at least one affine candidate, such as a sub-block merge list or an affine merge list or an affine AMVP list or an affine list for GPM or an affine list for subblock-based CIIP, a specific sub-block or block covering a specific position adjacent or non-adjacent to the current block (such as A0, A1, B0, B1, and B2 in Fig. 8) may be checked with more than one mode, in a specific order.a) For example, whether the specific sub-block or block is affine coded (such as affine merge coded or affine AMVP coded) , is checked firstly.i. For example, if the specific sub-block or block is affine coded, the affine information stored in or associated to the specific sub-block or block may be used to generate an affine candidate for the affine list.b) For example, whether the specific sub-block or block is GPM-affine or subblock-based CIIP coded, may be checked secondly.i. For example, if the specific sub-block or block is GPM-affine coded or subblock-based CIIP coded, the affine information stored in or associated to the specific sub-block or block may be used to generate an affine candidate for the affine list.14. In one example, when constructing an affine list including at least one affine candidate, such as a sub-block merge list or an affine merge list or an affine AMVP list or an affine list for GPM or an affine list for subblock-based CIIP, a first sub-block or block covering a specific position adjacent or non-adjacent to the current block (such as A0, A1, B0, B1, and B2 in Fig. 8) may be checked to generate a candidate from a subblock-based CIIP coded block at a specific step in the list construction.a) E.g. the first sub-block or block may be checked to generate a candidate from a subblock-based CIIP coded block immediately after checking a specific inherited affine candidate from adjacent block.b) E.g. the first sub-block or block may be checked to generate a candidate from a subblock-based CIIP coded block immediately after checking a specific inherited affine candidate from non-adjacent block.c) E.g. the first sub-block or block may be checked to generate a candidate from a subblock-based CIIP coded block immediately after checking a specific RMVF affine candidate.d) E.g. the first sub-block or block may be checked to generate a candidate from a subblock-based CIIP coded block immediately after checking a specific constructed affine candidate.e) E.g. the first sub-block or block may be checked to generate a candidate from a subblock-based CIIP coded block immediately after checking temporal inherited affine candidate.f) E.g., the first sub-block or block may be checked to generate a candidate from a subblock-based CIIP coded block immediately after checking a history-based affine candidate.15. It is proposed that a first SE related to CIIP may be coded with more than one context.a) In one example, the first SE may be the CIIP merge / MMVD index.b) In one example, the first SE may indicate the usage of CIIP-PDPC / CIIP-TM / subblock-based CIIP / CIIP-MMVD.c) In one example, the SE may be binarized into N bins denoted as B0, B1, …, BN-1. In one example, Bn and Bm may be coded with different contexts if n ! = m.i. In one example, B0, B1, …, BW may be coded with different contexts denoted as C0, C1, …, CW, respectively, while BW, BW+1, …, BN-1 may share the same context denoted as CW+1. W is an in-teger such as 1, or 2, or 3, or 4, or 5, or 6, or 7.ii. In one example, B0, B1, …, BW may be coded with different contexts denoted as C0, C1, …, CW, respectively, while BW, BW+1, …, BN-1 may be bypass coded. W is an integer such as 1, or 2, or 3, or 4, or 5, or 6, or 7.16. It is proposed that at least one context used to code a first SE related to CIIP may be selected based on coding information.a) In one example, the first SE may be the CIIP merge / MMVD index.b) In one example, the first SE may indicate the usage of CIIP-PDPC / CIIP-TM / subblock-based CIIP / CIIP-MMVD.c) In one example, the context selection may depend on whether subblock-based CIIP is used.i. For example, the context (s) used to code the CIIP merge / MMVD index of a CIIP block may be different when subblock-based CIIP is used.ii. For example, the context (s) used to indicate the usage of CIIP-PDPC / CIIP-TM / subblock-based CIIP / CIIP-MMVD of a CIIP block may be different when subblock-based CIIP is used.d) In one example, the context selection may depend on whether CIIP-PDPC / CIIP-TM / subblock-based CIIP / CIIP-MMVD is used or not.e) In one example, the context selection may depend on the QP.f) In one example, the context selection may depend on the slice type.17. It is proposed that at least one context used to code a first SE related to CIIP may be selected based on coding information of at least one neighboring block.a) In one example, the first SE may be the CIIP merge index.b) In one example, the first SE may be the CIIP-MMVD index.c) In one example, the first SE may indicate the usage of CIIP-PDPC / CIIP-TM / subblock-based CIIP / CIIP-MMVD.d) In one example, the context to code an SE may be selected from a candidate set including more than one candidate contexts.i. In one example, the candidate set may include three members denoted as {C [0] , C [1] , C [2] } , and the selected context is C [S] .1) S may depend on coding modes of at least one neighbouring block.2) For example, S is initialized to be 0. If the left neighbouring block is available and satisfies a specific condition, S is increased by 1; If the above neighbouring block is available and satisfies a specific condition, S is increased by 1.3) In one example, SE may be the subblock-based CIIP flag.4) In one example, the specific condition may be whether the neighbouring block is affine-coded.a) For example, a block may be considered as affine coded if it is coded with affine-AMVP mode.b) For example, a block may be considered as affine coded if it is coded with affine-merge mode.c) In one example, a block may be decoded as affine coded if its subblock-based CIIP is true.18. In one example, the context used to code affine flag of a block may depend on whether a neighbouring block is coded with subblock-based CIIP mode.a) In one example, the context to code the affine flag may be selected from a candidate set including more than one candidate context.b) In one example, the candidate set may include three members denoted as {C [0] , C [1] , C [2] } , and the selected context is C [S] .i. For example, S is initialized to be 0. If the left neighbouring block is available and satisfies a specific condition, S is increased by 1; If the above neighbouring block is available and satisfies a specific condition, S is increased by 1.ii. In one example, the specific condition may be whether the neighbouring block is affine-coded.1) For example, a block may be considered as affine coded if it is coded with affine-AMVP mode.2) For example, a block may be considered as affine coded if it is coded with affine-merge mode.3) In one example, a block may be decoded as affine coded if its subblock-based CIIP flag is true.c) For example, the context may be selected based on the number (denoted as N) of available affine-coded neighbouring blocks.i. For example, a first context may be used if N <= T and a second context may be used if N>T. T is an integer such as 0, or 1, or 2, or 3, or 4, or 5, or 6.ii. Five neighbouring blocks as in Fig. 1 or seven neighbouring samples as in Fig. 10 may be in-cluded.iii. For example, a block may be considered as affine coded if it is coded with affine-AMVP mode.iv. For example, a block may be considered as affine coded if it is coded with affine-merge mode.v. In one example, a block may be decoded as affine coded if its subblock-based CIIP flag is true.19. The maximum allowed value of a first SE may depend on whether subblock-based CIIP is used.a) In one example, the first SE may be the CIIP merge index.b) In one example, the first SE may be the CIIP-MMVD index.c) In one example, the first SE may indicate the usage of CIIP-PDPC / CIIP-TM / subblock-based CIIP / CIIP-MMVD.d) The maximum allowed value may determine the last valid codeword of the SE if it is coded with a truncated unary code such as a truncated unary code or a truncated binary code.e) For example, the allowed value of the first SE may be signalled such as in VPS / SPS / PPS / picture header / slice header for the affine-coded case and the non-affine-coded case individually.20. In one example, the maximum allowed value of a first SE may be determined based on the number (de-noted as N) of available affine-coded neighbouring blocks.a) In one example, the first SE may be the CIIP merge index.b) In one example, the first SE may be the CIIP-MMVD index.c) In one example, the first SE may indicate the usage of CIIP-PDPC / CIIP-TM / subblock-based CIIP / CIIP-MMVD.d) For example, the first maximum allowed value may be used if N <= T and a second maximum al-lowed value may be used if N>T. T is an integer such as 0, or 1, or 2, or 3, or 4, or 5, or 6.e) Five neighbouring blocks as in Fig. 1 or seven neighbouring samples as in Fig. 10 may be included.f) For example, a block may be considered as affine coded if it is coded with affine-AMVP mode.g) For example, a block may be considered as affine coded if it is coded with affine-merge mode.h) In one example, a block may be decoded as affine coded if its subblock-based CIIP flag is true.21. In one example, the blending methods for different GPM sub-modes (e.g, regular GPM, GPM inter-inter, GPM inter-intra, GPM MMVD, GPM TM, GPM IBC, GPM IntraTMP, etc) , may be same or different.a) In one example, a blending method may include but not limited to the following aspects:i. Whether need to perform blending or not.ii. Whether need to build a blending width candidate list, including:1) The maximum allowed candidate number in the list.2) The length of the list.3) The value of each candidate in the list.4) The index of a certain blending width candidate in the list.iii. Whether need to signal a DPS / SPS / VPS / PPS / APS / picture header / slice header / tile group header / Largest coding unit (LCU)  / Coding unit (CU)  / LCU row / group of LCUs / TU / PU block / Video coding unit level syntax to indicate the blending width.b) In one example, two blending methods may be interpreted to be different if at least one aforemen-tioned aspect is different.c) In one example, for a certain GPM sub-mode, different blending methods may be used based on the block information.i. In one example, the block information may include but not limited to block width / height / area / ratio of width and height / the smaller (or larger) value of width and height / quantization parameter / temporal layer index (Tid)  / slice type / content type decision (e.g., SCC) , etc.1) In one example, specifically, for a certain GPM sub-mode (e.g., regular GPM) , which blending method is used may depend on the smaller value of block width and height, i.e., min(width, height) , of a coding unit. Let M0, M1 denote the min (width, height) value of arbitrary two coding units, then:a) In one example, different blending methods may be used if M0 (or M1) ≥T and M1 (or M0) <T.i. In one example, T may be a constant / encoder signalled / encoder and decoder de-rived value.ii. In one example, different blending methods may be used by constructing differ-ent blending width candidate lists. Let L0 and L1 respectively denote the con-structed list for the coding unit associated with M0 and M1, then:1. In one example, the length of the lists may be different.a) In one example, when M0 ≥ T and M1 < T, L0 may convert to L1 by removing one or multiple largest-value candidate (s) .b) In one example, alternatively, when M0 ≥ T and M1 < T, L1 may con-vert to L0 by removing one or multiple smallest-value candidate (s) .2. In one example, the length of the list may be the same, but at least one can-didate in the corresponding lists is different.a) In one example, when M0 ≥ T and M1 < T, L0 may convert to L1 by replacing one (or multiple) largest-value candidate (s) to another one (or multiple) candidates.b) In one example, alternatively, when M0 ≥ T and M1 < T, L1 may con-vert to L0 by replacing one (or multiple) smallest-value candidate (s) to another one (or multiple) candidates.3. In one example, a same blending width candidate may appear in L0 and L1 at the same time, with a same or different candidate index.22. In one example, the decoded GPM blending width index may be further adjusted to specify the blending width.a) In one example, after initial blending index is decoded, it may be further adjusted (e.g., increase or decrease by value D) if certain condition satisfied, then the adjusted index may be used to specify the real blending width.i. In one example, D may a predefined constant / encoder signalled / both encoder and decoder de-rived value.ii. In one example, specifically, the condition may be:1) Whether block width / height / area / ratio of width and height / the smaller (or larger) value of width and height / quantization parameter / temporal layer index (Tid) is larger or smaller than a predefined constant / encoder signalled / both encoder and decoder derived value.2) Whether current slice satisfies low-delay condition.3) Whether current block belongs to screen content.23. In one example, multiple CABAC probability models may be used to encode / decode GPM blending width index, and / or which CABAC probability model is used may depend on the block information.a) In one example, if block width / height / area / ratio of width and height / the smaller (or larger) value of width and height / quantization parameter / temporal layer index (Tid) is larger or smaller than a prede-fined constant / encoder signalled / both encoder and decoder derived value, one CABAC probability model is used. Otherwise, another model may be used.i. In one example, specifically, if the smaller (or larger) value of width and height (or any other block information) is larger (or smaller) than a predefined constant / encoder signalled / both en-coder and decoder derived value, model with index I is used. Other, model with index (I + N) is used, where N (e.g., N=4) may be a constant offset.ii. In one example, the probability model may be maintained and / or updated only by the blending width index restricted to the corresponding block information.b) In one example, the probability models maintained for blocks with different information may share or use at least one same information, including:i. Probability parameters.ii. Updating speed (i.e., window size) .iii. Indicators of initialized probability values.iv. Adaptation rate.v. Any other parameters that are related to probability models.c) In one example, alternatively, all the information of the probability models maintained for different blocks are irrelevant.General aspects24. In above examples, the video unit may refer to the video unit may refer to color 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)  / a block / sub-block of a block / sub-region within a block / any other region that contains more than one sample or pixel.25. 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 head-er / SPS / VPS / DPS / DCI / PPS / APS / slice header / tile group header.26. Whether and / or how to apply the above methods may depend on the following information:a) A message signalled in the DPS / SPS / VPS / PPS / APS / picture header / slice header / tile group header / Largest coding unit (LCU)  / Coding unit (CU)  / LCU row / group of LCUs / TU / PU block / Video coding unit.b) Position of CU / PU / TU / block / Video coding unit.c) Block dimension of current block and / or its neighbouring blocks.d) Block shape of current block and / or its neighbouring blocks.e) coded mode of a block, e.g., IBC or non-IBC inter mode or non-IBC subblock mode.f) Indication of the color format (such as 4: 2: 0, 4: 4: 4) .g) Coding tree structure.h) Slice / tile group type and / or picture type.i) Color component (e.g., may be only applied on chroma components or luma component) .j) Temporal layer ID.k) Profiles / Levels / Tiers of a standard.

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

[0093] At block 3610, for a conversion between a current video block of a video and a bitstream of the video, at least one blending approach for a first prediction and a second prediction of the current video block is determined, the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM) . For example, the first prediction may be determined by a first GMP sub-mode, and the second prediction may be determined by a second GMP sub-mode. The at least one blending approach may include a same blending approach for both the first and second predictions, or alternatively include two different blending approaches for the first and second predictions. That is, for different GPM sub-modes, a same blending approach or different blending approached may be applied.

[0094] At block 3620, the conversion is performed based on the at least one blending approach.

[0095] The method 3600 enables determining at least one blending approach for the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM) . In this way, the coding effectiveness and coding efficiency can be improved.

[0096] In some embodiments, the coding tool is associated with at least one of: a regular GPM, a GPM inter-inter, a GPM inter-intra, a GPM merge mode with motion vector difference (MMVD) , a GPM template matching, a GPM intra block copy (IBC) , or a GPM intra template matching prediction.

[0097] In some embodiments, information of the at least one blending approach comprises at least one of: whether the at least one blending approach is to be used, whether a blending width candidate list is constructed, or whether a syntax element is included in the bitstream to indicate a blending width.

[0098] In some embodiments, the at least one blending approach comprises a first blending approach for the first prediction and a second blending approach for the second prediction, and the first and second blending approaches are different in response to first information of the first blending approach being different from second information of the second blending approach. Alternatively, in some embodiments, the at least one blending approach comprises a same blending approach for the first and second predictions. That is, the blending approach for different sub-modes of GPM may be different or the same.

[0099] In some embodiments, the blending width candidate list comprises at least one of: a maximum number of blending width candidates in the blending width candidate list, a length of the blending width candidate list, a value of each blending width candidate in the blending width candidate list, or an index of at least one blending width candidate in the blending width candidate list.

[0100] In some embodiments, the syntax element is indicated at one of: a dependency parameter set (DPS) level, a sequence parameter set (SPS) level, a video parameter set (VPS) level, a picture parameter set (PPS) level, an adaptation parameter sets (APS) level, a picture header level, a slice header level, a tile group header level, a largest coding unit (LCU) level, a coding unit (CU) level, a LCU row level, a group of LCUs level, a transform unit (TU) level, a prediction unit (PU) block level, or a video coding unit level.

[0101] In some embodiments, the at least one blending approach is used based on block information of the current video block.

[0102] In some embodiments, the block information comprises at least one of: a block width, a block height, a block area, a ratio of width and height, a smaller value of the block width and the block height, a larger value of the block width and the block height, a quantization parameter, a temporal layer index (Tid) , a slice type, or a content type decision.

[0103] In some embodiments, the at least one blending approach is determined based on a first value and a second value, the first value being a smaller value of a block width and a block height of a first coding unit and the second value being a smaller value of a block width and a block height of a second coding unit.

[0104] In some embodiments, if the first value is larger than or equal to a threshold and the second value is smaller than the threshold, the at least one blending approach comprises a first blending approach for the first coding unit and a second blending approach for the second coding unit, the second blending approach being different from the first blending approach.

[0105] In some embodiments, if the second value is larger than or equal to the threshold and the first value is smaller than the threshold, the at least one blending approach comprises a first blending approach for the first coding unit and a second blending approach for the second coding unit, the second blending approach being different from the first blending approach.

[0106] In some embodiments, the threshold comprises at least one of: a constant, a value indicated by an encoder, or a value derived by an encoder and a decoder.

[0107] In some embodiments, the first blending approach is used by constructing a first blending width candidate list and the second blending approach is used by constructing a second blending width candidate list.

[0108] In some embodiments, a first length of the first blending width candidate list is different from a second length of the second blending width candidate list.

[0109] In some embodiments, if the first value is larger than or equal to the threshold and the second value is smaller than the threshold, the first blending width candidate list is converted to the second blending width candidate list by removing at least one blending width candidate with largest value from the first blending width candidate list.

[0110] In some embodiments, if the first value is larger than or equal to the threshold and the second value is smaller than the threshold, the second blending width candidate list is converted to the first blending width candidate list by removing at least one blending width candidate with largest value from the second blending width candidate list.

[0111] In some embodiments, a first length of the first blending width candidate list is the same with a second length of the second blending width candidate list, and the first blending width candidate list is different from the second blending width candidate list.

[0112] In some embodiments, if the first value is larger than or equal to the threshold and the second value is smaller than the threshold, the first blending width candidate list is converted to the second blending width candidate list by replacing at least one blending width candidate with largest value.

[0113] In some embodiments, if the first value is larger than or equal to the threshold and the second value is smaller than the threshold, the second blending width candidate list is converted to the first blending width candidate list by replacing at least one blending width candidate with largest value.

[0114] In some embodiments, a blending width candidate in the first blending width candidate list is the same with a further blending width candidate in the second blending width candidate list, and an index of the blending width candidate is the same with or different from a further index of the further blending width candidate.

[0115] In some embodiments, a GPM blending width index is coded and adjusted to specify a blending width of the at least one blending approach.

[0116] In some embodiments, an initial blending index is coded, and the initial blending index is adjusted by increasing or decreasing by a value based on at least one condition.

[0117] In some embodiments, the value comprises at least one of: a predefined constant, a value indicated by an encoder, or a value derived by an encoder and a decoder.

[0118] In some embodiments, the condition is based on at least one of: whether at least one of a block width, a block height, a block area, a ratio of the block width and the block height, a smaller value of the block width and the block height, a larger value of the block width and the block height, a quantization parameter, or a temporal layer index (Tid) is larger than or smaller than a threshold, the threshold comprising at least one of: a predefined constant, a value indicated by an encoder, or a value derived by an encoder or a decoder, whether a current slice satisfies a low-delay condition, or whether the current video block belongs to screen content.

[0119] In some embodiments, the method 3600 further comprises: determining, based on block information of the current video block, at least one context-based adaptive binary arithmetic coding (CABAC) probability model used to code a GPM blending width index.

[0120] In some embodiments, the CABAC probability model is determined based on whether at least one of a block width, a block height, a block area, a ratio of the block width and the block height, a smaller value of the block width and the block height, a larger value of the block width and the block height, a quantization parameter, or a temporal layer index (Tid) is larger than or smaller than a threshold, the threshold comprising at least one of: a predefined constant, a value indicated by an encoder, or a value derived by an encoder or a decoder.

[0121] In some embodiments, if the smaller value of the block width and the block height, or the larger value of the block width and the block height is larger than the threshold, a first CABAC probability model with a first index is used, and / or if the smaller value of the block width and the block height, or the larger value of the block width and the block height is smaller than the threshold, a second CABAC probability model with a second index is used, the second index being larger than the first index by N, and N being an constant offset.

[0122] In some embodiments, if the smaller value of the block width and the block height, or the larger value of the block width and the block height is smaller than the threshold, a first CABAC probability model with a first index is used, and / or if the smaller value of the block width and the block height, or the larger value of the block width and the block height is larger than the threshold, a second CABAC probability model with a second index is used, the second index being larger than the first index by N, and N being an constant offset.

[0123] In some embodiments, the CABAC probability model is maintained and / or updated based on the blending width index related to the block information.

[0124] In some embodiments, a first CABAC probability model for a first block and a second CABAC probability model for a second block share at least one piece of information.

[0125] In some embodiments, the at least one piece of information comprises at least one of: at least one probability parameter, an updating speed, at least one indicator of an initialized probability value, an adaptation rate, or at least one parameter related to a CABAC probability model.

[0126] In some embodiments, information of at least one CABAC probability model is independent of other CABAC probability model.

[0127] In some embodiments, the current video block or a video unit comprises at least one of: a colour component, a sub-picture, a slice, a tile, a coding tree unit (CTU) , a CTU row, a 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 prediction block (PB) , a transform block (TB) , a block, sub-block of a block, sub-region within a block, or a region that contains more than one sample or pixel.

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

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

[0130] In some embodiments, whether to and / or how to apply the method is based on at least one of: a message included in one of: a dependency parameter set (DPS) , a sequence parameter set (SPS) , a video parameter set (VPS) , a picture parameter set (PPS) , an adaptation parameter sets (APS) , a picture header, a slice header, a tile group header, a largest coding unit (LCU) , a coding unit (CU) , a LCU row, a group of LCUs, a transform unit (TU) , a prediction unit (PU) block, or a video coding unit, a position of CU, PU, TU, block, or the video coding unit, a block dimension of the current video block and / or neighboring blocks of the current video block, a block shape of the current video block and / or neighboring blocks of the current video block, a coded mode of a block, an indication of a color format, a coding tree structure, a slice, tile group type and / or picture type, a colour component, a temporal layer identifier (ID) , or profiles, levels, or tiers of a standard.

[0131] In some embodiments, the coded mode comprises one of: an intra block copy (IBC) , a non-IBC inter mode, or a non-IBC subblock mode, or wherein the color format comprises one of: 4: 2: 0, or 4: 4: 4.

[0132] In some embodiments, the conversion comprises encoding the current video block into the bitstream.

[0133] In some embodiments, the conversion comprises decoding the current video block from the bitstream.

[0134] 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: determining at least one blending approach for a first prediction and a second prediction of a current video block of the video, the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM) ; and generating the bitstream based on the at least one blending approach.

[0135] According to still further embodiments of the present disclosure, a method for storing bitstream of a video is provided. The method comprises: determining at least one blending approach for a first prediction and a second prediction of a current video block of the video, the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM) ; generating the bitstream based on the at least one blending approach; and storing the bitstream in a non-transitory computer-readable recording medium.

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

[0137] Clause 1. A method for video processing, comprising: determining, for a conversion between a current video block of a video and a bitstream of the video, at least one blending approach for a first prediction and a second prediction of the current video block, the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM) ; and performing the conversion based on the at least one blending approach.

[0138] Clause 2. The method of clause 1, wherein the coding tool is associated with at least one of: a regular GPM, a GPM inter-inter, a GPM inter-intra, a GPM merge mode with motion vector difference (MMVD) , a GPM template matching, a GPM intra block copy (IBC) , or a GPM intra template matching prediction.

[0139] Clause 3. The method of clause 1 or 2, wherein information of the at least one blending approach comprises at least one of: whether the at least one blending approach is to be used, whether a blending width candidate list is constructed, or whether a syntax element is included in the bitstream to indicate a blending width.

[0140] Clause 4. The method of clause 3, wherein the at least one blending approach comprises a first blending approach for the first prediction and a second blending approach for the second prediction, and the first and second blending approaches are different in response to first information of the first blending approach being different from second information of the second blending approach, or wherein the at least one blending approach comprises a single blending approach for the first and second predictions.

[0141] Clause 5. The method of clause 3, wherein the blending width candidate list comprises at least one of:a maximum number of blending width candidates in the blending width candidate list, a length of the blending width candidate list, a value of each blending width candidate in the blending width candidate list, or an index of at least one blending width candidate in the blending width candidate list.

[0142] Clause 6. The method of clause 3, wherein the syntax element is indicated at one of: a dependency parameter set (DPS) level, a sequence parameter set (SPS) level, a video parameter set (VPS) level, a picture parameter set (PPS) level, an adaptation parameter sets (APS) level, a picture header level, a slice header level, a tile group header level, a largest coding unit (LCU) level, a coding unit (CU) level, a LCU row level, a group of LCUs level, a transform unit (TU) level, a prediction unit (PU) block level, or a video coding unit level.

[0143] Clause 7. The method of any of clauses 1 to 7, wherein the at least one blending approach is used based on block information of the current video block.

[0144] Clause 8. The method of clause 7, wherein the block information comprises at least one of: a block width, a block height, a block area, a ratio of width and height, a smaller value of the block width and the block height, a larger value of the block width and the block height, a quantization parameter, a temporal layer index (Tid) , a slice type, or a content type decision.

[0145] Clause 9. The method of clause 8, wherein the at least one blending approach is determined based on a first value and a second value, the first value being a smaller value of a block width and a block height of a first coding unit and the second value being a smaller value of a block width and a block height of a second coding unit.

[0146] Clause 10. The method of clause 9, wherein if the first value is larger than or equal to a threshold and the second value is smaller than the threshold, the at least one blending approach comprises a first blending approach for the first coding unit and a second blending approach for the second coding unit, the second blending approach being different from the first blending approach.

[0147] Clause 11. The method of clause 9, wherein if the second value is larger than or equal to the threshold and the first value is smaller than the threshold, the at least one blending approach comprises a first blending approach for the first coding unit and a second blending approach for the second coding unit, the second blending approach being different from the first blending approach.

[0148] Clause 12. The method of clause 10 or 11, wherein the threshold comprises at least one of: a constant, a value indicated by an encoder, or a value derived by an encoder and a decoder.

[0149] Clause 13. The method of clause 10 or 11, wherein the first blending approach is used by constructing a first blending width candidate list and the second blending approach is used by constructing a second blending width candidate list.

[0150] Clause 14. The method of clause 13, wherein a first length of the first blending width candidate list is different from a second length of the second blending width candidate list.

[0151] Clause 15. The method of clause 14, wherein if the first value is larger than or equal to the threshold and the second value is smaller than the threshold, the first blending width candidate list is converted to the second blending width candidate list by removing at least one blending width candidate with largest value from the first blending width candidate list.

[0152] Clause 16. The method of clause 14, wherein if the first value is larger than or equal to the threshold and the second value is smaller than the threshold, the second blending width candidate list is converted to the first blending width candidate list by removing at least one blending width candidate with largest value from the second blending width candidate list.

[0153] Clause 17. The method of clause 13, wherein a first length of the first blending width candidate list is the same with a second length of the second blending width candidate list, and the first blending width candidate list is different from the second blending width candidate list.

[0154] Clause 18. The method of clause 17, wherein if the first value is larger than or equal to the threshold and the second value is smaller than the threshold, the first blending width candidate list is converted to the second blending width candidate list by replacing at least one blending width candidate with largest value.

[0155] Clause 19. The method of clause 17, wherein if the first value is larger than or equal to the threshold and the second value is smaller than the threshold, the second blending width candidate list is converted to the first blending width candidate list by replacing at least one blending width candidate with largest value.

[0156] Clause 20. The method of clause 13, wherein a blending width candidate in the first blending width candidate list is the same with a further blending width candidate in the second blending width candidate list, and an index of the blending width candidate is the same with or different from a further index of the further blending width candidate.

[0157] Clause 21. The method of any of clauses 1 to 20, wherein a GPM blending width index is coded and adjusted to specify a blending width of the at least one blending approach.

[0158] Clause 22. The method of clause 21, wherein an initial blending index is coded, and the initial blending index is adjusted by increasing or decreasing by a value based on at least one condition.

[0159] Clause 23. The method of clause 22, wherein the value comprises at least one of: a predefined constant, a value indicated by an encoder, or a value derived by an encoder and a decoder.

[0160] Clause 24. The method of clause 22, wherein the condition is based on at least one of: whether at least one of a block width, a block height, a block area, a ratio of the block width and the block height, a smaller value of the block width and the block height, a larger value of the block width and the block height, a quantization parameter, or a temporal layer index (Tid) is larger than or smaller than a threshold, the threshold comprising at least one of: a predefined constant, a value indicated by an encoder, or a value derived by an encoder or a decoder, whether a current slice satisfies a low-delay condition, or whether the current video block belongs to screen content.

[0161] Clause 25. The method of any of clauses 1 to 24, further comprising: determining, based on block information of the current video block, at least one context-based adaptive binary arithmetic coding (CABAC) probability model used to code a GPM blending width index.

[0162] Clause 26. The method of clause 25, wherein the CABAC probability model is determined based on whether at least one of a block width, a block height, a block area, a ratio of the block width and the block height, a smaller value of the block width and the block height, a larger value of the block width and the block height, a quantization parameter, or a temporal layer index (Tid) is larger than or smaller than a threshold, the threshold comprising at least one of: a predefined constant, a value indicated by an encoder, or a value derived by an encoder or a decoder.

[0163] Clause 27. The method of clause 26, wherein if the smaller value of the block width and the block height, or the larger value of the block width and the block height is larger than the threshold, a first CABAC probability model with a first index is used, and / or if the smaller value of the block width and the block height, or the larger value of the block width and the block height is smaller than the threshold, a second CABAC probability model with a second index is used, the second index being larger than the first index by N, and N being an constant offset.

[0164] Clause 28. The method of clause 26, wherein if the smaller value of the block width and the block height, or the larger value of the block width and the block height is smaller than the threshold, a first CABAC probability model with a first index is used, and / or if the smaller value of the block width and the block height, or the larger value of the block width and the block height is larger than the threshold, a second CABAC probability model with a second index is used, the second index being larger than the first index by N, and N being an constant offset.

[0165] Clause 29. The method of clause 26, wherein the CABAC probability model is maintained and / or updated based on the blending width index related to the block information.

[0166] Clause 30. The method of clause 25, wherein a first CABAC probability model for a first block and a second CABAC probability model for a second block share at least one piece of information.

[0167] Clause 31. The method of clause 30, wherein the at least one piece of information comprises at least one of: at least one probability parameter, an updating speed, at least one indicator of an initialized probability value, an adaptation rate, or at least one parameter related to a CABAC probability model.

[0168] Clause 32. The method of clause 25, wherein information of at least one CABAC probability model is independent of other CABAC probability model.

[0169] Clause 33. The method of any of clauses 1-32, wherein the current video block or a video unit comprises at least one of: a colour component, a sub-picture, a slice, a tile, a coding tree unit (CTU) , a CTU row, a 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 prediction block (PB) , a transform block (TB) , a block, sub-block of a block, sub-region within a block, or a region that contains more than one sample or pixel.

[0170] Clause 34. The method of any of clauses 1-33, wherein an indication of whether to and / or how to apply the method is indicated at one of: a sequence level, a group of pictures level, a picture level, a slice level, or a tile group level.

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

[0172] Clause 36. The method of any of clauses 1-33, wherein whether to and / or how to apply the method is based on at least one of: a message included in one of: a dependency parameter set (DPS) , a sequence parameter set (SPS) , a video parameter set (VPS) , a picture parameter set (PPS) , an adaptation parameter sets (APS) , a picture header, a slice header, a tile group header, a largest coding unit (LCU) , a coding unit (CU) , a LCU row, a group of LCUs, a transform unit (TU) , a prediction unit (PU) block, or a video coding unit, a position of CU, PU, TU, block, or the video coding unit, a block dimension of the current video block and / or neighboring blocks of the current video block, a block shape of the current video block and / or neighboring blocks of the current video block, a coded mode of a block, an indication of a color format, a coding tree structure, a slice, tile group type and / or picture type, a colour component, a temporal layer identifier (ID) , or profiles, levels, or tiers of a standard.

[0173] Clause 37. The method of clause 36, wherein the coded mode comprises one of: an intra block copy (IBC) , a non-IBC inter mode, or a non-IBC subblock mode, or wherein the color format comprises one of: 4: 2: 0, or 4: 4: 4.

[0174] Clause 38. The method of any of clauses 1-37, wherein the conversion comprises encoding the current video block into the bitstream.

[0175] Clause 39. The method of any of clauses 1-37, wherein the conversion comprises decoding the current video block from the bitstream.

[0176] Clause 40. 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-39.

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

[0178] Clause 42. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by an apparatus for video processing, wherein the method comprises: determining at least one blending approach for a first prediction and a second prediction of a current video block of the video, the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM) ; and generating the bitstream based on the at least one blending approach.

[0179] Clause 43. A method for storing a bitstream of a video, comprising: determining at least one blending approach for a first prediction and a second prediction of a current video block of the video, the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM) ; generating the bitstream based on the at least one blending approach; and storing the bitstream in a non-transitory computer-readable recording medium.Example Device

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

[0181] It would be appreciated that the computing device 3700 shown in Fig. 37 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.

[0182] As shown in Fig. 37, the computing device 3700 includes a general-purpose computing device 3700. The computing device 3700 may at least comprise one or more processors or processing units 3710, a memory 3720, a storage unit 3730, one or more communication units 3740, one or more input devices 3750, and one or more output devices 3760.

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

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

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

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

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

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

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

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

[0191] In the example embodiments of performing video encoding, the input device 3750 may receive video data as an input 3770 to be encoded. The video data may be processed, for example, by the video coding module 3725, to generate an encoded bitstream. The encoded bitstream may be provided via the output device 3760 as an output 3780.

[0192] In the example embodiments of performing video decoding, the input device 3750 may receive an encoded bitstream as the input 3770. The encoded bitstream may be processed, for example, by the video coding module 3725, to generate decoded video data. The decoded video data may be provided via the output device 3760 as the output 3780.

[0193] 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:determining, for a conversion between a current video block of a video and a bitstream of the video, at least one blending approach for a first prediction and a second prediction of the current video block, the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM) ; andperforming the conversion based on the at least one blending approach.2.The method of claim 1, wherein the coding tool is associated with at least one of:a regular GPM,a GPM inter-inter,a GPM inter-intra,a GPM merge mode with motion vector difference (MMVD) ,a GPM template matching (TM) ,a GPM intra block copy (IBC) , ora GPM intra template matching prediction.3.The method of claim 1 or 2, wherein information of the at least one blending approach comprises at least one of:whether the at least one blending approach is to be used,whether a blending width candidate list is constructed, orwhether a syntax element is included in the bitstream to indicate a blending width.4.The method of claim 3, wherein the at least one blending approach comprises a first blending approach for the first prediction and a second blending approach for the second prediction, and the first and second blending approaches are different in response to first information of the first blending approach being different from second information of the second blending approach, orwherein the at least one blending approach comprises a single blending approach for the first and second predictions.5.The method of claim 3, wherein the blending width candidate list comprises at least one of:a maximum number of blending width candidates in the blending width candidate list,a length of the blending width candidate list,a value of each blending width candidate in the blending width candidate list, oran index of at least one blending width candidate in the blending width candidate list.6.The method of claim 3, wherein the syntax element is indicated at one of:a dependency parameter set (DPS) level,a sequence parameter set (SPS) level,a video parameter set (VPS) level,a picture parameter set (PPS) level,an adaptation parameter sets (APS) level,a picture header level,a slice header level,a tile group header level,a largest coding unit (LCU) level,a coding unit (CU) level,a LCU row level,a group of LCUs level,a transform unit (TU) level,a prediction unit (PU) block level, ora video coding unit level.7.The method of any of claims 1 to 7, wherein the at least one blending approach is used based on block information of the current video block.8.The method of claim 7, wherein the block information comprises at least one of:a block width,a block height,a block area,a ratio of width and height,a smaller value of the block width and the block height,a larger value of the block width and the block height,a quantization parameter,a temporal layer index (Tid) ,a slice type, ora content type decision.9.The method of claim 8, wherein the at least one blending approach is determined based on a first value and a second value, the first value being a smaller value of a block width and a block height of a first coding unit and the second value being a smaller value of a block width and a block height of a second coding unit.10.The method of claim 9, wherein if the first value is larger than or equal to a threshold and the second value is smaller than the threshold, the at least one blending approach comprises a first blending approach for the first coding unit and a second blending approach for the second coding unit, the second blending approach being different from the first blending approach.11.The method of claim 9, wherein if the second value is larger than or equal to the threshold and the first value is smaller than the threshold, the at least one blending approach comprises a first blending approach for the first coding unit and a second blending approach for the second coding unit, the second blending approach being different from the first blending approach.12.The method of claim 10 or 11, wherein the threshold comprises at least one of:a constant,a value indicated by an encoder, ora value derived by an encoder and a decoder.13.The method of claim 10 or 11, wherein the first blending approach is used by constructing a first blending width candidate list and the second blending approach is used by constructing a second blending width candidate list.14.The method of claim 13, wherein a first length of the first blending width candidate list is different from a second length of the second blending width candidate list.15.The method of claim 14, wherein if the first value is larger than or equal to the threshold and the second value is smaller than the threshold, the first blending width candidate list is converted to the second blending width candidate list by removing at least one blending width candidate with largest value from the first blending width candidate list.16.The method of claim 14, wherein if the first value is larger than or equal to the threshold and the second value is smaller than the threshold, the second blending width candidate list is converted to the first blending width candidate list by removing at least one blending width candidate with largest value from the second blending width candidate list.17.The method of claim 13, wherein a first length of the first blending width candidate list is the same with a second length of the second blending width candidate list, and the first blending width candidate list is different from the second blending width candidate list.18.The method of claim 17, wherein if the first value is larger than or equal to the threshold and the second value is smaller than the threshold, the first blending width candidate list is converted to the second blending width candidate list by replacing at least one blending width candidate with largest value.19.The method of claim 17, wherein if the first value is larger than or equal to the threshold and the second value is smaller than the threshold, the second blending width candidate list is converted to the first blending width candidate list by replacing at least one blending width candidate with largest value.20.The method of claim 13, wherein a blending width candidate in the first blending width candidate list is the same with a further blending width candidate in the second blending width candidate list, and an index of the blending width candidate is the same with or different from a further index of the further blending width candidate.21.The method of any of claims 1 to 20, wherein a GPM blending width index is coded and adjusted to specify a blending width of the at least one blending approach.22.The method of claim 21, wherein an initial blending index is coded, and the initial blending index is adjusted by increasing or decreasing by a value based on at least one condition.23.The method of claim 22, wherein the value comprises at least one of:a predefined constant,a value indicated by an encoder, ora value derived by an encoder and a decoder.24.The method of claim 22, wherein the condition is based on at least one of:whether at least one of a block width, a block height, a block area, a ratio of the block width and the block height, a smaller value of the block width and the block height, a larger value of the block width and the block height, a quantization parameter, or a temporal layer index (Tid) is larger than or smaller than a threshold, the threshold comprising at least one of: a predefined constant, a value indicated by an encoder, or a value derived by an encoder or a decoder,whether a current slice satisfies a low-delay condition, orwhether the current video block belongs to screen content.25.The method of any of claims 1 to 24, further comprising:determining, based on block information of the current video block, at least one context-based adaptive binary arithmetic coding (CABAC) probability model used to code a GPM blending width index.26.The method of claim 25, wherein the CABAC probability model is determined based on whether at least one of a block width, a block height, a block area, a ratio of the block width and the block height, a smaller value of the block width and the block height, a larger value of the block width and the block height, a quantization parameter, or a temporal layer index (Tid) is larger than or smaller than a threshold, the threshold comprising at least one of: a predefined constant, a value indicated by an encoder, or a value derived by an encoder or a decoder.27.The method of claim 26, wherein if the smaller value of the block width and the block height, or the larger value of the block width and the block height is larger than the threshold, a first CABAC probability model with a first index is used, and / orif the smaller value of the block width and the block height, or the larger value of the block width and the block height is smaller than the threshold, a second CABAC probability model with a second index is used, the second index being larger than the first index by N, and N being an constant offset.28.The method of claim 26, wherein if the smaller value of the block width and the block height, or the larger value of the block width and the block height is smaller than the threshold, a first CABAC probability model with a first index is used, and / orif the smaller value of the block width and the block height, or the larger value of the block width and the block height is larger than the threshold, a second CABAC probability model with a second index is used, the second index being larger than the first index by N, and N being an constant offset.29.The method of claim 26, wherein the CABAC probability model is maintained and / or updated based on the blending width index related to the block information.30.The method of claim 25, wherein a first CABAC probability model for a first block and a second CABAC probability model for a second block share at least one piece of information.31.The method of claim 30, wherein the at least one piece of information comprises at least one of:at least one probability parameter,an updating speed,at least one indicator of an initialized probability value,an adaptation rate, orat least one parameter related to a CABAC probability model.32.The method of claim 25, wherein information of at least one CABAC probability model is independent of other CABAC probability model.33.The method of any of claims 1-32, wherein the current video block or a video unit comprises at least one of:a colour component, a sub-picture, a slice, a tile, a coding tree unit (CTU) , a CTU row, a 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 prediction block (PB) , a transform block (TB) , a block, sub-block of a block, sub-region within a block, or a region that contains more than one sample or pixel.34.The method of any of claims 1-33, wherein an indication of whether to and / or how to apply the method is indicated at one of: a sequence level, a group of pictures level, a picture level, a slice level, or a tile group level.35.The method of any of claims 1-33, wherein an indication of whether to and / or how to apply the method is indicated in one of:a sequence header,a picture header,a sequence parameter set (SPS) ,a video parameter set (VPS) ,a dependency parameter set (DPS) ,a decoding capability information (DCI) ,a picture parameter set (PPS) ,an adaptation parameter sets (APS) ,a slice header, ora tile group header.36.The method of any of claims 1-33, wherein whether to and / or how to apply the method is based on at least one of:a message included in one of: a dependency parameter set (DPS) , a sequence parameter set (SPS) , a video parameter set (VPS) , a picture parameter set (PPS) , an adaptation parameter sets (APS) , a picture header, a slice header, a tile group header, a largest coding unit (LCU) , a coding unit (CU) , a LCU row, a group of LCUs, a transform unit (TU) , a prediction unit (PU) block, or a video coding unit,a position of CU, PU, TU, block, or the video coding unit,a block dimension of the current video block and / or neighboring blocks of the current video block,a block shape of the current video block and / or neighboring blocks of the current video block,a coded mode of a block,an indication of a color format,a coding tree structure,a slice, tile group type and / or picture type,a colour component,a temporal layer identifier (ID) , orprofiles, levels, or tiers of a standard.37.The method of claim 36, wherein the coded mode comprises one of: an intra block copy (IBC) , a non-IBC inter mode, or a non-IBC subblock mode, orwherein the color format comprises one of: 4: 2: 0, or 4: 4: 4.38.The method of any of claims 1-37, wherein the conversion comprises encoding the current video block into the bitstream.39.The method of any of claims 1-37, wherein the conversion comprises decoding the current video block from the bitstream.40.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-39.41.A non-transitory computer-readable storage medium storing instructions that cause a processor to perform a method in accordance with any of claims 1-39.42.A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by an apparatus for video processing, wherein the method comprises:determining at least one blending approach for a first prediction and a second prediction of a current video block of the video, the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM) ; andgenerating the bitstream based on the at least one blending approach.43.A method for storing a bitstream of a video, comprising:determining at least one blending approach for a first prediction and a second prediction of a current video block of the video, the first prediction and the second prediction being determined based on a coding tool associated with a geometric partitioning mode (GPM) ;generating the bitstream based on the at least one blending approach; andstoring the bitstream in a non-transitory computer-readable recording medium.