Motion Vector Prediction in Merge by Motion Vector Difference (MMVD) Mode

By introducing flexible control mechanisms and adaptive methods for motion vector expression, the proposed video coding techniques address inefficiencies in existing technologies, enhancing coding efficiency and aligning with future standards.

JP7548659B2Active Publication Date: 2024-09-10DOUYIN VISION CO LTD +1

Patent Information

Application Number
JP2023000463
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-01-23
Filing Date
2023-01-05
Publication Date
2024-09-10
Estimated Expiration
2039-12-20

AI Technical Summary

Technical Problem

Existing video coding technologies face inefficiencies in motion vector expression and prediction methods, particularly in handling irregular movements and flexible enablement of coding tools like UMVE, leading to inflexible and suboptimal performance in various video coding scenarios.

Method used

The proposed methods enhance video coding by enabling flexible control of UMVE through flags at various levels (slice, tile, picture, etc.), allowing dynamic adjustment of candidate lists, distance and direction tables, and supporting multiple MVDs for bi-prediction, and integrating adaptive motion vector resolution and local illumination compensation to improve coding efficiency.

Benefits of technology

This approach enhances coding efficiency by allowing more flexible and adaptive motion vector representation, improving compression performance and reducing bit rates, aligning with future video coding standards like VVC.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007548659000057
    Figure 0007548659000057
  • Figure 0007548659000049
    Figure 0007548659000049
  • Figure 0007548659000048
    Figure 0007548659000048
Patent Text Reader

Abstract

A method for video processing is provided. The method includes performing a transformation between one or more video blocks of a video and a coded representation of the video, wherein a first field in the coded representation indicates whether fractional sample precision is used to indicate motion distance in a merge with motion vector difference (MMVD) mode used during the transformation, the MMVD mode having a motion vector indication including a starting point, motion distance, and motion direction for a current video block.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This patent document relates to video and image coding and decoding. [Background technology]

[0002] Digital video accounts for the largest bandwidth usage on the Internet and other digital communications networks, and as the number of connected user devices capable of receiving and displaying video increases, the bandwidth demands for digital video usage are expected to continue to grow. Summary of the Invention

[0003] This patent document discloses, in an exemplary manner, a video coding tool that improves the coding efficiency of current coding tools related to ultimate motion vector expression (UMVE) or generalized bi-prediction.

[0004] In one example aspect, a method of video processing is disclosed that includes determining a mode of operation of an ultimate motion vector expression (UMVE) mode for a conversion between a current video block of a video and a coded representation of the video, the current video block being coded with a merge mode and a motion vector differential in the UMVE mode having a motion vector indication including a starting point, a magnitude of motion, and a direction of motion of motion information for the current video block, one or more fields in the coded representation corresponding to the mode of operation, the one or more fields including a UMVE enable field having a value indicating whether the UMVE mode is enabled or disabled for the current video block, or a modified affine mode enable field indicating whether a modified affine merge mode based on the UMVE mode is enabled or disabled for the current video block.

[0005] In another example aspect, a method of video processing is disclosed that includes determining a mode of operation of an ultimate motion vector expression (UMVE) mode for conversion between a current video block of a video and a coded representation of the video, the current video block being coded with a merge mode and a motion vector differential in the UMVE mode with a motion vector indication including a starting point, a magnitude of motion, and a direction of motion of motion information for the current video block, one or more fields in the coded representation corresponding to the mode of operation, the one or more fields including a list size field indicating a size of a basic candidate list used by the UMVE mode, or a table field signaling a distance table or a direction table for the UMVE mode.

[0006] In another example aspect, a method of video processing is disclosed that includes performing a conversion between a current video block of a video and a coded representation of the video using an ultimate motion vector expression (UMVE) coding tool, the UMVE coding tool representing a motion vector representation including a starting point of motion information for the current video block, a motion magnitude, and a motion direction, and at least one of a distance table or a direction table depending on Picture Order Counts (POC) of two reference pictures or a POC of a current picture that includes the current video block, or a quantization parameter (QP) used to code the current video block, the current slice, or the current picture.

[0007] In another example aspect, a method of video processing is disclosed that includes determining a mode of operation of an affine ultimate motion vector expression (UMVE) mode for a transformation between a current video block of a video and a coded representation of the video, the current video block being coded with an affine merge mode and a motion vector differential in the affine UMVE mode that includes a starting point, a motion magnitude, and a motion direction of motion information for the current video block, one or more fields in the coded representation corresponding to the mode of operation, the one or more fields including a list size field indicating a size of a base affine merge candidate list for the affine merge mode with prediction offsets used by the UMVE mode, or a table field indicating a distance table or a direction table for the affine merge mode with prediction offsets.

[0008] In another example aspect, a method of video processing is disclosed that includes determining to signal a plurality of motion vector differentials in an ultimate motion vector expression (UMVE) coding tool for a conversion between a current video block of a video and a coded representation of the video, and performing the conversion based on the determination, where with the UMVE coding tool, a motion vector representation including a starting point for the current video block and N motion vector differentials represented by N motion magnitudes and N motion directions are used during the conversion, where N is an integer greater than or equal to 2.

[0009] In another example aspect, a method of video processing is disclosed that includes determining that rules are applicable to a transformation by a current video block using a Current Picture Referencing (CPR) coding tool and an ultimate motion vector expression (UMVE) coding tool for a transformation between a current video block of a video and a coded representation of the video, and performing the transformation according to the rules, where the rules disallow the use of one or more coding distances for the transformation, and where the CPR coding tool uses the current picture as a reference picture and the UMVE coding tool uses a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for the current video block.

[0010] In another example aspect, a method of video processing is disclosed that includes determining, upon a determination that during conversion between a current video block of a video and a coded representation of the video, the current video block uses an ultimate motion vector expression (UMVE) coding tool that represents a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for the current video block, to perform a refinement of a Motion Vector Difference (MVD) value for the current video block, and performing the conversion based on the determination.

[0011] In another example aspect, a method of video processing is disclosed that includes determining, upon a determination that the current video block uses an ultimate motion vector expression (UMVE) coding tool that represents a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for the current video block, to use a first UMVE parameter set from a plurality of UMVE parameter sets for conversion between a current video block of a video and a coded representation of the video, and performing the conversion based on the determination, where an indication of at least one of the plurality of UMVE parameter sets is signaled or predefined for the current video block.

[0012] In another example aspect, a method of video processing is disclosed that includes, upon a determination that a current video block of a video uses an ultimate motion vector expression (UMVE) coding tool that represents a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for the current video block, selecting a UMVE parameter set for conversion between the current video block and a coded representation of the video, where the selected UMVE parameter set is changed across different video blocks, different reference picture lists, different reference pictures, different tiles, different slices, different pictures, or different temporal layers.

[0013] In another example aspect, a method of video processing is disclosed that includes performing a conversion between a current video block and a coded representation of the video using an ultimate motion vector expression (UMVE) coding tool that represents a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for a current video block of the video, and an Adaptive Motion Vector Resolution (AMVR) scheme is used to inform a distance table used by the UMVE coding tool.

[0014] In another example aspect, a method of video processing is disclosed that includes determining a mode of operation of a Generalized Bi-prediction (GBi) coding tool for conversion between a current video block of a video and a coded representation of the video, where prediction of the current video block uses a final predictor corresponding to a non-uniformly weighted sum of predictors from two reference lists, and performing the conversion based on the determination, where a field in the coded representation corresponds to the mode of operation, and a value of the field indicates whether the GBi coding tool is enabled or disabled for the current video block.

[0015] In another example aspect, a method of video processing is disclosed that includes performing a conversion between a current video block of a video and a coded representation of the video based on rules that control parameters of a GBi coding tool in which prediction of the current video block uses a final predictor corresponding to a non-uniform weighted sum of predictors from two reference lists, the rules specifying that a set of weighting coefficients used by the GBi coding tool is based on i) a temporal layer of a picture that includes the current video block, ii) a picture quantization parameter of the picture, or iii) a quantization parameter of the current video block.

[0016] In another example aspect, a method of video processing is disclosed that includes determining to use a weight not equal to one for a single prediction mode for a conversion between a current video block of a video and a coded representation of the video, and performing the conversion based on the determination, where prediction of the current video block uses a final predictor corresponding to the predictor scaled by the weight, and a set of weighting coefficients is selected at a block level or a coding unit level.

[0017] In another example aspect, a method of video processing is disclosed that includes performing a conversion between a current video block of a video and a coded representation of the video based on rules that control parameters of a GBi coding tool, where prediction of the current video block uses a final predictor corresponding to a non-uniform weighted sum of predictors from two reference lists, and the rules provide for selecting or deriving weighting coefficients for the GBi coding tool based on neighboring pixels of the current video block and corresponding reference neighboring pixels identified by a motion vector of the current video block or an integer part of the motion vector.

[0018] In another example aspect, a method of video processing is disclosed that includes performing a conversion between a current video block of a video and a coded representation of the video based on rules that control parameters of a GBi coding tool, where prediction of the current video block uses a final predictor corresponding to a non-uniform weighted sum of predictors from two reference lists, and the rules provide for reordering weighting coefficients for the GBi coding tool based on neighboring pixels of the current video block and corresponding reference neighboring pixels identified by a motion vector of the current video block or an integer part of the motion vector.

[0019] In another example aspect, a method of video processing is disclosed that includes performing a conversion between a current video block of a video and a coded representation of the video based on rules controlling parameters of a GBi coding tool in which prediction of the current video block uses a final predictor corresponding to a non-uniform weighted sum of predictors from two reference lists, the rules specifying using Local Illumination Compensation (LIC) parameters associated with the current video block to determine weighting coefficients for the GBi coding tool, the LIC parameters being derived using a linear model of illumination changes in the current video block during conversion.

[0020] In another example aspect, a method of video processing is disclosed that includes performing a conversion between one or more video blocks of a video and a coded representation of the video, where a first field in the coded representation indicates whether fractional sample precision is used to indicate a motion distance in a Merge with Motion Vector Difference (MMVD) mode used during the conversion, the MMVD mode having a motion vector indication including a starting point, a motion distance, and a motion direction for a current video block.

[0021] In another example aspect, a method of video processing is disclosed that includes performing a transformation between a current video block of a video and a coded representation of the video, the coded representation having a flag indicating whether fractional Motion Vector (MV) or Motion Vector Difference (MVD) precision is allowed for an Adaptive Motion Vector Prediction (AMVP) mode or an Affine Inter mode used during the transformation.

[0022] In another example aspect, a method of video processing is disclosed that includes performing a transformation between a current video block of a current picture of the video and a coded representation of the video according to rules that specify a format of the coded representation, the rules specifying that a syntax element for a coding mode is included in the coded representation based on whether all reference blocks used for the transformation of the current video block are obtained from samples of the current picture.

[0023] In yet another representative aspect, the above method is embodied in a processor executable code and stored on a computer readable program medium.

[0024] In yet another representative aspect, a device configured or operative to perform the above method is disclosed. The device may include a processor programmed to implement the method.

[0025] In a further exemplary aspect, the above method may be implemented by a video encoder device or a video decoder device having a processor.

[0026] These and other aspects are further described herein. [Brief description of the drawings]

[0027] [Figure 1] An example of a simplified affine motion model is given below. [Diagram 2] 1 shows an example of an affine motion vector field (MVF) for each subblock. [Figure 3A] A four-parameter affine model is shown. [Figure 3B] A six-parameter affine model is shown. [Figure 4] An example of a motion vector predictor (MVP) for AF_INTER is shown. [Figure 5A] Here are some example candidates for AF_MERGE: [Figure 5B] Here are some example candidates for AF_MERGE: [Figure 6] 13 shows examples of candidate positions for the affine merge mode. [Figure 7] 1 shows an example of distance index and distance offset mapping. [Figure 8] An example of the ultimate motion vector expression (UMVE) search process is shown. [Figure 9] An example of UMVE search points is shown. [Figure 10] 1 shows an example of adjacent samples used to derive an IC parameter. [Figure 11A] 1 illustrates an example hardware platform for implementing the techniques described herein. [Figure 11B] 1 illustrates an example hardware platform for implementing the techniques described herein. [Figure 12] 1 shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. [Figure 13] 1 shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. [Figure 14] 1 shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. [Figure 15A] 1 shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. [Figure 15B] 1 shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. [Figure 15C] 1 shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. [Figure 15D] 1 shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. [Figure 15E] 1 shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. [Figure 16A] 1 shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. [Figure 16B] 1 shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. [Figure 16C] 1 shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. [Figure 17A] 1 shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. [Figure 17B] 1 shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. [Figure 18]1 shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0028] This specification provides various techniques that may be used by a decoder of a video bitstream to improve the quality of the decompressed or decoded digital video. Additionally, video encoders may also implement these techniques during the encoding process to reconstruct the decoded frames to be used for further encoding.

[0029] Section headings are used herein for ease of understanding and do not limit the embodiments and techniques disclosed in each section, and thus, embodiments from one section may be combined with embodiments from other sections.

[0030] [1. Overview] This specification relates to video coding techniques. In particular, it relates to motion compensation in video coding. It may be applied to existing video coding standards such as HEVC, or to a standard to be completed (Versatile Video Coding). It may also be applicable to future video coding standards or video codecs.

[0031] [2. Introduction] Video coding standards have evolved primarily through the development of well-known ITU-T and ISO / IEC standards. ITU-T produced H.261 and H.263, ISO / IEC produced MPEG-1 and MPEG-4 Visual, and the two organizations jointly produced H.262 / MPEG-2 Video and H264 / MPEG-4 AVC (Advanced Video Coding) and H.265 / HEVC standards. Since H.262, video coding standards have been based on a hybrid video coding structure, which utilizes temporal prediction and transform coding. In order to explore future video coding technologies beyond HEVC, the Joint Video Exploration Team (JVET) was jointly established by VCEG and MPEG in 2015. Since then, many new methods have been introduced by JVET and placed in a reference software named Joint Exploration Model (JEM). In April 2018, the Joint Video Expert Team (JVET) between VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) was formed to work on the VVC standard, which aims for a 50% bitrate reduction compared to HEVC.

[0032] The latest version of the VVC draft, i.e. Versatile Video Coding (Draft 2), was available at http: / / phenix.it-sudparis.eu / jvet / doc_end_user / documents / 11_Ljubljana / wg11 / JVET-K1001-v7.zip.

[0033] The latest reference software for VVC, named VTM, was available at https: / / vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM / tags / VTM-2.1.

[0034] [2.1 Affine motion compensation prediction] In HEVC, only the translation motion model is applied for Motion Compensation Prediction (MCP). Meanwhile, in the real world, there exist many kinds of motions, such as zoom in / out, rotation, projective motion, and other irregular motions. In JEM, a simplified affine transformation motion compensation prediction is applied. As shown in Figure 1, the affine motion field of a block is described by two control point motion vectors.

[0035] The Motion Vector Field (MVF) of a block is described by the following equation:

number

[0036] Here, (v 0x ,v 0y ) is the motion vector of the upper left corner control point, and (v 1x ,v 1y ) is the motion vector of the upper right corner control point.

[0037] To further simplify the motion compensation prediction, subblock-based affine transformation prediction is applied. The subblock size M×N is derived as shown in Equation 2, where MvPre is the motion vector fractional precision (1 / 16 in JEM) and (v 2x ,v 2y ) is the motion vector of the bottom-left control point calculated according to Equation 1.

number

[0038] After being derived by Equation 2, M and N should be adjusted downwards if necessary to be divisors of w and h, respectively.

[0039] To derive the motion vector for each M×N sub-block, the motion vector of the center sample of each sub-block, as shown in FIG. 2, is calculated according to Equation 1 and rounded to 1 / 16 fractional precision.

[0040] After the MCP, the high-precision motion vector for each subblock is rounded and saved as the same precision as the normal motion vector.

[0041] [2.1.1 AF_INTER mode] In JEM, there are two affine motion modes: AF_INTER mode and AF_MERGE mode. For CUs whose width and height are both greater than 8, the AF_INTER mode can be applied. An affine flag at the CU level is signaled in the bitstream to indicate whether the AF_INTER mode is used. In this mode, the motion vector pair {(v 0 ,v 1 )|v 0 ={v A ,v B ,v C},v 1 ={v D ,v E A candidate list with v}} is constructed using adjacent blocks. As shown in FIG. 0 is selected from the motion vectors of blocks A, B, or C. The motion vectors from the neighboring blocks are scaled according to the reference list and the relationship between the POC of the reference for the neighboring block, the POC of the reference for the current CU, and the POC of the current CU. Then, v ... neighboring blocks D and E. 1The approach for selecting the AMVP candidate is similar. If the number of candidate lists is smaller than two, the list is padded with motion vector pairs constructed by duplicating each of the AMVP candidates. If the candidate list is larger than two, the candidates are first sorted according to the consistency of adjacent motion vectors (similarity of the two motion vectors of a pair of candidates), and only the first two candidates are kept. The RD cost check is used to determine which motion vector pair candidate is selected as the Control Point Motion Vector Prediction (CPMVP) of the current CU. Then, an index indicating the position of the CPMVP in the candidate list is signaled in the bitstream. After the CPMVP of the current affine CU is determined, affine motion estimation is applied to obtain the Control Point Motion Vector Prediction (CPMV). Then, the difference between the CPMV and the CPMVP is signaled in the bitstream.

[0042] Figure 3A shows an example of a four-parameter affine model, and Figure 3B shows an example of a six-parameter affine model.

[0043] In AF_INTER mode, when the 4 / 6 parameter affine mode is used, 2 / 3 control points are required as shown in Figures 3A and 3B, so 2 / 3 MVD needs to be coded for those control points. JVET-K0337 proposes to derive the MV as follows: mvd 1 and mvd 2 , mvd 0 It is predicted from.

number

[0044] Here, bar mv i , mvd i and mv 1are the predicted motion vector, motion vector differential and motion vector of the top left pixel (i=0), top right pixel (i=1) or bottom left pixel (i=2) as shown in FIG. 3B, respectively. Note that the addition of two motion vectors (e.g., mvA(xA,yA) and mvB(xB,yB)) is equal to the sum of the two components separately, i.e., newMV=mvA+mvB, and the two components of newMV are set to (xA+xB) and (yA+yB), respectively.

[0045] [2.1.2 Fast Affine ME Algorithm in AF_INTER mode] In affine mode, the MVs of two or three control points need to be determined jointly. Directly searching multiple MVs jointly is computationally complex. A fast affine ME algorithm has been proposed and implemented in VTM / BMS.

[0046] A fast affine ME algorithm is described for a four-parameter affine model, and the idea is extendable to six-parameter affine models.

number

[0047] By replacing (a-1) with a', the motion vector becomes

number

[0048] If the motion vectors of the two control points (0,0) and (0,w) are known, the affine parameters can be derived from equation (5).

number

[0049] The motion vector is

number

[0050] Where:

number

[0051] P(x,y) is the pixel location.

[0052] At the encoder, the MVD of AF_INTER is derived iteratively. Let MV be the MV derived at the ith iteration for position P. i (P), and MV at the i-th iteration C About updated delta as dMV C i In that case, in the (i+1)th iteration,

number

[0053] Pic as reference picture ref Represents the current picture as Pic cur where Q=P+MV i (P). Suppose we use MSE as the matching criterion, then we need to minimize

number

[0054] (dMV C i ) T If is small enough, Pic ref (Q+A(P)*(dMV C i ) T ) is expanded to the first order as follows:

number

[0055] Where:

number

number

[0056] By setting the derivative of the error function to zero, dMV C i In that case, A(P)*(dMV C i ) T The delta MV for the control points (0,0) and (0,w) can be calculated according to:

number

[0057] If such an MVD derivation process is repeated n times, the final MVD is

number

[0058] JVET-K0337, i.e., mvd 0 From the delta MV of the control point (0,0) represented by mvd 1 According to the above, in this case, the delta MV of the control point (0, w) is actually calculated as follows:

number

[0059] [2.1.3 AF_MERGE mode] When a CU is applied in AF_MERGE mode, it obtains the first block coded by affine mode from the valid neighboring reconstructed blocks. And the selection order of the candidate blocks is from left to top, top right, bottom left, top left, as shown in Fig. 5A. When the neighboring bottom left block A is coded in affine mode as shown in Fig. 5B, the motion vectors v of the top left corner, top right corner, and bottom left corner of the CU containing block A are 2 , v 3 and v 4 Then, the motion vector v 0 v 2 , v 3 and v 4 Second, the current CU's upper right motion vector v 1 is calculated.

[0060] v, which is the CPMV of the current CU 0 and v 1 After is derived, the MVF of the current CU is generated according to the simplified affine motion model Equation 1. To identify whether the current CU is coded in AF_MERGE mode, an affine flag is signaled in the bitstream if there is at least one neighboring block coded in affine mode.

[0061] In JVET-L0366, which is planned to be introduced in VTM3.0, the affine merge candidate list is constructed as follows:

[0062] 1) Insertion of inherited affine candidates Inherited affine candidate means that the candidate is derived from the affine motion model of its valid neighboring affine coded blocks. On a general basis, the scanning order of the candidate positions is A1, B1, B0, A0 and B2, as shown in FIG.

[0063] After the candidates are derived, a full pruning process is performed to check whether the same candidate is inserted into the list. If the same candidate exists, the derived candidate is discarded.

[0064] 2) Insertion of constructed affine candidates If the number of candidates in the affine merge candidate list is less than MaxNumAffineCand (set to 5 in this application), the constructed affine candidate is inserted into the candidate list. A constructed affine candidate means that the candidate is constructed by combining the neighboring motion information of each control point.

[0065] The motion information of a control point is first derived from the designated spatial and temporal neighborhoods shown in Figure 6. CPk (k=1,2,3,4) represents the kth control point. A0, A1, A2, B0, B1, B2, and B3 are the spatial positions for predicting CPk (k=1,2,3), and T is the temporal position for predicting CP4.

[0066] The coordinates of CP1, CP2, CP3 and CP4 are (0,0), (W,0), (H,0) and (W,H), respectively, where W and H are the width and height of the current block.

[0067] FIG. 6 shows examples of candidate positions for the affine merge mode.

[0068] The motion information of each control point is obtained according to the following priority order.

[0069] For CP1, the check priority is B2→B3→A2. B2 is used if it is available. Otherwise, if B3 is available, B3 is used. If both B2 and B3 are unavailable, A2 is used. If all three candidates are unavailable, the motion information of CP1 cannot be obtained.

[0070] For CP2, the check priority is B1→B0.

[0071] For CP3, the check priority is A1 → A0.

[0072] For CP4, T is used.

[0073] Second, a combination of the control points is used to construct affine merge candidates.

[0074] Motion information of three control points is required to construct a six-parameter affine candidate. The three control points can be selected from one of the following four combinations: {CP1,CP2,CP4}, {CP1,CP2,CP3}, {CP2,CP3,CP4}, {CP1,CP3,CP4}. The combinations {CP1,CP2,CP3}, {CP2,CP3,CP4}, {CP1,CP3,CP4} will be transformed into a six-parameter motion model represented by the top-left, top-right, and bottom-left control points.

[0075] The motion vectors of two control points are needed to construct a four-parameter affine candidate. The two control points can be selected from one of the following six combinations: {CP1,CP4}, {CP2,CP3}, {CP1,CP2}, {CP2,CP4}, {CP1,CP3}, {CP3,CP4}. The combinations {CP1,CP4}, {CP2,CP3}, {CP2,CP4}, {CP1,CP3}, {CP3,CP4} will be transformed into a four-parameter motion model represented by the top-left and top-right control points.

[0076] The constructed combinations of affine candidates are inserted into the candidate list in the following order: {CP1,CP2,CP3}, {CP1,CP2,CP4}, {CP1,CP3,CP4}, {CP2,CP3,CP4}, {CP1,CP2}, {CP1,CP3}, {CP2,CP3}, {CP1,CP4}, {CP2,CP4}, {CP3,CP4}.

[0077] For a combined reference list X (X is 0 or 1), the reference index with the maximum utilization among the control points is selected as the reference index of list X, and the motion vector pointing to the differential reference picture will be scaled.

[0078] After the candidates are derived, a full pruning process is performed to check whether the same candidate is inserted into the list. If the same candidate exists, the derived candidate is discarded.

[0079] 3) Padding with zero motion vectors If the number of candidates in the affine merge candidate list is less than five, a zero motion vector with a zero reference index is inserted into the candidate list until the list is full.

[0080] [2.2 Affine merge mode with predicted offset] UMVE is extended to an affine merge mode, which we will call UMVE affine mode from now on. The proposed method selects the first available affine merge candidate as the base predictor. It then applies a motion vector offset to the motion vector value of each control point from the base predictor. If no affine merge candidate is available, the proposed method is not used.

[0081] The inter-prediction direction of the selected base predictor and the reference index for each direction are used without modification.

[0082] In the current implementation, the affine model of the current block is assumed to be a four-parameter model and only two control points need to be derived, so only the first two control points of the base predictor will be used as the control point predictor.

[0083] For each control point, the zero_MVD flag is used to indicate whether the control point of the current block has the same MV value as the corresponding control point predictor. If the zero_MVD flag is true, no other signaling is needed for the control point. Otherwise, a distance index and an offset direction index are signaled for that control point.

[0084] A distance offset table of size 5 is used as shown in the table below. The distance index is signaled to indicate which distance offset should be used. The mapping between distance index and distance offset value is shown in Figure 7. [Table 1]

[0085] The directional index can represent four directions as shown below, and only the x or y direction may have MV differences, but not both directions. [Table 2]

[0086] If inter prediction is unidirectional, the signaled distance offset is applied to the offset direction for each control point predictor. The result is the MV value of each control point.

[0087] For example, if the base predictor is unidirectional, the motion vector value of the control point is MVP(v px , v py ) Given the distance offset and direction index, the motion vector of the corresponding control point of the current block will be calculated as follows: MV(v x ,v y )=MVP(v px ,v py)+MV(x-dir-factor*distance-offset,y-dir-factor*distance-offset)

[0088] When inter prediction is bidirectional, the signaled distance offset is applied in the signaled offset direction for the L0 motion vector of the control point predictor, and the same distance offset with the opposite direction is applied for the L1 motion vector of the control point predictor. The result is the MV value of each control point for each inter prediction direction.

[0089] For example, if the base predictor is bidirectional, the motion vector value of the control point for L0 is MVP L0 (v 0px ,v 0py ), and the motion vector value of the control point for L1 is MVP L1 (v 1px ,v 1py ) When a distance offset preliminary direction index is signaled, the motion vector of the corresponding control point of the current block will be calculated as follows: Music Video L0 (v 0x ,v 0y )=MVP L0 (v 0px ,v 0py )+MV(x-dir-factor*distance-offset,y-dir-factor*distance-offset), Music Video L1 (v 0x ,v 0y )=MVP L1 (v 1px ,v 1py )+MV(x-dir-factor*distance-offset,y-dir-factor*distance-offset)

[0090] [2.3 Ultimate motion vector display] The Ultimate Motion Vector Expression (UMVE) is given. UMVE is used in either skip or merge mode according to the proposed motion vector representation. UMVE is also known as Merge mode with Motion Vector Difference (MMVD).

[0091] UMVE reuses the same merge candidates that are included in the regular merge candidate list in VVC. Among the merge candidates, a base candidate can be selected and is further extended by the proposed motion vector representation method.

[0092] UMVE introduces a new Motion Vector Difference (MVD) representation, in which the magnitude and direction of motion are used to represent the MVD.

[0093] FIG. 8 shows an example of the UMVE search process.

[0094] FIG. 9 shows an example of UMVE search points.

[0095] The proposed technique uses the merge candidate list as is, but only candidates with the default merge type (MRG_TYPE_DEFAULT_N) are considered for UMVE extension.

[0096] The base candidate index defines a starting point. It points to the best candidate among the candidates in the list, as follows: [Table 3]

[0097] If the number of basic candidates is equal to 1, the basic candidate IDX is not notified.

[0098] The distance index is the information of the magnitude of the movement. The distance index indicates a predefined distance from the starting point information. The predefined distances are as follows: [Table 4]

[0099] The direction index represents the direction of the MVD relative to the starting point. The direction index can represent four directions, as shown below: [Table 5]

[0100] The UMVE flag is signaled immediately after sending the skip and merge flags. If the skip and merge flags are true, the UMVE flag is parsed. If the UMVE flag is equal to 1, the UMVE syntax is parsed. But if it is not 1, the affine flag is parsed. If the affine flag is equal to 1, it is affine mode. But if it is not 1, the skip / merge index is parsed for the VTM's skip / merge mode.

[0101] No additional line buffers for UMVE candidates are needed, because the software skip / merge candidates are directly used as base candidates. With the input UMVE index, the completion of the MV is determined just before motion compensation. Therefore, there is no need to maintain a long line buffer.

[0102] In the current general test conditions, either the first or second merge candidate in the merge candidate list can be selected as the base candidate.

[0103] UMVE is known as MMVD.

[0104] [2.4 Generalized Bi-Prediction] In conventional bi-prediction, predictors from L0 and L1 are averaged with equal weighting of 0.5 to generate the final predictor. The predictor generation formula is shown in Equation (22): P tradionalBiPred =(P L0 +P L1 +RoundingOffset)>>shiftNum (twenty two)

[0105] In formula (22), P traditionalBiPred is the final predictor for conventional bi-prediction, and P L0 and P L1 are the predictors from L0 and L1, respectively, and RoundingOffset and shiftNum are used to normalize the final predictor.

[0106] Generalized Bi-prediction (GBi) has been proposed to allow applying different weights to predictors from L0 and L1. GBi is also known as "Bi-prediction with CU-level weights (BCW)". The predictor generation is shown in equation (23): P GBi =((1-w 1 )+P L0 +w 1 *P L1 +RoundingOffset GBi )>>shiftNum GBi (twenty three)

[0107] In formula (23), P GBi is the final predictor of GBi. (1-w 1 ) and w 1 are the selected GBi weights applied to the L0 and L1 predictors, respectively. GBi and shiftNum GBi is used to normalize the final predictor in GBi.

[0108] w 1 The supported weights for are {-1 / 4, 3 / 8, 1 / 2, 5 / 8, 5 / 4}. One set of equal weights and four sets of unequal weights are supported. In the case of equal weights, the process of generating the final predictor is exactly the same as in the case of traditional bi-prediction modes. In the case of true bi-prediction under Random Access (RA) conditions, the number of candidate weight sets is reduced to three.

[0109] For Advanced Motion Vector Prediction (AMVP) modes, the weight selection in GBi is explicitly signaled at the CU level if this CU is coded bi-predictively. For merge modes, the weight selection is inherited from the merge candidates. In this proposal, GBi supports DMVR to generate a weighted average of templates in addition to the final predictor for BMS-1.0.

[0110] [2.5 Local Illumination Compensation] Local Illumination Compensation (LIC) is based on a linear model for illumination changes, with a scaling factor a and an offset b, and it is adaptively enabled or disabled for each inter-mode coded coding unit (CU).

[0111] FIG. 10 shows an example of adjacent samples used to derive the IC parameters.

[0112] When LIC is applied to a CU, a least square error method is used to derive parameters a and b by using neighboring samples of the current CU and their corresponding reference samples. More specifically, as shown in Figure 10, subsampled (2:1 subsampled) neighboring samples of the CU and corresponding samples in the reference picture (identified by the motion information of the current CU or sub-CU) are used. IC parameters are derived and applied separately for each prediction direction.

[0113] If the CU is coded by merge mode, the LIC flag is copied from the neighboring block in the same manner as the motion information copy in merge mode. Otherwise, the LIC flag is signaled for the CU to indicate whether LIC is applied or not.

[0114] If LIC is available for a picture, an additional CU-level RD check is required to determine whether LIC applies to the CU. If LIC is available for a CU, Mean-Removed Sum of Absolute Difference (MRSAD) and Mean-Removed Sum of Absolute Hadamard-Transformed Difference (MR-SATD) are used for integer-pel and fractional-pel motion estimation, respectively, instead of SAD and SATD.

[0115] To reduce the encoding complexity, the following encoding scheme is applied in JEM: · If there is no obvious illumination change between the current picture and its reference pictures, LIC is disabled for the entire picture. To identify this situation, the histograms of the current picture and every reference picture of the current picture are calculated in the encoder. If the histogram difference between the current picture and every reference picture of the current picture is smaller than a given threshold, LIC is disabled for the current picture, otherwise LIC is enabled for the current picture.

[0116] [2.6 Referencing the current picture] Decoder Aspects: In this approach, the current (partially) decoded picture is considered as a reference picture. This current picture is placed at the last position of reference picture list 0. Therefore, for slices that use the current picture as the only reference picture, the slice type is considered as P slice. The bitstream syntax in this approach follows the same syntax structure for inter-coding, while the decoding process is unified with inter-coding. The only notable difference is that block vectors (which are motion vectors that point to the current picture) always use integer pel resolution.

[0117] The changes from the block-level CPR_flag approach are: The encoder search for this mode is that both the block width and height are less than or equal to 16. · Enable chroma interpolation if luma block vector is an odd integer. Enable Adaptive Motion Vector Resolution (AMVR) for CPR mode if the SPS flag is on. In this case, when AMVR is used, block vectors can switch between 1-pel integer to 4-pel integer resolution at the block level.

[0118] Encoder Aspects: The encoder performs an RD check on blocks whose either width or height is less than or equal to 16. For non-merge mode, the block vector search is first performed using a hash-based search. If no valid candidates are found from the hash search, a block matching based local search will be performed.

[0119] In hash-based search, hash key matching (32-bit CRC) between the current block and the reference block is extended to all allowed block sizes. The hash key calculation for every position in the current picture is based on 4x4 blocks. For a current block of larger size, hash key matching to a reference block occurs when all its 4x4 blocks match the hash key at the corresponding reference position. If multiple reference blocks are found to match the current block with the same hash key, the block vector cost of each candidate is calculated and the one with the smallest cost is selected.

[0120] In the block matching search, the search range is set to be 64 pixels on the left and top, and the search range is restricted to be within the current CTU.

[0121] [3. Examples of problems solved by the disclosed embodiments] There are several potential challenges: UMVE cannot be switched on / off at slice level, picture level etc. This is inflexible. For UMVE mode, the basic candidate list size, distance table size and direction table size are fixed and cannot be changed. For UMVE mode, in the bi-predictive case, only one MVD is signaled and used for both prediction directions (with or without scaling), which may be inefficient. One fixed MVD set is used in all cases, which can be inefficient. · It is not clearly defined whether UMVE should be harmonized with CPRTOICA. · Only works when GBi is bi-predictive. For P pictures, which can only use the current picture as a reference picture, coding tools like affine, subblock-based merging, multi-hypothesis intra / inter prediction, triangular prediction and MMVD are not available. However, flags are still signaled at the CU level for those coding tools. This is not realistic.

[0122] 4. Examples of Techniques Implemented by Various Embodiments Hereafter, we call the inter-picture that can only use the current picture as a reference picture a CRP-only inter-picture. The following list should be considered as examples to explain the general concept. The examples should not be interpreted in a narrow sense. Moreover, these techniques can be combined in any way.

[0123] 1. It is proposed that a UMVE flag may be signaled in slice header / tile group header / tile header / picture header / PPS / SPS / VPS etc. to indicate whether UMVE is enabled or not. In one example, another flag may be signaled to indicate whether affine merge mode with prediction offset (ie, UMVE applied to normal affine merge mode) is enabled or not. b. Alternatively, only one flag is signaled to indicate whether both UMVE and affine merge mode with prediction offset (ie, UMVE applied to normal affine merge mode) are enabled.

[0124] 2. It is proposed that the basic candidate list size may be signaled in slice header / tile group header / tile header / picture header / PPS / SPS / VPS etc. for UMVE. In one example, the base candidate list size is set equal to 1 or 2 or 3. b. In one example, the base candidate list size should be less than or equal to the merge candidate list size. c. In one example, the base candidate list size does not need to be signaled separately. Instead, the base candidate list size is inferred to be the same as the normal merge list size.

[0125] 3. It is proposed that the basic candidate list size may be signaled in slice header / tile group header / tile header / picture header / PPS / SPS / VPS etc. for affine merge mode with prediction offset. In one example, the base candidate list size is set equal to 1 or 2 or 3. b. In one example, the base candidate list size should be less than or equal to the sub-block merge candidate list size. c. In one example, the base candidate list size does not need to be signaled separately. Instead, the base candidate list size is inferred to be the same as the sub-block merge list size when UMVE is applied to an affine coded block.

[0126] 4. It is proposed that the distance table and / or the direction table may be signaled in the slice header / tile group header / tile header / picture header / PPS / SPS / VPS etc. for UMVE. a. In one example, only the distance table size and / or the direction table size are signaled, denoted as K1 and K2, and the first K1 elements in the default distance table size and / or the first K2 elements in the direction table are valid. b. In one example, only the distance table size and / or the direction table size are signaled, denoted as K1 and K2, and the last K1 elements in the default distance table size and / or the last K2 elements in the direction table are valid.

[0127] 5. A flag may be signaled to indicate whether fractional distances are allowed or not. a. The flag may be notified in a slice header / tile group header / tile header / picture header / PPS / SPS / VPS, etc. b. The flag may be signaled under the condition that an indication of UMVE usage indicates that UMVE is permitted. c. A flag may be signaled under the condition that MVD offset is permitted to indicate the use of affine merge mode. d. The flag may be signaled at two levels: A first flag may be signaled in the SPS / VPS / PPS to indicate whether the second flag will be signaled in the PPS / slice header / tile group header / tile header. i. In one example, if the first flag is false (or true), fractional distance may always be enabled and the second flag may not be signaled. ii. In one example, if the first flag is true (or false), fractional distance is disabled and the second flag is signaled. If the second flag is true (or false), fractional distance is enabled for the picture / slice / tile group / tile, otherwise fractional distance is disabled for the picture / slice / tile group / tile. e. In one example, a first flag sps_fracmmvd_disabled_flag is signaled in the SPS, and a second flag tile_group_fracmmvd_disabled_flag is signaled in the tile group header. When i.sps_fracmmvd_disabled_flag is false, disabling fractional distance does not apply and tile_group_fracmmvd_disabled_flag is not signaled and is inferred to be false. ii. When sps_fracmmvd_disabled_flag is true, disabling fractional distance applies and tile_group_fracmmvd_disabled_flag is signaled. iii. When tile_group_fracmmvd_disabled_flag is true, fractional distance is disabled for the tile group, otherwise fractional distance is enabled for the tile group. f. In one example, a first flag sps_fracmmvd_disabled_flag is signaled in the SPS, and a second flag tile_group_fracmmvd_flag is signaled in the tile group header. When i.sps_fracmmvd_disabled_flag is false, disabling fractional distance does not apply and tile_group_fracmmvd_flag is not signaled and is inferred to be true. ii. When sps_fracmmvd_disabled_flag is true, disabling fractional distance applies and tile_group_fracmmvd_flag is signaled. iii. When tile_group_fracmmvd_flag is true, fractional distance is enabled for the tile group, otherwise fractional distance is disabled for the tile group. g. Alternatively, further, when fractional distances are not allowed, only integer distances are allowed. h. Alternatively, further, when fractional distances are not allowed, only integer distances and / or distances with less than integer precision are allowed. i. Alternatively, a truncated unary of the distance index may also be used to code the distance index, with the maximum allowable distance index depending on the number of integer distances allowed when a flag indicates that fractional distances are not allowed. j. Alternatively, when fractional distances are not allowed, all elements in the default distance table are multiplied by a factor to produce an integer distance. i. For example, all elements are multiplied by 4. The k. flag may be shared by UMVE (i.e., normal merge mode with MVD offsets) and affine merge mode with MVD offsets. l. Alternatively, flags may be signaled separately for affine merge mode with UMVE and MVD offsets.

[0128] 6. A flag may be signaled to indicate whether fractional MV / MVD precision is allowed or not allowed for AMVP mode and / or affine inter mode. a. The flag may be notified in a slice header / tile group header / tile header / picture header / PPS / SPS / VPS, etc. b. The flag may be notified under the condition that it indicates that an instruction to use AMVR (Adaptive Motion Vector Resolution) has been given. c. The flag may be signaled under the condition that it is permitted to indicate the use of AMVR for affine inter mode. d. The flag may be signaled at two levels: A first flag may be signaled in the SPS / VPS / PPS to indicate whether the second flag will be signaled in the PPS / slice header / tile group header / tile header. i. In one example, if the first flag is false (or true), then fractional MV / MVD may always be enabled and the second flag may not be signaled. ii. In one example, if the first flag is true (or false), fractional MV / MVD may be disabled and a second flag is signaled. If the second flag is true (or false), fractional MV / MVD is enabled for the picture / slice / tile group / tile, otherwise fractional MV / MVD is disabled for the picture / slice / tile group / tile. e. In one example, furthermore, when fractional MV / MVD are not allowed, only integer precision MV / MVD are allowed. f. Alternatively, further, when fractional MV / MVD are not allowed, only MV / MVD with integer and / or less than integer precision are allowed. g. Alternatively, if the flag also indicates that fractional MV / MVD is not allowed, then a truncated unary code may be used to encode the AMVR index according to the number of MV / MVD precisions allowed. h. The flag may be shared by the AMVR and the AMVR for affine inter modes. i. Alternatively, flags may be signaled separately for AMVR and AMVR for affine inter mode. j. Alternatively, the flag may be shared by AMVR mode, AMVR for affine inter mode, UMVE mode, and affine merge mode with MVD offset.

[0129] 7. It is proposed that the distance table and / or direction table may be signaled in slice header / tile group header / tile header / picture header / PPS / SPS / VPS etc. for affine merge mode with prediction offset. a. In one example, only the distance table size and / or the direction table size are signaled, denoted as K1 and K2, and the first K1 elements in the default distance table size and / or the first K2 elements in the direction table are valid. b. In one example, only the distance table size and / or the direction table size are signaled, denoted as K1 and K2, and the last K1 elements in the default distance table size and / or the last K2 elements in the direction table are valid. c. In one example, a flag may be signaled to indicate whether fractional distance is used or not.

[0130] 8. It is proposed that two MVDs may be coded for blocks coded with bi-predictive and UMVE modes. In one example, one MVD is encoded per prediction direction. The number of MVDs used in i.UMVE may be signaled from the encoder to the decoder. ii. Alternatively, the number of MVDs used in the UMVE may be derived at the decoder. b. In one example, one MVD may be encoded for each prediction direction, and the MVD of prediction direction LX may be used to predict L(1-X). i. The MVD for list 0 may be announced first, or alternatively, the MVD for list 1 may be announced first. (i) This order may be notified. c. Additionally, base candidate indexes and / or distance indexes and / or direction indexes for both prediction directions may be signaled. d. In one example, more than two MVDs (eg, three or four) may be advertised for UMVE mode.

[0131] 9. It is proposed that the distance table and / or the direction table may depend on the POC of the current picture and the POCs of the two reference pictures, or the QP of the current block / slice / picture. In one example, the table may depend on the POC difference between two reference pictures and the current picture.

[0132] 10. An indication of multiple sets of UMVE parameters (eg, multiple sets of distance tables and / or direction tables) may be signaled in the slice header / tile group header / tile header / picture header / PPS / SPS / VPS, etc. for UMVE. Alternatively, a set of distance and / or direction tables may be signaled or predefined, and multiple sets may be derived from the signaled / predefined set, e.g., by shifting available distance values. i. In one example, an indication of how to shift the available distance values ​​may be signaled in the slice header / tile group header / tile header / picture header / PPS / SPS / VPS, etc. (i) In one example, a movable instruction to use a left shift or a right shift may be signaled. (ii) In one example, an indication of how many bits to shift left may be signaled. ii. In one example, a one-bit flag is signaled in the slice header / tile group header / tile header / picture header / PPS / SPS / VPS, etc. to indicate whether the existing distance table is used or whether each of the distance values ​​is left shifted by M (e.g., M=2). iii. In one example, an indication of bits to be shifted left (and / or) right may be signaled in the slice header / tile group header / tile header / picture header / PPS / SPS / VPS, etc. b. Alternatively, permission indexes for multiple sets of UMVE parameters (e.g., distance tables and / or direction tables (e.g., signaled / subsets of multiple predefined sets)) may be further signaled in slice header / tile group header / tile header / picture header / PPS / VPS / CTU row / group of CTU, etc. c. Alternatively, the selection of one of multiple sets of UMVE parameters (eg, distance table and / or direction table) may depend on the coded mode, eg, CPR or not. d. Alternatively, the selection of one of multiple sets of UMVE parameters (eg, distance table and / or direction table) may depend on the picture / sequence resolution. e. Alternatively, the selection of one of the sets of UMVE parameters (eg, distance table and / or direction table) for a block may depend on the selected base merging candidate. In one example, it may depend on the magnitude / sign value of the motion vector. (i) In one example, if the motion vector magnitude is larger, a distance table with a larger step size may be utilized. ii. In one example, it may depend on the reference pictures / POC values ​​of the selected base merging candidate, for example, whether all or at least one of the reference pictures is the current picture (ie, CPR). iii. In one example, it may depend on whether the motion vector of the selected base merging candidate points to an integer position or a sub-position (eg, ¼, 1 / 16, ⅛, ½ pel). iv. The selection may depend on the category of merge candidates (eg, spatial or temporal or HMVP or other) that the base merge candidate represents. v. The selection may depend on the position (eg, left / top) that the base merge candidate represents and from which the merge candidate is derived. vi. The selection may depend on the index of the merge candidate in the merge list that the base merge candidate represents. f. Alternatively, selection of one of multiple sets of UMVE parameters (eg, distance tables and / or direction tables) for a dimension of one block. i. In one example, when a block has more than M×N (e.g., 16×16) samples, one set of UMVE parameters may be utilized, and for other blocks, another set may be utilized. ii. In one example, when a block has a width greater than M (e.g., 16) samples, one set of UMVE parameters may be utilized, and for other blocks, another set may be utilized. iii. In one example, if one block has a height of more than M (e.g., 16) samples, one set of UMVE parameters may be utilized, and for other blocks, another set may be utilized. g. Alternatively, there is no need to further signal the selected distance table and / or direction table. The selection of the distance table and / or direction table may be derived at the block level / slice / tile / picture level. h. Alternatively, the selected distance table and / or direction table index may be further signaled at block level / CTU level / region level / CTU row level / slice / tile / picture level. i. In one example, multiple sets of distance tables and / or direction tables may be defined, each of which may be associated with a given motion vector precision (e.g., integer pel, sub-pel, i.e., 1 pel, 4 pels, ¼ pel, 1 / 16 pel). i. In one example, the number of sets may depend on how much motion vector precision is allowed for a sequence / view / picture / slice / tile / other type of video data processing unit. ii. Alternatively, furthermore, for base merging candidates derived from one block, the associated AMVR index may also be inherited to determine the distance table and / or direction table. (i) In one example, such blocks are spatially adjacent or non-adjacent blocks. Alternatively, further, such blocks are spatially adjacent or non-adjacent blocks located in the same CTU / CTU row / region / tile / slice. (ii) In one example, if a block is a time block, the AMVR index is not inherited. (iii) In one example, if the base merge candidate is derived from a virtual merge candidate (eg, a pair-wise bi-predictive merge candidate, a zero motion vector merge candidate), the AMVR index is not inherited. (iv) Alternatively, further, if the AMVR index is not inherited, a default distance table and / or direction table may be used instead. iii. Alternatively, an AMVR index may also be stored for each HMVP candidate.

[0133] 11. Selected UMVE parameters (e.g., distance tables and / or direction tables) may be adaptively changed from one block to another, from one reference picture list to another, from one reference picture list to another, on a tile-by-tile, slice-by-slice, picture-by-picture, sequence-by-sequence, or temporal layer-by-temporal layer basis. In one example, the selection of UMVE parameters may depend on the components of the motion vector, i.e., horizontal and vertical components, and considering that most of the sequences captured by the camera have larger motion in the horizontal direction compared to the vertical direction.

[0134] 12. It is proposed that when UMVE is harmonized with CPR modes, some distances are not recognized. In one example, distances with fractional accuracy such as 1 / 4 or 1 / 2 are not permitted. b. In one example, distances outside the effective search range in CPR are not permitted. c. In one example, when a selected distance is not permitted according to the distance table, it may be replaced by another valid distance. d. Alternatively, a different set of mappings between distance indexes and pixel indexes may be defined, one for CPR modes and another for non-CPR modes. e. In one example, a predefined delta MV, ie, (MVx,MVy), is added to the start of the UMVE when the UMVE is applied for a block. f. In one example, the predefined delta MV may be dependent on the block size. g. Alternatively, the predefined delta MV may depend on the reference index. h. Alternatively, the predefined delta MV may be color component dependent. i. Alternatively, the delta MV added to the starting point may be signaled in the slice header / tile group header / tile header / picture header / PPS / SPS / VPS, etc. j. Alternatively, the set of delta MVs added to the starting point can be signaled in the slice header / tile group header / tile header / picture header / PPS / SPS / VPS, etc. Alternatively, for different block sizes or reference indexes, delta MVs can be signaled in the slice header / tile group header / tile header / picture header / PPS / SPS / VPS, etc. k. In one example, when the UMVE is coordinated with the CPR mode, one prediction is always applied. i. Only one MVD is used or signaled. l. Similarly, when one basic merge candidate has at least one or all of the reference pictures that are the current picture (e.g., CPR), a certain direction index may not be recognized. i. Alternatively, an unrecognized direction index may be replaced with another valid direction index. m. In this case, for the merge candidate / AMVP candidate, when it has all or at least one of the reference pictures that are the current picture, the UMVE may still be applied.

[0135] 13. For UMVE-coded blocks, the decoded MVD based on the decoded distance index and direction index may be further refined. a. Whether to refine the decoded MVD may depend on the motion information related to the merge candidates in the merge candidate list. i. In one example, when adding the decoded MVD to the selected basic candidate results in the same as other merge candidates, the decoded MVD may be further refined, for example, by using a different distance index or direction index. ii. In one example, when adding the decoded MVD to the selected basic candidate results in being similar to other merge candidates, the decoded MVD may be further refined, for example, by using a different distance index or direction index. (i) For example, when |MV1x - MV2x| + |MV1y - MV2y| < T, MV1 and MV2 are considered similar. (ii) Two candidates are considered similar when they share the same reference index and the MVs referring to the same reference picture are similar. b.BIO may not be permitted for UMVE coded blocks. c.DMVR may not be permitted for UMVE coded blocks.

[0136] 14. For UMVE coded blocks, the mapping between the coded base candidate index and the candidate index of the merge candidate in the merge candidate list may be changed on a block-by-block, tile-by-tile, picture-by-picture, sequence-by-sequence basis. a. The coded base candidate index equal to 0 always corresponds to the first merge candidate in the candidate list. However, the coded base candidate index equal to K (K>0) does not have to correspond to the (K+1)th candidate in the candidate list. b. In one example, a Coded Base Candidate Index (CBCI) equal to 1 may indicate a merge candidate in the merge candidate list that is not similar to the first candidate pointed to by a CBCI equal to 0. i. For example, when the first two merge candidates are similar (e.g., only the MV differs and the MV difference is similar or equal to a threshold), a coded base candidate index equal to 1 may correspond to the third merge candidate if the third merge candidate is dissimilar to the first merge candidate. c. In one example, the mapping or selection of a base merge candidate from the merge candidate list may depend on the first merge candidate in the candidate list. i. For example, only merging candidates that have the same reference pictures as the first merging candidate may be treated as base merging candidates. ii. For example, only merging candidates that have at least one of the same reference indexes or at least one of the reference pictures as the first merging candidate may be treated as base merging candidates. iii. For example, only merging candidates that have at least one of the same motion vector accuracy as the first merging candidate may be treated as base merging candidates. iv. In the above example, 'same' may be replaced with 'different'. d. Some merge candidates may not be accepted for use as base merge candidates in UMVE mode. i. In one example, virtual merge candidates (eg, composite bi-predictive merge candidates, pair-wise merge candidates, zero motion vector merge candidates) are not allowed. ii. In one example, temporal merge candidates and / or HMVP candidates are not allowed. iii. In one example, if one merge candidate is derived from a particular mode (eg, triangular prediction mode, sub-block mode, affine or ATMVP or STMVP), such candidate is not allowed. iv. When one candidate is not eligible to be used as the base merging candidate, the next or other remaining candidates may be used instead. v. One or more of the base merge candidates may not be from the merge candidate list. (i) One or more basic merging candidates may be derived from the available merging candidates (eg, scaling to a different reference picture; retaining only LX motion information (eg, X=0 or 1)). (ii) One or more base merging candidates may be derived from a default motion vector candidate (eg, (-W,-H), where W and H are the width and height of the current block). e. Alternatively, for the above methods, the initial candidate may be restricted to be an initial non-CPR candidate. f. Base merge candidates may be defined to be merge candidates in the merge list that have a sufficiently large difference. i. In one example, if two merging candidates are similar (e.g., the reference pictures are the same and the MV difference is less than a threshold), the second of the two candidates cannot be a valid base merging candidate.

[0137] 15. In all of the above examples, the distance table and / or the direction table may be replaced with other methods for representation of the UMVE.

[0138] 16. In all of the above examples, the reporting / deriving of the distance table may be replaced with the AMVR precision. Let the set of AMVR precisions be represented as {1 / 4 pel, 1 pel, 4 pel}. In one example, an indication of whether to scale the MV precision defined in the AMVR precision set may be signaled in the slice header / tile group header / tile header / picture header / PPS / SPS / VPS, etc. For example, if scaling is utilized, a modified set of AMVR precisions may be defined as {1 pel, 4 pel, 16 pel}, i.e., scaled by 4. b. Alternatively, multiple AMVR sets may be defined or signaled. c. Alternatively, the set index indication may be signaled or derived on the fly, for example based on coded information or previously coded information of the block. d. The set of allowed AMVR precisions may change from one video unit to another (e.g., block / PU / CU / CTU / CTU row / tile / slice / picture, region, etc.). e. The mapping between the signaled MV precision index and the actual MV precision may be changed from one video unit to another (e.g., block / PU / CU / CTU / CTU row / tile / slice / picture / region, etc.).

[0139] 17. It is proposed that for cases where all reference pictures are the current picture (or all reference blocks are obtained from samples of the current picture), the flags for affine, sub-block based merging, multiple hypothesis intra / inter prediction, triangular prediction and MMVD may not be signaled.

[0140] 18. It is proposed that GBi may be disabled / enabled at slice level / tile level / picture level and one GBi on / off flag may be signaled in slice header / tile header / PPS. In one example, GBi may be disabled for a picture if the picture's temporal layer is higher than a threshold T, eg, T=3. b. In one example, GBi may be invalidated for pictures that are not referenced by other pictures. c. In one example, GBi is a threshold QP T , e.g., QP T It may be disabled for pictures with QP greater than =40. d. In one example, GBi is a threshold QP T , e.g., QP T = 40, may be implicitly (i.e., without signaling a GBi index).

[0141] 19. It is proposed that the weighting coefficient set used in GBi may depend on the temporal layer of the picture, or the QP of the picture, or the QP of the block. In one example, a smaller weighting factor is used for a picture having a higher temporal layer. b. In one example, less weighting factors are used for pictures / blocks coded with a higher QP.

[0142] 20. It is proposed that in addition to the default weighting factor set, other weighting factor sets may be used in GBi and these weighting factor sets may be signaled in the slice header / tile header / PPS. a. In one example, a flag is signaled in the slice header / tile header / PPS to indicate whether a default weighting factor set is used, and if the default weighting factor set is not used, the weighting factor set to be used is further signaled.

[0143] It is proposed that 21.GBi may be extended to the case of uni-prediction, where a weighting factor set is designed and the weighting factor is selected at the block / CU level. In one example, the GBi index is signaled for AMVP mode and / or affine inter mode in the case of uniprediction, and is inherited for merge mode or UMVE mode or affine merge mode or affine merge with offset mode. b. For example, the weighting coefficient set is {10 / 8, 9 / 8, 1, 7 / 8, 6 / 8}.

[0144] 22. It is proposed that one or more offset sets may be designed in GBi and / or extended GBi (in Barrett 21). Then, the motion compensated block may be refined with the selected offset. In this case, after motion compensation, each prediction sample may be further added with an offset to obtain a final prediction sample. a. The offset index may be signaled for each CU / block. b. In one example, when the default weighting factor (eg, 1 / 2 for bi-prediction and 1 for uni-prediction) is not selected, an offset index is also signaled in AMVP mode or affine inter mode. c. In one example, the offset index is always signaled, whether the selected weighting factor is the default weighting factor or not. d. In one example, the offset index is inherited in merge mode or UMVE mode or affine merge mode or affine merge with offset mode.

[0145] 23. It is proposed that the neighboring pixels of the current block / CU and the corresponding reference neighboring pixels identified by the MV (or integer part of the MV) of the current block may be used to implicitly select the GBi index. In this case, no GBi index is signaled and only one GBi flag is signaled to indicate whether the current block uses the default weighting factors or the selected weighting factors. In one example, for each weighting factor, the reference neighboring pixels in both directions are weighted averaged and the difference between it and the neighboring pixel is calculated. The weighting factor that achieves the smallest difference is selected as the weighting factor of the current block. b. In one example, the difference may be measured, for example, by SAD, MRSAD, SSE or MRSSE, SATD. c. In one example, the difference may be calculated for a number of representative adjacent positions. d. In one example, such GBi flags are inherited in merge mode or UMVE mode or affine merge mode or affine merge with offset mode. e. In one example, if the sum (or average) of the neighboring samples of the current block is S0 and the sum (or average) of the neighboring samples of the reference block is S1, then the GBi weight value can be derived by S0 and S1. In one example, S0 / S1 is used to derive the weight value. Divisions can be replaced with multiplications, shifts and lookup tables. ii. The adjacent samples of the reference block must be integer samples.

[0146] 24. It is proposed that the neighboring pixels of the current block / CU and the corresponding reference neighboring pixels identified by the MV (or integer part of the MV) of the current block may be used to reorder the GBi indices. In one example, for each weighting factor, the reference neighboring pixels in both directions are weighted averaged and the difference between it and the neighboring pixel is calculated. The weighting factors are then sorted in ascending order.

[0147] 25. It is proposed that the derived LIC parameter may be used as one of the weighting factors in GBi. In one example, when deriving the LIC parameters, the offset is assumed to be zero and only the weighting coefficients are derived, i.e., the LIC model is modified to y=ax. b. In one example, both the offset and weighting factors derived in the LIC are used in GBi. c. In one example, in merge mode or UMVE mode or affine merge mode or affine merge mode with offset, the weighting coefficients used in GBi are inherited directly from the neighboring blocks. i. Alternatively, if the inherited neighbor weighting coefficients are in fact derived LIC parameters, new LIC parameters are derived and used for the current block / CU. ii. Alternatively, in merge mode and / or UMVE mode, if the inherited neighbor weighting coefficients are in fact the derived LIC parameters, new LIC parameters are derived and used for the current block / CU.

[0148] 5. Example Embodiments This section presents several embodiments of improved UMVE designs.

[0149] [5.1 First embodiment] In this embodiment, a flag is signaled whether fractional distances are allowed. Changes compared to the latest VVC standard are highlighted in bold italics (or underlined).

[0150] 7.3.2.1 Sequence Parameter Set RBSP Syntax [Table 6] [Semantics] sps_UMVE_enabled_flag equal to 0 specifies that UMVE (MMVD) is disabled. sps_UMVE_enabled_flag equal to 1 specifies that UMVE is enabled. sps_disable_fractional_distance equal to 0 specifies that fractional pixel distance in UMVE (MMVD) is enabled. sps_disable_fractional_distance equal to 1 specifies that fractional pixel distance in UMVE is disabled. Alternatively, sps_disable_fractional_distance may be replaced with sps_enable_fractional_distance. Alternatively, sps_disable_fractional_distance may be coded directly. Alternatively, sps_UMVE_enabled_flag and sps_disable_fractional_distance may also be signaled in the picture header / PPS / slice header / tile group header / region / CTU row / group of CTU / CTU. mmvd_distance_idx[x0][y0] is For sps_disable_fractional_distance equal to 0 In Table 7-7 , and sps_disable_fractional_distance equal to 1, see Table 7-x. Define the indices used to derive MmvdDistance[x0][y0] as specified. The array indices x0, y0 identify the position (x0, y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture. [Table 7] [Table 8] [Table 9]

[0151] [5.2 Second embodiment] In this embodiment, the indications of the distance table are announced. Changes compared to the latest VVC standard are highlighted in bold italics (or underlined).

[0152] 7.3.2.1 Sequence Parameter Set RBSP Syntax [Table 10] 7.3.2.2 Picture parameter set RBSP syntax [Table 11] [Semantics] sps_UMVE_enabled_flag equal to 0 specifies that UMVE (MMVD) is disabled. sps_UMVE_enabled_flag equal to 1 specifies that UMVE is enabled. sps_distance_tables equal to L specifies that (L+1) distance tables of UMVE (MMVD) are defined. index_distance_table equal to L specifies that the Lth distance table of the UMVE (MMVD) is used. In one example, M is set to two. Alternatively, the sps_distance_tables may be coded directly. Alternatively, sps_UMVE_enabled_flag, sps_distance_tables, and index_distance_table may also be signaled in the picture header / PPS / slice header / tile group header / region / CTU row / group of CTU / CTU. [Table 12] Alternatively, further, when one base merging candidate is a CPR, a different distance table may be utilized from those defined above. Alternatively, the direction table may be advertised / predefined.

[0153] [5.3 Third embodiment] In this embodiment, a flag is signaled whether fractional distances are allowed. Changes compared to the latest VVC standard are highlighted in bold italics (or underlined).

[0154] 7.3.2.1 Sequence Parameter Set RBSP Syntax [Table 13] [Semantics] sps_UMVE_enabled_flag equal to 0 specifies that UMVE (MMVD) is disabled. sps_UMVE_enabled_flag equal to 1 specifies that UMVE is enabled. sps_disable_fractional_distance equal to 0 specifies that fractional pixel distance in UMVE (MMVD) is enabled. sps_disable_fractional_distance equal to 1 specifies that fractional pixel distance in UMVE is disabled. Alternatively, sps_disable_fractional_distance may be replaced with sps_enable_fractional_distance. Alternatively, sps_disable_fractional_distance may be coded directly. Alternatively, sps_UMVE_enabled_flag and sps_disable_fractional_distance may also be signaled in the picture header / PPS / slice header / tile group header / region / CTU row / group of CTU / CTU. mmvd_distance_idx[x0][y0] is For sps_disable_fractional_distance equal to 0 In Table 7-7 , and sps_disable_fractional_distance equal to 1, see Table 7-x. Define the indices used to derive MmvdDistance[x0][y0] as specified. The array indices x0, y0 identify the position (x0, y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture. [Table 14] [Table 15]

[0155] [5.4 Fourth embodiment] 7.3.3.1 Generic slice header syntax [Table 16] Equal to 1 enable_MMVD_distance_scale_flag indicates that scaling is applied to the default distance table. enable_MMVD_distance_scale_flag equal to 0 indicates that the default distance table is used. [Table 17] In one example, M is set to 2. Alternatively, the left shift may be replaced with a right shift.

[0156] [5.5 Fifth embodiment] The syntax changes are explained below, with new additions highlighted in bold italics (or underlined).

[0157] 7.3.2.1 Sequence Parameter Set RBSP Syntax [Table 18] 7.3.3.1 General Tile Group Header Syntax [Table 19] 7.4.3.1 Sequence Parameter Set RBSP Semantics sps_fracmmvd_enabled_flag equal to 1 specifies that tile_group_fracmmvd_flag is present in the tile group header syntax table for B and P pictures. sps_fracmmvd_enabled_flag equal to 0 specifies that tile_group_fracmmvd_flag is not present in the tile group header syntax table for B and P pictures. 7.4.4.1 General Tile Group Header Semantics tile_group_fracmmvd_flag equal to 1 specifies that the fractional pel motion vector differential merge mode is enabled for the current tile group. tile_group_fracmmvd_flag equal to 0 specifies that the fractional pel motion vector differential merge mode is disabled for the current tile group. When not present, the value of tile_group_fracmmvd_flag is inferred to be 1. 7.4.5.8 Merge Data Semantics mmvd_distance_idx[x0][y0] defines the indexes used to derive MmvdDistance[x0][y0] as specified in Table 7-9. The array indexes x0, y0 identify the position (x0, y0) of the top-left luma sample of the coding block under consideration relative to the top-left luma sample of the picture. [Table 20]

[0158] [5.6 Sixth embodiment] The syntax changes are explained below, with new additions highlighted in bold italics (or underlined).

[0159] 7.3.2.1 Sequence Parameter Set RBSP Syntax [Table 21] 7.3.3.1 General Tile Group Header Syntax [Table 22] 7.4.3.1 Sequence Parameter Set RBSP Semantics sps_fracmmvd_disabled_flag equal to 1 specifies that disable merge mode with motion vector differentials with fractional pel precision applies. sps_fracmmvd_disabled_flag equal to 0 specifies that disable merge mode with motion vector differentials with fractional pel precision does not apply. 7.4.4.1 General Tile Group Header Semantics tile_group_fracmmvd_disabled_flag equal to 1 specifies that the merge mode with motion vector differentials with fractional pel precision is disabled for the current tile group. tile_group_fracmmvd_disabled_flag equal to 0 specifies that the merge mode with motion vector differentials with fractional pel precision is enabled for the current tile group. When not present, the value of tile_group_fracmmvd_disabled_flag is inferred to be 0. 7.4.5.8 Merge Data Semantics mmvd_distance_idx[x0][y0] defines the indexes used to derive MmvdDistance[x0][y0] as specified in Table 7-9. The array indexes x0, y0 identify the position (x0, y0) of the top-left luma sample of the coding block under consideration relative to the top-left luma sample of the picture. [Table 23]

[0160] [5.7 Seventh embodiment] The syntax changes are explained below, with new additions highlighted in bold italics (or underlined).

[0161] 7.3.2.1 Sequence Parameter Set RBSP Syntax [Table 24] 7.3.3.1 General Tile Group Header Syntax [Table 25] 7.4.3.1 Sequence Parameter Set RBSP Semantics sps_fracmmvd_disabled_flag equal to 1 specifies that disable merge mode with motion vector differentials with fractional pel precision applies. sps_fracmmvd_disabled_flag equal to 0 specifies that disable merge mode with motion vector differentials with fractional pel precision does not apply. 7.4.4.1 General Tile Group Header Semantics tile_group_fracmmvd_flag equal to 1 specifies that the fractional pel motion vector differential merge mode is enabled for the current tile group. tile_group_fracmmvd_flag equal to 0 specifies that the fractional pel motion vector differential merge mode is disabled for the current tile group. When not present, the value of tile_group_fracmmvd_disabled_flag is inferred to be 1. 7.4.5.8 Merge Data Semantics mmvd_distance_idx[x0][y0] defines the indexes used to derive MmvdDistance[x0][y0] as specified in Table 7-9. The array indexes x0, y0 identify the position (x0, y0) of the top-left luma sample of the coding block under consideration relative to the top-left luma sample of the picture. [Table 26]

[0162] It should be noted that for all embodiments, the relevant syntax may also be located in other video data units (eg, SPS / VPS / PPS / picture header / slice header / tile group header, etc.).

[0163] FIG. 11A is a block diagram of a video processing device 1100. The device 1100 may be used to implement one or more of the methods described herein. The device 1100 may be embodied in a smartphone, a tablet, a computer, an Internet of Things (IoT) receiver, etc. The device 1100 may include one or more processors 1102, one or more memories 1104, and video processing hardware 1106. The processor 1102 may be configured to implement one or more of the methods described herein. The memory(s) 1104 may be used to store data and code used to implement the methods and techniques described herein. The video processing hardware 1106 is a hardware circuit that may be used to implement some of the techniques described herein and may be partially or completely part of the processor 1102 (e.g., a graphics processor core (GPU) or other signal processing circuitry).

[0164] FIG. 11B is another example of a block diagram of a video processing system in which the disclosed techniques may be implemented. FIG. 11B is a block diagram illustrating an example video processing system 3100 in which various techniques described herein may be implemented. A video implementation may include some or all of the components of the system 3100. The system 3100 may include an input 3102 that receives video content. The video content may be received in a raw or uncompressed format, for example, 8 or 10-bit multi-component pixel values, or may be in a compressed or encoded format. The input 3102 may correspond to a network interface, a peripheral bus interface, or a storage interface. Examples of network interfaces include wired interfaces such as Ethernet, Passive Optical Network (PON), etc., and wireless interfaces such as Wi-Fi or cellular interfaces.

[0165] The system 3100 may include a coding component 3104 that may implement various coding or encoding methods described herein. The coding component 3104 may reduce the average bit rate of the video from the input 3102 to an output of the coding component 3104 to generate a coded representation of the video. Coding techniques are therefore sometimes referred to as video compression or video transcoding techniques. The output of the coding component 3104 may be either stored or transmitted over a communication connection, as represented by component 3106. The stored or communicated bitstream (or coded) representation of the video received at the input 3102 may be used by component 3108 to generate pixel values ​​or displayable video that are sent to the display interface 3110. The process of generating a user-viewable video from the bitstream representation is sometimes referred to as video decompression. Furthermore, although certain video processing operations are referred to as "coding" operations or tools, the coding tools or operations are used at an encoder, and the corresponding decoding tools or operations that cause the results of the coding to be determined will be performed at a decoder.

[0166] Examples of peripheral bus interfaces or display interfaces may include Universal Serial Bus (USB) or High Definition Multimedia Interface (HDMI), etc. Examples of storage interfaces include Serial Advanced Technology Attachment (SATA), PCI, IDE interfaces, etc. The techniques described herein may be embodied in various electronic devices such as mobile phones, laptops, smartphones, or other devices capable of performing digital data processing and / or video display.

[0167] In some embodiments, the video coding method may be implemented using an apparatus implemented on a hardware platform as described in connection with FIG. 11A or FIG. 11B.

[0168] 12 shows a flowchart of an example method for video processing according to some implementations of the disclosed techniques. The method 1200 includes, at step 1202, determining an ultimate motion vector expression (UMVE) mode of operation for conversion between a current video block of a video and a coded representation of the video. The method 1200 includes, at step 1204, performing the conversion based on the determination. In some implementations, the current video block is coded with a merge mode and a motion vector differential in the UMVE mode with a motion vector indication including a starting point, a magnitude of motion, and a direction of motion of the motion information for the current video block. One or more fields in the coded representation correspond to the mode of operation, and the one or more fields include a UMVE enable field having a value indicating whether the UMVE mode is enabled or disabled for the current video block, or a modified affine mode enable field indicating whether a modified affine merge mode based on the UMVE mode is enabled or disabled for the current video block. In some implementations, the current video block is coded with a merge mode and a motion vector differential in UMVE mode with a motion vector indication that includes a starting point, a magnitude of motion, and a direction of motion information for the current video block. One or more fields in the coded representation correspond to the mode of operation, and the one or more fields include a list size field that indicates a size of a basic candidate list used by the UMVE mode, or a table field that signals a distance table or a direction table for the UMVE mode.

[0169] FIG. 13 illustrates a flowchart of an example method for video processing according to some implementations of the disclosed techniques. The method 1300 includes, at step 1302, performing a conversion between a current video block of a video and a coded representation of the video using an ultimate motion vector expression (UMVE) coding tool. In some implementations, the UMVE coding tool represents a motion vector representation including a starting point, a motion magnitude, and a motion direction of motion information for the current video block, and at least one of the distance table or the direction table is dependent on Picture Order Counts (POC) of two reference pictures or the POC of the current picture that includes the current video block, or a Quantization Parameter (QP) used to code the current video block, the current slice, or the current picture. In some implementations, the UMVE coding tool represents a motion vector representation including a starting point, a motion magnitude, and a motion direction of motion information for the current video block, and an Adaptive Motion Vector Resolution (AMVR) scheme is used to inform the distance table used by the UMVE coding tool.

[0170] 14 shows a flowchart of an example method of video processing according to some implementations of the disclosed techniques. The method 1400 includes determining, at step 1402, an affine ultimate motion vector expression (UMVE) mode of operation for a transformation between a current video block of a video and a coded representation of the video. The method 1400 includes, at step 1404, performing the transformation based on the determination.

[0171] 15A shows a flowchart of an example method of video processing according to some implementations of the disclosed techniques. The method 1510 includes, at step 1512, determining to signal a plurality of motion vector differentials in an ultimate motion vector expression (UMVE) coding tool for conversion between a current video block of a video and a coded representation of the video. The method 1510 includes, at step 1514, performing the conversion based on the determination. In some implementations, with the UMVE coding tool, a motion vector representation including a starting point and N motion vector differentials represented by N motion magnitudes and N motion directions of the current video block is used during the conversion, where N is an integer greater than or equal to 2.

[0172] 15B shows a flowchart of an example method of video processing according to some implementations of the disclosed techniques. The method 1520 includes, at step 1522, determining that rules are applicable for transforming a current video block by using a current picture reference (CPR) coding tool and an ultimate motion vector expression (UMVE) coding tool for transforming between a current video block of the video and a coded representation of the video. The method 1520 includes, at step 1524, performing the transform according to the rules. In some implementations, the rules disallow the use of one or more coding distances for the transform, and the CPR coding tool uses the current picture as a reference picture, and the UMVE coding tool uses a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for the current video block.

[0173] 15C shows a flowchart of an example method of video processing according to some implementations of the disclosed techniques. The method 1530 includes, at step 1532, determining that during conversion between a current video block of a video and a coded representation of the video, the current video block uses an ultimate motion vector expression (UMVE) coding tool that represents a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for the current video block, to perform a refinement of a motion vector difference (MVD) value for the current video block. The method 1530 includes, at step 1534, performing the conversion based on the determination.

[0174] 15D shows a flowchart of an example method of video processing according to some implementations of the disclosed techniques. The method 1540 includes, at step 1542, determining to use a first UMVE parameter set from a plurality of UMVE parameter sets for conversion between a current video block of a video and a coded representation of the video when there is a determination that the current video block uses an ultimate motion vector expression (UMVE) coding tool that represents a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for the current video block. The method 1540 includes, at step 1544, performing the conversion based on the determination. In some implementations, an indication of at least one of the plurality of UMVE parameter sets is signaled or predefined for the current video block.

[0175] 15E shows a flowchart of an example method of video processing according to some implementations of the disclosed techniques. The method 1550 includes, at step 1552, selecting an ultimate motion vector expression (UMVE) parameter set for conversion between the current video block and the coded representation of the video upon a determination that the current video block of the video uses an ultimate motion vector expression (UMVE) coding tool that represents a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for the current video block. In some implementations, the selected UMVE parameter set is changed across different video blocks, different reference picture lists, different reference pictures, different tiles, different slices, different pictures, or different temporal layers.

[0176] 16A shows a flowchart of an example method of video processing according to some implementations of the disclosed techniques. The method 1610 includes, at step 1612, determining a mode of operation of a generalized bi-predictive (GBi) coding tool for conversion between a current video block of a video and a coded representation of the video, where prediction of the current video block uses a final predictor corresponding to a non-uniform weighted sum of predictors from two reference lists. The method 1610 includes, at step 1614, performing the conversion based on the determination. In some implementations, a field in the coded representation corresponds to the mode of operation, and a value of the field indicates whether the GBi coding tool is enabled or disabled for the current video block.

[0177] FIG. 16B shows a flowchart of an example method of video processing according to some implementations of the disclosed technology. The method 1620 includes, at step 1622, performing a conversion between the current video block and the coded representation of the video based on rules controlling parameters of a GBi coding tool where prediction of a current video block of the video uses a final predictor corresponding to a non-uniform weighted sum of predictors from two reference lists. In some implementations, the rules provide that a weighting factor set used by the GBi coding tool is based on i) a temporal layer of a picture including the current video block, ii) a picture quantization parameter of the picture, or iii) a quantization parameter of the current video block. In some implementations, the rules provide for selecting or deriving weighting factors for the GBi coding tool based on neighboring pixels of the current video block and corresponding reference neighboring pixels identified by a motion vector or integer portion of the motion vector of the current video block. In some implementations, the rules provide for reordering weighting factors for the GBi coding tool based on neighboring pixels of the current video block and corresponding reference neighboring pixels identified by a motion vector or integer portion of the motion vector of the current video block. In some implementations, the rules specify using local illumination compensation (LIC) parameters associated with the current video block to determine weighting coefficients for the GBi coding tool, the LIC parameters being derived using a linear model of illumination changes in the current video block during transformation.

[0178] 16C shows a flowchart of an example method of video processing according to some implementations of the disclosed techniques. The method 1630 includes, at step 1632, determining to use weights that are not equal to the weights for the single prediction mode for transforming between a current video block of the video and a coded representation of the video. The method 1630 includes, at step 1634, performing the transform based on the determination. In some implementations, prediction of the current video block uses a final predictor that corresponds to the predictor scaled by the weights, and the weighting coefficient set is selected at a block level or a coding unit level.

[0179] 17A shows a flowchart of an example method of video processing according to some implementations of the disclosed techniques. The method 1710 includes, at step 1712, performing a conversion between one or more video blocks of the video and a coded representation of the video. In some implementations, a first field in the coded representation indicates whether fractional sample precision is used to indicate motion differentials in a merge with motion vector differential (MMVD) mode used during the conversion, the MMVD mode having a motion vector indication including a starting point, a motion distance, and a motion direction for the current video block.

[0180] 17B shows a flowchart of an example method of video processing according to some implementations of the disclosed techniques. The method 1720 includes, at step 1722, performing a conversion between a current video block of the video and a coded representation of the video, the coded representation having a flag indicating whether fractional motion vector (MV) or motion vector differential (MVD) precision is allowed for Advanced Motion Vector Prediction (AMVP) mode or Affine Inter mode used during the conversion.

[0181] 18 shows a flowchart of an example method of video processing according to some implementations of the disclosed techniques. The method 1800 includes, at step 1810, performing a conversion between a current video block of a current picture of the video and a coded representation of the video according to rules that govern a format of the coded representation, the rules providing that a syntax element for a coding mode to be included in the coded representation is based on whether all reference blocks used for the conversion of the current video block are obtained from samples of the current picture.

[0182] As used herein, the term "video processing" may refer to video encoding, video decoding, video compression, or video decompression. For example, a video compression algorithm may be applied during conversion from a pixel representation of a video to a corresponding bitstream representation, or vice versa. The bitstream representation of a current video block corresponds to bits that are either in the same position or spread to different positions in the bitstream, e.g., as defined by a syntax. For example, a macroblock may be encoded using bits included in a header and other fields in the bitstream for transformed and coded error residual values.

[0183] It will be appreciated that several techniques have been disclosed that will benefit video encoder and decoder embodiments embedded within video processing devices such as smartphones, laptops, desktops, and similar devices by enabling the use of virtual motion candidates constructed based on various rules as disclosed herein.

[0184] Various techniques and embodiments may be described in the following bulleted format.

[0185] The first bullet describes particular features and aspects of the disclosed technology that were listed in the previous sections, including, for example, item 1.

[0186] 1. A method of video processing, comprising: determining a mode of operation of an ultimate motion vector expression (UMVE) mode for a transformation between a current video block of a video and a coded representation of the video; performing said conversion based on said determination; having the current video block is coded with a merge mode and a motion vector differential in a UMVE mode having a motion vector indication including a starting point, a magnitude of motion, and a direction of motion information for the current video block; one or more fields in the coded representation correspond to the mode of operation; the one or more fields include a UMVE Enable field having a value indicating whether the UMVE mode is enabled or disabled for the current video block, or a modified affine mode Enable field indicating whether a modified affine merge mode based on the UMVE mode is enabled or disabled for the current video block. method.

[0187] 2. The starting point is indicated by an index into a basic merge candidate list; the final motion information of the current video block depends on the motion vector differential, which is represented by the motion direction and the motion magnitude. The method described in clause 1.

[0188] 3. The one or more fields are included at a slice header level. The method described in clause 1.

[0189] 4. The one or more fields are included at a tile group header level; The method described in clause 1.

[0190] 5. The one or more fields are included at a tile header level. The method described in clause 1.

[0191] 6. The one or more fields are included at a picture header level. The method described in clause 1.

[0192] 7. The one or more fields are included at a picture parameter set level. The method described in clause 1.

[0193] 8. The one or more fields are included at a sequence parameter set level. The method described in clause 1.

[0194] 9. The one or more fields are included at a video parameter set level. The method described in clause 1.

[0195] 10. The performing of the transform includes generating the coded representation from the current video block. 10. A method according to any one of clauses 1 to 9.

[0196] 11. The performing of the transformation includes generating the current video block from the coded representation. 10. A method according to any one of clauses 1 to 9.

[0197] 12. An apparatus in a video system having a processor and non-transitory memory storing instructions, comprising: The instructions, when executed by the processor, cause the processor to perform a method according to any one of clauses 1 to 11. Device.

[0198] 13. A computer program product stored on a non-transitory computer-readable medium, comprising: A computer program product comprising program code for carrying out the method according to any one of clauses 1 to 11.

[0199] The second bullet describes particular features and aspects of the disclosed technology that were listed in the previous section, including, for example, items 2, 4, and 9.

[0200] 1. A method of video processing, comprising: determining a mode of operation of an ultimate motion vector expression (UMVE) mode for a transformation between a current video block of a video and a coded representation of the video; performing said conversion based on said determination; having the current video block is coded with a merge mode and a motion vector differential in a UMVE mode having a motion vector indication including a starting point, a magnitude of motion, and a direction of motion information for the current video block; one or more fields in the coded representation correspond to the mode of operation; The one or more fields include a list size field indicating a size of a basic candidate list used by the UMVE mode, or a table field indicating a distance table or a direction table for the UMVE mode; method.

[0201] 2. The starting point is indicated by an index into a basic merge candidate list; the final motion information of the current video block depends on the motion vector differential. The method described in clause 1.

[0202] 3. The one or more fields are included at a slice header level, a tile group header level, a tile header level, a picture header level, a picture parameter set level, a sequence parameter set level, or a video parameter set level. The method described in clause 1.

[0203] 4. The size of the basic candidate list is set to 1, 2, or 3; The method described in clause 1.

[0204] 5. The one or more fields further include a Merge Mode List Size field having a value indicating a size of a candidate list for a merge mode. The method described in clause 1.

[0205] 6. The size of the basic candidate list used by the UMVE mode is less than or equal to the size of the candidate list for the merge mode. The method described in clause 5.

[0206] 7. The list size field is omitted from the coded representation. The method described in clause 5.

[0207] 8. The size of the basic candidate list used by the UMVE mode is equal to the size of the candidate list for the merge mode; The method described in clause 7.

[0208] 9. The table fields indicate the size K1 of the distance table and the size K2 of the direction table; The method described in clause 1.

[0209] 10. The first K1 elements of the distance table or the last K2 elements of the direction table are valid; The method described in clause 9.

[0210] 11. The last K1 elements of the distance table or the last K2 elements of the direction table are valid. The method described in clause 9.

[0211] 12. A method of video processing comprising: performing a transformation between a current video block of a video and a coded representation of the video using an ultimate motion vector expression (UMVE) coding tool; the UMVE coding tool represents a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for the current video block; At least one of the distance table or the direction table depends on a picture order count (POC) of two reference pictures or a POC of a current picture that contains the current video block, or a quantization parameter (QP) used to code the current video block, the current slice, or the current picture. method.

[0212] 13. The distance table and the direction table depend on the distance between the POC of the two reference pictures and the POC of the current picture. The method described in clause 12.

[0213] 14. Performing the transform includes generating the coded representation from the current video block. 14. A method according to any one of clauses 1 to 13.

[0214] 15. The performing of the transformation includes generating the current video block from the coded representation. 14. A method according to any one of clauses 1 to 13.

[0215] 16. An apparatus in a video system having a processor and non-transitory memory storing instructions, comprising: The instructions, when executed by the processor, cause the processor to perform a method according to any one of clauses 1 to 15. Device.

[0216] 17. A computer program product stored on a non-transitory computer-readable medium, comprising: A computer program product comprising program code for carrying out the method according to any one of clauses 1 to 15.

[0217] The third bullet describes particular features and aspects of the disclosed technology that were listed in the previous section, including, for example, items 3 and 7.

[0218] 1. A method of video processing, comprising: determining a mode of operation of an affine ultimate motion vector expression (UMVE) mode for a transformation between a current video block of a video and a coded representation of the video; performing said conversion based on said determination; having the current video block is coded with an affine merge mode and a motion vector differential in an affine UMVE mode, the motion information for the current video block including a starting point, a motion magnitude, and a motion direction; one or more fields in the coded representation correspond to the mode of operation; The one or more fields include a list size field indicating a size of a basic affine merge candidate list for the affine merge mode with predicted offset used by the UMVE mode, or a table field indicating a distance table or a direction table for the affine merge mode with predicted offset. method.

[0219] 2. The starting point is indicated by an index into a basic merge candidate list; The final motion information depends on the motion vector difference represented by the motion direction and the motion magnitude. The method described in clause 1.

[0220] 3. The one or more fields are included at a slice header level, a tile group header level, a tile header level, a picture header level, a picture parameter set level, a sequence parameter set level, or a video parameter set level. The method described in clause 1.

[0221] 4. The size of the base affine merge candidate list is set to 1, 2, or 3. The method described in clause 1.

[0222] 5. The one or more fields further include a Sub-Block Merge List Size field having a value indicating a size of a candidate list for the sub-block merging mode. The method described in clause 1.

[0223] 6. The size of the basic affine merge candidate list for the affine UMVE mode is less than or equal to the size of the candidate list for the sub-block merging mode. The method described in clause 5.

[0224] 7. The list size field is omitted from the coded representation. The method described in clause 5.

[0225] 8. The size of the basic affine merge candidate list for the affine UMVE mode is equal to the size of the candidate list for the sub-block merge mode; The method described in clause 7.

[0226] 9. The affine UMVE mode corresponds to an affine merge mode modified based on the UMVE mode. The method described in clause 1.

[0227] 10. The table field indicates the size K1 of the distance table or the size K2 of the direction table; The method described in clause 1.

[0228] 11. The first K1 elements of the distance table or the first K2 elements of the direction table are valid. The method described in clause 10.

[0229] 12. The last K1 elements of the distance table or the last K2 elements of the distance table are valid. The method described in clause 10.

[0230] 13. The performing of the transformation includes generating the coded representation from the current video block. 13. A method according to any one of clauses 1 to 12.

[0231] 14. The performing of the transformation includes generating the current video block from the coded representation. 13. A method according to any one of clauses 1 to 12.

[0232] 15. An apparatus in a video system having a processor and non-transitory memory storing instructions, comprising: The instructions, when executed by the processor, cause the processor to perform a method according to any one of clauses 1 to 14. Device.

[0233] 16. A computer program product stored on a non-transitory computer-readable medium, comprising: A computer program product comprising program code for carrying out the method according to any one of clauses 1 to 14.

[0234] The fourth bullet describes particular features and aspects of the disclosed technology that were listed in the previous section, including, for example, items 8, 10, 11, 12, 13, 14, 15, and 16.

[0235] 1. A method of video processing, comprising: determining to signal a plurality of motion vector differentials in an ultimate motion vector expression (UMVE) coding tool for a transformation between a current video block of a video and a coded representation of the video; performing said conversion based on said determination; having using the UMVE coding tool, a motion vector representation including a starting point for the current video block and N motion vector differentials represented by N motion magnitudes and N motion directions is used during the conversion; N is an integer equal to or greater than 2. method.

[0236] 2. N is 2, and the two motion vector differentials correspond to the two prediction directions in bidirectional prediction. The method described in clause 1.

[0237] 3. The number of MVDs used by the UMVE coding tool is notified; The method described in clause 2.

[0238] 4. A number of MVDs to be used in the UMVE coding tool is derived; The method described in clause 2.

[0239] 5. One MVD is encoded for each prediction direction. A first MVD in a first direction is used to predict a second MVD in a second direction. The method described in clause 1.

[0240] 6. The MVD for the first prediction direction is reported before the other MVDs. The method described in clause 5.

[0241] 7. The MVD for the second prediction direction is reported before the other MVDs. The method described in clause 6.

[0242] 8. The order in which the N motion vector differences are notified is notified; The method described in clause 1.

[0243] 9. At least one of a base candidate index, a distance index, or a direction index is signaled for each prediction direction; The method described in clause 1.

[0244] 10. A method of video processing comprising: determining that a rule is applicable to the transformation by the current video block using a current picture reference (CPR) coding tool and an ultimate motion vector expression (UMVE) coding tool for transforming between a current video block of a video and a coded representation of the video; performing said transformation according to said rules; having the rules disallow the use of more than one coding distance for the transformation; said CPR coding tool using the current picture as a reference picture; the UMVE coding tool uses a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for the current video block; method.

[0245] 11. The rule specifies that distances with fractional pixel accuracy, including 1 / 2 pixel resolution or 1 / 4 pixel resolution, are not permitted. The method described in clause 10.

[0246] 12. The rule specifies that distances outside the valid search range in CPR mode are not permitted. The method described in clause 10.

[0247] 13. The specific distance is replaced by the effective distance; The method described in clause 10.

[0248] 14. Different sets of mappings between distance indices and pixel distances are defined for CPR and non-CPR modes. The method described in clause 10.

[0249] 15. A predefined delta motion vector is added to the starting point of the UMVE coding tool; The method described in clause 14.

[0250] 16. The predefined delta motion vector depends on at least one of a block size, a reference index, or a color component. The method described in clause 15.

[0251] 17. The predefined delta motion vector is signaled at a slice header level, a tile group header level, a tile header level, a picture header level, a picture parameter set level, a sequence parameter set level, a video parameter set level, or a coding unit level. The method described in clause 15.

[0252] 18. Unidirectional prediction is always applied when the UMVE coding tool is used together with the CPR coding tool. The method described in clause 10.

[0253] 19. Only one MVD is used or communicated; The method described in clause 18.

[0254] 20. A basic merge candidate has at least one reference picture that is the current picture, and no specific distance index is allowed; The method described in clause 10.

[0255] 21. The UMVE coding tool is applied when a merge candidate or an AMVP candidate has at least one reference picture that is the current picture. The method described in clause 10.

[0256] 22. A method of video processing comprising the steps of: determining, upon a determination that the current video block uses an ultimate motion vector expression (UMVE) coding tool that represents a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for the current video block during conversion between a current video block of a video and a coded representation of the video, to perform a refinement of a motion vector differential (MVD) value for the current video block; performing said conversion based on said determination; The method according to claim 1,

[0257] 23. The refinement is performed using a decoded distance index and / or a decoded direction index for the current video block. The method described in clause 22.

[0258] 24. The refinement operation is based on motion information associated with one or more merging candidates in a merging candidate list for the current video block. The method described in clause 22.

[0259] 25. The selected base candidate plus the decoded MVD is the same as another merge candidate, and the decoded MVD is further refined. The method described in clause 18.

[0260] 26. The decoded MVD is further refined if the selected base candidate plus the decoded MVD is determined to be similar to another merge candidate based on the rules. The method described in clause 18.

[0261] 27. The rule determines that two motion vectors, MV1 and MV2, are similar when |MV1x - MV2x| + |MV1y - MV2y| < T, where MV1x and MV2x are the horizontal components of MV1 and MV2, and MV1y and MV2y are the vertical components of MV1 and MV2. The method according to item 20.

[0262] 28. The rule determines that two candidates are similar when the two candidates share the same reference index and the two motion vectors referring to the same reference picture are similar. The method according to item 26.

[0263] 29. The decoded distance index and the decoded direction index are used to transform from the current video block to the next video block. The method according to item 24.

[0264] 30. Bidirectional optical flow (BIO) is not recognized in the current video block coded by the UMVE coding tool. The method according to item 22.

[0265] 31. Decoder-side motion vector refinement (DMVR) is not recognized in the current video block coded by the UMVE coding tool. The method according to item 22.

[0266] 32. The UMVE coding tool has a mapping between the coding basic candidate index and the candidate index in the merge candidate list for the current video block, and this mapping is changed across different video blocks, different tiles, or different pictures of different video sequences. The method according to any one of items 1 to 31.

[0267] a first coded base candidate index equal to 33.0 always corresponds to a first merge candidate in the merge candidate list; The method described in clause 32.

[0268] 34. The K-th coded base candidate index equal to K does not correspond to the (K+1)-th merging candidate list in the merging candidate list; K is an integer greater than 0. The method described in clause 33.

[0269] A second coded base candidate index equal to 35.1 indicates a merge candidate in the merge candidate list, which is not similar to the first merge candidate indicated by the first coded base candidate index. The method described in clause 33.

[0270] 36. The selection of the mapping or the base merge candidate from the merge candidate list depends on the first merge candidate in the merge candidate list. The method described in clause 32.

[0271] 37. A particular merging candidate is not recognized as a base merging candidate for the current video block. The method described in clause 32.

[0272] 38. The particular merge candidate is: i) Virtual merge candidates, including combined bi-predictive merge candidates, pair-wise merge candidates, and zero motion vector merge candidates; ii) Temporal merge candidates; iii) HMVP candidate; or iv) Merge candidates derived from a particular mode, including triangular prediction mode, sub-block mode, affine mode, ATMVP, or STMVP. At least one of The method described in clause 37.

[0273] 39. At least one basic merge candidate used by the UMVE coding tool is not from the merge candidate list. The method described in clause 32.

[0274] 40. The first merging candidate in the merging candidate list is limited to the first candidate that is a non-current picture reference candidate. The method described in clause 32.

[0275] 41. The base merge candidates in the merge candidate list, the merge candidates differing from each other by a threshold value. The method described in clause 32.

[0276] 42. A method of video processing comprising the steps of: determining, for conversion between a current video block of a video and a coded representation of the video, to use a first UMVE parameter set from a plurality of UMVE parameter sets when a determination is made that the current video block uses an ultimate motion vector expression (UMVE) coding tool that represents a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for the current video block; performing said conversion based on said determination; having At least one indication among the plurality of UMVE parameter sets is signaled or predefined for the current video block. method.

[0277] 43. The indication is signaled or predefined at a slice header level, a tile group header level, a tile header level, a picture header level, a picture parameter set level, a sequence parameter set level, a video parameter set level, or a coding unit level. The method described in clause 42.

[0278] 44. The coded representation comprises each of the plurality of UMVE parameter sets. The method described in clause 42.

[0279] 45. The coded representation includes a set of distance and / or direction tables. The method described in clause 42.

[0280] 46. ​​The coded representation includes an indication of how to shift available distance values ​​at a slice header level, a tile group header level, a tile header level, a picture header level, a picture parameter set level, a sequence parameter set level, or a video parameter set level. The method described in clause 45.

[0281] 47. The instruction indicates whether to use the notified distance table, whether to left-shift the distance value by an integer M, or whether to right-shift the distance value by an integer N. The method described in clause 46.

[0282] 48. Parameters for the UMVE coding tool are selected based on the size of the current video block. The method described in clause 42.

[0283] 49. The size is: i) the width of the current video block; ii) the height of the current video block, or iii) a total number of pixel locations of the current video block; corresponds to at least one of The method described in clause 48.

[0284] 50. The first UMVE parameter set is selected based on a coding mode of the current video block. The method described in clause 42.

[0285] 51. The first UMVE parameter set is selected based on a resolution of a current picture or a current sequence that includes the current video block. The method described in clause 42.

[0286] 52. The first UMVE parameter set is selected based on the selected base merging candidate. The method described in clause 42.

[0287] 53. The first UMVE parameter set is selected based on at least one of the magnitude or sign value of the motion vector. The method described in clause 52.

[0288] 54. The first UMVE parameter set is selected based on a POC value of a reference picture, the reference picture of the selected basic merging candidate. The method described in clause 52.

[0289] 55. The first UMVE parameter set is selected based on whether the motion vectors of the selected base merging candidate point to integer positions or sub-positions. The method described in clause 52.

[0290] 56. The first UMVE parameter set is selected based on a category of merging candidates represented by the selected base merging candidates, the category being one of spatial, temporal, or HMVP (history-based MVP). The method described in clause 52.

[0291] 57. The first UMVE parameter set is selected based on a location from which a merging candidate represented by the selected base merging candidate is derived. The method described in clause 52.

[0292] 58. The first UMVE parameter set is selected based on an index of a merge candidate represented by the selected base merge candidate. The method described in clause 52.

[0293] 59. Each of the plurality of UMVE parameter sets is associated with a predetermined motion vector accuracy. The method described in clause 42.

[0294] 60. The number of the plurality of UMVE parameter sets depends on how many motion vector precisions are allowed for a sequence, view, picture, slice, tile, or video data processing unit. The method described in clause 59.

[0295] 61. For basic merging candidates derived from the current video block, an associated Adaptive Motion Vector Resolution (AMVR) index is inherited to determine the first UMVE parameter set. The method described in clause 59.

[0296] 62. A method of video processing comprising the steps of: selecting a set of UMVE parameters for conversion between the current video block and a coded representation of the video when a determination is made that the current video block uses an ultimate motion vector expression (UMVE) coding tool that represents a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for the current video block; The selected UMVE parameter set varies across different video blocks, different reference picture lists, different reference pictures, different tiles, different slices, different pictures, or different temporal layers. method.

[0297] 63. The selection of the UMVE parameter set depends on the horizontal or vertical component of the basic motion vector. The method described in clause 62.

[0298] 64. Each UMVE parameter set or the selected UMVE parameter set includes at least one of a distance table, a direction table, or other representation of a UMVE coding tool; 44. A method according to any one of clauses 42 to 63.

[0299] 65. A method of video processing comprising the steps of: performing a conversion between the current video block and a coded representation of the video using an ultimate motion vector expression (UMVE) coding tool that represents a motion vector representation including a starting point, a magnitude of motion, and a direction of motion for a current video block of the video; an adaptive motion vector resolution (AMVR) scheme is used to inform the distance tables used by the UMVE coding tool; method.

[0300] 66. An indication of whether to scale the MV precision defined in the AMVR precision set is signaled at the slice header level, the tile group header level, the tile header level, the picture header level, the picture parameter set level, the sequence parameter set level, the video parameter set level, or the coding unit level. The method described in clause 65.

[0301] 67. Multiple sets of AMVR accuracy are defined or communicated; The method described in clause 65.

[0302] 68. The indication of a set index is informed or derived using coding information of the current video block or a previous video block. The method described in clause 65.

[0303] 69. The recognized AMVR precision set varies between different video units. The method described in clause 65.

[0304] 70. The mapping between the signaled MV precision index and the actual MV precision used changes across different video units, The method described in clause 65.

[0305] 71. Performing the transformation includes generating the coded representation from the current video block. 10. A method according to any one of clauses 1 to 70.

[0306] 72. Performing the transformation includes generating the current video block from the coded representation. 10. A method according to any one of clauses 1 to 70.

[0307] 73. An apparatus in a video system having a processor and non-transitory memory storing instructions, comprising: The instructions, when executed by the processor, cause the processor to perform a method according to any one of clauses 1 to 72. Device.

[0308] 74. A computer program product stored on a non-transitory computer-readable medium, comprising: A computer program product comprising program code for carrying out the method according to any one of clauses 1 to 72.

[0309] The fifth bullet describes particular features and aspects of the disclosed technology that were listed in the previous section, including, for example, items 18-25.

[0310] 1. A method of video processing, comprising: determining a mode of operation of a generalized bi-predictive (GBi) coding tool for a conversion between a current video block of a video and a coded representation of the video, in which prediction of the current video block uses a final predictor corresponding to a non-uniform weighted sum of predictors from two reference lists; performing said conversion based on said determination; having a field in the coded representation corresponding to the mode of operation; The value of the field indicates whether the GBi coding tools are enabled or disabled for the current video block. method.

[0311] 2. The field indicates whether the GBi coding tools are enabled or disabled at the slice level, tile level, or picture level; The method described in clause 1.

[0312] 3. The field is included in a slice header, a tile header, or a picture parameter set; The method described in clause 1.

[0313] 4. If the picture of the current video block corresponds to a temporal layer having a value greater than a threshold, the field indicates that the GBi coding tool is disabled for the current video block. 1. A method according to any one of clauses 1 to 3.

[0314] 5. The threshold is 3; The method described in clause 4.

[0315] 6. The GBi coding tool is disabled for the current video block in the first picture that is not referenced by a second picture that is different from the first picture. 1. A method according to any one of clauses 1 to 5.

[0316] 7. The GBi coding tool is disabled for the current video block using a quantization parameter greater than a threshold. The method described in clause 1.

[0317] 8. A method of video processing comprising: performing a conversion between a current video block of a video and a coded representation of the video based on rules controlling parameters of a GBi coding tool, where prediction of the current video block uses a final predictor corresponding to a non-uniform weighted sum of predictors from two reference lists; The rule is that the set of weighting factors used by the GBi coding tool is i) a temporal layer of a picture that contains the current video block; ii) a picture quantization parameter for said picture; or iii) a quantization parameter of the current video block. Provides that the provisions are based on method.

[0318] 9. The rule specifies using a smaller weighting factor for video pictures of higher temporal layers. The method described in clause 8.

[0319] 10. The rule specifies using less weighting factors for higher quantization parameter values. The method described in clause 8.

[0320] 11. The coded representation further includes at least one additional set of weighting coefficients for use by the GBi coding tool. The method described in clause 8.

[0321] 12. The additional weighting coefficient set is indicated at a slice header level, a tile group header level, a tile header level, a picture header level, a picture parameter set level, a sequence parameter set level, or a video parameter set level. The method described in clause 11.

[0322] 13. A method of video processing comprising: determining, for a transformation between a current video block of a video and a coded representation of the video, to use a weight not equal to one for a uni-predictive mode; performing said conversion based on said determination; having predicting the current video block using a final predictor corresponding to the predictor scaled by the weights; The weighting coefficient set is selected at a block level or a coding unit level. method.

[0323] 14. The weight index is scaled for at least one of an Advanced Motion Vector Prediction (AMVP) mode or an affine inter mode; The weight index is inherited in at least one of a merge mode, an Ultimate Motion Vector Expression (UMVE) mode, an affine merge mode, or an affine merge mode with offset; The UMVE mode has a motion vector indication including a starting point, a magnitude of motion, and a direction of motion for the current video block. The method described in clause 13.

[0324] 15. Performing the transform includes refining a motion compensation block calculated during the transform using an offset from one of a plurality of offset sets. 15. A method according to any one of clauses 1 to 14.

[0325] 16. The offset index is signaled at the block level or coding unit level. The method described in clause 15.

[0326] 17. The offset index is inherited in at least one of the merge mode, the Ultimate Motion Vector Expression (UMVE) mode, the affine merge mode, or the affine merge with offset mode; The UMVE mode has a motion vector indication including a starting point, a magnitude of motion, and a direction of motion for the current video block. The method described in clause 15.

[0327] 18. A method of video processing comprising the steps of: performing a conversion between a current video block of a video and a coded representation of the video based on rules controlling parameters of a GBi coding tool, where prediction of the current video block uses a final predictor corresponding to a non-uniform weighted sum of predictors from two reference lists; the rules provide for selecting or deriving weighting factors for the GBi coding tool based on neighboring pixels of the current video block and corresponding reference neighboring pixels identified by a motion vector or an integer portion of a motion vector of the current video block. method.

[0328] 19. Signaling of the GBi index is omitted; The method described in clause 18.

[0329] 20. A field in the coded representation indicates whether default equal weighting factors or selected or derived weighting factors should be used; The method described in clause 18.

[0330] 21. A weighting factor for the current video block is selected from a predefined set of weighting factors such that the weighting factor has a minimum difference between a result of averaging adjacent pixels of the current video block and reference adjacent pixels from the two reference lists using the weighting factor. The method described in clause 18.

[0331] 22. The GBi weight value is derived by S0 and S1, where S0 indicates the sum or average of adjacent pixels of the current video block, and S1 indicates the sum or average of adjacent pixels of a reference block; The method described in clause 18.

[0332] 23. A method of video processing comprising the steps of: performing a conversion between a current video block of a video and a coded representation of the video based on rules controlling parameters of a GBi coding tool, where prediction of the current video block uses a final predictor corresponding to a non-uniform weighted sum of predictors from two reference lists; the rule provides for reordering weighting factors for the GBi coding tool based on neighboring pixels of the current video block and corresponding reference neighboring pixels identified by a motion vector of the current video block or an integer portion of a motion vector. method.

[0333] 24. The weighting coefficients for the current video block are reordered based on a difference between neighboring pixels of the current video block and a result of averaging reference neighboring pixels from the two reference lists using the weighting coefficients. The method described in clause 23.

[0334] 25. A method of video processing comprising the steps of: performing a conversion between a current video block of a video and a coded representation of the video based on rules controlling parameters of a GBi coding tool, where prediction of the current video block uses a final predictor corresponding to a non-uniform weighted sum of predictors from two reference lists; the rule specifies using local illumination compensation (LIC) parameters associated with the current video block to determine a weighting factor for the GBi coding tool; the LIC parameters are derived using a linear model of illumination changes in the current video block during the transformation. method.

[0335] 26. The offset for deriving the LIC parameters is zero, and only the weighting coefficients are used in the GBi coding tool. The method described in clause 25.

[0336] 27. The weighting coefficients and offsets of the LIC parameters are both used in the GBi coding tool. The method described in clause 25.

[0337] 28. The rule specifies that if the current video block also uses at least one of a merge mode, an UMVE mode, an affine merge mode, or an affine merge mode with an offset, then the GBi index for the current video block is inherited from that of a neighboring video block; The UMVE mode has a motion vector indication including a starting point, a magnitude of motion, and a direction of motion for the current video block. The method described in clause 25.

[0338] 29. The rule specifies deriving additional LIC parameters for the transformation of the current video block if an inherited neighbor weighting factor is the same as the LIC parameter. The method described in clause 25.

[0339] 30. The performing of the transform includes generating the coded representation from the current video block. 30. A method according to any one of clauses 1 to 29.

[0340] 31. Performing the transformation includes generating the current video block from the coded representation. 29. A method according to any one of clauses 1 to 29.

[0341] 32. An apparatus in a video system having a processor and non-transitory memory storing instructions, comprising: The instructions, when executed by the processor, cause the processor to perform a method according to any one of clauses 1 to 31. Device.

[0342] 33. A computer program product stored on a non-transitory computer-readable medium, comprising: A computer program product comprising program code for carrying out the method according to any one of clauses 1 to 31.

[0343] The sixth bullet describes particular features and aspects of the disclosed technology that were listed in the previous section, including, for example, items 5, 6, and 7.

[0344] 1. A method of video processing, comprising: performing a conversion between one or more video blocks of a video and a coded representation of the video; a first field in the coded representation indicating whether fractional sample precision is used to indicate motion distance in a merge with motion vector difference (MMVD) mode used during the transform; The MMVD mode has a motion vector indication including a starting point, a motion distance, and a motion direction for a current video block. method.

[0345] 2. the first field is a flag; The method described in clause 1.

[0346] 3. The flag is signaled at a slice, tile group, tile, picture, sequence, video, or coding unit level; The method described in clause 2.

[0347] 4. The flag is signaled in a slice header, a tile group header, a tile header, a picture header, a picture parameter set (PPS), a sequence parameter set (SPS), a video parameter set (VPS), or a coding unit; The method described in clause 3.

[0348] 5. The flag is signaled if an MMVD enable field indicates that the MMVD mode is enabled; The method described in clause 2.

[0349] 6. The step of performing the transformation includes performing a transformation between the current video block and the coded representation of the video using the MMVD mode based on a motion distance associated with a current video block of the video. The method described in clause 1.

[0350] 7. The flag indicates that the fractional sample precision is not used; the transform uses integer sample precision for the transform; The method described in clause 2.

[0351] 8. The motion distance associated with the current video block is represented by a motion distance index; the transforming includes using a truncated unary of the kinetic metric index to encode the kinetic metric index; The maximum value of the permitted movement distance index depends on the number of permitted integer movement distances, a flag in the first field indicating that fractional sample precision is not used; The method described in clause 6.

[0352] 9. The motion distance associated with the current video block is represented by a motion distance index; the transforming includes using a truncated unary of the kinetic metric index to decode the kinetic metric index; The maximum value of the permitted movement distance index depends on the number of permitted integer movement distances, a flag in the first field indicating that fractional sample precision is not used; The method described in clause 6.

[0353] 10. Each of the elements in the default motion distance table is multiplied by a coefficient to generate an integer motion distance for integer sample precision; 10. A method according to any one of clauses 1 to 6.

[0354] 11. For a first video block included in a video unit with the first field indicating that fractional sample precision is not used, and for a second video block included in a video unit with the first field indicating that fractional sample precision is used, when the same motion distance index is used for the first video block and the second video block, a corresponding motion distance for the first video block is generated by multiplying the motion distance of the second video block by a coefficient. 10. A method according to any one of clauses 1 to 6.

[0355] 12. The coefficient is 4; The method described in clause 10.

[0356] 13. The first field is signaled for affine merge mode together with a prediction offset in a slice header, a tile group header, a tile header, a picture header, a picture parameter set (PPS), a sequence parameter set (SPS), a video parameter set (VPS), or a coding unit. The method described in clause 1.

[0357] 14. The first field is signaled based on the use of affine merge mode along with the motion vector differential (MVD) used. The method described in clause 1.

[0358] 15. The first field includes a first flag and a second flag, the first flag indicating that the signal is transmitted in a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS), and the second flag indicating that the signal is transmitted in the PPS, a slice header, a tile group header, or a tile header. The method described in clause 1.

[0359] 16. The first flag indicates false, the fractional exercise distance is enabled, and the second flag is not notified. The method described in clause 15.

[0360] 17. The first flag indicates true, the fractional exercise distance is enabled, and the second flag is not notified. The method described in clause 15.

[0361] 18. The first flag indicates true, the fractional movement distance is disabled, and the second flag is notified. The method described in clause 15.

[0362] 19. The first flag indicates false, the fractional movement distance is invalidated, and the second flag is notified. The method described in clause 15.

[0363] 20. The second flag indicates true, and fractional motion distance is enabled for the picture, slice, tile group, or tile. 19. The method according to claim 18 or 19.

[0364] 21. The second flag indicates false, and fractional motion distance is enabled for the picture, slice, tile group, or tile. 19. The method according to claim 18 or 19.

[0365] 22. The second flag indicates true, and fractional motion distance is disabled for the picture, slice, tile group, or tile. 19. The method according to claim 18 or 19.

[0366] 23. The second flag indicates false, and fractional motion distance is disabled for the picture, slice, tile group, or tile. 19. The method according to claim 18 or 19.

[0367] 24. The conversion uses one or both of an integer motion distance or a motion distance with less than integer precision based on the first field indicating that a fractional motion distance is not used. The method described in clause 1.

[0368] 25. The first field is shared by one or both of a merge by motion vector difference (MMVD) mode or an affine merge by motion vector difference (MVD) offset mode. The method described in clause 1.

[0369] 26. The first field separately signals the use of merge with motion vector difference (MMVD) mode and affine merge with motion vector difference (MVD) offset mode. The method described in clause 1.

[0370] 27. A method of video processing comprising the steps of: performing a conversion between a current video block of a video and a coded representation of the video; the coded representation having a flag indicating whether fractional motion vector (MV) or motion vector differential (MVD) precision is allowed for an Advanced Motion Vector Prediction (AMVP) mode or an Affine Inter mode used during the transform; method.

[0371] 28. The flag is signaled in a slice header, a tile group header, a picture header, a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). The method described in clause 27.

[0372] 29. The flag is notified based on the fact that the use of adaptive motion vector resolution (AMVR) is permitted. The method described in clause 27.

[0373] 30. The flag is signaled based on the fact that the use of adaptive motion vector resolution (AMVR) for affine inter mode is permitted. The method described in clause 27.

[0374] 31. The flag includes a first flag and a second flag, the first flag indicating that the signal is signaled in a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS), and the second flag indicating that the signal is signaled in the PPS, a slice header, a tile group header, or a tile header. The method described in clause 27.

[0375] 32. The first flag is false, fractional motion vectors (MV) or motion vector differentials (MVD) are enabled, and the second flag is not signaled. The method described in clause 31.

[0376] 33. The first flag is true, fractional motion vectors (MV) or motion vector differentials (MVD) are enabled, and the second flag is not signaled. The method described in clause 31.

[0377] 34. The first flag is true, fractional motion vectors (MV) or motion vector differentials (MVD) can be disabled, and the second flag is signaled. The method described in clause 31.

[0378] 35. The first flag is false, fractional motion vectors (MV) or motion vector differentials (MVD) can be disabled, and the second flag is signaled. The method described in clause 31.

[0379] 36. The second flag is true, and fractional motion vectors (MV) or motion vector differentials (MVD) are enabled for the picture, slice, tile group, or tile. The method described in clause 31.

[0380] 37. The second flag is false, and fractional motion vectors (MV) or motion vector differentials (MVD) are enabled for the picture, slice, tile group, or tile. The method described in clause 31.

[0381] 38. The second flag is true and fractional motion vectors (MV) or motion vector differentials (MVD) are disabled for the picture, slice, tile group, or tile. The method described in clause 31.

[0382] 39. The second flag is false and fractional motion vectors (MV) or motion vector differentials (MVD) are disabled for the picture, slice, tile group, or tile. The method described in clause 31.

[0383] 40. Fractional motion vectors (MV) or motion vector differentials (MVD) are not allowed, but inter-predicted MV or MVD are allowed. The method described in clause 27.

[0384] 41. Fractional motion vectors (MV) or motion vector differentials (MVD) are not allowed, but integer precision or less than integer precision for MV or MVD, or both, are allowed. The method described in clause 27.

[0385] 42. The transform includes using a truncated unary code to encode an adaptive motion vector resolution (AMVR) index based on a number of MV or MVD precisions; The flag indicates that fractional MV or MVD is not permitted. The method described in clause 27.

[0386] 43. The flag is signaled separately for adaptive motion vector resolution (AMVR) mode and AMVR for affine inter mode. The method described in clause 27.

[0387] 44. The flag is signaled and shared for both adaptive motion vector resolution (AMVR) mode and AMVR for affine inter mode. The method described in clause 27.

[0388] 45. The flag is signaled and shared for two or more of adaptive motion vector resolution (AMVR) mode, AMVR for affine inter mode, ultimate motion vector expression (UMVE) mode, or affine merge mode with MVD offset. The method described in clause 27.

[0389] 46. ​​Performing the transformation includes generating the coded representation from the current video block. 13. A method according to any one of clauses 1 to 45.

[0390] 47. Performing the transformation includes generating the current video block from the coded representation. 13. A method according to any one of clauses 1 to 45.

[0391] 48. An apparatus in a video system having a processor and non-transitory memory storing instructions, comprising: The instructions, when executed by the processor, cause the processor to perform a method according to any one of clauses 1 to 47. Device.

[0392] 49. A computer program product stored on a non-transitory computer-readable medium, comprising: A computer program product comprising program code for carrying out the method according to any one of clauses 1 to 47.

[0393] The seventh bullet describes particular features and aspects of the disclosed technology that were listed in previous sections, including, for example, item 17.

[0394] 1. A method of video processing, comprising: performing a conversion between a current video block of a current picture of a video and a coded representation of the video according to rules that define a format of the coded representation; The rules specify that a syntax element for a coding mode is included in the coded representation based on whether all reference blocks used for the transformation of the current video block are obtained from samples of the current picture. method.

[0395] 2. The syntax element for affine mode is not included in the coded representation if all reference blocks used for the transformation of the current video block are obtained from samples of the current picture. The method described in clause 1.

[0396] 3. The syntax element for a sub-block based merge mode is not included in the coded representation if all reference blocks used for the transform of the current video block are obtained from samples of the current picture. The method described in clause 1.

[0397] 4. The syntax elements for multi-hypothesis intra and inter prediction modes are not included in the coded representation if all reference blocks used for the transform of the current video block are obtained from samples of the current picture. The method described in clause 1.

[0398] 5. The syntax element for a triangular prediction mode is not included in the coded representation if all reference blocks used for the transform of the current video block are obtained from samples of the current picture. The method described in clause 1.

[0399] 6. The syntax element for a merge by motion vector difference (MMVD) mode is not included in the coded representation if all reference blocks used for the transformation of the current video block are obtained from samples of the current picture; the MMVD mode having a motion vector indication including at least one of a starting point, a motion distance, or a motion direction for the current video block; The method described in clause 1.

[0400] 7. The coding mode is an affine mode, a sub-block based merging mode, a multiple hypothesis intra or inter prediction mode, a triangular prediction mode, or an MMVD mode; the MMVD mode having a motion vector indication including at least one of a starting point, a motion distance, or a motion direction for the current video block; The method described in clause 1.

[0401] 8. Performing the transformation includes generating the coded representation from the current video block. 10. A method according to any one of clauses 1 to 7.

[0402] 9. The performing of the transformation includes generating the current video block from the coded representation. 10. A method according to any one of clauses 1 to 7.

[0403] 10. An apparatus in a video system having a processor and non-transitory memory storing instructions, comprising: The instructions, when executed by the processor, cause the processor to perform a method according to any one of clauses 1 to 9. Device.

[0404] 11. A computer program product stored on a non-transitory computer-readable medium, comprising: A computer program product comprising program code for carrying out the method according to any one of clauses 1 to 9.

[0405] The disclosed and other solutions, examples, embodiments, modules and functional operations described herein can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed herein and their structural equivalents, or in one or more combinations thereof. The disclosed and other embodiments can be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on a computer-readable medium for execution by or to control the operation of a data processing apparatus. The computer-readable medium can be a machine-readable storage device, a machine-readable storage carrier, a memory device, a composition of matter carrying a machine-readable propagated signal, or one or more combinations thereof. The term "data processing apparatus" encompasses all apparatus, devices, and machines that process data, including, by way of example, a programmable processor, a computer, or multiple processors or computers. An apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, such as code that constitutes a processor firmware, a protocol stack, a database management system, an operating system, or one or more combinations thereof. A propagated signal is an artificially generated signal, for example a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to a suitable receiver device.

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

[0407] The processes and logic flows described herein may be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be performed by, and an apparatus may be implemented as, special purpose logic circuitry, such as a Field Programmable Gate Array (FPGA) or Application-Specific Integrated Circuit (ASIC).

[0408] Processors suitable for executing computer programs include, by way of example, both general purpose and special purpose microprocessors, as well as any one or more processors of any kind of digital computer. Generally, a processor will receive instructions and data from a read-only memory or a random access memory, or both. The essential elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include one or more mass storage devices, such as magnetic, optical magnetic disks, or optical disks, for storing data, or be operatively coupled to receive data from or transfer data to, or both, such one or more mass storage devices. However, a computer need not have such devices. Computer-readable media suitable for storing computer program instructions and data include, by way of example, all types of non-volatile memory, media, and memory devices, including semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; optical magnetic disks; and CD-ROM and DVD-ROM disks. The processor and memory may be augmented by, or incorporated in, dedicated logic circuitry.

[0409] Although the present specification contains numerous details, they should not be construed as limitations on the scope of any subject matter or what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of a particular technology. Certain features described herein in the context of separate embodiments may also be implemented in combination with a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may be described above as operating in a particular combination, and even initially claimed as such, one or more features from a claimed combination may in some cases be deleted from the combination, and the claimed combination may be directed to a subcombination or a variation of the subcombination.

[0410] Similarly, although operations may be depicted in the figures in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown, or in a sequential order, or that all of the depicted operations be performed, to achieve desired results. Further, the separation of various system components in the embodiments described herein should not be understood as requiring such separation in all embodiments.

[0411] Only a few implementations and examples have been described; other implementations, enhancements and variations may be made based on what is described and illustrated herein.

[0412] [CROSS REFERENCE TO RELATED APPLICATIONS] Under applicable patent law and / or regulations pursuant to the Paris Convention, this application is hereby filed as if it were to claim priority to and the benefit of International Patent Application No. PCT / CN2018 / 122626, filed December 21, 2018, International Patent Application No. PCT / CN2018 / 125417, filed December 29, 2018, and International Patent Application No. PCT / CN2019 / 072814, filed January 23, 2019. The entire disclosures of the above applications are hereby incorporated by reference as part of the disclosure of this application.

Claims

1. 1. A method of video processing, comprising: determining that a merge mode based on motion vector difference is applied to a current video block of a video for conversion between the current video block and a bitstream of the video; performing said conversion based on said determination; having the motion vector differential merge mode has a motion vector representation used to derive motion information for the current video block, the motion vector representation including a first parameter representing a motion vector differential and a second parameter indicating a base candidate from a base candidate list, the first parameter including a magnitude of motion and a direction of motion; the base candidate list is based on a merge candidate list for a merge mode constructed for the current video block during the transform, and a size of the base candidate list is less than or equal to a size of a merge candidate list for the merge mode. method.

2. the second parameter comprises an index into the base candidate list; The method of claim 1.

3. the size of the basic candidate list is set to one of 1 or 2; The method according to claim 1 or 2.

4. a flag is present in the bitstream to indicate whether the motion vector differential merge mode should be enabled; 4. The method according to any one of claims 1 to 3.

5. The flag is present at the sequence parameter set level. The method according to claim 4.

6. the size of the base candidate list is subtracted from the bitstream.

6. The method according to any one of claims 1 to 5.

7. and performing the conversion step includes decoding the current video block from the bitstream.

7. The method according to any one of claims 1 to 6.

8. and performing the conversion step includes encoding the current video block into the bitstream.

7. The method according to any one of claims 1 to 6.

9. 1. An apparatus for processing video data, comprising: a processor and a non-transitory memory having instructions; The instructions, when executed by the processor, cause the processor to: determining that a merge mode based on motion vector difference is applied to a current video block of a video for conversion between the current video block and a bitstream of the video; performing said conversion based on said determination; Run the command, the motion vector differential merge mode has a motion vector representation used to derive motion information for the current video block, the motion vector representation including a first parameter representing a motion vector differential and a second parameter indicating a base candidate from a base candidate list, the first parameter including a magnitude of motion and a direction of motion; the base candidate list is based on a merge candidate list for a merge mode constructed for the current video block during the transform, and a size of the base candidate list is less than or equal to a size of a merge candidate list for the merge mode. Device.

10. A non-transitory computer-readable storage medium storing instructions, comprising: The instructions cause a processor to: determining that a merge mode based on motion vector difference is applied to a current video block of a video for conversion between the current video block and a bitstream of the video; performing said conversion based on said determination; Run the command, the motion vector differential merge mode has a motion vector representation used to derive motion information for the current video block, the motion vector representation including a first parameter representing a motion vector differential and a second parameter indicating a base candidate from a base candidate list, the first parameter including a magnitude of motion and a direction of motion; the base candidate list is based on a merge candidate list for a merge mode constructed for the current video block during the transform, and a size of the base candidate list is less than or equal to a size of a merge candidate list for the merge mode. A non-transitory computer-readable storage medium.

11. A method for storing a bitstream of video, comprising the steps of: determining, for a current video block of the video, that a motion vector differential merge mode is applied to the current video block; generating the bitstream from the current video block based on the determination; storing the bitstream on a non-transitory computer-readable recording medium; having the motion vector differential merge mode has a motion vector representation used to derive motion information for the current video block, the motion vector representation including a first parameter representing a motion vector differential and a second parameter indicating a base candidate from a base candidate list, the first parameter including a magnitude of motion and a direction of motion; the base candidate list is based on a merge candidate list for a merge mode configured for the current video block during the generating, and a size of the base candidate list is less than or equal to a size of a merge candidate list for the merge mode. method.

Citation Information

Patent Citations

  • Encoding device, decoding device, encoding method and decoding method

    WO2018030294A1

Cited By

  • Generalized bi directional prediction mode in video processing

    US12289466B2