Size selection application of decoder-side refinement tools

The DMVD method in video coding optimizes motion vector derivation by using weight parameters and refined motion information to address inefficiencies in current technologies, enhancing coding efficiency and video quality.

JP7556090B2Active Publication Date: 2024-09-25DOUYIN VISION CO LTD +1
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
JP2023063135
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-04-13
Filing Date
2023-04-10
Publication Date
2024-09-25
Estimated Expiration
2040-02-14

AI Technical Summary

Technical Problem

Current video coding technologies face inefficiencies in motion vector derivation, particularly in decoder-side motion vector refinement processes, which are often enabled or disabled inconsistently based on incorrect criteria, leading to suboptimal performance across various block sizes and reference picture order counts.

Method used

Implementing a decoder-side motion vector derivation (DMVD) method that utilizes weight parameters and refined motion information to improve coding efficiency by enabling or disabling motion vector refinement based on specific criteria such as unequal weighting factors, picture order counts, and block sizes, ensuring consistent and optimized motion vector derivation.

Benefits of technology

Enhances video coding efficiency by optimizing motion vector derivation processes, reducing computational complexity, and improving the quality of decompressed video through refined motion information handling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007556090000018
    Figure 0007556090000018
  • Figure 0007556090000019
    Figure 0007556090000019
  • Figure 0007556090000020
    Figure 0007556090000020
Patent Text Reader

Abstract

To provide a method of video processing.SOLUTION: One example method of video processing includes implementing, by a processor, a decoder-side motion vector derivation (DMVD) scheme for motion vector refinement during a conversion between a current video block and a bitstream representation of the current video block by deriving parameters based on a deriving rule. The conversion may include a step of compressing the current video block into the bitstream representation or a step of uncompressing the bitstream representation into pixel values of the current video block.SELECTED DRAWING: Figure 24A
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] [Related Applications] This application is a national phase application of International Patent Application No. PCT / CN2019 / 075068, filed February 14, 2019, which claims priority to and the benefit of International Patent Application No. PCT / CN2019 / 082585, filed April 13, 2019, and International Patent Application No. PCT / CN2020 / 075235, filed February 14, 2020. The entire disclosures of the aforementioned applications are incorporated by reference into the disclosure of this application.

[0002] [Technical field] This application relates to video and image coding and decoding. [Background technology]

[0003] 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 requirements for digital video usage are expected to continue to grow. Summary of the Invention

[0004] This specification discloses, in one example aspect, a video coding tool that improves the coding efficiency of current coding tools related to final motion vector representation or generalized bi-prediction.

[0005] A first exemplary video processing method includes: obtaining refined motion information for a current video block of a video by performing a decoder-side motion vector derivation (DMVD) scheme based on at least a weighting parameter, the weighting parameter being applied to a predictive block in a process of generating a final predictive block for the current video block; performing a conversion between the current video block and a bitstream representation of the video using at least the refined motion information and the weighting parameters; Includes.

[0006] A second exemplary video processing method includes determining, for use with a coding tool for a current video block, that use of a decoder-side motion vector derivation (DMVD) scheme is invalid for transforming between the current video block and a coded representation of the video; performing the conversion between the current video block and a bitstream representation of the video based on the determination, the coding tool including applying unequal weighting factors to predictive blocks of the current video block; Includes.

[0007] A third exemplary video processing method includes determining whether to enable or disable one or more decoder-side motion vector derivation (DMVD) schemes for a current video block of a video based on picture order count (POC) values ​​of one or more reference pictures of the current video block and POC values ​​of a current picture that includes the current video block; determining a conversion between the current video block and a bitstream representation of the video based on the determination; Includes.

[0008] A fourth exemplary video processing method includes: obtaining refined motion information for a current video block of a video by performing a decoder-side motion vector derivation (DMVD) scheme for the current video block, wherein a symmetric motion vector difference (SMVD) mode is enabled for the current block; performing a conversion between the current video block and a bitstream representation of the video using the refined motion information; Includes.

[0009] A fifth exemplary video processing method includes: determining whether a decoder-side motion vector derivation (DMVD) scheme is enabled or disabled for the current video block based on a field in a bitstream representation of a video that includes the current video block, wherein a symmetric motion vector difference (SMVD) mode is enabled for the current video block; after determining that the DMVD scheme is valid, performing the DMVD scheme on the current video block to obtain refined motion information of the current video block; performing a conversion between the current video block and a bitstream representation of the video using the refined motion information; Includes.

[0010] A sixth exemplary video processing method includes: determining whether a plurality of decoder-side motion vector derivation (DMVD) schemes are enabled or disabled for conversion between the current video block of the video and a bitstream representation based on a rule using a block dimension of a current video block of the video; performing said conversion based on said determination; Includes.

[0011] A seventh exemplary video processing method includes: determining whether to perform multiple decoder-side motion vector derivation (DMVD) schemes at a sub-block level or a block level for a current video block of the video; obtaining refined motion information of the current video block by performing the multiple DMVD schemes at a same sub-block level of the current video block after determining that the multiple DMVD schemes are performed at a sub-block level; performing a conversion between the current video block and a bitstream representation using the refined motion information; Includes.

[0012] An eighth exemplary video processing method includes: determining whether to enable or disable a decoder-side motion vector derivation (DMVD) scheme for a plurality of components of a current video block of a video; obtaining refined motion information of the current video block by performing the DMVD scheme after determining that the DMVD scheme is enabled; performing a conversion between the current video block of the video and a bitstream representation while implementing the DMVD scheme; Includes.

[0013] In another exemplary aspect, the methods described above and herein may be implemented by a video encoder or video decoder device that includes a processor.

[0014] In another exemplary aspect, the methods described above and herein may be stored in the form of processor-executable instructions on a non-transitory computer-readable program medium.

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

[0016] [Figure 1] 1 illustrates an exemplary derivation process for constructing a merge candidate list.

[0017] [Diagram 2] 1 illustrates exemplary locations of spatial merge candidates.

[0018] [Diagram 3] 13 shows examples of candidate pairs considered for redundancy check of spatial merge candidates.

[0019] [Figure 4A] 13 shows exemplary locations of the second PU for N×2N and 2N×N partitions. [Figure 4B] 13 shows exemplary locations of the second PU for N×2N and 2N×N partitions.

[0020] [Diagram 5] FIG. 13 is a diagram of motion vector scaling for temporal merge candidates.

[0021] [Figure 6] 13 shows examples of candidate positions for temporal merge candidates C0 and C1.

[0022] [Figure 7] 1 illustrates an example of combined bi-predictive merge candidates.

[0023] [Figure 8] The process of deriving motion vector prediction candidates will now be summarized.

[0024] [Figure 9] 1 shows a diagram of motion vector scaling of spatial motion vector candidates.

[0025] [Figure 10] 1 shows an example of neighboring samples used for illumination compensation (IC) parameters.

[0026] [Figure 11A] A simplified affine motion model for the four-parameter affine mode is shown. [Figure 11B] A simplified affine motion model for the six-parameter affine mode is shown.

[0027] [Figure 12] 1 shows an example of an affine motion vector field (MVF) for each subblock.

[0028] [Figure 13A] Here is an example of a four-parameter affine model. [Figure 13B] Here is an example of a six-parameter affine model.

[0029] [Figure 14]We denote the motion vector predictor (MVP) of the inherited affine candidate AF_INTER.

[0030] [Figure 15] We show the MVP of AF_INTER for the constructed affine candidates.

[0031] [Figure 16A] Here are some examples of AF_MERGE candidates: [Figure 16B] Here are some examples of AF_MERGE candidates:

[0032] [Figure 17] 13 shows examples of candidate positions for the affine merge mode.

[0033] [Figure 18] 1 illustrates an example of a final motion vector representation (UMVE) search process.

[0034] [Figure 19] An example of UMVE search points is shown.

[0035] [Figure 20] 1 illustrates an example of decoder-side motion vector refinement (DMVR) based on bilateral template matching.

[0036] [Figure 21] 1 shows an example of motion vector difference MVD(0,1) mirrored between list 0 and list 1 in DMVR.

[0037] [Figure 22] Here is an example of an MV that can be checked in one iteration:

[0038] [Figure 23] 1 illustrates an example of a hardware platform for implementing the techniques described herein.

[0039] [Figure 24A]1 is an exemplary flow chart of an exemplary method of video processing. [Figure 24B] 1 is an exemplary flow chart of an exemplary method of video processing. [Figure 24C] 1 is an exemplary flow chart of an exemplary method of video processing. [Figure 24D] 1 is an exemplary flow chart of an exemplary method of video processing. [Figure 24E] 1 is an exemplary flow chart of an exemplary method of video processing. [Figure 24F] 1 is an exemplary flow chart of an exemplary method of video processing. [Figure 24G] 1 is an exemplary flow chart of an exemplary method of video processing. [Fig. 24H] 1 is an exemplary flow chart of an exemplary method of video processing.

[0040] [Diagram 25] 13 illustrates an example of a symmetric mode of decoder-side motion vector derivation.

[0041] [Figure 26] FIG. 1 is a block diagram illustrating an example video processing system in which various techniques disclosed herein may be implemented.

[0042] [Figure 27] 1 is a block diagram illustrating a video coding system according to some embodiments of the present disclosure.

[0043] [Figure 28] 1 is a block diagram illustrating an encoder according to some embodiments of the present disclosure.

[0044] [Figure 29] FIG. 2 is a block diagram illustrating a decoder according to some embodiments of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0045] This specification provides various techniques that can 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 decoded frames that can be used for further encoding.

[0046] Section headings are used herein for ease of understanding and are not intended to limit the embodiments and techniques to the corresponding section, such that embodiments from one section can be combined with embodiments from other sections.

[0047] 1. Overview

[0048] The present invention relates to a video coding technique. In particular, the present invention relates to an unequal weight iteration applied to prediction block and motion vector refinement in video coding. It may be applied to existing video coding standards such as High Efficiency Video Coding (HEVC) or to standards to be completed (Versatile Video Coding). It may also be applicable to future video coding standards or video codecs.

[0049] 2. Brief discussion

[0050] Video coding standards evolve primarily through the development of well-known ITU-T and ISO / IEC standards. ITU-T developed H.261 and H.263, ISO / IEC developed MPEG-1 and MPEG-4 Visual, and the two organizations jointly developed H.262 / MPEG-2 Video, H.264 / MPEG-4 Advanced Video Coding, and H.265 / HEVC standards. From H.262 onwards, video coding standards are based on hybrid video coding structures, where temporal prediction and transform coding are used. To develop future coding techniques beyond HEVC, the Joint Video Exploration Team (JVET) was jointly established by VCEG and MPEG in 2015. Since then, many new methods have been adopted by JVET and incorporated into reference software called the Joint Exploration Model (JEM). In April 2018, a Joint Video Expert Team (JVET) between VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) was created to work on the VVC standard, which targets a 50% bitrate reduction compared to HEVC.

[0051] The latest version of the VVC standard draft, Versatile Video Coding (Draft 2), can be found at http: / / phenix.it-sudparis.eu / jvet / doc_end_user / documents / 11_Ljubljana / wg11 / JVET-K1001-v7.zip. The latest reference software for VVC, called VTM, can be found at https: / / vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM / tags / VTM-2.1.

[0052] 2.1 Inter Prediction in HEVC / H.265

[0053] Each inter-predicted PU has motion parameters for one or two reference picture lists. The motion parameters include a motion vector and a reference picture index. The use of one of the two reference picture lists may be signaled using inter_pred_idc. The motion vector may be explicitly coded as a delta to the predictor.

[0054] When a CU is coded in skip mode, one PU is associated with the CU and there are no significant residual coefficients, coding motion vector deltas or reference picture indexes. A merge mode is specified, whereby the motion parameters of the current PU are obtained from neighboring PUs, including spatial and temporal candidates. The merge mode can be applied not only to skip mode, but also to any inter-predicted PU. An alternative to the merge mode is explicit transmission of motion parameters, where the motion vectors (more specifically, the motion vector differences (MVD) compared to the motion vector predictor), the corresponding reference picture index of each reference picture list, and the use of the reference picture list are explicitly signaled for each PU. Such a mode is referred to as Advanced motion vector prediction (AMVP) in this disclosure.

[0055] When the signaling indicates that one of the two reference picture lists should be used, the PU is generated from one block of samples. This is called "uni-prediction". Uni-prediction is available for both P slices and B slices.

[0056] When the signaling indicates that both reference picture lists should be used, a PU is generated from two blocks of samples. This is called "bi-prediction." Bi-prediction is only available for B slices.

[0057] The following documents provide details about inter prediction as specified in HEVC. The explanation starts with merge modes:

[0058] 2.1.1 Reference Picture List

[0059] In HEVC, the term "inter prediction" is used to indicate a prediction derived from data elements (e.g., sample values ​​or motion vectors) of a reference picture other than the currently decoded picture. Similar to H.264 / AVC, a picture can be predicted from multiple reference pictures. The reference pictures used for inter prediction are organized in one or more reference picture lists. The reference index identifier for which the reference picture is in the list should be used to generate the prediction signal.

[0060] A single reference picture list List0 is used for P slices, and two reference picture lists List0 and List1 are used for B slices. Note that the reference pictures included in List0 / 1 can be from past or future pictures in capture / display order.

[0061] 2.1.2 Merge Mode

[0062] 2.1.2.1 Deriving Merge Mode Candidates

[0063] When a PU is predicted using merge mode, an index to an entry in the merge candidate list is parsed from the bitstream and used to derive the motion information. The construction of this list is specified in the HEVC standard and can be summarized according to the following sequence of steps: Step 1: Initial candidate selection Step 1.1: Spatial candidate derivation Step 1.2: Redundancy check of spatial candidates Step 1.3: Time candidate derivation Step 2: Insert additional candidates Step 2.1: Generating bi-predictive candidates Step 2.2: Inserting zero motion candidates

[0064] These steps are also shown diagrammatically in FIG. 1. In spatial merge candidate derivation, at most four merge candidates are selected from candidates located at five different positions. In temporal merge candidate derivation, at most one merge candidate is selected from two candidates. Since a fixed number of candidates is assumed for each PU at the decoder, additional candidates are generated when the number of candidates obtained from step 1 does not reach the maximum number of merge candidates (MaxNumMergeCand) signaled in the slice header. Since the number of candidates is fixed, the index of the best merge candidate is coded using truncated unary binarization (TU). If the size of a CU is equal to 8, all PUs of the current CU share a single merge candidate list that is the same as the merge candidate list of the 2N×2N prediction units.

[0065] The operations associated with the above steps are detailed below.

[0066] FIG. 1 illustrates an exemplary derivation process for constructing a merge candidate list.

[0067] 2.1.2.2 Spatial candidate derivation

[0068] In the derivation of spatial merge candidates, up to four merge candidates are selected from the candidates at the positions shown in FIG. 2. The order of derivation is A1, B1, B0, A0, and B2. Position B2 is considered only when any PU at positions A1, B1, B0, A0 is not available or is intra-coded (e.g., because it belongs to another slice or tile). After the candidate at position A0 is added, the addition of the remaining candidates is subjected to a redundancy check. This ensures that candidates with the same motion information are eliminated from the list, which results in improved coding efficiency. In order to reduce computational complexity, the mentioned redundancy check does not necessarily consider all possible candidate pairs. In fact, only the pairs linked by the arrows in FIG. 3 are considered, and a candidate is only added to the list if the corresponding candidate used for the redundancy check does not have the same motion information. Another source of overlapping motion information is a "second PU" associated with a partition different from 2N×2N. As an example, Figures 4A-4B show the second PU for Nx2N and 2NxN, respectively. When the current PU is partitioned as Nx2N, the candidate at position A1 is not considered for list construction. In fact, adding this candidate results in two prediction units with the same motion information, which is redundant with respect to having one PU in the coding unit. Similarly, position B1 is not considered when the current PU is partitioned as 2NxN.

[0069] FIG. 2 shows exemplary locations of spatial merging candidates.

[0070] FIG. 3 shows examples of candidate pairs considered for redundancy check of spatial merge candidates.

[0071] 4A-4B show example locations of the second PU for N×2N and 2N×N partitions, respectively.

[0072] 2.1.2.3 Time Candidate Derivation

[0073] In this step, only one candidate is added to the list. In particular, in this temporal merge candidate derivation, a scaled motion vector is derived based on the co-located PU belonging to the picture with the smallest POC difference with the current picture in a given reference picture list. The reference picture list to be used for the derivation of the co-located PU is explicitly signaled in the slice header. The scaled motion vector of the temporal merge candidate is obtained as shown by the dashed line in FIG. 5. It is scaled from the motion vector of the co-located PU with POC distances tb and td, where tb is defined as the POC difference between the reference picture of the current picture and the current picture, and td is defined as the POC difference between the reference picture of the co-located picture and the co-located picture. The reference picture index of the temporal merge candidate is set equal to zero. The actual realization of the scaling process is described in the HEVC specification. In a B slice, two motion vectors, one from reference picture list 0 and the other from reference picture list 1, are obtained and combined to generate a bi-predictive merge candidate.

[0074] FIG. 5 is a diagram of motion vector scaling for temporal merge candidates.

[0075] For a co-located PU(Y) belonging to a reference frame, the location of the temporal candidate is selected between candidates C0 and C1, as shown in Figure 6. If the PU at location C0 is not available, is intra-coded, or is outside the current coding tree unit (CTU aka LCU, Largest Coding Unit) row, location C1 is used. Otherwise, location C0 is used in deriving the temporal merge candidate.

[0076] FIG. 6 shows example candidate positions for temporal merge candidates C0 and C1.

[0077] 2.1.2.4 Inserting additional candidates

[0078] Besides spatial and temporal merge candidates, there are two additional merge candidate types: combined bi-predictive merge candidate and zero merge candidate. Combined bi-predictive merge candidate is generated using spatial and temporal merge candidates. Combined bi-predictive merge candidate is used only for B slices. Combined bi-predictive candidate is generated by combining the first reference picture list motion parameters of the initial candidate with another second reference picture list motion parameters. If these two tuples provide different motion hypotheses, they form a new bi-predictive candidate. As an example, FIG. 7 shows the case where two candidates in the original list (on the left) with mvL0 and refIdxL0 or mvL1 and refIdxL1 are used to generate a combined bi-predictive merge candidate that is added to the final list (on the right). There are many rules regarding the possible combinations to generate these additional merge candidates.

[0079] FIG. 7 shows examples of combined bi-predictive merge candidates.

[0080] Zero motion candidates are inserted to fill the remaining entries in the merge candidate list, thus reaching the MaxNumMergeCand capacity. These candidates have zero spatial displacement and reference picture index that starts at zero and increases each time a new zero motion candidate is added to the list. Finally, no redundancy check is performed on these candidates.

[0081] 2.1.3 AMVP

[0082] AMVP exploits the spatial-temporal correlation of motion vectors with neighboring PUs. It is used for explicit transmission of motion parameters. For each reference picture list, a motion vector candidate list is constructed by checking the availability of left, top temporal neighboring PU positions, removing redundant candidates, and generating a fixed length candidate list with the addition of zero vectors. The encoder can then select the best predictor from the candidate list and transmit the corresponding index indicating the selected candidate. Similar to merge index signaling, the index of the best motion vector candidate is coded using a truncated unary. The maximum value to be coded in this case is 2 (see Figure 8). In the following chapters, details on the motion vector prediction candidate derivation process are provided.

[0083] 2.1.3.1 Derivation of AMVP Candidates

[0084] FIG. 8 summarizes the process of deriving motion vector predictor candidates.

[0085] In motion vector prediction, two kinds of motion vector candidates are considered: spatial motion vector candidates and temporal motion vector candidates. For spatial motion vector candidate derivation, two motion vector candidates are finally derived based on the motion vectors of each PU located at five different positions as shown in Figure 2.

[0086] In the temporal motion vector candidate derivation, one motion vector candidate is selected from two candidates derived based on two different same positions. After the first list of spatial-temporal candidates is created, the duplicated motion vectors in the list are removed. If the number of possible candidates is greater than two, the motion vector candidates whose reference picture index in the associated reference picture list is greater than 1 are removed from the list. If the number of spatial-temporal motion vector candidates is less than two, an additional zero motion vector candidate is added to the list.

[0087] 2.1.3.2 Spatial Motion Vector Candidates

[0088] In the derivation of spatial motion vector candidates, at most two candidates are considered among the five possible candidates derived from the PUs located at the positions shown in FIG. 2. Their positions are the same as the positions of the motion merge. The derivation order on the left side of the current PU is defined as A0, A1, scaled A0, scaled A1. The derivation order on the top side of the current PU is defined as B0, B1, B2, scaled B0, scaled B1, scaled B2. For each side, there are four cases that can be used as motion vector candidates, where two cases do not need to use spatial scaling and two cases use spatial scaling. The four different cases are summarized as follows: No spatial scaling. (1) Same reference picture list, same reference picture index (same POC). (2) Different reference picture lists, same reference pictures (same POC). Spatial scaling. (3) Same reference picture list, different reference pictures (different POC). (4) Different reference picture lists, different reference pictures (different POC).

[0089] The no spatial scaling case is followed by spatial scaling first. Regardless of the reference picture list, spatial scaling is considered when the POC differs between the reference pictures of the neighboring PU and the current PU. If all PUs of the left candidate are not available or are intra-coded, scaling of the top motion vector is allowed to aid in the parallel derivation of the left and top MV candidates. Otherwise, spatial scaling is not allowed for the top motion vector.

[0090] FIG. 9 shows a diagram of motion vector scaling of spatial motion vector candidates.

[0091] In the spatial scaling process, the motion vectors of neighboring PUs are scaled in a similar manner to the temporal scaling shown in Figure 9. The main difference is that the reference picture list and index of the current PU are given as input, and the actual scaling process is the same as that of temporal scaling.

[0092] 2.1.3.3 Temporal Motion Vector Candidates

[0093] Apart from the reference picture index derivation, all the processes for the derivation of temporal merge candidates are the same as the derivation of spatial motion vector candidates (see Figure 6). The reference picture index is signaled to the decoder.

[0094] 2.2 Local illumination compensation in JEM

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

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

[0097] When LIC is applied to a CU, a least square error method is utilized to derive parameters a and b using neighboring samples of the current CU and their corresponding reference samples. More specifically, as shown in Fig. 12, 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.

[0098] 2.2.1 Derivation of prediction block

[0099] The IC parameters are derived and applied separately for each prediction direction. For each prediction direction, a first prediction block is generated by the decoded motion information, and a temporal prediction block is obtained by applying the LIC model. Then, the two temporal prediction blocks are used to derive the final prediction block.

[0100] When a CU is coded in merge mode, the LIC flag is copied from the neighboring blocks in a manner similar to copying motion information in merge mode. In other cases, the LIC flag is signaled for the CU to indicate whether LIC is applied or not.

[0101] When LIC is signaled for a picture, an additional CU-level RD check is needed to determine whether LIC applies to the CU. When LIC is valid for a CU, the mean-removed sum of absolute difference (MR-SAD) and mean-removed sum of absolute Hadamard-transformed difference (MR-SATD) are used instead of SAD and SATD for integer pel and fractional pel motion search, respectively.

[0102] To reduce the encoding complexity, the following encoding scheme is applied in JEM:

[0103] When 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 all of the reference pictures of the current picture are calculated in the encoder. If the histogram difference between the current picture and all of the reference pictures 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.

[0104] 2.3 Inter Prediction Method in VVC

[0105] There are several new coding tools for improving inter prediction, such as Adaptive motion vector difference resolution (AMVR) for signaling MVD, Affine prediction mode, Triangular prediction mode (TPM), Advanced TMVP (ATMVP, aka SbTMVP), Generalized Bi-Prediction (GBI), and Bi-directional Optical flow (BIO or BDOF).

[0106] 2.3.1 Coding Block Structure in VVC

[0107] In VVC, a QuadTree / BinaryTree / MultipleTree (QT / BT / TT) structure is adopted to divide a picture into square or rectangular blocks.

[0108] In addition to QT / BT / TT, another tree (also called a dual coding tree) is also employed in VVC for I-frames, whereby the coding block structure is signaled separately for the luma and chroma components.

[0109] 2.3.2 Adaptive Motion Vector Difference Precision

[0110] In HEVC, motion vector differences (MVDs) (between a motion vector and a predicted motion vector of a PU) are signaled in units of quarter luma samples when use_integer_mv_flag is equal to 0 in the slice header. In VVC, locally adaptive motion vector resolution (AMVR) is introduced. In VVC, MVD can be coded in units of quarter luma samples, integer luma samples, or four luma samples (i.e., ¼ pel, 1 pel, 4 pel). MVD precision is controlled at the coding unit (CU) level, and an MVD precision flag is conditionally signaled for each CU that has at least one non-zero MVD component.

[0111] For a CU with at least one non-zero MVD component, a first flag is signaled to indicate whether quarter luma sample MV precision is used for the CU. When the first flag (equal to 1) indicates that quarter luma sample MV precision is not used, another flag is signaled to indicate whether integer luma sample MV precision or 4 luma sample MV precision is used.

[0112] When the first MVD precision flag of a CU is 0 or is not coded for a CU (meaning all MVDs in the CU are 0), quarter luma sample MV precision is used for the CU. When a CU uses integer luma sample MV precision or 4 luma sample MV precision, the MVPs in the AMVP candidate list of the CU are rounded to the corresponding precision.

[0113] 2.3.3 Affine motion compensation accuracy

[0114] In HEVC, only the transform motion model is applied for motion compensation prediction (MCP). In the real world, there are many kinds of motions, such as zoom in / out, rotation, perspective motion, and other irregular motions. In VVC, a simplified affine transform motion compensation prediction is applied by a four-parameter affine model and a six-parameter affine model. As shown in Figure 13, the affine motion field of a block is described by two control point motion vectors (CPMVs) in the four-parameter affine model and by three CPMVs in the six-parameter affine model.

[0115] 11A-11B show simplified affine motion models for the four-parameter affine mode and the six-parameter affine mode, respectively.

[0116] The motion vector field (MVF) of a block is described by a four-parameter affine model (the four parameters are defined by the variables a, b, e, and f) in equation (1) and a six-parameter affine model (the six parameters are defined by the variables a, b, c, d, e, and f) in equation (2) as follows:

number

[0117] Here, (mv h 0,mv h 0) is the motion vector of the top-left corner control point, and (mv h 1,mv h 1) is the motion vector of the upper right corner control point, (mv h 2,mv h2) is the motion vector of the bottom left corner control point. All three motion vectors are called control point motion vectors (CPMVs). (x,y) are the coordinates of the representative point of each point with respect to the top left sample in the current block. (mv h (x,y),mv v (x,y)) is the motion vector derived for the sample at (x,y). CP motion vectors may be signaled (as in affine AMVP mode) or derived on the fly (as in affine merge mode). w and h are the width and height of the current block. In practice, the division is performed by right shift with rounding operation. In VTM, the representative point is defined to be the center position of the subblock. For example, when the coordinates of the upper left corner of the subblock relative to the upper left sample in the current block are (xs,ys), the coordinates of the representative point are defined to be (xs+2,ys+2). For each subblock (i.e., h is 4×4 in VTM), the representative point is used to derive the motion vector for the entire subblock.

[0118] To further simplify the motion compensation prediction, sub-block based affine transformation prediction is applied. To derive M×N (in current VVC, M and N are both set to 4) motion vectors, the motion vector of the center sample of each sub-block is derived according to equations (1) and (2) and rounded to 1 / 16 fractional precision, as shown in Figure 14. Then, a 1 / 16-pel motion compensation interpolation filter is applied to generate a prediction of each sub-block according to the derived motion vector. The 1 / 16-pel interpolation filter is introduced by the affine mode.

[0119] FIG. 12 shows an example of affine MVF for each subblock.

[0120] After the MCP, the high-precision motion vectors for each sub-block are rounded and stored with the same precision as the regular motion vectors.

[0121] 2.3.3.1 Signaling Affine Predictions

[0122] Similar to the transform motion model, there are two modes for signaling side information with affine prediction: AFFINE_INTER and AFFINE_MERGE modes.

[0123] 2.3.3.2 AF_INTER Mode

[0124] The AF_INTER mode can be applied for CUs with width and height greater than 8. A CU-level affine flag is signaled in the bitstream to indicate whether the AF_INTER mode is used.

[0125] In this mode, for each reference picture list (list 0 or list 1), an affine AMVP candidate list is constructed with three affine motion predictors in the following order, where each candidate contains the estimated CPMV of the current block. The difference between the best CPMV found at the encoder side (mv0, mv1, and mv2 in Figure 17) and the estimated CPMV is signaled. In addition, the index of the affine AMVP candidate from which the estimated CPMV is derived is further signaled.

[0126] (1) Inherited affine motion predictor The check order is similar to the order of spatial MVP in the AMVP list structure of HEVC. First, the left inherited affine motion predictor is derived from the first block in {A1, A0} that is affine coded and has the same reference picture as in the current block. Then, the top inherited affine motion predictor is derived from the first block in {B1, B0, B2} that is affine coded and has the same reference picture as in the current block. Five blocks A1, A0, B1, B0, B2 are shown in Figure 16.

[0127] When it is found that a neighboring block should be coded in affine mode, the CPMV of the coding unit covering the neighboring block is used to derive the predictor of the CPMV of the current block. For example, if A1 is coded in a non-affine mode and A0 is coded in a 4-parameter affine mode, the left inherited affine MV predictor is derived from A0. In this case, the MV0 of the top-left CPMV in Figure 16B is N and MV1 of the upper right CPMV N As shown in the figure, the CPMV of the CU that covers A0 is the MV0 of the top left (coordinate (x0, y0)), top right (coordinate (x1, y1)), and bottom right (coordinate (x2, y2)) of the current block. C , MV1 C and MV2 C The estimated CPMV of the current block is then derived, denoted by

[0128] (2) The constructed affine motion predictor The constructed affine motion predictor is composed of control-point motion vectors (CPMVs) derived from neighboring inter-coded blocks with the same reference picture as shown in Figure 17. If the current affine motion model is 4-parameter affine, the number of CPMVs is 2. Otherwise, if the current affine motion model is 6-parameter affine, the number of CPMVs is 3. The top-left CPMV (mv0 - ) is derived from the MV of the first block in group {A,B,C} that is inter-coded and has the same reference picture as the current block. The top-right CPMV (vector mv1) is derived from the MV of the first block in group {D,E} that is inter-coded and has the same reference picture as the current block. The bottom-left CPMV (vector mv2) is derived from the MV of the first block in group {F,G} that is inter-coded and has the same reference picture as the current block.

[0129] If the current affine motion model is 4-parameter affine, the constructed affine motion predictor is inserted into the candidate list only if both vectors mv0 and mv1 are found, i.e., vectors mv0 and mv1 are used as the estimated CPMVs for the top-left (coordinates (x0, y0)) and top-right (coordinates (x1, y1)) positions of the current block.

[0130] If the current affine motion model is a 6-parameter affine, the constructed affine motion predictor is inserted into the candidate list only if all of the vectors mv0, mv1, and mv2 are found, i.e., vectors mv0, mv1, and mv2 are used as the estimated CPMVs for the top-left (coordinates (x0, y0)), top-right (coordinates (x1, y1)), and bottom-right (coordinates (x2, y2)) positions of the current block.

[0131] No pruning process is applied when inserting the constructed affine motion predictors into the candidate list.

[0132] (3) The usual affine motion predictor The following is applied until the affine motion predictor reaches a maximum. 1) If available, derive the affine motion predictor by setting all CPMVs equal to the vector mv2. 2) If available, derive the affine motion predictor by setting all CPMVs equal to the vector mv1. 3) If available, derive the affine motion predictor by setting all CPMVs equal to the vector mv0. 4) If available, derive the affine motion predictor by setting all CPMVs equal to the vector HEVC TMVP. 5) Derive the affine motion predictor by setting all CPMVs to zero MV.

[0133] Vector mv i Note that, has already been derived in the constructed affine motion predictor.

[0134] 13A and 13B show examples of a four-parameter affine model and a six-parameter affine model, respectively.

[0135] FIG. 14 shows the MVP of AF_INTER for the inherited affine candidates.

[0136] FIG. 15 shows the AF_INTER MVP of the constructed affine candidates.

[0137] 16A-16B show examples of AF_MERGE candidates.

[0138] In AF_INTER mode, when 4 / 6 parameter affine mode is used, 2 / 3 control points are needed and therefore 2 / 3 MVD needs to be coded for these control points as shown in Figure 15. JVET-K0337 proposes to derive MV as follows: mvd1 and mvd2 are predicted from mvd0.

number

[0139] Here, the vector mv i , mvd1, and mv1 are the predicted motion vector, motion vector difference, and motion vector of the top-left pixel (i=0), top-right pixel (i=1), or bottom-left pixel (i=2), respectively, as shown in Figure 16B. Note that the addition of two motion vectors (e.g., mvA(xA,yA) and mvB(xB,yB)) is equal to the sum of two other components, i.e., newMV=mvA+mvB, and the two components of newMV are set to (xA+xB) and (yA+yB), respectively.

[0140] 2.3.3.3 AF_MERGE Mode

[0141] When CU is applied in AF_MERGE mode, the first block coded by affine mode is obtained from the valid neighboring reconstructed blocks. The selection order of the candidate blocks is from left to top, top right, bottom left, top left, as shown in FIG. 16A (indicated by A, B, C, D, E, respectively). For example, if the neighboring bottom left block is coded by affine mode as shown by A0 in FIG. 167, the control point (CP) motion vector mv0 of the top left corner, top right corner, and bottom left corner of the neighboring CPU / PU containing element B, block A, is selected. N , mv1 N , and mv2 N Then, the upper left corner / upper right corner / lower left corner motion vector mv0 on the current CU / PU is fetched. C ,mv1 C and mv2 C (used for 6-parameter affine modes) is mv0 N ,mv1 N and mv2 N It should be noted that in VTM-2.0, if the current block is affine coded, the sub-block located in the upper left corner (e.g., 4x4 block in VTM) stores mv0 and the sub-block located in the upper right corner stores mv1. If the current block is coded with a 6-parameter affine model, the sub-block located in the lower left corner stores mv2, otherwise (with a 4-parameter affine model), the LB stores mv2'. The other sub-blocks store the MVs used for MC.

[0142] Currently CU's CPMV mv0 C ,mv1 C and mv2 C After is derived, the MVF of the current CU is generated according to equations (1) and (2) of the simplified affine motion model. To identify whether the current CU is coded in AF_MERGE mode, an affine flag is signaled in the bitstream when there is at least one neighboring block coded in affine mode.

[0143] In JVET-L0142 and JVET-L0632, the affine merge candidate list is constructed by the following steps.

[0144] 1) Insert inheritance affine candidates. An inherited affine candidate means that the candidate is derived from the affine motion model of its valid neighboring affine coded blocks. Up to two inherited affine candidates are derived from the affine motion models of neighboring blocks and inserted into the candidate list. For the left predictor, the scan order is {A0,A1}, and for the top predictor, the scan order is {B0,B1,B2}.

[0145] 2) Insert the constructed affine candidates. If the affine merge candidate list has fewer elements than MaxNumAffineCand (e.g., 5), a constructed affine candidate is inserted into the candidate list. A constructed affine candidate means that the candidate is constructed by combining the neighborhood motion information of each control point. a) As shown in Figure 19, motion information of a control point is first derived from the specified spatial and temporal neighborhoods. CPk (k=1,2,3,4) represents the kth control point. A0, A1, A2, B0, B1, B2, and B3 are spatial positions for predicting CPk (k=1,2,3), and T is the temporal position for predicting CP4. 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.

[0146] FIG. 17 shows examples of candidate positions for the affine merge mode.

[0147] The motion information of each control point is obtained according to the following priority. For CP1, the check priority is B2->B3->A2. B2 is used if available. Or, if B2 is available, B3 is used. If both B2 and B3 are not available, A2 is used. If all three candidates are not available, the motion information of CP1 cannot be obtained. For CP2, the check priority is B1->B0. For CP3, the check priority is A1->A0. For CP4, T is used. b) Second, a combination of control points is used to construct affine merge candidates. I. To construct a 6-parameter affine candidate, motion information of three control points is required. 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} are transformed into a 6-parameter motion model represented by the top-left, top-right, and bottom-left control points. II. To construct a four-parameter affine candidate, motion information of two control points is required. The two control points can be selected from one of two pairs ({CP1,CP2},{CP1,CP3}). The pair is transformed into a four-parameter motion model represented by the top-left and top-right control points. III. The constructed affine candidate combinations 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}. i. For each combination, the reference index of list X of each CP is checked, if they are all the same, then this combination has a valid CPMV for list X. If the combination does not have a valid CPMV for both list 0 and list 1, then this combination is marked as invalid. Otherwise, it is valid and the CPMV is put into the subblock merge list.

[0148] 3) Pad 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 filled.

[0149] More specifically, for the subblock merging candidate list, the 4-parameter merging candidate has MV set to (0,0) and prediction direction set to uni-prediction from list 0 (for P slices) and bi-prediction (for B slices).

[0150] 2.3.4 Merge with Motion Vector Difference (MMVD)

[0151] In JVET-L0054, the ultimate motion vector expression (UMVE), also known as MMVD, is presented. The UMVE is used for skip or merge modes with the proposed motion vector representation method.

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

[0153] UMVE provides a new motion vector difference (MVD) representation method, in which a starting point, a motion magnitude and a motion direction are used to represent the MVD.

[0154] FIG. 18 shows an example of the UMVE search process.

[0155] FIG. 19 shows an example of UMVE search points.

[0156] The proposed technique uses the merge candidate list as is, but only candidates that are of the default merge type (MRG_TYPE_DEFAULT_N) are considered for extending the UMVE.

[0157] The base candidate index defines the starting point. The base candidate index indicates the best candidate among the candidates in the list, as follows: Table 1 Basic candidate IDX [Table 1]

[0158] If the number of base candidates is equal to 1, the base candidate IDX is not signaled.

[0159] The distance index is information on the magnitude of the movement. The distance index indicates a predetermined distance from the start point information. The predetermined distance is as follows. Table 2 Distance IDX [Table 2]

[0160] 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 3 Direction IDX [Table 3]

[0161] The UMVE flag is signaled immediately after sending the skip or merge flag. If the skip or merge flag is 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, we are in AFFINE mode, but if it is not 1, the VTM skip / merge index is parsed.

[0162] No additional line buffers are required by the UMVE candidates because the software skip / merge candidates are directly used as base candidates. Just before motion compensation, the complement of the MV is determined using the input UMVE index. This eliminates the need to maintain long line buffers.

[0163] In the current common test condition, either the first or second merge candidate in the merge candidate list can be selected as the base candidate.

[0164] UMVE is also known as Merge with MV Differences (MMVD).

[0165] 2.3.5 Decoder-side Motion Vector Refinement (DMVR)

[0166] In bi-prediction operation, for prediction of one block region, two prediction blocks formed using motion vectors (MVs) from list 0 and list 1, respectively, are combined to form a single prediction signal. In the decoder-side motion vector refinement (DMVR) method, the two bi-prediction motion vectors are further refined.

[0167] 2.5.3.1 DMVR in JEM

[0168] In the JEM design, the motion vector is refined by a bilateral template matching process. Bilateral template matching is applied in the decoder to perform a distortion-based search between the bilateral template and the reconstructed samples in the reference picture to obtain the refined MV without transmitting additional motion information. An example is shown in Fig. 22. As shown in Fig. 22, the bilateral template is generated as a weighted combination (i.e., average) of two prediction blocks from the initial MV0 of list 0 and the MV1 of list 1, respectively. The template matching operation is composed of a computation cost index between the generated template and a sample region (around the initial prediction block) in the reference picture. For each of the two reference pictures, the MV that results in the minimum template cost can be considered as the update MV of that list to replace the original MV. In JEM, nine MV candidates are searched for each list. The nine MV candidates include the original MV and eight surrounding MVs with one luma sample offset to the original MV in the horizontal or vertical or both directions. Finally, two new MVs, MV0′ and MV1′, are used to generate the final bi-prediction result, as shown in Figure 22. The sum of absolute differences (SAD) is used as the cost metric. When calculating the cost of a prediction block generated by one surrounding MV, in fact, instead of the real MV, the rounded MV (to integer pels) is used to obtain the prediction block.

[0169] FIG. 20 shows an example of DMVR based on bilateral template matching.

[0170] 2.3.58.2 DMVR on VCC

[0171] As shown in Figure 21, for DMVR in VCC, MVD mirroring between list 0 and list 1 is assumed, and bilateral matching is performed to refine the MV. That is, to find the best MVD among several MVD candidates. The MVs of two reference picture lists are denoted by MVL0(L0X, L0Y) and MVL1(L1X, L1Y). The MVD denoted by (MvdX, MvdY) for list 0 that can minimize a cost function (e.g., SAD) is defined as the best MVD. In the SAD function, it is defined as the SAD between the reference block of list 0 derived by the motion vector (L0X+MvdX, L0Y+MvdY) in the list 0 reference picture and the reference block of list 1 derived by the motion vector (L1X-MvdX, L1Y-MvdY) in the list 1 reference picture.

[0172] The motion vector refinement process may be iterated twice. As shown in Fig. 22, in an iteration, up to six MVDs (with integer pel precision) may be checked in two steps. In the first step, MVDs (0,0), (-1,0), (1,0), (0,-1), (0,1) are checked. In the second step, one of MVDs (-1,-1), (-1,1), (1,-1) or (1,1) is selected for further checking. Let function Sad(x,y) return the SAD value of MVD(x,y). The MVD checked in the second step, denoted by (MvdX,MvdY), is determined as follows:

number

[0173] In the first iteration, the starting point is the signaled MV, and in the second iteration, the starting point is the signaled MV plus the best selected MVD in the first iteration. DMVR applies only when one reference picture is a preceding picture and the other is a following picture, and the two reference pictures have the same picture order count distance from the current picture.

[0174] FIG. 21 shows an example of an MVD(0,1) mirrored between list 0 and list 1 in a DMVR.

[0175] FIG. 22 shows an example of MVs that can be checked in one iteration.

[0176] To further simplify the DMVR process, JVET-M0147 proposed some changes to the design in JEM, and specifically, the DMVR design adopted for VTM-4.0 (soon to be released) has the following main features: Terminate early when the (0,0) position SAD between list 0 and list 1 is less than a threshold. Exit early when the SAD between list 0 and list 1 is zero at a particular position. DMVR block size: W*H>=64&&H>=8, where W and H are the width and height of the block. For DMVR with CU size > 16*16, divide the CU into multiple 16x16 sub-blocks. If only the width or height of a CU is greater than 16, it is only divided vertically or horizontally. Reference block size (for luma) (W+7)*(H+7). Integer Pell search based on 25-point SAD (i.e., (+-)2 refinement search range, single stage). DMVR based on bilinear interpolation. Sub-pel refinement based on the "Parametric error surface equation". This procedure is performed only if the minimum SAD cost is not equal to zero and the best MVD is (0,0) in the last MV refinement iteration. Luma / chroma MC with reference block padding (if necessary). Refinement MV used only for MC and TMVP.

[0177] 2.3.5.2.1 Using DMVR

[0178] The DMVR may be enabled when all of the following conditions are true: The DMVR enabled lag in the SPS (i.e., sps_dmvr_enabled_flag) is equal to 1. The TPM flag, the inter-affine flag, and the sub-block merge flag (either ATMVP or affine merge), the MMVD flag are all equal to 0. Merge flag is equal to 1. The current block is bi-predicted and the POC difference between the current picture and the reference picture in list 1 is equal to the POC distance between the reference picture in list 0 and the current picture. Currently, CU height is 8 or higher. The number of luma samples (CU width * height) is 64 or more.

[0179] 2.3.5.2.2 Sub-pel refinement based on the "Parametric error surface equation"

[0180] The method is summarized below. 1. The parameter error surface fit is computed only if the center position is the best cost position at a given iteration. 2. The central location cost, and the costs at (-1,0), (0,-1), (1,0) and (0,1) locations from the center are used to fit a 2D parabolic error surface equation of the form:

number

number

[0181] 2.3.6 Combined Intra and Inter Prediction

[0182] In JVET-L0100, multi-hypothesis prediction is proposed. One method for generating multiple hypotheses is joint intra- and inter-prediction.

[0183] When multi-hypothesis prediction is applied to enhance intra mode, it combines one intra prediction and one merge index prediction. In merge CU, one flag is signaled for merge mode, and when the flag is true, select intra mode from intra candidate list. For luma component, intra candidate list is derived from four intra prediction modes including DC, planar, horizontal, and vertical, and the size of intra candidate list can be 3 or 4 depending on block shape. When CU width is larger than twice CU height, horizontal mode is removed from intra mode list, and when CU height is larger than twice CU width, vertical mode is removed from intra mode list. One intra prediction mode selected by intra mode index and one merge index prediction selected by merge index are combined using weighted average. For chroma component, DM is always applied without additional signaling. Weights for combining predictions are described below. When DC or planar mode is selected and CB width or height is smaller than 4, equal weights are applied. For CBs whose width and height are 4 or more, when the horizontal / vertical mode is selected, one CB is first divided horizontally / vertically into four equal-area regions. Each weight set is (w_intra i ,w_inter i ), where i is 1 to 4, and (w_intra1,w_inter1)=(6,2), (w_intra2,w_inter2)=(5,3), (w_intra3,w_inter3)=(3,5), (w_intra4,w_inter4)=(2,6) are applied to the corresponding regions. (w_intra1,w_inter1) is for the region closest to the reference sample, and (w_intra4,w_inter4) is for the region furthest from the reference sample. The combined prediction can then be calculated by adding the two weighted predictions and shifting them right by 3 bits. Furthermore, the intra prediction modes for multiple hypotheses of the predictor can be preserved for future reference of neighboring CUs. 2.3.7 Symmetric Motion Vector Difference in JVET-M0481 In JVET-M0481, symmetric motion vector difference (SMVD) is proposed for bi-predictive motion information coding. First, at the slice level, the variables BiDirPredFlag, RefIdxSymL0 and RefIdxSymL1 are derived as follows: The forward reference picture in Reference Picture List 0 that is closest to the current picture is searched for. If found, RefIdxSymL0 is set equal to the reference index of the forward picture. The backward reference picture in reference picture list 1 that is closest to the current picture is searched for. If found, RefIdxSymL1 is set equal to the reference index of the backward picture. If both forward and backward pictures are found, BiDirPredFlag is set equal to one. In other cases, the following applies: The backward reference picture in reference picture list 0 that is closest to the current picture is searched for. If found, RefIdxSymL0 is set equal to the reference index of the backward picture. The forward reference picture in reference picture list 1 that is closest to the current picture is searched for. If found, RefIdxSymL1 is set equal to the reference index of the forward picture. If both reverse and forward pictures are found, BiDirPredFlag is set equal to 1. Otherwise, BiDirPredFlag is set equal to 0. Second, at the CU level, if the prediction direction of a CU is bi-predictive and BiDirPredFlag is equal to 1, a symmetric mode flag is explicitly signaled, indicating whether symmetric mode is used or not. When the flag is true, only mvp_l0_flag, mvp_l1_flag and MVD0 are explicitly signaled. The reference indexes are set equal to RefIdxSymL0, RefIdxSymL1 for list 0 and list 1, respectively. MVD1 is set equal to -MVD0. The final motion vector is given by:

number

[0184] FIG. 25 shows an exemplary diagram of the symmetric mode.

[0185] The changes in the coding unit syntax are shown (in bold) in Table 4. Table 4. Changes in coding unit syntax [Table 4] TIFF0007556090000011.tif127167

[0186] 3. Problems with Today's Video Coding Technologies

[0187] Current decoder side motion vector derivation (DMVD) may have the following problems. 1. DMVR is enabled even when weighted prediction is enabled for the current picture. 2. When two reference pictures have different POC distances from the current picture, DMVD is disabled. 3. DMVR and BIO are enabled for different block sizes. a.DMVR is enabled when:

number

number

[0188] 4. Exemplary Techniques and Embodiments

[0189] The following detailed techniques should be considered as examples to illustrate the general concepts. These techniques should not be construed in a narrow sense. Moreover, these techniques can be combined in any way.

[0190] As used herein, DMVD includes methods such as DMVR and FRUC that perform motion estimation to derive or refine block / sub-block motion information, and BIO that performs sample-by-sample motion refinement.

[0191] The unequal weights applied to a prediction block may represent those used in a GBI process, a LIC process, a weighted prediction process, or other encoding / decoding process of a coding tool that requires applying additional operations to a prediction block instead of the average of two prediction blocks.

[0192] Suppose the reference pictures in list0 and list1 are Ref0 and Ref1, respectively, the POC distance between the current picture and Ref0 is PocDist0 (i.e., the POC of the current picture minus the POC of Ref0), and the POC distance between Ref1 and the current picture is PocDist1 (i.e., the POC of Ref1 minus the POC of the current picture). In this specification, PocDist1 is the same as PocDis1, and PocDist0 is the same as PocDis0. Let the width and height of a block be denoted as W and H, respectively. Let the function abs(x) return the absolute value of x. 1. The parameters (eg, weighting information) applied to the prediction block in the final prediction block generation process may be utilized in the DMVD process. The parameters may be signaled to the decoder using GBi or weighted prediction, etc. GBi is also known as bi-prediction with coding unit weights (BCW). b. The parameters may be derived at the decoder using the LIC. c. The parameters may be for a reshaping process that maps a set of sample values ​​to another set of sample values. d. In one example, the parameters applied to the predictive block may be applied in the DMVD. i. In one example, when calculating a cost function (eg, SAD, MR-SAD, gradient), a weighting factor according to the GBI index is first applied to the predicted block and then the cost is calculated. ii. In one example, when calculating a cost function (eg, SAD, MR-SAD, gradient), a weighting factor and / or offset according to weighted prediction is first applied to the predicted block and then the cost is calculated. iii. In one example, when calculating a cost function (eg, SAD, MR-SAD, gradient), a weighting factor and / or offset according to the LIC parameters is first applied to the predicted block and then the cost is calculated. iv. In one example, when calculating the temporal and spatial gradients in BIO, a weighting factor according to the GBI index is first applied to the predicted block, and then these gradients are calculated. v. In one example, when calculating the temporal and spatial gradients in BIO, weighting factors and / or offsets according to weighted prediction are first applied to the prediction block and then these gradients are calculated. vi. In one example, when calculating the temporal and spatial gradients in BIO, weighting factors and / or offsets according to the LIC parameters are first applied to the prediction block and then these gradients are calculated. vii. Alternatively, further cost calculations (e.g., SAD, MR-SAD) / gradient calculations are performed in the reshaped domain. viii. Alternatively, further after the motion information is refined, the reshaping process is disabled for prediction blocks generated by the refined motion information. e. In one example, DMVD may be disabled in GBI mode and / or LIC mode and / or weighted prediction and / or multiple hypothesis prediction. f. In one example, when the weighting factors and / or offsets of two reference pictures are different, DMVD may be disabled in weighted prediction. g. In one example, when the weighting factors and / or offsets of two reference blocks are different, the DMVD may be disabled in the LIC. 2. The DMVD process (eg, DMVR or BIO) may be applicable to bi-predictive blocks even when the first picture order count distance (PocDis0) is not equal to the second picture order count distance (PocDis1). In one example, all DMVD processes may be enabled or disabled according to the same rules for PocDis0 and PocDis1. i. For example, all DMVD processing may be enabled when PocDis0 is equal to PocDis1. ii. For example, all DMVD processing may be enabled when PocDis0 is not equal to PocDis1. Alternatively, furthermore, all DMVD processing may be disabled when PocDis0*PocDist1 is less than zero. iii. For example, the entire DMVD process may be disabled when PocDis0 is not equal to PocDis1. iv. For example, all DMVD processing may be disabled when PocDis0*PocDist1 is less than 0. b. In one example, the current design where PocDis0 is equal to PocDis1 is validated. i. In one example, the MVD of list 0 may be mirrored to list 1. That is, if (MvdX, MvdY) is used for list 0, then (-MvdX, -MvdY) is used for list 1 to identify the two reference blocks. ii. Alternatively, the MVD of list 1 may be mirrored in list 0. That is, if (MvdX, MvdY) is used for list 1, then (-MvdX, -MvdY) is used for list 0 to identify the two reference blocks. c. Alternatively, instead of using mirrored MVDs for list 0 and list 1 (i.e., (MvdX, MvdY) may be used for list 0 and then (-MvdX, -MvdY) may be used for list 1), a non-mirrored MVD may instead be used to identify the two reference blocks. i. In one example, the MVD of list 0 may be scaled to list 1 according to PocDist0 and PocDist1. 1. Denote the selected MVD of list 0 by (MvdX, MvdY), then (-MvdX*PocDist1 / PocDist0, -MvdY*PocDist1 / PocDist0) is selected as the MVD to be applied to list 1. ii. In one example, the MVD of list 1 may be scaled to list 0 according to PocDist0 and PocDist1. 1. Denote the selected MVD of list 1 by (MvdX, MvdY), then (-MvdX*PocDist0 / PocDist1, -MvdY*PocDist0 / PocDist1) is selected as the MVD to be applied to list 0. iii. The division operation in scaling can be implemented by lookup tables, multiple arithmetic, and right-right operations. d. How the MVD of two reference pictures is defined (eg, using mirroring or by scaling the MVD) may depend on the reference pictures. i. In one example, if abs(PocDist0) is less than or equal to abs(PocDist1), then the MVD of list 0 may be scaled to list 1 according to PocDist0 and PocDist1. ii. In one example, if abs(PocDist0) is greater than or equal to abs(PocDist1), then the MVD of list 0 may be scaled to list 1 according to PocDist0 and PocDist1. iii. In one example, if abs(PocDist1) is less than or equal to abs(PocDist0), the MVD of list 1 may be scaled according to PocDist0 and PocDist1 to list 0. iv. In one example, if abs(PocDist1) is greater than or equal to abs(PocDist0), then the MVD of list 1 may be scaled according to PocDist0 and PocDist1 to list 0. v. In one example, if one reference picture is a preceding picture and the other reference picture is a succeeding picture of the current picture, the MVD of list 0 may be mirrored to list 1 and no MVD scaling is performed. e. Whether and how to apply a certain DMVD may depend on the sign of PocDist0 and the sign of PocDist1. i. In one example, a certain DMVD can only occur if PocDist0*PocDist1<0. ii. In one example, a certain DMVD can only be performed if PocDist0*PocDist1>0. f. Alternatively, DMVD processing (eg, DMVR or BIO) may be disabled when PocDist0 is not equal to PocDist1. 3. DMVR and / or other DMVD methods may be enabled in SMVD mode. In one example, the MVD / MV decoded from the bitstream according to the SMVD mode may be further refined before being used to decode one block. b. In one example, in SMVD mode, when the MV / MVD precision is N-pel, DMVR or / and other DMVD methods may be used to refine the MVD by mvdDmvr, where mvdDmvr has M-pel precision, where N, M=1 / 16, 1 / 8, 1 / 4, 1 / 2, 1, 2, 4, 8, 16, etc. i. In one example, M may be less than or equal to N. c. In one example, MVD may not be signaled in SMVD mode, and instead, DMVR and / or other DMVD methods may be applied to refine MVD. i. Alternatively, further, the AMVR information may not be signaled and the MV / MVD precision may be derived to have a predetermined value (eg, MVD has ¼-pel precision). 1. In one example, an indication of the predefined value may be signaled at the sequence / picture / tile group / slice / tile / video data unit level. 2. In one example, the predefined value may depend on the mode / motion information, such as affine or non-affine motion. d. In one example, an indication of whether DMVR and / or other DMVD methods are applied may be signaled for an SMVD coding block. i. If DMVR and / or other DMVD methods are applied, MVD does not need to be signaled. In one example, such indications may be signaled for a particular MV / MVD precision, e.g., such indications may be signaled for 1-pel and / or 4-pel MV / MVD precision. iii. In one example, such an indication may be signaled only when PocDist0 is equal to PocDist1, and Ref0 is the picture that precedes the current picture in display order, and Ref1 is the picture that follows. iv. In one example, such an indication may be signaled only when PocDist0 is equal to PocDist1 and Ref0 is the picture that follows the current picture in display order and Ref1 is the picture that precedes it. e. In one example, whether DMVR and / or other DMVD methods are applied to an SMVD coded block may depend on the coding information of the current block and / or neighboring blocks. i. For example, whether DMVR and / or other DMVD methods are applied to an SMVD coding block may depend on the current block dimensions. ii. For example, whether DMVR and / or other DMVD methods are applied to an SMVD coding block may depend on information in a reference picture, such as a POC. iii. For example, whether DMVR and / or other DMVD methods are applied to an SMVD coding block may depend on the signaled MVD information. 4. DMVR and / or BIO and / or all DMVD methods may be enabled following the same rules for block size. In one example, DMVR and BIO and / or the entire DMVD method and / or the proposed method may be enabled when:

number

number

[0193] FIG. 23 is a block diagram of a video processing device 2300. The device 2300 may be used to implement one or more of the methods described herein. The device 2300 may be implemented in a smartphone, tablet, computer, Internet of Things (IoT) receiver, etc. The device 2300 may include one or more processors 2302, one or more memories 2304, and video processing hardware 2306. The processor 2302 may be configured to implement one or more of the methods described herein. The memory(s) 2304 may be used to store data and code used to implement the methods and techniques described herein. The video processing hardware 2306 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 2302 (e.g., a graphics processor core GPU or other signal processing circuitry).

[0194] 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 of a video from a pixel representation to a corresponding bitstream representation or vice versa. The bitstream representation of a current video block may correspond, for example, to bits that are in the same position or spread across different locations in the bitstream, as defined by the syntax. For example, a macroblock may be coded in terms of a converted coded error residual value, using bits from the header and also other fields in the bitstream.

[0195] It is understood that several techniques have been disclosed that enable the use of the techniques disclosed herein to benefit embodiments of video encoders and decoders that are integrated into video processing devices such as smartphones, laptops, desktops, and similar devices.

[0196] 24A is a flow chart of an example method 2400 of video processing. The method 2400 includes, at 2402, obtaining refined motion information for a current video block of a video by performing a decoder-side motion vector derivation (DMVD) scheme based on at least the weighting parameters, where the weighting parameters are applied to a predictive block in generating a final predictive block for the current video block. The method 2400 includes, at 2404, performing a conversion between the current video block and a bitstream representation of the video using at least the refined motion information and the weighting parameters.

[0197] In some embodiments of the method 2400, a field in the bitstream representation indicates a weighting parameter. In some embodiments of the method 2400, the indication of the weighting parameter is signaled using bi-prediction with a Coding Unit Weights (BCW) technique. In some embodiments of the method 2400, the indication of the weighting parameter is signaled using a weighted prediction technique. In some embodiments of the method 2400, the weighting parameter is derived. In some embodiments of the method 2400, the weighting parameter is derived using a Local Illumination Compensation (LIC) technique. In some embodiments of the method 2400, the weighting parameter may be associated with a reshaping process that maps a set of sample values ​​to another set of sample values. In some embodiments of the method 2400, the DMVD scheme is implemented by applying the weighting parameter to a prediction block of the current video block. In some embodiments of method 2400, the conversion includes calculating a prediction cost function for the current video block by first applying weighting parameters according to bi-prediction with a Coding Unit Weights (BCW) index to the prediction block and then calculating the prediction cost function.

[0198] In some embodiments of method 2400, the transformation includes calculating a prediction cost function for the current video block by first applying weighting parameters according to a weighted prediction scheme to the prediction block and then calculating the prediction cost function. In some embodiments of method 2400, the transformation includes calculating a prediction cost function for the current video block by first applying weighting parameters according to a Local Illumination Compensation (LIC) scheme to the prediction block and then calculating the prediction cost function. In some embodiments of method 2400, the prediction cost function is a gradient function. In some embodiments of method 2400, the prediction cost function is a sum of absolute difference (SAD) cost function. In some embodiments of method 2400, the prediction cost function is a mean-removed sum of absolute difference (MR-SAD) cost function.

[0199] In some embodiments of method 2400, the conversion includes computing Bi-directional Optical flow (BIO) temporal and spatial gradients for the current video block by first applying weighting parameters according to a bi-prediction scheme with a Coding unit Weights (BCW) index to the prediction block and then computing temporal and spatial gradients. In some embodiments of method 2400, the conversion includes computing Bi-directional Optical flow (BIO) temporal and spatial gradients for the current video block by first applying weighting parameters according to a weighted prediction scheme to the prediction block and then computing temporal and spatial gradients.

[0200] In some embodiments of method 2400, the transformation includes computing temporal and spatial gradients of a Bi-directional Optical flow (BIO) scheme for the current video block by first applying weighting parameters according to a Local Illumination Compensation (LIC) scheme to the prediction block and then computing temporal and spatial gradients. In some embodiments of method 2400, the computation of the prediction cost function or the temporal or spatial gradients is performed in the reshaped domain. In some embodiments of method 2400, the reshaping process is disabled for prediction blocks generated with refined motion information for the current video block.

[0201] 24B is a flow chart of an example method 2410 of video processing. The method 2410 includes determining, at 2412, that use of a decoder-side motion vector derivation (DMVD) scheme is disabled for conversion between a current video block and a coded representation of the video due to use of a coding tool for the current video block. The method 2410 includes, at 2414, performing a conversion between the current video block and a bitstream representation of the video based on the determination, where the coding tool includes applying unequal weighting factors to a prediction block of the current video block. In some embodiments of the method 2410, the coding tool is configured to use the weighting factors in the sample prediction process.

[0202] In some embodiments of the method 2410, the coding tool includes a bi-prediction with Coding unit Weights (BCW) mode. In some embodiments of the method 2410, two weighting factors used for the two prediction blocks in the BCW mode are not equal. In some embodiments of the method 2410, the weighting factors are indicated in a field in the bitstream representation of the current video block. In some embodiments, the DMVD scheme includes a decoder-side motion vector refinement (DMVR) coding mode that derives refined motion information based on a prediction cost function. In some embodiments, the DMVD scheme includes a Bi-directional optical flow (BDOF) coding mode that derives refined predictions based on gradient calculations. In some embodiments of the method 2410, the BCW mode used by the current video block includes using fields representing a BCW index and an index of weighting factors, the BCW index not equal to 0.

[0203] In some embodiments of the method 2410, the coding tool includes a weighted prediction mode. In some embodiments of the method 2410, the weighted prediction mode used by the current video block includes applying weighted prediction to at least one of the predictive blocks of the current video block. In some embodiments of the method 2410, the coding tool includes a Local Illumination Compensation (LIC) mode. In some embodiments of the method 2410, the coding tool includes a multiple hypothesis prediction mode. In some embodiments of the method 2410, a first weighting parameter of the first reference picture and a second weighting parameter of the second reference picture are associated with the weighted prediction mode of the current video block, and in response to the first weighting parameter being different from the second weighting parameter, it is determined that the DMVD scheme is disabled for the current video block.

[0204] In some embodiments of method 2410, the first weighting parameter and / or the second weighting parameter are indicated in a field in the bitstream representation having a video unit including the current video block, the video unit including at least one of a picture or a slice. In some embodiments of method 2410, the first linear model parameter of the first reference picture of the current video block and the second linear model parameter of the second reference picture of the current video block are determined to be different from the second linear model parameter, in response to the first linear model parameter differing from the second linear model parameter, and the DMVD scheme is disabled for the current video block.

[0205] 24C is a flow chart of an example method 2420 of video processing. The method 2420 includes determining, at 2422, whether to enable or disable one or more decoder-side motion vector derivation (DMVD) schemes for a current video block based on picture order count (POC) values ​​of one or more reference pictures of the current video block of the video and the POC values ​​of the current picture that includes the current video block. The method 2420 includes performing, at 2424, a conversion between the current video block and a bitstream representation of the video in accordance with the determination.

[0206] In some embodiments of method 2420, determining whether to enable or disable one or more DMVD schemes is based on a relationship between a first POC distance (PocDis0) representing a first distance from a first reference picture of the current video block to the current picture and a second POC distance (PocDis1) representing a second distance from the current picture to a second reference picture of the current video block. In some embodiments of method 2420, the first reference picture is reference picture list 0 of the current video block and the second reference picture is reference picture list 1 of the current video block.

[0207] In some embodiments of the method 2420, PocDist0 is set to the first POC value of the current picture minus the second POC value of the first reference picture, and PocDist1 is set to the third POC value of the second reference picture minus the first POC value of the current picture. In some embodiments of the method 2420, in response to PocDis0 not being equal to PocDis1, one or more DMVD schemes are enabled. In some embodiments of the method 2420, a decision to enable or disable more than one DMVD scheme among the one or more DMVD schemes is based on the same rules applied for PocDis0 and PocDis1. In some embodiments of the method 2420, in response to PocDis0 being equal to PocDis1, one or more DMVD schemes are enabled.

[0208] In some embodiments of the method 2420, in response to PocDis0 multiplied by PocDis1 being less than 0, one or more DMVD schemes are disabled. In some embodiments of the method 2420, in response to PocDis0 not equaling PocDis1, one or more DMVD schemes are disabled. In some embodiments of the method 2420, the one or more DMVD schemes identify two reference blocks during the transformation using a first set of motion vector difference (MVD) for the first reference picture list and a second set of MVD for the second reference picture list. The first set of MVDs is a mirrored version of the second set of MVDs. In some embodiments of the method 2420, the one or more DMVD schemes identify two reference blocks during the transformation using a first set of motion vector difference (MVD) for the first reference picture list and a second set of MVD for the second reference picture list. The second set of MVDs is a mirrored version of the first set of MVDs.

[0209] In some embodiments of the method 2420, the one or more DMVD schemes identify two reference blocks during the transformation using a first set of motion vector difference (MVD) for the first reference picture list and a second set of MVDs for the second reference picture list. The first set of MVDs is a non-mirrored version of the second set of MVDs. In some embodiments of the method 2420, the first set of MVDs is scaled to the second set of MVDs according to PocDis0 and PocDis1. In some embodiments of the method 2420, the first set of MVDs including (MvdX, MvdY) is scaled to the second set of MVDs calculated as follows: (-MvdX*PocDis1 / PocDis0, -MvdY*PocDis1 / PocDis0). In some embodiments of the method 2420, the second set of MVDs is scaled to the first set of MVDs according to PocDis0 and PocDis1. In some embodiments of method 2420, the second set of MVDs including (MvdX, MvdY) are scaled to the first set of MVDs calculated as follows: (-MvdX*PocDis0 / PocDis1, -MvdY*PocDis0 / PocDis1).

[0210] In some embodiments of method 2420, the division operation of the scaled operation is implemented using a lookup table, a multiple operation, or a right-right operation. In some embodiments of method 2420, the one or more DMVD schemes determine, for a current block of a video during DMVD processing, a first set of motion vector differences (MVDs) for a first reference picture list and a second set of MVDs for a second reference picture list based on a POC value of a reference picture of the current video block and a POC value of a current picture that includes the current video block. In some embodiments of method 2420, in response to the first absolute value of PocDis0 being less than or equal to the second absolute value of PocDis1, the first set of MVDs are scaled to generate a second set of MVDs in accordance with PocDis0 and PocDis1. In some embodiments of method 2420, in response to the first absolute value of PocDis0 being greater than or equal to the second absolute value of PocDis1, the first set of MVDs is scaled to generate a second set of MVDs according to PocDis0 and PocDis1.

[0211] In some embodiments of method 2420, in response to the second absolute value of PocDis1 being less than or equal to the first absolute value of PocDis0, the second set of MVDs is scaled to generate a first set of MVDs according to PocDis0 and PocDis1. In some embodiments of method 2420, in response to the second absolute value of PocDis1 being greater than or equal to the first absolute value of PocDis0, the second set of MVDs is scaled to generate a first set of MVDs according to PocDis0 and PocDis1. In some embodiments of method 2420, in response to the two reference pictures including a first reference picture preceding the current picture and a second reference picture following the current picture, the first set of MVDs is mirrored to generate a second set of MVDs, and no scaling is performed to obtain the first set of MVDs or the second set of MVDs. In some embodiments of method 2420, the step of determining whether to enable or disable one or more DMVD schemes is based on a first code of a first picture order count distance (PocDis0) representing a first distance from a first reference picture of the current video block to the current picture, and a second code of a second picture order count distance (PocDis1) representing a second distance from the current picture to a second reference picture of the current video block.

[0212] In some embodiments of the method 2420, the one or more DMVD schemes are enabled in response to a result of multiplying PocDis0 having a first code by PocDis1 having a second code being less than 0. In some embodiments of the method 2420, the one or more DMVD schemes are enabled in response to a result of multiplying PocDis0 having a first code by PocDis1 having a second code being greater than 0. In some embodiments of the method 2420, the one or more DMVD schemes are disabled in response to a first picture order count distance (PocDis0) representing a first distance from a first reference picture of the current video block to the current picture (PocDis1) not being equal to a second picture order count distance (PocDis1) representing a second distance from the current picture to a second reference picture of the current video block.

[0213] In some embodiments of method 2420, the motion information of the first reference picture list is refined using a first set of MVDs and the motion information of the second reference picture list is refined using a second set of MVDs. In some embodiments of method 2420, the first reference picture list is reference picture list 0 and the second reference picture list is reference picture list 1.

[0214] 24D is a flowchart of an example method 2430 of video processing. The method 2430 includes, at 2432, obtaining refined motion information for a current video block of the video by performing a decoder-side motion vector derivation (DMVD) scheme for the current video block, where a symmetric motion vector difference (SMVD) mode is enabled for the current video block. The method 2430 includes, at 2434, performing a conversion between the current video block and a bitstream representation of the video using the refined motion information.

[0215] In some embodiments of the method 2430, the bitstream representation includes a motion vector difference (MVD) of the refined motion information, and the MVD is decoded according to the SMVD mode and further refined before being used to decode the current video block. In some embodiments of the method 2430, in the SMVD mode, a DMVD scheme is used to refine the motion vector difference (MVD) of the refined motion information by changing the motion vector (MV) precision or the MVD precision from N-pel precision to M-pel precision, where N and M are equal to 1 / 16, 1 / 8, 1 / 4, 1 / 2, 1, 2, 4, 8, or 16. In some embodiments of the method 2430, M is less than or equal to N. In some embodiments of the method 2430, the bitstream representation does not include signaling for the motion vector difference (MVD) of the refined motion information in the SMVD mode, and the MVD is generated using the DMVD scheme.

[0216] In some embodiments of the method 2430, Adaptive Motion Vector difference Resolution (AMVR) information is not signaled in the bitstream representation for video blocks coded in SMVD mode, and a motion vector (MV) precision or motion vector difference (MVD) precision of the refinement motion information is derived according to a predefined value. In some embodiments of the method 2430, the MV precision or MVD precision is ¼-pel precision. In some embodiments of the method 2430, the predefined value is signaled in the bitstream representation at a sequence, picture, tile group, slice, tile, video data unit level. In some embodiments of the method 2430, the predefined value depends on the mode information or motion information. In some embodiments of the method 2430, the mode information or motion information includes affine motion information or non-affine motion information.

[0217] FIG. 24E is a flow chart of an example method 2440 of video processing. The method 2440 includes determining, at 2442, whether to enable or disable a decoder-side motion vector derivation (DMVD) scheme for the current video block based on a bitstream representation of a video that includes the current video block, where a symmetric motion vector difference (SMVD) mode is enabled for the current video block. The method 2440 includes obtaining refined motion information for the current video block by performing the DMVD scheme for the current video block after determining, at 2444, that the DMVD scheme is enabled. The method 2440 includes performing, at 2446, a conversion between the current video block and the bitstream representation of the video using the refined motion information.

[0218] In some embodiments of the method 2440, in response to the DMVD scheme being enabled, the motion vector difference (MVD) is not signaled in the bitstream representation. In some embodiments of the method 2440, a field indicating whether the DMVD scheme is enabled or disabled is present in the bitstream representation for one or more of the motion vector (MV) precision or the motion vector difference (MVD) precision. In some embodiments of the method 2440, the one or more of the MV precision or the MVD precision is 1-pel and / or 4-pel precision.

[0219] In some embodiments of method 2440, a field indicating that the DMVD scheme is enabled or disabled is present in the bitstream representation in response to a first picture order count distance (PocDis0) representing a first distance from a first reference picture of the current video block to the current picture being equal to a second picture order count distance (PocDis1) representing a second distance from the current picture to a second reference picture of the current video block, where the first reference picture (Ref0) precedes the current picture in display order and the second reference picture (Ref1) follows the current picture.

[0220] In some embodiments of method 2440, a field indicating whether the DMVD scheme is enabled or disabled is present in the bitstream representation in response to a first picture order count distance (PocDis0) representing a first distance from a first reference picture (Ref0) of the current video block to the current picture being equal to a second picture order count distance (PocDis1) representing a second distance from the current picture to a second reference picture (Ref1) of the current video block, where the second reference picture (Ref1) precedes the current picture in display order and the first reference picture (Ref0) follows the current picture.

[0221] In some embodiments of the method 2440, the DMVD scheme is enabled in the SMVD mode based on coding information of the current video block and / or of one or more neighboring blocks. In some embodiments of the method 2440, the DMVD scheme is enabled in the SMVD mode based on block dimensions of the current video block. In some embodiments of the method 2440, the DMVD scheme is enabled in the SMVD mode based on information related to a reference picture of the current video block. In some embodiments of the method 2440, the information related to the reference picture includes picture order count (POC) information. In some embodiments of the method 2440, the DMVD scheme is enabled in the SMVD mode based on motion vector difference (MVD) information in the bitstream representation. In some embodiments of the method 2440, the one or more DMVD schemes include a decoder-side motion vector refinement (DMVR) scheme. In some embodiments of methods 2430 and 2440, the DMVD scheme includes a decoder-side motion vector refinement (DMVR) scheme. In some embodiments of method 2430, the one or more DMVD schemes include a bi-directional optical flow (BDOF) scheme. In some embodiments of methods 2430 and 2440, the DMVD scheme includes a bi-directional optical flow (BDOF) scheme.

[0222] 24F is a flow chart of an example method 2450 of video processing. The method 2450 includes determining, at 2452, whether a plurality of decoder-side motion vector derivation (DMVD) schemes are enabled or disabled for conversion between the current video block and a bitstream representation of the video based on a rule using block dimensions of a current video block of the video. The method 2450 includes, at 2454, performing a conversion based on the determination.

[0223] In some embodiments of method 2450, the multiple DMVD scheme is determined to be valid in response to (W*H)>=T1 and H>=T2, where W and H are the width and height of the current video block, respectively, and T1 and T2 are rational numbers. In some embodiments of method 2450, T1 is 64 and T2 is 8. In some embodiments of method 2450, the multiple DMVD scheme is determined to be valid in response to H>=T1, and W not equal to T2 or H not equal to T1, where W and H are the width and height of the current video block, respectively, and T1 and T2 are rational numbers. In some embodiments of method 2450, T1 is 8 and T2 is 4.

[0224] In some embodiments of method 2450, the plurality of DMVD schemes are determined to be invalid in response to the first number of samples of the current video block being less than the second number of samples. In some embodiments of method 2450, the plurality of DMVD schemes are determined to be invalid in response to the first number of samples of the current video block being greater than the second number of samples. In some embodiments of method 2450, the second number of samples is 16 luma samples or 32 luma samples or 64 luma samples or 128 luma samples. In some embodiments of method 2450, the plurality of DMVD schemes are determined to be invalid in response to a width of the current video block being less than a value.

[0225] In some embodiments of method 2450, the plurality of DMVD schemes are determined to be disabled in response to the height of the current video block being less than a value. In some embodiments of method 2450, the value is 8. In some embodiments of method 2450, the plurality of DMVD schemes are determined to be disabled in response to the width of the current video block being greater than or equal to a first threshold and / or in response to the height of the current video block being greater than or equal to a second threshold. In some embodiments of method 2450, the width is 128 and the height is 128. In some embodiments of method 2450, the width is 64 or greater and the height is 128, or the width is 128 and the height is 64 or greater. In some embodiments of method 2450, the width is 4 or greater and the height is 128, or the width is 128 and the height is 4 or greater. In some embodiments of method 2450, the first and second thresholds are 64.

[0226] In some embodiments of method 2450, the plurality of DMVD schemes are determined to be invalid in response to a width of the current video block being less than or equal to a first threshold and / or in response to a height of the current video block being less than or equal to a second threshold. In some embodiments of method 2450, the first and second thresholds are 8. In some embodiments of method 2450, the plurality of DMVD schemes include a decoder-side motion vector refinement (DMVR) scheme that derives refined motion information based on a cost function. In some embodiments of method 2450, the plurality of DMVD schemes include a bi-directional optical flow (BDOF) scheme that derives refined motion information based on gradient calculations.

[0227] FIG. 24G is a flow chart of an example method 2460 of video processing. The method 2460 includes determining, at 2462, whether to perform multiple decoder-side motion vector derivation (DMVD) schemes at a sub-block level or a block level for a current video block of a video. The method 2460 includes, after determining that the multiple DMVD schemes are to be performed at the sub-block level, at 2464, obtaining refined motion information for the current video block by performing the multiple DMVD schemes at the same sub-block level for the current video block. The method 2460 includes, at 2466, performing a conversion between the current video block and a bitstream representation of the video using the refined motion information.

[0228] In some embodiments of method 2460, the multiple DMVD schemes include a decoder-side motion vector refinement (DMVR) scheme. In some embodiments of method 2460, the refined motion information is obtained by applying bilateral matching in the DMVD scheme at a sub-block level for the current video block. In some embodiments of method 2460, the multiple DMVD schemes include a bi-directional optical flow (BDOF) coding scheme. In some embodiments of method 2460, a BDOF coding scheme is determined to be enabled or disabled at a sub-block level for the current video block. In some embodiments of method 2460, a BDOF coding scheme is determined to be enabled and the refined motion information is obtained by performing a sample-by-sample refinement of the motion information performed at a sub-block level for the current video block in the BDOF coding scheme.

[0229] In some embodiments of method 2460, the BDOF coding scheme is determined to be enabled or disabled at a sub-block level of the current video block, and a per-sample motion information refinement process in the BDOF coding scheme is determined to be performed at the sub-block level of the current video block. In some embodiments of method 2460, the width and height of the sub-blocks are both equal to 16. In some embodiments of method 2460, the current video block is divided into a plurality of sub-blocks in response to: a first width of the current video block being greater than or equal to a value, or a first height of the current video block being greater than or equal to the value, or the first width being greater than or equal to the value and the first height being greater than or equal to the value.

[0230] In some embodiments of method 2460, each of the plurality of sub-blocks is processed by one or more DMVD schemes in the same manner as a coding block having a size equal to the sub-block size. In some embodiments of method 2460, the value is 64, and in response to the current video block having a first width of 64 and a first height of 128, or a first width of 128 and a first height of 64, the current video block is divided into two sub-blocks, each of the two sub-blocks having a second width and a second height of 64. In some embodiments of method 2460, the value is 64, and in response to the current video block having a first width of 128 and a first height of 128, the current video block is divided into four sub-blocks, each of the four sub-blocks having a second width and a second height of 64.

[0231] In some embodiments of method 2460, in response to the current video block having a first width of N and a first height of 128, or having a first width of 128 and a first height of N, the current video block is not divided into sub-blocks, where N is less than 64. In some embodiments of method 2460, the value is 64, and in response to the current video block having a first width of N and a first height of 128, or having a first width of 128 and a first height of N, the current video block is divided into two sub-blocks, each of which has a second width of N and a second height of 64, or having a second width of 64 and a second height of N.

[0232] In some embodiments of the method 2460, in response to the first width of the current video block being greater than a value, the current video block is split vertically and a second width of the sub-blocks of the current video block is less than or equal to the value. In some embodiments of the method 2460, in response to the first height of the current video block being greater than a value, the current video block is split horizontally and a second height of the sub-blocks of the current video block is less than or equal to the value. In some embodiments of the method 2460, the value is 16. In some embodiments of the method 2460, the second width of the sub-blocks of the current video block is 16. In some embodiments of the method 2460, the second height of the sub-blocks of the current video block is 16. In some embodiments of the method 2460, in response to the first size of the current video block being greater than a first threshold, the current video block is split into a plurality of sub-blocks. In some embodiments of the method 2460, each of the plurality of sub-blocks is processed by one or more DMVD schemes in the same manner as a coding block having a second size equal to the sub-block size.

[0233] In some embodiments of method 2460, each of the multiple sub-blocks has the same size, less than or equal to a first threshold. In some embodiments of methods 2450 and 2460, the current video block is a luma video block. In some embodiments of method 2450, the determining whether to enable or disable the multiple DMVD schemes is performed on the luma video block and shared with associated chroma video blocks. In some embodiments of method 2460, the determining whether to perform the multiple DMVD schemes at a sub-block level is performed on the luma video block and shared with associated chroma video blocks. In some embodiments of method 2460, in response to a height or width of the current video block being less than or equal to a second threshold, it is determined that the current video block is not to be divided horizontally or vertically into the multiple sub-blocks. In some embodiments of method 2460, the first threshold is 1024 and the second threshold is 32.

[0234] In some embodiments of method 2460, the value is predefined for the current video block or signaled at a sequence parameter set (SPS), picture parameter set (PPS), picture, slice, tile group, or tile level. In some embodiments of method 2460, the value or the first threshold or the second threshold depends on coding information of the current video block. In some embodiments of method 2460, the determination of the sub-block size is the same for multiple DMVD schemes. In some embodiments of method 2460, the coding information of the current video block includes a block size or a picture type or a temporal layer index of the current video block. In some embodiments of method 2460, the multiple DMVD schemes of the current video block include all DMVD schemes of the current video block.

[0235] 24H is a flow chart of an example method 2470 of video processing. The method 2470 includes determining, at 2472, whether to enable or disable a decoder-side motion vector derivation (DMVD) scheme for a plurality of components of a current video block of a video. The method 2470 includes, after determining, at 2474, that the DMVD scheme is enabled, obtaining refined motion information for the current video block by performing the DMVD scheme. The method 2470 includes, at 2476, performing a conversion between the current video block and a bitstream representation of the video during the implementation of the DMVD scheme.

[0236] In some embodiments of the method 2470, the step of determining whether to enable or disable the DMVD scheme is performed once and shared by multiple components. In some embodiments of the method 2470, the step of determining whether to enable or disable the DMVD is performed multiple times for multiple components. In some embodiments of the method 2470, the step of determining whether to enable or disable the DMVD is performed first for one component of the multiple components and then performed or shared for one or more remaining components of the multiple components. In some embodiments of the method 2470, the one component is a luma component or a green component. In some embodiments of the method 2470, the step of determining whether to enable or disable the DMVD is performed for one component of the multiple components based on information of the one component. In some embodiments of the method 2470, the one component is a luma component, a chroma component, a green component, a blue component, or a red component.

[0237] Some embodiments may be described using the following clause-based format.

[0238] (Item 1) A video processing method comprising: a processor implementing a decoder-side motion vector derivation (DMVD) scheme for motion vector refinement by deriving parameters based on derivation rules during conversion between a current video block and a bitstream representation of the current video block.

[0239] (Item 2) The technique described in Item 1, wherein the parameters are derived from parameters applied to a final predicted block of the current video block.

[0240] (Item 3) The technique described in Item 1, wherein the parameters are signaled within the bitstream representation.

[0241] (Item 4) The technique described in Item 1, wherein the parameters are derived by the processor.

[0242] (Item 5) The technique according to any one of items 1 to 4, wherein the derivation rule specifies the use of parameters used in deriving a final prediction block for the DMVD method.

[0243] (Item 6) The technique described in Item 5, wherein the transformation includes a step of calculating a prediction cost function for the current video block by first applying one of general bidirectional coding weights or weights of a weighted prediction scheme or weights of a local lighting compensation scheme to the temporal or spatial gradients of a bidirectional optical flow scheme, and then calculating the prediction cost function.

[0244] (Item 7) The technique described in Item 6, wherein the prediction cost function is a gradient function or a sum of absolute difference (SAD) cost function.

[0245] (Item 8) The technique described in Item 2, wherein the parameters are parameters for local lighting compensation of the final predicted block.

[0246] (Item 9) A video processing method, comprising: selectively using a decoder-side motion vector derivation (DMVD) scheme for motion vector refinement based on enablement rules during conversion between a current video block and a bitstream representation of the current video block.

[0247] (Item 10) The technology described in Item 9, wherein the enabling rule specifies that the DMVD scheme is disabled when the transformation uses a general bidirectional coding mode, a local lighting compensation mode, a weighted prediction mode, or a multiple hypothesis prediction mode.

[0248] (Item 11) The technique described in Item 9, wherein the enabling rule specifies use of the DMVD scheme for the current video block, which is a bi-predictive block that uses an uneven picture order count distance.

[0249] (Item 12) The technology described in Item 9, wherein the enabling rule specifies the use of the DMVD method based on a relationship between picture order count distances PocDis0 and PocDis1 representing two directions of bidirectional prediction of the current video block.

[0250] (Item 13) The technology described in Item 12, wherein the enable rule specifies that the DMVD method is to be used if PocDis0=PocDis1.

[0251] (Item 14) The technology described in Item 12, wherein the enabling rule specifies that the DMVD method is to be used if PocDis0 is not equal to PocDis1.

[0252] (Item 15) The technique described in Item 12, wherein the enabling rule specifies that the DMVD scheme is to be used if PocDis0 multiplied by PocDis1 is less than 0.

[0253] (Item 16) The technology described in any of Items 9 to 14, wherein the DMVD method uses List 0 and List 1 as two reference picture lists during the conversion, and List 0 is a mirrored version of List 1.

[0254] (Item 17) The technique described in Item 15, wherein the DMVD method includes using motion vector differences from List 0 and List 1 according to scaling based on PocDis0 and PocDis1 distances.

[0255] (Item 18) The technique described in Item 17, wherein the DMVD method includes using motion vector differences from list 0 to scale the differences from list 1.

[0256] (Item 19) The technique described in Item 17, wherein the DMVD method includes using motion vector differences from list 1 to scale the differences from list 0.

[0257] (Item 20) The technique according to any one of Items 9 to 14, wherein the DMVD method includes using reference pictures according to picture order counts of the reference pictures.

[0258] (Item 21) The technology described in Item 9, wherein the validation rule is based on a dimension of the current video block.

[0259] (Item 22) The technology described in Item 21, wherein the DMVD method includes decoder-side motion vector refinement (DMVR) that is valid when W*H>=T1&&H>=T2, where W and H are the width and height of the current video block, and T1 and T2 are rational numbers.

[0260] (Item 23) The technology described in Item 21, wherein the DMVD method includes a bidirectional optical (BIO) coding method that is valid when W*H>=T1&&H>=T2, where W and H are the width and height of the current video block, respectively, and T1 and T2 are rational numbers.

[0261] (Item 24) The DMVD method is as follows:

number

[0262] (Item 25) The DMVD method is as follows:

number

[0263] (Item 26) A technology described in any of Items 9 to 21, wherein the DMVD method is a decoder-side motion vector refinement (DMVR) method or a bidirectional optical flow (BIO) coding method, and the DMVD method is disabled if the current video block has a width > th1 or a height > th2.

[0264] (Item 27) A video processing technology comprising the step of selectively using a decoder-side motion vector derivation (DMVD) scheme for motion vector refinement by applying the DMVD scheme at a sub-block level based on rules during conversion between a current video block and a bitstream representation of the current video block.

[0265] (Item 28) The technology described in Item 27, wherein the DMVD method is a decoder-side motion vector refinement (DMVR) method or a bidirectional optical flow (BIO) method.

[0266] (Item 29) The technology described in Item 28, wherein the DMVD method is the BIO method, and the rule specifies the applicability of the DMVD method for each subblock.

[0267] (Item 30) The technique described in Item 29, wherein the current video block has a width >= LW or height >= LH, or width*height is greater than a threshold L1, where L1, L, W, and H are integers, and the transformation is performed by dividing the current video block into multiple sub-blocks, which are further processed using the DMVD method.

[0268] (Item 31) The technique described in Item 30, wherein the dividing step includes dividing the current video block horizontally.

[0269] (Item 32) The technique described in Item 30, wherein the dividing step includes dividing the current video block vertically.

[0270] (Item 33) The technique described in any of Items 30 to 32, wherein L is signaled within the bitstream representation at a sequence parameter set level, a picture parameter set level, a picture level, a slice level, a tile group level, or a tile level, or L is signaled implicitly based on the size of the current video block, or the type of picture containing the current video block, or the temporal layer index of the current video block.

[0271] (Item 34) The technique described in any one of items 1 to 33, wherein the DMVD is applied to the current video block depending on the luma or chroma type of the current video block.

[0272] (Item 35) A technique described in any of Items 1 to 34, wherein the conversion uses a DMVD method that is determined based on a decision to use the DMVD method for a block or a different luma or chroma type corresponding to the current video block.

[0273] (Item 36) The technology described in Items 1 to 35, wherein the DMVD method includes a decoder-side motion vector refinement method or a bidirectional optical flow method.

[0274] (Item 37) A video processing technology comprising: a step of using a symmetric motion vector difference codec technology for a current video block; and a step of using a decoder-side motion vector derivation technology during conversion between the current video block and a bitstream representation of the current video block, wherein the decoder-side motion vector derivation technology refines the motion vector of the current video block during the conversion, and the symmetric motion vector difference codec technology uses symmetric motion vector difference derivation; and a step of performing the conversion using the decoder-side motion vector derivation technology.

[0275] (Item 38) The technique described in Item 37, wherein the decoder-side motion vector derivation technique includes decoder-side motion vector refinement.

[0276] (Item 39) The technique described in any of Items 37 to 38, wherein the decoder-side motion vector derivation technique changes the motion vector precision from the N-pel precision used in the symmetric motion vector difference codec technique to M-pel precision, where N and M are integer fractions and N and M are equal to 1 / 16, 1 / 8, 1 / 4, 1 / 2, 1, 2, 4, 8, or 16.

[0277] (Item 40) The technique described in Item 39, wherein M is equal to or less than N.

[0278] (Item 41) A technique described in any of Items 37 to 41, wherein the bitstream representation excludes a motion vector difference indication for the current video block, and the decoder-side motion vector derivation technique is used to derive the motion vector difference.

[0279] (Item 42) A technique described in any of Items 37 to 42, wherein the bitstream representation indicates whether the decoder-side motion vector derivation technique and the symmetric motion vector derivation technique are used for the transformation of the current video block.

[0280] (Item 43) The technique described in any one of items 1 to 42, wherein the conversion includes generating the bitstream representation from the current video block, or generating the current video block from the bitstream representation.

[0281] (Item 44) A video encoding device comprising a processor configured to implement the methods described in one or more of items 1 to 43.

[0282] (Item 45) A video decoding device comprising a processor configured to implement the methods described in one or more of items 1 to 43.

[0283] (Item 46) A computer-readable medium having code stored thereon, the code, when executed, causing a processor to perform the methods described in one or more of items 1 to 43.

[0284] 26 is a block diagram illustrating an example video processing system 2100 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of system 2100. System 2100 may include an input 2102 that receives video content. The video content may be received in raw or uncompressed format, such as 8 or 10 bit multi-component pixel values, or may be in a compressed or encoded format. Input 2102 may represent 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.

[0285] The system 2100 may include a coding component 2104 that may implement various coding or encoding methods described herein. The coding component 2104 may reduce the average bit rate of the video from the input 2102 to the output of the coding component 2104 to generate a coded representation of the video. The coding techniques are therefore sometimes referred to as video compression or video transcoding techniques. The output of the coding component 2104 may be stored or transmitted over a communication connection, as represented by component 2106. The bitstream (or coded) representation received at the input 2102, stored or communicated may be used by component 2108 to generate pixel values ​​or displayable video that are transmitted to the display interface 2110. The process of generating user-viewable video from the bitstream representation is sometimes referred to as video decompression. Additionally, although certain video processing operations are referred to as "coding" operations or tools, it is understood that the coding tools or operations are used in an encoder and that corresponding decoding tools or operations that reverse the results of the coding are performed by a decoder.

[0286] Examples of peripheral bus interfaces or display interfaces may include universal serial bus (USB) or high definition multimedia interface (HDMI) or Displayport, etc. Examples of storage interfaces include serial advanced technology attachment (SATA), PCI, IDE interfaces, etc. The techniques described herein may be implemented in a variety of electronic devices, such as mobile phones, laptops, smartphones, or other devices capable of performing digital data processing and / or video displays.

[0287] Some embodiments of the disclosed techniques include making a decision or determination to enable a video processing tool or mode. In an example, when a video processing tool or mode is enabled, an encoder uses or implements the tool or mode in processing blocks of video, but does not necessarily modify the resulting bitstream based on the use of the tool or mode. That is, conversion of blocks of video to a bitstream representation of video uses the video processing tool or mode when enabled based on the decision or determination. In another example, when a video processing tool or mode is enabled, a decoder processes the bitstream with the knowledge that the bitstream has been modified based on the video processing tool or mode. That is, conversion of a bitstream representation of video to blocks of video is performed using the video processing tool or mode that was enabled based on the decision or determination.

[0288] Some embodiments of the disclosed techniques include making a decision or determination to disable a video processing tool or mode. In an example, when a video processing tool or mode is disabled, an encoder does not use the tool or mode in converting blocks of video to a bitstream representation of the video. In another example, when a video processing tool or mode is disabled, a decoder processes the bitstream with the knowledge that the bitstream has not been modified using the video processing tool or mode based on the decision or determination.

[0289] FIG. 27 is a block diagram illustrating an example video coding system 100 that may utilize the techniques of this disclosure. As shown in FIG. 27, video coding system 100 may include a source device 110 and a destination device 120. Source device 110 may be referred to as a video encoder and generates encoded video data. Destination device 120 may be referred to as a video decoder and may decode the encoded video data generated by source device 110. Source device 110 may include a video source 112, a video encoder 114, and an input / output (I / O) interface 116.

[0290] The video source 112 may include a source such as a video capture device, an interface for receiving video data from a video content provider, and / or a computer graphics system for generating video data, or a combination of such sources. The video data may include one or more pictures. The video encoder 114 encodes the video data from the video source 112 to generate a bitstream. The bitstream may include a sequence of bits that form a coded representation of the video data. The bitstream may include coding pictures and associated data. A coding picture is a coded representation of a picture. The associated data may include sequence parameter sets, picture parameter sets, and other syntax structures. The I / O interface 116 may include a modulator / demodulator (modem) and / or a transmitter. The coded video data may be transmitted directly to the destination device 120 through the network 130a via the I / O interface 116. The coded video data may be stored on a storage medium / server 130b for access by the destination device 120.

[0291] The destination device 120 may include an I / O interface 126 , a video decoder 124 , and a display device 122 .

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

[0293] Video encoder 114 and video decoder 124 may operate in accordance with a video compression standard, such as the High Efficiency Video Coding (HEVC) standard, the Versatile Video Coding (VVM) standard, and other current and / or future standards.

[0294] FIG. 28 is a block diagram illustrating an example of a video encoder 200, which may be the video encoder 114 in the system 100 shown in FIG.

[0295] Video encoder 200 may be configured to perform any or all of the techniques described in this disclosure. In the example of FIG. 28, video encoder 200 includes multiple functional components. The techniques described in this disclosure may be shared among various components of video encoder 200. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.

[0296] Functional components of the video encoder 200 may include a partition unit 201, a prediction unit 202, which may include a mode selection unit 203, a motion estimation unit 204, a motion compensation unit 205, and an intra prediction unit 206, a residual generation unit 207, a transform unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transform unit 211, a reconstruction unit 212, a buffer 213, and an entropy coding unit 214.

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

[0298] Furthermore, some components, such as the motion estimation unit 204 and the motion compensation unit 205, may be highly integrated, but are represented separately in the example of FIG. 28 for purposes of illustration.

[0299] Partition unit 201 partitions a picture into one or more video blocks. Video encoder 200 and video decoder 300 may support a variety of video block sizes.

[0300] The mode selection unit 203 may select one of the coding modes, intra or inter, based on, for example, an error result, and provide the resulting intra- or inter-coded block to the residual generation unit 207 for generating residual block data, and to the reconstruction unit 212 for reconstructing the coded block for use as a reference picture. In some examples, the mode selection unit 203 may select a combination of intra and inter predication (CIIP) mode. In the CIIP mode, prediction is based on an inter prediction signal and an intra prediction signal. The mode selection unit 203 may select a resolution of the motion vector for the block (e.g., sub-pixel or integer pixel precision) in the case of inter prediction.

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

[0302] Motion estimation unit 204 and motion compensation unit 205 may perform different operations on the current video block depending on, for example, whether the current video block is an I slice, a P slice, or a B slice.

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

[0304] In other examples, motion estimation unit 204 may perform bidirectional prediction for the current video block, and motion estimation unit 204 may search a reference picture in list 0 for a reference video block for the current video block and may search a reference picture in list 1 for another reference video block for the current video block. Motion estimation unit 204 may then generate a reference index indicating a reference picture in list 0 or list 1 that contains the reference video block, and a motion vector indicating a spatial displacement between the reference video block and the current video block. Motion estimation unit 204 may output the reference index and the motion vector for the current video block as motion information for the current video block. Motion compensation unit 205 may generate a predictive video block for the current video block based on the reference video block indicated by the motion information of the current video block.

[0305] In some examples, the motion estimation unit 204 may output a complete set of motion information for the decoding process of the decoder.

[0306] In some examples, motion estimation unit 204 may not output a complete set of current video motion information. Rather, motion estimation unit 204 may signal motion information of the current video block by reference to motion information of another video block. For example, motion estimation unit 204 may determine that the motion information of the current video block is sufficiently similar to the motion information of a neighboring video block.

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

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

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

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

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

[0312] In other examples, for the current video block, residual data for the current video block may not be present, eg, in skip mode, and residual generation unit 207 may not perform the subtraction operation.

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

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

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

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

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

[0318] FIG. 29 is a block diagram illustrating an example of a video decoder 300, which may be the video decoder 114 in the system 100 shown in FIG.

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

[0320] In the example of Figure 29, the video decoder 300 includes an entropy decoding unit 301, a motion compensation unit 302, an intra prediction unit 303, an inverse quantization unit 304, an inverse transform unit 305, and a reconstruction unit 306, and a buffer 307. The video decoder 300 may, in some examples, perform a decoding path that is generally reciprocal to the encoding path described with respect to the video encoder 200 (Figure 28).

[0321] The entropy decoding unit 301 may read an encoded bitstream. The encoded bitstream may include entropy encoded video data (e.g., encoded blocks of video data). The entropy decoding unit 301 may decode the entropy encoded video data, and from the entropy decoded video data, the motion compensation unit 302 may determine motion information including motion vectors, motion vector precision, reference picture list index, and other motion information. The motion compensation unit 302 may determine such information, for example, by implementing AMVP and merge mode.

[0322] The motion compensation unit 302 may generate the motion compensated blocks by performing interpolation, possibly based on an interpolation filter. An identifier of the interpolation filter to be used with sub-pixel accuracy may be included in a syntax element.

[0323] The motion compensation unit 302 may use an interpolation filter, such as that used by video encoder 200 during encoding of the video block, to calculate sub-integer pixel interpolated values ​​of the reference block. The motion compensation unit 302 may determine the interpolation filter used by video encoder 200 according to received syntax information and generate the predictive block using the interpolation filter.

[0324] The motion compensation unit 302 may use some of the syntax information to determine the size of the blocks used to code a frame and / or slice of the coded video sequence, partition information describing how each macroblock of a picture of the coded video sequence is partitioned, a mode indicating how each partition is coded, one or more reference frames (and reference frame lists) for each inter-coded block, and other information for decoding the coded video sequence.

[0325] The intra prediction unit 303 may form a prediction block from spatially neighboring blocks, e.g., using an intra prediction mode received in the bitstream. The inverse quantization unit 303 inverse quantizes, or dequantizes, the quantized video block coefficients provided in the bitstream and decoded by the entropy decoding unit 301. The inverse transform unit 303 applies an inverse transform.

[0326] Reconstruction unit 306 may add the residual blocks with corresponding prediction blocks generated by motion compensation unit 202 or intra prediction unit 303 to form decoded blocks. If desired, a deblocking filter may also be applied to filter the decoded blocks to remove blocking artifacts. The decoded video blocks are then stored in a buffer 307 to provide reference blocks for later motion compensation / intra prediction, and to generate decoded video for presentation on a display device.

[0327] From the foregoing, it will be appreciated that, although specific embodiments of the technology of the present disclosure have been described herein for purposes of illustration, various modifications may be made without departing from the scope of the invention. Accordingly, the technology of the present disclosure is not to be limited, except as by the appended claims.

[0328] 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 structures disclosed herein, and structural equivalents thereof, or in any combination of one or more of them. 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 device. The computer-readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, a composition of matter affecting a machine-readable propagated signal, or one or more combinations thereof. The term "data processing device" encompasses any device, apparatus, and machine that processes data, including, by way of example, a programmable processor, a computer, or multiple processors or computers. In addition to hardware, a device can include code that creates an execution environment for a subject computer program, 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, generated to encode information for transmission to appropriate receiver equipment.

[0329] 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 a stand-alone program or 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 part of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in several associated files (e.g., a file that stores one or more modules, subprograms, or portions of code). A computer program can be deployed to be executed on one computer or on several computers, located at one site or distributed at several sites and interconnected by a communication network.

[0330] The processes and logic flows described herein may be performed by one or more programmable processors executing one or more computer programs that perform functions by operating on input data and generating output. The processes and logic flows may be performed by, and devices may be implemented as, special purpose logic circuitry, such as a field programmable gate array (FPGA) or application specific integrated circuit (ASIC).

[0331] Processors suitable for executing a computer program include, by way of example, both general purpose and special purpose microprocessors, and any one or more processors of any kind of digital computer. Typically, a processor receives 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. Typically, a computer also includes one or more mass storage devices, such as magnetic, magneto-optical, or optical disks, for storing data, or is operatively coupled to receive data from or transfer data to them, or both. However, a computer need not have such devices. Non-transitory computer-readable media suitable for storing computer program instructions and data include all types of non-volatile memory, media, and memory devices, including, by way of example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices, magnetic disks, such as internal hard disks or removable disks, magneto-optical disks, and CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.

[0332] Although the present specification contains a number of specificities, these should not be considered as limitations on the scope of any subject matter or what may be claimed, but rather as descriptions of features specific to particular embodiments of a particular technology. Certain features described herein in the context of separate implementations may also be combined in a single implementation. 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 initially claimed as such, one or more features from a claimed combination may in some cases be separated from the combination, and the claimed combination may be directed to a subcombination or a variation of the subcombination.

[0333] Similarly, although operations are shown in a particular order in the figures, this should not be understood to require that such operations be performed in the particular order shown, or sequentially, to achieve desirable results, and further, the separation of various system components in the embodiments described herein should not be understood to require such separation in all embodiments.

[0334] Only a few implementations and examples have been described; other implementations, extensions, and variations may be made based on what is described and shown herein. [Explanation of symbols]

[0335] 2100 System 2102 Input 2104 Coding Component 2106, 2108 Components 2110 Display Interface

Claims

1. 1. A video processing method comprising the steps of: determining whether to enable or disable a first scheme for a current video block of a video based on information of a first color component of the current video block without using information of a second color component of the current video block, the first scheme being used to derive refinement motion information based on a cost between at least one reference sample of reference picture list 0 and at least one reference sample of reference picture list 1; in response to determining that the first scheme is enabled, obtaining refined motion information for the first color component and refined motion information for the second color component; performing a conversion between the current video block and the video bitstream based on refined motion information of the first color component and refined motion information of the second color component; The method includes:

2. The method of claim 1 , wherein the first color component comprises a luma component.

3. The method of claim 1 , wherein the second color component comprises at least one chroma component.

4. The method of claim 1 , wherein the second color component includes at least one of chroma component Cb or chroma component Cr.

5. The method of claim 1 , wherein the first color component comprises a green component.

6. The method of claim 1 , wherein the second color component includes at least one of a blue component or a red component.

7. 2. The method of claim 1, wherein the determining for the current video block is performed once based on information of the first color component, and a result of the determining is shared by the first color component and the second color component.

8. The method of claim 1 , wherein the first scheme includes a decoder-side motion vector refinement tool.

9. the decoder-side motion vector refinement tool operates at a sub-block level; 9. The method of claim 8, wherein when the width or height of the current video block is greater than 16, the current video block is divided into multiple sub-blocks with a size of 16xH, Wx16, or 16x16, where H is the height of the current video block and W is the width of the current video block.

10. The method of claim 1 , wherein the transforming comprises encoding the current video block into the bitstream.

11. The method of claim 1 , wherein the converting comprises decoding the current video block from the bitstream.

12. 16. An apparatus for processing video data, comprising: a processor; and a non-transitory memory having instructions that, when executed by the processor, cause the processor to: determining whether to enable or disable a first scheme for a current video block of a video based on information of a first color component of the current video block without using information of a second color component of the current video block, the first scheme being used to derive refinement motion information based on a cost between at least one reference sample of reference picture list 0 and at least one reference sample of reference picture list 1; in response to determining that the first scheme is enabled, obtaining refined motion information for the first color component and refined motion information for the second color component; performing a conversion between the current video block and the video bitstream based on the refined motion information of the first color component and the refined motion information of the second color component; device.

13. A non-transitory computer-readable storage medium storing instructions, the instructions causing a processor to: determining whether to enable or disable a first scheme for a current video block of a video based on information of a first color component of the current video block without using information of a second color component of the current video block, the first scheme being used to derive refinement motion information based on a cost between at least one reference sample of reference picture list 0 and at least one reference sample of reference picture list 1; in response to determining that the first scheme is enabled, obtaining refined motion information for the first color component and refined motion information for the second color component; performing a conversion between the current video block and the video bitstream based on the refined motion information of the first color component and the refined motion information of the second color component; A non-transitory computer-readable storage medium.

14. A method for storing a bitstream of video, the method comprising: determining whether to enable or disable a first scheme for a current video block of a video based on information of a first color component of the current video block without using information of a second color component of the current video block, the first scheme being used to derive refinement motion information based on a cost between at least one reference sample of reference picture list 0 and at least one reference sample of reference picture list 1; in response to determining that the first scheme is enabled, obtaining refined motion information for the first color component and refined motion information for the second color component; generating the bitstream based on the current video block based on refined motion information of the first color component and refined motion information of the second color component; storing the bitstream on a non-transitory computer readable recording medium; The method includes:

Citation Information

Cited By

  • Selective use of coding tools in video processing

    US12348706B2

  • Decoder side motion derivation based on processing parameters

    US12382085B2

  • Selective application of decoder side refining tools

    US12621481B2

  • Interaction between MV precisions and MV difference coding

    US12764300B2