Restricting tool usage according to reference picture type

By determining coding tool applicability based on reference picture type and characteristics, the method optimizes video decoding, addressing inefficiencies in existing technologies and enhancing video quality.

JP7572136B2Active Publication Date: 2024-10-23DOUYIN VISION CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023121183
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-07-27
Filing Date
2023-07-26
Publication Date
2024-10-23
Estimated Expiration
2040-07-24

AI Technical Summary

Technical Problem

Existing video coding technologies face challenges in efficiently utilizing reference pictures for video transformation, particularly in determining the applicability of coding tools based on the type of reference picture, which affects the quality of decoded video.

Method used

The method involves determining the applicability of coding tools such as bidirectional optical flow (BDOF), decoder-side motion vector refinement (DMVR), and merge mode motion vector difference (MMVD) based on the type of reference picture, including its resolution and picture order count (POC) distance, to refine motion information and improve video decoding.

Benefits of technology

This approach enhances the quality of decompressed video by optimizing the use of coding tools based on reference picture characteristics, leading to improved video decoding efficiency and quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007572136000049
    Figure 0007572136000049
  • Figure 0007572136000050
    Figure 0007572136000050
  • Figure 0007572136000051
    Figure 0007572136000051
Patent Text Reader

Abstract

To provide a method of processing a video.SOLUTION: A method includes the steps of: determining, for conversion between a current video block of a video including multiple video blocks and coded representation of the video, and from types of reference pictures used for the conversion, applicability of a coding tool to the current video block; and performing the conversion based on the determination. The method may be performed by a video decoder, a video encoder, or a video transcoder.SELECTED DRAWING: Figure 14
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This document relates to video and image coding and decoding technologies.

[0002] CROSS-REFERENCE TO RELATED APPLICATIONS This application is a divisional application of Patent Application No. 2022-503412 based on International Patent Application No. PCT / CN2020 / 104087 filed on July 24, 2020. The above international patent application claims priority to and the benefit of International Patent Application No. PCT / CN2019 / 098068 filed on July 27, 2019. All of the above patent applications are incorporated herein by reference in their entirety. [Background technology]

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

[0004] The disclosed techniques may be used by any embodiment of a video or image decoder or encoder in which reference pictures are used in video coding or decoding.

[0005] In one example aspect, a method of processing video is disclosed that includes determining applicability of a coding tool for a conversion between a current video block of a current picture of a video and a coded representation of the video based on a type of a reference picture used for the conversion, the type of the reference picture being based on at least 1) whether the reference picture is a short-term reference picture or a long-term reference picture, 2) a resolution of the reference picture or the current picture, or 3) a picture order count (POC) distance of the reference picture to the current picture.

[0006] In another exemplary aspect, another method of processing video is disclosed, the method including: determining applicability of a bidirectional optical flow (BDOF) coding tool or a decoder-side motion vector refinement (DMVR) tool for a conversion between a current video block of a video and a coded representation of the video based on a type of reference picture used for the conversion, and performing the conversion based on the determination, where using the BDOF coding tool, one or more initial predictions are refined based on optical flow calculations, and using the DMVR coding tool, motion information of the current video block is refined with a predictive block of the current video block, and the type of the reference picture is based on at least 1) whether the reference picture is a short-term reference picture or a long-term reference picture, 2) a resolution of the reference picture or the current picture, or 3) a picture order count (POC) distance of the reference picture to the current picture.

[0007] In another exemplary aspect, another method of processing video is disclosed, the method including: performing a conversion between a current video block of a current picture of a video and a coded representation of the current video block using merge mode motion vector difference (MMVD) coding, a merge candidate being selected to be used as a base merge candidate and refined with motion vector difference (MVD) information without scaling the MVD information, the base merge candidate being a bi-directional motion vector, and an MVD for one prediction direction being set equal to an MVD included in the coded representation, and another MVD for another prediction direction being set equal to or opposite to the MVD included in the coded representation based on a coding condition of the video.

[0008] In another exemplary aspect, another method of processing video is disclosed that includes performing a transformation between a current video block of a current picture of a video and a coded representation of the current video block using merge mode motion vector difference (MMVD) coding, where a merge candidate is selected to be used as a base merge candidate and refined with motion vector difference (MVD) information, the coded representation conforming to a rule that specifies that a first MVD value for a first prediction direction is included in the coded representation.

[0009] In yet another exemplary aspect, the above-described method may be implemented by a video encoder device comprising a processor.

[0010] In yet another exemplary aspect, the above-described methods may be implemented by a video decoder device comprising a processor.

[0011] In yet another exemplary aspect, the methods may be embodied in the form of processor executable instructions and stored on a computer readable program medium.

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

[0013] [Figure 1] FIG. 1 shows an example of bilateral matching. [Diagram 2] FIG. 2 shows an example of template matching. [Diagram 3] FIG. 3 shows an example of unilateral motion estimation (ME) in frame rate up-conversion (FRUC). [Figure 4] FIG. 4 shows an example of an optical flow trajectory. [Figure 5A] Figure 5A shows an example of bidirectional optical flow without block extension. [Figure 5B] Figure 5B shows an example of bidirectional optical flow without block extension. [Figure 6] FIG. 6 shows an example of two-way matching using a six-point search. [Figure 7] FIG. 7 shows examples of an adaptive integer search pattern (left) and a half-sample search pattern (right). [Figure 8] FIG. 8 shows an example of integer positions where a parametric error surface fit is performed. [Figure 9] FIG. 9 shows an example of merge with motion vector difference (MMVD) search points. [Figure 10] FIG. 10 shows an example of a sub-block MV VSB and a pixel ΔV(i,j) (red arrow). [Figure 11] FIG. 11 is an exemplary illustration of a symmetric MVD mode. [Figure 12]FIG. 12 shows an example of mixed use of STRP and LTRP. [Figure 13A] FIG. 13A is a block diagram of an example hardware platform that may be used to implement the techniques described in this document. [Figure 13B] FIG. 13B is a block diagram of an example hardware platform that may be used to implement the techniques described herein. [Figure 14] FIG. 14 is a flowchart of an exemplary method of video processing consistent with some implementations of the disclosed technology. [Figure 15A] FIG. 15A illustrates a flowchart of an exemplary method for video processing according to some implementations of the disclosed technology. [Figure 15B] FIG. 15B illustrates a flowchart of an exemplary method for video processing according to some implementations of the disclosed technology. [Figure 15C] FIG. 15C illustrates a flowchart of an exemplary method for video processing according to some implementations of the disclosed technology. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] This document provides various techniques that may be used by a decoder of an image or video bitstream to improve the quality of the decompressed or decoded digital video or image. For simplicity, the term "video" is used herein to include both a series of images (traditionally called video) and individual images. Additionally, video encoders may also implement these techniques during the encoding process to reconstruct decoded frames that are used for further encoding.

[0015] Section headings are used in this document for ease of understanding and do not limit the embodiments and techniques to the corresponding section, thus, embodiments from one section can be combined with embodiments from other sections.

[0016] 1. Overview

[0017] This document relates to video coding techniques. In particular, palette coding using base color based representation in video coding. It may be applied to existing video coding standards such as HEVC or standards to be finalized (Versatile Video Coding). It may also be applicable to future video coding standards or video codecs.

[0018] 2. Initial Considerations

[0019] Video coding standards have evolved primarily through the development of well-known ITU-T and ISO / IEC standards. ITU-T created H.261 and H.263, ISO / IEC created MPEG-1 and MPEG-4 Visual, and the two organizations jointly created H.262 / MPEG-2 Video, H.264 / MPEG-4 Advanced Video Coding (AVC), and H.265 / HEVC standards. Starting with H.262, video coding standards have been based on a hybrid video coding structure in which temporal prediction and transform coding are utilized. To explore future video coding technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, many new methods have been adopted by JVET and put into reference software named the Joint Exploration Model (JEM). In April 2018, the VCEG (Q6 / 16) and ISO / IEC JTC1 SC29 / WG11 (MPEG) launched the Joint Video Expert Team (JVET) to work on the VVC standard, which aims to reduce the bitrate by 50% compared to HEVC.

[0020] The latest version of the VVC draft, namely Versatile Video Coding (Draft 4), can be found at:

[0021] http: / / phenix.it-sudparis.eu / jvet / doc_end_user / current_document.php?id=5755

[0022] The latest reference software for VVC, designated VTM, can be found at:

[0023] https: / / vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM / tags / VTM-5.0

[0024] 2.1 Pattern matching motion vector derivation The Pattern matched motion vector deviation (PMMVD) mode is a special merging mode based on the Frame-Rate Up Conversion (FRUC) technique, in which the motion information of blocks is not signaled but derived at the decoder side.

[0025] If the merge flag is true, the FRUC flag is signaled for the CU. If the FRUC flag is false, the merge index is signaled and the normal merge mode is used. If the FRUC flag is true, an additional FRUC mode flag is signaled to indicate which method (bidirectional matching or template matching) should be used to derive the motion information of the block.

[0026] On the encoder side, the decision to use FRUC merging mode for a CU is made based on RD cost selection in the same way as for normal merging candidates. That is, two matching modes (bidirectional matching and template matching) are both checked for the CU using RD cost selection. The one that leads to the smallest cost is further compared with other CU modes. If the FRUC matching mode is the most efficient mode, the FRUC flag is set to true for the CU and the associated matching mode is used.

[0027] The motion derivation process in FRUC merge mode has two steps. A CU-level motion search is performed first, followed by sub-CU-level motion refinement. At the CU level, an initial motion vector is derived for the whole CU based on bidirectional matching or template matching. First, a list of MV candidates is generated, and the candidate that leads to the minimum matching cost is selected as the starting point for further CU-level refinement. Then, a local search based on bidirectional matching or template matching around the starting point is performed, and the MV result with the minimum matching cost is taken as the MV for the whole CU. Subsequently, starting from the derived CU motion vector, the motion information is further refined at the sub-CU level.

[0028] For example, the following derivation process is performed for W×H CU motion information derivation. In the first step, the MV of the whole W×H CU is derived. In the second step, the CU is further split into M×M sub-CUs. The value of M is calculated as (16), and D is a predefined splitting depth, which is set to 3 by default in JEM. Then, the MV of each sub-CU is derived.

number

[0029] As shown in Fig. 1, bidirectional matching is used to derive the motion information of the current CU by finding the closest matching between two blocks along the motion trajectory of the current CU in two different reference pictures. Assuming a continuous motion trajectory, the motion vectors MV0 and MV1 pointing to the two reference blocks shall be proportional to the temporal distances between the current picture and the two reference pictures, i.e., TD0 and TD1. As a special case, when the current picture is temporally located between the two reference pictures and the temporal distances from the current picture to the two reference pictures are the same, the bidirectional matching becomes the mirror-based bidirectional MV.

[0030] As shown in FIG. 2, template matching is used to derive the motion information of the current CU by finding the closest match between a template in the current picture (the upper and / or left neighboring block of the current CU) and a block in the reference picture (the same size as the template). Except for the aforementioned FRUC merge mode, template matching is also applied to the AMVP mode. In JEM, as is done in HEVC, there are two candidates in AMVP. A new candidate is derived using the template matching method. If the newly derived candidate by template matching is different from the first existing AMVP candidate, it is inserted into the first part of the AMVP candidate list, and the list size is set to 2 (meaning deleting the second existing AMVP candidate). When applied to the AMVP mode, only the CU level search is applied.

[0031] · CU level MV candidate set The MV candidates configured at the CU level consist of the following: (i) If the CU is currently in AMVP mode, the original AMVP candidate (ii) All merge candidates (iii) Multiple MVs in an interpolated MV field (iv) the upper adjacent vector and the left adjacent vector

[0032] When using bidirectional matching, each valid MV of the merge candidate is used as input to generate MV pairs under the assumption of bidirectional matching. For example, one of the valid MVs of the merge candidate is (MVa, refa) in reference list A, and the reference picture refb of its paired bidirectional MV is found in another reference list B, such that refa and refb are temporally on different sides of the current picture. If there is no such refb in reference list B, refb is determined as a different reference from refa, whose temporal distance with the current picture is the smallest one in list B. refb is derived by scaling MVa based on the temporal distance between the current picture and refa.

[0033] The four MVs from the interpolated MV field are also added to the candidate list at the CU level. More specifically, the interpolated MVs at positions (0,0), (W / 2,0), (0,H / 2), and (W / 2,H / 2) of the current CU are added.

[0034] When applying FRUC in AMVP mode, the original AMVP candidates are also added to the CU-level MV candidate set.

[0035] At the CU level, up to 15 MVs for an AMVP CU and up to 13 MVs for a merged CU are added to the candidate list.

[0036] Sub-CU level MV candidate set The MV candidates configured at the sub-CU level consist of the following: (i) MV determined from CU-level searches (ii) Top, left, top-left, and top-right adjacent MVs (iii) A scaled version of the collocated MV of the reference picture (iv) Maximum ATMVP candidates (v) Up to four STMVP candidates

[0037] The scaled MV from the reference picture is derived as follows: All reference pictures in both lists are traversed. The MV at the co-located position of the sub-CU in the reference picture is scaled to the reference of the start CU level MV.

[0038] The ATMVP and STMVP candidates are limited to the four initial candidates.

[0039] At the sub-CU level, a maximum of 17 MVs are added to the candidate list.

[0040] -Generation of Interpolated MV Fields Before coding a frame, an interpolated motion field is generated for the entire image based on unidirectional ME, and then the motion field can be used as a CU-level or sub-CU-level MV candidate later.

[0041] First, the motion field of each reference picture in both reference lists is traversed at the 4x4 block level. For each 4x4 block, a motion is associated with the block passing through the 4x4 block of the current picture (as shown in Fig. 3), and if the block is not assigned any interpolated motion, the motion of the reference block is scaled to the current picture according to the temporal distances TD0 and TD1 (in a manner similar to the MV scaling of TMVP in HEVC), and the scaled motion is assigned to the block of the current frame. If the 4x4 block is not assigned a scaled MV, the motion of the block is marked as unavailable in the interpolated motion field.

[0042] FIG. 3 shows an example of a unidirectional ME in FRUC.

[0043] Interpolation and matching costs If the motion vectors point to fractional sample positions, motion compensated interpolation is required. To reduce complexity, bi-linear interpolation is used for both bidirectional matching and template matching instead of the usual 8-tap HEVC interpolation.

[0044] The calculation of matching cost is slightly different in different steps. When selecting a candidate from the candidate set at the CU level, the matching cost is the absolute sum difference (SAD) of two-way matching or template matching. After the starting MV is determined, the matching cost C of two-way matching in the sub-CU level search is calculated as follows:

number

[0045] where w is a weighting factor empirically set to 4, and MV and MV S denote the current MV and the starting MV, respectively. The SAD is still used as the matching cost for template matching in the sub-CU level search.

[0046] In FRUC mode, MV is derived using only luma samples. The derived motion is used for both luma and chroma for MC inter prediction. After the MV is determined, the final MC is performed using an 8-tap interpolation filter for luma and a 4-tap interpolation filter for chroma.

[0047] ·MV refinement MV refinement is a pattern-based MV search with bidirectional matching cost or template matching cost criterion. Two search patterns are supported in JEM: - unrestricted center-based diamond search (UCBDS) and adaptive cross search for MV refinement at CU level and sub-CU level, respectively. For both CU level and sub-CU level MV refinement, MV is directly searched with 1 / 4 luma sample MV precision, followed by 1 / 8 luma sample MV refinement. The search range of MV refinement for CU and sub-CU steps is set equal to 8 luma samples.

[0048] ·Selection of prediction direction in template matching FRUC merge mode In bidirectional matching merge mode, bi-prediction is always applied since the motion information of a CU is derived based on the closest match between two blocks along the motion trajectory of the current CU in two different reference pictures. There is no such restriction in template matching merge mode. In template matching merge mode, the encoder can choose between uni-prediction from list0, uni-prediction from list1, or bi-prediction for the CU. The selection is based on the cost of template matching as follows: costBi<=factor*min In the case of (cost0, cost1), Bi-prediction is used; Otherwise, if cost0<=cost1, Bi-prediction from list0 is used; Otherwise, Uni-prediction from list1 is used;

[0049] where cost0 is the SAD of list0 template matching, cost1 is the SAD of list1 template matching, and costBi is the SAD of bi-predictive template matching. The value of factor is equal to 1.25, which means that the selection process is biased towards bi-prediction.

[0050] The inter prediction direction selection only applies to the CU level template matching process.

[0051] 2.2 Hybrid Intra and Inter Prediction In JVET-L0100, multi-hypothesis prediction is proposed, where hybrid intra- and inter-prediction is one method to generate multiple hypotheses.

[0052] When multi-hypothesis prediction is applied to improve intra mode, the multi-hypothesis prediction combines one intra prediction and one merge index prediction. In merge CU, one flag is signaled for merge mode to select intra mode from intra candidate list if the flag is true. For luma component, intra candidate list is derived from four intra prediction modes including DC, planar, horizontal, and vertical modes, and the size of intra candidate list can be 3 or 4 depending on the shape of the block. If the CU width is greater than twice the CU height, the horizontal mode excludes the list of intra modes, and if the CU height is greater than twice the CU width, the vertical mode is removed from the list of intra modes. 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 components, DM is always applied without extra signal. The weighting for combining predictions is described as follows: If DC or planar mode is selected, or if the CB width or height is less than 4, equal weights are applied. For a CB whose width and height are 4 or more, when the horizontal / vertical mode is selected, a CB is first divided vertically / horizontally into 4 equal area regions. Each weighting set is (w_intra i ,w_inter i ) and applied to the corresponding region, where i is from 1 to 4, and (w_intra1,w_inter1)=(6,2), (w_intra2,w_inter2)=(5,3), (w_intra3,w_inter3)=(3,5), and (w_intra4,w_inter4)=(2,6). (w_intra1,w_inter1) is the region closest to the reference sample, and (w_intra4,w_inter4) is the region farthest from the reference sample. Then, the joint prediction can be calculated by summing the two weighted predictions and right shifting 3 bits. Furthermore, the intra prediction mode of the intra hypothesis of the predictor can be saved for reference to the next neighboring CU.

[0053] 2.3 Bidirectional Optical Flow First, motion compensation is performed to generate the first prediction (for each prediction direction) of the current block. The first prediction is used to derive spatial gradients, temporal gradients, and optical flow for each subblock / pixel in the block, and then used to generate the second prediction, i.e., the final prediction for the subblock / pixel. The details are as follows:

[0054] Bidirectional Optical Flow (BIO, also known as BDOF) is a sample-by-sample motion refinement performed on top of block-by-block motion compensation for bidirectional prediction. Sample-level motion refinement does not use signaling.

[0055] FIG. 4 shows an example of an optical flow trajectory.

[0056] I (k) Let be the luma value from reference k (k=0,1) after block motion compensation, and δI (k) / δx, δI (k) / δy, respectively, I (k) Let the horizontal and vertical components of the gradient be the motion vector field (ν x ,ν y ) is given by the following equation:

number

[0057] Combining this optical flow equation with Hermite interpolation of the motion trajectory of each sample, we obtain the function value I (k) and the differential value δI (k) / δx, δI (k) We obtain a unique third-order polynomial that fits both the σ and σ of the σ and σ. The value of this polynomial at t=0 is the BIO prediction.

number

[0058] Here, τ0 and τ1 denote the distances to the reference frames as shown in Figure 4. The distances τ0 and τ1 are calculated based on the POC for Ref0 and Ref1. τ0=POC(current)-POC(Ref0), τ1=POC(Ref1)-POC(current) If both predictions come from the same time direction (both from the past or both from the future), their signs are different (i.e., τ0·τ1≦0). In this case, BIO is applied only if the predictions are not from the same time moment (i.e., τ0 ≠ τ1) and both referenced regions have non-zero motion (MV x0 ,MV y0 ,MV x1 ,MV x1 ≠0), and the block motion vector is proportional to the temporal distance (MV x0 / MV x1 =MV y0 / MV y1 =-τ0 / τ1).

[0059] Motion vector field (ν x ,ν y ) is determined by minimizing the difference Δ between the values ​​at points A and B (the intersection of the motion trajectory and the reference frame plane in Figure 4). The model uses only the first linear term of a local Taylor expansion for Δ.

number

[0060] All values ​​in Equation 5 depend on the sample position (i',j'), which has been omitted from the notation so far. Assuming that the motion is consistent in the local surrounding area, we minimize Δ within a (2M+1) × (2M+1) square window Ω centered on the currently predicted point (i,j), where M is equal to 2.

number

[0061] For this optimization problem, JEM uses a simplified approach that first minimizes vertically and then horizontally, resulting in:

number

number

[0062] Here, it is as follows:

number

[0063] To avoid division by zero or very small values, regularization parameters r and m are introduced in Equations 7 and 8.

number

number

[0064] Here, d denotes the bit depth of the video samples.

[0065] To keep the memory access of BIO the same as that of normal bi-predictive motion compensation, all the prediction values ​​and gradient values, I (k) , δI (k) / δx, δI (k) In Equation 9, a (2M+1) × (2M+1) square window Ω is centered on the current prediction point at the boundary of the prediction block, and it is necessary to access positions outside the block (as shown in Figure 5A). In JEM, I (k) , δI (k) / δx, δI (k)The / δy value is set equal to the closest available value inside the block. For example, this can be implemented as padding, as shown in FIG. 5B.

[0066] Figures 5A and 5B show an example of extending a BIO w / o block, where Figure 5A shows the access location outside the block, and Figure 5B shows the padding used to avoid extra memory accesses and computations.

[0067] In BIO, it is possible to refine the motion field of each sample. To reduce the computational complexity, a block-based design of BIO is used in JEM. The motion refinement is calculated based on 4 × 4 blocks. In block-based BIO, the s in Equation 9 of all samples in the 4 × 4 block is n The values ​​of are summed up, and then the summed value s n To derive the motion vector offset for a 4×4 block, the following equation is used for the derivation of the block-based BIO:

number

[0068] where b k denotes the set of samples belonging to the k-th 4 × 4 block of the prediction block. n is ((s n ,b k )>>>4) to derive the associated motion vector offsets.

[0069] The MV regiment of BIO may be unreliable due to noise or irregular motion. Therefore, in BIO, the size of the MV regiment is clipped to a threshold value of BIO. The threshold value is determined based on whether the reference pictures of the current picture are all from one direction or not. If all the reference pictures of the current picture are from one direction, the value of the threshold is 12×2 14-d otherwise, 12 × 213-d is set to.

[0070] The gradients for BIOs are calculated simultaneously with the motion compensated interpolation using arithmetic consistent with the HEVC motion compensation process (2D separable FIR). The inputs of this 2D separable FIR are the same reference frame samples as for the motion compensation process according to the fractional part of the block motion vector and the fractional position (fracX, fracY). If the horizontal gradient δI / δx signal is first vertically interpolated using BIOfilterS corresponding to fractional position fracY with a de-scaling shift of d-8, then a gradient filter BIOfilterG is applied in the horizontal direction corresponding to fractional position fracX with a de-scaling shift of 18-d. For the vertical gradient δI / δy, first the gradient filter is applied vertically using BIOfilterG corresponding to fractional position fracY with a de-scaling shift of d-8, then the signal displacement is performed using the horizontal BIOfilterS corresponding to fractional position fracX with a de-scaling shift of 18-d. The length of the interpolation filters for gradient calculation BIOfilterG and signal displacement BIOfilterF is shorter (6 taps) to maintain a reasonable complexity. Table 1 shows the filters used for gradient calculation for different fractional positions of block motion vectors in BIO. Table 2 shows the interpolation filters used for prediction signal generation in BIO. Table 1: Filters for gradient calculation in BIO [Table 1] Table 2: Interpolation filters for generating predicted signals in BIO [Table 2]

[0071] In JEM, BIO is applied to all bi-predictive blocks where the two predictions are from different reference pictures. When LIC is enabled for a CU, BIO is disabled.

[0072] In JEM, OBMC is applied to a block after the normal MC process. To reduce computational complexity, BIO is not applied during the OBMC process. That is, BIO is only applied when the block uses its own MV in the MC process, and is not applied in the MC process when the block uses the MV of the neighboring block in the OBMC process.

[0073] A two-stage early termination method is used to conditionally disable the BIO operation depending on the similarity between the two predicted signals. Early termination is first applied at the CU level and then at the sub-CU level. Specifically, the proposed method first calculates the SAD between the L0 and L1 predicted signals at the CU level. Considering that BIO is only applied to luma, it is necessary to calculate the SAD by considering only luma samples. If the SAD at the CU level is below a predefined threshold, the BIO process is completely disabled for the entire CU. The CU-level threshold is set to 2 samples per sample. (BDepth-9) If the BIO process is not disabled at the CU level and the CU currently contains multiple sub-CUs, the SAD of each sub-CU in the CU is calculated. Then, the decision to enable or disable the BIO process is made at the sub-CU level based on a predefined sub-CU-level SAD threshold, which is 3*2 per sample. (BDepth-10) is set to.

[0074] BIO is also known as BDOF.

[0075] ·BDOF applicable conditions In VTM5, BDOF can be applied to CUs coded with the following modes and features: sps_bdof_enabled_flag is equal to 1 · predFlagL0[0][0] and predFlagL1[0][0] are both equal to 1 DiffPicOrderCnt(currentPic,RefPicList[0][refIdxL0])*DiffPicOrderCnt(currentPic,RefPicList[1][refIdxL1]) is less than 0 MotionModelIdc[xCb][yCb] is equal to 0 merge_subblock_flag[xCb][yCb] is equal to 0 sym_mvd_flag[xCb][yCb] is equal to 0 BcwIdx[xCb][yCb] is equal to 0 · luma_weight_l0_flag[refIdxL0] and luma_weight_l1_flag[refIdxL1] are both equal to 0 cbHeight is 8 or more The current block's colour component index is equal to 0

[0076] Maximum BDOF processing unit If the width and / or height of a CU is greater than 16 luma samples, it is divided into sub-blocks with width and / or height equal to 16 luma samples, and the sub-block boundaries are treated as CU boundaries in the BDOF process. The maximum unit size for BDOF processing is limited to 16x16.

[0077] 2.4 Decoder-side motion vector refinement In bi-prediction operations, for prediction of one block region, two prediction blocks formed using the motion vectors (MVs) of list0 and list1, respectively, are combined to form a single prediction signal. The decoder-side motion vector refinement (DMVR) method in JVET-K0217 further refines the two bi-prediction motion vectors by a bidirectional matching process.

[0078] In the proposed method, DMVR is only applied in Merge and Skip modes if the following conditions are true: (POC-POC0)*(POC-POC1)<0

[0079] where POC--the current picture order count of the picture being encoded, POC0 and POC1--are the picture order counts of reference for the current picture.

[0080] The signaled merge candidate pair is used as input to the DMVR process and is denoted as the initial motion vector (MV0,MV1). The search points searched by the DMVR follow the motion vector difference mirroring condition. In other words, the points checked by the DMVR (denoted as the candidate motion vector pair (MV0',MV1')) follow the following two equations: MV0' = MV0 + MV diff MV1' = MV1 - MV diff

[0081] Here, MV diff represents a point in the search space in terms of one of the reference pictures.

[0082] After constructing the search space, a unidirectional prediction is constructed using a regular 8-tap DCTIF interpolation filter. A bidirectional matching cost function is calculated using the mean removed sum of absolute differences (MRSAD) between the two predictions (Figure 6), and the search point that yields the minimum cost is selected as the refined MV pair. The MRSAD calculation uses 16-bit precision of samples (output of the interpolation filtering), and no clipping or rounding operations are applied before the MRSAD calculation. The reason for not applying rounding or clipping is to reduce the need for internal buffers.

[0083] FIG. 6 shows an example of two-way matching using a six-point search.

[0084] In the proposed method, integer precision search points are selected by an adaptive pattern method. First, a cost, which corresponds to the center point (pointed to by the initial motion vector), is calculated. The other four costs (shape of a sign) are calculated by two predictions and are placed opposite each other by the center point. The last six points in the angle are selected by the gradient of the previously calculated costs (Figure 7 shows the adaptive integer search pattern (left) and the half-sample search pattern (right)).

[0085] The output of the DMVR process is a refined motion vector pair that corresponds to the minimum cost.

[0086] If after one iteration, the minimum cost is achieved at the center point of the search space, i.e., the motion vector is not changed, and the refinement process ends. If not, the best cost is considered as the center again, and the process continues, but the minimum cost does not correspond to the center point and the search range is not exceeded.

[0087] Only if the application of the half-pel search does not exceed the search range, a half sample precision search is applied. In this case, the MRSAD calculation is performed only on the four corresponding to the plus-shape points around the center point selected as the best during the integer precision search. Finally, the refined motion vector pair corresponding to the lowest cost point is output.

[0088] In JVET-L0163, several simplifications and improvements are proposed.

[0089] Reference sample padding Reference sample padding is applied to extend the reference sample block pointed to by the initial motion vector. If the size of the coded block is given by "w" and "h", it is assumed that blocks of size w+7 and h+7 are fetched from the reference picture buffer. The fetched buffer is then extended by two samples in each direction by iterative sample padding using the nearest samples. The extended reference sample block is then used to generate the final prediction after which a refined motion vector is obtained (which may deviate from two samples of the initial motion vector in each direction).

[0090] Note that this modification completely eliminates the external memory access requirement of the DMVR without any coding loss.

[0091] Bilinear interpolation instead of 8-tap DCTIF According to the proposal, bilinear interpolation is applied during the DMVR search process, which means that the predictions used in the MRSAD calculation are generated using bilinear interpolation. Once the final refined motion vectors are obtained, a regular 8-tap DCTIF interpolation filter is applied to generate the final prediction.

[0092] Early termination based on MV difference between merge candidates To confine the MV refinement process, an additional condition is imposed on the DMVR, such that the DMVR is conditionally disabled if the following condition is met: · The MV difference between the selected merge candidate and any of the previous candidates in the same merge list is smaller than a predefined threshold (i.e., 1 / 4, 1 / 2, and 1 pixel wide intervals for CUs with less than 64 pixels, less than 256 pixels, and at least 256 pixels, respectively).

[0093] Early termination based on SAD cost in center search coordinates The sum of absolute differences (SAD) between the two prediction signals (L0 and L1 predictions) using the initial motion vector of the current CU is calculated. If the SAD is below a predefined threshold, i.e., 2 samples per prediction, (BDepth-9) , DMVR is skipped. Otherwise, DMVR is still applied to refine the two motion vectors of the current block.

[0094] ·MRSAD calculation using every 2 lines The MRSAD cost is calculated only for odd rows of a block; even sample rows are not considered, thus halving the number of operations to compute the MRSAD.

[0095] Parametric Error Surface Based Sub-Pixel Offset Estimation In JVET-K0041, we achieved 1 / 16pel(1 / 16) with very minimal computational complexity. th To determine sub-pixel offsets with (-pel) accuracy, a parametric error surface was proposed that was fitted using integer distance position evaluated costs.

[0096] This method has been adopted in VVC and is summarized below. 1. A parametric error surface fit is computed only if the minimum matching cost of the integer MVD is not equal to 0 and the matching cost of the zero MVD is greater than a threshold. 2. The best integer location is taken as the center location, and the cost of the center location and the costs of the locations (-1,0), (0,-1), (1,0), and (0,1) (in units of integer pixels) relative to the center location are used to fit a 2-D paraboloid error surface equation of the form: E(x,y)=A(x-x0) 2 +B(y-y0) 2 +C where (x0,y0) corresponds to the minimum cost position and C corresponds to the minimum cost value. By solving five equations in five unknowns, (x0,y0) is calculated as follows: x0=(E(-1,0)-E(1,0) / (2(E(-1,0)+E(1,0)-2E(0,0))) y0=(E(0,-1)-E(0,1) / (2(E(0,-1)+E(0,1)-2E(0,0))) By adjusting the precision with which the division is performed (i.e. how many bits of the quotient are calculated), (x0,y0) can be calculated to any sub-pixel precision required. th With (-pel) precision, only 4 bits of the quotient absolute value need to be computed, which lends itself to a fast shift-and-subtract based implementation of the divide-by-2 required per CU. 3. The calculated (x0,y0) is added to the integer distance refinement MV to get the sub-pixel refinement delta MV.

[0097] On the other hand, for a 5×5 search space, the parametric error surface fit is performed only if one of the center 9 locations is the best integer location, as shown in FIG.

[0098] ·DMVR applicable conditions In VTM5, the DMVR can be applied to CUs coded with the following modes and features: sps_dmvr_enabled_flag is equal to 1 -CU-level merge mode with bi-predictive MV For a current picture, one reference picture is in the past and the other is in the future. The distance from both reference pictures to the current picture (i.e. the POC difference) is the same CU has 64 or more luma samples Both CU height and CU width are greater than or equal to 8 luma samples ·BCW weighting factors indicate equal weighting ·WP is not enabled for the current block - MMVD mode is not currently used for the block

[0099] Maximum DMVR processing If the width and / or height of a CU is greater than 16 luma samples, it is further divided into sub-blocks with width and / or height equal to 16 luma samples. The maximum unit size of the DMVR search process is limited to 16x16.

[0100] 2.5 Merged Mode with MVD (MMVD) In addition to the merge mode that uses the implicitly derived motion information directly to generate the prediction sample of the current CU, a merge mode with motion vector differences (MMVD) is introduced into VVC. The MMVD flag is signaled after sending the skip flag and the merge flag to specify whether the MMVD mode is used for the CU.

[0101] In MMVD, after a merge candidate is selected, it is further refined by signaling MVD information. The further information includes a merge candidate flag, an index for specifying the magnitude of motion, and an index for indicating the motion direction. In MMVD mode, one of the first two candidates in the merge list is selected as the MV base (or base merge candidate). A merge candidate flag is signaled to specify which flag is used.

[0102] The distance index specifies the information of the magnitude of the motion and indicates a predefined offset from the starting point. The offset is added to either the horizontal or vertical component of the starting MV, as shown in Figure 9. The relationship between the distance index and the predefined offset is specified in Table 3. Table 3: Relationship between distance index and predefined offsets [Table 3]

[0103] The direction index represents the direction relative to the start point of the MVD. As shown in Table 4, the direction index can represent four directions. Note that the meaning of the MVD sign may change depending on the information of the starting MV. If the starting MV is a uni-predictive MV or bi-predictive MV and both lists point to the same side of the current picture (i.e., the POC of the two references are both larger than the POC of the current picture or both smaller than the POC of the current picture), the sign in Table 4 specifies the sign of the MV offset added to the starting MV. If the starting MV is a bi-predictive MV and the two MVs point to different sides of the current picture (i.e., the POC of one reference is larger than the POC of the current picture and the POC of the other reference is smaller than the POC of the current picture), the sign in Table 4 specifies the sign of the MV offset added to the list0 MV component of the starting MV, and the sign of the list1 MV has the opposite value. Table 4: Sign of MV offset given direction index [Table 4]

[0104] 2.6 MMVD Specifications in VVC The MMVD specifications (JVET-N1001-v10) are as follows: [Table 5] TIFF0007572136000018.tif150150

[0105] 2.7 JVET-O0070: Prediction Refinement by Optical Flow for Affine Modes (PROF) To achieve finer granularity of motion compensation, this contribution proposes a method to refine sub-block-based affine motion compensation prediction by optical flow. After sub-block-based affine motion compensation is performed, the luma prediction samples are refined by adding the difference derived by the optical flow equation. The proposed PROF is described in the following four steps:

[0106] Step 1) Sub-block based affine motion compensation is performed to generate the sub-block prediction I(i,j).

[0107] Step 2) Compute the spatial gradients and sub-block predictions at each sample location using a 3-tap filter [-1,0,1]. g x (i,j) = I(i+1,j) - I(i-1,j) g y (i,j)=I(i,j+1)-I(i,j-1)

[0108] Subblock predictions are extended by one pixel on each side for gradient computation. To reduce memory bandwidth and complexity, pixels on the extended boundaries are copied from the nearest integer pixel locations in the reference picture. Thus, additional interpolation into the padding regions is avoided.

[0109] Step 3) The luma prediction refinement is calculated by the optical flow equation. ΔI(i,j)=g x (i,j)*Δν x (i,j)+g y (i,j)*Δν y (i,j)

[0110] Here, Δν(i,j) is the difference between the pixel MV calculated for sample position (i,j) and the sub-block MV of the sub-block to which pixel (i,j) belongs, denoted as ν(i,j) as shown in FIG. 10.

[0111] Figure 10 shows the sub-block MV VSB and an example of pixel Δv(i,j) (red arrow).

[0112] Since the affine model parameters and pixel location relative to the subblock center do not change from subblock to subblock, Δν(i,j) can be calculated for the first subblock and then reused for other subblocks in the same CU. Let x and y be the horizontal and vertical offsets from the pixel location to the subblock center, then Δν(i,j) can be calculated as follows:

number

[0113] For the four-parameter affine model:

number

[0114] For the six-parameter affine model:

number

[0115] Here, (ν 0x ,ν 0y ), (ν 1x ,ν 1y ), (ν 2x ,ν 2y ) are the top-left, top-right, and bottom-left control point motion vectors, and w and h are the width and height of the CU.

[0116] Step 4) Finally, luma prediction refinement is added to the I(i,j) sub-block prediction. The final prediction I' is generated as the following equation: I'(i,j) = I(i,j) + ΔI(i,j)

[0117] 2.8 PROF Specifications in VVC The PROF specification (JVET-O0070-CE4.2.1a-WD-r4) is as follows: [Table 6] TIFF0007572136000023.tif226150TIFF0007572136000024.tif227151TIFF0007572136000025.tif100150

[0118] 2.9 Symmetric MVD Coding In addition to the usual uni-predictive and bi-predictive mode MVD signaling, VTM5 applies a symmetric MVD mode for bi-predictive MVD signaling, in which motion information including reference picture indexes for both list-0 and list-1 and the MVD for list-1 are not signaled but are derived.

[0119] The decoding process for the symmetric MVD mode is as follows. 1. At the slice level, the variables BiDirPredFlag, RefIdxSymL0, and RefIdxSymL1 are derived as follows: - If mvd_l1_zero_flag is 1, then BiDirPredFlag is set equal to 0. - Otherwise, if the closest reference picture in list-0 and the closest reference picture in list-1 form a forward-backward or backward-forward pair of reference pictures, BiDirPredFlag is set to 1. Otherwise, BiDirPredFlag is set to 0. 2. At the CU level, if the CU is bi-predictively coded and BiDirPredFlag is equal to 1, then a symmetric mode flag is explicitly signaled indicating whether symmetric mode is used or not.

[0120] If the symmetric mode flag is true, then only mvp_l0_flag, mvp_l1_flag, and MVD0 are explicitly signaled. The reference indices of list-0 and list-1 are set equal to their respective reference picture pairs. MVD1 is set equal to (-MVD0). The final motion vector is shown in the following equation:

number

[0121] FIG. 11 is an explanatory diagram of the symmetric MVD mode.

[0122] At the encoder, symmetric MVD motion estimation starts with initial MV estimation. The set of initial MV candidates consists of MVs obtained from the uni-predictive search, MVs obtained from the bi-predictive search, and MVs obtained from the AMVP list. The one with the lowest rate-distortion cost is selected as the initial MV for the symmetric MVD motion search.

[0123] 2.10 JVET-0414: Symmetric MVD control considering reference picture type The reference picture type is determined as "short-term reference pictures (STRP)" or "long-term reference pictures (LTRP)". Both STRP and LTRP can be used as the reference picture of the current block. Figure 12 shows an example of the use of mixed STRP and LTRP in the SMVD scheme. Using mirrored L0_MVD as L1_MVD may be inaccurate when the reference picture types of L0 and L1 are different, because the distance difference (distance between reference picture 0 and current picture 1 and distance between reference picture 0 and current picture 1) becomes large, and the correlation of the motion vectors in each direction becomes low. Figure 12 shows an example of the use of mixed STRP and LTRP.

[0124] In the current working draft, the sentence parsing process of sym_mvd_flag is as follows: the availability of reference pictures is checked, and if the condition is met, sym_mvd_flag is parsed. If sym_mvd_flag is true, the MVD of L1 (MvdL1) is derived as the mirrored MvdL0.

[0125] Also, in the current scheme, RefIdxSymLX for X=0,1 is derived as follows: RefIdxSymL0 is the closest reference picture with a POC smaller than that of the current picture, and RefIdxSymL1 is the closest reference picture with a POC larger than that of the current picture.

[0126] In JVET‐O0414, two schemes that consider the reference picture type are proposed to improve the accuracy of MVD when the SMVD scheme is used. A brief comparison between the current SMVD scheme and the two proposed schemes is shown in the table, where MVD means the MVD of List0. Table 5: Current SMVD scheme and proposed scheme [Table 7]

[0127] Proposed Scheme I In proposed scheme I, the SMVD process is restricted to the case where the current picture has mixed reference picture types.

[0128] Proposed Scheme II In proposed scheme II, the long-term reference pictures are excluded in the reference picture checking process, and therefore only the short-term reference pictures can be considered for SMVD.

[0129] 3. Examples of Technical Problems Addressed by Some Embodiments The current design of DMVR / BDOF / MMVD / PROF does not take into account the reference picture type, which may affect the validity.

[0130] 4. Example of embodiment The following descriptions should be considered as examples to explain some concepts. These descriptions should not be construed in a narrow sense. Moreover, these techniques can be combined in any manner.

[0131] Hereafter, DMVD is used to represent decoder-side motion vector derivation methods such as BDOF, DMVR, template-based motion estimation, FRUC, etc. 1. Whether to enable or disable a coding tool, or how to apply a coding tool for a block, depends on the type of reference picture for the block (e.g., long-term or short-term), and / or the resolution of the reference picture, and / or the resolution of the current picture. a. In one example, the coding tools are disabled for a block if at least two reference pictures used by the block (e.g., two reference pictures for bi-prediction) are associated with different reference picture types. i. Alternatively, if all of these are long-term reference pictures, the check of the POC distance of each of the reference pictures to the current picture is omitted. That is, in one example, the coding tools may be usable regardless of the POC distance. b. In one example, the coding tools may be enabled for a block if at least two reference pictures used by the block (e.g., two reference pictures for bi-prediction) are associated with the same reference picture type. i. In one example, the same reference picture type is the long-term or short-term reference picture type of each reference picture relative to the current picture, or the same absolute POC distance. c. In one example, the coding tools may be enabled for a block if some or all reference pictures used by the block (e.g., two reference pictures for bi-prediction) are associated with the same reference picture type equal to type X. In one example, type X is a short-term reference picture type. ii. Alternatively, if not associated with type X, the coding tool may be disabled. iii. Alternatively, if there is anything associated with type Y (not equal to X), the coding tool may be disabled. iv. In one example, type X may not be an Adaptive Resolution Picture (ARP), e.g., the resolution of a reference picture of type X is the same as the resolution of the current picture. v. In one example, type X may have the same absolute POC distance of each of the reference pictures to the current picture. d. Alternatively, if one or all of the reference pictures used by the block are associated with the same reference picture type equal to type X, the coding tools are disabled for the block. In one example, type X is a long-term reference picture type. In one example, type X may be an Adaptive Resolution Picture (ARP), e.g., the resolution of a reference picture of type X is different from the resolution of the current picture. e. Alternatively, the coding tools may be applied only to reference pictures of exemplary reference picture type X. In one example, type X is a short-term reference picture type. In one example, type X may not be an adaptive resolution picture (ARP), e.g., the resolution of a reference picture of type X is the same as the resolution of the current picture. iii. In one example, type X may have the same absolute POC distance for each of the reference pictures relative to the current picture. f. In one example, the coding tool is a BDOF coding tool. g. In one example, the coding tool is a DMVR coding tool. h. In one example, the coding tool is an MMVD coding tool. i. In one example, the coding tool is a PROF coding tool. j. In one example, the coding tool is an Affine coding tool. k. In one example, the coding tool is a joint intra prediction tool. l. In one example, the coding tool is an Adaptive Motion Vector Resolution (AMVR) coding tool. m. In one example, the coding tool is a Triangle Partition Mode (TPM) coding tool. In one example, the coding tool is an SMVD coding tool. o. In one example, the coding tool is a switchable interpolation filtering coding tool. p. In one example, the coding tool is a BCW (ie, bi-predictive with CU-level weighting) coding tool. q. In one example, the coding tool is a coding tool that refines block motion information based on coded information, such as DMVD (eg, a method based on temporal matching). r. In one example, the coding tool is a coding tool that refines a prediction signal for the block based on coded information (eg, an optical flow coding method). 2. Enabling / disabling BDOF may depend on the reference picture type. In one example, if all the reference pictures are of the same reference picture type, BDOF may be enabled, i.e., if the two types are different, BDOF may be disabled. i. In one example, BDOF may be enabled when both a past reference picture (e.g., having a smaller POC value compared to the current picture) and a future reference picture (e.g., having a larger POC value compared to the current picture) are long-term or short-term reference pictures of each reference picture or are the same absolute POC distance compared to the current picture. b. In one example, if all reference pictures are of the same reference picture type X, then BDOF may be enabled. i. In one example, BDOF may be enabled when both the past and future reference pictures are short-term reference pictures. ii. In one example, type X is a short-term reference picture type. In one example, type X may not be an adaptive resolution picture (ARP), e.g., the resolution of a reference picture of type X is the same as the resolution of the current picture. iv. Alternatively, at least one of the reference pictures is not of type X and BDOF may be disabled. v. In one example, type X may have the same absolute POC distance of each of the reference pictures to the current picture. 3. Enabling / disabling DMVR may depend on the reference picture type. In one example, if all the reference pictures are of the same reference picture type, the DMVR may be enabled, i.e., if the two types are different, the DMVR may be disabled. i. In one example, DMVR may be enabled when both a past reference picture (e.g., a smaller POC value compared to the current picture) and a future reference picture (e.g., a larger POC value compared to the current picture) are long-term or short-term reference pictures, respectively, or are at the same absolute POC distance compared to the current picture. b. In one example, if all reference pictures are of the same reference picture type X, then DMVR may be enabled. i. In one example, DMVR may be enabled when both the past and future reference pictures are short-term reference pictures. ii. In one example, type X is a short-term reference picture type. In one example, type X may not be an adaptive resolution picture (ARP), e.g., the resolution of a reference picture of type X is the same as the resolution of the current picture. iv. Alternatively, at least one of the reference pictures is not of type X and the DMVR may be disabled. v. In one example, type X may have the same absolute POC distance of each of the reference pictures to the current picture. c. In one example, if all reference pictures are of the same reference picture type Y, checking the POC distance of each of the reference pictures to the current picture is omitted, i.e., DMVR may be enabled regardless of the POC distance. In one example, type Y is a long-term reference picture type. 4. Whether MMVD / BCW / PROF / TPM / SMVD / Affine is enabled or how MMVD / BCW / PROF / TPM / SMVD / Affine is applied may depend on the reference picture type. In one example, if all reference pictures have the same reference picture type, then MMVD / BCW / PROF / TPM / SMVD / Affine may be enabled, otherwise MMVD / BCW / PROF / TPM / SMVD / Affine may be disabled. b. In one example, if all reference pictures are of reference picture type X, MMVD / BCW / PROF / TPM / SMVD / Affine may be enabled. In one example, type X is a short-term reference picture type. ii. In one example, type X may have the same absolute POC distance for each of the reference pictures relative to the current picture. c. In one example, such a restriction may be applied to bi-predictive blocks. d. In one example, such a restriction may be applied to unidirectionally predicted blocks. e. In one example, such a restriction may be applied to both bidirectionally and unidirectionally predicted blocks. f. In one example, if MMVD / BCW / TPM / SMVD / Affine is disabled, an indication of whether MMVD / BCW / TPM / SMVD / Affine is applied may not be signaled. Alternatively, such indications are still signaled, however for conformance bitstreams the indications are always false, i.e. MMVD / BCW / TPM / SMVD / Affine are disabled. 5. The "reference type" of a reference picture disclosed in this document may be determined by judging. A reference picture can be long term or short term. b. The original resolution of the reference picture is either the same as the current picture or not. The POC distance between the reference picture and the current picture is within a certain range. c. The temporal stratum of the reference picture is within a predetermined range. d. Whether a given coding tool has been applied to the reference picture. Simplifying MVD Derivation for MMVD 6. For MMVD, MVD scaling may be removed. If the selected MV base (or base merge candidate) in MMVD mode is bidirectional MV, the MVD of prediction direction X (X=0 or 1) may be set directly equal to the signaled MVD, and the MVD of prediction direction Y (Y=1-X) may be set equal to the signaled MVD or the inverse of the signaled MVD. In one example, if both reference pictures identified by the MV basis have a larger or smaller POC than the current picture, then the MVD of the prediction direction Y may be set equal to the signaled MVD. b. In one example, if one reference picture identified by the MV base has a larger POC than the current picture and another reference picture identified by the MV base has a smaller POC than the current picture, the MVD of the prediction direction Y may be set equal to the opposite value of the signaled MVD. 7. In MMVD, MVD is always signaled for prediction direction X (X=0 or 1) and can be derived for prediction direction Y (Y=1-X) if necessary (e.g., if the MV base is bidirectional MV). In one example, if the MV base is a unidirectional MV, then X may be set equal to the prediction direction of the MV base. b. In one example, if the MV base is a bidirectional MV, then X may be set equal to 0 or 1. c. In one example, the MVD of reference picture list Y may be derived depending on the reference picture types (eg, long-term reference pictures or short-term reference pictures) of the two reference pictures identified by the MV base. i. In one example, if both reference pictures are short-term reference pictures, the MVD of the prediction direction Y may be derived by scaling the signaled MVD according to the POC distance between the two reference pictures and the current picture. ii. In one example, if two reference pictures both have larger or smaller POC than the current picture, the MVD of the prediction direction Y may be set equal to the signaled MVD. (i) Alternatively, further, such a derivation method may be applied only if at least one of the reference pictures is not a short-term reference picture. iii. In one example, if one reference picture has a larger POC than the current picture and the other reference picture has a smaller POC than the current picture, the MVD of the prediction direction Y may be set equal to the opposite value of the signaled MVD. (i) Alternatively, further, such a derivation method may be applied only if at least one of the reference pictures is not a short-term reference picture.

[0132] 5. Embodiments The deleted parts are marked with double brackets ([[a]] indicates the deletion of the letter "a"), and the newly added parts are highlighted in italics and bold.

[0133] [Table 8] TIFF0007572136000029.tif226151TIFF0007572136000030.tif226151TIFF0007572136000031.tif227151TIFF0007572136000032.tif226150TIFF0007572136000033.tif226151TIFF0007572136000034.tif226151TIFF0007572136000035.tif217151TIFF0007572136000036.tif226151TIFF0007572136000037.tif220150TIFF0007572136000038.tif226150TIFF0007572136000039.tif226150TIFF0007572136000040.tif226151TIFF0007572136000041.tif226150TIFF0007572136000042.tif226151TIFF0007572136000043.tif226150TIFF0007572136000044.tif226151TIFF0007572136000045.tif226150TIFF0007572136000046.tif226151TIFF0007572136000047.tif226150TIFF0007572136000048.tif144150

[0134] FIG. 13A is a block diagram of a video processing device 1300. The device 1300 may be used to implement one or more methods described herein. The device 1300 may be embodied in a smartphone, a tablet, a computer, an Internet of Things (IoT) receiver, etc. The device 1300 may include one or more processors 1302, one or more memories 1304, and video processing hardware 1306. The processor 1302 may be configured to implement one or more methods described herein. The memory(s) 1304 may be used to store data and code used to implement the methods and techniques described herein. The video processing hardware 1306 may be used to implement some techniques described herein in a hardware circuit. In some embodiments, the video processing hardware 1306 may be at least partially internal to the processor 1302 (e.g., a graphics co-processor).

[0135] FIG. 13B is another example of a block diagram of a video processing system in which the disclosed techniques can be implemented. FIG. 13B is a block diagram showing an example video processing system 1310 in which various techniques disclosed herein can be implemented. Various implementations may include some or all of the components of system 1310. System 1310 may include an input 1312 for receiving video content. The video content may be received in a raw or uncompressed format, e.g., 8 or 10-bit multi-component pixel values, or may be received in a compressed or coded format. Input 1312 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 networks, and wireless interfaces such as Wi-Fi or cellular interfaces.

[0136] The system 1310 may include a coding component 1314 that may implement various coding or decoding methods described in this document. The coding component 1314 may reduce the average bit rate of the video from the input 1312 to the output of the coding component 1314 to generate a coded representation of the video. Thus, the coding techniques may be referred to as video compression or video transcoding techniques. The output of the coding component 1314 may be stored or transmitted via a connected communication, as represented by component 1316. The stored or communicated bitstream (or coded) representation of the video received at the input 1312 may be used by component 1318 to generate pixel values ​​or displayable video that are sent to the display interface 1320. The process of generating a user-viewable video from the bitstream representation may be referred to as video decompression. Additionally, although certain video processing operations are referred to as “coding” operations or tools, it will be 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 in a decoder.

[0137] 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 may include SATA (serial advanced technology attachment), PCI, IDE interfaces, etc. The techniques described herein may be embodied in a variety of electronic devices, such as mobile phones, laptops, smartphones, or other devices capable of performing digital data processing and / or video display.

[0138] In some embodiments, the video coding method may be implemented using an apparatus implemented on a hardware platform as described with respect to FIG. 13A or FIG. 13B.

[0139] 14 is a flowchart for a method 1400 of processing video. The method 1400 includes determining (1402) for a conversion between a current video block of a video including multiple video blocks and a coded representation of the video and from a type of reference picture used for the conversion, an applicability of a coding tool to the current video block, and performing the conversion based on the determination (1402).

[0140] 15A is a flow chart for a method 1510 of processing video. The method 1510 includes, at step 1512, determining an applicability of a coding tool to a current video block for a conversion between a current video block of a current picture of the video and a coded representation of the video based on a type of reference picture used for the conversion. The method 1510 includes, at step 1514, performing the conversion based on the determination. In some embodiments, the type of reference picture is based on at least 1) whether the reference picture is a short-term reference picture or a long-term reference picture, 2) a resolution of the reference picture or the current picture, or 3) a picture order count (POC) distance of the reference picture to the current picture.

[0141] FIG. 15B is a flow chart for a method 1520 of processing video. The method 1520 includes, at step 1522, determining applicability of a bidirectional optical flow (BDOF) coding tool or a decoder-side motion vector refinement (DMVR) coding tool to the current video block for a conversion between a current video block of the video and a coded representation of the video based on a type of reference picture used for the conversion. The method 1520 includes, at step 1524, performing the conversion based on the determination. In some implementations, using a BDOF coding tool, one or more initial predictions are refined based on optical flow calculations. In some embodiments, using a DMVR coding tool, motion information of the current video block is refined using a predictive block of the current video block. In some implementations, the type of reference picture is based on at least 1) whether the reference picture is a short-term or long-term reference picture, 2) a resolution of the reference picture or the current picture, or 3) a picture order count (POC) distance of the reference picture relative to the current picture.

[0142] FIG. 15C is a flow chart for a method 1530 of processing video. The method 1530 includes, at step 1532, performing a conversion between a current video block of a current picture of the video and a coded representation of the current video block using merge mode motion vector difference (MMVD) coding, where a merge candidate is selected to be used as a base merge candidate and refined with motion vector difference (MVD) information. In some implementations, during MMVD coding, a merge candidate is selected to be used as a base merge candidate and refined with motion vector difference (MVD) information without scaling the MVD information. In some implementations, the base merge candidate is a bi-directional motion vector, and the MVD of one prediction direction is set equal to the MVD included in the coded representation and the MVD of the other prediction direction is set equal to or opposite to the MVD included in the coded representation based on a coding condition of the video. In some implementations, the coded representation follows a rule that at most a first MVD value for a first prediction direction is included in the coded representation.

[0143] Some embodiments of the disclosed techniques include making a decision or determination to enable a video processing tool or mode. In one example, if a video processing tool or mode is enabled, the 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, the 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, if a video processing tool or mode is enabled, the decoder processes the bitstream knowing that the bitstream has been modified based on the video processing tool or mode. That is, the conversion of a bitstream representation of video to blocks of video is performed using the video processing tool or mode enabled based on the decision or determination.

[0144] Some embodiments of the disclosed techniques include deciding or determining to disable a video processing tool or mode. In one example, when a video processing tool or mode is disabled, an encoder does not use the tool or mode in converting blocks of video into 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 disabled video processing tool or mode based on the decision or determination.

[0145] In this document, the term "video processing" may refer to video coding, video decoding, video compression, or video decompression. For example, a video compression algorithm may be applied during conversion from a pixel representation of a video to a corresponding bitstream representation or vice versa. The bitstream representation of a current video block may correspond to bits that are co-located or spread at different locations within the bitstream, e.g., as defined by a syntax. For example, a macroblock may be encoded in terms of transformed and coded error residual values ​​and using bits in the header and other fields within the bitstream.

[0146] The various solutions and embodiments described in this document are further described using a list of clauses. A first set of clauses describes certain features and aspects of the technology disclosed in the previous sections.

[0147] This is in addition to the embodiments described in items 1, 4, and 5 in the previous section.

[0148] 1. A method for processing video, comprising: determining, for a conversion between a current video block of a video including a plurality of video blocks and a coded representation of the video, the applicability of a coding tool to the current video block from a type of reference picture used for the conversion; and performing the conversion based on the determination.

[0149] 2. The method according to clause 1, wherein the type of the reference picture is either a long-term reference picture type or a short-term reference picture type.

[0150] 3. The method of any of clauses 1-2, wherein the characteristics of the reference picture include a resolution of the reference picture.

[0151] 4. The method of any of clauses 1-3, wherein the determining step includes determining that a particular coding tool cannot be used with the current video block because the reference pictures are of a different type.

[0152] 5. The method of any of clauses 1-3, wherein the determining step includes determining that a particular coding tool can be used with the current video block because the reference pictures are of the same type.

[0153] 6. The method of any of clauses 1-3, wherein the determining step includes determining that a particular coding tool can be used with the current video block because all reference pictures are of a given type.

[0154] 7. The method of any of clauses 1-3, wherein the determining step includes determining that a particular coding tool cannot be used with the current video block because all reference pictures are of a given type.

[0155] 8. The method of any of clauses 1-3, wherein a particular coding tool is applied for use with a particular reference picture due to characteristics of the particular reference picture being of a particular type.

[0156] 9. The method of any of clauses 1-3, wherein a particular coding tool is disabled for use with a particular reference picture due to characteristics of the particular reference picture being of a particular type.

[0157] 10. The method according to any of clauses 1-9, wherein the coding tool corresponds to a bidirectional optical flow coding tool.

[0158] 11. The method of any of clauses 1-9, wherein the coding tool corresponds to one or more of a merge mode with motion vector difference tool (MMVD), or bi-prediction with coding unit weighting (BCW), or prediction refinement with optical flow (PROF), or triangular partitioning mode (TPM), or spatial motion vector difference (SMVD), or an affine coding tool.

[0159] 12. The method of any of clauses 1-11, wherein the type of the reference picture depends on a picture order count difference of the current video block from the current picture.

[0160] 13. The method of any of clauses 1-12, wherein the type of the reference picture depends on the temporal layer of the reference picture.

[0161] This is in addition to the embodiment described under item 2 in the previous section.

[0162] 14. A method for processing a video, comprising: for converting between a current video block of a video including a plurality of video blocks and a coded representation of the video, determining the applicability of a bidirectional optical flow coding tool to the current video block from a type of reference picture used for the conversion; and performing the conversion based on the determination.

[0163] 15. The method of claim 14, wherein the type of reference picture is either a long-term reference picture type or a short-term reference picture type.

[0164] 16. The method of any of clauses 14-15, wherein the characteristics of the reference picture include a resolution of the reference picture.

[0165] 17. The method of any of clauses 14-16, wherein the determining step includes the BDOF coding tool determining that the reference picture cannot be used with the current video block due to being of a different type.

[0166] 18. The method of any of clauses 14-16, wherein the determining step includes the BDOF coding tool determining that the reference picture is usable with the current video block due to being of the same type.

[0167] 19. The method of any of clauses 14-16, wherein the current video block results from all reference pictures being of a given type.

[0168] 20. The method of any of clauses 14-16, wherein the determining step includes determining that the BDOF coding tool is disabled for use with the current video block due to all reference pictures being of a given type.

[0169] 21. The method of any of clauses 14-16, wherein the BDOF coding tool is adapted for use with a particular reference picture due to characteristics of the particular reference picture being of a particular type.

[0170] 22. The method according to any of clauses 14-16, wherein the BDOF coding tool cannot be used with a particular reference picture due to characteristics of the particular reference picture being of a particular type.

[0171] This is in addition to the embodiment described in item 3 in the previous section.

[0172] 23. A method for processing video, comprising: determining, for a conversion between a current video block of a video including a plurality of video blocks and a coded representation of the video, the applicability of the coding tool to the current video block from a reference picture of a type used for the conversion, the coding tool corresponding to a decoder-side motion vector refinement tool (DMVR); and performing the conversion based on the determination.

[0173] 24. The method of claim 23, wherein the reference picture type is either a long-term reference picture type or a short-term reference picture type.

[0174] 25. The method of any of clauses 23-24, wherein the characteristics of the reference picture include a resolution of the reference picture.

[0175] 26. A method as described in any of clauses 23-25, wherein the determining step includes determining that the DMVR coding tool is disabled for use with the current video block due to the reference picture being of a different type.

[0176] 27. The method of any of clauses 23-25, wherein the determining step includes a step in which the DMVR coding tool determines that the reference picture is usable with the current video block because the reference picture is of the same type.

[0177] 28. The method of any of clauses 23-25, wherein the determining step includes a step in which the DMVR coding tool determines that all reference pictures are available for use with the current video block due to being of a given type.

[0178] 29. The method of any of clauses 23-25, wherein the determining step includes a step in which the DMVR coding tool determines that all reference pictures cannot be used with the current video block due to being of a given type.

[0179] This is in addition to the embodiment described in item 6 in the previous section.

[0180] 30. A method of processing a video, comprising: performing a transformation between a current video block of the video and a coded representation of the current video block using merge mode motion vector difference (MMVD) coding, the transformation using a combination of motion vector difference and merge mode candidate, and at least one of a scaling or prediction direction of components of the MVD being determined from a coding condition of the video.

[0181] 31. The method of clause 30, wherein the coding condition includes a comparison of a picture order count of a current picture of a current video block and a picture order count between a reference picture and a threshold value.

[0182] 32. The method of claim 30, wherein the scaling is unity scaling.

[0183] This is in addition to the embodiment described in item 7 in the previous section.

[0184] 33. A method of processing video, comprising performing a conversion between a current video block of the video and a coded representation of the current video block using merge-mode motion vector difference (MMVD) coding in which a single MVD value in a single direction is signaled.

[0185] 34. The method of claim 33, further comprising the step of deriving a second MVD value in another direction from the first MVD value based on a rule.

[0186] 35. The method of claim 33, wherein the single direction corresponds to a prediction direction of a basis motion vector used for the signaling.

[0187] 36. The method of clause 34, wherein the deriving step includes deriving the second MVD based on a type of reference picture from which the second MVD is derived.

[0188] Further preferred solutions adopted by some embodiments include the following:

[0189] 37. The method of any of clauses 1-36, wherein the converting step includes encoding the current video block into the coded representation or decoding the coded representation to generate the current video block.

[0190] 38. A video decoding apparatus comprising a processor configured to carry out the methods described in one or more of clauses 1-37.

[0191] 39. A video encoding apparatus comprising a processor configured to implement a method according to one or more of clauses 1-37.

[0192] 40. A computer program product having computer code stored thereon which, when executed by a processor, causes the processor to perform a method according to any of clauses 1-37.

[0193] 41. Any method, apparatus, or system described in this document.

[0194] The second set of clauses describes certain features and aspects of the technology disclosed in the previous sections, e.g., Examples 1-7.

[0195] 1. A method for processing video, comprising: for a conversion between a current video block of a current picture of a video and a coded representation of the video, determining an applicability of a coding tool to the current video block based on a type of reference picture used for the conversion; and performing the conversion based on the determination, wherein the type of reference picture is based on at least: 1) whether the reference picture is a short-term reference picture or a long-term reference picture, 2) a resolution of the reference picture or the current picture, or 3) a picture order count (POC) distance of the reference picture relative to the current picture.

[0196] 2. The method of claim 1, wherein the determining step includes determining that the coding tool is disabled for use with the current video block because at least two of the reference pictures are of different types.

[0197] 3. The method of claim 1, wherein the determining step includes determining that the coding tool is disabled for use with the current video block because one or all of the reference pictures are of a given type.

[0198] 4. The method of claim 3, wherein the given type indicates that the reference picture is a long-term reference picture.

[0199] 5. The method of clause 3, wherein one or all of the reference pictures are of the given type corresponding to an adaptive resolution picture (ARP), and one or all of the reference pictures have a resolution different from the resolution of the current picture.

[0200] 6. The method of claim 1, wherein the coding tool is only adapted for use with one or more reference pictures of a given type.

[0201] 7. The method according to clause 1, wherein the coding tool is not adapted for use with one or more reference pictures not of a given type.

[0202] 8. The method of claim 6 or 7, wherein the given type indicates that the reference picture is a short-term reference picture.

[0203] 9. The method of claim 6 or 7, wherein the one or more reference pictures having the given type do not correspond to an adaptive resolution picture (ARP) and the one or more reference pictures having the given type have the same resolution as the resolution of the current picture.

[0204] 10. The method of any one of clauses 6 to 7, wherein the one or more reference pictures of the given type have the same Picture Order Count (POC) distance to the current picture.

[0205] 11. The method of clause 1, wherein the determining step includes a step of omitting to check a Picture Order Count (POC) distance of each of the reference pictures relative to the current picture because all of the reference pictures are long-term reference pictures.

[0206] 12. The method of clause 1, wherein the determining step includes making a decision regarding enabling the coding tool for use with the current video block because at least two of the reference pictures are of the same type.

[0207] 13. The method of claim 12, wherein each of at least two of the reference pictures has the same Picture Order Count (POC) distance to the current picture.

[0208] 14. The method of claim 1, wherein the determining step includes making a decision regarding enabling the coding tool for use with the current video block because some or all of the reference pictures are of a given type.

[0209] 15. The method of claim 1, wherein the determining step includes determining that the coding tool is disabled for use with the current video block due to none of the reference pictures being of a given type.

[0210] 16. The method of claim 14, wherein the determining step includes determining that the coding tool is disabled for use with the current video block due to some of the reference pictures being of another given type.

[0211] 17. A method according to any of clauses 1-16, wherein the coding tool corresponds to a bidirectional optical flow coding tool (BDOF) and one or more initial predictions are refined based on optical flow calculations.

[0212] 18. The method of any of clauses 1-16, wherein the coding tool supports decoder-side motion vector refinement (DMVR), and the motion information of the current video block is refined by using a predictive block.

[0213] 19. A method according to any of clauses 1-16, wherein the coding tool supports prediction refinement by optical flow (PROF), and one or more initial predictions are refined based on optical flow calculations.

[0214] 20. The method of claim 19, wherein the coded representation includes a prediction refinement utilization flag (cbProfflagLX) that is set as false if RprConstraintsActive[X][refIdxLX] is equal to 1 and X is 0 or 1.

[0215] 21. The method of any of clauses 1-16, wherein the coding tool corresponds to a merge mode with motion vector difference (MMVD) tool, an affine coding tool, a combined inter-intra prediction (CIIP) tool, an adaptive motion vector resolution (AMVR) tool, a triangular partition mode (TPM) tool, a spatial motion vector difference (SMVD), a switchable interpolation filtering tool, a bi-prediction with CU level weighting (BCW) tool, or a decoder-side motion vector derivation (DMVD) tool.

[0216] 22. The method of any of clauses 1-16, wherein the coding tool corresponds to a coding tool that refines motion information or a prediction signal of the current video block based on coding information of the current video block.

[0217] 23. A method as described in any of clauses 17-22, wherein the determining step includes a step of determining that the coding tool is disabled for use with the current video block due to two of the reference pictures being of different types from each other.

[0218] 24. A method as described in any of clauses 17-22, wherein the determining step includes making a decision regarding enabling the coding tool for use with the current video block because all of the reference pictures are of a given type.

[0219] 25. The method of clause 23 or 24, wherein the restriction applies to bidirectionally predicted blocks and / or unidirectionally predicted blocks.

[0220] 26. The method of clause 17 or 18, wherein the indication of whether the coding tool is applied is not signaled if the coding tool is disabled.

[0221] 27. The method of clause 17 or 18, wherein the indication of whether the coding tool is applied is signalled as false if the coding tool is disabled.

[0222] 28. The method of any of clauses 1-27, wherein the type of the reference picture further depends on the temporal layer of the reference picture.

[0223] 29. The method of any of clauses 1-27, wherein the type of reference picture further depends on whether a given coding tool is applied to the reference picture.

[0224] 30. A method for processing video, comprising: determining, for a conversion between a current video block of a video and a coded representation of the video, the applicability of a bidirectional optical flow (BDOF) coding tool or a decoder-side motion vector refinement (DMVR) tool for a current video block based on a type of reference picture used for the conversion; and performing the conversion based on the determination; wherein, using the BDOF coding tool, one or more initial predictions are refined based on optical flow calculations; and, using the DMVR coding tool, motion information of the current video block is refined using a predictive block of the current video block; and, wherein the type of the reference picture is based on at least: 1) whether the reference picture is a short-term reference picture or a long-term reference picture; 2) a resolution of the reference picture or the current picture; or 3) a picture order count (POC) distance of the reference picture relative to the current picture.

[0225] 31. The method of clause 30, wherein the determining step includes making a decision regarding enabling the coding tool for use with the current video block due to all of the reference pictures being of a given type.

[0226] 32. The method of clause 30, wherein the determining step includes determining that the coding tool is disabled for use with the current video block due to at least one of the reference pictures not being of a given type.

[0227] 33. The method of any one of clauses 31 to 32, wherein the given type indicates that the reference picture is a short-term reference picture.

[0228] 34. The method of any one of clauses 31 to 32, wherein the reference picture of the given type does not correspond to an adaptive resolution picture (ARP) and has the same resolution as a resolution of a current picture that contains the current video block.

[0229] 35. The method of any one of clauses 31 to 32, wherein the reference pictures of the given type have the same picture order count (POC) distance to a current picture that contains the current video block.

[0230] 36. The method of clause 30, wherein the determining step includes determining that the coding tool is disabled for use with the current video block due to two of the reference pictures being of different types from one another.

[0231] 37. The method of clause 30, wherein all of the reference pictures have a given type and the determining step includes omitting checking a Picture Order Count (POC) distance of each of the reference pictures to the current picture.

[0232] 38. The method of claim 37, wherein the given type indicates that the reference picture is a long-term reference picture.

[0233] 39. The method of any of clauses 30-38, wherein the type of the reference picture further depends on the temporal layer of the reference picture.

[0234] 40. The method of any of clauses 30-38, wherein the type of the reference picture further depends on whether a predefined coding tool is applied to the reference picture.

[0235] 41. A method of video processing, comprising: performing a conversion between a current video block of a current picture of a video and a coded representation of the current video block using merge mode motion vector difference (MMVD) coding; a merge candidate is selected to be used as a base merge candidate and to be refined using motion vector difference (MVD) information without scaling the MVD information; wherein the base merge candidate is a bidirectional motion vector; and an MVD for one prediction direction is set equal to an MVD included in the coded representation, and another MVD for the other prediction direction is set equal to or opposite to the MVD included in the coded representation based on a coding condition of the video.

[0236] 42. The method of clause 41, wherein the coding condition includes a comparison between a picture order count (POC) of a reference picture identified by the base merge candidate and a POC of the current picture.

[0237] 43. The method of clause 42, wherein both of the reference pictures have a POC greater or less than the current picture, and the motion vector difference for the other prediction direction is set equal to the MVD included in the coded representation.

[0238] 44. The method according to clause 42, wherein one of the reference pictures has a larger POC than the current picture and the other of the reference pictures has a smaller POC than the current picture, and a motion vector difference for the other prediction direction is set opposite to the MVD contained in the coded representation.

[0239] 45. A method of video processing, comprising: performing a transformation between a current video block of a current picture of a video and a coded representation of the current video block using merge mode motion vector difference (MMVD) coding, wherein a merge candidate is selected to be used as a base merge candidate and to be refined using motion vector difference (MVD) information, wherein the coded representation complies with a rule specifying that a first MVD value for a first prediction direction is included in the coded representation.

[0240] 46. ​​The method of clause 45, wherein the base merging candidates are bidirectional motion vectors and a second MVD value for a second prediction direction is derived from the first MVD value.

[0241] 47. The method of clause 45, wherein the base merge candidate is a unidirectional motion vector and the first prediction direction is set equal to a prediction direction of the base merge candidate.

[0242] 48. The method of clause 45, wherein the base merging candidates are bi-directional motion vectors and the first prediction direction is set with an index equal to 0 or 1.

[0243] 49. The method of claim 46, wherein the second MVD is derived based on a type of reference picture identified by the base merging candidate.

[0244] 50. The method of clause 49, wherein the type of reference picture comprises a first type corresponding to a long-term reference picture or a second type corresponding to a short-term reference picture.

[0245] 51. The method of clause 50, wherein both reference pictures are of the second type and the second MVD value is derived by scaling the first MVD based on a POC distance between the reference picture and the current picture.

[0246] 52. The method of clause 49, wherein both reference pictures are at a POC distance greater or less than the POC distance of the current picture, and the second MVD is set equal to the first MVD.

[0247] 53. The method of clause 52, wherein at least one of the reference pictures is not of the second type.

[0248] 54. The method of clause 49, wherein one of the reference pictures has a POC distance greater than a POC distance of the current picture and the other of the reference pictures has a POC distance less than a POC distance of the current picture, and the second MVD is set opposite to the first MVD.

[0249] 55. The method of clause 54, wherein at least one of the reference pictures is not of the second type.

[0250] 56. The method of any of clauses 1-55, wherein the converting includes encoding the current video block into the coded representation or decoding the coded representation to generate the current video block.

[0251] 57. An apparatus in a video system, comprising: a processor; and a non-transitory memory having instructions, which, when executed by the processor, cause the processor to perform a method according to any one of clauses 1-56. Device.

[0252] 58. A computer program product stored on a non-transitory computer readable medium, comprising program code for carrying out the method according to any of clauses 1-56.

[0253] The solutions, examples, embodiments, modules, and functional operations described and disclosed herein can be realized in digital electronic circuitry, or computer software, firmware, or hardware, including the structures disclosed herein and their structural equivalents, or one or more combinations thereof. The disclosed and other embodiments can be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on a computer-readable medium for execution by or for controlling the operation of a data processing apparatus. 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 apparatus" encompasses all apparatus, devices, and machines for processing data, including, for example, a programmable processor, a computer, or multiple processors or computers. The apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, such as code that constitutes a processor firmware, a protocol stack, a database management system, an operating system, or one or more combinations thereof. The propagated signal may be an artificially generated signal, for example a machine-generated electrical, optical, or electromagnetic signal generated to encode information for transmission to an appropriate receiver device.

[0254] A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored in a portion 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 multiple cooperating 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 multiple computers that are located on one computer or at one site, or distributed across multiple sites and interconnected by a communication network.

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

[0256] Processors suitable for executing a computer program include, for 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, e.g., magnetic disks, magneto-optical disks, or optical disks, for storing data, and is operatively coupled to receive data and to transfer data. However, a computer need not have such devices. Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices such as EPROM, EEPROM, and flash memory devices, magnetic disks, e.g., 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.

[0257] Although this patent document contains many details, these should not be construed as limiting 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 in this patent document in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may be described above as acting in a particular combination and initially claimed as such, one or more features from a claimed combination may, in some cases, be carved out of the combination, and the claimed combination may be directed to a subcombination or a variation of the subcombination.

[0258] Similarly, although the figures depict acts in a particular order, this should not be understood as requiring such acts to be performed in a particular order or sequence, or to perform all of the acts illustrated, to achieve desired results. Further, the separation of various system components in the embodiments described in this patent document should not be understood as requiring such separation in all embodiments.

[0259] Although only a few embodiments and examples have been described, other embodiments, extensions and variations may be made based on what is described and explained in this patent document.

Claims

1. 1. A method for processing video data, comprising the steps of: for a first conversion between a first video block of a first picture of a video and a bitstream of the video, determining an applicability of a first coding tool to the first video block based on a type of a first reference picture used for the first conversion; the first coding tool is used to refine a motion vector based on at least one gradient value corresponding to a sample in a reference block of the first video block or to refine the signaled motion vector based on at least one motion vector having an offset relative to the signaled motion vector; the type of the first reference picture is based at least on whether a resolution of the first reference picture is different from a resolution of the first picture; Steps and performing the first conversion based on the determination; for a second transformation between a second video block, the second video block being an affine block of a second picture of the video, and the bitstream of the video, determining an applicability of a second coding tool to the second video block based on whether at least one second reference picture used for the second transformation is an adaptive resolution picture; performing the second transformation based on the determination; and Including, The second coding tool includes: generating an initial prediction sample of a sub-block of the second video block; and applying an optical flow operation to derive a prediction refinement to generate a final prediction sample for said sub-block; method.

2. the type of the first reference picture is further based on a picture order count distance of the first reference picture relative to the first picture. The method of claim 1.

3. The determining step includes: determining that the first coding tool is disabled for use with the first video block because at least two of the first reference pictures are of a different type; The method of claim 1 or 2, comprising:

4. The determining step includes: determining that the first coding tool is disabled for use with the first video block if one or all of the first reference pictures are not short-term reference pictures; The method according to any one of claims 1 to 3, comprising:

5. The determining step includes: determining that the first coding tool is disabled for use with the first video block if one or all of the first reference pictures are adaptive resolution pictures and one or all of the first reference pictures have a different resolution than a resolution of the first picture; The method according to any one of claims 1 to 4, comprising:

6. The determining step includes: determining, based on each of the first reference pictures being a short-term reference picture, that the first coding tool is enabled for use with the first video block; The method of any one of claims 1 to 5, comprising:

7. The determining step includes: determining, based on none of the first reference pictures being adaptive resolution pictures, that the first coding tool is enabled for use with the first video block; each of the first reference pictures has the same resolution as the resolution of the first picture; 7. The method according to any one of claims 1 to 6.

8. The determining step includes: determining that the first coding tool is enabled for use with the first video block based on the first reference picture having the same absolute picture order count (POC) distance to the first picture; The method of any one of claims 1 to 7, comprising:

9. The determining step includes: determining that the second coding tool is disabled for use with the second video block if one or all of the at least one second reference picture is an adaptive resolution picture (ARP); one or all of the at least one second reference picture has a resolution different from a resolution of the second picture. The method of claim 1.

10. The determining step includes: determining, based on none of the at least one second reference picture being an adaptive resolution picture (ARP), that the second coding tool is enabled for use with the second video block; and each of the at least one second reference picture has the same resolution as the second picture; The method of claim 1.

11. the first conversion includes encoding the first video block into the bitstream.

11. The method according to any one of claims 1 to 10.

12. the first conversion includes decoding the first video block from the bitstream.

11. The method according to any one of claims 1 to 10.

13. 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: for a first conversion between a first video block of a first picture of a video and a bitstream of the video, determining an applicability of a first coding tool to the first video block based on a type of a first reference picture used for the first conversion, the type of the first reference picture being based at least on whether a resolution of the first reference picture is different from a resolution of the first picture; performing the first conversion based on said determination; for a second transformation between a second video block, the second video block being an affine block of a second picture of the video, and the bitstream of the video, determining an applicability of a second coding tool to the second video block based on whether at least one second reference picture used for the second transformation is an adaptive resolution picture; performing the second transformation based on the determination. Let them do so, The second coding tool includes: generating an initial prediction sample of a sub-block of the second video block; and applying an optical flow operation to derive a prediction refinement to generate a final prediction sample for said sub-block; Device.

14. A non-transitory computer-readable storage medium having instructions stored thereon, the instructions causing a processor to: for a first transformation between a first video block of a first picture of a video and a bitstream of the video, determining an applicability of a first coding tool to the first video block based on a type of a first reference picture used for the first transformation; the first coding tool is used to refine a motion vector based on at least one gradient value corresponding to a sample in a reference block of the first video block or to refine the signaled motion vector based on at least one motion vector having an offset relative to the signaled motion vector; the type of the first reference picture is based at least on whether a resolution of the first reference picture is different from a resolution of the first picture; performing the first conversion based on said determination; for a second transformation between a second video block, the second video block being an affine block of a second picture of the video, and the bitstream of the video, determining an applicability of a second coding tool to the second video block based on whether at least one second reference picture used for the second transformation is an adaptive resolution picture; performing the second transformation based on the determination. Let them do so, The second coding tool includes: generating an initial prediction sample of a sub-block of the second video block; and applying an optical flow operation to derive a prediction refinement to generate a final prediction sample for said sub-block; A non-transitory computer-readable storage medium.

15. A method for archiving a bitstream of video, the method comprising: for a first video block of a first picture of a video, determining an applicability of a first coding tool to the first video block based on a type of a first reference picture used for the first video block; the first coding tool is used to refine a motion vector based on at least one gradient value corresponding to a sample in a reference block of the first video block or to refine the signaled motion vector based on at least one motion vector having an offset relative to the signaled motion vector; the type of the first reference picture is based at least on whether a resolution of the first reference picture is different from a resolution of the first picture; Steps and for a second transformation between a second video block, the second video block being an affine block of a second picture of the video, and the bitstream of the video, determining an applicability of a second coding tool to the second video block based on whether at least one second reference picture used for the second transformation is an adaptive resolution picture; generating the bitstream based on said determination; storing the bitstream in a non-transitory computer readable storage medium; Including, The second coding tool includes: generating an initial prediction sample of a sub-block of the second video block; and applying an optical flow operation to derive a prediction refinement to generate a final prediction sample for said sub-block; method.

Citation Information

Patent Citations

  • Constraining motion vector information derived by decoder-side motion vector derivation

    WO2018175720A1